﻿/* QwizzWizz | Consolidated Midnight Blue Theme

   Scoped to .clue-game-shell; gameplay JavaScript unchanged.

   Responsive layouts, animations and accessibility retained. */


.clue-game-shell, .clue-game-shell * {
    box-sizing: border-box;
}

    .clue-game-shell button, .clue-game-shell input {
        font: inherit;
    }

    .clue-game-shell .game-container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .clue-game-shell .app-heading-brand {
        display: flex;
        align-items: center;
        gap: 14px;
        min-width: 0;
    }

    .clue-game-shell .app-heading-copy {
        min-width: 0;
    }

    .clue-game-shell .meta-item:nth-child(3) {
        background: linear-gradient(145deg, #fff, #f4f5ff);
        border-color: #dfe3ff;
    }

    .clue-game-shell .multiplier-tag::before {
        content: "↗";
        display: inline-block;
        font-size: .95rem;
        line-height: 1;
    }

    .clue-game-shell .question-area {
        margin-bottom: 26px;
    }

    .clue-game-shell .clue-bubble:first-child {
        background: #f5f6ff;
    }

    .clue-game-shell input[type=range]:focus-visible {
        outline: 3px solid rgba(99,102,241,.24);
        outline-offset: 4px;
        border-radius: 8px;
    }

    .clue-game-shell input[type=range]:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

    .clue-game-shell .all-in-warning-copy {
        min-width: 0;
    }

    .clue-game-shell .all-in-pop {
        animation: allInEnter 240ms cubic-bezier(.2,.8,.2,1) both;
    }

    .clue-game-shell .btn-primary {
        color: #fff;
        background: linear-gradient(105deg, #5b5ce2, #4f46e5 55%, #4338ca);
        box-shadow: 0 8px 17px rgba(79,70,229,.22), inset 0 1px 0 rgba(255,255,255,.18);
    }

        .clue-game-shell .btn-primary:hover:not(:disabled) {
            background: linear-gradient(105deg, #4f46e5, #4338ca);
            box-shadow: 0 11px 21px rgba(79,70,229,.27), inset 0 1px 0 rgba(255,255,255,.18);
            transform: translateY(-1px);
        }

    .clue-game-shell .button-main:focus-visible, .clue-game-shell .game-reset-container .btn:focus-visible {
        outline: 3px solid rgba(99,102,241,.35);
        outline-offset: 3px;
    }

    .clue-game-shell button:disabled {
        opacity: .55;
        cursor: not-allowed;
        box-shadow: none;
    }

    .clue-game-shell .hidden {
        display: none !important;
    }

    .clue-game-shell .game-reset-container {
        display: flex;
        justify-content: center;
        margin: 18px auto 0;
    }

    .clue-game-shell .game-meta .meta-item {
        animation: riseIn 420ms cubic-bezier(.2,.7,.25,1) both;
    }

        .clue-game-shell .game-meta .meta-item:nth-child(1) {
            animation-delay: 70ms;
        }

        .clue-game-shell .game-meta .meta-item:nth-child(2) {
            animation-delay: 115ms;
        }

    .clue-game-shell .question-arrive {
        animation: questionArrive 300ms cubic-bezier(.2,.7,.25,1) both;
    }

    .clue-game-shell .budget-row .multiplier-tag, .clue-game-shell .budget-row .budget-pill {
        transition: box-shadow 180ms ease, border-color 180ms ease;
    }



    .clue-game-shell .clue-bubble {
        position: relative;
        margin: 0;
        padding: 15px 17px 15px 19px;
        color: #354158;
        background: #f7f8fc;
        border: 1px solid #e8ecf5;
        border-left: 4px solid #818cf8;
        border-radius: 13px;
        font-size: .94rem;
        line-height: 1.6;
        overflow-wrap: anywhere;
        animation: cluePopIn 220ms ease-out both;
        box-shadow: 0 2px 5px rgba(26,39,78,.025);
        transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    }

        .clue-game-shell .clue-bubble:hover {
            background: #f3f5ff;
            border-color: #dfe4ff;
            box-shadow: 0 5px 12px rgba(35,48,90,.045);
        }

    .clue-game-shell .reward-pulse {
        animation: rewardPulse 230ms cubic-bezier(.2,.8,.2,1);
    }

    .clue-game-shell .number-pop {
        animation: numberPop 280ms cubic-bezier(.2,.8,.2,1);
    }

    .clue-game-shell .button-main {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        min-height: 54px;
        padding: 15px 20px;
        border: 0;
        border-radius: 13px;
        font-size: .97rem;
        font-weight: 800;
        letter-spacing: -.01em;
        cursor: pointer;
        transition: transform var(--transition), box-shadow var(--transition), background var(--transition), opacity var(--transition);
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .clue-game-shell .btn-primary:active:not(:disabled) {
        transform: translateY(1px) scale(.992);
        box-shadow: 0 3px 8px rgba(79,70,229,.18);
    }

    .clue-game-shell #result-title::before {
        display: inline-grid;
        width: 34px;
        height: 34px;
        margin: 0 8px 0 0;
        place-items: center;
        border-radius: 50%;
        font-size: 1.1rem;
        vertical-align: 3px;
        animation: resultIconIn 300ms cubic-bezier(.2,.8,.2,1) both;
    }

.clue-game-shell {
    --brand-primary: #ffba24;
    --brand-primary-dark: #e99a09;
    --brand-primary-soft: #163b61;
    --brand-success: #42dba6;
    --brand-danger: #ff7891;
    --text-main: #f6f9ff;
    --text-muted: #a7c4df;
    --line: #244d75;
    --surface: #082a4b;
    --surface-soft: #0a3155;
    --transition: 180ms ease;
    width: min(100% - 24px, 680px);
    margin: 22px auto;
    padding: clamp(16px, 3vw, 28px);
    color: var(--text-main);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(155deg, #08294e 0%, #041b36 72%, #061f3d 100%);
    border: 1px solid #20527e;
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(0, 16, 40, .3);
    animation: shellEnter 420ms cubic-bezier(.2,.7,.25,1) both;
    color-scheme: dark;
}

    .clue-game-shell .app-heading {
        position: relative;
        z-index: 100; /* Keep the animated header and dropdown above the score cards. */
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        margin: 0 0 20px;
        animation: riseIn 420ms 35ms cubic-bezier(.2,.7,.25,1) both;
    }

    .clue-game-shell .app-logo {
        display: grid;
        place-items: center;
        flex: 0 0 52px;
        width: 46px;
        height: 46px;
        border-radius: 14px;
        color: #062440;
        font-size: 27px;
        background: linear-gradient(145deg, #ffda70, #ffae13);
        box-shadow: 0 7px 20px rgba(255, 184, 36, .15);
        flex-basis: 46px;
    }

    .clue-game-shell .app-eyebrow {
        margin: 0 0 3px;
        color: #83c7f1;
        font-size: .68rem;
        font-weight: 850;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    .clue-game-shell .app-title {
        margin: 0;
        color: #fff;
        font-size: clamp(1.28rem, 3vw, 1.72rem);
        font-weight: 850;
        line-height: 1.15;
        letter-spacing: -.04em;
    }

    .clue-game-shell .app-subtitle {
        margin: 5px 0 0;
        color: #a7c4df;
        font-size: .88rem;
        line-height: 1.45;
    }



    .clue-game-shell .game-meta {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
        margin: 0 0 18px;
        margin-bottom: 14px;
    }

    .clue-game-shell .meta-item {
        min-width: 0;
        padding: 15px 12px 14px;
        background: #0b3359;
        border: 1px solid #205078;
        border-radius: 14px;
        text-align: center;
        box-shadow: none;
    }

        .clue-game-shell .meta-item span:not(.meta-label) {
            color: #fff;
            font-size: clamp(1.02rem, 2.5vw, 1.25rem);
            font-weight: 850;
            font-variant-numeric: tabular-nums;
        }

    .clue-game-shell .game-meta .meta-item:nth-child(3) {
        animation-delay: 160ms;
        background: #123e63;
        border-color: #35658b;
    }

        .clue-game-shell .game-meta .meta-item:nth-child(3) #total-score {
            color: #fff;
        }

    .clue-game-shell .game-card {
        position: relative;
        width: 100%;
        max-width: none;
        padding: clamp(17px, 4vw, 28px);
        overflow: hidden;
        background: #072542;
        border: 1px solid #235079;
        border-radius: 22px;
        box-shadow: 0 12px 30px rgba(0, 13, 31, .22);
        animation: cardFadeIn 460ms 120ms ease-out both;
    }

    .clue-game-shell .budget-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 15px;
    }

    .clue-game-shell .multiplier-tag {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 13px;
        color: #ffcb57;
        background: #153c5a;
        border: 1px solid #44617b;
        border-radius: 11px;
        font-size: .85rem;
        font-weight: 850;
        letter-spacing: -.01em;
    }

    .clue-game-shell .budget-pill {
        padding: 8px 13px;
        color: #c1def3;
        background: #103451;
        border: 1px solid #315775;
        border-radius: 11px;
        font-size: .83rem;
        white-space: nowrap;
    }

        .clue-game-shell .budget-pill strong {
            margin-left: 4px;
            color: #fff;
            font-weight: 850;
            font-variant-numeric: tabular-nums;
        }

    .clue-game-shell .section-label {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 9px;
        color: #83c7f1;
        font-size: .68rem;
        font-weight: 850;
        letter-spacing: .13em;
        text-transform: uppercase;
    }

    .clue-game-shell .section-label-mark {
        display: inline-block;
        width: 7px;
        height: 7px;
        border-radius: 2px;
        background: #ffba24;
        transform: rotate(45deg);
    }

    .clue-game-shell #question-text {
        margin: 0 0 20px;
        color: #fff;
        font-size: clamp(1.35rem, 3vw, 1.8rem);
        font-weight: 750;
        line-height: 1.3;
        letter-spacing: -.035em;
        overflow-wrap: anywhere;
        margin-bottom: 16px;
    }

    .clue-game-shell #clue-container {
        display: grid;
        gap: 8px;
    }

    .clue-game-shell .clue-bubble, .clue-game-shell .clue-bubble:hover {
        background: #0c365e;
        border: 1px solid #245d91;
        border-left: 3px solid #ffba24;
        color: #f4f9ff;
        box-shadow: none;
        border-radius: 14px;
        line-height: 1.55;
    }

    .clue-game-shell .field-label {
        display: block;
        margin: 0 0 9px;
        color: #c4ddf0;
        font-size: .82rem;
        font-weight: 800;
    }

    .clue-game-shell .bet-section {
        margin-bottom: 18px;
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 17px;
    }

        .clue-game-shell .bet-section label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 12px;
            color: #d4e8f7;
            font-size: .85rem;
            font-weight: 750;
        }

    .clue-game-shell #bet-display-value {
        display: inline-block;
        min-width: 34px;
        padding: 5px 9px;
        color: #fff;
        background: #164c79;
        border: 1px solid #31678e;
        border-radius: 8px;
        font-weight: 850;
        text-align: center;
        font-variant-numeric: tabular-nums;
        transition: transform 100ms ease;
    }

    .clue-game-shell input[type=range] {
        display: block;
        width: 100%;
        height: 24px;
        margin: 5px 0 2px;
        padding: 0;
        accent-color: #ffba24;
        background: transparent;
        cursor: pointer;
        touch-action: pan-y;
    }

        .clue-game-shell input[type=range]::-webkit-slider-runnable-track {
            height: 7px;
            background: #31587b;
            border-radius: 99px;
        }

        .clue-game-shell input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 22px;
            height: 22px;
            margin-top: -7.5px;
            background: #fff;
            border: 6px solid var(--brand-primary);
            border-radius: 50%;
            box-shadow: 0 3px 9px rgba(0,0,0,.28);
            border-color: #ffba24;
        }

        .clue-game-shell input[type=range]::-moz-range-track {
            height: 7px;
            background: #31587b;
            border-radius: 99px;
        }

        .clue-game-shell input[type=range]::-moz-range-thumb {
            width: 12px;
            height: 12px;
            background: #fff;
            border: 3px solid #ffba24;
            border-radius: 50%;
            box-shadow: 0 2px 7px rgba(55,48,163,.22);
        }

    .clue-game-shell .slider-scale {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        margin-top: 4px;
        color: #9dbfda;
        font-size: .7rem;
        font-weight: 650;
    }

    .clue-game-shell .potential-win {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin-top: 17px;
        padding: 15px 16px;
        background: #12394f;
        border: 1px solid #7c6735;
        border-radius: 14px;
        transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
        box-shadow: none;
    }

    .clue-game-shell .potential-win-label {
        display: block;
        color: #bbd9e9;
        font-size: .83rem;
        font-weight: 800;
    }

    .clue-game-shell .potential-win-formula {
        display: block;
        margin-top: 4px;
        color: #a8c9dd;
        font-size: .76rem;
        font-weight: 600;
    }

    .clue-game-shell .potential-win-value {
        color: #ffca50;
        font-size: clamp(1.35rem, 3.5vw, 1.7rem);
        font-weight: 900;
        letter-spacing: -.04em;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
        display: inline-block;
        transform-origin: center;
    }

    .clue-game-shell .all-in-warning {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-top: 13px;
        padding: 12px 13px;
        color: #ffedc9;
        background: #47321c;
        border: 1px solid #a86b22;
        border-left: 4px solid #f59e0b;
        border-radius: 13px;
        font-size: .8rem;
        line-height: 1.45;
        box-shadow: none;
    }

    .clue-game-shell .all-in-warning-title {
        display: block;
        margin: 0 0 2px;
        color: #ffd06d;
        font-size: .76rem;
        font-weight: 900;
        letter-spacing: .055em;
    }

    .clue-game-shell .all-in-warning-message {
        display: block;
        color: #ffe3b1;
    }

    .clue-game-shell .all-in-warning-icon {
        display: grid;
        flex: 0 0 27px;
        width: 27px;
        height: 27px;
        place-items: center;
        color: #33210b;
        background: #ffba24;
        border-radius: 8px;
        font-size: .95rem;
        font-weight: 900;
    }

    .clue-game-shell .button-main.btn-primary, .clue-game-shell .btn-primary {
        background: linear-gradient(180deg, #ffcf55 0%, #ffaf16 100%);
        border: 0;
        color: #08213b;
        box-shadow: 0 5px 14px rgba(255, 174, 22, .13);
        font-weight: 850;
        border-radius: 14px;
    }

        .clue-game-shell .button-main.btn-primary:hover:not(:disabled) {
            background: linear-gradient(180deg, #ffdb7b, #ffc038);
            transform: translateY(-1px);
        }

    .clue-game-shell #result-overlay {
        position: fixed;
        top: 50%;
        left: 50%;
        z-index: 1000;
        width: min(420px, calc(100vw - 32px));
        padding: 32px;
        color: #fff;
        background: #082c4e;
        border: 1px solid #36668b;
        border-radius: 23px;
        box-shadow: 0 0 0 100vw rgba(0, 13, 32, .83), 0 20px 60px rgba(0,0,0,.35);
        text-align: center;
        transform: translate(-50%, -50%);
        animation: resultPop 260ms cubic-bezier(.2,.8,.2,1) both;
        max-height: min(86dvh, 680px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .clue-game-shell #result-title {
        margin: 0 0 12px;
        font-size: 1.7rem;
        font-weight: 900;
        letter-spacing: -.04em;
        color: #fff;
    }

    .clue-game-shell #result-overlay.feedback-correct #result-title::before {
        content: "✓";
        color: #053c2d;
        background: #7ceac4;
    }

    .clue-game-shell #result-overlay.feedback-wrong #result-title::before {
        content: "×";
        color: #571020;
        background: #ffc0cc;
    }

    .clue-game-shell #answer-field {
        display: block;
        width: 100%;
        min-height: 54px;
        margin: 0 0 20px;
        padding: 15px 16px;
        color: #ffffff !important;
        background: #092c4c;
        border: 1.5px solid #3a6387;
        border-radius: 13px;
        outline: none;
        font-size: 1rem;
        box-shadow: none;
        transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
        background-color: #092c4c !important;
        -webkit-text-fill-color: #ffffff;
        caret-color: #ffba24;
    }

    .clue-game-shell #clue-container .clue-bubble, .clue-game-shell #clue-container .clue-bubble:first-child, .clue-game-shell #clue-container .clue-bubble:hover {
        background: #0c365e;
        color: #f4f9ff;
        border: 1px solid #245d91;
        border-left: 3px solid #ffba24;
    }

        .clue-game-shell #clue-container .clue-bubble:last-child {
            background: #10416d;
            color: #ffffff;
            border-color: #3b7cad;
            border-left-color: #ffba24;
        }

    .clue-game-shell .meta-item, .clue-game-shell .game-meta .meta-item:nth-child(3) {
        background: #0b3359;
        border-color: #205078;
        color: #ffffff;
    }

        .clue-game-shell .meta-item span:not(.meta-label), .clue-game-shell .game-meta .meta-item:nth-child(3) #total-score {
            color: #ffffff;
        }

    .clue-game-shell .meta-label {
        display: block;
        margin-bottom: 6px;
        color: #a9c9e3;
        font-size: .65rem;
        font-weight: 800;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    .clue-game-shell .slash {
        margin: 0 3px;
        color: #a9c9e3 !important;
        font-weight: 600 !important;
    }

    .clue-game-shell .clue-bubble, .clue-game-shell .clue-bubble:first-child, .clue-game-shell .clue-bubble:not(:last-child) {
        background: #0c365e !important;
        color: #f4f9ff !important;
        border-color: #245d91;
        border-left-color: #ffba24;
    }

        .clue-game-shell .clue-bubble:last-child {
            background: #10416d !important;
            border-color: #3b7cad;
            border-left-color: #ffba24;
            color: #ffffff !important;
        }

    .clue-game-shell #answer-field, .clue-game-shell #answer-field:hover, .clue-game-shell #answer-field:focus {
        background: #092c4c !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff;
        caret-color: #ffba24;
    }

        .clue-game-shell #answer-field::placeholder {
            color: #a7c4df !important;
            opacity: 1;
            -webkit-text-fill-color: #a7c4df;
        }

        .clue-game-shell #answer-field:hover {
            border-color: #6e94b3;
        }

        .clue-game-shell #answer-field:focus {
            border-color: #ffba24;
            background: #fdfdff;
            box-shadow: 0 0 0 3px rgba(255,186,36,.17);
            outline: none;
        }

        .clue-game-shell #answer-field:disabled {
            background: #173b59 !important;
            cursor: not-allowed;
            color: #d2e4f2 !important;
            -webkit-text-fill-color: #d2e4f2;
            opacity: .7;
        }

    .clue-game-shell .game-reset-container .btn {
        padding: 8px 13px;
        color: #d5e7f5;
        background: #123b5c;
        border: 1px solid #dfe4ef;
        border-radius: 12px;
        font-size: .75rem;
        font-weight: 750;
        letter-spacing: .06em;
        transition: background var(--transition), color var(--transition), border-color var(--transition);
        border-color: #386384;
    }

        .clue-game-shell .game-reset-container .btn:hover {
            color: #ffe1c5;
            background: #29465c;
            border-color: #d28b55;
        }

        .clue-game-shell .game-reset-container .btn:focus-visible, .clue-game-shell .button-main:focus-visible {
            outline-color: #ffba24;
        }

    .clue-game-shell #result-overlay, .clue-game-shell #result-overlay .clue-bubble {
        color: #f6f9ff;
    }

    .clue-game-shell #result-body {
        margin: 0 0 24px;
        color: #d0e4f3;
        font-size: .98rem;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }

    .clue-game-shell #result-overlay .clue-bubble strong, .clue-game-shell #result-overlay .clue-bubble span {
        color: #f6f9ff;
    }

    .clue-game-shell .btn-primary:focus-visible {
        outline: 3px solid #fff0bb;
        outline-offset: 3px;
    }

