[hidden] { display: none !important; }

:root {
    --games-bg: #f5f7fb;
    --games-surface: rgba(255, 255, 255, 0.78);
    --games-surface-strong: #ffffff;
    --games-border: rgba(146, 167, 194, 0.34);
    --games-text: #0f1624;
    --games-muted: #5d6f8a;
    --games-accent: #1cae90;
    --games-accent-2: #45a9ff;
    --games-danger: #de4357;
    --games-shadow: 0 24px 60px rgba(19, 42, 67, 0.18);
}

body.games-light-default {
    background: radial-gradient(circle at 20% 0%, #ddf8f0 0%, #e7edf9 42%, #f5f7fb 100%);
    color: var(--games-text);
    overflow-x: hidden;
    font-size: 16px;
}

body.games-light-default::before,
body.games-light-default::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transition: opacity .25s ease;
}

body.games-light-default::before {
    background-image:
        repeating-linear-gradient(
            to bottom,
            rgba(132, 176, 230, 0.08) 0 2px,
            transparent 2px 6px
        );
}

body.games-light-default::after {
    background-image:
        linear-gradient(90deg, rgba(255, 60, 90, 0.08), transparent 22%, rgba(72, 145, 255, 0.1) 84%, transparent);
    transform: translateX(-2%);
}

body.games-light-default.corrupt-low::before {
    opacity: 0.18;
}

body.games-light-default.corrupt-medium::before {
    opacity: 0.28;
}

body.games-light-default.corrupt-medium::after {
    opacity: 0.18;
}

body.games-light-default.corrupt-high::before {
    opacity: 0.44;
}

body.games-light-default.corrupt-high::after {
    opacity: 0.35;
}

body.games-light-default[data-game-theme='vc-jury-trial'] .games-bg-layer::after {
    background:
        linear-gradient(90deg, rgba(224, 74, 96, 0.12) 0%, rgba(224, 74, 96, 0) 28%),
        repeating-linear-gradient(
            to right,
            rgba(180, 188, 212, 0.12) 0 2px,
            rgba(22, 31, 49, 0.04) 2px 28px
        ),
        linear-gradient(180deg, rgba(16, 22, 35, 0.28) 0%, rgba(16, 22, 35, 0.7) 100%);
}

body.games-light-default:not(.light-mode) {
    --games-bg: #0c1321;
    --games-surface: rgba(17, 25, 38, 0.72);
    --games-surface-strong: #182235;
    --games-border: rgba(108, 136, 173, 0.32);
    --games-text: #eaf0fb;
    --games-muted: #a8b7ce;
    --games-accent: #59d8be;
    --games-accent-2: #72baff;
    --games-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
    background: radial-gradient(circle at 20% 0%, #11222f 0%, #141e30 50%, #0c1321 100%);
}

.games-room-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 18px) 18px 18px;
    position: relative;
    --game-banner-url: none;
}

@media (max-width: 768px) {
    .games-room-shell {
        padding: calc(var(--nav-h) + 12px) 10px 20px;
    }
}

.games-hero {
    position: relative;
    border-radius: 16px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--games-border);
    box-shadow: var(--games-shadow);
    background: var(--games-surface);
    backdrop-filter: blur(14px);
}

.games-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(7, 14, 24, 0.3), rgba(7, 14, 24, 0.42)),
        radial-gradient(1200px 600px at 30% 20%, rgba(0, 255, 170, 0.14), transparent 60%),
        var(--game-banner-url, none);
    background-size: auto, auto, cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 360px 1fr 120px;
    gap: 16px;
    align-items: center;
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.roombox {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
    backdrop-filter: blur(8px);
}

.roombox .kicker {
    font-size: 12px;
    letter-spacing: 0.14em;
    opacity: 0.85;
}

.roombox .code {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 6px 0 10px;
}

.roombox .row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.roombox .joinurl {
    width: 100%;
    margin-top: 10px;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 12px;
    color: inherit;
}

.titlebox {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px 16px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 92px;
}

.titlebox .logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid rgba(0, 255, 170, 0.25);
    display: grid;
    place-items: center;
    font-weight: 700;
}

.titlebox h1 {
    margin: 0;
    font-size: 44px;
    line-height: 1;
    letter-spacing: 0.02em;
}

@media (max-width: 520px) {
    .titlebox h1 {
        font-size: 34px;
    }
}

.countbox {
    display: flex;
    justify-content: center;
}

.ring {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    border: 6px solid rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
}

.ring span {
    font-weight: 700;
}

.status-strip {
    margin-top: 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    position: relative;
    backdrop-filter: blur(8px);
}

#host-controls-row,
#player-controls-row {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.phase-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 170, 0.3);
    background: rgba(0, 255, 170, 0.1);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.12em;
}

.status-line {
    margin: 10px 0 0;
    font-size: 18px;
    opacity: 0.92;
}

.host-start-btn {
    margin-top: 10px;
}

.stage-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 16px;
    align-items: start;
}

