@font-face {
    font-family: 'Tinos';
    src: url('/static/tinos-regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Tinos';
    src: url('/static/tinos-bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Jersey 10';
    src: url('/static/jersey-10.ttf') format('truetype');
    font-weight: 400;
    font-display: block;
}

:root {
    --room: #07060f;
    --panel: #120f28;
    --text: #efeaff;
    --muted: #a7a0d6;
    --faint: #6f68a3;
    --cyan: #22d3ee;
    --pink: #ff4fa3;
    --green: #3df58c;
    --yellow: #fde047;
    --orange: #fb923c;
    --purple: #8b5cf6;
    --discord: #5865f2;
    --font: 'Tinos', Georgia, 'Times New Roman', serif;
    --pixel: 'Jersey 10', 'Tinos', Georgia, serif;
    --neon: #22d3ee;
    --neon-soft: rgba(34, 211, 238, 0.35);
    --paint: #1c1839;
}

.game-1 {
    --neon: #3df58c;
    --neon-soft: rgba(61, 245, 140, 0.35);
    --paint: #11683c;
}

.game-2 {
    --neon: #22d3ee;
    --neon-soft: rgba(34, 211, 238, 0.35);
    --paint: #0e6f80;
}

.game-3 {
    --neon: #a3e635;
    --neon-soft: rgba(163, 230, 53, 0.35);
    --paint: #4d7c0f;
}

.game-4 {
    --neon: #fde047;
    --neon-soft: rgba(253, 224, 71, 0.35);
    --paint: #b88a07;
}

.game-5 {
    --neon: #fb923c;
    --neon-soft: rgba(251, 146, 60, 0.35);
    --paint: #b45309;
}

.game-6 {
    --neon: #ff4fa3;
    --neon-soft: rgba(255, 79, 163, 0.35);
    --paint: #a3195b;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    background: var(--room);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font: 17px/1.5 var(--font);
    background-color: var(--room);
    background-image:
        radial-gradient(1000px 520px at 50% -160px, rgba(139, 92, 246, 0.38), transparent 70%),
        linear-gradient(rgba(7, 6, 15, 0.58), rgba(7, 6, 15, 0.82)),
        url('/static/pattern.svg');
    background-size: auto, auto, 450px 600px;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

input,
textarea {
    -webkit-user-select: text;
    user-select: text;
}

a {
    color: inherit;
}

h1, h2, p {
    margin: 0;
}

button, input {
    font-family: var(--font);
}

:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.logo {
    width: 34px;
    height: 34px;
    flex: none;
}

.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 30px 22px 70px;
}

.page.hall {
    max-width: 1680px;
}

.page.game {
    max-width: none;
    padding: 10px 22px 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font: 700 19px/1 var(--font);
    text-decoration: none;
    cursor: pointer;
}

.btn:disabled {
    opacity: 0.6;
    cursor: progress;
}

.btn.primary {
    color: #052029;
    background: radial-gradient(120% 130% at 50% 0%, #b6f6ff 0%, #22d3ee 45%, #0891b2 100%);
    box-shadow: 0 5px 0 #0e5f74, 0 0 24px rgba(34, 211, 238, 0.55);
}

.btn.primary:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #0e5f74, 0 0 18px rgba(34, 211, 238, 0.5);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 2px #3b3470;
}

.btn.ghost:hover {
    box-shadow: inset 0 0 0 2px var(--cyan), 0 0 16px rgba(34, 211, 238, 0.35);
}

.btn.discord {
    background: radial-gradient(120% 130% at 50% 0%, #9aa3ff 0%, #5865f2 50%, #3c45c9 100%);
    box-shadow: 0 5px 0 #2f379e, 0 0 24px rgba(88, 101, 242, 0.55);
}

.gate {
    min-height: 72vh;
    display: grid;
    place-items: center;
}

.gate-card {
    width: min(100%, 420px);
    padding: 36px 30px 34px;
    text-align: center;
    background: rgba(18, 15, 40, 0.94);
    border: 2px solid rgba(255, 79, 163, 0.65);
    border-radius: 24px;
    box-shadow: 0 0 20px rgba(255, 79, 163, 0.35), inset 0 0 20px rgba(255, 79, 163, 0.12);
}

.gate-card .logo {
    display: block;
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
}

.gate-card h1 {
    color: #ffe4f3;
    font: 700 36px/1.1 var(--font);
    text-shadow: 0 0 6px var(--pink), 0 0 18px var(--pink);
}

.gate-card p {
    margin-top: 10px;
    color: var(--muted);
}

.gate-card .btn {
    margin-top: 24px;
}

.gate-card form {
    margin: 0;
}

.notice {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 79, 163, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 79, 163, 0.5);
    color: #ffd0e6 !important;
}

.hero {
    display: grid;
    justify-items: center;
    gap: 26px;
    margin: 6px 0 42px;
}

.player {
    width: min(100%, 360px);
}

.player-card {
    container-type: inline-size;
    position: relative;
    width: 100%;
    aspect-ratio: 1.586;
    overflow: hidden;
    border-radius: 12px;
    color: #f4e6c4;
    background:
        repeating-radial-gradient(circle at 104% -8%, rgba(240, 200, 110, 0.075) 0 1px, transparent 1.5px 6px),
        radial-gradient(130% 120% at 100% 0%, rgba(231, 184, 79, 0.16), transparent 55%),
        linear-gradient(150deg, #1d1b26 0%, #0b0a10 58%, #17141f 100%);
    box-shadow: 0 18px 34px -16px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(240, 200, 110, 0.38), inset 0 1px 0 rgba(255, 240, 200, 0.35), 0 0 24px rgba(231, 184, 79, 0.12);
}

.player-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(118deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.035) 30%, transparent 44%);
    pointer-events: none;
}

.card-face {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 6cqw 6.6cqw 5.6cqw;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3cqw;
}

.card-brand {
    min-width: 0;
}

.card-brand strong,
.card-kind,
.card-money strong {
    background: linear-gradient(180deg, #fff3c4 0%, #f2cd72 42%, #b07a26 62%, #f6d888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card-brand strong {
    display: block;
    font: 700 6.4cqw/1 var(--font);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    white-space: nowrap;
}

.card-brand span {
    display: block;
    margin-top: 1.5cqw;
    color: #cfc6b0;
    font-size: max(9px, 2.9cqw);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.card-kind {
    flex: none;
    margin: 0;
    font: 700 max(8px, 2.5cqw)/1.3 var(--font);
    letter-spacing: 0.22em;
    text-align: right;
    text-transform: uppercase;
}

.card-member {
    display: flex;
    align-items: center;
    gap: 4cqw;
    margin: auto 0;
}

.card-member img {
    width: 17cqw;
    height: 17cqw;
    flex: none;
    border-radius: 3.6cqw;
    box-shadow: 0 0 0 0.5cqw #e9c46a, 0 0 0 1cqw rgba(0, 0, 0, 0.6);
}

.card-who {
    min-width: 0;
}

.card-label {
    display: block;
    color: rgba(240, 205, 120, 0.75);
    font: 700 max(8px, 2.3cqw)/1 var(--font);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.card-name {
    margin: 1.2cqw 0 0;
    overflow: hidden;
    color: #f5f1ea;
    font: 700 6.2cqw/1.1 var(--font);
    white-space: nowrap;
    text-overflow: ellipsis;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8), 0 -1px 0 rgba(255, 255, 255, 0.2);
}

.card-since {
    display: flex;
    align-items: baseline;
    gap: 1.6cqw;
    margin: 1.6cqw 0 0;
    font-size: max(10px, 3.2cqw);
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 3cqw;
}

.card-money {
    margin: 0;
}

.card-money strong {
    display: block;
    margin-top: 1cqw;
    font: 700 5.6cqw/1 var(--font);
}

.card-site {
    margin: 0;
    color: rgba(240, 205, 120, 0.7);
    font-size: max(9px, 2.6cqw);
    letter-spacing: 0.16em;
}

.quit {
    margin: 0;
}

.quit button {
    padding: 4px 6px;
    border: 0;
    color: var(--muted);
    background: none;
    font: 700 16px/1 var(--font);
    cursor: pointer;
}

.quit button:hover {
    color: #ffd0e6;
    text-shadow: 0 0 10px var(--pink);
}

.hero .quit {
    order: -1;
    justify-self: end;
    margin: -14px 0 -12px;
}

@media (min-width: 1200px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
    }

    .hero .neon-sign {
        grid-column: 2;
        grid-row: 1;
    }

    .hero .player {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .hero .player-card {
        transform: rotate(-3deg);
    }

    .hero .quit {
        order: 0;
        grid-column: 3;
        grid-row: 1;
        align-self: start;
        margin: 0;
    }
}

.neon-sign {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.28em;
    padding: 16px 34px 20px;
    border: 3px solid #f5b8ff;
    border-radius: 26px;
    box-shadow: 0 0 6px #e879f9, 0 0 22px rgba(192, 38, 211, 0.8), inset 0 0 14px rgba(192, 38, 211, 0.6);
    font: 700 clamp(40px, 8vw, 76px)/1.05 var(--font);
    letter-spacing: 0.01em;
    animation: sign-on 1.7s ease-out both, sign-buzz 11s 2.5s infinite;
}

@keyframes sign-on {
    0% {
        opacity: 0.12;
    }
    9% {
        opacity: 1;
    }
    13% {
        opacity: 0.15;
    }
    21% {
        opacity: 0.85;
    }
    25% {
        opacity: 0.2;
    }
    38% {
        opacity: 1;
    }
    43% {
        opacity: 0.45;
    }
    52%,
    100% {
        opacity: 1;
    }
}

@keyframes sign-buzz {
    0%,
    93%,
    100% {
        opacity: 1;
    }
    94% {
        opacity: 0.4;
    }
    95% {
        opacity: 1;
    }
    96.5% {
        opacity: 0.6;
    }
    97.5% {
        opacity: 1;
    }
}

.glow {
    padding: 0 0.04em 0.06em;
    color: transparent;
    background: linear-gradient(90deg, #ffc2e2 0%, #e4d0ff 50%, #b5f5ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 5px rgba(255, 79, 163, 0.8)) drop-shadow(0 0 16px rgba(192, 132, 252, 0.6)) drop-shadow(0 0 30px rgba(34, 211, 238, 0.45));
}

.games {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
    gap: 60px 26px;
    padding-bottom: 24px;
}

.games .cabinet::after {
    content: '';
    position: absolute;
    left: 4%;
    right: 4%;
    bottom: -16px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--neon-soft), transparent);
    pointer-events: none;
}

.cab-art {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    font-family: var(--font);
}

.cab-line {
    fill: #05040b;
    stroke: #05040b;
    stroke-width: 8;
    stroke-linejoin: round;
}

.cab-paint {
    fill: var(--paint);
}

.cab-trim {
    fill: none;
    stroke: var(--neon);
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.cabinet.later .cab-trim {
    stroke-opacity: 0.4;
}

.cab-glow {
    stop-color: var(--neon);
}

.cabinet.later .cab-glow {
    stop-color: #8b5cf6;
}

.games .cabinet.live .cab-art {
    filter: drop-shadow(0 0 12px var(--neon-soft));
    transition: filter 0.2s ease;
}

.games .cabinet.live:hover .cab-art {
    filter: drop-shadow(0 0 24px var(--neon));
}

.games .cabinet .cab-art,
.games .cabinet::after {
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.games .cabinet.locked {
    pointer-events: none;
    cursor: default;
}

.games .cabinet.locked .cab-art {
    filter: brightness(0.6) saturate(0.75);
}

.games .cabinet.live.locked .cab-art {
    filter: brightness(0.6) saturate(0.75) drop-shadow(0 0 8px var(--neon-soft));
}

.games .cabinet.locked::after {
    opacity: 0.4;
}

.cab-name {
    fill: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-anchor: middle;
}

.cabinet.live .cab-name {
    filter: drop-shadow(0 0 2px var(--neon)) drop-shadow(0 0 6px var(--neon));
}

.cabinet.later .cab-name {
    fill: var(--neon);
    fill-opacity: 0.6;
}

.cabinet.later .cab-game {
    opacity: 0.22;
    filter: grayscale(0.7);
}

.cab-hi {
    fill: #fef9c3;
    font-size: 8.5px;
    font-weight: 700;
}

.cab-playing {
    fill: #dcfce7;
    font-size: 8.5px;
    font-weight: 700;
    text-anchor: end;
    animation: blink 1.2s steps(2, start) infinite;
}

.cab-playing,
.cab-resume,
.cabinet.playing .cab-play {
    display: none;
}

.cabinet.playing .cab-playing,
.cabinet.playing .cab-resume {
    display: inline;
}

@keyframes blink {
    to {
        visibility: hidden;
    }
}

.cab-off rect {
    fill: rgba(7, 6, 15, 0.85);
    stroke: #3b3470;
}

.cab-off text {
    fill: var(--muted);
    font-size: 9.5px;
    font-weight: 700;
    text-anchor: middle;
}

.cab-slot {
    fill: #05040b;
    stroke: #fb923c;
    stroke-width: 1.2;
}

.cab-tokens {
    fill: #fed7aa;
    font-family: var(--pixel);
    font-size: 13.5px;
    font-weight: 400;
    text-anchor: middle;
}

.cab-cta rect {
    fill: #22d3ee;
}

.cab-cta text {
    fill: #052029;
    font-size: 9px;
    font-weight: 700;
    text-anchor: middle;
}

@media (max-width: 1299px) {
    .games {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 759px) {
    .games {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 439px) {
    .games {
        grid-template-columns: minmax(0, 1fr);
    }
}

.cabinet {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
}

.marquee {
    display: grid;
    place-items: center;
    min-height: 66px;
    padding: 8px 12px;
    border-radius: 16px;
    background: radial-gradient(120% 150% at 50% 0%, rgba(255, 255, 255, 0.12), transparent 60%), #0d0b1e;
    box-shadow: inset 0 0 0 1px var(--neon-soft), inset 0 0 22px var(--neon-soft);
}

.marquee span {
    color: #ffffff;
    font: 700 31px/1 var(--font);
    letter-spacing: 0.02em;
    text-shadow: 0 0 2px #ffffff, 0 0 9px var(--neon), 0 0 20px var(--neon), 0 0 38px var(--neon);
}

.screen {
    padding: 10px;
    border-radius: 18px;
    background: #0f0d1d;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), inset 0 10px 20px rgba(0, 0, 0, 0.6);
}

.stage::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 3px);
    pointer-events: none;
}

.deck {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 22px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(8, 6, 20, 0.5), rgba(8, 6, 20, 0.72));
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.09), 0 6px 0 rgba(0, 0, 0, 0.35);
}

.coin {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #0d0b1e;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.slot {
    width: 10px;
    height: 28px;
    flex: none;
    border-radius: 4px;
    background: #05040b;
    box-shadow: 0 0 0 2px var(--orange), 0 0 14px rgba(251, 146, 60, 0.65);
}

.cabinet.big .coin {
    position: relative;
}

.slot.hit {
    animation: slot-hit 0.6s ease-out;
}

@keyframes slot-hit {
    30% {
        background: #7a4a10;
        box-shadow: 0 0 0 2px var(--yellow), 0 0 24px rgba(253, 224, 71, 0.95);
    }
}

.coin-chute {
    position: absolute;
    z-index: 2;
    width: 30px;
    height: 64px;
    overflow: hidden;
    pointer-events: none;
}

.coin-drop {
    position: absolute;
    top: 0;
    left: 2px;
    width: 26px;
    height: 26px;
    animation: coin-fall 0.6s cubic-bezier(0.55, 0, 0.9, 0.45) forwards;
}

.coin-drop::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, #fff3b0 0%, #fbbf24 45%, #b45309 100%);
    box-shadow: inset 0 0 0 2px #b45309, inset 0 0 0 5px rgba(255, 243, 176, 0.5);
    animation: coin-turn 0.32s 0.06s ease-in-out forwards;
}

@keyframes coin-turn {
    to {
        transform: scaleX(0.28);
    }
}

@keyframes coin-fall {
    0% {
        transform: translateY(-4px);
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    100% {
        transform: translateY(70px);
        opacity: 1;
    }
}

.tv {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    overflow: hidden;
    border-radius: 18px;
    pointer-events: none;
}

.tv.on {
    display: block;
    animation: tv-dark 1s ease-out forwards;
}

.tv.on::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    background: #e0fbff;
    box-shadow: 0 0 22px #e0fbff, 0 0 44px var(--cyan);
    animation: tv-line 1s ease-out forwards;
}

@keyframes tv-dark {
    0%,
    45% {
        background: #000000;
    }
    100% {
        background: transparent;
    }
}

@keyframes tv-line {
    0% {
        transform: scaleX(0);
    }
    28% {
        top: 50%;
        height: 4px;
        margin-top: -2px;
        transform: scaleX(1);
        opacity: 1;
    }
    50% {
        top: 0;
        height: 100%;
        margin-top: 0;
        transform: scaleX(1);
        opacity: 0.85;
    }
    100% {
        top: 0;
        height: 100%;
        margin-top: 0;
        transform: scaleX(1);
        opacity: 0;
    }
}

.arena {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.cabinet.big {
    container: cabinet / inline-size;
    order: -1;
    display: flex;
    flex-direction: column;
    width: min(100%, 620px);
    gap: 8px;
    padding: 12px 12px 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, 0.3)), var(--paint);
    border-radius: 24px 24px 12px 12px;
    box-shadow: 0 0 0 2px var(--neon), 0 0 22px var(--neon-soft), 0 26px 50px -26px var(--neon-soft), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cabinet.big .marquee {
    min-height: 48px;
    padding: 4px 12px;
    border-radius: 12px;
}

.cabinet.big .marquee span {
    font-size: 34px;
}

.cabinet.big .screen {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.cabinet.big .hud {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-around;
    gap: 4px 18px;
    padding: 5px 14px 6px;
    border-radius: 10px;
}

.cabinet.big .stat {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    min-width: max-content;
}

.cabinet.big .stat .label {
    font: 400 17px/1 var(--pixel);
    letter-spacing: 0.08em;
}

.cabinet.big .stat strong {
    font: 400 31px/1 var(--pixel);
    letter-spacing: 0.02em;
}

.cabinet.big .hearts {
    margin-top: 3px;
}

.cabinet.big .deck.controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    padding: 8px 16px;
}

.cabinet.big .coin-door {
    display: flex;
    justify-content: center;
}

.cabinet.big .coin {
    gap: 16px;
    min-height: 0;
    padding: 9px 20px;
    background: #07060f;
    box-shadow: inset 0 0 0 1.5px rgba(251, 146, 60, 0.55), inset 0 3px 8px rgba(0, 0, 0, 0.7);
}

.credits {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 30px;
    padding: 0 11px;
    border-radius: 8px;
    background: #040208;
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.4), inset 0 2px 6px rgba(0, 0, 0, 0.85);
}