@keyframes cluePopIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes resultPop {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 10px)) scale(.985);
    }

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

@keyframes shellEnter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(9px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes questionArrive {
    from {
        opacity: .65;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes statusPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(16,185,129,.12);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(16,185,129,.06);
    }
}

@keyframes rewardPulse {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.075);
    }

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

@keyframes allInEnter {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes numberPop {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.12);
    }

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

@keyframes resultIconIn {
    from {
        opacity: 0;
        transform: scale(.72) rotate(-8deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@media (max-width: 600px) {
    .clue-game-shell {
        width: calc(100% - 12px);
        margin: 6px auto;
        padding: 13px 10px;
        border-radius: 19px;
    }

        .clue-game-shell .app-heading {
            align-items: flex-start;
            margin: 2px 2px 16px;
            gap: 8px;
        }

        .clue-game-shell .app-heading-brand {
            gap: 9px;
        }

        .clue-game-shell .app-logo {
            flex-basis: 40px;
            width: 40px;
            height: 40px;
            border-radius: 12px;
            font-size: 21px;
        }

        .clue-game-shell .app-eyebrow {
            font-size: .6rem;
            letter-spacing: .13em;
        }

        .clue-game-shell .app-title {
            font-size: clamp(1.2rem, 5vw, 1.5rem);
        }

        .clue-game-shell .app-subtitle {
            font-size: .74rem;
        }





        .clue-game-shell .game-meta {
            gap: 6px;
            margin-bottom: 10px;
        }

        .clue-game-shell .meta-item {
            padding: 10px 4px 9px;
            border-radius: 12px;
        }

        .clue-game-shell .meta-label {
            font-size: .53rem;
            letter-spacing: .045em;
            margin-bottom: 5px;
        }

        .clue-game-shell .meta-item span:not(.meta-label) {
            font-size: .98rem;
        }

        .clue-game-shell .game-card {
            padding: 16px 12px;
            border-radius: 17px;
        }

        .clue-game-shell .budget-row {
            margin-bottom: 18px;
        }

        .clue-game-shell .multiplier-tag, .clue-game-shell .budget-pill {
            padding: 7px 9px;
            font-size: .73rem;
        }

        .clue-game-shell .question-area {
            margin-bottom: 18px;
        }

        .clue-game-shell #question-text {
            font-size: clamp(1.23rem, 5.2vw, 1.5rem);
            margin-bottom: 14px;
        }

        .clue-game-shell .section-label {
            font-size: .61rem;
            margin-bottom: 7px;
        }

        .clue-game-shell .clue-bubble {
            padding: 11px 12px 11px 13px;
            font-size: .88rem;
            line-height: 1.55;
            border-radius: 11px;
        }

        .clue-game-shell #answer-field {
            min-height: 52px;
            padding: 14px 13px;
            font-size: 16px;
            margin-bottom: 15px;
        }

        .clue-game-shell .bet-section {
            padding: 12px 11px;
            margin-bottom: 15px;
            border-radius: 13px;
        }

            .clue-game-shell .bet-section label {
                font-size: .8rem;
                margin-bottom: 9px;
            }

        .clue-game-shell input[type=range] {
            height: 32px;
            margin: 4px 0;
        }

        .clue-game-shell .slider-scale {
            font-size: .66rem;
        }

        .clue-game-shell .potential-win {
            padding: 11px;
            gap: 7px;
            margin-top: 13px;
            border-radius: 11px;
        }

        .clue-game-shell .potential-win-label {
            font-size: .75rem;
        }

        .clue-game-shell .potential-win-formula {
            font-size: .68rem;
        }

        .clue-game-shell .potential-win-value {
            font-size: clamp(1.18rem, 5vw, 1.45rem);
        }

        .clue-game-shell .button-main {
            min-height: 52px;
            padding: 14px 15px;
            border-radius: 12px;
            font-size: .94rem;
        }

        .clue-game-shell #result-overlay {
            padding: 24px 18px;
            border-radius: 17px;
            width: calc(100vw - 24px);
        }

        .clue-game-shell #result-title {
            font-size: 1.5rem;
        }

        .clue-game-shell .game-reset-container {
            margin-top: 12px;
        }
}

