/* ===== SITE HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 12px 0;
    font-size: 1.35rem;
    font-weight: bold;
    letter-spacing: 4px;
    background: rgba(240, 217, 196, 0.92);
    border-bottom: 3px solid #d4b89a;
    backdrop-filter: blur(4px);
    z-index: 200;
    color: #7a5030;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    padding-top: 60px;
    padding-bottom: 56px;
}

/* ===== SITE FOOTER ===== */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 20px;
    font-size: 0.85rem;
    background: rgba(240, 217, 196, 0.92);
    border-top: 1px solid #d4b89a;
    backdrop-filter: blur(4px);
    z-index: 100;
    color: #7a5030;
    letter-spacing: 1px;
}

.site-footer a {
    position: absolute;
    left: 20px;
    color: #7a5030;
    text-decoration: none;
    font-weight: bold;
    padding: 2px 10px;
    border: 1px solid #d4b89a;
    border-radius: 6px;
    transition: background 0.2s;
}

.site-footer a:hover {
    background: rgba(255,255,255,0.5);
}

/* ===== INFO PAGE ===== */
.info-wrapper {
    max-width: 680px;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 20px 0 20px;
}

.info-title {
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-align: center;
}

.info-section {
    background: rgba(255,255,255,0.45);
    border-radius: 14px;
    padding: 24px 28px;
    border: 1px solid #d4b89a;
}

.info-section-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-align: center;
}

.info-text {
    font-size: 0.98rem;
    line-height: 1.7;
    opacity: 0.85;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.98rem;
    opacity: 0.85;
    line-height: 1.5;
}

.info-list li::before {
    content: '→ ';
    opacity: 0.5;
}

.info-thanks {
    text-align: center;
}

.info-credits {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
}

.credit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
    padding: 16px 28px;
    border: 1px solid #d4b89a;
}

.credit-icon {
    font-size: 2rem;
}

.credit-name {
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 1px;
}

.credit-role {
    font-size: 0.8rem;
    opacity: 0.6;
}

.credit-link {
    color: #7a5030;
    text-decoration: underline dotted;
}

.credit-link:hover {
    opacity: 0.7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f0d9c4;
    font-family: 'Georgia', serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #3a2a1a;
}

/* ===== FLOATING ? BACKGROUND ===== */
#bg-questions {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

#main-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.bg-q {
    position: absolute;
    color: #7a5030;
    font-family: 'Georgia', serif;
    font-weight: bold;
    user-select: none;
    animation: floatQ ease-in-out infinite;
    line-height: 1;
}

@keyframes floatQ {
    0%   { transform: translateY(0px)   rotate(-5deg); }
    30%  { transform: translateY(-22px) rotate(3deg);  }
    60%  { transform: translateY(-10px) rotate(-2deg); }
    100% { transform: translateY(0px)   rotate(-5deg); }
}

h1 {
    font-size: 8rem;
    margin-bottom: 8px;
    letter-spacing: 3px;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 36px;
}

.score-bar {
    display: flex;
    gap: 32px;
    margin-bottom: 28px;
    font-size: 1.1rem;
}

.score-bar span {
    background: rgba(255,255,255,0.45);
    padding: 8px 20px;
    border-radius: 8px;
}

.card {
    background: #fff9f3;
    border: 2px solid #d4b89a;
    border-radius: 16px;
    padding: 48px 56px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    max-width: 560px;
    width: 90%;
    background-size: cover;
    background-position: center;
}

.movie-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 32px;
    line-height: 1.3;
}

