﻿/* QwizzWizz | Shared Colour Pop 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 {
    }

    .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 {
        width: 100%;
        min-height: 54px;
        padding: 15px 20px;
        border: 0;
        font-size: .97rem;
        letter-spacing: -.01em;
        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 {
    --transition: 180ms ease;
    width: min(100% - 24px, 680px);
    margin: 22px auto;
    padding: clamp(16px, 3vw, 28px);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    border: 1px solid #20527e;
    border-radius: 26px;
    animation: shellEnter 420ms cubic-bezier(.2,.7,.25,1) both;
}

    .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;
        font-size: 27px;
        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;
    }

        .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;
        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;
        border: 1px solid #44617b;
        border-radius: 11px;
        font-size: .85rem;
        font-weight: 850;
        letter-spacing: -.01em;
    }

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

        .clue-game-shell .budget-pill strong {
            margin-left: 4px;
            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;
        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;
    }

    .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 {
        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;
        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;
        background: transparent;
        cursor: pointer;
        touch-action: pan-y;
    }

        .clue-game-shell input[type=range]::-webkit-slider-runnable-track {
            height: 7px;
            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%;
        }

        .clue-game-shell input[type=range]::-moz-range-track {
            height: 7px;
            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%;
        }

    .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;
        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;
        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 {
        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;
        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;
        border: 1px solid #36668b;
        border-radius: 23px;
        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: "✓";
    }

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

    .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) {
    }

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

    .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 {
        }

        .clue-game-shell #answer-field:hover {
        }

        .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 {
            cursor: not-allowed;
            opacity: .7;
        }

    .clue-game-shell .game-reset-container .btn {
        padding: 8px 13px;
        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);
    }

        .clue-game-shell .game-reset-container .btn:hover {
        }

        .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;
        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;
        }

        .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;
            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;
        }

        .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;
    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;
    }

.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;
    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;
    text-decoration: none;
    text-align: left;
    font: inherit;
    font-weight: 650;
    font-size: .9rem;
    cursor: pointer;
}

    .clue-game-shell .game-menu-item:hover {
        text-decoration: none;
    }

.clue-game-shell .game-menu-item-icon {
    display: inline-grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 7px;
    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 {
    }

.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;
}

.clue-game-shell #play-points-description {
}

.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 {
}

@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 {
}

    .clue-game-shell .play-points-dialog[data-multiplier="2"] {
    }

    .clue-game-shell .play-points-dialog[data-multiplier="1"] {
    }

.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;
    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 {
    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;
        margin-bottom: 22px;
    }

    .clue-game-shell.qw-home .qw-home-hero-mark {
        position: absolute;
        z-index: -1;
        top: -44px;
        right: 10px;
        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;
    }

    .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 {
        border: 0;
        border-radius: 13px;
        padding: 12px 18px;
        min-height: 46px;
        background: #ffba24;
        color: #092743;
        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 {
    }

    .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;
        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%;
        }

    .clue-game-shell.qw-home .qw-home-list {
        gap: 12px;
    }

    .clue-game-shell.qw-home .qw-home-game-card {
        position: relative;
        min-height: 131px;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 19px 15px;
        text-decoration: none;
        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);
        }

    .clue-game-shell.qw-home .qw-home-game-icon {
        flex: 0 0 46px;
        height: 46px;
        display: grid;
        place-items: center;
        border: 1px solid #436f8b;
        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 {
        font-size: .64rem;
        font-weight: 850;
        letter-spacing: .08em;
    }

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

    .clue-game-shell.qw-home .qw-home-game-caption {
        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%;
        font-size: 19px;
    }

    .clue-game-shell.qw-home .qw-home-empty {
        padding: 43px 20px;
        text-align: center;
        border-radius: 18px;
        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;
    }

    .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;
        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;
        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 {
            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 {
            }

    .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;
    }

    .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;
    }

    .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 {
            }

    .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;
        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 {
    }

    .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;
        transition: border-color 150ms ease, box-shadow 150ms ease;
    }

        .clue-game-shell.qw-auth .qw-auth-input::placeholder {
        }

        .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;
            outline: none;
        }

    .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;
        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;
        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 {
            text-decoration: none;
            font-weight: 700;
        }

            .clue-game-shell.qw-auth .qw-auth-footer a:hover {
            }

    .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 {
    }

    .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;
        font-size: 1.1rem;
    }

    .clue-game-shell.qw-auth.qw-login .qw-login-icon-blue {
    }

    .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 {
        border: 1px solid #5e9bc0;
    }

        .clue-game-shell.qw-auth.qw-login .qw-login-code-submit:hover {
        }

    .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;
    }

        .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;
            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%;
        border: 1px solid #4cae8c;
    }

    .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;
    }
}

/* =======================================================================
   QwizzWizz game: deliberate two-step play flow (stake, then answer).
   Scope to the game modal so auth, home and leaderboard styles are untouched.
   ======================================================================= */
.clue-game-shell .qw-main-instruction {
    margin: 0 0 12px;
    color: #cfdfef;
    text-align: center;
    font-size: .93rem;
    font-weight: 650;
}

.clue-game-shell .qw-two-stage-dialog .qw-stage[hidden] {
    display: none !important;
}

.clue-game-shell .qw-two-stage-dialog .qw-stage {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.clue-game-shell .qw-two-stage-dialog .qw-stage-heading {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 0 1px;
}

.clue-game-shell .qw-two-stage-dialog .qw-stage-counter {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #eeae38;
    border-radius: 50%;
    font-size: .9rem;
    font-weight: 850;
}

.clue-game-shell .qw-two-stage-dialog .qw-stage-heading h3 {
    margin: 0 0 2px;
    color: #f8fbff;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.3;
}

.clue-game-shell .qw-two-stage-dialog .qw-stage-heading p {
    margin: 0;
    color: #abc8dd;
    font-size: .83rem;
    line-height: 1.4;
}

.clue-game-shell .qw-two-stage-dialog .bet-section label strong {
    color: #ffcf67;
    font-size: 1.22rem;
}

.clue-game-shell .qw-two-stage-dialog .qw-outcomes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.clue-game-shell .qw-two-stage-dialog .qw-win-box,
.clue-game-shell .qw-two-stage-dialog .qw-loss-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 4px;
    padding: 11px 10px;
    border-radius: 12px;
}

.clue-game-shell .qw-two-stage-dialog .qw-win-box {
    border: 1px solid var(--qw-win-border);
    background: var(--qw-win-bg);
    color: var(--qw-win-accent);
}

.clue-game-shell .qw-two-stage-dialog .qw-loss-box {
    border: 1px solid #91566d;
    background: #442638;
    color: #ffc3cf;
}

.clue-game-shell .qw-two-stage-dialog .qw-win-box .potential-win-label,
.clue-game-shell .qw-two-stage-dialog .qw-loss-label {
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.25;
}

.clue-game-shell .qw-two-stage-dialog .qw-win-box .potential-win-value,
.clue-game-shell .qw-two-stage-dialog .qw-loss-box strong {
    color: inherit;
    font-size: clamp(1.2rem, 5vw, 1.65rem);
    line-height: 1.15;
    font-weight: 850;
    white-space: nowrap;
}

.clue-game-shell .qw-two-stage-dialog .qw-win-box small,
.clue-game-shell .qw-two-stage-dialog .qw-loss-box small {
    font-size: .68rem;
    line-height: 1.25;
    color: inherit;
    opacity: .86;
}

.clue-game-shell .qw-two-stage-dialog .qw-stage-primary {
    width: 100%;
    min-height: 52px;
    margin: 0;
}

.clue-game-shell .qw-two-stage-dialog .qw-confirmed-outcomes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.clue-game-shell .qw-two-stage-dialog .qw-confirmed-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 13px 11px;
    border: 1px solid;
    border-radius: 13px;
    font-size: .84rem;
    font-weight: 800;
}

    .clue-game-shell .qw-two-stage-dialog .qw-confirmed-chip strong {
        font-size: 1.04rem;
        white-space: nowrap;
    }

.clue-game-shell .qw-two-stage-dialog .qw-confirmed-win {
    background: var(--qw-win-bg);
    border-color: var(--qw-win-border);
    color: var(--qw-win-accent);
}

.clue-game-shell .qw-two-stage-dialog .qw-confirmed-loss {
    background: #442638;
    border-color: #91566d;
    color: #ffc3cf;
}

.clue-game-shell .qw-two-stage-dialog .qw-answer-warning {
    padding: 9px 11px;
    border-radius: 10px;
    background: #4a341c;
    border: 1px solid #d5953a;
    color: #ffdb9a;
    font-size: .83rem;
    font-weight: 750;
}

.clue-game-shell .qw-two-stage-dialog .qw-change-stake {
    display: block;
    align-self: flex-start;
    min-height: 36px;
    padding: 5px 3px;
    border: 0;
    background: none;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    font-size: .84rem;
    font-weight: 700;
}

.clue-game-shell .qw-two-stage-dialog .qw-stage .action-footer {
    position: static;
    margin: 0;
    padding: 0;
}

.clue-game-shell .qw-two-stage-dialog .answer-entry {
    margin: 0;
}

.clue-game-shell .qw-two-stage-dialog .play-points-hint-below {
    margin-top: 1px;
}

@media (max-width: 375px) {
    .clue-game-shell .qw-two-stage-dialog .qw-stage {
        gap: 10px;
    }

    .clue-game-shell .qw-two-stage-dialog .qw-stage-heading h3 {
        font-size: 1rem;
    }

    .clue-game-shell .qw-two-stage-dialog .qw-outcomes {
        gap: 7px;
    }

    .clue-game-shell .qw-two-stage-dialog .qw-win-box,
    .clue-game-shell .qw-two-stage-dialog .qw-loss-box {
        padding: 9px 8px;
    }

    .clue-game-shell .qw-two-stage-dialog .qw-confirmed-chip {
        padding: 10px 8px;
        font-size: .77rem;
    }
}


/* ============================================================================

   QWIZZWIZZ | FOREST MIST + COLOUR POP

   Light neutral surfaces, ocean-blue actions, coral warmth and lavender detail.

   3x/2x/1x and win/loss remain semantically colour coded.

   Scoped CSS only; ASPX and gameplay are unchanged.

   ============================================================================ */