.credits span {
    color: rgba(254, 215, 170, 0.75);
    font: 400 17px/1 var(--pixel);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.credits strong {
    min-width: 3.6ch;
    color: #fed7aa;
    font: 400 27px/1 var(--pixel);
    text-align: center;
    text-shadow: 0 0 6px rgba(251, 146, 60, 0.9), 0 0 14px rgba(251, 146, 60, 0.5);
}

.wall {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(100%, 340px);
}

.wall-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.wall.right .wall-top {
    justify-content: flex-end;
}

.back {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    color: #f5d0fe;
    background: rgba(7, 6, 15, 0.85);
    box-shadow: inset 0 0 0 2px #e879f9, 0 0 14px rgba(232, 121, 249, 0.35);
    font: 700 16px/1 var(--font);
    text-decoration: none;
    white-space: nowrap;
}

.back:hover {
    color: #ffffff;
    box-shadow: inset 0 0 0 2px #f5b8ff, 0 0 22px rgba(232, 121, 249, 0.6);
}

.wall .player {
    width: 100%;
}

.wall .scores {
    padding: 16px 18px 18px;
    border-radius: 14px;
    box-shadow: inset 0 0 0 2px #fde047, 0 0 20px rgba(253, 224, 71, 0.3), inset 0 0 22px rgba(253, 224, 71, 0.1);
}

.wall .scores h2 {
    color: #fef9c3;
    text-shadow: 0 0 2px #ffffff, 0 0 9px var(--yellow), 0 0 22px var(--yellow);
}

.wall .scores li:nth-child(1) span {
    color: #fde047;
}

.wall .scores li:nth-child(2) span {
    color: #e2e8f0;
}

.wall .scores li:nth-child(3) span {
    color: #fdba74;
}

.hud {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #07060f;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.stat {
    min-width: 0;
}

.stat .label {
    display: block;
    color: var(--faint);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.stat strong {
    display: block;
    color: #ffffff;
    font: 700 25px/1.15 var(--font);
    white-space: nowrap;
}

.stat.score strong {
    color: #e0fbff;
    text-shadow: 0 0 8px var(--cyan);
}

.stat.combo strong {
    color: #ffe4f3;
    text-shadow: 0 0 8px var(--pink);
}

.stat.bump strong {
    animation: glow 0.45s ease;
}

.stat.time strong {
    min-width: 2ch;
    text-align: center;
}

.stat.time.low strong {
    color: #fecaca;
    text-shadow: 0 0 8px #ef4444;
    animation: time-low 0.5s ease-in-out infinite alternate;
}

@keyframes time-low {
    to {
        opacity: 0.55;
    }
}

@keyframes glow {
    40% {
        text-shadow: 0 0 6px #ffffff, 0 0 18px var(--pink), 0 0 32px var(--pink);
    }
}

.hearts {
    display: flex;
    gap: 4px;
    margin-top: 5px;
}

.hearts svg {
    width: 21px;
    height: 21px;
    fill: var(--pink);
    filter: drop-shadow(0 0 6px rgba(255, 79, 163, 0.7));
}

.hearts svg.lost {
    fill: #2f2a5c;
    filter: none;
}

.hearts.many {
    gap: 2px;
}

.hearts.many svg {
    width: 15px;
    height: 15px;
}

.cabinet.big .screen {
    padding: 12px;
}

.stage {
    container: stage / size;
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 18px;
    touch-action: none;
    user-select: none;
}

.stage canvas {
    display: block;
    border-radius: 18px;
}

.overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: clamp(6px, 3cqmin, 18px);
    border-radius: 18px;
    background: rgba(7, 6, 15, 0.7);
    backdrop-filter: blur(3px);
}

.sheet {
    width: min(100%, 400px);
    padding: clamp(10px, 4.5cqmin, 24px) clamp(10px, 4cqmin, 22px);
    text-align: center;
    background: rgba(13, 11, 30, 0.95);
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px var(--neon-soft), 0 0 26px var(--neon-soft);
}

.sheet.small {
    width: min(100%, 320px);
    padding: clamp(10px, 3cqmin, 16px) clamp(12px, 3.5cqmin, 18px);
}

.sheet > :first-child {
    margin-top: 0 !important;
}

.sheet h2 {
    color: #ffffff;
    font: 700 clamp(18px, 7cqmin, 36px)/1.1 var(--font);
    text-shadow: 0 0 6px var(--neon), 0 0 18px var(--neon);
}

.sheet p {
    margin-top: clamp(4px, 1.6cqmin, 10px);
    color: var(--muted);
}

.sheet .btn {
    min-height: clamp(34px, 10cqmin, 50px);
    padding: 0 clamp(12px, 4cqmin, 28px);
    font-size: clamp(14px, 3.6cqmin, 19px);
}

.field {
    display: block;
    margin-top: clamp(10px, 3.2cqmin, 18px);
    text-align: left;
}

.field span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.field input {
    width: 100%;
    min-height: clamp(36px, 8.5cqmin, 46px);
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    color: var(--text);
    font: 700 17px/1 var(--font);
    background: #07060f;
    box-shadow: inset 0 0 0 1px #3b3470;
}

.field input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--cyan), 0 0 14px rgba(34, 211, 238, 0.35);
}

