:root {
    --bg-obsidian: rgba(8, 9, 12, 0.72);
    --border-crystal: rgba(255, 255, 255, 0.06);
    --text-glow: #ffffff;
    --text-dim: #94a3b8;
    --brand-cyan: #06b6d4;
    --brand-emerald: #10b981;
    --brand-lime: #a3e635;
    --error-crimson: #ef4444;
    
    --tile-0: #ca1616f4;
    --tile-1: #be742a;
    --tile-2: #0ddd56;
    --tile-3: #10b981;
}

body {
    margin: 0;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    overflow-x: hidden;
    perspective: 1200px; 
    background: linear-gradient(-45deg, #022c22, #045a66, #007d25, #0a0f1d);
    background-size: 400% 400%;
    animation: hyperWaveShift 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes hyperWaveShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.arena-header {
    text-align: center;
    margin-bottom: 24px;
    animation: cinematicDrop 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.arena-header h1 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin: 0;
    background: linear-gradient(to right, #ffffff, #e2e8f0, var(--brand-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.arena-header h1 span {
    color: var(--brand-lime);
    display: block;
    font-size: 1.1rem;
    letter-spacing: 0.35em;
    margin-top: 6px;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(163, 230, 85, 0.4);
    animation: neonPulseText 2s ease-in-out infinite alternate;
}

@keyframes neonPulseText {
    from { filter: drop-shadow(0 0 2px rgba(163, 230, 85, 0.2)); }
    to { filter: drop-shadow(0 0 10px rgba(163, 230, 85, 0.6)); }
}

@keyframes cinematicDrop {
    from { transform: translateY(-40px) scale(0.9); opacity: 0; filter: blur(4px); }
    to { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
}

.game-card {
    background: var(--bg-obsidian);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-crystal);
    border-radius: 28px;
    padding: 40px 36px;
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
    animation: 
        card3DEntry 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both,
        cardAmbientPulse 6s ease-in-out infinite alternate;
}

.arena-card {
    max-width: 760px !important;
}

@keyframes card3DEntry {
    from { 
        transform: rotateX(15deg) translateY(30px) scale(0.95); 
        opacity: 0; 
        box-shadow: 0 0 0 rgba(0,0,0,0);
    }
    to { 
        transform: rotateX(0deg) translateY(0) scale(1); 
        opacity: 1; 
    }
}

@keyframes cardAmbientPulse {
    0% { border-color: rgba(255, 255, 255, 0.06); box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), inset 0 0 0px rgba(6, 182, 212, 0); }
    50% { border-color: rgba(6, 182, 212, 0.2); box-shadow: 0 30px 65px -10px rgba(0, 0, 0, 0.85), inset 0 0 8px rgba(6, 182, 212, 0.05); }
    100% { border-color: rgba(163, 230, 53, 0.2); box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), inset 0 0 0px rgba(163, 230, 53, 0); }
}

.game-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 28px 0;
    text-align: center;
    letter-spacing: -0.02em;
}

.form-group input {
    width: 100%;
    background: rgba(13, 18, 30, 0.85);
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 18px;
    font-size: 1.1rem;
    color: #ffffff;
    box-sizing: border-box;
    margin-bottom: 16px;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
    background: #060911;
    transform: scale(1.01);
}

.section-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin: 0 0 10px 0;
    text-align: center;
}

#hostDeckBadge {
    display: block;
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    font-weight: 800;
    color: var(--brand-cyan);
    font-size: 1.1rem;
    margin-bottom: 28px;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

.pin-display-wrapper {
    background: #000000;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    padding: 20px;
    border-radius: 18px;
    text-align: center;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.pin-display-wrapper::after {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 30%; height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
    transform: rotate(25deg);
    animation: pinShine 4s linear infinite;
}

@keyframes pinShine {
    0% { left: -60%; }
    30%, 100% { left: 160%; }
}

.pin-label {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--text-dim);
    letter-spacing: 0.15em;
}