@media (max-width: 980px) {
    .stage-grid {
        grid-template-columns: 1fr;
    }
}

.scene-card {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    min-height: 320px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    height: auto;
}

.card-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px;
    justify-content: flex-start;
}

.player-card {
    width: 210px;
    border-radius: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-card .img {
    height: 150px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
    font-weight: 700;
}

.player-card .img .avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 0;
}

.player-card .name {
    margin-top: 10px;
    font-weight: 700;
}

.player-card .meta {
    margin-top: 6px;
    opacity: 0.8;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

.player-card .card-copy {
    margin-top: 8px;
    min-height: 2.8em;
}

.cf-stage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    width: 100%;
    align-items: start;
}

.tcg-card {
    position: relative;
    border-radius: 18px;
    border: 1px solid rgba(146, 174, 219, 0.45);
    background:
        radial-gradient(200px 160px at 86% 6%, rgba(90, 223, 255, 0.15), transparent 72%),
        linear-gradient(180deg, rgba(14, 22, 35, 0.96), rgba(10, 16, 29, 0.95));
    min-height: 364px;
    padding: 10px;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 10px;
    box-shadow: 0 12px 24px rgba(2, 8, 18, 0.5);
}

.tcg-card.is-common {
    border-color: rgba(98, 184, 255, 0.42);
}

.tcg-card.is-rare {
    border-color: rgba(103, 170, 255, 0.56);
    box-shadow: 0 14px 26px rgba(18, 72, 146, 0.34);
}

.tcg-card.is-legendary {
    border-color: rgba(255, 199, 97, 0.64);
    box-shadow: 0 16px 28px rgba(149, 96, 22, 0.38);
}

.tcg-card.is-selectable {
    cursor: pointer;
}

.tcg-card.is-selectable:hover {
    transform: translateY(-2px);
}

.tcg-card.is-selected {
    border-color: rgba(80, 235, 180, 0.9);
    box-shadow: 0 0 0 2px rgba(80, 235, 180, 0.35), 0 14px 28px rgba(9, 84, 65, 0.46);
}

.tcg-card.is-winner {
    border-color: rgba(255, 214, 100, 0.92);
    box-shadow: 0 0 0 2px rgba(255, 214, 100, 0.34), 0 16px 32px rgba(140, 109, 13, 0.42);
}

.tcg-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.tcg-player {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.tcg-avatar {
    width: 24px;
    height: 24px;
}

.tcg-name {
    font-weight: 700;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tcg-pts {
    font-weight: 700;
    color: #a7fff0;
    white-space: nowrap;
    font-size: 0.88rem;
}

.tcg-art {
    min-height: 158px;
    border-radius: 12px;
    border: 1px solid rgba(180, 213, 255, 0.28);
    background: linear-gradient(160deg, rgba(23, 42, 72, 0.85), rgba(11, 20, 38, 0.92));
    overflow: hidden;
}

.avatar-lg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 0;
}

.tcg-text {
    min-height: 84px;
    border-radius: 10px;
    border: 1px solid rgba(144, 176, 215, 0.28);
    background: rgba(8, 15, 26, 0.55);
    color: #e6f1ff;
    line-height: 1.4;
    padding: 10px;
    font-size: 0.92rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.tcg-empty {
    color: rgba(180, 199, 225, 0.82);
    font-style: italic;
}

.tcg-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tcg-role {
    font-size: 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.06);
}

.tcg-state {
    font-size: 0.78rem;
    color: #95f4dc;
}

.cf-vote-actions {
    display: grid;
    gap: 10px;
}

.side-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.games-shell {
    max-width: 1500px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 20px) 16px 42px;
    position: relative;
}

.games-bg-layer {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: var(--games-bg-image, none);
    background-size: cover;
    background-position: center;
    filter: blur(8px) saturate(1.06) brightness(0.78);
    transform: scale(1.05);
    transition: background-image 420ms ease;
}

.games-bg-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 8% 12%, rgba(77, 173, 255, 0.24) 0%, rgba(77, 173, 255, 0) 44%),
        radial-gradient(circle at 78% 18%, rgba(38, 188, 153, 0.26) 0%, rgba(38, 188, 153, 0) 44%),
        linear-gradient(180deg, rgba(10, 18, 34, 0.26) 0%, rgba(10, 18, 34, 0.62) 100%);
}

.games-card,
.games-center-panel,
.games-hero-panel,
.host-dock-wrap,
.side-panel,
.landing-hero {
    border: 1px solid var(--games-border);
    box-shadow: var(--games-shadow);
    border-radius: 18px;
    background: var(--games-surface);
    backdrop-filter: blur(14px);
    color: var(--games-text);
}

.games-card {
    padding: 16px;
}

.games-kicker {
    font-size: 0.86rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--games-muted);
    margin: 0 0 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--games-border);
    font-size: 0.72rem;
    line-height: 1;
}