.clue-game-shell {
    --brand-primary: #286cd2;
    --brand-primary-dark: #1d4fa3;
    --brand-primary-soft: #eaf1ff;
    --brand-success: #18834e;
    --brand-danger: #b7354b;
    --text-main: #23334a;
    --text-muted: #607082;
    --line: #d7e1eb;
    --surface: #ffffff;
    --surface-soft: #f4f7ff;
    --qw-forest-ink: #23334a;
    --qw-forest-muted: #607082;
    --qw-forest-border: #d7e1eb;
    --qw-forest-pale: #fafbff;
    --qw-forest-mint: #eaf1ff;
    --qw-forest-deep: #286cd2;
    --qw-forest-hover: #e2ecff;
    color: var(--qw-forest-ink);
    color-scheme: light;
    background: linear-gradient(137deg, #fefbf7 0%, #f5f8ff 51%, #f5faf7 100%);
    border-color: #dce5ef;
    box-shadow: 0 18px 44px rgba(54, 78, 112, .09);
}

    .clue-game-shell .app-logo {
        color: #ffffff;
        background: linear-gradient(140deg, #4779eb 8%, #7452c6 95%);
        box-shadow: 0 8px 17px rgba(71, 91, 205, .19);
    }

    .clue-game-shell .app-title,
    .clue-game-shell #question-text,
    .clue-game-shell .qw-home-hero h2,
    .clue-game-shell .qw-home-games-heading h2,
    .clue-game-shell .qw-home-join h2,
    .clue-game-shell.qw-auth .qw-auth-panel h1,
    .clue-game-shell.qw-auth .qw-auth-panel h2,
    .clue-game-shell.qw-auth.qw-login .qw-login-intro h1,
    .clue-game-shell.qw-auth.qw-login .qw-login-join h2,
    .clue-game-shell.qw-home .qw-home-game-title {
        color: #23334a;
    }

    .clue-game-shell .app-eyebrow,
    .clue-game-shell .section-label,
    .clue-game-shell.qw-home .qw-home-hero-eyebrow,
    .clue-game-shell.qw-home .qw-home-section-eyebrow,
    .clue-game-shell.qw-auth .qw-auth-kicker {
    }

    .clue-game-shell .app-subtitle,
    .clue-game-shell .qw-main-instruction,
    .clue-game-shell .field-label,
    .clue-game-shell .previous-clues-heading,
    .clue-game-shell .play-points-launch-note,
    .clue-game-shell.qw-home .qw-home-hero > p:not(.qw-home-hero-eyebrow),
    .clue-game-shell.qw-home .qw-home-join p:not(.qw-home-section-eyebrow),
    .clue-game-shell.qw-home .qw-home-empty p,
    .clue-game-shell.qw-auth .qw-auth-intro,
    .clue-game-shell.qw-auth.qw-login .qw-login-intro > p:last-child {
        color: #607082;
    }

    .clue-game-shell .meta-item,
    .clue-game-shell .game-meta .meta-item:nth-child(3) {
        background: #ffffff;
        border-color: #dbe5f0;
        color: #23334a;
        box-shadow: 0 3px 11px rgba(49, 79, 119, .05);
    }

    .clue-game-shell .game-meta .meta-item:nth-child(3) {
        background: #fff2d9;
        border-color: #edd7a1;
    }

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

    .clue-game-shell .meta-label,
    .clue-game-shell .slash {
        color: #64758a !important;
    }

    .clue-game-shell .game-card {
    }

    .clue-game-shell .multiplier-tag {
        color: #90601b;
        background: #fff3d9;
        border-color: #ead5a9;
    }

    .clue-game-shell .budget-pill {
        background: #f0eeff;
        color: #5c4e90;
        border-color: #d9d0f7;
    }

        .clue-game-shell .budget-pill strong {
            color: #513c98;
        }

    .clue-game-shell .section-label-mark {
        background: #ee746b;
    }

    .clue-game-shell .clue-bubble,
    .clue-game-shell .clue-bubble:first-child,
    .clue-game-shell .clue-bubble:not(:last-child),
    .clue-game-shell .clue-bubble:last-child,
    .clue-game-shell #clue-container .clue-bubble,
    .clue-game-shell #clue-container .clue-bubble:first-child,
    .clue-game-shell #clue-container .clue-bubble:last-child,
    .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: #f7f8fe !important;
        border-color: #d8def3;
        border-left: 4px solid #79b991;
        color: #23334a !important;
        box-shadow: none;
        border-left-color: #8171c7;
    }

    .clue-game-shell .current-clue-container .clue-bubble,
    .clue-game-shell .current-clue-container .clue-bubble:last-child {
        background: #fff2e7 !important;
        border-color: #efc8a9;
        border-left-color: #dc8a57;
        color: #493326 !important;
        box-shadow: 0 3px 11px rgba(163, 93, 47, .07);
    }

    .clue-game-shell .previous-clues-section {
        border-top-color: #dce4ed;
    }

    .clue-game-shell .bet-section label,
    .clue-game-shell .qw-two-stage-dialog .bet-section label {
        color: #23334a;
    }

    .clue-game-shell #bet-display-value {
        background: #e7efff;
        border-color: #bdd0f9;
        color: #2459b9;
    }

    .clue-game-shell input[type=range] {
        accent-color: #346de1;
    }

        .clue-game-shell input[type=range]::-webkit-slider-runnable-track,
        .clue-game-shell input[type=range]::-moz-range-track {
            background: #cfddf2;
        }

        .clue-game-shell input[type=range]::-webkit-slider-thumb {
            border-color: #346de1;
            box-shadow: 0 2px 6px rgba(36, 89, 185, .18);
        }

        .clue-game-shell input[type=range]::-moz-range-thumb {
            border-color: #346de1;
            box-shadow: 0 2px 6px rgba(36, 89, 185, .18);
        }

    .clue-game-shell .slider-scale,
    .clue-game-shell .potential-win-formula {
        color: #667689;
    }

    .clue-game-shell .potential-win {
        background: #e9f4ee;
        border-color: #b8d9c6;
    }

    .clue-game-shell .potential-win-label {
        color: #275d3b;
    }

    .clue-game-shell .potential-win-value {
        color: #17683f;
    }

    .clue-game-shell .button-main.btn-primary,
    .clue-game-shell .btn-primary,
    .clue-game-shell .game-rules-acknowledge,
    .clue-game-shell.qw-home .qw-home-rules-button,
    .clue-game-shell.qw-home .qw-home-register-button,
    .clue-game-shell.qw-auth .qw-auth-submit,
    .clue-game-shell.qw-auth .qw-auth-home-button,
    .clue-game-shell.qw-auth.qw-login .qw-login-register-button {
        background: linear-gradient(180deg, #447beb, #2865d2);
        color: #ffffff;
        border-color: transparent;
        box-shadow: 0 7px 17px rgba(42, 99, 212, .16);
    }

        .clue-game-shell .btn-primary:hover:not(:disabled),
        .clue-game-shell .button-main.btn-primary:hover:not(:disabled),
        .clue-game-shell .game-rules-acknowledge:hover,
        .clue-game-shell.qw-home .qw-home-rules-button:hover,
        .clue-game-shell.qw-home .qw-home-register-button:hover,
        .clue-game-shell.qw-auth .qw-auth-submit:hover,
        .clue-game-shell.qw-auth .qw-auth-home-button:hover,
        .clue-game-shell.qw-auth.qw-login .qw-login-register-button:hover {
            background: linear-gradient(180deg, #326adb, #1c51b8);
            color: #ffffff;
            box-shadow: 0 8px 18px rgba(42, 99, 212, .20);
        }

        .clue-game-shell :is(a, button, input, summary):focus-visible,
        .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,
        .clue-game-shell .game-reset-container .btn:focus-visible,
        .clue-game-shell .button-main:focus-visible,
        .clue-game-shell .btn-primary:focus-visible,
        .clue-game-shell.qw-home :is(a, button):focus-visible,
        .clue-game-shell.qw-auth :is(a, button, input):focus-visible {
            outline: 3px solid #4e78da;
            outline-offset: 3px;
        }

    .clue-game-shell .all-in-warning,
    .clue-game-shell .qw-two-stage-dialog .qw-answer-warning {
        background: #fff3dc;
        border-color: #e7c181;
        color: #784914;
    }

    .clue-game-shell .all-in-warning-title,
    .clue-game-shell .all-in-warning-message {
        color: #784914;
    }

    .clue-game-shell .all-in-warning-icon {
        background: #e9b653;
        color: #614011;
    }

    .clue-game-shell .final-clue-stake-note {
        color: #80551d;
    }

    .clue-game-shell .game-reset-container .btn {
        background: #f1f4fc;
        border-color: #d1dded;
        color: #345682;
    }

        .clue-game-shell .game-reset-container .btn:hover {
            background: #e8effc;
            border-color: #a9c0e6;
            color: #214b9b;
        }

    .clue-game-shell .game-menu-trigger,
    .clue-game-shell .game-rules-close,
    .clue-game-shell .play-points-dialog-close {
        background: #ffffff;
        border-color: #d1dded;
        color: #345682;
    }

        .clue-game-shell .game-menu-trigger:hover,
        .clue-game-shell .game-menu[open] .game-menu-trigger,
        .clue-game-shell .game-rules-close:hover,
        .clue-game-shell .play-points-dialog-close:hover {
            background: #edf3ff;
            border-color: #9fb9ed;
            color: #214eaa;
        }

    .clue-game-shell .game-menu-bars span {
        background: #3c6bd1;
    }

    .clue-game-shell .game-menu-chevron {
        border-color: #718ab0;
    }

    .clue-game-shell .game-menu-dropdown {
        background: #ffffff;
        border-color: #d4dfee;
        box-shadow: 0 15px 37px rgba(39, 58, 104, .15);
    }

    .clue-game-shell .game-menu-item {
        color: #23334a;
    }

        .clue-game-shell .game-menu-item:hover {
            color: #285bb4;
            background: #edf3ff;
        }

    .clue-game-shell .game-menu-item-icon {
        color: #3b6cda;
        background: #eaf1ff;
    }

    .clue-game-shell .game-rules-dialog,
    .clue-game-shell .play-points-dialog {
        color: #23334a;
        background: #ffffff;
        border-color: #d4dfed;
        box-shadow: 0 22px 52px rgba(26, 46, 84, .22);
        color-scheme: light;
    }

        .clue-game-shell .game-rules-dialog::backdrop,
        .clue-game-shell .play-points-dialog::backdrop {
            background: rgba(27, 43, 70, .46);
        }

    .clue-game-shell .game-rules-header h2,
    .clue-game-shell .play-points-dialog-header h2,
    .clue-game-shell .qw-two-stage-dialog .qw-stage-heading h3,
    .clue-game-shell #result-title {
        color: #23334a;
    }

    .clue-game-shell .game-rules-eyebrow,
    .clue-game-shell .play-points-eyebrow,
    .clue-game-shell .play-points-hint-label {
        color: #466ed5;
    }

    .clue-game-shell .game-rules-content,
    .clue-game-shell #play-points-description,
    .clue-game-shell .qw-two-stage-dialog .qw-stage-heading p {
        color: #607082;
    }

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

    .clue-game-shell .play-points-dialog-header {
        border-bottom-color: #e0e6f0;
    }

    .clue-game-shell .play-points-dialog .stake-reward-group {
        background: #f6f7fe;
        border-color: #dce3f4;
    }

    .clue-game-shell .play-points-dialog .play-points-hint-below {
        background: #f0f5ff;
        border-color: #d0ddf3;
        color: #455978;
    }

        .clue-game-shell .play-points-dialog .play-points-hint-below .clue-bubble,
        .clue-game-shell .play-points-dialog .play-points-hint-below .clue-bubble:last-child {
            background: transparent !important;
            border: 0;
            color: #23334a !important;
        }

    .clue-game-shell .play-points-dialog {
        --qw-win-bg: #e0f3e6;
        --qw-win-border: #a6d3b7;
        --qw-win-accent: #166842;
        --qw-win-muted: #316849;
    }

        .clue-game-shell .play-points-dialog[data-multiplier="2"] {
            --qw-win-bg: #e6f3fa;
            --qw-win-border: #9fcbdc;
            --qw-win-accent: #1a5b78;
            --qw-win-muted: #356b81;
        }

        .clue-game-shell .play-points-dialog[data-multiplier="1"] {
            --qw-win-bg: #fff3dd;
            --qw-win-border: #e6c287;
            --qw-win-accent: #895819;
            --qw-win-muted: #80622f;
        }

        .clue-game-shell .play-points-dialog .potential-win,
        .clue-game-shell .qw-two-stage-dialog .qw-win-box,
        .clue-game-shell .qw-two-stage-dialog .qw-confirmed-win {
            background: var(--qw-win-bg);
            border-color: var(--qw-win-border);
            color: var(--qw-win-accent);
        }

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

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

    .clue-game-shell .qw-two-stage-dialog .qw-loss-box,
    .clue-game-shell .qw-two-stage-dialog .qw-confirmed-loss {
        background: #fff0f1;
        border-color: #ebb7c0;
        color: #a22e43;
    }

    .clue-game-shell .qw-two-stage-dialog .qw-stage-counter {
        color: #3f5dad;
        border-color: #c5d3f4;
        background: #edf1ff;
    }

    .clue-game-shell .qw-two-stage-dialog .qw-change-stake {
        color: #2c5fc2;
    }

    .clue-game-shell #answer-field,
    .clue-game-shell #answer-field:hover,
    .clue-game-shell #answer-field:focus,
    .clue-game-shell .play-points-dialog #answer-field {
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: #23334a !important;
        -webkit-text-fill-color: #23334a;
        caret-color: #286cd2;
        border-color: #c5d3e8;
    }

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

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

        .clue-game-shell #answer-field:focus,
        .clue-game-shell .play-points-dialog #answer-field:focus {
            border-color: #3c73df;
            box-shadow: 0 0 0 3px rgba(60, 115, 223, .15);
        }

        .clue-game-shell #answer-field:disabled {
            background: #f2f5fa !important;
            color: #697b92 !important;
            -webkit-text-fill-color: #697b92;
        }

    .clue-game-shell #result-overlay {
        color: #23334a;
        background: #ffffff;
        border-color: #d7dfeb;
        box-shadow: 0 0 0 100vw rgba(29, 45, 74, .50), 0 22px 54px rgba(18, 37, 69, .17);
    }

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

    .clue-game-shell #result-body {
        color: #607082;
    }

    .clue-game-shell #result-overlay.feedback-correct #result-title::before {
        background: #c4ebd0;
        color: #196940;
    }

    .clue-game-shell #result-overlay.feedback-wrong #result-title::before {
        background: #fbdde1;
        color: #9f3146;
    }

    .clue-game-shell.qw-home .qw-home-header-link,
    .clue-game-shell.qw-auth .qw-auth-home {
        background: #ffffff;
        border-color: #d3e0f0;
        color: #365b9d;
    }

        .clue-game-shell.qw-home .qw-home-header-link:hover,
        .clue-game-shell.qw-auth .qw-auth-home:hover {
            background: #edf3ff;
            border-color: #b4c9ec;
            color: #214fab;
        }

    .clue-game-shell.qw-home .qw-home-hero {
        border-color: #d8e2f0;
        background: radial-gradient(ellipse at 95% 0%, rgba(255, 207, 177, .48), transparent 57%), linear-gradient(145deg, #f9fcff, #edf3ff);
    }

    .clue-game-shell.qw-home .qw-home-hero-mark {
        color: rgba(247, 149, 107, .19);
    }

    .clue-game-shell.qw-home .qw-home-games {
        border-top-color: #dce5f2;
    }

    .clue-game-shell.qw-home .qw-home-count {
        color: #286a58;
        background: #e3f5ed;
        border-color: #b7dfcc;
    }

        .clue-game-shell.qw-home .qw-home-count::before {
            background: #2d9d70;
            box-shadow: 0 0 0 3px rgba(42, 155, 94, .12);
        }

    .clue-game-shell.qw-home .qw-home-list {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .clue-game-shell.qw-home .qw-home-game-card {
        width: 100%;
        min-width: 0;
        color: #23334a;
    }

        .clue-game-shell.qw-home .qw-home-game-card:hover {
            background: #f7faff;
            border-color: #9ebae8;
            box-shadow: 0 11px 22px rgba(40, 83, 159, .12);
        }

    .clue-game-shell.qw-home .qw-home-game-title {
        color: #23334a;
    }

    .clue-game-shell.qw-home .qw-home-game-kicker {
        color: #416dc0;
    }

    .clue-game-shell.qw-home .qw-home-game-caption {
        color: #65778d;
    }

    .clue-game-shell.qw-home .qw-home-game-icon {
        background: #e9f0ff;
        border-color: #cbdaf9;
        color: #3b6ed1;
    }

    .clue-game-shell.qw-home .qw-home-game-arrow {
        background: #eaf1ff;
        color: #386bd6;
    }

    .clue-game-shell.qw-home .qw-home-empty {
        background: #f7faff;
        border-color: #dce4f1;
    }

        .clue-game-shell.qw-home .qw-home-empty > span,
        .clue-game-shell.qw-home .qw-home-empty h3 {
            color: #226b45;
        }

    .clue-game-shell.qw-home .qw-home-join {
        background: linear-gradient(115deg, #fff0e8, #fff8f0);
        border-color: #f5d5c1;
    }

    .clue-game-shell.qw-home .qw-home-footer {
        border-top-color: #e0e6ef;
        color: #667689;
    }

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

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

    .clue-game-shell.qw-auth .qw-auth-panel,
    .clue-game-shell.qw-auth.qw-login .qw-login-code {
        background: radial-gradient(ellipse at 100% 0%, rgba(232, 239, 255, .56), transparent 62%), #ffffff;
        border-color: #dce5ef;
        box-shadow: 0 11px 29px rgba(45, 70, 105, .09);
    }

    .clue-game-shell.qw-auth .qw-auth-heading-dot,
    .clue-game-shell.qw-auth .qw-auth-required,
    .clue-game-shell.qw-auth .qw-auth-required-note span {
        color: #ea766c;
    }

    .clue-game-shell.qw-auth .qw-auth-login-prompt,
    .clue-game-shell.qw-auth.qw-login .qw-login-method-note {
        background: #eef4ff;
        border-color: #d1dffa;
        color: #516681;
    }

        .clue-game-shell.qw-auth .qw-auth-login-prompt a,
        .clue-game-shell.qw-auth .qw-auth-intro a,
        .clue-game-shell.qw-auth.qw-login .qw-login-method-note strong,
        .clue-game-shell.qw-auth.qw-login .qw-login-method-note a {
            color: #2b63c2;
            text-decoration-color: rgba(43, 99, 194, .33);
        }

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

    .clue-game-shell.qw-auth .qw-auth-label {
    }

    .clue-game-shell.qw-auth .qw-auth-input,
    .clue-game-shell.qw-auth .qw-auth-input:focus,
    .clue-game-shell.qw-auth .qw-auth-input:hover {
        background: #ffffff;
        border-color: #cbd7e8;
        box-shadow: none;
        color: #24364b;
        -webkit-text-fill-color: #24364b;
        caret-color: #356dd8;
    }

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

        .clue-game-shell.qw-auth .qw-auth-input:focus {
            border-color: #4c7fdf;
            box-shadow: 0 0 0 3px rgba(72, 120, 220, .16);
        }

    .clue-game-shell.qw-auth .qw-auth-field-icon {
        color: #7793ba;
    }

    .clue-game-shell.qw-auth .qw-auth-validation {
        color: #a33142 !important;
    }

    .clue-game-shell.qw-auth .qw-auth-help,
    .clue-game-shell.qw-auth .qw-auth-required-note,
    .clue-game-shell.qw-auth .qw-auth-footer {
        color: #667689;
    }

        .clue-game-shell.qw-auth .qw-auth-footer a {
            color: #2b63b8;
        }

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

    .clue-game-shell.qw-auth .qw-auth-error {
        background: #fff0f1;
        color: #8c2e40;
        border-color: #e9b9c4;
        border-left-color: #c14c62;
    }

        .clue-game-shell.qw-auth .qw-auth-error strong,
        .clue-game-shell.qw-auth .qw-auth-error p {
            color: #8b2c3e;
        }

    .clue-game-shell.qw-auth.qw-login .qw-login-icon {
        color: #3c6dd0;
        background: #eaf1ff;
        border-color: #cbdafa;
    }

    .clue-game-shell.qw-auth.qw-login .qw-login-icon-blue {
        color: #8052af;
        background: #f2eafa;
        border-color: #ded1ee;
    }

    .clue-game-shell.qw-auth.qw-login .qw-login-code-submit {
        background: #eeeafd;
        border-color: #d8caf5;
        color: #6740a2;
        box-shadow: none;
    }

        .clue-game-shell.qw-auth.qw-login .qw-login-code-submit:hover {
            background: #e5ddfb;
            border-color: #c1adee;
            color: #4f2d8c;
        }

    .clue-game-shell.qw-auth.qw-login .qw-login-join {
        background: #fff1e8;
        border-color: #f4d7c7;
    }

        .clue-game-shell.qw-auth.qw-login .qw-login-join p:last-child {
            color: #706b71;
        }

    .clue-game-shell.qw-auth.qw-login .qw-login-state-icon {
        background: #e7f6ee;
        border-color: #b9e1cb;
        color: #228251;
    }

    .clue-game-shell input[type=range]::-webkit-slider-runnable-track {
        background: #cedbf0;
    }

    .clue-game-shell input[type=range]::-moz-range-track {
        background: #cedbf0;
    }

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

    .clue-game-shell.qw-home .qw-home-hero h2,
    .clue-game-shell.qw-home .qw-home-games-heading h2,
    .clue-game-shell.qw-home .qw-home-join h2 {
        color: #23334a;
    }

    /* Colour cues: lilac rank, sunlit score and rotating quiz-card accents. */
    .clue-game-shell .game-meta .meta-item:nth-child(2) {
        background: #f0edff;
        border-color: #d8d0fa;
    }

        .clue-game-shell .game-meta .meta-item:nth-child(2) .meta-label {
            color: #6756aa !important;
        }

    .clue-game-shell .game-meta .meta-item:nth-child(3) .meta-label {
        color: #885b18 !important;
    }

    .clue-game-shell.qw-home .qw-home-game-card:nth-child(4n + 2) {
        border-left: 4px solid #ee8b6d;
    }

        .clue-game-shell.qw-home .qw-home-game-card:nth-child(4n + 2) .qw-home-game-icon,
        .clue-game-shell.qw-home .qw-home-game-card:nth-child(4n + 2) .qw-home-game-arrow {
            background: #fff0e7;
            color: #af5740;
            border-color: #f4ccba;
        }

    .clue-game-shell.qw-home .qw-home-game-card:nth-child(4n + 3) {
        border-left: 4px solid #9377d8;
    }

        .clue-game-shell.qw-home .qw-home-game-card:nth-child(4n + 3) .qw-home-game-icon,
        .clue-game-shell.qw-home .qw-home-game-card:nth-child(4n + 3) .qw-home-game-arrow {
            background: #f2eeff;
            color: #6843ba;
            border-color: #dcd0fc;
        }

    .clue-game-shell.qw-home .qw-home-game-card:nth-child(4n + 4) {
        border-left: 4px solid #daa650;
    }

        .clue-game-shell.qw-home .qw-home-game-card:nth-child(4n + 4) .qw-home-game-icon,
        .clue-game-shell.qw-home .qw-home-game-card:nth-child(4n + 4) .qw-home-game-arrow {
            background: #fff5df;
            color: #98651b;
            border-color: #efdcb2;
        }

    .clue-game-shell.qw-home .qw-home-game-card:nth-child(4n + 1) {
        border-left: 4px solid #4f86e5;
    }
    /* Registration gets a warmer button; login remains ocean blue. */
    .clue-game-shell.qw-auth:not(.qw-login) .qw-auth-submit,
    .clue-game-shell.qw-home .qw-home-register-button,
    .clue-game-shell.qw-auth.qw-login .qw-login-register-button {
        background: linear-gradient(180deg, #ef8b76, #d6685a);
        color: #ffffff;
        box-shadow: 0 7px 17px rgba(214, 104, 90, .17);
    }

        .clue-game-shell.qw-auth:not(.qw-login) .qw-auth-submit:hover,
        .clue-game-shell.qw-home .qw-home-register-button:hover,
        .clue-game-shell.qw-auth.qw-login .qw-login-register-button:hover {
            background: linear-gradient(180deg, #de7764, #b95146);
            color: #ffffff;
        }
    /* Light violet details give the answer stage a distinct look. */
    .clue-game-shell .qw-two-stage-dialog .qw-change-stake:hover {
        color: #523a99;
    }

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


/* ========================================================================
   COLOUR POP | Clearly interactive stake selector (game popup only)
   ======================================================================== */
.clue-game-shell .qw-two-stage-dialog #qw-stake-stage .stake-reward-group .bet-section {
    position: relative;
    margin: 0 0 12px;
    padding: 15px 16px 13px;
    border: 2px solid #8b9ef1;
    border-radius: 17px;
    background: linear-gradient(135deg, #f3f0ff 0%, #ebf2ff 100%);
    box-shadow: 0 4px 14px rgba(68, 95, 185, .09);
}
/* Real text (rather than generated content) so assistive tech can read it. */
.clue-game-shell .qw-two-stage-dialog #qw-stake-stage .qw-confidence-prompt {
    display: block;
    margin: 0 0 11px;
    color: #553b9a;
    font-size: .96rem;
    font-weight: 850;
    line-height: 1.35;
    letter-spacing: 0;
}

.clue-game-shell .qw-two-stage-dialog #qw-stake-stage .bet-section.final-clue-bet .qw-confidence-prompt {
    display: none;
}

.clue-game-shell .qw-two-stage-dialog #qw-stake-stage .bet-section label {
    margin: 0 0 10px;
    color: #273c60;
    font-size: 1rem;
    font-weight: 850;
}

.clue-game-shell .qw-two-stage-dialog #qw-stake-stage #bet-display-value {
    min-width: 62px;
    padding: 7px 13px;
    border: 2px solid #376fe0;
    border-radius: 12px;
    background: #ffffff;
    color: #2057c1;
    box-shadow: 0 3px 0 #cedcfa;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.1;
}

    .clue-game-shell .qw-two-stage-dialog #qw-stake-stage #bet-display-value::after {
        content: " pts";
        font-size: .67rem;
        font-weight: 800;
        vertical-align: middle;
    }
