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

html,
body {
    height: 100%;
    overflow: hidden;
    background: #0d1117;
    color: #e6edf3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.hidden {
    display: none !important;
}

/* ============ Screens ============ */
.screen {
    display: none;
    position: fixed;
    inset: 0;
    height: 100dvh;
    flex-direction: column;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.screen.active {
    display: flex;
}

/* ============ Buttons ============ */
.btn {
    border: none;
    border-radius: 10px;
    background: #153e7e;
    /* NFL navy blue */
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 20px;
    cursor: pointer;
    touch-action: manipulation;
}

.btn:active {
    transform: scale(0.97);
    filter: brightness(1.15);
}

.btn:disabled {
    opacity: 0.4;
    pointer-events: none;
}

.btn-big {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 26px;
    padding: 16px 0;
    width: min(70vw, 320px);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn-subtitle {
    font-size: 11px;
    font-weight: 500;
    color: #9da7b3;
    letter-spacing: 0.5px;
    text-transform: none;
    display: block;
}

.btn-small {
    font-size: 14px;
    padding: 8px 14px;
    background: #2d333b;
}

.btn-accent {
    background: #d50a0a;
}

/* NFL red */
.btn-ghost {
    background: transparent;
    border: 1px solid #30363d;
    color: #9da7b3;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
}

.team-dropdown {
    flex: 0 0 auto;
    width: min(70vw, 320px);
    height: 48px;
    font-size: 16px;
    text-align: center;
}

/* ---- Custom scrollable team picker ---- */
.team-dropdown-hidden { display: none !important; }

.team-picker {
    position: relative;
    flex: 0 0 auto;
    width: min(70vw, 320px);
}
.team-picker-btn {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    border: 1px solid #30363d;
    background: #0d1117;
    color: #e6edf3;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding: 0 30px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.team-picker-btn.placeholder { color: #9da7b3; font-weight: 500; }
.team-picker-btn::after {
    content: '▾';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #9da7b3;
    pointer-events: none;
}
.team-picker.open .team-picker-btn::after { content: '▴'; }

.team-picker-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 25vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6);
    padding: 4px;
    z-index: 50;
}
.team-picker-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    width: 100%;
    min-height: 44px;
    padding: 7px 12px;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 6px;
    color: #e6edf3;
    text-align: left;
    cursor: pointer;
}
.team-picker-item:hover,
.team-picker-item:active { background: #21262d; }
.team-picker-item.selected { background: #21262d; border-left-color: #f2cc60; }
.tp-name { font-size: 15px; font-weight: 700; }
.tp-rating { font-size: 11px; color: #9da7b3; }

.home-logo-container {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.home-logo-container.hidden {
    display: none;
}

#homeTeamLogo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.app-version {
    position: absolute;
    left: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    font-size: 11px;
    font-weight: 500;
    color: #4b535c;
    letter-spacing: 0.5px;
    pointer-events: none;
    user-select: none;
}

/* ============ Home ============ */
.screen-home {
    align-items: center;
    justify-content: center;
    gap: 6dvh;
    overflow-y: auto;
    background: radial-gradient(ellipse at 50% 30%, #0a1f45 0%, #0d1117 70%);
}
.app-header {
    text-align: center;
}

.app-logo {
    display: block;
    width: min(40vw, 170px);
    height: auto;
    margin: 0 auto 14px;
    border-radius: 50%;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.app-title {
    font-size: clamp(36px, 12vw, 56px);
    text-align: center;
    line-height: 1.05;
    letter-spacing: 4px;
    color: #e6edf3;
    text-shadow: 0 2px 14px rgba(40, 96, 180, 0.6);
}

.app-subtitle {
    margin-top: 12px;
    font-size: clamp(12px, 3.6vw, 17px);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    color: #9db4d4;
}

.home-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============ Sim layout: 10% HUD / 80% field / 10% HUD ============ */
.hud {
    flex: 0 0 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    background: #161b22;
    z-index: 5;
}
.field-slot {
    flex: 1 1 80%;
    position: relative;
    min-height: 0;
    background: #0a0f0a;
}

.hud-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    font-size: 14px;
    min-width: 0;
    flex: 1 1 46%;
    padding: 0 8px;
}

.hud-team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 0;
    flex: 0 1 auto;
}

.hud-logo {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.hud-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 0 1 auto;
    max-width: 32vw;
    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff;
}

.hud-score {
    font-size: 22px;
    font-variant-numeric: tabular-nums;
}

.poss-dot {
    color: #f2cc60;
    font-size: 11px;
    visibility: hidden;
}

.poss-dot.on {
    visibility: visible;
}

.hud-bottom-center {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0 4px;
}

.hud-bottom-center #hudQuarter {
    font-size: 13px;
    font-weight: 700;
    color: #9da7b3;
}

.hud-bottom-center #hudClock {
    font-size: 20px;
    font-weight: 700;
    color: #e6edf3;
    font-variant-numeric: tabular-nums;
}

.hud-situation {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-weight: 700;
    font-size: 15px;
}

.hud-situation #hudFieldPos {
    font-size: 12px;
    color: #9da7b3;
    font-weight: 600;
}