.error {
    color: #ffd0e6 !important;
    font-weight: 700;
}

.actions {
    margin-top: clamp(8px, 3.6cqmin, 20px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(6px, 2cqmin, 12px);
}

.big-score {
    margin-top: 6px !important;
    color: #e0fbff !important;
    font: 400 clamp(30px, 15cqmin, 80px)/1 var(--pixel);
    text-shadow: 0 0 10px var(--cyan), 0 0 26px var(--cyan);
}

.gain {
    margin-top: 4px !important;
    color: #fef9c3 !important;
    font-size: clamp(14px, 3.8cqmin, 21px);
    font-weight: 700;
    text-shadow: 0 0 8px var(--yellow);
}

.count {
    color: #e0fbff;
    font: 400 clamp(80px, 36cqmin, 190px)/1 var(--pixel);
    text-shadow: 0 0 12px var(--cyan), 0 0 36px var(--cyan);
    animation: count-tick 1s ease-out forwards;
}

@keyframes count-tick {
    0% {
        opacity: 0;
        transform: scale(1.8);
    }
    22% {
        opacity: 1;
        transform: scale(0.94);
    }
    34% {
        transform: scale(1);
    }
    80% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.55);
    }
}

.count.go {
    color: #fef9c3;
    text-shadow: 0 0 12px var(--yellow), 0 0 36px var(--yellow);
    animation: go-pop 0.75s ease-out forwards;
}