/* Explicit appearance removes mobile browser variations that made the handle tiny. */
.clue-game-shell .qw-two-stage-dialog #qw-stake-stage #bet-input {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 46px;
    margin: 1px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: grab;
    touch-action: pan-y;
}

    .clue-game-shell .qw-two-stage-dialog #qw-stake-stage #bet-input:active {
        cursor: grabbing;
    }

    .clue-game-shell .qw-two-stage-dialog #qw-stake-stage #bet-input::-webkit-slider-runnable-track {
        height: 13px;
        border: 2px solid #7c9beb;
        border-radius: 999px;
        background: linear-gradient(90deg, #85a8ff, #e0e7fa);
        box-shadow: inset 0 1px 3px rgba(46, 77, 146, .12);
    }

    .clue-game-shell .qw-two-stage-dialog #qw-stake-stage #bet-input::-moz-range-track {
        height: 13px;
        border: 2px solid #7c9beb;
        border-radius: 999px;
        background: linear-gradient(90deg, #85a8ff, #e0e7fa);
        box-shadow: inset 0 1px 3px rgba(46, 77, 146, .12);
    }

    .clue-game-shell .qw-two-stage-dialog #qw-stake-stage #bet-input::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 36px;
        height: 36px;
        margin-top: -13.5px;
        border: 5px solid #ffffff;
        border-radius: 50%;
        background: #ef7564;
        box-shadow: 0 0 0 3px #dd6456, 0 4px 11px rgba(146, 63, 75, .27);
        animation: qw-stake-handle-pulse 1.2s ease-in-out 2;
    }

    .clue-game-shell .qw-two-stage-dialog #qw-stake-stage #bet-input::-moz-range-thumb {
        width: 26px;
        height: 26px;
        border: 5px solid #ffffff;
        border-radius: 50%;
        background: #ef7564;
        box-shadow: 0 0 0 3px #dd6456, 0 4px 11px rgba(146, 63, 75, .27);
        animation: qw-stake-handle-pulse 1.2s ease-in-out 2;
    }

    .clue-game-shell .qw-two-stage-dialog #qw-stake-stage #bet-input:focus-visible {
        outline: 3px solid #5d77db;
        outline-offset: 5px;
        border-radius: 10px;
    }

