html,
body {
    min-height: 100%;
    overflow: hidden;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: transparent;
    background-image: url("./assets/images/bkg-wide-2.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

button:disabled {
    cursor: not-allowed;
}

code {
    border-radius: 9999px;
    background: rgba(148, 163, 184, 0.15);
    padding: 0.15rem 0.5rem;
}

:root {
    --app-padding: clamp(12px, 2.5vw, 24px);
    --stage-ratio: calc(1080 / 1920);
    --stage-max-width: calc(100vw - (var(--app-padding) * 2));
    /* --stage-max-height: calc(100svh - (var(--app-padding) * 2)); */
    --stage-max-height: calc(100svh - (var(--app-padding) * 2));
}

.app-shell {
    min-height: 100svh;
    padding: var(--app-padding);
}

.app-stage {
    width: min(var(--stage-max-width), calc(var(--stage-max-height) * var(--stage-ratio)));
    height: min(var(--stage-max-height), calc(var(--stage-max-width) / var(--stage-ratio)));
}

.app-panel {
    background-color: transparent;
    padding-top: 0.4rem;
}

.screen-transition-stage {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: center center;
}

.screen-transition-stage.is-transitioning {
    animation: screen-stage-zoom-out 500ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    pointer-events: none;
}

.screen-transition-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.screen-transition-overlay.is-preparing {
    opacity: 1;
}

.screen-transition-overlay.is-visible {
    opacity: 1;
    transition: opacity 400ms ease;
}

.screen-transition-overlay.is-exiting {
    opacity: 0;
    transition: opacity 500ms ease;
}

.screen-transition-logo {
    width: min(52vw, 360px);
    max-width: 72%;
    height: auto;
    opacity: 1;
    transform: scale(0.42);
    filter: drop-shadow(0 12px 34px rgba(0, 0, 0, 0.38));
}

.screen-transition-overlay.is-preparing .screen-transition-logo {
    animation: screen-transition-logo-approach 500ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.screen-transition-overlay.is-visible .screen-transition-logo {
    opacity: 1;
    transform: scale(1);
    transition: opacity 400ms ease, transform 400ms ease;
}

.screen-transition-overlay.is-exiting .screen-transition-logo {
    animation: screen-transition-logo-approach 500ms cubic-bezier(0.22, 1, 0.36, 1) reverse forwards;
}

@keyframes screen-stage-zoom-out {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: scale(1.85) translateY(6%);
        filter: blur(8px);
    }
}

@keyframes screen-transition-logo-approach {
    0% {
        opacity: 1;
        transform: scale(0.42);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.landing-screen {
    position: relative;
    overflow: hidden;
}

.wizard-screen {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.game-screen {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
    padding-bottom: 0.2rem;
}

.answer-feedback {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 30;
    transform: translate(-50%, -50%);
    font-size: clamp(2.5rem, 8vw, 4.75rem);
    font-weight: 900;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.answer-feedback-success {
    color: #16a34a;
}

.answer-feedback-fail {
    color: #dc2626;
}

.answer-feedback-visible {
    animation: answer-feedback-float 1s ease-out forwards;
}

@keyframes answer-feedback-float {
    0% {
        opacity: 0;
        transform: translate(-50%, -35%);
    }

    15% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -90%);
    }
}

.brand-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.25rem 0 0.5rem;
}

.brand-row-game {
    flex: 0 0 auto;
    padding: 0.3rem 0 0.45rem;
}

.brand-logo {
    display: block;
    width: auto;
    height: 3rem;
    object-fit: contain;
}

.brand-debug-user-id {
    max-width: min(78vw, 24rem);
    padding: 0.2rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.7);
    color: rgba(226, 232, 240, 0.95);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-logo-game {
    height: 2.8rem;
}

.brand-logo-telefe {
    height: 2.1rem;
}

.brand-logo-telefe-game {
    height: 1.95rem;
}

.landing-cta {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* gap: 0.15rem;
    padding: 0 1rem 1rem; */
}

.landing-partner-mark {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.landing-cta .landing-partner-mark+.landing-partner-mark {
    width: 65%;
    /* margin-top: -0.35rem; */
}

.landing-cta .start-button {
    /* margin-top: -0.1rem; */
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
    margin-top: 1.75rem;
    padding: 0 1rem 1rem;
}

.landing-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #18212c;
    container-type: inline-size;
}

/* .landing-feature-title,
.landing-feature-copy {
    color: white;
    mix-blend-mode: difference;
} */

.landing-feature-icon {
    width: clamp(3.9rem, 9vw, 5.3rem);
    height: auto;
    margin-bottom: 0;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
}

.landing-feature-title {
    margin: 0;
    font-size: clamp(0.72rem, 3.2cqw, 1.08rem);
    font-weight: 800;
    line-height: 1.1;
}

.landing-feature-copy {
    max-width: 95%;
    margin: 0.35rem 0 0;
    font-size: clamp(0.52rem, 2.15cqw, 0.76rem);
    font-weight: 500;
    line-height: 1.25;
}

.question-hud {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
}

.question-hud.question-fade-enter,
.question-layout.question-fade-enter {
    animation: question-fade-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.game-toolbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 0.15rem;
}

.audio-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(2.85rem, 8.3vw, 3.75rem);
    height: clamp(2.85rem, 8.3vw, 3.75rem);
    border: 0;
    border-radius: 999px;
    background: rgba(248, 247, 241, 0.94);
    box-shadow:
        0 2px 5px rgba(44, 37, 25, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
    color: #0f6a3a;
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease;
}

.audio-toggle-button:hover {
    background: rgba(255, 255, 250, 0.98);
    box-shadow:
        0 3px 8px rgba(44, 37, 25, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
    transform: translateY(-1px);
}

.audio-toggle-button:active {
    transform: scale(0.96);
}

.audio-toggle-button:focus-visible {
    outline: 3px solid rgba(15, 106, 58, 0.32);
    outline-offset: 3px;
}

.audio-toggle-button-muted {
    color: #6b665d;
}

.audio-toggle-icon {
    display: block;
    width: 48%;
    height: 48%;
    object-fit: contain;
}

.game-status-banner {
    flex: 0 0 auto;
    margin-top: 0.15rem;
}

.game-panel {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 0.35rem;
    display: flex;
    flex-direction: column;
}

.hud-pill,
.points-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.35rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(248, 244, 237, 0.92);
    box-shadow: 0 2px 6px rgba(44, 37, 25, 0.08);
    color: #4b5563;
    font-weight: 700;
}

.hud-center {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: #6b665d;
}

.hud-label,
.hud-progress-copy {
    font-size: 1rem;
    font-weight: 500;
}

.hud-category-copy {
    max-width: 12rem;
    border-radius: 999px;
    background: rgba(248, 244, 237, 0.92);
    padding: 0.25rem 0.7rem;
    color: #2f6f6d;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hud-icon,
.points-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
}

.streak-icon {
    width: 1.35rem;
    height: 1.35rem;
}

.streak-icon-static,
.streak-icon-animated,
.streak-icon-animated img {
    display: block;
    width: 100%;
    height: 100%;
}

.streak-icon-static {
    filter: grayscale(1) saturate(0) brightness(0.78);
    opacity: 0.55;
}

.streak-icon-animated {
    display: none;
}

.streak-icon-active .streak-icon-static {
    display: none;
}

.streak-icon-active .streak-icon-animated {
    display: block;
}

.hud-value,
.points-value {
    font-size: 1.05rem;
    line-height: 1;
}

.question-shell {
    width: min(100%, 27rem);
    margin: 0 auto;
    border-radius: 0.8rem;
    background: rgba(62, 117, 108, 0.96);
    padding: 0.62rem;
    box-shadow: inset 0 0 0 1px rgba(23, 70, 64, 0.55);
}

.question-layout {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.45rem;
}

.question-layout-image-choice {
    gap: 0.65rem;
}

.question-progress-track {
    height: 0.38rem;
    border-radius: 999px;
    background: rgba(220, 252, 231, 0.95);
    overflow: hidden;
    margin-bottom: 0.4rem;
    transition: background-color 180ms ease, box-shadow 180ms ease;
}

.question-progress-track-yellow {
    background: rgba(254, 249, 195, 0.98);
    box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.2);
}

.question-progress-track-orange {
    background: rgba(255, 237, 213, 0.98);
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.18);
}

.question-progress-track-red {
    background: rgba(254, 226, 226, 0.98);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.24), 0 4px 14px rgba(220, 38, 38, 0.18);
}