.overlay.going {
    overflow: hidden;
    pointer-events: none;
    animation: veil-lift 0.3s ease-out forwards;
}

@keyframes go-pop {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    20% {
        opacity: 1;
        transform: scale(1.15);
    }
    34% {
        transform: scale(1);
    }
    60% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0;
        transform: scale(2.3);
    }
}

@keyframes veil-lift {
    to {
        background: rgba(7, 6, 15, 0);
        backdrop-filter: blur(0);
    }
}

.net {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 3;
    transform: translateX(-50%);
    padding: 6px 14px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 700;
    background: rgba(255, 79, 163, 0.9);
}

.deck.controls {
    justify-content: center;
    padding: 14px;
}

.pad {
    display: grid;
    grid-template-columns: repeat(3, 70px);
    grid-template-rows: repeat(2, 58px);
    gap: 10px;
}

.pad button {
    position: relative;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 16px;
    color: var(--cyan);
    background: radial-gradient(120% 120% at 50% 0%, #4b437f, #2a2552);
    box-shadow: 0 5px 0 #0b0919, inset 0 1px 0 rgba(255, 255, 255, 0.16);
    cursor: pointer;
    touch-action: none;
}

.pad button:active,
.pad button.pressed {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #0b0919, 0 0 18px rgba(34, 211, 238, 0.6);
}

.pad svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.7));
}