#displayGamePIN {
    font-size: 3.6rem;
    font-weight: 900;
    color: var(--brand-lime);
    margin: 6px 0 0 0 !important;
    letter-spacing: 6px;
    text-shadow: 0 0 15px rgba(163, 230, 53, 0.4);
}

#lobbyPlayerList {
    list-style: none;
    padding: 0;
    margin: 16px 0 28px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-height: 200px;
    overflow-y: auto;
}

#lobbyPlayerList li {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    animation: dynamicPlayerJoin 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes dynamicPlayerJoin {
    from { transform: scale(0.6) rotate(-5deg); opacity: 0; filter: brightness(2); }
    to { transform: scale(1) rotate(0deg); opacity: 1; filter: brightness(1); }
}

button {
    width: 100%;
    height: 56px;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary, .btn-save {
    background: var(--brand-lime);
    color: #011f18;
    box-shadow: 0 4px 12px rgba(163, 230, 53, 0.15);
}

.btn-primary:hover, .btn-save:hover {
    background: #bef264;
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 24px rgba(163, 230, 53, 0.35);
}

.btn-primary:active, .btn-save:active {
    transform: translateY(-1px) scale(0.99);
}

.back-btn {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid #27272a;
    margin-top: 14px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: #4b5563;
    color: #ffffff;
    transform: translateY(-2px);
}

.arena-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 18px;
    margin-bottom: 28px;
}

.round-indicator {
    margin: 0;
    font-size: 1.05rem;
    color: var(--brand-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.timer-badge {
    font-size: 1.4rem;
    font-weight: 900;
    background: var(--error-crimson);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
    animation: heartBeatTimer 1s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes heartBeatTimer {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.12); filter: brightness(1.2); box-shadow: 0 0 25px rgba(239, 68, 68, 0.7); }
}

#hostQuestionText {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 36px 0;
    text-align: center;
    letter-spacing: -0.02em;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 28px;
}

.option-tile, .options-grid button {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 22px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    position: relative;
    overflow: hidden;
}

.tile-0 { border-left: 6px solid var(--tile-0) !important; }
.tile-1 { border-left: 6px solid var(--tile-1) !important; }
.tile-2 { border-left: 6px solid var(--tile-2) !important; }
.tile-3 { border-left: 6px solid var(--tile-3) !important; }

.options-grid button:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.03) translateY(-2px);
}
.options-grid button.tile-0:hover { box-shadow: 0 8px 24px rgba(244, 63, 94, 0.25); border-color: var(--tile-0); }
.options-grid button.tile-1:hover { box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25); border-color: var(--tile-1); }
.options-grid button.tile-2:hover { box-shadow: 0 8px 24px rgba(234, 179, 8, 0.25); border-color: var(--tile-2); }
.options-grid button.tile-3:hover { box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25); border-color: var(--tile-3); }

.player-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #070a12;
    z-index: 9999;
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: fullCanvasOverlayIntro 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fullCanvasOverlayIntro {
    from { transform: scale(1.08); opacity: 0; filter: blur(8px); }
    to { transform: scale(1); opacity: 1; filter: blur(0); }
}

.player-content-wrapper {
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
    padding: 20px;
}

#playerQuestionText {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 14px;
}

#playerStatusMessage {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brand-lime);
    text-shadow: 0 0 10px rgba(163, 230, 53, 0.2);
}

.full-viewport-grid {
    height: 52vh;
    margin-bottom: 0;
}

.full-viewport-grid button {
    height: 100% !important;
    font-size: 1.4rem;
    border-radius: 22px;
}

.score-podium-card, #hostScoreboardContainer {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 28px;
    margin-top: 24px;
    animation: containerRankReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes containerRankReveal {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

#playerFinalPlacement {
    font-size: 5.5rem;
    font-weight: 900;
    color: var(--brand-lime);
    margin: 0;
    text-shadow: 0 0 30px rgba(163, 230, 53, 0.5);
    animation: crownFloat 2s ease-in-out infinite alternate;
}

@keyframes crownFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

#hostScoreboardContainer h2 {
    color: var(--brand-lime);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(163, 230, 53, 0.2);
}