@media (max-width: 380px) {


    .clue-game-shell .meta-item span:not(.meta-label) {
        font-size: .9rem;
    }

    .clue-game-shell .meta-label {
        font-size: .49rem;
    }

    .clue-game-shell .potential-win {
        align-items: flex-start;
    }

    .clue-game-shell .potential-win-value {
        font-size: 1.15rem;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    .clue-game-shell {
        margin-top: 6px;
        margin-bottom: 6px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

        .clue-game-shell .app-heading {
            margin-bottom: 12px;
        }

        .clue-game-shell .game-card {
            padding-top: 16px;
            padding-bottom: 16px;
        }

        .clue-game-shell #result-overlay {
            max-height: 90dvh;
            padding: 18px;
        }
}

@media (prefers-reduced-motion: reduce) {
    .clue-game-shell *, .clue-game-shell *::before, .clue-game-shell *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 600px) {
    .clue-game-shell {
        width: calc(100% - 12px);
        padding: 13px 10px;
        margin: 6px auto;
        border-radius: 18px;
    }

        .clue-game-shell .app-heading {
            margin-bottom: 14px;
        }

        .clue-game-shell .app-logo {
            flex-basis: 38px;
            width: 38px;
            height: 38px;
            border-radius: 11px;
        }

        .clue-game-shell .app-subtitle {
            display: none;
        }

        .clue-game-shell .game-card {
            padding: 17px 13px;
            border-radius: 17px;
        }

        .clue-game-shell .meta-item {
            border-radius: 11px;
        }

        .clue-game-shell .budget-row {
            margin-bottom: 12px;
        }

        .clue-game-shell #question-text {
            margin-bottom: 12px;
        }

        .clue-game-shell .clue-bubble {
            padding: 12px 13px;
        }

        .clue-game-shell #answer-field {
            min-height: 52px;
            font-size: 16px;
        }

        .clue-game-shell .potential-win {
            margin-top: 14px;
        }

        .clue-game-shell .button-main {
            min-height: 52px;
        }
}