.question-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #86efac 0%, #22c55e 100%);
    transition: width 30s linear;
}

.question-progress-fill-yellow {
    background: linear-gradient(90deg, #fde68a 0%, #eab308 100%);
}

.question-progress-fill-orange {
    background: linear-gradient(90deg, #f7c948 0%, #f97316 100%);
}

.question-progress-fill-red {
    background: linear-gradient(90deg, #fb7185 0%, #dc2626 100%);
}

.question-card {
    position: relative;
    border-radius: 1.9rem;
    background: rgba(203, 222, 224, 0.96);
    padding: 0 0 0.65rem;
    box-shadow: 0 10px 24px rgba(8, 27, 26, 0.16);
}

.streak-message {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    max-width: calc(100% - 5.7rem);
    min-height: 2.9rem;
    opacity: 0;
    transform: translateX(-50%) translateY(-0.28rem) scale(0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.72rem;
    background: rgba(8, 52, 36, 0.62);
    box-shadow: 0 8px 18px rgba(5, 20, 16, 0.22);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
    padding: 0.52rem 1.15rem 0.62rem;
    text-align: center;
    text-transform: uppercase;
    transition: opacity 180ms ease-out, transform 180ms ease-out;
    white-space: nowrap;
}

.streak-message-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.streak-message-hiding {
    opacity: 0;
    transform: translateX(-50%) translateY(-0.18rem) scale(0.98);
    transition-duration: 260ms;
}

.question-timer {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3.7rem;
    min-height: 3.35rem;
    padding: 0.35rem 0.65rem 0.55rem;
    border-radius: 1.6rem 0 0 1.6rem;
    background: #22c55e;
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
    transform-origin: top right;
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.question-timer-yellow {
    background: #eab308;
    box-shadow: 0 8px 20px rgba(234, 179, 8, 0.3);
}

.question-timer-orange {
    background: #f97316;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.32);
}

.question-timer-red {
    background: #dc2626;
    box-shadow: 0 8px 22px rgba(220, 38, 38, 0.42);
}

.question-timer-pulse {
    animation: question-timer-urgent-pulse 1s ease-in-out infinite;
}

@keyframes question-timer-urgent-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.09);
    }
}

.question-media-frame {
    overflow: hidden;
    border-radius: 1.5rem 1.5rem 0 0;
    background: rgba(30, 41, 59, 0.28);
}

.question-media-image {
    display: block;
    width: 100%;
    aspect-ratio: 1.35 / 1;
    max-height: min(28svh, 15rem);
    object-fit: cover;
}

.question-body-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: calc(100% - 1.3rem);
    margin: 0.55rem auto 0;
    aspect-ratio: 439 / 80;
    border-radius: 1.35rem;
    background-image: url("./assets/images/bk_question.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding: 0.48rem 1rem;
}

.question-body-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.question-points {
    margin-top: 0.55rem;
    text-align: center;
    color: #446d5f;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.answers-stack {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    width: min(100%, 27rem);
    margin: 0 auto;
    padding: 0px 5px;
}

.answers-grid-image-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: min(100%, 27rem);
    margin: 0 auto;
    padding: 0 5px;
}

.answer-option {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 439 / 80;
    border: 0;
    /* background-color: transparent; */
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    min-height: 2.85rem;
    padding: 0.38rem 1rem 0.38rem 3.7rem;
    transition: transform 500ms ease, filter 500ms ease, opacity 500ms ease, background-color 180ms ease;
    background-color: white;
    border-radius: 20px;
    position: relative;
    max-height: 35px;
    overflow: hidden;
}

.answer-option:before {
    content: 'A';
    color: #1f2937;
    font-size: 1.5rem;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.5rem;
    margin: auto;
    display: flex;
    align-self: center;
}

.answer-option:nth-child(2):before {
    content: 'B';
}

.answer-option:nth-child(3):before {
    content: 'C';
}

.answer-option:nth-child(4):before {
    content: 'D';
}

.answer-option.answer-option-enter {
    animation: answer-option-fade-enter 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--answer-enter-delay, 0ms);
}