.clue-game-shell .qw-two-stage-dialog #qw-stake-stage .slider-scale {
    margin-top: 0;
    color: #516581;
    font-size: .76rem;
    font-weight: 750;
}

@keyframes qw-stake-handle-pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px #dd6456, 0 4px 11px rgba(146, 63, 75, .27);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(239, 117, 100, .23), 0 4px 11px rgba(146, 63, 75, .27);
    }
}
/* Clue 3 has no adjustable stake; avoid a misleading drag instruction. */
.clue-game-shell .qw-two-stage-dialog #qw-stake-stage .bet-section.final-clue-bet {
    background: #eff7f3;
    border-color: #b4d8c2;
}

    .clue-game-shell .qw-two-stage-dialog #qw-stake-stage .bet-section.final-clue-bet #bet-display-value {
        color: #187249;
        border-color: #65b087;
        box-shadow: none;
    }

@media (max-width: 375px) {
    .clue-game-shell .qw-two-stage-dialog #qw-stake-stage .stake-reward-group .bet-section {
        padding: 12px 12px 10px;
    }

    .clue-game-shell .qw-two-stage-dialog #qw-stake-stage .qw-confidence-prompt {
        font-size: .9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .clue-game-shell .qw-two-stage-dialog #qw-stake-stage #bet-input::-webkit-slider-thumb,
    .clue-game-shell .qw-two-stage-dialog #qw-stake-stage #bet-input::-moz-range-thumb {
        animation: none;
    }
}


/* ====================================================================
   QwizzWizz | Answer first, then choose your stake (October 2026)
   Main screen: category -> current hint -> answer -> next -> old hints.
   Confirmation dialog: category -> hint -> answer -> stake/outcomes -> submit/back.
   Styling is scoped to the game and does not affect Home/Login/Register.
   ==================================================================== */
.clue-game-shell .qw-question-action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 15px 0 4px;
    padding: 17px;
    border-radius: 18px;
    border: 1px solid #d9e4f3;
    box-shadow: 0 6px 20px rgba(44, 73, 119, .07);
}

.clue-game-shell .qw-question-answer-label {
}

.clue-game-shell #answer-field.qw-question-answer-input,
.clue-game-shell #answer-field.qw-question-answer-input:hover,
.clue-game-shell #answer-field.qw-question-answer-input:focus {
    display: block;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 12px 14px;
    font-size: 16px; /* prevent iOS auto-zoom */
    border: 2px solid #b5c9e9;
    border-radius: 12px;
    background: #ffffff;
    color: #23334a;
    -webkit-text-fill-color: #23334a;
    caret-color: #286cd2;
    box-shadow: none;
}

    .clue-game-shell #answer-field.qw-question-answer-input:focus {
        outline: 3px solid rgba(40,108,210,.16);
        outline-offset: 2px;
        border-color: #3978dd;
    }

    .clue-game-shell #answer-field.qw-question-answer-input::placeholder {
        color: #697e96;
        -webkit-text-fill-color: #697e96;
        opacity: 1;
    }

.clue-game-shell .qw-question-action .play-points-trigger {
    position: static !important;
    width: 100%;
    min-height: 51px;
    margin: 1px 0 0;
    padding: 12px 16px;
}

.clue-game-shell .qw-answer-required {
    margin: 0;
    color: #ab354e;
    font-size: .85rem;
    font-weight: 700;
}

.clue-game-shell .qw-answer-first-dialog .play-points-dialog-scroll #input-zone {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clue-game-shell .qw-answer-first-dialog .qw-review-hint,
.clue-game-shell .qw-answer-first-dialog .qw-review-answer {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 14px;
    min-width: 0;
    border-radius: 13px;
}

.clue-game-shell .qw-answer-first-dialog .qw-review-hint {
    background: #edf4ff;
    border: 1px solid #d0def4;
}

.clue-game-shell .qw-answer-first-dialog .qw-review-answer {
    background: #f4edff;
    border: 1px solid #d9cbf8;
}

.clue-game-shell .qw-answer-first-dialog .qw-review-label {
    color: #576d8a;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .04em;
}

.clue-game-shell .qw-answer-first-dialog #play-points-description {
    margin: 0;
    color: #243c5a;
    font-weight: 650;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}

.clue-game-shell .qw-answer-first-dialog #qw-entered-answer {
    color: #4f3589;
    font-size: 1rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.clue-game-shell .qw-answer-first-dialog .qw-stage {
    gap: 11px;
}

.clue-game-shell .qw-answer-first-dialog .qw-stage-heading {
    margin-top: 2px;
}

.clue-game-shell .qw-answer-first-dialog .qw-final-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    margin-top: 1px;
}

.clue-game-shell .qw-answer-first-dialog #btn-submit {
    position: static !important;
    width: 100%;
    min-height: 53px;
    margin: 0;
    padding: 12px 14px;
}

.clue-game-shell .qw-answer-first-dialog .qw-back-link {
    display: block;
    min-height: 42px;
    align-self: center;
    padding: 8px 18px;
    background: none;
    border: 0;
    color: #345fa4;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: .95rem;
    font-weight: 750;
    cursor: pointer;
}

    .clue-game-shell .qw-answer-first-dialog .qw-back-link:hover {
        color: #6849b1;
    }

    .clue-game-shell .qw-answer-first-dialog .qw-back-link:focus-visible {
        outline: 3px solid rgba(40,108,210,.36);
        outline-offset: 2px;
        border-radius: 9px;
    }
/* Scroll the dialog itself. The submit control never floats over the stake selector. */
.clue-game-shell .qw-answer-first-dialog .play-points-dialog-scroll {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

@media (max-width: 600px) {
    .clue-game-shell .qw-question-action {
        padding: 13px;
    }

    .clue-game-shell .qw-answer-first-dialog .qw-review-hint,
    .clue-game-shell .qw-answer-first-dialog .qw-review-answer {
        padding: 10px 12px;
    }
}

.clue-game-shell .qw-answer-first-dialog .bet-section.final-clue-bet #bet-input,
.clue-game-shell .qw-answer-first-dialog .bet-section.final-clue-bet .slider-scale {
    display: none !important;
}


/* ===============================================================
   QwizzWizz | Distraction-free question screen (31 Oct 2026)
   Keep JS-managed score, rank, multiplier and budget nodes in the DOM;
   hide their visual cards so the answer button sits much higher on phones.
   The stake screen still presents the multiplier and possible outcomes.
   =============================================================== */
.clue-game-shell #game-container > .game-meta,
.clue-game-shell #game-container > .game-card > .budget-row {
    display: none !important;
}

@media (max-width: 600px) {
    /* Preserve the QwizzWizz brand and menu, but give the answer room. */
    .clue-game-shell .app-heading {
        align-items: center;
        margin: 0 2px 9px;
    }

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

    .clue-game-shell .app-logo {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 19px;
    }

    .clue-game-shell .app-title {
        font-size: 1.2rem;
    }

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

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

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

    .clue-game-shell .qw-question-action {
        margin-top: 10px;
        padding: 12px;
        gap: 8px;
    }

    .clue-game-shell #answer-field.qw-question-answer-input {
        min-height: 48px;
    }

    .clue-game-shell .qw-question-action .play-points-trigger {
        min-height: 48px;
    }
}


/* ============================================================
   Oct 31 | Compact question category and simplified stake review
   All changes scoped to the game; other ASPX pages are unaffected.
   ============================================================ */
.clue-game-shell .qw-question-category-line {
    margin: 0 0 12px;
    color: #23334a;
    font-size: clamp(1.06rem, 3vw, 1.4rem);
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

    .clue-game-shell .qw-question-category-line .qw-question-position {
        color: #366bd0;
        white-space: nowrap;
    }

    .clue-game-shell .qw-question-category-line .qw-question-separator {
        color: #71839d;
    }

    .clue-game-shell .qw-question-category-line #question-text {
        display: inline;
        margin: 0;
        padding: 0;
        color: inherit;
        font-size: inherit;
        font-weight: inherit;
        line-height: inherit;
        letter-spacing: inherit;
    }
/* The stake dialog starts with the current hint card, not a duplicate header. */
.clue-game-shell .qw-answer-first-dialog .play-points-dialog-scroll {
    padding-top: 16px;
}

.clue-game-shell .qw-answer-first-dialog #play-points-category.qw-review-label {
    margin: 0 0 2px;
    color: #315eb8;
    font-size: 1.05rem;
    font-weight: 850;
    letter-spacing: normal;
    line-height: 1.35;
    text-transform: none;
}

@media (max-width: 600px) {
    .clue-game-shell .qw-question-category-line {
        margin-bottom: 9px;
        font-size: 1.08rem;
    }

    .clue-game-shell .qw-answer-first-dialog .play-points-dialog-scroll {
        padding-top: 12px;
    }
}


/* ======================================================================
   SITE MASTER CONSOLIDATION | 2026-10-31
   The master owns one shell, header, navigation, footer and Rules dialog.
   Home/Game and other existing pages may retain a nested .clue-game-shell
   for compatibility with their existing scoped styles.
   ====================================================================== */