.pad .key {
    position: absolute;
    right: 6px;
    bottom: 4px;
    color: rgba(165, 243, 252, 0.8);
    font: 400 16px/1 var(--pixel);
    text-transform: uppercase;
    pointer-events: none;
}

.pad .pad-bomb .key {
    right: 0;
    bottom: 9px;
    left: 0;
    color: rgba(255, 247, 237, 0.92);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-align: center;
}

.pad-up {
    grid-column: 2;
    grid-row: 1;
}

.pad-left {
    grid-column: 1;
    grid-row: 2;
}

.pad-left svg {
    transform: rotate(-90deg);
}

.pad-down {
    grid-column: 2;
    grid-row: 2;
}

.pad-down svg {
    transform: rotate(180deg);
}

.pad-right {
    grid-column: 3;
    grid-row: 2;
}

.pad-right svg {
    transform: rotate(90deg);
}

.pad.two {
    grid-template-columns: repeat(2, 110px);
    grid-template-rows: 64px;
}

.cabinet.big .pad.two {
    grid-template-columns: repeat(2, 110px);
    grid-template-rows: 64px;
}

.pad.two .pad-left,
.pad.two .pad-right {
    grid-row: 1;
}

.pad.two .pad-left {
    grid-column: 1;
}

.pad.two .pad-right {
    grid-column: 2;
}