.answer-option:hover:not(:disabled) {
    filter: brightness(1.02);
    transform: translateY(-1px);
}

.answer-option-pending {
    filter: saturate(0.82) brightness(0.96);
    opacity: 0.78;
}

.answer-option-selected {
    opacity: 1;
    filter: brightness(1.03);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.72), 0 10px 24px rgba(8, 27, 26, 0.16);
}

.answer-option-correct {
    opacity: 1;
    background-color: #bbf7d0;
    filter: brightness(1.08) saturate(1.1);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.86), 0 12px 28px rgba(22, 163, 74, 0.22);
}

.answer-option-incorrect {
    opacity: 1;
    background-color: #fecaca;
    filter: brightness(0.98) saturate(0.86);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.78), 0 12px 28px rgba(220, 38, 38, 0.18);
}

.answer-option-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    min-width: 0;
    flex-shrink: 0;
}

.answer-option-image-choice {
    align-items: stretch;
    justify-content: stretch;
    aspect-ratio: 1 / 0.82;
    min-height: 0;
    max-height: none;
    padding: 0.55rem;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(8, 27, 26, 0.12);
}

.answer-option-image-choice::before {
    content: none;
}

.answer-option-badge {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    background: #4f8f8e;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(8, 27, 26, 0.16);
}