#hostFinalRankingsList {
    font-size: 1.3rem;
    line-height: 2.2;
    padding-left: 20px;
    color: #f1f5f9;
}

#playerWaitingScreen {
    text-align: center;
    margin-top: 28px;
}

.pulse-loader {
    width: 44px;
    height: 44px;
    background: var(--brand-cyan);
    border-radius: 50%;
    margin: 0 auto 18px auto;
    animation: hyperDotPulse 1.4s infinite ease-in-out;
}

@keyframes hyperDotPulse {
    0% { transform: scale(0.7); opacity: 0.4; box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5), 0 0 0 0 rgba(6, 182, 212, 0.3); }
    50% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 12px rgba(6, 182, 212, 0), 0 0 0 24px rgba(6, 182, 212, 0); }
    100% { transform: scale(0.7); opacity: 0.4; box-shadow: 0 0 0 0 rgba(6, 182, 212, 0), 0 0 0 0 rgba(6, 182, 212, 0); }
}

.warningModal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(6, 8, 12, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999 !important;
    padding: 20px;
    box-sizing: border-box;
}

.warningBox {
    background: #0d111c;
    border: 1px solid var(--border-crystal);
    border-radius: 24px;
    padding: 36px 28px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    animation: modalSpringPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modalSpringPop {
    from { transform: scale(0.85) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.warningBox h2 {
    margin: 0 0 14px 0;
    font-size: 1.4rem;
    color: #ffffff;
}

.warningBox p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 24px 0;
}

.warningBox button {
    background: #27272a;
    color: #ffffff;
    height: 48px;
}
.warningBox button:hover {
    background: #3f3f46;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    body { padding: 20px 12px; }
    .game-card { padding: 28px 20px; border-radius: 22px; }
    .options-grid { grid-template-columns: 1fr; gap: 14px; }
    #hostQuestionText { font-size: 1.5rem; margin: 24px 0; }
    #lobbyPlayerList { grid-template-columns: 1fr; }
    #displayGamePIN { font-size: 2.8rem; }
    .player-overlay { padding: 16px; }
    .full-viewport-grid button { font-size: 1.2rem; }
}

.knowledge-deck-logo {
    max-width: 260px;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

.podium-header {
    text-align: center;
    margin-bottom: 32px;
}
.podium-subtitle {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin: 4px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.podium-top-three {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    margin: 40px 0;
    min-height: 240px;
}

.podium-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 20px 12px;
    text-align: center;
    flex: 1;
    max-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    animation: podiumRaise 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes podiumRaise {
    from { transform: translateY(40px); opacity: 0; filter: brightness(2); }
    to { transform: translateY(0); opacity: 1; filter: brightness(1); }
}

.podium-card.first {
    height: 240px;
    background: rgba(163, 230, 53, 0.04);
    border-color: rgba(163, 230, 53, 0.2);
    box-shadow: 0 0 25px rgba(163, 230, 53, 0.1);
    animation-delay: 0.3s;
}
.podium-card.second { height: 190px; animation-delay: 0.15s; }
.podium-card.third { height: 160px; animation-delay: 0s; }

.podium-badge {
    font-size: 2rem;
    margin-bottom: 8px;
}
.first .podium-badge {
    filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.6));
    animation: crownFloat 2s ease-in-out infinite alternate;
}

.podium-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.podium-score {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-cyan);
    margin-top: 4px;
}
.first .podium-score { color: var(--brand-lime); }
.pts-dim { font-size: 0.75rem; color: var(--text-dim); font-weight: 500; }

.podium-pedestal {
    margin-top: auto;
    width: 100%;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text-dim);
}
.first .podium-pedestal { background: rgba(163, 230, 53, 0.1); color: var(--brand-lime); }

.leaderboard-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 4px;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.runner-ups-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.runner-up-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    animation: rowFadeIn 0.4s ease both;
}
.runner-up-item:last-child { border-bottom: none; }

.runner-rank {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dim);
    width: 40px;
}
.runner-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    flex-grow: 1;
}
.runner-score {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-cyan);
}