/* Final clue: the full remaining stake is required; the slider is read-only. */
.clue-game-shell .final-clue-stake-note {
    margin: 8px 0 0;
    color: #f9d48b;
    font-size: .82rem;
    font-weight: 650;
    line-height: 1.5;
}

    .clue-game-shell .final-clue-stake-note.hidden {
        display: none;
    }

.clue-game-shell #bet-input:disabled {
    cursor: not-allowed;
    opacity: .8;
}


/* ------------------ Compact top-right navigation ------------------ */
.clue-game-shell .game-navigation {
    flex: 0 0 auto;
    position: relative;
    z-index: 30;
}

.clue-game-shell .game-menu {
    position: relative;
}

.clue-game-shell .game-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid #376a92;
    border-radius: 13px;
    background: #103c63;
    color: #f3f8fd;
    font: inherit;
    font-size: .82rem;
    font-weight: 750;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background .18s ease, border-color .18s ease;
}

    .clue-game-shell .game-menu-trigger::-webkit-details-marker {
        display: none;
    }

    .clue-game-shell .game-menu-trigger::marker {
        content: '';
    }

    .clue-game-shell .game-menu-trigger:hover,
    .clue-game-shell .game-menu[open] .game-menu-trigger {
        background: #164c78;
        border-color: #ffbf4d;
    }

    .clue-game-shell .game-menu-trigger:focus-visible,
    .clue-game-shell .game-menu-item:focus-visible,
    .clue-game-shell .game-rules-close:focus-visible,
    .clue-game-shell .game-rules-acknowledge:focus-visible {
        outline: 3px solid #ffbf4d;
        outline-offset: 3px;
    }

.clue-game-shell .game-menu-bars {
    width: 17px;
    display: grid;
    gap: 3px;
}

    .clue-game-shell .game-menu-bars span {
        display: block;
        height: 2px;
        border-radius: 2px;
        background: #ffbf4d;
    }

.clue-game-shell .game-menu-chevron {
    width: 7px;
    height: 7px;
    border-right: 2px solid #a9cbe5;
    border-bottom: 2px solid #a9cbe5;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}

.clue-game-shell .game-menu[open] .game-menu-chevron {
    transform: rotate(225deg) translate(-2px, -1px);
}

.clue-game-shell .game-menu-dropdown {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    min-width: 184px;
    padding: 7px;
    border: 1px solid #376a92;
    border-radius: 15px;
    background: #092d4d;
    box-shadow: 0 16px 38px rgba(0, 9, 25, .45);
    z-index: 40;
}

.clue-game-shell .game-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: #f3f8fd;
    text-decoration: none;
    text-align: left;
    font: inherit;
    font-weight: 650;
    font-size: .9rem;
    cursor: pointer;
}

    .clue-game-shell .game-menu-item:hover {
        background: #164c78;
        color: #ffdc87;
        text-decoration: none;
    }

.clue-game-shell .game-menu-item-icon {
    display: inline-grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 7px;
    background: #174c74;
    color: #ffbf4d;
    font-size: 1rem;
    font-weight: bold;
}
/* -------------------------- Rules popup --------------------------- */
.clue-game-shell .game-rules-dialog {
    box-sizing: border-box;
    width: min(92vw, 490px);
    max-height: min(85vh, 700px);
    overflow-y: auto;
    padding: 24px;
    margin: auto;
    border: 1px solid #3776a3;
    border-radius: 20px;
    background: #082a49;
    color: #eaf5ff;
    box-shadow: 0 28px 90px rgba(0, 5, 18, .75);
    color-scheme: dark;
}

    .clue-game-shell .game-rules-dialog::backdrop {
        background: rgba(2, 12, 30, .75);
    }

.clue-game-shell .game-rules-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.clue-game-shell .game-rules-eyebrow {
    color: #ffca5f;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.clue-game-shell .game-rules-header h2 {
    margin: 5px 0 0;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1.2;
}

.clue-game-shell .game-rules-close {
    min-width: 35px;
    height: 35px;
    border: 1px solid #437aa0;
    border-radius: 10px;
    background: #15476b;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.clue-game-shell .game-rules-content {
    color: #d7e7f5;
    font-size: .92rem;
    line-height: 1.62;
}

    .clue-game-shell .game-rules-content p {
        margin: 0 0 15px;
    }

    .clue-game-shell .game-rules-content ul {
        padding-left: 22px;
        margin: 0 0 15px;
    }

    .clue-game-shell .game-rules-content li {
        margin-bottom: 7px;
    }

    .clue-game-shell .game-rules-content strong {
        color: #ffda82;
    }

.clue-game-shell .game-rules-acknowledge {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 12px 16px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #ffda70, #ffb82e);
    color: #08233a;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 600px) {
    .clue-game-shell .game-navigation {
        margin-top: 0;
    }

    .clue-game-shell .game-menu-trigger {
        min-height: 39px;
        gap: 7px;
        padding: 8px 10px;
        font-size: .78rem;
    }

    .clue-game-shell .game-menu-dropdown {
        min-width: 173px;
    }

    .clue-game-shell .game-rules-dialog {
        padding: 20px;
    }
}

@media (max-width: 380px) {
    .clue-game-shell .game-navigation {
        display: block;
    }

    .clue-game-shell .game-menu-trigger {
        min-height: 36px;
        padding: 7px 9px;
        font-size: .72rem;
    }
}


/* =========================================================
   Answer-first mobile layout (current hint > stake > submit
   > potential winnings > older hints)
   ========================================================= */
.clue-game-shell .question-area {
    margin-bottom: 18px;
}

.clue-game-shell #question-text {
    margin-bottom: 12px;
}

.clue-game-shell .current-clue-container {
    display: grid;
    gap: 8px;
}

    .clue-game-shell .current-clue-container .clue-bubble {
        background: #10416d;
        color: #ffffff;
        border: 1px solid #3b7cad;
        border-left: 4px solid #ffba24;
        box-shadow: 0 3px 10px rgba(0, 12, 35, .17);
    }

.clue-game-shell .bet-section {
    margin-bottom: 13px;
}

.clue-game-shell .action-footer {
    position: relative;
    z-index: 2;
}

.clue-game-shell #input-zone > .potential-win {
    margin: 14px 0 0;
}

.clue-game-shell .previous-clues-section {
    margin-top: 23px;
    padding-top: 19px;
    border-top: 1px solid #295778;
}

.clue-game-shell .previous-clues-heading {
    margin: 0 0 11px;
    color: #a9cbe5;
    font-size: .79rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .015em;
}

.clue-game-shell .previous-clues-section #clue-container {
    display: grid;
    gap: 8px;
}

    .clue-game-shell .previous-clues-section #clue-container .clue-bubble,
    .clue-game-shell .previous-clues-section #clue-container .clue-bubble:first-child,
    .clue-game-shell .previous-clues-section #clue-container .clue-bubble:last-child {
        background: #0c365e;
        color: #d8e9f8;
        border: 1px solid #245d91;
        border-left: 3px solid #417fae;
        box-shadow: none;
    }

@media (max-width: 600px) {
    .clue-game-shell .game-card {
        overflow: visible;
    }

    .clue-game-shell .question-area {
        margin-bottom: 14px;
    }

    .clue-game-shell #question-text {
        margin-bottom: 9px;
    }

    .clue-game-shell #answer-field {
        margin-bottom: 13px;
    }

    .clue-game-shell .bet-section {
        padding: 0;
        margin-bottom: 11px;
    }

    .clue-game-shell .previous-clues-section {
        margin-top: 16px;
        padding-top: 13px;
    }

        .clue-game-shell .previous-clues-section .clue-bubble {
            font-size: .84rem;
            line-height: 1.45;
        }
}

/* On clue three the stake is mandatory, so don't show an inert slider. */
.clue-game-shell .bet-section.final-clue-bet #bet-input,
.clue-game-shell .bet-section.final-clue-bet .slider-scale {
    display: none;
}

.clue-game-shell .bet-section.final-clue-bet .final-clue-stake-note {
    margin-top: 9px;
}


/* ================================================================
   Play Points: keyboard-safe native modal, not an overlaid page button
   ================================================================ */
.clue-game-shell .play-points-launch {
    margin: 16px 0 4px;
}

.clue-game-shell .play-points-trigger {
    display: flex;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
}

.clue-game-shell .play-points-arrow {
    font-size: 1.28rem;
    line-height: 1;
}

.clue-game-shell .play-points-launch-note {
    margin: 9px 0 0;
    color: #accce3;
    text-align: center;
    font-size: .8rem;
    line-height: 1.4;
}