.answer-option-choice-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(245, 247, 248, 0.92), rgba(227, 232, 234, 0.96));
}

.answer-option-correct .answer-option-choice-frame {
    background: #bbf7d0;
}

.answer-option-incorrect .answer-option-choice-frame {
    background: #fecaca;
}

.answer-option-choice-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.start-button {
    width: 360px;
    min-height: auto;
    transition: transform 140ms ease, filter 140ms ease;
}

.start-button:active:not(:disabled) {
    transform: scale(1.04);
}

.start-button-pop {
    animation: start-button-pop 220ms ease-out;
}

@media (max-width: 560px) {
    .landing-cta {
        gap: 0.1rem;
        padding-bottom: 0.8rem;
    }

    .landing-features {
        gap: 0.55rem;
        margin-top: 1.35rem;
        padding: 0 0.45rem 0.8rem;
    }

    .landing-feature-copy {
        max-width: 10ch;
    }
}

@keyframes start-button-pop {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes question-fade-enter {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes answer-option-fade-enter {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-drawer {
    position: absolute;
    left: clamp(0.7rem, 2vw, 1.25rem);
    right: clamp(0.7rem, 2vw, 1.25rem);
    bottom: 0;
    min-height: clamp(7.4rem, 19vh, 5rem);
    border-radius: 2rem 2rem 0 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background:
        linear-gradient(180deg, rgba(221, 231, 238, 0.38) 0%, rgba(171, 187, 197, 0.24) 100%),
        rgba(203, 216, 225, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 -6px 32px rgba(11, 24, 30, 0.16);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    overflow: hidden;
    pointer-events: none;
}

.home-drawer-glow,
.home-drawer-sheen,
.home-drawer-dust {
    position: absolute;
    inset: 0;
}

.home-drawer-glow {
    background:
        radial-gradient(circle at 14% 35%, rgba(247, 223, 150, 0.16), transparent 22%),
        radial-gradient(circle at 88% 24%, rgba(244, 232, 176, 0.1), transparent 20%);
}

.home-drawer-sheen {
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 20%, transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 50%);
    mix-blend-mode: screen;
    opacity: 0.9;
}

.home-drawer-actions {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: end;
    justify-content: center;
    height: 100%;
    padding: 1.25rem 1.5rem 1rem;
}

.home-drawer-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    color: rgba(37, 32, 22, 0.92);
}

.home-drawer-label {
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.drawer-icon {
    position: relative;
    width: 4.4rem;
    height: 3.6rem;
    color: #e7dbaf;
    filter: drop-shadow(0 0 10px rgba(250, 228, 155, 0.24));
}

.drawer-icon span {
    position: absolute;
    display: block;
    border: 0.18rem solid currentColor;
}

.drawer-icon-leaderboard span:nth-child(1),
.drawer-icon-leaderboard span:nth-child(2),
.drawer-icon-leaderboard span:nth-child(3) {
    bottom: 0;
    width: 0.88rem;
    border-radius: 0.15rem;
}

.drawer-icon-leaderboard span:nth-child(1) {
    left: 0.35rem;
    height: 1rem;
}

.drawer-icon-leaderboard span:nth-child(2) {
    left: 1.55rem;
    height: 1.55rem;
}

.drawer-icon-leaderboard span:nth-child(3) {
    left: 2.75rem;
    height: 2.1rem;
}

.drawer-icon-leaderboard::before,
.drawer-icon-leaderboard::after {
    content: "";
    position: absolute;
    border: 0.16rem solid currentColor;
    transform: rotate(35deg);
}

.drawer-icon-leaderboard::before {
    top: 0.1rem;
    left: 2.1rem;
    width: 0.6rem;
    height: 0.6rem;
    clip-path: polygon(50% 0%, 62% 35%, 100% 35%, 69% 57%, 80% 100%, 50% 73%, 20% 100%, 31% 57%, 0% 35%, 38% 35%);
}

.drawer-icon-leaderboard::after {
    top: 0.8rem;
    left: 3.05rem;
    width: 0.38rem;
    height: 0.38rem;
    clip-path: polygon(50% 0%, 62% 35%, 100% 35%, 69% 57%, 80% 100%, 50% 73%, 20% 100%, 31% 57%, 0% 35%, 38% 35%);
}

.drawer-icon-profile span:nth-child(1) {
    top: 0.15rem;
    left: 1.42rem;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
}

.drawer-icon-profile span:nth-child(2) {
    left: 0.7rem;
    bottom: 0.35rem;
    width: 2.72rem;
    height: 1.55rem;
    border-radius: 1rem 1rem 0.9rem 0.9rem;
}

.drawer-icon-profile span:nth-child(3) {
    right: 0.18rem;
    bottom: 0.1rem;
    width: 0.92rem;
    height: 0.92rem;
    border-radius: 50%;
}

.drawer-icon-profile::before,
.drawer-icon-profile::after {
    content: "";
    position: absolute;
    right: 0.37rem;
    bottom: 0.29rem;
    background: currentColor;
    border-radius: 999px;
}

.drawer-icon-profile::before {
    width: 0.16rem;
    height: 0.92rem;
    left: auto;
    top: auto;
    transform: rotate(35deg);
    transform-origin: center;
}

.drawer-icon-profile::after {
    width: 0.92rem;
    height: 0.16rem;
}

.home-drawer-dust {
    z-index: 1;
    pointer-events: none;
}

.dust {
    position: absolute;
    width: var(--dust-size, 0.24rem);
    height: var(--dust-size, 0.24rem);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 251, 226, 0.98) 0%, rgba(244, 220, 124, 0.96) 48%, rgba(244, 220, 124, 0) 100%);
    box-shadow:
        0 0 8px rgba(255, 238, 170, 0.55),
        0 0 18px rgba(255, 226, 123, 0.2);
    opacity: var(--dust-opacity, 0.85);
    animation: fairy-drift var(--dust-duration, 7s) ease-in-out infinite;
    animation-delay: var(--dust-delay, 0s);
}

.dust-1 {
    left: 5%;
    top: 46%;
    --dust-size: 0.34rem;
    --dust-duration: 7.8s;
}

.dust-2 {
    left: 12%;
    top: 26%;
    --dust-size: 0.22rem;
    --dust-duration: 6.9s;
    --dust-delay: -2.4s;
}

.dust-3 {
    left: 20%;
    top: 58%;
    --dust-size: 0.18rem;
    --dust-duration: 8.4s;
    --dust-delay: -3.8s;
}

.dust-4 {
    left: 27%;
    top: 32%;
    --dust-size: 0.16rem;
    --dust-duration: 7.2s;
    --dust-delay: -1.1s;
}

.dust-5 {
    left: 39%;
    top: 18%;
    --dust-size: 0.2rem;
    --dust-duration: 9.1s;
    --dust-delay: -4.6s;
}

.dust-6 {
    left: 49%;
    top: 48%;
    --dust-size: 0.14rem;
    --dust-duration: 6.6s;
    --dust-delay: -2.2s;
}

.dust-7 {
    left: 58%;
    top: 24%;
    --dust-size: 0.24rem;
    --dust-duration: 8.2s;
    --dust-delay: -5.1s;
}

.dust-8 {
    left: 65%;
    top: 52%;
    --dust-size: 0.18rem;
    --dust-duration: 7.4s;
    --dust-delay: -1.7s;
}

.dust-9 {
    left: 73%;
    top: 34%;
    --dust-size: 0.28rem;
    --dust-duration: 8.8s;
    --dust-delay: -3.3s;
}

.dust-10 {
    left: 82%;
    top: 20%;
    --dust-size: 0.16rem;
    --dust-duration: 6.8s;
    --dust-delay: -4.2s;
}

.dust-11 {
    left: 89%;
    top: 42%;
    --dust-size: 0.22rem;
    --dust-duration: 7.6s;
    --dust-delay: -2.8s;
}

.dust-12 {
    left: 94%;
    top: 16%;
    --dust-size: 0.14rem;
    --dust-duration: 9.4s;
    --dust-delay: -6.2s;
}

@keyframes fairy-drift {
    0% {
        transform: translate3d(0, 0, 0) scale(0.96);
        opacity: calc(var(--dust-opacity, 0.85) * 0.78);
    }

    25% {
        transform: translate3d(0.18rem, -0.08rem, 0) scale(1);
        opacity: var(--dust-opacity, 0.85);
    }

    50% {
        transform: translate3d(-0.14rem, 0.12rem, 0) scale(0.98);
        opacity: calc(var(--dust-opacity, 0.85) * 0.72);
    }

    75% {
        transform: translate3d(0.1rem, 0.04rem, 0) scale(1.02);
        opacity: calc(var(--dust-opacity, 0.85) * 0.92);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(0.96);
        opacity: calc(var(--dust-opacity, 0.85) * 0.78);
    }
}

.game-sponsor-banner {
    position: relative;
    flex: 0 0 auto;
    z-index: 5;
    display: flex;
    justify-content: center;
    margin-top: 0.45rem;
    width: calc(100% + 1rem);
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding: 0.2rem 0 0;
    background: linear-gradient(to top, rgba(8, 12, 18, 0.22), rgba(8, 12, 18, 0));
}

.game-sponsor-image {
    display: block;
    width: 100%;
    height: 42px;
    object-fit: cover;
    object-position: center;
}

.ranking-panel {
    flex: 0 1 auto;
    min-height: 0;
    width: min(100%, 22.5rem);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0.9rem;
    background: #f8f7f1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.ranking-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    min-height: 4.15rem;
    padding: 0.72rem 1.35rem 0.65rem 1rem;
    border-radius: 0.9rem 0.9rem 0 0;
    background: #b0182a;
    color: #ffffff;
}

.ranking-header-icon,
.personal-progress-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.22);
}