.cabinet.big .deck.controls.round-deck {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    gap: 12px 16px;
}

.pad.round {
    display: contents;
}

.pad.round .arrows {
    display: grid;
    grid-template-columns: repeat(3, 56px);
    grid-template-rows: repeat(2, 54px);
    gap: 8px;
}

@container cabinet (min-width: 500px) {
    .cabinet.big .deck.controls.round-deck {
        grid-template-columns: 1fr auto 1fr;
        justify-content: normal;
    }

    .pad.round .arrows {
        grid-template-columns: repeat(3, 52px);
        grid-template-rows: repeat(2, 38px);
        gap: 6px;
        justify-self: center;
    }

    .pad.round .arrows svg {
        width: 22px;
        height: 22px;
    }
}

.pad .pad-bomb,
.pad .pad-press {
    position: relative;
    align-self: center;
    justify-self: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 28%, #ffb08a, #f0532a 48%, #9a1f0b);
    box-shadow: 0 6px 0 #4a0f05, inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 0 22px rgba(251, 146, 60, 0.45);
}

.pad .pad-bomb:active,
.pad .pad-bomb.pressed {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #4a0f05, inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 0 28px rgba(251, 146, 60, 0.85);
}

.cabinet.big .pad .pad-bomb svg {
    width: 38px;
    height: 38px;
    fill: #170d24;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
    transform: translateY(-7px);
}

.pad .pad-press {
    background: radial-gradient(circle at 50% 28%, #fff7c2, #facc15 48%, #a16207);
    box-shadow: 0 6px 0 #4d3304, inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 0 22px rgba(253, 224, 71, 0.45);
}

.pad .pad-press:active,
.pad .pad-press.pressed {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #4d3304, inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 0 30px rgba(253, 224, 71, 0.9);
}

.cabinet.big .pad .pad-press svg {
    width: 36px;
    height: 36px;
    fill: #1d1405;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.4));
    transform: translateY(-7px);
}

.pad-press .base {
    fill: #3b2a08;
}

.pad-press .shine {
    fill: rgba(255, 255, 255, 0.55);
}

.pad .pad-press .key {
    right: 0;
    bottom: 9px;
    left: 0;
    color: #2b1d03;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-align: center;
}

.pad.digits {
    grid-template-columns: repeat(4, 64px);
    grid-template-rows: repeat(2, 52px);
}

.cabinet.big .pad.digits {
    grid-template-columns: repeat(4, 64px);
    grid-template-rows: repeat(2, 48px);
    gap: 8px;
}

.pad .pad-digit {
    color: #e0fbff;
    font: 400 34px/1 var(--pixel);
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
}

.pad .pad-digit:disabled {
    color: rgba(167, 160, 214, 0.35);
    text-shadow: none;
    background: #1d1938;
    box-shadow: 0 5px 0 #0b0919, inset 0 1px 0 rgba(255, 255, 255, 0.05);
    cursor: default;
}

.pad-bomb .fuse {
    stroke: #fde68a;
}

.pad-bomb .shine {
    fill: rgba(255, 255, 255, 0.42);
}

.bomb-count {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 14px;
    color: #fde68a;
    font: 400 24px/28px var(--pixel);
    text-align: center;
    background: #0b0918;
    box-shadow: 0 0 0 2px #fb923c, 0 0 10px rgba(251, 146, 60, 0.6);
    pointer-events: none;
}

.door-icon {
    display: block;
    margin-top: 3px;
}

.door-icon svg {
    display: block;
    width: 27px;
    height: 27px;
    fill: #2f2a5c;
}

.door-icon .door-wood {
    fill: #221d47;
}

.door-icon .door-knob {
    fill: #3b3570;
}

.stat.door.found .door-icon svg {
    fill: #fdba74;
    filter: drop-shadow(0 0 6px rgba(251, 146, 60, 0.85));
}

.stat.door.found .door-wood {
    fill: #c2410c;
}

.stat.door.found .door-knob {
    fill: #fde047;
}

.stat.door.bump .door-icon svg {
    animation: door-glow 0.7s ease;
}

@keyframes door-glow {
    40% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 4px #ffffff) drop-shadow(0 0 16px #fb923c);
    }
}

.sheet .level-bonus {
    margin-top: 6px;
    color: #fef08a;
    font: 400 clamp(34px, 12cqmin, 64px)/1 var(--pixel);
    text-shadow: 0 0 10px var(--yellow), 0 0 24px var(--yellow);
}