/* ============ Field canvas (shared) ============ */
#fieldContainer {
    position: absolute;
    inset: 0;
    /* parked off-DOM at boot; router inserts it into a .field-slot */
}

#fieldCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.toast {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    max-width: 90%;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast:empty {
    display: none;
}

.mute-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(6, 10, 14, 0.6);
    color: #fff;
    font-size: 18px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 30;
    /* above the chooser/banner overlays (20) so it's always tappable */
    touch-action: manipulation;
}

.mute-btn:active {
    transform: scale(0.9);
}

.weather-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 5px 10px;
    border-radius: 14px;
    background: rgba(6, 10, 14, 0.6);
    color: #e6edf3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 15;
    pointer-events: none;
    white-space: nowrap;
}

/* Jersey-number / position toggle (next to the mute button) */
.num-toggle {
    position: absolute;
    top: 8px;
    right: 54px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(6, 10, 14, 0.6);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 30;
    touch-action: manipulation;
}
.num-toggle.on { background: rgba(60, 123, 213, 0.85); }
.num-toggle:active { transform: scale(0.9); }

/* Bottom-HUD control cluster: weather badge, number toggle, mute.
   Overrides the field-overlay (absolute) positioning of these controls. */
.hud-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}
.hud-controls .weather-badge,
.hud-controls .num-toggle,
.hud-controls .mute-btn {
    position: static;
    top: auto;
    left: auto;
    right: auto;
}
.hud-controls .weather-badge {
    font-size: 11px;
    padding: 4px 8px;
}
.hud-controls .num-toggle,
.hud-controls .mute-btn {
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 15px;
}

/* ============ Win-probability bar ============ */
.winprob {
    position: relative;
    height: 16px;
    margin: 0 8px 4px;
    border-radius: 8px;
    overflow: hidden;
    background: #555;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35);
    flex: 0 0 auto;
}
.winprob-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 50%;
    background: #3a7bd5;
    transition: width 0.6s ease;
}
.winprob-label {
    position: absolute;
    top: 0;
    line-height: 16px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
    z-index: 1;
}
.winprob-home { left: 6px; }
.winprob-away { right: 6px; }