.ranking-heading,
.personal-progress-heading {
    min-width: 0;
}

.ranking-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.05;
}

.ranking-subtitle {
    margin: 0.18rem 0 0;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.95);
}

.ranking-bars-icon,
.personal-progress-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 0.22rem;
    width: 2rem;
    height: 1.75rem;
}

.ranking-bars-icon span,
.personal-progress-bars span {
    display: block;
    width: 0.36rem;
    border-radius: 0.08rem 0.08rem 0 0;
}

.ranking-bars-icon span {
    background: #f4d74b;
}

.personal-progress-bars span {
    background: #6bd22f;
    transform: skewY(-18deg);
}

.ranking-bars-icon span:nth-child(1),
.personal-progress-bars span:nth-child(1) {
    height: 0.85rem;
}

.ranking-bars-icon span:nth-child(2),
.personal-progress-bars span:nth-child(2) {
    height: 1.25rem;
}

.ranking-bars-icon span:nth-child(3),
.personal-progress-bars span:nth-child(3) {
    height: 1.65rem;
}

.ranking-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.12rem;
    margin: 0;
    padding: 0.62rem 1.45rem 0.45rem;
    background: #ffffff;
    border-radius: 0.8rem 0.8rem 0 0;
    box-shadow: 0 -1px 0 rgba(15, 23, 42, 0.05);
}