.clue-game-shell.qw-site-shell {
    width: min(100% - 24px, 900px);
    margin: 16px auto 26px;
    padding: clamp(12px, 2.7vw, 26px);
    overflow: visible;
    isolation: isolate;
}
    /* Flatten legacy page shells so they don't appear as an extra inset card. */
    .clue-game-shell.qw-site-shell .clue-game-shell {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        animation: none;
    }

    .clue-game-shell.qw-site-shell .game-container {
        max-width: 680px;
        margin-inline: auto;
    }

    .clue-game-shell.qw-site-shell .qw-home {
        max-width: 850px;
        margin-inline: auto;
    }
    /* Consistent shared header, independent of the page displayed beneath it. */
    .clue-game-shell.qw-site-shell .qw-site-header {
        margin: 0 0 clamp(12px, 2.2vw, 22px);
        padding: 0 0 15px;
        border-bottom: 1px solid #dfe6f3;
        z-index: 300;
    }

    .clue-game-shell.qw-site-shell .qw-site-brand {
        min-width: 0;
        max-width: calc(100% - 104px);
        display: flex;
        align-items: center;
        gap: 13px;
        color: #253a59;
        text-decoration: none;
    }

        .clue-game-shell.qw-site-shell .qw-site-brand:hover,
        .clue-game-shell.qw-site-shell .qw-site-brand:focus-visible {
            text-decoration: none;
            color: #286cd2;
        }

        .clue-game-shell.qw-site-shell .qw-site-brand .app-heading-copy {
            display: flex;
            flex-direction: column;
            gap: 1px;
            min-width: 0;
        }

        .clue-game-shell.qw-site-shell .qw-site-brand .app-title {
            display: block;
            margin: 0;
        }

        .clue-game-shell.qw-site-shell .qw-site-brand .app-eyebrow,
        .clue-game-shell.qw-site-shell .qw-site-brand .app-subtitle {
            display: block;
            margin: 0;
        }

    .clue-game-shell.qw-site-shell .game-navigation {
        z-index: 310;
    }

    .clue-game-shell.qw-site-shell .game-menu-dropdown {
        z-index: 320;
        max-height: min(75dvh, 400px);
        overflow-y: auto;
    }
    /* Home and Game both stay visually inside one consistent site shell. */
    .clue-game-shell.qw-site-shell .qw-home-hero {
        margin-top: 0;
    }

    .clue-game-shell.qw-site-shell .qw-home-login-link {
        display: inline-flex;
        align-items: center;
        width: fit-content;
        margin-top: 10px;
        color: #245cb6;
        background: #f1f5ff;
        border-color: #d6e2f7;
    }

        .clue-game-shell.qw-site-shell .qw-home-login-link:empty {
            display: none;
        }

    .clue-game-shell.qw-site-shell .qw-site-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px 20px;
        margin: 24px 0 0;
        padding: 14px 2px 2px;
        border-top: 1px solid #dfe6f3;
        color: #66778d;
        font-size: .83rem;
    }

        .clue-game-shell.qw-site-shell .qw-site-footer nav {
            display: flex;
            align-items: center;
            gap: 18px;
        }

        .clue-game-shell.qw-site-shell .qw-site-footer a,
        .clue-game-shell.qw-site-shell .qw-site-footer button {
            display: inline-flex;
            align-items: center;
            border: 0;
            padding: 5px 0;
            background: transparent;
            color: #2859ae;
            text-decoration: none;
            font: inherit;
            font-weight: 700;
            cursor: pointer;
        }

            .clue-game-shell.qw-site-shell .qw-site-footer a:hover,
            .clue-game-shell.qw-site-shell .qw-site-footer button:hover {
                color: #623fb3;
                text-decoration: underline;
            }

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

        .clue-game-shell.qw-site-shell .qw-site-header {
            align-items: center;
            margin: 0 0 12px;
            padding-bottom: 12px;
        }

        .clue-game-shell.qw-site-shell .qw-site-brand {
            gap: 8px;
            max-width: calc(100% - 98px);
        }

            .clue-game-shell.qw-site-shell .qw-site-brand .app-eyebrow {
                font-size: .55rem;
            }

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

        .clue-game-shell.qw-site-shell .qw-site-footer {
            font-size: .75rem;
        }
}


/* ===========================================================================
   SHARED UI COMPONENTS | site-wide, reusable by every ASPX content page

   The existing Home, Game and Auth class names are compatibility aliases.
   New pages should use the qw-ui-* classes without a page-specific prefix.
   Page-specific sections above define layout and distinctive accent variants.
   =========================================================================== */
.clue-game-shell {
    --qw-ui-ink: #23334a;
    --qw-ui-muted: #607082;
    --qw-ui-primary: #326be0;
    --qw-ui-primary-hover: #2457bf;
    --qw-ui-surface: #ffffff;
    --qw-ui-page-soft: #f5f8ff;
    --qw-ui-border: #dce5ef;
    --qw-ui-field-border: #cbd7e8;
    --qw-ui-corner: 18px;
    --qw-ui-field-corner: 12px;
    --qw-ui-shadow: 0 8px 24px rgba(45,70,105,.08);
    --qw-ui-focus: 0 0 0 3px rgba(50,107,224,.17);
}

    /* Shared panel / card. The Home quiz list, Game card and login/register
   cards all get their foundational visual treatment here. */
    .clue-game-shell :is(.qw-ui-card, .game-card, .qw-auth-panel, .qw-home-game-card) {
        background: var(--qw-ui-surface);
        border: 1px solid var(--qw-ui-border);
        border-radius: var(--qw-ui-corner);
        box-shadow: var(--qw-ui-shadow);
    }

    /* Shared labels. Field layout (including icons) is page-specific. */
    .clue-game-shell :is(.qw-ui-label, .qw-auth-label, .qw-question-answer-label) {
        display: block;
        color: #364861;
        font-size: .9rem;
        font-weight: 750;
        line-height: 1.4;
    }

    /* Shared text input. The auth page adds left padding for its icon; the quiz
   answer retains its stronger two-pixel border and mobile focus scrolling. */
    .clue-game-shell :is(.qw-ui-input, .qw-auth-input) {
        display: block;
        width: 100%;
        min-height: 51px;
        background: #ffffff;
        color: var(--qw-ui-ink);
        -webkit-text-fill-color: var(--qw-ui-ink);
        caret-color: var(--qw-ui-primary);
        border: 1px solid var(--qw-ui-field-border);
        border-radius: var(--qw-ui-field-corner);
        box-shadow: none;
        font-size: 16px;
        font-family: inherit;
    }

        .clue-game-shell :is(.qw-ui-input, .qw-auth-input)::placeholder {
            color: #70839a;
            -webkit-text-fill-color: #70839a;
            opacity: 1;
        }

        .clue-game-shell :is(.qw-ui-input, .qw-auth-input):hover {
            border-color: #aabfe3;
        }

        .clue-game-shell :is(.qw-ui-input, .qw-auth-input):focus {
            background: #ffffff;
            color: var(--qw-ui-ink);
            -webkit-text-fill-color: var(--qw-ui-ink);
            border-color: var(--qw-ui-primary);
            outline: none;
            box-shadow: var(--qw-ui-focus);
        }

    .clue-game-shell .qw-ui-input {
        padding: 12px 14px;
    }

        .clue-game-shell .qw-ui-input:disabled {
            background: #f1f4f8;
            color: #637890;
            -webkit-text-fill-color: #637890;
        }

    /* Shared buttons: one set of geometry and interaction defaults. Home/Register
   use their own accent colours; the game button stays full-width. */
    .clue-game-shell :is( .qw-ui-button, .button-main, .qw-auth-submit, .qw-auth-home-button, .qw-home-rules-button, .qw-home-register-button, .qw-login-code-submit, .qw-login-register-button, .game-rules-acknowledge ) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        border-radius: 13px;
        font-weight: 800;
        cursor: pointer;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .clue-game-shell .qw-ui-button {
        min-height: 48px;
        padding: 12px 20px;
        border: 0;
        background: var(--qw-ui-primary);
        color: #ffffff;
        font-size: .94rem;
        transition: background .17s ease, transform .17s ease, box-shadow .17s ease;
    }

        .clue-game-shell .qw-ui-button:hover:not(:disabled) {
            background: var(--qw-ui-primary-hover);
            color: #ffffff;
            transform: translateY(-1px);
        }

        .clue-game-shell .qw-ui-button:disabled {
            opacity: .55;
            cursor: not-allowed;
        }

    .clue-game-shell .qw-ui-button--secondary {
        background: #edf3ff;
        color: #2659b3;
        border: 1px solid #c6d5f0;
    }

        .clue-game-shell .qw-ui-button--secondary:hover:not(:disabled) {
            background: #e3ecff;
            color: #214d9b;
        }

    .clue-game-shell .qw-ui-button--coral {
        background: #e97e6b;
        color: #ffffff;
    }

        .clue-game-shell .qw-ui-button--coral:hover:not(:disabled) {
            background: #d76c5a;
        }

    /* Standard content cards get a consistent padding utility. */
    .clue-game-shell .qw-ui-card--padded {
        padding: clamp(18px, 4vw, 30px);
    }

    /* Reusable typography and supporting UI. */
    .clue-game-shell .qw-ui-heading {
        margin: 0 0 14px;
        color: var(--qw-ui-ink);
        font-size: clamp(1.3rem, 3vw, 1.85rem);
        font-weight: 800;
        letter-spacing: -.025em;
        line-height: 1.25;
    }

    .clue-game-shell .qw-ui-eyebrow {
        margin: 0 0 7px;
        color: #4468b6;
        font-size: .7rem;
        font-weight: 800;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    .clue-game-shell .qw-ui-text-muted {
        color: var(--qw-ui-muted);
        line-height: 1.55;
    }

    .clue-game-shell .qw-ui-form-field {
        margin-bottom: 18px;
    }

        .clue-game-shell .qw-ui-form-field .qw-ui-label {
            margin-bottom: 8px;
        }

    .clue-game-shell .qw-ui-form-help {
        margin: 6px 0 0;
        color: var(--qw-ui-muted);
        font-size: .83rem;
    }

    .clue-game-shell .qw-ui-alert {
        padding: 12px 16px;
        border: 1px solid #f0bbc4;
        border-radius: 13px;
        background: #fff0f2;
        color: #9f3048;
    }

    .clue-game-shell .qw-ui-actions {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 22px;
    }

        .clue-game-shell .qw-ui-actions > * {
            flex: 0 1 auto;
        }

    .clue-game-shell :is(.qw-ui-input, .qw-ui-button, .qw-ui-link):focus-visible {
        outline: 3px solid rgba(50,107,224,.35);
        outline-offset: 3px;
    }

    /* Page-specific exceptions: retain distinctive layouts, not duplicate bases. */
    .clue-game-shell .qw-question-action {
        background: linear-gradient(135deg, #fff, var(--qw-ui-page-soft));
    }

    .clue-game-shell.qw-auth.qw-login .qw-login-code {
        background: #f5f5ff;
    }

    /* ---------------------------------------------------------------
   Question clue layout: compact number rail + multiline hint copy.
   Applied only to hint cards, never to leaderboard result rows.
   --------------------------------------------------------------- */
    .clue-game-shell .current-clue-container > .clue-bubble,
    .clue-game-shell .previous-clues-section #clue-container > .clue-bubble {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        align-items: stretch;
        gap: 12px;
        padding: 11px 14px 11px 10px;
    }

    .clue-game-shell .qw-clue-number {
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: stretch;
        min-height: 44px;
        border: 1px solid #eab98f;
        border-radius: 9px;
        background: #f9dcc5;
        color: #914b26;
        font-size: 1.28rem;
        font-weight: 800;
        line-height: 1;
        font-variant-numeric: tabular-nums;
    }

    .clue-game-shell .previous-clues-section .qw-clue-number {
        background: #eee8ff;
        border-color: #d8cbf7;
        color: #7057b1;
    }

    .clue-game-shell .qw-clue-copy {
        min-width: 0;
        align-self: center;
        overflow-wrap: anywhere;
    }

        .clue-game-shell .qw-clue-copy > :first-child {
            margin-top: 0;
        }

        .clue-game-shell .qw-clue-copy > :last-child {
            margin-bottom: 0;
        }

@media (max-width: 360px) {
    .clue-game-shell .current-clue-container > .clue-bubble,
    .clue-game-shell .previous-clues-section #clue-container > .clue-bubble {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 9px;
        padding: 10px 11px 10px 9px;
    }

    .clue-game-shell .qw-clue-number {
        font-size: 1.12rem;
    }
}



/* ====================================================================
   QUIZ RESULTS / LEADERBOARD — shared components, page-specific layout
   ==================================================================== */
.clue-game-shell .game-card.qw-results-mode > :not(#qw-results-summary) {
    display: none !important;
}

.clue-game-shell.qw-game-finished .game-reset-container {
    display: none !important;
}

.clue-game-shell .qw-results-summary {
    color: #263a56;
    width: 100%;
    padding: clamp(4px, 1vw, 10px);
}

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

.clue-game-shell .qw-results-intro {
    text-align: center;
    margin-bottom: 22px;
}

    .clue-game-shell .qw-results-intro .qw-ui-heading {
        font-size: clamp(1.6rem, 5vw, 2.3rem);
        margin-bottom: 6px;
    }

    .clue-game-shell .qw-results-intro .qw-ui-text-muted {
        margin: 0;
    }