/* ============ Result stamp (big play-outcome pop) ============ */
.result-stamp {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%) scale(0.4);
    font-size: clamp(30px, 12vw, 64px);
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    -webkit-text-stroke: 2px rgba(0,0,0,0.55);
    text-shadow: 0 4px 18px rgba(0,0,0,0.6);
    pointer-events: none;
    opacity: 0;
    z-index: 18;
    white-space: nowrap;
}
.result-stamp.show { animation: stampPop 1.4s ease forwards; }
.result-stamp.stamp-good { color: #ffd23f; }
.result-stamp.stamp-bad  { color: #ff5d5d; }
@keyframes stampPop {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(-8deg); }
    14%  { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(-3deg); }
    26%  { transform: translate(-50%, -50%) scale(1.0) rotate(-3deg); }
    75%  { opacity: 1; transform: translate(-50%, -50%) scale(1.0) rotate(-3deg); }
    100% { opacity: 0; transform: translate(-50%, -52%) scale(1.05) rotate(-3deg); }
}

/* ============ Commentary feed (rating-aware play-by-play) ============ */
/* Play-by-play feed, shown above the play-call cards in the chooser overlay. */
.feed-toggle {
    align-self: center;
    padding: 4px 12px;
    border: 1px solid #30363d;
    border-radius: 14px;
    background: rgba(22, 27, 34, 0.9);
    color: #9da7b3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
}
.feed-toggle.off { color: #6b7480; }

.commentary-feed {
    width: min(92vw, 400px);
    max-height: 24vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 3px;
    overflow-y: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%);
    mask-image: linear-gradient(to bottom, transparent, #000 16%);
}
.commentary-feed.hidden { display: none; }
.cmt {
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.25;
    color: #dfe7ef;
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(6, 10, 14, 0.52);
    border-left: 3px solid rgba(255,255,255,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.cmt.cmt-in { opacity: 1; transform: translateY(0); }
.cmt-good { border-left-color: #ffd23f; color: #fff2c4; }
.cmt-bad  { border-left-color: #ff5d5d; color: #ffd7d7; }

/* ============ Overlays (chooser, banners) ============ */
.overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(6, 10, 14, 0.82);
    backdrop-filter: blur(2px);
    padding: 12px 16px;
    overflow-y: auto;
}

/* Sim overlays cover only the field band — the top HUD (score/clock/quarter)
   and bottom HUD (down & distance, Exit) stay visible. */
.screen-sim .overlay {
    top: 10%;
    bottom: 10%;
}

.chooser-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #e6edf3;
}

.chooser-hint {
    max-width: min(92vw, 400px);
    padding: 8px 14px;
    border: 1px solid #3d3a1e;
    border-radius: 10px;
    background: rgba(60, 52, 10, 0.55);
    color: #f2cc60;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
}

.chooser-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(92vw, 400px);
}

.play-card {
    border: 1px solid #30363d;
    border-radius: 12px;
    background: #161b22;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    color: #e6edf3;
}

.play-card:active {
    transform: scale(0.98);
    border-color: #d50a0a;
}

.play-card .card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-formation {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #f2cc60;
    background: rgba(242, 204, 96, 0.14);
    border: 1px solid rgba(242, 204, 96, 0.4);
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 4px;
}

.play-card .card-name {
    font-weight: 800;
    font-size: 15px;
}

.play-card .card-desc {
    font-size: 12px;
    color: #9da7b3;
}

.badge {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.badge-run {
    background: #7d4e00;
    color: #ffd8a8;
}

.badge-pass {
    background: #0b4f8a;
    color: #cce7ff;
}

.badge-punt {
    background: #3a3f45;
    color: #cfd6dd;
}

.badge-fg {
    background: #4a3d0a;
    color: #f2cc60;
}
.fg-card {
    border-color: #6b5a1e;
    border-style: dashed;
    background: #16130a;
}
.fg-card:active {
    border-color: #f2cc60;
}

/* 4th-down punt option — set apart from the play cards above it */
.punt-card {
    border-color: #4b5563;
    border-style: dashed;
    background: #12161c;
}
.punt-card:active {
    border-color: #f2cc60;
}

.badge-man {
    background: #6e2fb5;
    color: #e8d5ff;
}

.badge-zone {
    background: #0f6e5d;
    color: #c9f5ec;
}

.chooser-last {
    max-width: min(92vw, 400px);
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(22, 27, 34, 0.9);
    border: 1px solid #30363d;
    color: #9da7b3;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

.chooser-last strong {
    color: #e6edf3;
}

.banner-text {
    font-size: clamp(24px, 8vw, 40px);
    font-weight: 900;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    color: #f2cc60;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    white-space: pre-line;
}

.banner-text.matchup {
    font-size: 19px;
    letter-spacing: 0.5px;
    text-transform: none;
    line-height: 1.5;
    color: #e6edf3;
}
/* "You call" / "Opponent calls" labels are twice the play-name size. */
.banner-text.matchup .mu-label {
    display: block;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #f2cc60;
    line-height: 1.2;
}
.banner-text.matchup .mu-play {
    display: block;
    font-size: 19px;
    margin-bottom: 14px;
}
.banner-text.matchup .mu-play:last-child { margin-bottom: 0; }

/* ============ Plays screen ============ */
.plays-bar {
    flex: 0 0 10%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    background: #161b22;
    z-index: 5;
}

.plays-bar-bottom {
    justify-content: center;
}

.play-select {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #30363d;
    background: #0d1117;
    color: #e6edf3;
    font-size: 14px;
    padding: 0 8px;
}

.plays-info {
    font-size: 13px;
    color: #9da7b3;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* ============ Touchdown Effects ============ */
#touchdown-popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    animation: tdFadeIn 0.3s ease-out;
}

.touchdown-content {
    text-align: center;
    animation: tdPopScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.touchdown-text-glow {
    font-size: clamp(48px, 12vw, 84px);
    font-weight: 900;
    font-family: 'Arial Black', Impact, sans-serif;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.1;
    text-shadow:
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 30px rgba(255, 69, 0, 0.5),
        4px 4px 0px #000;
    animation: tdPulseGlow 1.2s ease-in-out infinite alternate;
}

.touchdown-subtext {
    font-size: clamp(16px, 4vw, 24px);
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-top: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: tdFadeInDelayed 0.4s ease 0.3s forwards;
}

@keyframes tdFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes tdPopScale {
    from {
        transform: scale(0.6);
        opacity: 0;
    }

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

@keyframes tdPulseGlow {
    from {
        text-shadow:
            0 0 10px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.5),
            0 0 30px rgba(255, 69, 0, 0.5),
            4px 4px 0px #000;
    }

    to {
        text-shadow:
            0 0 15px rgba(255, 215, 0, 1),
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 45px rgba(255, 69, 0, 0.8),
            4px 4px 0px #000;
    }
}

@keyframes tdFadeInDelayed {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

/* ============ Tablet & Desktop Layouts ============ */
@media (min-width: 768px) {
    /* Expand general buttons and typography */
    .btn {
        font-size: 18px;
        padding: 14px 24px;
        border-radius: 12px;
    }
    
    .btn-big {
        font-size: 28px;
        padding: 18px 0;
        width: 380px;
    }
    
    .btn-subtitle {
        font-size: 12px;
    }
    
    .btn-small {
        font-size: 16px;
        padding: 10px 18px;
    }
    
    .team-dropdown {
        width: 380px;
        height: 52px;
        font-size: 18px;
    }

    .team-picker { width: 380px; }
    .team-picker-btn { height: 52px; font-size: 18px; }
    .team-picker-panel { max-height: 52vh; }
    .tp-name { font-size: 16px; }
    .tp-rating { font-size: 12px; }

    .home-logo-container {
        width: 130px;
        height: 130px;
        margin-bottom: 16px;
    }
    
    /* Top and bottom HUD enhancements */
    .hud {
        padding: 0 24px;
    }
    
    .hud-name {
        font-size: 18px;
    }
    
    .hud-score {
        font-size: 28px;
    }
    
    .hud-logo {
        width: 42px;
        height: 42px;
    }
    
    .hud-situation {
        font-size: 18px;
    }
    
    .hud-situation #hudFieldPos {
        font-size: 14px;
    }
    
    .hud-bottom-center #hudQuarter {
        font-size: 16px;
    }
    
    .hud-bottom-center #hudClock {
        font-size: 24px;
    }

    .play-select {
        height: 48px;
        font-size: 16px;
        padding: 0 12px;
        border-radius: 10px;
    }

    /* Wider screens: grid of play cards, capped at 3 per row so 4th-down
       layouts (3 plays + Punt + FG) wrap instead of squeezing into one row. */
    .chooser-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: min(95vw, 820px);
        gap: 16px;
        justify-content: center;
    }

    .play-card {
        padding: 16px 20px;
        gap: 8px;
        min-height: 120px;
        justify-content: space-between;
    }
    
    .play-card .card-name {
        font-size: 18px;
    }
    
    .play-card .card-desc {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .badge {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .chooser-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .chooser-hint {
        max-width: 600px;
        font-size: 15px;
        padding: 10px 18px;
    }

    /* Center align screens on desktop for a cleaner frame */
    .screen-home {
        gap: 8dvh;
    }
}