.ranking-tab {
    min-width: 0;
    min-height: 1.38rem;
    border: 1px solid #e1e1de;
    background: #fbfbf8;
    color: #4b5563;
    font-size: 0.67rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.ranking-tab:first-child {
    border-radius: 0.35rem 0.18rem 0.18rem 0.35rem;
}

.ranking-tab:last-child {
    border-radius: 0.18rem 0.35rem 0.35rem 0.18rem;
}

.ranking-tab.is-active {
    border-color: #b0182a;
    background: #b0182a;
    color: #ffffff;
}

.ranking-message {
    margin: 0 1rem 0.35rem;
    padding: 0.42rem 0.65rem;
    border-radius: 0.45rem;
    background: rgba(176, 24, 42, 0.08);
    color: #7f1d1d;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 0.8rem 0.8rem;
    background: #ffffff;
}

.ranking-row {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: 0.55rem;
    width: 100%;
    align-items: center;
    min-height: 1.58rem;
    padding: 0.14rem 0.45rem 0.14rem 0.2rem;
    background: #efefed;
    color: #30343b;
}

.ranking-row:nth-child(odd) {
    background: #eadfe0;
}

.ranking-row-podium:nth-child(1) {
    background: #eadedf;
}

.ranking-row-podium:nth-child(2) {
    background: #e7e2e2;
}

.ranking-row-podium:nth-child(3) {
    background: #e5d8d8;
}

.ranking-row-current {
    outline: 2px solid rgba(22, 101, 52, 0.62);
    outline-offset: -2px;
}

.ranking-row-empty {
    color: #6b7280;
}

.ranking-row-empty .ranking-position {
    background: rgba(255, 255, 255, 0.52);
    color: #6b7280;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.ranking-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.36rem;
    height: 1.36rem;
    border-radius: 0.22rem;
    background: #ffffff;
    color: #4b5563;
    font-size: 0.72rem;
    font-weight: 900;
}

.ranking-row-podium .ranking-position {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.88);
    background: linear-gradient(145deg, #ffd34d, #ef9f19);
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
}

.ranking-row-podium:nth-child(2) .ranking-position {
    background: linear-gradient(145deg, #f4f7f8, #aeb8bd);
}

.ranking-row-podium:nth-child(3) .ranking-position {
    background: linear-gradient(145deg, #e7a267, #a95d28);
}

.ranking-player {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.04rem;
}

.ranking-user {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.05;
}

.ranking-user-id {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.45rem;
    font-weight: 700;
    line-height: 1;
    color: #6b7280;
}

.ranking-score {
    justify-self: end;
    color: #b0182a;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.personal-progress-panel {
    flex: 0 0 auto;
    width: min(100%, 22.5rem);
    min-height: 9.7rem;
    margin: 0.9rem auto 0;
    overflow: hidden;
    border-radius: 0.9rem;
    background: #f8f7f1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.personal-progress-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    min-height: 4.15rem;
    padding: 0.72rem 1.35rem 0.65rem 1rem;
    background: linear-gradient(135deg, #18713d, #0d5835);
    color: #ffffff;
}

.personal-progress-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.05;
}

.personal-progress-subtitle {
    margin: 0.18rem 0 0;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.95);
}

.personal-progress-body {
    min-height: 5.55rem;
    border-radius: 0.8rem 0.8rem 0 0;
    background: #f8f7f1;
}

@media (min-height: 850px) {
    .personal-progress-panel {
        min-height: 12.7rem;
    }

    .personal-progress-body {
        min-height: 8.55rem;
    }
}

@media (max-height: 820px) {
    .personal-progress-panel {
        min-height: 7rem;
        margin-top: 0.65rem;
    }

    .personal-progress-body {
        min-height: 2.85rem;
    }
}

.start-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.85);
    outline-offset: 4px;
}