.clue-game-shell .qw-results-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    border: 1px solid #bcd2ff;
    border-radius: 20px;
    background: linear-gradient(135deg, #e5efff, #f5f0ff);
    color: #244b93;
}

    .clue-game-shell .qw-results-total > span {
        font-size: .94rem;
        font-weight: 800;
    }

    .clue-game-shell .qw-results-total strong {
        font-size: clamp(3rem, 13vw, 4.8rem);
        line-height: 1.12;
        font-weight: 850;
        font-variant-numeric: tabular-nums;
    }

    .clue-game-shell .qw-results-total small {
        font-size: .84rem;
        font-weight: 650;
    }

.clue-game-shell .qw-results-section-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: #273954;
    margin: 24px 0 12px;
}

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

.clue-game-shell .qw-result-stat {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px 15px;
    background: #fff;
    border: 1px solid #d9e3f0;
    border-radius: 15px;
}

.clue-game-shell .qw-result-stat--total {
    grid-column: 1/-1;
    background: #eaf8f1;
    border-color: #b6e0cb;
}

.clue-game-shell .qw-result-stat--first {
    background: #fff0e7;
    border-color: #f5cfb3;
}

.clue-game-shell .qw-result-stat--second {
    background: #f2edff;
    border-color: #dbd1f7;
}

.clue-game-shell .qw-result-stat span {
    font-size: .83rem;
    font-weight: 800;
    line-height: 1.3;
    color: #34465e;
}

.clue-game-shell .qw-result-stat strong {
    font-size: clamp(2.05rem, 7vw, 2.6rem);
    font-weight: 850;
    line-height: 1.2;
    margin: 6px 0;
    font-variant-numeric: tabular-nums;
    color: #263a56;
}

.clue-game-shell .qw-result-stat small {
    color: #5b6d83;
    font-size: .77rem;
}

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

.clue-game-shell .qw-results-rank {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 16px;
    border: 1px solid #d4e2f5;
    border-radius: 15px;
    background: #f5f8ff;
}

.clue-game-shell .qw-results-rank--global {
    background: #faf2ff;
    border-color: #e1d0f1;
}

.clue-game-shell .qw-results-rank > span {
    color: #3b4a62;
    font-weight: 750;
    font-size: .85rem;
}

.clue-game-shell .qw-results-rank > strong {
    font-size: 2rem;
    color: #2b4d8e;
    margin: 4px 0 12px;
    font-variant-numeric: tabular-nums;
}

.clue-game-shell .qw-results-board-link {
    font-size: .85rem;
    font-weight: 800;
    color: #275cb7;
    text-decoration: underline;
    text-underline-offset: 3px;
    line-height: 1.45;
}

    .clue-game-shell .qw-results-board-link:hover {
        color: #1c4589;
    }

.clue-game-shell .qw-results-data-note {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d6e3f3;
    background: #f4f8fd;
    color: #516782;
    font-size: .82rem;
    line-height: 1.5;
}

.clue-game-shell .qw-results-home {
    display: flex;
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

.clue-game-shell .qw-leaderboard-card {
    max-width: 780px;
    margin: 0 auto;
}

.clue-game-shell .qw-leaderboard-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 22px 0;
}

    .clue-game-shell .qw-leaderboard-tabs a {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        padding: 10px 16px;
        border-radius: 11px;
        border: 1px solid #ccd9ef;
        background: #f2f5ff;
        text-decoration: none;
        color: #32558a;
        font-weight: 800;
    }

        .clue-game-shell .qw-leaderboard-tabs a.is-active {
            background: #326be0;
            border-color: #326be0;
            color: #fff;
        }

.clue-game-shell .qw-leaderboard-message {
    padding: 12px 0;
    color: #607187;
}

.clue-game-shell .qw-leaderboard-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.clue-game-shell .qw-leaderboard-row {
    display: grid;
    grid-template-columns: 54px minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dde6f2;
    border-radius: 13px;
    background: #fff;
}

    .clue-game-shell .qw-leaderboard-row.is-you {
        border-color: #85afe9;
        background: #eef5ff;
    }

.clue-game-shell .qw-leaderboard-position {
    font-weight: 850;
    color: #2866bd;
}

.clue-game-shell .qw-leaderboard-name {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #273953;
}

.clue-game-shell .qw-leaderboard-score {
    color: #324a65;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 440px) {
    .clue-game-shell .qw-results-rankings {
        grid-template-columns: 1fr;
    }

    .clue-game-shell .qw-results-summary {
        padding: 0;
    }

    .clue-game-shell .qw-leaderboard-row {
        grid-template-columns: 43px minmax(0,1fr) auto;
        gap: 7px;
        padding: 12px 10px;
        font-size: .9rem;
    }
}


/* ================================================================
   ANSWER FEEDBACK: shared result styling, quiz-specific presentation
   ================================================================ */
.clue-game-shell #result-overlay {
    width: min(440px, calc(100vw - 24px));
    padding: clamp(22px, 5vw, 32px);
}

    .clue-game-shell #result-overlay #result-title {
        margin-bottom: 20px;
    }

    .clue-game-shell #result-overlay .qw-feedback-body {
        display: grid;
        gap: 14px;
        margin-bottom: 22px;
        line-height: 1.45;
        color: #23334a;
    }

    .clue-game-shell #result-overlay .qw-feedback-verdict {
        margin: 0;
        padding: 17px 15px;
        border-radius: 15px;
        background: #fff2ed;
        border: 1px solid #edb9ab;
        color: #873c32;
        font-size: clamp(1.05rem, 3.8vw, 1.2rem);
        font-weight: 650;
        overflow-wrap: anywhere;
    }

    .clue-game-shell #result-overlay.feedback-correct .qw-feedback-verdict {
        background: #e9f8ef;
        border-color: #b6dfc5;
        color: #17643b;
    }

    .clue-game-shell #result-overlay .qw-feedback-verdict strong {
        font-weight: 850;
    }

    .clue-game-shell #result-overlay .qw-feedback-outcome {
        display: grid;
        gap: 9px;
    }

    .clue-game-shell #result-overlay .qw-feedback-points-line,
    .clue-game-shell #result-overlay .qw-feedback-remaining {
        display: block;
        margin: 0;
        padding: 12px 14px;
        border-radius: 12px;
        font-weight: 800;
        font-size: 1.06rem;
        line-height: 1.35;
        font-variant-numeric: tabular-nums;
    }

    .clue-game-shell #result-overlay .qw-feedback-points-line {
        background: #fff0f1;
        color: #9b354b;
    }

    .clue-game-shell #result-overlay.feedback-correct .qw-feedback-points-line {
        background: #def5e8;
        color: #17653e;
        font-size: 1.2rem;
    }

    .clue-game-shell #result-overlay .qw-feedback-remaining {
        background: #eef2ff;
        color: #374d9f;
    }

        .clue-game-shell #result-overlay .qw-feedback-remaining.hidden,
        .clue-game-shell #result-overlay .qw-feedback-reveal.hidden {
            display: none !important;
        }

    .clue-game-shell #result-overlay .qw-feedback-reveal {
        display: grid;
        gap: 8px;
        padding: 17px 16px 19px;
        border-radius: 16px;
        border: 1.5px solid #d3c4ef;
        background: #f4efff;
    }

    .clue-game-shell #result-overlay .qw-feedback-reveal-label {
        color: #655399;
        font-size: .75rem;
        font-weight: 850;
        letter-spacing: .09em;
    }

    .clue-game-shell #result-overlay .qw-feedback-correct-answer {
        display: block;
        color: #3e306c;
        font-size: clamp(1.65rem, 6vw, 2.15rem);
        font-weight: 900;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .clue-game-shell #result-overlay #btn-next {
        width: 100%;
    }

@media (max-width: 380px) {
    .clue-game-shell #result-overlay .qw-feedback-verdict {
        padding: 13px 11px;
    }

    .clue-game-shell #result-overlay .qw-feedback-reveal {
        padding: 14px 12px;
    }
}

/* ============================================================
   QUESTION CATEGORY / UNICODE ICON
   Optional metadata above the question; populated from JSON.
   ============================================================ */
.clue-game-shell .qw-question-category {
    display: flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 11px;
    min-width: 0;
}

    .clue-game-shell .qw-question-category.hidden,
    .clue-game-shell .qw-question-icon.hidden,
    .clue-game-shell .qw-question-category-name.hidden {
        display: none;
    }

.clue-game-shell .qw-question-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    background: #fff1e8;
    border: 1px solid #f3d0be;
    border-radius: 12px;
    font-size: 1.3rem;
    line-height: 1;
}

.clue-game-shell .qw-question-category-name {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 7px 12px;
    border: 1px solid #d9cbf8;
    border-radius: 999px;
    background: #f4efff;
    color: #57428b;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.035em;
}

@media (max-width: 600px) {
    .clue-game-shell .qw-question-category {
        gap: 7px;
        margin-bottom: 8px;
    }

    .clue-game-shell .qw-question-icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 1.16rem;
        border-radius: 10px;
    }

    .clue-game-shell .qw-question-category-name {
        padding: 6px 10px;
    }
}


/* =============================================================
   CATEGORY SCORE + ALL IN BONUS: shared Colour Pop question UI
   ============================================================= */
.clue-game-shell .qw-question-category {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.clue-game-shell .qw-question-category-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clue-game-shell .qw-question-category .qw-question-category-name {
    max-width: 100%;
}

.clue-game-shell .qw-question-score {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid #c9d9f7;
    border-radius: 999px;
    background: #edf4ff;
    color: #264f9b;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

    .clue-game-shell .qw-question-score span {
        font-size: .66rem;
        letter-spacing: .07em;
        font-weight: 850;
        text-transform: uppercase;
    }

    .clue-game-shell .qw-question-score strong {
        font-size: 1.16rem;
        line-height: 1;
        font-weight: 900;
    }

        .clue-game-shell .qw-question-score strong.qw-score-counting {
            color: #9a6600;
            animation: qw-bonus-score-beat .22s ease-out;
        }

.clue-game-shell .qw-two-stage-dialog .qw-potential-all-in-bonus {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    max-width: 100%;
    margin-top: 9px;
    padding: 7px 10px;
    border: 1px solid #f2ca75;
    border-radius: 999px;
    background: #fff6dc;
    color: #78501a;
    font-size: .76rem;
    line-height: 1.3;
    font-weight: 850;
}

    .clue-game-shell .qw-two-stage-dialog .qw-potential-all-in-bonus.hidden,
    .clue-game-shell #result-overlay .qw-feedback-bonus.hidden {
        display: none !important;
    }

.clue-game-shell #result-overlay .qw-feedback-bonus {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1.5px solid #ecc574;
    border-radius: 15px;
    background: linear-gradient(115deg, #fff8e5 0%, #fff0d3 100%);
    color: #75511a;
}

.clue-game-shell #result-overlay .qw-feedback-bonus-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .06em;
}

.clue-game-shell #result-overlay #qw-feedback-bonus-count {
    color: #946014;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: normal;
    font-variant-numeric: tabular-nums;
}
/* One horizontal bar, independent of how many bonus points are awarded. */
.clue-game-shell #result-overlay .qw-feedback-bonus-progress {
    display: block;
    width: 100%;
    height: 16px;
    margin: 2px 0;
    padding: 0;
    border: 1px solid #e9ce94;
    border-radius: 999px;
    background: #f6e5be;
    appearance: none;
    -webkit-appearance: none;
    overflow: hidden;
    box-sizing: border-box;
    vertical-align: middle;
}

    .clue-game-shell #result-overlay .qw-feedback-bonus-progress::-webkit-progress-bar {
        background: #f6e5be;
        border-radius: 999px;
    }

    .clue-game-shell #result-overlay .qw-feedback-bonus-progress::-webkit-progress-value {
        background: linear-gradient(90deg, #f2b553, #e58e48);
        border-radius: 999px;
    }

    .clue-game-shell #result-overlay .qw-feedback-bonus-progress::-moz-progress-bar {
        background: linear-gradient(90deg, #f2b553, #e58e48);
        border-radius: 999px;
    }