.badge.alpha {
    border-color: rgba(248, 173, 35, 0.58);
    background: rgba(248, 173, 35, 0.16);
    color: #f4b646;
}

.host-join-strip {
    border: 1px solid var(--games-border);
    border-radius: 14px;
    background: rgba(69, 169, 255, 0.08);
    padding: 12px;
    margin-bottom: 12px;
    display: grid;
    gap: 8px;
}

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

.host-join-strip .games-kicker {
    margin: 0;
}

.join-code-large {
    font-size: clamp(1.8rem, 4.2vw, 2.8rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-family: "JetBrains Mono", monospace;
    color: var(--games-text);
}

.join-strip-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.copy-status-chip {
    min-height: 24px;
    border-radius: 999px;
    padding: 3px 9px;
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    border: 1px solid rgba(28, 174, 144, 0.5);
    background: rgba(28, 174, 144, 0.16);
    color: var(--games-text);
}

.join-input-label {
    color: var(--games-muted);
    font-size: 0.85rem;
}

.join-link-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--games-border);
    border-radius: 11px;
    padding: 10px 12px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.95rem;
    background: var(--games-surface-strong);
    color: var(--games-text);
}

.join-link-input:focus {
    outline: none;
    border-color: var(--games-accent);
    box-shadow: 0 0 0 3px rgba(28, 174, 144, 0.2);
}

.games-btn {
    min-height: 44px;
    border: 1px solid var(--games-border);
    background: var(--games-surface-strong);
    color: var(--games-text);
    border-radius: 11px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}

.games-btn:hover,
.games-btn:focus-visible {
    border-color: var(--games-accent);
    box-shadow: 0 0 0 3px rgba(28, 174, 144, 0.2);
    transform: translateY(-1px);
    outline: none;
}

.games-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.games-btn-primary {
    background: linear-gradient(140deg, rgba(28, 174, 144, 0.24), rgba(69, 169, 255, 0.26));
    border-color: rgba(28, 174, 144, 0.52);
}

.games-btn-danger {
    border-color: rgba(222, 67, 87, 0.5);
    color: var(--games-danger);
}

.ghost-btn {
    background: transparent;
}

.games-form input,
.games-form textarea,
.games-form select,
.games-select-lg,
.games-center-panel input,
.games-center-panel textarea,
.games-center-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--games-border);
    border-radius: 11px;
    padding: 10px 12px;
    background: var(--games-surface-strong);
    color: var(--games-text);
    font-size: 1rem;
    font-family: inherit;
}

.games-form textarea,
.games-center-panel textarea {
    min-height: 102px;
    resize: vertical;
}

.games-form input:focus,
.games-form textarea:focus,
.games-form select:focus,
.games-center-panel input:focus,
.games-center-panel textarea:focus,
.games-center-panel select:focus {
    outline: none;
    border-color: var(--games-accent);
    box-shadow: 0 0 0 3px rgba(28, 174, 144, 0.2);
}

.games-form {
    display: grid;
    gap: 9px;
}