@media (hover: none) and (pointer: coarse) {
    .pad .key {
        display: none;
    }

    .cabinet.big .pad .pad-bomb svg {
        transform: none;
    }
}

.scores {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px 16px;
    border-radius: 12px;
    background: #07060f;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.scores h2 {
    margin: 0;
    color: #ffffff;
    font: 400 36px/1 var(--pixel);
    letter-spacing: 0.02em;
    text-align: center;
    text-shadow: 0 0 2px #ffffff, 0 0 9px var(--neon), 0 0 20px var(--neon);
}

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

.scores li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: baseline;
    font: 400 25px/1.05 var(--pixel);
    letter-spacing: 0.02em;
}

.scores .place {
    color: var(--faint);
    text-align: left;
}

.scores .who {
    overflow: hidden;
    color: var(--text);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.scores .pts {
    color: #e0fbff;
}

.scores li.me span {
    color: #fef9c3;
    text-shadow: 0 0 6px var(--yellow);
}

.scores li.gap,
.scores li.empty {
    display: block;
    color: var(--faint);
    text-align: center;
}

@media (max-width: 979px) {
    .cabinet.big .deck.controls {
        flex-direction: column;
        gap: 12px;
    }

    .wall.right {
        display: contents;
    }

    .wall.right .chat {
        order: -1;
        width: min(100%, 620px);
        margin-top: 0;
    }

    .wall.right .wall-top,
    .wall.right .player {
        width: min(100%, 340px);
    }
}

@media (min-width: 980px) {
    .arena {
        --wall: clamp(240px, 19vw, 370px);
        --board: max(300px, min(760px, calc(100vh - 358px), calc(100vw - 2 * var(--wall) - 190px)));
        --cabinet: max(calc(var(--board) + 40px), min(660px, calc(100vw - 2 * var(--wall) - 150px)));
        display: grid;
        grid-template-columns: var(--wall) auto var(--wall);
        justify-content: center;
        align-items: start;
        gap: 36px;
    }

    .cabinet.big {
        order: 0;
        width: var(--cabinet);
    }

    .cabinet.big .stage {
        width: min(100%, var(--board));
        margin: 0 auto;
    }

    .pad.round .arrows {
        grid-template-columns: repeat(3, 52px);
        grid-template-rows: repeat(2, 38px);
        gap: 6px;
    }

    .wall {
        width: 100%;
        gap: 0;
    }

    .wall.right {
        align-self: stretch;
    }

    .wall.right .chat {
        flex: 1 1 auto;
    }

    .wall.right .messages {
        flex: 1 1 0;
        height: auto;
        min-height: 220px;
        contain: size;
    }

    .wall-top {
        min-height: 68px;
    }

    .wall .player-card {
        transform: rotate(2deg);
    }

    .cabinet.big .pad {
        grid-template-columns: repeat(3, 52px);
        grid-template-rows: repeat(2, 38px);
        gap: 6px;
    }

    .cabinet.big .pad svg {
        width: 22px;
        height: 22px;
    }

    .cabinet.big .pad.two {
        grid-template-columns: repeat(2, 84px);
        grid-template-rows: 44px;
        gap: 10px;
    }

}

@media (max-width: 560px) {
    .page {
        padding: 22px 14px 48px;
    }

    .page.game {
        padding-top: 12px;
    }

    .neon-sign {
        padding: 12px 20px 16px;
    }

    .cabinet.big {
        padding: 12px 12px 16px;
    }

    .cabinet.big .marquee {
        min-height: 64px;
    }

    .cabinet.big .marquee span {
        font-size: 34px;
    }

    .stat strong {
        font-size: 21px;
    }

    .cabinet.big .screen {
        padding: 8px;
    }

    .pad {
        grid-template-columns: repeat(3, 78px);
        grid-template-rows: repeat(2, 62px);
    }

}

.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    flex: none;
    border-radius: 50%;
    background: #ff3b5c;
    box-shadow: 0 0 0 0 rgba(255, 59, 92, 0.7), 0 0 10px rgba(255, 59, 92, 0.9);
    animation: live-pulse 1.6s ease-out infinite;
}

@keyframes live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 92, 0.7), 0 0 10px rgba(255, 59, 92, 0.9);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 59, 92, 0), 0 0 10px rgba(255, 59, 92, 0.9);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 92, 0), 0 0 10px rgba(255, 59, 92, 0.9);
    }
}

.live-games {
    width: min(100%, 1180px);
    margin: 22px auto 46px;
    padding: 16px 18px 18px;
    border-radius: 14px;
    background: rgba(7, 6, 15, 0.82);
    box-shadow: inset 0 0 0 2px #ff6b8a, 0 0 22px rgba(255, 79, 139, 0.25), inset 0 0 22px rgba(255, 79, 139, 0.08);
}

.live-games h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: #ffe4ec;
    font: 400 30px/1 var(--pixel);
    letter-spacing: 0.02em;
    text-shadow: 0 0 2px #ffffff, 0 0 9px #ff4f8b, 0 0 20px #ff4f8b;
}

.live-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.live-list .empty {
    grid-column: 1 / -1;
    color: var(--faint);
    font: 400 22px/1.2 var(--pixel);
}

.live-game {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    background: #0b0918;
    box-shadow: inset 0 0 0 2px var(--neon), 0 0 14px var(--neon-soft);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

a.live-game:hover,
a.live-game:focus-visible {
    box-shadow: inset 0 0 0 2px var(--neon), 0 0 24px var(--neon-soft), inset 0 0 18px var(--neon-soft);
}

.live-game img {
    grid-row: 1 / 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--neon);
}