@keyframes qw-bonus-score-beat {
    0% {
        transform: scale(.95);
    }

    75% {
        transform: scale(1.15);
    }

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

@media (max-width: 380px) {
    .clue-game-shell .qw-question-score {
        padding: 6px 8px;
        gap: 5px;
    }

        .clue-game-shell .qw-question-score strong {
            font-size: 1rem;
        }

    .clue-game-shell .qw-question-category-name {
        font-size: .72rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .clue-game-shell .qw-question-score strong.qw-score-counting {
        animation: none !important;
        transition: none !important;
    }
}

/* The authoritative running score is repeated within the bonus animation panel
   so the count-up remains visible on narrow screens. */
.clue-game-shell #result-overlay .qw-feedback-bonus-score {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid #f0d99b;
    border-radius: 12px;
    background: rgba(255,255,255,.76);
    color: #674718;
    font-weight: 800;
}

    .clue-game-shell #result-overlay .qw-feedback-bonus-score strong {
        color: #80500d;
        font-size: clamp(1.25rem, 5vw, 1.65rem);
        font-weight: 900;
        font-variant-numeric: tabular-nums;
    }

        .clue-game-shell #result-overlay .qw-feedback-bonus-score strong.qw-score-counting {
            color: #a56c07;
            animation: qw-bonus-score-beat .24s ease-out;
        }

@media (prefers-reduced-motion: reduce) {
    .clue-game-shell #result-overlay .qw-feedback-bonus-score strong.qw-score-counting {
        animation: none !important;
    }
}

/* Bonus count-up and replay controls share the existing result-card styles. */
.clue-game-shell #result-overlay .qw-feedback-bonus-replay {
    width: fit-content;
    justify-self: center;
    padding: 8px 13px;
    border: 1px solid #d7a654;
    border-radius: 999px;
    background: #fffdf8;
    color: #75511a;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
}

    .clue-game-shell #result-overlay .qw-feedback-bonus-replay:hover,
    .clue-game-shell #result-overlay .qw-feedback-bonus-replay:focus-visible {
        background: #ffebbc;
        outline-offset: 3px;
    }

    .clue-game-shell #result-overlay .qw-feedback-bonus-replay.hidden {
        display: none !important;
    }

.clue-game-shell #result-overlay .qw-feedback-bonus-completed {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}


/* =============================================================
   PERSONAL BEST PACE: category-line progress comparison
   ============================================================= */
.clue-game-shell .qw-question-score-cluster {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 1 auto;
    flex-wrap: wrap;
    min-width: 0;
    gap: 6px;
    margin-left: auto;
}

    .clue-game-shell .qw-question-score-cluster > .qw-question-score {
        margin-left: 0;
    }

.clue-game-shell .qw-question-personal-best {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 7px 9px;
    border: 1px solid #cad2ee;
    border-radius: 999px;
    background: #f3f0ff;
    color: #59478e;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-size: .72rem;
    line-height: 1.2;
}

    .clue-game-shell .qw-question-personal-best.hidden {
        display: none;
    }

.clue-game-shell .qw-personal-best-label {
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .015em;
}

.clue-game-shell .qw-question-personal-best strong {
    font-size: .75rem;
    font-weight: 850;
}

.clue-game-shell .qw-personal-best--ahead {
    background: #e8f8ee;
    border-color: #b7e4cb;
    color: #176b45;
}

.clue-game-shell .qw-personal-best--behind {
    background: #fff0eb;
    border-color: #f0c9ba;
    color: #a04e3d;
}

.clue-game-shell .qw-personal-best--level {
    background: #f3f0ff;
    border-color: #d9cdf3;
    color: #59478e;
}
/* Allow longer category names and three-digit scores without clipping on mobile. */
@media (max-width: 540px) {
    .clue-game-shell .qw-question-category {
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }

    .clue-game-shell .qw-question-category-identity {
        flex: 0 1 auto;
    }

    .clue-game-shell .qw-question-score-cluster {
        gap: 5px;
    }

    .clue-game-shell .qw-question-personal-best {
        padding: 6px 8px;
        font-size: .68rem;
    }

    .clue-game-shell .qw-personal-best-label {
        font-size: .61rem;
    }

    .clue-game-shell .qw-question-personal-best strong {
        font-size: .7rem;
    }
}


/* ================================================================
   CLUE IN ONE BRANDING — minimal, scoped overrides. Retains the
   existing QwizzWizz_midnight.css filename to avoid breaking links.
   ================================================================ */
.clue-game-shell.qw-site-shell .qw-site-brand {
    align-items: center;
    min-width: 0;
    max-width: calc(100% - 104px);
    gap: 0;
}

.clue-game-shell.qw-site-shell .qw-brand-lockup {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    min-width: 0;
    gap: 0;
}

.clue-game-shell.qw-site-shell .qw-brand-wordmark {
    display: block;
    width: clamp(220px, 28vw, 315px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.clue-game-shell.qw-site-shell .qw-brand-tagline {
    display: block;
    padding-left: 1px;
    color: #52627a;
    font-size: .77rem;
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: .005em;
}
/* Correct answers on any clue get a consistent Clue in One/Two/Three title.
   The All In bonus is a separate award and retains its own styling. */
.clue-game-shell #result-overlay.feedback-correct #result-title {
    color: #326be0;
}

@media (max-width: 600px) {
    .clue-game-shell.qw-site-shell .qw-site-brand {
        max-width: calc(100% - 96px);
    }

    .clue-game-shell.qw-site-shell .qw-brand-wordmark {
        width: clamp(155px, 51vw, 230px);
    }

    .clue-game-shell.qw-site-shell .qw-brand-tagline {
        font-size: .67rem;
        line-height: 1.32;
    }
}

@media (max-width: 355px) {
    .clue-game-shell.qw-site-shell .qw-brand-wordmark {
        width: 164px;
    }

    .clue-game-shell.qw-site-shell .qw-brand-tagline {
        font-size: .62rem;
    }
}

/* Append to css/QwizzWizz_midnight.css. Scoped to the quiz-results page. */
.qr-results {
    --qr-blue: #326BE0;
    --qr-ink: #23334A;
    --qr-muted: #64748B;
    --qr-border: #E1E8F1;
    --qr-bg: #F7F9FD;
    --qr-lavender: #9377D8;
    --qr-coral: #E97E6B;
    --qr-mint: #4FAE83;
    color: var(--qr-ink);
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0 48px;
}

    /* Simple title, followed by a compact two-column score summary. */
    .qr-results .qr-header {
        padding: 12px 0 24px;
    }

    .qr-results h1 {
        color: var(--qr-ink);
        font-size: clamp(1.55rem, 3vw, 2rem);
        font-weight: 750;
        line-height: 1.25;
        letter-spacing: -.025em;
        margin: 0 0 16px;
    }

    .qr-results .qr-score-summary {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
        background: #F3F6FD;
        border: 1px solid #E0E7F4;
        border-radius: 12px;
        padding: 14px 18px;
        gap: 12px;
    }

    .qr-results .qr-score-item {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .qr-results .qr-score-item--best {
        padding-left: 18px;
        border-left: 1px solid #DCE4F1;
    }

    .qr-results .qr-score-label {
        color: var(--qr-muted);
        font-size: .8rem;
        font-weight: 650;
    }

    .qr-results .qr-score-value {
        color: var(--qr-blue);
        font-size: 1.75rem;
        line-height: 1.15;
        font-weight: 750;
        font-variant-numeric: tabular-nums;
    }

    .qr-results .qr-score-detail {
        color: var(--qr-muted);
        font-size: .79rem;
        line-height: 1.35;
    }

    .qr-results .qr-best-status {
        font-weight: 700;
    }

    .qr-results .qr-best-status--best {
        color: #278052;
    }

    .qr-results .qr-best-status--below {
        color: #64748B;
    }

    .qr-results .qr-results-list {
        display: grid;
        gap: 16px;
    }

    .qr-results .qr-question-card {
        background: #fff;
        border: 1px solid var(--qr-border);
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 3px 15px rgba(35, 51, 74, .035);
    }

    .qr-results .qr-question-head {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px;
        padding: 19px 22px 17px;
    }

    .qr-results .qr-question-main {
        min-width: 0;
    }

    .qr-results .qr-question-meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 9px;
        color: var(--qr-muted);
        font-size: .79rem;
        font-weight: 650;
        margin-bottom: 9px;
    }

    .qr-results .qr-number {
        text-transform: uppercase;
        letter-spacing: .045em;
        color: var(--qr-blue);
        padding-right: 10px;
        border-right: 1px solid #D8E1ED;
    }

    .qr-results .qr-category-icon {
        font-size: 1.06rem;
        line-height: 1;
    }

    .qr-results .qr-category {
        color: #4B5E79;
    }

    .qr-results .qr-question-title {
        margin: 0;
        color: var(--qr-ink);
        font-size: 1.08rem;
        line-height: 1.5;
        font-weight: 650;
    }

    .qr-results .qr-budget {
        text-align: right;
        flex: 0 0 auto;
    }

    .qr-results .qr-budget-value {
        display: block;
        color: var(--qr-ink);
        font-size: 1.3rem;
        font-weight: 750;
        font-variant-numeric: tabular-nums;
        line-height: 1.2;
    }

    .qr-results .qr-budget-label {
        color: var(--qr-muted);
        font-size: .73rem;
    }

    .qr-results .qr-attempts {
        border-top: 1px solid var(--qr-border);
    }

    .qr-results .qr-attempt {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr) 120px;
        gap: 14px;
        padding: 15px 22px;
        align-items: start;
        border-top: 1px solid #EDF1F6;
    }

        .qr-results .qr-attempt:first-child {
            border-top: 0;
        }

    .qr-results .qr-attempt-correct {
        background: #F1FAF5;
    }

    .qr-results .qr-attempt-wrong {
        background: #FFF;
    }

    .qr-results .qr-clue-number {
        color: var(--qr-muted);
        font-size: .75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .035em;
        white-space: nowrap;
        padding-top: 2px;
    }

    .qr-results .qr-clue-text {
        margin: 0 0 9px;
        line-height: 1.5;
        font-size: .94rem;
    }

    .qr-results .qr-user-answer {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 7px 10px;
        font-size: .9rem;
    }

    .qr-results .qr-outcome {
        font-size: .8rem;
        font-weight: 750;
    }

    .qr-results .qr-attempt-correct .qr-outcome,
    .qr-results .qr-attempt-correct .qr-delta {
        color: #278052;
    }

    .qr-results .qr-attempt-wrong .qr-outcome,
    .qr-results .qr-attempt-wrong .qr-delta {
        color: #C35D4A;
    }

    .qr-results .qr-response {
        overflow-wrap: anywhere;
        color: var(--qr-ink);
        font-weight: 600;
    }

    .qr-results .qr-all-in {
        background: #EEE8FF;
        border: 1px solid #DDD0FB;
        color: #7055B9;
        border-radius: 5px;
        padding: 2px 6px;
        font-size: .66rem;
        font-weight: 800;
        letter-spacing: .055em;
        white-space: nowrap;
    }

    .qr-results .qr-attempt-points {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 3px;
        white-space: nowrap;
    }

    .qr-results .qr-stake {
        color: var(--qr-muted);
        font-size: .75rem;
    }

    .qr-results .qr-delta {
        font-size: 1.08rem;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
    }

    .qr-results .qr-reveal {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 8px;
        background: #F6F4FC;
        border-top: 1px solid #E9E4F7;
        padding: 12px 22px;
        font-size: .9rem;
    }

    .qr-results .qr-reveal-label {
        color: #71648C;
        font-weight: 650;
    }

    .qr-results .qr-reveal strong {
        color: var(--qr-ink);
    }

    .qr-results .qr-notice {
        background: #FFF7EB;
        border: 1px solid #F2DEBC;
        border-radius: 12px;
        padding: 24px;
    }

        .qr-results .qr-notice h1 {
            font-size: 1.35rem;
        }

        .qr-results .qr-notice p {
            margin: 8px 0 0;
            color: #6A5A41;
        }