.question {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.input-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-wrapper {
    display: flex;
    border: 2px solid #d4b89a;
    border-radius: 10px;
    overflow: hidden;
    width: 360px;
}

.input-wrapper:focus-within {
    border-color: #b8885a;
}

.input-wrapper input {
    flex: 1;
    padding: 12px 16px;
    font-size: 1.3rem;
    border: none;
    background: #fff;
    color: #3a2a1a;
    outline: none;
    font-family: inherit;
    -moz-appearance: textfield;
}

.input-wrapper input::-webkit-outer-spin-button,
.input-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-wrapper button {
    padding: 12px 20px;
    min-width: 64px;
    font-size: 1.6rem;
    border: none;
    border-left: 2px solid #d4b89a;
    border-radius: 0;
    cursor: pointer;
    font-family: inherit;
    background: #b8885a;
    color: #fff;
    transition: background 0.2s;
    white-space: nowrap;
}

.input-wrapper button:hover {
    background: #a07040;
}

button {
    padding: 12px 28px;
    font-size: 1.05rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.btn-next {
    background: #3a2a1a;
    color: #fff;
    margin-top: 20px;
}

.btn-next:hover {
    background: #5a4030;
}

.result {
    margin-top: 24px;
    font-size: 1.1rem;
    line-height: 1.6;
    display: none;
}

.result .points {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 8px 0;
}

.result .correct {
    color: #2a7a3a;
}

.result .close-guess {
    color: #b8885a;
}

.result .far-guess {
    color: #a03030;
}

/* ===== MENU ===== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 600px;
    width: 90%;
    margin-top: 16px;
}

.menu-card {
    background: #fff9f3;
    border: 1px solid #d4b89a;
    border-radius: 12px;
    padding: 0;
    text-align: left;
    text-decoration: none;
    color: #3a2a1a;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.menu-card:hover {
    border-color: #b8885a;
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.menu-card-img {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #f5e8d8 0%, #eddfc8 100%);
    border-bottom: 1px solid #e8d0b8;
    flex-shrink: 0;
}

.menu-card-img img {
    height: 72px;
    width: auto;
}

.menu-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-card h2 {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.menu-card p {
    font-size: 0.82rem;
    opacity: 0.6;
    line-height: 1.4;
    margin: 0;
}

.badge-soon {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.68rem;
    background: #e8d0b8;
    color: #7a5030;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    align-self: flex-start;
}

.set-image {
    display: block;
    width: 600px;
    max-width: 90vw;
    height: 390px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: zoom-in;
    transition: none;
}

.set-image-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.set-image-overlay.active {
    display: flex;
}

.set-image-overlay img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}

/* ===== GAME TITLE ===== */
.card-game-title {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 4px;
    opacity: 0.85;
}

.lego-disclaimer {
    font-size: 0.7rem;
    opacity: 0.4;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

/* ===== LEGO LAYOUT TOGGLE ===== */
.lego-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lego-layout.horizontal {
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.lego-layout.horizontal .set-image {
    margin-bottom: 0;
}

.layout-toggle-btn {
    position: fixed;
    bottom: 72px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #b8885a;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.22);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.layout-toggle-btn:hover {
    background: #a07040;
    transform: scale(1.08);
}

/* ===== DISTANCE GAME ===== */
.distance-cities {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.city-name {
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
}

.city-arrow {
    font-size: 1.6rem;
    flex-shrink: 0;
}

/* ===== BACK BUTTON ===== */
.btn-back {
    position: fixed;
    top: 68px;
    left: 20px;
    background: rgba(255,249,243,0.9);
    border: 2px solid #d4b89a;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 0.95rem;
    text-decoration: none;
    color: #3a2a1a;
    transition: background 0.2s, border-color 0.2s;
    font-family: 'Georgia', serif;
    backdrop-filter: blur(4px);
}

.btn-back:hover {
    background: #fff9f3;
    border-color: #b8885a;
}

/* ===== COMING SOON PAGE ===== */
.coming-soon-wrapper {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.coming-soon-icon {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.coming-soon-label {
    margin-top: 16px;
    font-size: 0.85rem;
    background: #e8d0b8;
    color: #7a5030;
    padding: 5px 16px;
    border-radius: 20px;
    font-weight: bold;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: inline-block;
}

/* ===== SONGS GAME ===== */
.song-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.song-layout.horizontal {
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.song-layout.horizontal .song-embed-wrapper {
    margin-bottom: 0;
}

.song-embed-wrapper {
    width: 600px;
    max-width: 90vw;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.song-embed-wrapper iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

.song-artist {
    font-size: 0.95rem;
    opacity: 0.6;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
    h1 {
        font-size: 3.5rem;
        margin-bottom: 4px;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    .card {
        padding: 28px 20px;
        width: 95%;
    }

    .movie-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .input-wrapper {
        width: 100%;
        max-width: 340px;
    }

    .score-bar {
        gap: 12px;
        margin-bottom: 16px;
        font-size: 0.95rem;
    }

    .score-bar span {
        padding: 6px 14px;
    }

    .card-game-title {
        font-size: 1.2rem;
    }

    .question {
        font-size: 0.95rem;
    }

    .result {
        font-size: 1rem;
    }

    .result .points {
        font-size: 1.5rem;
    }

    .btn-next {
        padding: 10px 22px;
        font-size: 0.95rem;
    }

    .btn-back {
        font-size: 0.82rem;
        padding: 6px 12px;
        top: 62px;
    }

    .site-header {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .menu-card-img {
        height: 90px;
    }

    .menu-card-img img {
        height: 56px;
    }

    .menu-card h2 {
        font-size: 1rem;
    }

    .song-embed-wrapper {
        width: 95vw;
    }
}

/* ===== LEFT AD PANEL ===== */
.ad-left {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 50;
    display: none;
}

@media (min-width: 1100px) {
    .ad-left {
        display: block;
    }
}

/* ===== EASTER EGG ===== */
.wankil-egg {
    position: fixed;
    bottom: 50px;
    right: 0;
    width: 60px;
    transform: translateX(50%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 101;
    cursor: pointer;
}

.wankil-egg:hover,
.wankil-egg.peeking {
    transform: translateX(0%);
}