.clue-game-shell .play-points-dialog {
    position: fixed;
    inset: auto;
    top: calc(var(--qw-play-visible-top, 0px) + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: min(94vw, 480px);
    max-width: calc(100vw - 16px);
    max-height: calc(var(--qw-play-visible-height, 100dvh) - 16px);
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid #3e759c;
    border-radius: 20px;
    background: #082a49;
    color: #f6f9ff;
    box-shadow: 0 20px 55px rgba(0, 8, 27, .8);
    color-scheme: dark;
    overscroll-behavior: contain;
}

    .clue-game-shell .play-points-dialog::backdrop {
        background: rgba(2, 12, 30, .8);
    }

    .clue-game-shell .play-points-dialog[open] {
        display: flex;
        flex-direction: column;
    }

.clue-game-shell .play-points-dialog-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-height: inherit;
}

.clue-game-shell .play-points-dialog-header {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid #285879;
}

.clue-game-shell .play-points-dialog-headings {
    min-width: 0;
}

.clue-game-shell .play-points-eyebrow {
    display: block;
    color: #ffca5f;
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .09em;
}

.clue-game-shell .play-points-dialog-header h2 {
    margin: 2px 0 2px;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.25;
}

.clue-game-shell #play-points-description {
    margin: 4px 0 0;
    color: #a9cbe5;
    font-size: .75rem;
    line-height: 1.3;
}

.clue-game-shell .play-points-dialog-close {
    flex: 0 0 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #437aa0;
    border-radius: 10px;
    background: #15476b;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.clue-game-shell .play-points-dialog-scroll {
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px 18px 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.clue-game-shell .play-points-dialog #input-zone {
    visibility: visible;
}

.clue-game-shell .play-points-dialog #answer-field {
    margin-bottom: 0;
    scroll-margin-block: 12px;
}

.clue-game-shell .play-points-dialog .bet-section {
    margin-bottom: 10px;
}

.clue-game-shell .play-points-dialog .potential-win {
    margin-top: 12px;
}

.clue-game-shell .play-points-dialog .action-footer {
    position: static;
    z-index: auto;
    margin: 0;
}

.clue-game-shell .play-points-dialog .button-main {
    min-height: 49px;
    padding: 12px 16px;
}

.clue-game-shell .play-points-dialog :is(button, input):focus-visible {
    outline: 3px solid #ffba24;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .clue-game-shell .play-points-dialog {
        width: calc(100vw - 16px);
        border-radius: 16px;
    }

    .clue-game-shell .play-points-dialog-header {
        padding: 11px 13px 9px;
    }

        .clue-game-shell .play-points-dialog-header h2 {
            font-size: 1.12rem;
        }

    .clue-game-shell .play-points-dialog-scroll {
        padding: 12px 13px 10px;
    }

    .clue-game-shell .play-points-dialog #answer-field {
        min-height: 45px;
        padding: 10px 12px;
        margin-bottom: 0;
    }

    .clue-game-shell .play-points-dialog .field-label {
        margin-bottom: 6px;
    }

    .clue-game-shell .play-points-dialog .bet-section {
        margin-bottom: 0;
    }

        .clue-game-shell .play-points-dialog .bet-section label {
            margin-bottom: 4px;
        }

    .clue-game-shell .play-points-dialog .slider-scale {
        margin-top: 0;
    }

    .clue-game-shell .play-points-dialog .potential-win {
        padding: 10px 11px;
    }

    .clue-game-shell .play-points-dialog .all-in-warning {
        padding: 9px 10px;
        margin-top: 9px;
    }

    .clue-game-shell .play-points-dialog .button-main {
        min-height: 46px;
        padding: 10px 12px;
    }
}

/* ================================================================
   Play Points popup refinement: stake -> multiplier -> winnings,
   then answer + submit together in the scrolling area, hint last.
   Winnings colour is tied to the clue multiplier (3x / 2x / 1x).
   ================================================================ */
.clue-game-shell .play-points-dialog {
    --qw-win-bg: #123d36;
    --qw-win-border: #3bad83;
    --qw-win-accent: #a1f4c7;
    --qw-win-muted: #c6e9da;
}

    .clue-game-shell .play-points-dialog[data-multiplier="2"] {
        --qw-win-bg: #113a61;
        --qw-win-border: #5da6e1;
        --qw-win-accent: #b4dfff;
        --qw-win-muted: #c9e3f8;
    }

    .clue-game-shell .play-points-dialog[data-multiplier="1"] {
        --qw-win-bg: #3e321e;
        --qw-win-border: #dba64c;
        --qw-win-accent: #ffdc91;
        --qw-win-muted: #f2dfb8;
    }

.clue-game-shell .play-points-dialog-header h2 {
    overflow-wrap: anywhere;
    font-size: clamp(1.06rem, 3vw, 1.25rem);
    line-height: 1.3;
}
/* The hint sits below the Submit button, never above the answer field. */
.clue-game-shell .play-points-dialog .play-points-hint-below {
    padding: 11px 12px 12px;
    background: #103855;
    border: 1px solid #285b80;
    border-radius: 12px;
}

.clue-game-shell .play-points-dialog .play-points-hint-label {
    display: block;
    margin: 0 0 5px;
    color: #ffc66a;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.clue-game-shell #play-points-description {
    margin: 0;
    color: #daebf7;
    font-size: .82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.clue-game-shell .play-points-dialog .play-points-submit-row {
    display: block;
    padding: 0;
    border: 0;
    background: none;
}

    .clue-game-shell .play-points-dialog .play-points-submit-row .button-main {
        width: 100%;
    }

.clue-game-shell .play-points-dialog .answer-entry {
    scroll-margin-block: 12px;
}

.clue-game-shell .play-points-dialog #input-zone {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.clue-game-shell .play-points-dialog .stake-reward-group {
    background: #0b3151;
    border: 1px solid #2d6387;
    border-radius: 16px;
    padding: 13px;
}

    .clue-game-shell .play-points-dialog .stake-reward-group .bet-section {
        margin: 0;
    }

        .clue-game-shell .play-points-dialog .stake-reward-group .bet-section label {
            margin-bottom: 9px;
            font-size: .87rem;
        }

.clue-game-shell .play-points-dialog .stake-reward-connector {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 8px 0;
    color: var(--qw-win-accent);
}

.clue-game-shell .play-points-dialog .stake-reward-connector-line {
    flex: 1 1 auto;
    height: 1px;
    background: var(--qw-win-border);
    opacity: .55;
}

.clue-game-shell .play-points-dialog .stake-reward-connector-label {
    flex: 0 0 auto;
    color: var(--qw-win-accent);
    font-size: .73rem;
    font-weight: 850;
    letter-spacing: .015em;
}

.clue-game-shell .play-points-dialog .stake-reward-down {
    margin-left: 4px;
    font-size: 1rem;
}

.clue-game-shell .play-points-dialog .potential-win {
    margin: 0;
    border: 1px solid var(--qw-win-border);
    background: var(--qw-win-bg);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

.clue-game-shell .play-points-dialog .potential-win-label,
.clue-game-shell .play-points-dialog .potential-win-value {
    color: var(--qw-win-accent);
}

.clue-game-shell .play-points-dialog .potential-win-formula {
    color: var(--qw-win-muted);
}

.clue-game-shell .play-points-dialog .all-in-warning {
    margin: 0;
}

.clue-game-shell .play-points-dialog .answer-entry {
    margin-top: 1px;
}

    .clue-game-shell .play-points-dialog .answer-entry .field-label {
        margin-bottom: 7px;
    }

    .clue-game-shell .play-points-dialog .answer-entry #answer-field {
        display: block;
        width: 100%;
        margin: 0;
    }

@media (max-width: 600px) {
    .clue-game-shell .play-points-dialog-header h2 {
        font-size: 1.08rem;
    }

    .clue-game-shell #play-points-description {
        font-size: .78rem;
    }

    .clue-game-shell .play-points-dialog #input-zone {
        gap: 10px;
    }

    .clue-game-shell .play-points-dialog .stake-reward-group {
        padding: 10px 11px;
    }

    .clue-game-shell .play-points-dialog .stake-reward-connector {
        margin: 6px 0;
    }
}

@media (max-height: 470px) {
    .clue-game-shell .play-points-dialog-header {
        padding-block: 8px;
    }

    .clue-game-shell #play-points-description {
        font-size: .73rem;
    }
}


/* ========================================================================
   QwizzWizz home page — extends the shared midnight stylesheet.
   The .qw-home scope keeps this page from changing game view styles.
   ======================================================================== */