.live-who {
    display: flex;
    flex-direction: column;
    min-width: 0;
    grid-row: 1 / 3;
}

.live-who strong {
    overflow: hidden;
    font: 700 16px/1.2 var(--font);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.live-title {
    color: var(--neon);
    font: 700 13px/1.3 var(--font);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.live-score {
    color: #fef9c3;
    font: 400 24px/1 var(--pixel);
    text-align: right;
}

.live-eye {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    color: var(--muted);
    font: 400 18px/1 var(--pixel);
}

.live-eye svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
    padding: 14px 14px 16px;
    border-radius: 14px;
    background: #07060f;
    box-shadow: inset 0 0 0 2px #22d3ee, 0 0 18px rgba(34, 211, 238, 0.25), inset 0 0 20px rgba(34, 211, 238, 0.08);
}

.chat h2 {
    margin: 0;
    color: #e0fbff;
    font: 400 30px/1 var(--pixel);
    letter-spacing: 0.02em;
    text-align: center;
    text-shadow: 0 0 2px #ffffff, 0 0 9px var(--cyan), 0 0 20px var(--cyan);
}

.watchers {
    margin: 0;
    color: var(--muted);
    font: 700 14px/1.35 var(--font);
    text-align: center;
}

.watchers span {
    color: #a5f3fc;
}

.messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: min(440px, 60vh);
    margin: 0;
    padding: 8px 10px;
    overflow-y: auto;
    border-radius: 10px;
    list-style: none;
    background: #0d0b1f;
    box-shadow: inset 0 0 0 1px #2a2552;
    scrollbar-width: thin;
    scrollbar-color: #3b3470 transparent;
}

.messages li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: 8px;
    font: 400 15px/1.35 var(--font);
    overflow-wrap: anywhere;
}

.messages .who {
    color: #a5f3fc;
    font-weight: 700;
}

.messages .when {
    color: var(--faint);
    font: 400 17px/1 var(--pixel);
    white-space: nowrap;
}

.messages .text {
    grid-column: 1 / -1;
}

.messages .announce {
    display: block;
    color: var(--muted);
    font-style: italic;
}

.messages .announce .who {
    font-style: normal;
}

.crown {
    width: 16px;
    height: 12px;
    margin-right: 5px;
    vertical-align: -1px;
    overflow: visible;
    filter: drop-shadow(0 0 3px rgba(253, 224, 71, 0.55));
}

.crown path {
    fill: #fde047;
    stroke: #b45309;
    stroke-width: 1.1;
    stroke-linejoin: round;
}

.crown .band {
    fill: none;
    stroke: #b45309;
    stroke-width: 1.3;
}

.messages .player .who {
    color: #fde047;
}

.say {
    display: flex;
    gap: 8px;
}

.say input {
    flex: 1;
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    color: var(--text);
    font: 400 15px/1 var(--font);
    background: #0d0b1f;
    box-shadow: inset 0 0 0 1px #3b3470;
    user-select: text;
}

.say input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--cyan), 0 0 12px rgba(34, 211, 238, 0.35);
}

.say input:disabled {
    opacity: 0.55;
}

.say button {
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    color: #052029;
    font: 700 15px/1 var(--font);
    background: radial-gradient(120% 130% at 50% 0%, #b6f6ff 0%, #22d3ee 45%, #0891b2 100%);
    box-shadow: 0 3px 0 #0e5f74;
    cursor: pointer;
}

.say button:disabled {
    opacity: 0.45;
    cursor: default;
}

.chat-note {
    margin: 0;
    color: #ffd0e6;
    font: 700 14px/1.3 var(--font);
    text-align: center;
}

.ended {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(4, 3, 10, 0.78);
    backdrop-filter: blur(3px);
}

.ended[hidden] {
    display: none;
}

.ended-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: min(100%, 460px);
    padding: 30px 26px 28px;
    border-radius: 16px;
    background: #07060f;
    box-shadow: inset 0 0 0 2px #ff6b8a, 0 0 26px rgba(255, 79, 139, 0.35), inset 0 0 24px rgba(255, 79, 139, 0.08);
    text-align: center;
}

.ended-box h2 {
    margin: 0;
    color: #ffe4ec;
    font: 700 28px/1.2 var(--font);
    text-shadow: 0 0 2px #ffffff, 0 0 9px #ff4f8b, 0 0 20px #ff4f8b;
}

.watching-bar {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 96px;
    color: var(--muted);
    font: 700 16px/1.1 var(--font);
}

.live-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.watching-bar strong {
    overflow: hidden;
    color: #ffffff;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.live-word {
    color: #ff6b8a;
    font: 400 20px/1 var(--pixel);
    letter-spacing: 0.08em;
}

.cabinet.big.watching .pad button {
    opacity: 0.45;
    cursor: default;
    filter: saturate(0.6);
}

@media (prefers-reduced-motion: reduce) {
    .cabinet {
        transition: none;
    }

    .live-dot {
        animation: none;
    }

    .cab-playing,
    .stat.bump strong,
    .stat.time.low strong,
    .stat.door.bump .door-icon svg,
    .neon-sign,
    .slot.hit,
    .tv.on,
    .tv.on::before,
    .count,
    .count.go,
    .overlay.going {
        animation: none;
    }

    .tv.on,
    .coin-chute {
        display: none;
    }
}