@media (max-width: 640px) {
    .qr-results {
        padding-top: 10px;
    }

        .qr-results .qr-header {
            padding: 10px 0 20px;
        }

        .qr-results h1 {
            margin-bottom: 12px;
        }

        .qr-results .qr-score-summary {
            padding: 12px;
            gap: 8px;
        }

        .qr-results .qr-score-item--best {
            padding-left: 12px;
        }

        .qr-results .qr-score-value {
            font-size: 1.5rem;
        }

        .qr-results .qr-question-head {
            padding: 16px;
            gap: 12px;
        }

        .qr-results .qr-question-title {
            font-size: 1rem;
        }

        .qr-results .qr-budget {
            max-width: 72px;
        }

        .qr-results .qr-attempt {
            grid-template-columns: 1fr auto;
            gap: 8px 12px;
            padding: 14px 16px;
        }

        .qr-results .qr-clue-number {
            grid-column: 1 / -1;
        }

        .qr-results .qr-attempt-content {
            min-width: 0;
        }

        .qr-results .qr-attempt-points {
            padding-top: 2px;
        }

        .qr-results .qr-reveal {
            padding: 12px 16px;
        }
}
/* ================================================================
   CLUE IN ONE — DAILY HOME + ARCHIVE (append after existing CSS)
   Does not change PlayQuiz, the master header or the game controls.
   Palette: navy #23334A, blue #326BE0, lavender #9377D8,
   coral #E97E6B, mint #4FAE83.
   ================================================================ */

/* Width is inherited from the existing SiteMaster content shell. */
.clue-game-shell.qw-home,
.clue-game-shell.qw-archive {
    width: 100%;
    max-width: 850px;
    margin-inline: auto;
}

    /* Home: daily quiz is the single primary action. */
    .clue-game-shell.qw-home .qw-home-hero {
        margin: 0;
        padding: clamp(24px, 4.6vw, 42px);
        border: 1px solid #dce4f2;
        border-radius: 20px;
        background: radial-gradient(ellipse at 95% 0%, rgba(147,119,216,.12), transparent 54%), linear-gradient(145deg,#f9fbff 0%,#f0f5ff 100%);
        color: #23334A;
        box-shadow: none;
    }

    .clue-game-shell.qw-home .qw-home-daily-label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 15px;
        color: #3b60a7;
        font-size: .76rem;
        font-weight: 800;
        letter-spacing: .055em;
        text-transform: uppercase;
    }

    .clue-game-shell.qw-home .qw-home-daily-dot {
        flex: 0 0 8px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #4FAE83;
    }

    .clue-game-shell.qw-home .qw-home-hero h1 {
        margin: 0 0 13px;
        max-width: 610px;
        color: #23334A;
        font-size: clamp(1.85rem, 4.8vw, 3.05rem);
        font-weight: 800;
        line-height: 1.14;
        letter-spacing: -.045em;
    }

    .clue-game-shell.qw-home .qw-home-hero .qw-home-lead {
        margin: 0;
        max-width: 580px;
        color: #536780;
        font-size: clamp(.94rem, 2.2vw, 1.05rem);
        line-height: 1.6;
    }

    .clue-game-shell.qw-home .qw-home-lead strong {
        color: #294f9c;
        font-weight: 800;
    }

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

    .clue-game-shell.qw-home .qw-home-primary-cta,
    .clue-game-shell.qw-home .qw-home-cta-unavailable {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 49px;
        padding: 12px 22px;
        border-radius: 12px;
        font-size: .94rem;
        font-weight: 800;
        line-height: 1.25;
        text-align: center;
        text-decoration: none;
    }

    .clue-game-shell.qw-home .qw-home-primary-cta {
        border: 1px solid #326BE0;
        background: #326BE0;
        color: #fff;
        box-shadow: 0 6px 14px rgba(50,107,224,.14);
    }

        .clue-game-shell.qw-home .qw-home-primary-cta::after {
            content: "→";
            margin-left: 11px;
            font-size: 1.18em;
        }

        .clue-game-shell.qw-home .qw-home-primary-cta:hover,
        .clue-game-shell.qw-home .qw-home-primary-cta:focus-visible {
            background: #2758bd;
            border-color: #2758bd;
            color: #fff;
            text-decoration: none;
        }

    .clue-game-shell.qw-home .qw-home-cta-unavailable {
        color: #62738c;
        background: #e9eef7;
        border: 1px solid #d6e0ec;
    }

    .clue-game-shell.qw-home .qw-home-rules-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 49px;
        padding: 12px 19px;
        border: 1px solid #bdcae1;
        border-radius: 12px;
        background: #fff;
        color: #365984;
        box-shadow: none;
        font-size: .92rem;
        font-weight: 750;
    }

        .clue-game-shell.qw-home .qw-home-rules-button:hover,
        .clue-game-shell.qw-home .qw-home-rules-button:focus-visible {
            background: #ecf2ff;
            border-color: #9bb4e6;
            color: #244c8d;
        }

    .clue-game-shell.qw-home .qw-home-today-status {
        margin-top: 11px;
        min-height: 19px;
        color: #64758c;
        font-size: .83rem;
    }

        .clue-game-shell.qw-home .qw-home-today-status:empty {
            display: none;
        }

    /* Keep the personal-best message prominent but subordinate to Play. */
    .clue-game-shell.qw-home .qw-home-best {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        margin: 16px 0 21px;
        padding: 19px 22px;
        border: 1px solid #d9e8dd;
        border-radius: 16px;
        background: #f5faf6;
    }

    .clue-game-shell.qw-home .qw-home-best-symbol {
        display: grid;
        place-items: center;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: #e0f3e8;
        color: #2d8157;
        font-size: 1.4rem;
        font-weight: 800;
    }

    .clue-game-shell.qw-home .qw-home-best h2 {
        margin: 0 0 5px;
        color: #23334A;
        font-size: 1.12rem;
        font-weight: 800;
        line-height: 1.3;
    }

    .clue-game-shell.qw-home .qw-home-best p {
        margin: 0;
        max-width: 630px;
        color: #56697a;
        font-size: .9rem;
        line-height: 1.55;
    }

    /* Archive and registration are secondary choices, below the daily CTA. */
    .clue-game-shell.qw-home .qw-home-secondary {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
        gap: 14px;
    }

    .clue-game-shell.qw-home .qw-home-archive-promo,
    .clue-game-shell.qw-home .qw-home-join {
        min-width: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 22px;
        border-radius: 16px;
        border: 1px solid #e0e6f1;
        background: #fff;
    }

    .clue-game-shell.qw-home .qw-home-archive-promo {
        background: #fdfdff;
    }

    .clue-game-shell.qw-home .qw-home-join {
        background: #fff9f5;
        border-color: #f2e3d9;
    }

    .clue-game-shell.qw-home .qw-home-section-eyebrow {
        margin: 0 0 9px;
        color: #5672a4;
        letter-spacing: .1em;
        font-size: .67rem;
        line-height: 1.4;
        font-weight: 850;
    }

    .clue-game-shell.qw-home :is(.qw-home-archive-promo, .qw-home-join) h2 {
        margin: 0 0 9px;
        color: #23334A;
        font-size: 1.25rem;
        font-weight: 800;
        letter-spacing: -.022em;
    }

    .clue-game-shell.qw-home :is(.qw-home-archive-promo, .qw-home-join) p:not(.qw-home-section-eyebrow) {
        margin: 0 0 16px;
        color: #5a697e;
        font-size: .87rem;
        line-height: 1.56;
    }

    .clue-game-shell.qw-home .qw-home-secondary-link,
    .clue-game-shell.qw-archive .qw-home-secondary-link {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-top: auto;
        color: #2f63c5;
        font-size: .91rem;
        font-weight: 800;
        text-decoration: none;
    }

        .clue-game-shell.qw-home .qw-home-secondary-link:hover,
        .clue-game-shell.qw-archive .qw-home-secondary-link:hover {
            color: #214ca5;
            text-decoration: underline;
        }

    .clue-game-shell.qw-home .qw-home-register-button {
        width: fit-content;
        min-height: 40px;
        margin-top: auto;
        padding: 9px 15px;
        border-radius: 10px;
        border: 1px solid #e4bda6;
        background: #ffe9de;
        color: #874838;
        box-shadow: none;
        font-weight: 800;
        font-size: .86rem;
    }

        .clue-game-shell.qw-home .qw-home-register-button:hover {
            background: #ffded0;
            color: #78392c;
        }

    .clue-game-shell.qw-home .qw-home-join .qw-home-login-link {
        margin: 0 0 14px;
    }

    /* Archive is a quiet, scannable list — no extra gameplay controls. */
    .clue-game-shell.qw-archive .qw-archive-header {
        margin-bottom: 22px;
    }

    .clue-game-shell.qw-archive .qw-archive-back {
        display: inline-block;
        margin-bottom: 22px;
        color: #326BE0;
        font-size: .86rem;
        font-weight: 750;
        text-decoration: none;
    }

        .clue-game-shell.qw-archive .qw-archive-back:hover {
            text-decoration: underline;
        }

    .clue-game-shell.qw-archive .qw-archive-eyebrow {
        margin: 0 0 7px;
        color: #667ca7;
        font-size: .72rem;
        font-weight: 850;
        letter-spacing: .1em;
    }

    .clue-game-shell.qw-archive .qw-archive-header h1 {
        margin: 0 0 8px;
        color: #23334A;
        font-size: clamp(1.7rem, 4vw, 2.3rem);
        letter-spacing: -.04em;
        font-weight: 850;
    }

    .clue-game-shell.qw-archive .qw-archive-header > p:last-child {
        margin: 0;
        color: #617188;
        font-size: .94rem;
        line-height: 1.6;
    }

    .clue-game-shell.qw-archive .qw-archive-list {
        display: grid;
        gap: 10px;
    }

    .clue-game-shell.qw-archive .qw-archive-card {
        display: flex;
        align-items: center;
        gap: 15px;
        min-height: 82px;
        padding: 16px 18px;
        border: 1px solid #e0e7f0;
        border-radius: 15px;
        background: #fff;
        color: #23334A;
        text-decoration: none;
        transition: border-color .16s ease, background-color .16s ease;
    }

        .clue-game-shell.qw-archive .qw-archive-card:hover,
        .clue-game-shell.qw-archive .qw-archive-card:focus-visible {
            color: #23334A;
            background: #f8fbff;
            border-color: #acc5f0;
            text-decoration: none;
        }

    .clue-game-shell.qw-archive .qw-archive-card-mark {
        display: grid;
        place-items: center;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: #edf1fd;
        color: #326BE0;
        font-size: 1.12rem;
        font-weight: 800;
    }

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

    .clue-game-shell.qw-archive .qw-archive-card-title {
        overflow-wrap: anywhere;
        color: #23334A;
        font-weight: 800;
        font-size: 1rem;
    }

    .clue-game-shell.qw-archive .qw-archive-card-subtitle {
        color: #68788d;
        font-size: .84rem;
        line-height: 1.4;
    }

    .clue-game-shell.qw-archive .qw-archive-card-arrow {
        color: #326BE0;
        font-weight: 800;
        font-size: 1.3rem;
    }

    .clue-game-shell.qw-archive .qw-archive-empty {
        padding: 28px;
        border: 1px solid #dee7f5;
        border-radius: 16px;
        background: #f7faff;
    }

        .clue-game-shell.qw-archive .qw-archive-empty h2 {
            margin: 0 0 7px;
            font-size: 1.2rem;
            color: #23334A;
        }

        .clue-game-shell.qw-archive .qw-archive-empty p {
            margin: 0 0 15px;
            color: #617188;
        }

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

@media (max-width: 600px) {
    .clue-game-shell.qw-home .qw-home-hero {
        padding: 23px 20px;
    }

    .clue-game-shell.qw-home .qw-home-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .clue-game-shell.qw-home .qw-home-primary-cta,
    .clue-game-shell.qw-home .qw-home-cta-unavailable,
    .clue-game-shell.qw-home .qw-home-rules-button {
        width: 100%;
    }

    .clue-game-shell.qw-home .qw-home-best {
        padding: 17px;
        gap: 12px;
    }

    .clue-game-shell.qw-home .qw-home-secondary {
        grid-template-columns: minmax(0,1fr);
    }

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

@media (prefers-reduced-motion: reduce) {
    .clue-game-shell.qw-archive .qw-archive-card {
        transition: none;
    }
}
/* Login and Register: a single action row within the Join card.
   Append AFTER the existing HomeArchive_additions.css rules. */
.clue-game-shell.qw-home .qw-home-join .qw-home-join-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

    .clue-game-shell.qw-home .qw-home-join .qw-home-join-actions .qw-home-login-link,
    .clue-game-shell.qw-home .qw-home-join .qw-home-join-actions .qw-home-register-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: auto;
        margin: 0;
        white-space: nowrap;
        text-decoration: none;
    }