@keyframes rowFadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 600px) {
    
    body {
        padding-bottom: 140px !important;
    }

    .score-podium-card {
        padding: 16px 8px !important;
    }

    .podium-top-three {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin: 24px 0;
    }

   .podium-card {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        padding: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 6px !important;
        box-sizing: border-box;
    }

    .podium-card.first {
        order: -1; 
        background: rgba(163, 230, 53, 0.08);
        border: 2px solid rgba(163, 230, 53, 0.3);
        box-shadow: 0 8px 24px rgba(163, 230, 53, 0.15);
    }
    .podium-card.second { order: 1; }
    .podium-card.third { order: 2; }

    .podium-badge {
        font-size: 1.8rem;
        margin: 0;
        grid-column: 1;
    }

    .podium-name {
        font-size: 1.1rem;
        font-weight: 800;
        color: #ffffff;
        text-align: left;
        grid-column: 2;
        white-space: normal !important; 
        word-break: break-word; 
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.3;
    }

    .podium-score {
        font-size: 1rem;
        margin: 4px 0 0 0;
        text-align: left;
        display: block; 
    }
    
    .podium-pedestal {
        margin: 0;
        grid-column: 3;
        padding: 6px 12px;
        font-size: 0.9rem;
        border-radius: 12px;
        text-align: center;
        min-width: 40px;
    }
    
   .runner-up-item {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 14px 16px !important;
        gap: 10px;
    }

    .runner-name {
        flex-grow: 1;
        white-space: normal !important;
        word-break: break-word;
        padding-right: 8px;
    }

    .runner-score {
        text-align: right;
        white-space: nowrap;
    }

    .review-card {
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding: 16px !important;
        margin-bottom: 14px !important;
        border-radius: 14px !important;
    }

    .review-question {
        font-size: 1rem !important;
        font-weight: 700;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .review-choice {
        font-size: 0.88rem;
        font-weight: 600;
        color: #94a3b8;
        margin-bottom: 4px;
    }
    
    .review-choice span {
        color: #f87171;
        text-decoration: line-through;
        margin-left: 4px;
    }

    .review-solution {
        font-size: 0.88rem !important;
        color: #4ade80 !important;
        font-weight: 600;
        margin-top: 6px;
    }

    .review-solution b {
        color: #ffffff !important;
        background: rgba(74, 222, 128, 0.15) !important;
        border: 1px solid rgba(74, 222, 128, 0.2);
        padding: 3px 8px !important;
        border-radius: 6px !important;
        display: inline-block;
        margin-top: 2px;
    }
}

.player-leaderboard {
    margin: 24px 0;
    text-align: left;
}

.runner-up-item.is-current-user {
    background: rgba(163, 230, 53, 0.12) !important;
    border: 1px solid rgba(163, 230, 53, 0.3);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(163, 230, 53, 0.1);
}
.runner-up-item.is-current-user .runner-name {
    color: var(--brand-lime) !important;
    font-weight: 800;
}

.review-section {
    margin-top: 32px;
    text-align: left;
}
.review-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.review-card {
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    animation: rowFadeIn 0.5s ease both;
}
.review-question {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 8px;
    line-height: 1.4;
}
.review-solution {
    font-size: 0.85rem;
    color: var(--brand-emerald);
    font-weight: 600;
}
.review-solution b {
    color: #ffffff;
    background: rgba(16, 185, 129, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

@media (max-width: 600px) {

    .game-card { 
        padding: 24px 16px; 
        border-radius: 22px; 
        margin-bottom: 20px;
    }

    .options-grid { 
        grid-template-columns: 1fr; 
        gap: 12px; 
    }
    
    .full-viewport-grid {
        height: auto !important;
        min-height: 40vh;
        margin-bottom: 20px;
    }

    .full-viewport-grid button { 
        height: auto !important;
        min-height: 60px;
        font-size: 1.15rem; 
        padding: 14px;
    }

    .knowledge-deck-logo-wrapper {
        width: 100%;
        max-width: 220px;
        margin: 24px auto;
        display: block;
    }

    .knowledge-deck-logo-wrapper img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }
}