.clue-game-shell.qw-home {
    width: min(100% - 24px, 850px);
    padding: clamp(18px, 3.4vw, 34px);
}

    .clue-game-shell.qw-home .qw-home-header {
        margin-bottom: 24px;
    }

    .clue-game-shell.qw-home .qw-home-header-auth {
        flex-shrink: 0;
    }

    .clue-game-shell.qw-home .qw-home-header-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0 15px;
        border-radius: 12px;
        border: 1px solid #35658b;
        background: #133b5f;
        color: #f2f9ff;
        font-size: .84rem;
        font-weight: 750;
        text-decoration: none;
        transition: background-color 160ms ease, border-color 160ms ease;
    }

        .clue-game-shell.qw-home .qw-home-header-link:hover {
            background: #1d5178;
            border-color: #6ba5ca;
        }

    .clue-game-shell.qw-home .qw-home-hero {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        padding: clamp(23px, 4.7vw, 38px);
        border-radius: 24px;
        border: 1px solid #2d668f;
        background: radial-gradient(ellipse at 90% 0%, rgba(39,105,157,.42), transparent 55%), linear-gradient(135deg, #0c3a62 0%, #092744 85%);
        margin-bottom: 22px;
    }

    .clue-game-shell.qw-home .qw-home-hero-mark {
        position: absolute;
        z-index: -1;
        top: -44px;
        right: 10px;
        color: rgba(255,193,76,.12);
        font-size: 210px;
        line-height: 1;
        user-select: none;
        pointer-events: none;
    }

    .clue-game-shell.qw-home .qw-home-hero-eyebrow,
    .clue-game-shell.qw-home .qw-home-section-eyebrow {
        margin: 0 0 10px;
        color: #ffca65;
        letter-spacing: .12em;
        font-size: .69rem;
        font-weight: 850;
    }

    .clue-game-shell.qw-home .qw-home-hero h2 {
        max-width: 580px;
        color: #fff;
        margin: 0 0 12px;
        font-size: clamp(1.65rem, 4.6vw, 2.65rem);
        line-height: 1.12;
        letter-spacing: -.045em;
    }

    .clue-game-shell.qw-home .qw-home-hero > p:not(.qw-home-hero-eyebrow) {
        max-width: 520px;
        margin: 0;
        color: #c0d8e9;
        font-size: .98rem;
        line-height: 1.6;
    }

    .clue-game-shell.qw-home .qw-home-hero-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 15px;
        margin-top: 20px;
    }

    .clue-game-shell.qw-home .qw-home-rules-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        border: 0;
        border-radius: 13px;
        padding: 12px 18px;
        min-height: 46px;
        background: #ffba24;
        color: #092743;
        font-weight: 850;
        font-size: .89rem;
        cursor: pointer;
        box-shadow: 0 9px 22px rgba(255,174,23,.18);
    }

        .clue-game-shell.qw-home .qw-home-rules-button > span {
            display: grid;
            place-items: center;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            border: 2px solid currentColor;
            font-weight: 850;
        }

        .clue-game-shell.qw-home .qw-home-rules-button:hover {
            background: #ffd26d;
        }

    .clue-game-shell.qw-home .qw-home-games {
        margin-top: 27px;
        padding-top: 24px;
        border-top: 1px solid #35688b;
    }

    .clue-game-shell.qw-home .qw-home-games-heading {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 12px;
        margin: 0 2px 17px;
    }

        .clue-game-shell.qw-home .qw-home-games-heading h2 {
            margin: 0;
            color: #f7fbff;
            font-size: clamp(1.25rem, 3vw, 1.58rem);
            letter-spacing: -.025em;
        }

    .clue-game-shell.qw-home .qw-home-section-eyebrow {
        color: #84c6ec;
        margin-bottom: 5px;
    }

    .clue-game-shell.qw-home .qw-home-count {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 6px 11px;
        border: 1px solid #326488;
        border-radius: 999px;
        background: #0c3857;
        color: #bfe8d4;
        font-size: .78rem;
        font-weight: 750;
        white-space: nowrap;
    }

        .clue-game-shell.qw-home .qw-home-count::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #56dfaa;
            box-shadow: 0 0 0 3px rgba(86,223,170,.12);
        }

    .clue-game-shell.qw-home .qw-home-list {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .clue-game-shell.qw-home .qw-home-game-card {
        position: relative;
        min-width: 0;
        min-height: 131px;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 19px 15px;
        color: #fff;
        text-decoration: none;
        border: 1px solid #2c6084;
        border-radius: 18px;
        background: linear-gradient(145deg, #0d375c, #092e4f);
        transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    }

        .clue-game-shell.qw-home .qw-home-game-card:hover {
            transform: translateY(-3px);
            border-color: #ffbf50;
            background: linear-gradient(145deg, #14466e, #0c3457);
            box-shadow: 0 12px 20px rgba(0,0,0,.17);
        }

    .clue-game-shell.qw-home .qw-home-game-icon {
        flex: 0 0 46px;
        height: 46px;
        display: grid;
        place-items: center;
        color: #ffd57c;
        border: 1px solid #436f8b;
        background: #123f63;
        border-radius: 15px;
        font-size: 1.28rem;
        font-weight: 850;
    }

    .clue-game-shell.qw-home .qw-home-game-copy {
        min-width: 0;
        flex: 1;
        display: grid;
        gap: 5px;
    }

    .clue-game-shell.qw-home .qw-home-game-kicker {
        color: #98c9e8;
        font-size: .64rem;
        font-weight: 850;
        letter-spacing: .08em;
    }

    .clue-game-shell.qw-home .qw-home-game-title {
        overflow-wrap: anywhere;
        color: #fff;
        font-size: clamp(.96rem, 2vw, 1.13rem);
        line-height: 1.35;
        font-weight: 800;
    }

    .clue-game-shell.qw-home .qw-home-game-caption {
        color: #a6c7df;
        font-size: .76rem;
        line-height: 1.3;
    }

    .clue-game-shell.qw-home .qw-home-game-arrow {
        display: grid;
        place-items: center;
        flex: 0 0 27px;
        width: 27px;
        height: 27px;
        border-radius: 50%;
        color: #ffce70;
        background: rgba(255,186,36,.1);
        font-size: 19px;
    }

    .clue-game-shell.qw-home .qw-home-empty {
        padding: 43px 20px;
        text-align: center;
        border-radius: 18px;
        background: #0a2b49;
        border: 1px dashed #39678b;
    }

        .clue-game-shell.qw-home .qw-home-empty > span {
            display: block;
            font-size: 2rem;
            color: #ffca65;
        }

        .clue-game-shell.qw-home .qw-home-empty h3 {
            margin: 10px 0 7px;
            color: #fff;
        }

        .clue-game-shell.qw-home .qw-home-empty p {
            margin: 0;
            color: #a9c9e2;
        }

    .clue-game-shell.qw-home .qw-home-join {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 22px;
        padding: clamp(21px, 3vw, 26px);
        border: 1px solid #4b6d76;
        border-radius: 20px;
        background: linear-gradient(120deg, #123e51, #0e304a);
    }

    .clue-game-shell.qw-home .qw-home-join-copy {
        min-width: 0;
    }

    .clue-game-shell.qw-home .qw-home-join h2 {
        margin: 0 0 7px;
        color: #ffffff;
        font-size: clamp(1.3rem, 3vw, 1.6rem);
        letter-spacing: -.025em;
    }

    .clue-game-shell.qw-home .qw-home-join p:not(.qw-home-section-eyebrow) {
        margin: 0;
        max-width: 470px;
        color: #bbd6e8;
        font-size: .88rem;
        line-height: 1.55;
    }

    .clue-game-shell.qw-home .qw-home-register-button {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 48px;
        padding: 12px 21px;
        border-radius: 12px;
        background: linear-gradient(180deg, #ffd264, #ffb323);
        color: #092742;
        text-decoration: none;
        font-size: .9rem;
        font-weight: 850;
    }

        .clue-game-shell.qw-home .qw-home-register-button:hover {
            color: #092742;
            background: #ffdf8d;
        }

    .clue-game-shell.qw-home .qw-home-footer {
        margin-top: 34px;
        padding-top: 18px;
        border-top: 1px solid #2a5377;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        color: #98bad3;
        font-size: .78rem;
    }

        .clue-game-shell.qw-home .qw-home-footer nav {
            display: flex;
            flex-wrap: wrap;
            gap: 18px;
        }

        .clue-game-shell.qw-home .qw-home-footer a,
        .clue-game-shell.qw-home .qw-home-footer button {
            color: #c9e1f2;
            font-size: .79rem;
            text-decoration: none;
            padding: 0;
            border: none;
            background: transparent;
            cursor: pointer;
        }

            .clue-game-shell.qw-home .qw-home-footer a:hover,
            .clue-game-shell.qw-home .qw-home-footer button:hover {
                color: #ffce70;
            }

    .clue-game-shell.qw-home :is(a, button):focus-visible {
        outline: 3px solid #ffcb5e;
        outline-offset: 3px;
    }

@media (max-width: 640px) {
    .clue-game-shell.qw-home .qw-home-list {
        grid-template-columns: 1fr;
    }

    .clue-game-shell.qw-home .qw-home-game-card {
        min-height: 105px;
    }

    .clue-game-shell.qw-home .qw-home-hero {
        margin-bottom: 18px;
    }

    .clue-game-shell.qw-home .qw-home-join {
        flex-direction: column;
        align-items: stretch;
        gap: 17px;
    }

    .clue-game-shell.qw-home .qw-home-register-button {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .clue-game-shell.qw-home .app-subtitle {
        display: none;
    }

    .clue-game-shell.qw-home .qw-home-game-icon {
        flex-basis: 39px;
        height: 39px;
    }

    .clue-game-shell.qw-home .qw-home-game-card {
        padding: 14px 12px;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .clue-game-shell.qw-home .qw-home-game-card,
    .clue-game-shell.qw-home .qw-home-header-link {
        transition: none;
    }

        .clue-game-shell.qw-home .qw-home-game-card:hover {
            transform: none;
        }
}

/* ========================================================================
   QwizzWizz registration — scoped so the game and home screens are unchanged.
   ======================================================================== */
.clue-game-shell.qw-auth {
    width: min(calc(100% - 24px), 710px);
    padding: clamp(18px, 3.2vw, 30px);
}

    .clue-game-shell.qw-auth .qw-auth-header {
        margin-bottom: 24px;
    }

    .clue-game-shell.qw-auth .qw-auth-home {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0 16px;
        border: 1px solid #376a92;
        border-radius: 12px;
        background: #123b5e;
        color: #f1f8ff;
        font-size: .85rem;
        font-weight: 750;
        text-decoration: none;
        transition: border-color 150ms ease, background-color 150ms ease;
    }

        .clue-game-shell.qw-auth .qw-auth-home:hover {
            background: #1a527d;
            border-color: #7fafd0;
        }

    .clue-game-shell.qw-auth .qw-auth-panel {
        padding: clamp(20px, 4.5vw, 38px);
        border: 1px solid #2c628a;
        border-radius: 23px;
        background: radial-gradient(ellipse at top right, rgba(36, 98, 145, .27), transparent 56%), linear-gradient(155deg, #0c3356, #082744 90%);
        box-shadow: 0 14px 35px rgba(0, 13, 34, .18);
    }

    .clue-game-shell.qw-auth .qw-auth-panel-heading {
        margin-bottom: 22px;
    }

    .clue-game-shell.qw-auth .qw-auth-kicker {
        margin: 0 0 8px;
        font-size: .7rem;
        line-height: 1.4;
        font-weight: 850;
        color: #ffcb66;
        letter-spacing: .12em;
    }

    .clue-game-shell.qw-auth .qw-auth-panel h1,
    .clue-game-shell.qw-auth .qw-auth-panel h2 {
        margin: 0 0 9px;
        color: #fff;
        font-size: clamp(1.68rem, 4vw, 2.25rem);
        line-height: 1.13;
        letter-spacing: -.045em;
        font-weight: 850;
    }

    .clue-game-shell.qw-auth .qw-auth-heading-dot {
        color: #ffc34c;
    }

    .clue-game-shell.qw-auth .qw-auth-intro {
        margin: 0;
        max-width: 520px;
        color: #b9d6e9;
        line-height: 1.65;
        font-size: .93rem;
    }

    .clue-game-shell.qw-auth .qw-auth-login-prompt {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        column-gap: 7px;
        row-gap: 2px;
        margin: 0 0 24px;
        padding: 12px 14px;
        border-radius: 12px;
        border: 1px solid #306489;
        background: rgba(6, 34, 61, .7);
        font-size: .85rem;
        color: #bad4e7;
    }

        .clue-game-shell.qw-auth .qw-auth-login-prompt a,
        .clue-game-shell.qw-auth .qw-auth-intro a {
            color: #ffcf72;
            font-weight: 750;
            text-decoration: underline;
            text-decoration-color: rgba(255, 207, 114, .55);
            text-underline-offset: 3px;
        }

            .clue-game-shell.qw-auth .qw-auth-login-prompt a:hover,
            .clue-game-shell.qw-auth .qw-auth-intro a:hover {
                color: #ffe3a3;
            }

    .clue-game-shell.qw-auth .qw-auth-error {
        display: block;
        margin-bottom: 22px;
        padding: 14px 16px;
        border: 1px solid #a75568;
        border-left: 4px solid #ff819b;
        border-radius: 13px;
        background: #452c3b;
        color: #fff0f2;
        box-shadow: none;
    }

        .clue-game-shell.qw-auth .qw-auth-error strong {
            display: block;
            margin-bottom: 4px;
            color: #ffd6dd;
            font-size: .94rem;
        }

        .clue-game-shell.qw-auth .qw-auth-error p {
            margin: 0;
            color: #ffdbdf;
            font-size: .88rem;
            line-height: 1.45;
        }

    .clue-game-shell.qw-auth .qw-auth-form-fields {
        display: grid;
        gap: 21px;
    }

    .clue-game-shell.qw-auth .qw-auth-two-col {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .clue-game-shell.qw-auth .qw-auth-field {
        min-width: 0;
        margin: 0;
    }

    .clue-game-shell.qw-auth .qw-auth-label {
        display: block;
        margin-bottom: 8px;
        color: #e8f4fc;
        font-size: .88rem;
        line-height: 1.4;
        font-weight: 750;
    }

    .clue-game-shell.qw-auth .qw-auth-required {
        color: #ffcb66;
    }

    .clue-game-shell.qw-auth .qw-auth-input-wrap {
        display: block;
        position: relative;
    }

    .clue-game-shell.qw-auth .qw-auth-input {
        display: block;
        width: 100%;
        height: auto;
        min-height: 51px;
        margin: 0;
        padding: 13px 14px 13px 44px;
        border: 1px solid #497da6;
        border-radius: 12px;
        background: #082640;
        box-shadow: inset 0 1px 2px rgba(0,0,0,.16);
        color: #fff;
        -webkit-text-fill-color: #fff;
        caret-color: #ffc34c;
        font: inherit;
        font-size: 16px;
        transition: border-color 150ms ease, box-shadow 150ms ease;
    }

        .clue-game-shell.qw-auth .qw-auth-input::placeholder {
            color: #a0bcd1;
            -webkit-text-fill-color: #a0bcd1;
            opacity: 1;
        }

        .clue-game-shell.qw-auth .qw-auth-input:hover {
            border-color: #70a0c1;
        }

        .clue-game-shell.qw-auth .qw-auth-input:focus {
            background: #092d4b;
            color: #fff;
            -webkit-text-fill-color: #fff;
            border-color: #ffbd45;
            outline: none;
            box-shadow: 0 0 0 3px rgba(255, 186, 36, .19);
        }

    .clue-game-shell.qw-auth .qw-auth-field-icon {
        position: absolute;
        left: 14px;
        top: 25px;
        transform: translateY(-50%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 19px;
        height: 20px;
        color: #91bddc;
        pointer-events: none;
        z-index: 1;
    }

    .clue-game-shell.qw-auth .qw-auth-validation {
        display: block;
        margin: 7px 0 0;
        font-size: .8rem;
        line-height: 1.45;
        color: #ff9fb0 !important;
        font-weight: 600;
    }

    .clue-game-shell.qw-auth .qw-auth-help {
        margin: 8px 0 0;
        font-size: .78rem;
        line-height: 1.5;
        color: #a9c7db;
    }

    .clue-game-shell.qw-auth .qw-auth-actions {
        margin-top: 25px;
    }

    .clue-game-shell.qw-auth .qw-auth-submit,
    .clue-game-shell.qw-auth .qw-auth-home-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 53px;
        padding: 13px 18px;
        border: 0;
        border-radius: 13px;
        background: linear-gradient(180deg, #ffd264, #ffb323);
        color: #092742;
        font: inherit;
        font-weight: 850;
        font-size: .97rem;
        text-decoration: none;
        cursor: pointer;
        box-shadow: 0 9px 18px rgba(255, 174, 27, .17);
        transition: background 150ms ease, transform 150ms ease;
    }

        .clue-game-shell.qw-auth .qw-auth-submit:hover,
        .clue-game-shell.qw-auth .qw-auth-home-button:hover {
            background: linear-gradient(180deg, #ffdf8d, #ffc247);
            color: #092742;
            transform: translateY(-1px);
        }

    .clue-game-shell.qw-auth :is(a, button, input):focus-visible {
        outline: 3px solid #ffce70;
        outline-offset: 3px;
    }

    .clue-game-shell.qw-auth .qw-auth-input:focus-visible {
        outline: none;
    }

    .clue-game-shell.qw-auth .qw-auth-required-note {
        margin: 12px 0 0;
        color: #9bbdd5;
        font-size: .75rem;
        text-align: center;
    }

        .clue-game-shell.qw-auth .qw-auth-required-note span {
            color: #ffcb66;
        }

    .clue-game-shell.qw-auth .qw-auth-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 23px;
        font-size: .78rem;
        color: #93b9d5;
    }

        .clue-game-shell.qw-auth .qw-auth-footer a {
            color: #bcdcf1;
            text-decoration: none;
            font-weight: 700;
        }

            .clue-game-shell.qw-auth .qw-auth-footer a:hover {
                color: #ffce70;
            }

    .clue-game-shell.qw-auth.qw-auth-logged-in .qw-auth-home-button {
        margin-top: 22px;
    }

@media (max-width: 570px) {
    .clue-game-shell.qw-auth .qw-auth-two-col {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .clue-game-shell.qw-auth .qw-auth-panel {
        padding: 22px 18px;
    }

    .clue-game-shell.qw-auth .qw-auth-header {
        gap: 10px;
    }

    .clue-game-shell.qw-auth .qw-auth-home {
        padding: 0 12px;
    }
}

@media (max-width: 370px) {
    .clue-game-shell.qw-auth .app-subtitle {
        display: none;
    }

    .clue-game-shell.qw-auth .qw-auth-header {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .clue-game-shell.qw-auth .qw-auth-home,
    .clue-game-shell.qw-auth .qw-auth-input,
    .clue-game-shell.qw-auth .qw-auth-submit,
    .clue-game-shell.qw-auth .qw-auth-home-button {
        transition: none;
    }

        .clue-game-shell.qw-auth .qw-auth-submit:hover,
        .clue-game-shell.qw-auth .qw-auth-home-button:hover {
            transform: none;
        }
}

/* ========================================================================
   QwizzWizz login — reuses registration styles and stays scoped to .qw-login.
   ======================================================================== */
.clue-game-shell.qw-auth.qw-login {
    width: min(calc(100% - 24px), 1100px);
}

    .clue-game-shell.qw-auth.qw-login .qw-login-intro {
        margin: 0 0 25px;
    }

        .clue-game-shell.qw-auth.qw-login .qw-login-intro h1 {
            margin: 0 0 8px;
            color: #ffffff;
            font-size: clamp(1.8rem, 4vw, 2.6rem);
            font-weight: 850;
            line-height: 1.12;
            letter-spacing: -.04em;
        }

        .clue-game-shell.qw-auth.qw-login .qw-login-intro > p:last-child {
            margin: 0;
            max-width: 700px;
            color: #b9d6e9;
            line-height: 1.65;
            font-size: .95rem;
        }

    .clue-game-shell.qw-auth.qw-login .qw-login-global-error {
        margin-bottom: 19px;
    }

    .clue-game-shell.qw-auth.qw-login .qw-login-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
        gap: 20px;
        align-items: stretch;
    }

        .clue-game-shell.qw-auth.qw-login .qw-login-grid > .qw-auth-panel {
            min-width: 0;
            height: 100%;
            padding: clamp(21px, 3vw, 33px);
        }

    .clue-game-shell.qw-auth.qw-login .qw-login-code {
        background: radial-gradient(ellipse at top right, rgba(36, 98, 145, .30), transparent 60%), linear-gradient(155deg, #0e3659, #082744 90%);
    }

    .clue-game-shell.qw-auth.qw-login .qw-login-card-heading {
        display: flex;
        align-items: center;
        gap: 13px;
        margin: 0 0 13px;
    }

        .clue-game-shell.qw-auth.qw-login .qw-login-card-heading > div:last-child {
            min-width: 0;
        }

        .clue-game-shell.qw-auth.qw-login .qw-login-card-heading .qw-auth-kicker {
            margin-bottom: 5px;
        }

        .clue-game-shell.qw-auth.qw-login .qw-login-card-heading h2 {
            margin: 0;
            font-size: clamp(1.34rem, 2.65vw, 1.72rem);
            letter-spacing: -.035em;
            line-height: 1.16;
        }

    .clue-game-shell.qw-auth.qw-login .qw-login-icon {
        flex: 0 0 46px;
        width: 46px;
        height: 46px;
        display: grid;
        place-items: center;
        border: 1px solid #6c6838;
        border-radius: 13px;
        background: rgba(255, 195, 76, .11);
        color: #ffcb66;
        font-size: 1.1rem;
    }

    .clue-game-shell.qw-auth.qw-login .qw-login-icon-blue {
        border-color: #3d7399;
        background: rgba(98, 175, 228, .12);
        color: #a8d8f9;
    }

    .clue-game-shell.qw-auth.qw-login .qw-login-card-copy {
        min-height: 0;
        margin-bottom: 15px;
    }

    .clue-game-shell.qw-auth.qw-login .qw-login-method-note {
        margin: 0 0 23px;
        padding: 10px 12px;
        border: 1px solid #315f80;
        border-radius: 11px;
        background: #082b49;
        color: #b7d5e9;
        font-size: .82rem;
        line-height: 1.55;
    }

        .clue-game-shell.qw-auth.qw-login .qw-login-method-note strong {
            color: #ffce70;
        }

        .clue-game-shell.qw-auth.qw-login .qw-login-method-note a {
            color: #ffce70;
            font-weight: 750;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

    .clue-game-shell.qw-auth.qw-login .qw-login-grid .qw-auth-form-fields {
        gap: 20px;
    }

    .clue-game-shell.qw-auth.qw-login .qw-login-field-error:empty {
        display: none;
    }

    .clue-game-shell.qw-auth.qw-login .qw-login-code-submit {
        background: #164e75;
        border: 1px solid #5e9bc0;
        color: #ffffff;
        box-shadow: 0 9px 18px rgba(0, 12, 27, .12);
    }

        .clue-game-shell.qw-auth.qw-login .qw-login-code-submit:hover {
            background: #20658e;
            color: #ffffff;
        }

    .clue-game-shell.qw-auth.qw-login .qw-login-join {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        margin-top: 20px;
        padding: 21px 24px;
        border: 1px solid #5a623f;
        border-radius: 19px;
        background: linear-gradient(105deg, #123c50, #153747);
    }

        .clue-game-shell.qw-auth.qw-login .qw-login-join h2 {
            margin: 0 0 4px;
            font-size: 1.45rem;
            line-height: 1.2;
            color: #ffffff;
            font-weight: 850;
        }

        .clue-game-shell.qw-auth.qw-login .qw-login-join p:last-child {
            margin: 0;
            color: #bbd7e9;
            font-size: .88rem;
            line-height: 1.5;
        }

    .clue-game-shell.qw-auth.qw-login .qw-login-register-button {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        min-height: 49px;
        padding: 11px 20px;
        border-radius: 12px;
        background: linear-gradient(180deg, #ffd264, #ffb323);
        color: #092742;
        font-size: .9rem;
        font-weight: 850;
        text-decoration: none;
    }

        .clue-game-shell.qw-auth.qw-login .qw-login-register-button:hover {
            color: #092742;
            background: linear-gradient(180deg, #ffdf8d, #ffc247);
        }

    .clue-game-shell.qw-auth.qw-login .qw-login-recovery {
        max-width: 680px;
        margin-top: 20px;
    }

        .clue-game-shell.qw-auth.qw-login .qw-login-recovery .qw-auth-field {
            margin-top: 18px;
        }

        .clue-game-shell.qw-auth.qw-login .qw-login-recovery .qw-auth-actions {
            margin-top: 18px;
        }

    .clue-game-shell.qw-auth.qw-login .qw-login-state {
        max-width: 630px;
        margin: 0 auto;
        text-align: center;
    }

    .clue-game-shell.qw-auth.qw-login .qw-login-state-icon {
        display: grid;
        place-items: center;
        margin: 0 auto 17px;
        width: 55px;
        height: 55px;
        border-radius: 50%;
        background: #184d42;
        border: 1px solid #4cae8c;
        color: #a1f4c7;
    }

    .clue-game-shell.qw-auth.qw-login .qw-login-state .qw-auth-home-button {
        margin-top: 23px;
    }

@media (max-width: 780px) {
    .clue-game-shell.qw-auth.qw-login .qw-login-grid {
        grid-template-columns: 1fr;
    }

    .clue-game-shell.qw-auth.qw-login .qw-login-join {
        align-items: flex-start;
    }
}

@media (max-width: 510px) {
    .clue-game-shell.qw-auth.qw-login .qw-login-intro {
        margin-bottom: 19px;
    }

    .clue-game-shell.qw-auth.qw-login .qw-login-grid {
        gap: 15px;
    }

    .clue-game-shell.qw-auth.qw-login .qw-login-join {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 21px;
    }

    .clue-game-shell.qw-auth.qw-login .qw-login-register-button {
        width: 100%;
    }

    .clue-game-shell.qw-auth.qw-login .qw-login-card-heading h2 {
        font-size: 1.35rem;
    }
}