@supports not (height: 100svh) {
    :root {
        --stage-max-height: calc(100vh - (var(--app-padding) * 2));
    }
}

@media (max-width: 768px) {
    body {
        background-position: 50% center;
    }

    .question-hud {
        gap: 0.4rem;
    }

    .hud-center {
        gap: 0.6rem;
    }

    .hud-label,
    .hud-progress-copy,
    .hud-value {
        font-size: 0.92rem;
    }

    .question-shell {
        width: 100%;
        padding: 0.55rem;
    }

    .question-timer {
        min-width: 3.35rem;
        min-height: 3rem;
        font-size: 1.3rem;
    }

    .brand-row {
        gap: 0.65rem;
    }

    .brand-logo {
        height: 2.5rem;
    }

    .landing-cta {
        gap: 0.12rem;
        padding-bottom: 5.8rem;
    }

    .landing-partner-mark {
        width: 100%;
    }

    .brand-logo-telefe {
        height: 1.7rem;
    }

    .game-screen {
        gap: 0.4rem;
    }

    .game-panel {
        margin-top: 0.2rem;
    }

    .question-layout {
        gap: 0.35rem;
    }

    .question-layout-image-choice {
        gap: 0.5rem;
    }

    /* .question-card, */
    .question-media-image {
        max-height: min(24svh, 12.5rem);
    }

    .answers-stack {
        gap: 0.3rem;
    }

    .answers-grid-image-choice {
        gap: 0.38rem;
    }

    .answer-option {
        min-height: 2.55rem;
        padding: 0.32rem 0.9rem 0.32rem 3.45rem;
        max-height: 45px;
    }

    .answer-option-image-choice {
        padding: 0.42rem;
        aspect-ratio: 1 / 0.84;
    }

    .answer-option-badge {
        top: 0.42rem;
        left: 0.42rem;
        width: 1.65rem;
        height: 1.65rem;
        font-size: 0.92rem;
    }

    .game-sponsor-image {
        height: 38px;
    }

    .home-drawer {
        min-height: 6.6rem;
        border-radius: 1.55rem 1.55rem 0 0;
    }

    .home-drawer-actions {
        padding: 1rem 1rem 0.8rem;
    }

    .home-drawer-label {
        font-size: 0.88rem;
    }

    .drawer-icon {
        width: 3.6rem;
        height: 2.95rem;
    }
}