.games-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.games-alert {
    border: 1px solid rgba(222, 67, 87, 0.42);
    background: rgba(222, 67, 87, 0.12);
    color: #a71f34;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

body.games-light-default:not(.light-mode) .games-alert {
    color: #ffd0d6;
}

.games-note {
    color: var(--games-muted);
    line-height: 1.5;
}

.games-inline-error {
    margin: 2px 0 0;
    color: var(--games-danger);
    font-size: 0.9rem;
    line-height: 1.35;
}

.games-input-hint {
    margin: 0;
    color: var(--games-muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.games-waiting-note {
    margin: 0;
    color: var(--games-muted);
}

.games-room-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 14px;
}

.games-hero-panel {
    grid-column: 1 / -1;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.hero-left h1 {
    margin: 0 0 8px;
    font-size: clamp(1.4rem, 1.9vw, 2rem);
}

.hero-subline {
    margin: 0;
    color: var(--games-muted);
}

.hero-badges {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.phase-badge {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(69, 169, 255, 0.42);
    background: rgba(69, 169, 255, 0.2);
    letter-spacing: 0.04em;
    font-weight: 600;
}

.hero-right {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.countdown-ring {
    width: 102px;
    height: 102px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, var(--games-surface-strong) 56%, transparent 57%),
        conic-gradient(from -90deg, rgba(28, 174, 144, 0.92) var(--ring-progress, 100%), rgba(140, 158, 188, 0.22) var(--ring-progress, 100%));
    border: 1px solid var(--games-border);
}

.countdown-ring span {
    font-weight: 700;
    font-size: 1.05rem;
}

.countdown-ring[data-level='warn'] {
    background:
        radial-gradient(circle at center, var(--games-surface-strong) 56%, transparent 57%),
        conic-gradient(from -90deg, rgba(248, 173, 35, 0.95) var(--ring-progress, 100%), rgba(140, 158, 188, 0.22) var(--ring-progress, 100%));
}

.countdown-ring[data-level='danger'] {
    background:
        radial-gradient(circle at center, var(--games-surface-strong) 56%, transparent 57%),
        conic-gradient(from -90deg, rgba(222, 67, 87, 0.95) var(--ring-progress, 100%), rgba(140, 158, 188, 0.22) var(--ring-progress, 100%));
}

.hero-progress {
    margin: 0;
    color: var(--games-muted);
    text-align: center;
    min-height: 18px;
}

.host-dock-wrap {
    grid-column: 1 / -1;
    position: sticky;
    top: calc(var(--nav-h) + 10px);
    z-index: 12;
    padding: 8px 10px;
    display: grid;
    gap: 8px;
}

.host-dock {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dock-btn {
    min-height: 38px;
    height: 38px;
    border: 1px solid var(--games-border);
    background: var(--games-surface-strong);
    color: var(--games-text);
    border-radius: 10px;
    padding: 0 12px;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.dock-btn:hover,
.dock-btn:focus-visible {
    border-color: var(--games-accent);
    box-shadow: 0 0 0 2px rgba(28, 174, 144, 0.2);
    outline: none;
}

.dock-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dock-primary {
    background: linear-gradient(140deg, rgba(28, 174, 144, 0.26), rgba(69, 169, 255, 0.22));
}

.dock-danger {
    border-color: rgba(222, 67, 87, 0.52);
    color: var(--games-danger);
    background: rgba(222, 67, 87, 0.06);
}

.host-chip-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.host-chip-strip .chip {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--games-border);
    background: rgba(95, 124, 166, 0.14);
    color: var(--games-text);
    font-size: 0.78rem;
    line-height: 1;
}

.host-chip-strip .chip.phase {
    border-color: rgba(69, 169, 255, 0.42);
    background: rgba(69, 169, 255, 0.16);
}

.host-chip-strip .chip.timer {
    border-color: rgba(28, 174, 144, 0.42);
    background: rgba(28, 174, 144, 0.16);
}

.host-chip-strip .chip.neutral {
    border-color: rgba(122, 145, 177, 0.46);
    background: rgba(122, 145, 177, 0.16);
}

.games-center-panel {
    grid-column: 1;
    padding: 20px;
    display: grid;
    gap: 10px;
    min-height: 280px;
    animation: panel-in .35s ease;
}

.integrity-meter-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(69, 169, 255, 0.3);
    border-radius: 11px;
    padding: 9px 11px;
    background: rgba(17, 32, 57, 0.3);
}

.integrity-label,
.integrity-value {
    font-size: 0.82rem;
    color: var(--games-muted);
    white-space: nowrap;
}

.integrity-meter {
    height: 10px;
    border-radius: 999px;
    border: 1px solid var(--games-border);
    background: rgba(119, 146, 177, 0.18);
    overflow: hidden;
}

.integrity-meter > span {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #29dba7 0%, #58b1ff 55%, #f7b138 85%, #e04a60 100%);
    transform-origin: left center;
    transition: transform .3s ease;
}

.neural-scene {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.neural-card {
    border: 1px solid rgba(104, 158, 222, 0.36);
    border-radius: 12px;
    padding: 12px;
    background: rgba(9, 16, 31, 0.48);
}

.neural-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.neural-feed-list {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 210px;
    overflow-y: auto;
    display: grid;
    gap: 6px;
}

.neural-feed-list li {
    border: 1px solid var(--games-border);
    border-radius: 8px;
    padding: 6px 8px;
    color: var(--games-text);
    font-size: 0.86rem;
    line-height: 1.35;
    background: rgba(255, 255, 255, 0.05);
}

.neural-suspect {
    margin: 0 0 8px;
    font-weight: 600;
    color: var(--games-accent-2);
}

.neural-prompts,
.neural-answers {
    display: grid;
    gap: 6px;
}

.neural-prompts p,
.neural-answers p {
    margin: 0;
    border: 1px solid var(--games-border);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 0.86rem;
}

.reveal-card {
    border-color: rgba(222, 67, 87, 0.46);
    background: rgba(41, 10, 24, 0.48);
    grid-column: 1 / -1;
}

.neural-reveal-sub {
    margin: 0 0 8px;
    color: #ffc2ce;
}

.neural-evidence-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.neural-evidence-list li {
    border: 1px solid rgba(222, 67, 87, 0.38);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 0.86rem;
}

.vcjt-scene {
    display: grid;
    gap: 10px;
}

.vcjt-card {
    border: 1px solid rgba(170, 181, 204, 0.34);
    border-radius: 12px;
    padding: 12px;
    background: rgba(12, 17, 30, 0.5);
}

.vcjt-card h3 {
    margin: 0 0 8px;
}

.vcjt-accused {
    margin: 0 0 8px;
    color: #ffdda9;
    font-weight: 600;
}

.vcjt-evidence-list,
.vcjt-lines {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.vcjt-evidence-list li,
.vcjt-lines li {
    border: 1px solid var(--games-border);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 0.86rem;
}

.vcjt-split-bar {
    margin: 8px 0 10px;
    display: flex;
    border: 1px solid var(--games-border);
    border-radius: 999px;
    overflow: hidden;
    min-height: 28px;
}

.vcjt-split-bar span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    white-space: nowrap;
    color: #f7fbff;
}

.vcjt-split-bar span:first-child {
    background: rgba(222, 67, 87, 0.75);
}

.vcjt-split-bar span:last-child {
    background: rgba(44, 170, 122, 0.75);
}

.verdict-card {
    border-color: rgba(224, 74, 96, 0.5);
}

.vcjt-stamp {
    min-height: 52px;
    border: 2px dashed rgba(224, 74, 96, 0.6);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 1.2rem;
    margin-bottom: 8px;
    text-align: center;
    color: #ffd3dc;
    text-transform: uppercase;
    animation: stamp-pulse 0.4s ease;
}

.vcjt-stamp[data-verdict='not_guilty'] {
    border-color: rgba(44, 170, 122, 0.62);
    color: #cbffe4;
}

.vcjt-verdict-subtitle {
    margin: 0 0 8px;
    color: #f7d2d8;
}

@keyframes stamp-pulse {
    0% {
        transform: scale(0.88) rotate(-2deg);
        opacity: 0.3;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes panel-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prompt-main {
    margin: 0;
    font-size: clamp(1.08rem, 1.6vw, 1.3rem);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.prompt-sub {
    margin: 0;
    color: var(--games-muted);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.fallback-note {
    border: 1px solid rgba(122, 145, 177, 0.48);
    background: rgba(122, 145, 177, 0.14);
    border-radius: 11px;
    padding: 10px;
    color: var(--games-text);
}

.games-form-stack {
    display: grid;
    gap: 9px;
}

.vote-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--games-border);
    border-radius: 11px;
    padding: 10px;
}

.vote-row p {
    margin: 0;
    color: var(--games-text);
}

.wait-card {
    border: 1px solid rgba(28, 174, 144, 0.5);
    border-radius: 14px;
    padding: 12px;
    background: rgba(28, 174, 144, 0.12);
}

.wait-card p {
    margin: 6px 0 0;
    color: var(--games-muted);
}

.wait-countdown {
    font-weight: 600;
}

.side-panel {
    grid-column: 2;
    align-self: start;
}

.games-alert.is-neutral {
    border-color: rgba(122, 145, 177, 0.48);
    background: rgba(122, 145, 177, 0.12);
    color: var(--games-text);
}

.roster-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.roster {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.roster-row {
    min-height: 52px;
    border: 1px solid var(--games-border);
    border-radius: 11px;
    padding: 7px 10px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) minmax(0, auto) auto;
    grid-template-areas: "avatar name state action";
    align-items: center;
    gap: 8px;
}

.roster-avatar {
    grid-area: avatar;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roster-name-block {
    grid-area: name;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.roster-name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.roster-meta-line {
    min-width: 0;
    color: var(--games-muted);
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roster-state {
    grid-area: state;
    display: grid;
    justify-items: end;
    align-content: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
}

.roster-action {
    grid-area: action;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.roster-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

.roster-state .score {
    color: var(--games-accent);
    font-weight: 700;
    white-space: nowrap;
}

.avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--games-border);
}

.bot-badge {
    font-size: 0.74rem;
    color: var(--games-muted);
}

.status-chip {
    font-size: 0.75rem;
    border-radius: 999px;
    padding: 4px 8px;
    border: 1px solid var(--games-border);
    background: rgba(69, 169, 255, 0.12);
    color: var(--games-text);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bot-chip {
    border-color: rgba(173, 208, 255, 0.44);
    background: rgba(114, 170, 255, 0.17);
}

.accordion-panel .scroll .roster,
.accordion-panel .scroll > ul {
    max-height: none;
    overflow: visible;
    list-style: none;
    margin: 0;
    padding: 0;
}

.roster-action .games-icon-btn {
    white-space: nowrap;
}

.status-submitted,
.status-voted {
    border-color: rgba(28, 174, 144, 0.5);
    background: rgba(28, 174, 144, 0.16);
}

.status-in_interrogation {
    border-color: rgba(222, 67, 87, 0.5);
    background: rgba(222, 67, 87, 0.18);
}

.status-watching_interrogation {
    border-color: rgba(69, 169, 255, 0.52);
    background: rgba(69, 169, 255, 0.18);
}

.status-defending {
    border-color: rgba(224, 74, 96, 0.56);
    background: rgba(224, 74, 96, 0.2);
}

.status-listening {
    border-color: rgba(180, 189, 212, 0.52);
    background: rgba(180, 189, 212, 0.14);
}

.status-jury_voting {
    border-color: rgba(248, 173, 35, 0.56);
    background: rgba(248, 173, 35, 0.16);
}

.status-idle {
    border-color: rgba(248, 173, 35, 0.5);
    background: rgba(248, 173, 35, 0.14);
}

.status-disconnected {
    border-color: rgba(222, 67, 87, 0.45);
    background: rgba(222, 67, 87, 0.13);
}

.roster-row.is-idle {
    opacity: 0.85;
}

.roster-row.is-disconnected {
    opacity: 0.58;
}

.roster-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.roster-feed li {
    border: 1px solid var(--games-border);
    border-radius: 10px;
    padding: 8px 10px;
    display: grid;
    gap: 2px;
}

.feed-time {
    color: var(--games-muted);
    font-size: 0.75rem;
}

.feed-text {
    color: var(--games-text);
    font-size: 0.9rem;
}

.feed-empty {
    color: var(--games-muted);
}

.host-bot-controls {
    display: grid;
    gap: 8px;
}

.accordion {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.accordion-trigger {
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: var(--games-text);
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion-trigger::after {
    content: '+';
    color: var(--games-accent);
    font-size: 1.2rem;
}

.accordion.is-open .accordion-trigger::after {
    content: '-';
}

.accordion-panel {
    display: none;
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    height: auto;
}

.accordion.is-open .accordion-panel {
    display: block;
}

.accordion-panel .scroll {
    max-height: min(46vh, 360px);
    overflow-y: auto;
    overflow-x: hidden;
}

.games-scoreboard,
.games-leaderboard {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.games-scoreboard li,
.games-leaderboard li {
    min-height: 44px;
    border: 1px solid var(--games-border);
    border-radius: 11px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
}

.games-scoreboard .name,
.games-leaderboard .name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.games-scoreboard .score,
.games-leaderboard .score {
    color: var(--games-accent);
    font-weight: 700;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--games-border);
    background: linear-gradient(140deg, rgba(69, 169, 255, 0.22), rgba(28, 174, 144, 0.2));
    font-size: 0.82rem;
    font-weight: 700;
}

.games-icon-btn {
    min-height: 36px;
    min-width: 54px;
    border: 1px solid var(--games-border);
    border-radius: 9px;
    background: transparent;
    color: var(--games-text);
    cursor: pointer;
}

.floating-scoreboard {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: min(1200px, calc(100% - 18px));
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--games-border);
    background: rgba(14, 20, 34, 0.8);
    backdrop-filter: blur(12px);
    z-index: 50;
}

.score-pill {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    border-radius: 10px;
    border: 1px solid rgba(160, 180, 208, 0.32);
    background: rgba(255, 255, 255, 0.08);
    color: #e9f0fc;
    padding: 7px 10px;
}

.score-pill .name {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.games-debug-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
}

.host-auth-banner {
    grid-column: 1 / -1;
    border-color: rgba(222, 67, 87, 0.5);
    background: rgba(222, 67, 87, 0.12);
}

.rules-ol {
    list-style: none;
    counter-reset: rules;
    margin: 0;
    padding: 0;
}

.rules-ol li {
    counter-increment: rules;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    border: 1px solid var(--games-border);
    border-radius: 10px;
    padding: 9px 10px;
    margin-bottom: 8px;
    line-height: 1.45;
}

.rules-ol li::before {
    content: counter(rules);
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(28, 174, 144, 0.2);
    color: var(--games-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.games-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 380;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.games-sheet-backdrop.open {
    display: flex;
    pointer-events: auto;
}

.games-sheet-backdrop[hidden] {
    display: none !important;
    pointer-events: none !important;
}

.games-sheet {
    width: min(520px, 100%);
    max-height: 70vh;
    overflow: auto;
    border-radius: 14px;
    border: 1px solid var(--games-border);
    background: var(--games-surface-strong);
    color: var(--games-text);
    box-shadow: var(--games-shadow);
    padding: 14px;
    display: grid;
    gap: 10px;
}

.games-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sheet-close {
    min-width: 44px;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid var(--games-border);
    background: transparent;
    color: var(--games-text);
    cursor: pointer;
}

.games-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 600;
    border: 1px solid var(--games-border);
    border-radius: 10px;
    background: var(--games-surface-strong);
    color: var(--games-text);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    box-shadow: var(--games-shadow);
}

.games-toast[data-type='error'] {
    border-color: rgba(222, 67, 87, 0.54);
}

body.modal-open {
    overflow: hidden;
}

.landing-hero {
    padding: 26px;
    margin-bottom: 14px;
}

.featured-game-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
    min-height: 190px;
    padding: 0;
}

.featured-game-bg {
    filter: blur(1px) saturate(1.1);
}

.featured-game-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 22px;
    background: linear-gradient(115deg, rgba(6, 13, 25, 0.72) 0%, rgba(6, 13, 25, 0.48) 58%, rgba(10, 17, 34, 0.72) 100%);
    color: #f4f8ff;
}

.featured-game-content h2 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 2.3vw, 2.1rem);
}

.featured-game-content p {
    margin: 0;
    color: rgba(236, 244, 255, 0.92);
}

.landing-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 2.8vw, 2.8rem);
}

.landing-hero p {
    margin: 0 0 10px;
    color: var(--games-muted);
}

.hero-actions {
    margin-top: 8px;
}

.gbtn {
    min-height: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.gbtn:hover,
.gbtn:focus-visible {
    border-color: rgba(28, 174, 144, 0.48);
    box-shadow: 0 0 0 3px rgba(28, 174, 144, 0.2);
    transform: translateY(-1px);
    outline: none;
}

.gbtn-primary {
    border-color: rgba(0, 255, 140, 0.35);
    background: rgba(0, 255, 140, 0.1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.gbtn.is-disabled,
.gbtn[aria-disabled='true'] {
    opacity: 0.55;
    cursor: not-allowed;
    border-style: dashed;
    transform: none;
}

.gbtn.is-disabled:hover,
.gbtn.is-disabled:focus-visible,
.gbtn[aria-disabled='true']:hover,
.gbtn[aria-disabled='true']:focus-visible {
    box-shadow: none;
    transform: none;
}

.gbtn-ghost {
    background: transparent;
}

.gbtn-live {
    position: relative;
}

.gbtn-live::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 30%, rgba(0, 255, 140, 0.22), rgba(0, 255, 140, 0) 60%);
    filter: blur(10px);
    opacity: 0.8;
    pointer-events: none;
}

@keyframes gbtnPulse {
    0%, 100% { transform: translateZ(0); }
    50% { transform: translateZ(0) scale(1.02); }
}

.gbtn-live {
    animation: gbtnPulse 2.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .gbtn-live {
        animation: none;
    }
}

.landing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.leaderboard-podium h2,
.quick-rules h2 {
    margin-top: 0;
}

.podium-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.podium-list li {
    border: 1px solid var(--games-border);
    border-radius: 12px;
    min-height: 44px;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}

.podium-list .rank {
    font-weight: 700;
    color: var(--games-accent-2);
}

.podium-1 .rank { color: #d4a622; }
.podium-2 .rank { color: #8fa1b7; }
.podium-3 .rank { color: #bf7a45; }

.landing-games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.game-thumb {
    overflow: hidden;
    padding: 0;
    position: relative;
    min-height: 170px;
}

.game-card {
    display: flex;
    flex-direction: column;
}

.featured-game-content,
.thumb-content {
    display: flex;
    flex-direction: column;
}

.game-card .game-card-cta {
    margin-top: auto;
    display: flex;
    justify-content: center;
    padding-top: 14px;
}

.game-card-cta .gbtn {
    min-width: 210px;
    justify-content: center;
}

.court-card .thumb-content::before {
    content: "Court is in session";
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid rgba(224, 74, 96, 0.5);
    background: rgba(224, 74, 96, 0.18);
    color: #ffd8de;
    font-size: 0.74rem;
    margin-bottom: 8px;
}

.thumb-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(2px) saturate(1.05);
    transform: scale(1.05);
}

.thumb-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 16px;
    background: linear-gradient(180deg, rgba(11, 17, 30, 0.18) 0%, rgba(11, 17, 30, 0.7) 100%);
    color: #f3f8ff;
}

.thumb-content h3 {
    margin: 0 0 8px;
}

.thumb-content p {
    margin: 0;
    color: rgba(240, 248, 255, 0.9);
}

.gmodal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
    padding: 12px;
    align-items: center;
    justify-content: center;
}

.gmodal.open {
    display: flex;
}

.gmodal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}

.gmodal-panel {
    position: relative;
    max-width: 860px;
    max-height: min(92dvh, 720px);
    margin: 0;
    width: calc(100% - 24px);
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(14, 20, 30, 0.78);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    color: #eaf2ff;
}

.gmodal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 10px;
}

.gmodal-kicker {
    color: var(--games-muted);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gmodal-head h2 {
    margin: 4px 0 0;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.gicon-btn {
    min-height: 44px;
    min-width: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    cursor: pointer;
}

.gmodal-body {
    padding: 0 16px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.gpm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    padding: 12px 0 10px;
}

.gpm-tile {
    text-align: left;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 14px;
    cursor: pointer;
    min-height: 78px;
    color: inherit;
}

.gpm-tile.is-disabled,
.gpm-tile[aria-disabled='true'] {
    opacity: 0.55;
    cursor: not-allowed;
    border-style: dashed;
}

.gpm-tile .gpm-title {
    margin: 0 0 6px;
    font-weight: 700;
}

.gpm-tile .gpm-sub {
    font-size: 0.9rem;
    color: var(--games-muted);
}

.gpm-tile.is-selected {
    border-color: rgba(0, 255, 140, 0.45);
    background: rgba(0, 255, 140, 0.08);
    box-shadow: 0 0 0 1px rgba(0, 255, 140, 0.15) inset;
}

.gpm-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: rgba(14, 20, 30, 0.92);
    padding: 12px 0 0;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.gpm-selected {
    color: var(--games-muted);
}

.gpm-actions {
    display: flex;
    gap: 10px;
}

body.light-mode .gmodal-backdrop {
    background: rgba(0, 0, 0, 0.25);
}

body.light-mode .gmodal-panel {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(0, 0, 0, 0.1);
    color: #101318;
}

body.light-mode .gpm-foot {
    background: rgba(255, 255, 255, 0.94);
}

body.light-mode .gpm-tile {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .gbtn {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
}

body.light-mode .gbtn-primary {
    border-color: rgba(0, 160, 90, 0.35);
    background: rgba(0, 160, 90, 0.1);
}

@media (max-width: 640px) {
    .gpm-actions .gpm-start-btn {
        display: none;
    }
}

.thumb-ai_card_forge,
.thumb-bg.thumb-ai_card_forge { background-image: url('/static/img/games/card_forge/banner.svg'); }
.thumb-ai_lie_detector,
.thumb-bg.thumb-ai_lie_detector { background-image: url('/static/games/bg/ai_lie_detector.svg'); }
.thumb-ai_neural_infiltration,
.thumb-bg.thumb-ai_neural_infiltration { background-image: url('/static/games/bg/neural_infiltration.svg'); }
.thumb-ai_confessional,
.thumb-bg.thumb-ai_confessional { background-image: url('/static/games/bg/ai_confessional.svg'); }
.thumb-ai_caption_clash,
.thumb-bg.thumb-ai_caption_clash { background-image: url('/static/games/bg/ai_caption_clash.svg'); }
.thumb-ai_roast_battle,
.thumb-bg.thumb-ai_roast_battle { background-image: url('/static/games/bg/ai_roast_battle.svg'); }
.thumb-ai_wyr_remix,
.thumb-bg.thumb-ai_wyr_remix { background-image: url('/static/games/bg/ai_wyr_remix.svg'); }
.thumb-vc_jury_trial,
.thumb-bg.thumb-vc_jury_trial { background-image: url('/static/games/bg/vc_jury_trial.svg'); }

.games-table-wrap { overflow: auto; }
.games-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.games-table th,
.games-table td {
    border-bottom: 1px solid var(--games-border);
    padding: 8px;
    text-align: left;
    vertical-align: top;
}
.games-table .fingerprint {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.games-stat {
    border: 1px solid var(--games-border);
    border-radius: 12px;
    padding: 12px;
}
.games-stat .label {
    display: block;
    color: var(--games-muted);
    font-size: 0.88rem;
}
.games-stat strong {
    color: var(--games-text);
    font-size: 1.3rem;
}

@media (max-width: 1024px) {
    .games-room-stage {
        grid-template-columns: 1fr;
    }

    .host-dock-wrap {
        position: static;
    }

    .games-center-panel,
    .side-panel {
        grid-column: 1;
    }

    .landing-games-grid {
        grid-template-columns: 1fr 1fr;
    }

    .neural-scene {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .games-shell {
        padding: calc(var(--nav-h) + 12px) 10px 20px;
    }

    .games-hero-panel {
        grid-template-columns: 1fr;
    }

    .hero-right {
        justify-items: start;
    }

    .host-dock {
        gap: 6px;
    }

    .host-chip-strip .chip {
        min-height: 28px;
    }

    .join-strip-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-grid,
    .landing-games-grid {
        grid-template-columns: 1fr;
    }

    .featured-game-content {
        padding: 14px;
    }

    .game-card-cta .gbtn {
        width: 100%;
        min-width: 0;
    }

    .gmodal-panel {
        width: calc(100% - 12px);
        max-height: 92dvh;
    }

    .gpm-foot {
        flex-direction: column;
        align-items: stretch;
    }

    .gpm-actions {
        display: flex;
        gap: 10px;
    }

    .gpm-actions .gbtn {
        width: 100%;
    }

    .games-sheet-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .games-sheet {
        width: 100%;
        border-radius: 16px 16px 0 0;
        border-bottom: 0;
    }

    .floating-scoreboard {
        bottom: 8px;
        width: calc(100% - 10px);
    }

    .games-debug-grid {
        grid-template-columns: 1fr;
    }

    .roster {
        max-height: 280px;
    }
}

@media (max-width: 480px) {
    .games-card,
    .games-center-panel,
    .games-hero-panel,
    .landing-hero {
        padding: 12px;
        border-radius: 14px;
    }

    .games-scoreboard li,
    .games-leaderboard li,
    .podium-list li {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .podium-list .meta,
    .games-scoreboard .kick-slot {
        display: none;
    }

    .roster-state {
        gap: 5px;
    }

    .roster-row {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        grid-template-areas:
            "avatar name action"
            "avatar state action";
        align-items: start;
    }

    .roster-state {
        justify-items: start;
    }

    .roster-chips {
        justify-content: flex-start;
    }

    .status-chip {
        font-size: 0.7rem;
        padding: 3px 6px;
    }

    .join-strip-actions {
        grid-template-columns: 1fr;
    }

    .join-link-input {
        font-size: 0.9rem;
    }
}
