:root {
    --bg: #0c0d0a;
    --panel: #14160f;
    --panel-2: #1b1e15;
    --ink: #f4f1e6;
    --muted: #a4a898;
    --line: rgba(244, 241, 230, 0.12);
    --lime: #dff25a;
    --lime-deep: #c6dc3a;
    --on-lime: #17190d;
    --coral: #ff6b4a;
    --gold: #e7c27a;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
    --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--sans);
    background:
        radial-gradient(1000px 520px at -10% -10%, rgba(223, 242, 90, 0.16), transparent 55%),
        radial-gradient(800px 480px at 110% 0%, rgba(231, 194, 122, 0.1), transparent 50%),
        var(--bg);
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--lime); color: var(--on-lime); }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 28px 8px;
    flex-wrap: wrap;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-family: var(--serif);
    font-size: 28px;
    letter-spacing: -0.04em;
    font-weight: 560;
}
.brand-word { display: inline-flex; align-items: center; }
.brand-aa {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 0.16em 0 0.18em;
    line-height: 1;
}
.brand-aa i {
    font-style: normal;
    font-size: 0.92em;
    line-height: 0.82;
    letter-spacing: 0;
    writing-mode: vertical-rl;
    text-orientation: sideways;
}
.brand:has(.brand-mark) { gap: 8px; }
.brand-mark { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; display: block; }
.brand em { font-style: italic; color: var(--lime); }
.nav { display: flex; gap: 6px; background: rgba(0, 0, 0, 0.25); padding: 4px; border-radius: 999px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.nav a.on, .nav a:hover { color: var(--ink); background: var(--panel); }
.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mint, .stack, .ghost, .play, .choice, .mod {
    border: 1px solid var(--line);
    background: transparent;
}
.mint {
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 12px;
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 999px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stack {
    display: flex;
    align-items: baseline;
    gap: 8px;
    background: var(--panel);
    border-radius: 999px;
    padding: 8px 14px;
}
.stack strong { font-family: var(--serif); font-size: 22px; font-weight: 560; color: var(--lime); }
button.stack { border: 0; font: inherit; color: inherit; cursor: pointer; }
.float-nav {
    position: fixed;
    top: 12px;
    right: 14px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.float-nav.show { opacity: 1; pointer-events: auto; transform: none; }
.nav-mini { padding: 3px; background: rgba(12, 13, 10, 0.92); border: 1px solid var(--line); }
.nav-mini a { padding: 5px 9px; font-size: 13px; }
.stack-mini { display: none; padding: 4px 10px; }
.stack-mini.show { display: flex; }
.stack-mini strong { font-size: 16px; }
.stack span, .kicker { color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; }
.ghost, .play, .mod, .choice {
    border-radius: 999px;
    padding: 10px 14px;
}
.ghost:hover, .mod:hover, .choice:hover { border-color: var(--lime); }
.page { width: min(1120px, calc(100% - 36px)); margin: 10px auto 72px; }
.hero { padding: 28px 0 18px; display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 24px; align-items: end; }
h1 {
    font-family: var(--serif);
    font-weight: 560;
    letter-spacing: -0.045em;
    font-size: clamp(48px, 7vw, 84px);
    line-height: 0.9;
    margin: 8px 0 12px;
}
.lede { font-size: 18px; max-width: 46ch; color: #ddd8c8; margin: 0; }
.note { color: var(--muted); font-size: 14px; }
.profile-tools { margin: 0 0 18px; }
.tape { display: flex; flex-direction: column; gap: 8px; }
.tape article {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(20, 22, 15, 0.8);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 14px;
}
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    min-height: 104px;
    padding: 0 18px 0 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 30%), var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-3px); border-color: rgba(223, 242, 90, 0.45); }
.card h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); margin: 0; letter-spacing: -0.04em; font-weight: 560; line-height: 0.95; }
.mark-mask { width: 112px; align-self: stretch; overflow: hidden; display: grid; place-items: center; flex: none; background: #10130c; }
.mark-mask svg { width: 92px; height: 92px; }

.game-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin: 18px 0; }
.game-head h1 { font-size: clamp(42px, 6vw, 68px); }
.back { color: var(--muted); }
.case-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: min(920px, 100%); margin: 0 auto 8px; }
.case-shelf { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.case-offer, .loot-card {
    background: #0c0e0a; border: 1px solid var(--line); border-radius: 18px; color: inherit;
}
.case-offer { width: 160px; padding: 16px 12px 14px; display: grid; justify-items: center; gap: 8px; }
.case-offer svg, .case-top svg, .case-offer img, .case-top img { width: 76px; height: 76px; object-fit: contain; }
.case-offer b, .case-top b { font-family: var(--serif); font-weight: 560; text-align: center; line-height: 1.15; }
.case-offer span, .case-price { color: var(--lime); font-weight: 700; }
.case-top { display: grid; justify-items: center; gap: 8px; margin-bottom: 16px; }
.case-top .back { justify-self: start; background: none; border: 0; padding: 0; }
.case-top b { font-size: 32px; }
.case-buy { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 16px 0; }
.case-buy .play { border-radius: 999px; }
.case-price { font-family: var(--serif); font-size: 22px; }
.case-loot { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; width: min(680px, 100%); margin: 0 auto; }
.loot-card { padding: 14px; display: grid; justify-items: center; gap: 4px; text-align: center; }
.loot-card svg, .loot-card img { width: 64px; height: 64px; object-fit: contain; }
.loot-card .meta { width: 100%; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.stage {
    min-height: 360px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(223, 242, 90, 0.08), transparent 55%),
        #10130c;
    box-shadow: inset 0 0 0 10px rgba(0, 0, 0, 0.18);
    display: grid;
    place-items: center;
    padding: 28px 18px 22px;
    position: relative;
    overflow: hidden;
}
.stage.case-stage { display: block; overflow: visible; min-height: 0; }
.dock {
    display: grid;
    grid-template-columns: 180px auto 1fr;
    gap: 12px;
    align-items: end;
    margin-top: 14px;
}
.dock.upgrade-dock { grid-template-columns: 180px 180px auto 1fr; }
.dock.plinko-dock .play { order: -1; grid-column: 1 / -1; justify-self: stretch; }
.stake { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stake input {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    font-size: 20px;
    letter-spacing: 0;
    text-transform: none;
}
.stake input:focus { outline: 2px solid var(--lime); border-color: transparent; }
.mods { display: flex; gap: 6px; }
.play {
    background: var(--lime);
    color: var(--on-lime);
    border: 0;
    font-weight: 700;
    font-size: 18px;
    padding: 14px 18px;
    justify-self: end;
    min-width: 160px;
}
.play:disabled { opacity: 0.45; cursor: wait; }
.choice.on { background: var(--lime); color: var(--on-lime); border-color: transparent; }
.choice:disabled { opacity: 0.4; cursor: not-allowed; }
.choices, .odds { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.result-line { min-height: 24px; color: var(--muted); }
.up { color: var(--lime); }
.down { color: var(--coral); }

.disc-wrap { width: 260px; height: 260px; position: relative; }
.pointer {
    position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
    border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 18px solid var(--gold);
    z-index: 3;
}
.disc { width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(var(--lime) 0 48%, #23271c 0); }
.hub {
    position: absolute; inset: 78px; border-radius: 50%; background: #10130c;
    display: grid; place-items: center; font-family: var(--serif); font-size: 28px; z-index: 2;
    border: 1px solid var(--line);
}
.pips { display: flex; gap: 6px; justify-content: center; min-height: 28px; margin-bottom: 8px; }
.pip { min-width: 36px; text-align: center; border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 700; background: var(--panel-2); }
.pip.hit { background: var(--lime); color: var(--on-lime); }

.dice-hero { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 96px; }
.dice-read { font-family: var(--serif); font-size: 92px; line-height: 0.9; letter-spacing: -0.05em; }
.die { width: 64px; height: 64px; perspective: 320px; opacity: 0; transform: scale(0.6); transition: opacity 0.16s ease, transform 0.16s ease; }
.die.rolling { opacity: 1; transform: none; }
.die-cube { width: 64px; height: 64px; position: relative; transform-style: preserve-3d; }
.die.rolling .die-cube { animation: dieTumble 0.38s linear infinite; }
.die-face {
    position: absolute; inset: 0; box-sizing: border-box; padding: 7px; border-radius: 10px;
    display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
    background: linear-gradient(160deg, #f6e7bf, #e7c27a); border: 1px solid #8a6428;
    backface-visibility: hidden;
}
.die-face i { width: 9px; height: 9px; border-radius: 50%; background: #17190d; justify-self: center; align-self: center; }
.die-face i.off { background: transparent; }
@keyframes dieTumble {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(270deg); }
}
.dice-modes { display: flex; justify-content: center; gap: 8px; margin: 14px 0; }
.track { position: relative; width: min(460px, 86%); height: 14px; margin: 0 auto; border-radius: 999px; background: #23271c; }
.dice-zone { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; border-radius: 999px; background: var(--lime); }
.dice-marker { position: absolute; top: -7px; left: 50%; width: 3px; height: 28px; border-radius: 2px; background: var(--ink); transform: translateX(-50%); }
.dice-sliders { position: relative; width: min(460px, 86%); height: 28px; margin: 16px auto 0; }
.dice-sliders::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 14px; border-radius: 999px; background: #23271c; }
.dice-sliders input[type="range"] {
    position: absolute; left: 0; top: 0; width: 100%; height: 28px; margin: 0;
    background: transparent; pointer-events: none; appearance: none;
}
.dice-sliders input[type="range"]::-webkit-slider-runnable-track { height: 14px; background: transparent; }
.dice-sliders input[type="range"]::-webkit-slider-thumb {
    appearance: none; pointer-events: auto; width: 18px; height: 18px; margin-top: -2px;
    border-radius: 50%; background: var(--lime); border: 2px solid #17190d; cursor: grab;
}
.dice-sliders input[type="range"]::-moz-range-track { height: 14px; background: transparent; border: 0; }
.dice-sliders input[type="range"]::-moz-range-thumb {
    pointer-events: auto; width: 18px; height: 18px; border-radius: 50%;
    background: var(--lime); border: 2px solid #17190d; cursor: grab;
}

.plinko-modes { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.plinko { position: relative; width: min(680px, 100%); height: 580px; margin: 0 auto; }
.peg { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #d9d3c2; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px rgba(217, 211, 194, 0.08); }
.ball {
    position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--coral);
    transform: translate(-50%, -50%); z-index: 2; box-shadow: 0 6px 10px rgba(0, 0, 0, 0.35);
}
.buckets { position: absolute; left: 8px; right: 8px; bottom: 0; display: flex; gap: 3px; }
.bucket {
    flex: 1; min-width: 0; text-align: center; font-size: 10px; font-weight: 700; line-height: 1.15;
    padding: 8px 0; border-radius: 7px; background: #1a1e16; color: var(--ink); white-space: nowrap;
    transition: background-color 0.35s ease, color 0.35s ease;
}
.bucket.hot { background: var(--lime); color: var(--on-lime); transition: none; }
.plinko-pop {
    position: absolute; z-index: 4; font-weight: 700; font-size: 14px; pointer-events: none;
    transform: translate(-50%, 0); animation: plinkoPop 0.9s ease-out forwards;
}
.plinko-pop.win { color: #b6f25a; }
.plinko-pop.lose { color: var(--coral); }
@keyframes plinkoPop {
    from { opacity: 1; transform: translate(-50%, 0); }
    to { opacity: 0; transform: translate(-50%, -42px); }
}

.case-window { position: relative; width: min(680px, 100%); height: 150px; overflow: hidden; border-radius: 18px; border: 1px solid rgba(223, 242, 90, 0.45); background: #0b0d09; }
.case-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--gold); z-index: 2; }
.case-track { position: absolute; top: 14px; left: 0; display: flex; gap: 10px; height: 122px; }
.case-card, .skin-tile {
    width: 100px; height: 122px; flex: 0 0 100px; border-radius: 12px; background: #171a12;
    border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    font-size: 12px;
}
.case-card svg, .skin-tile svg, .cell svg, .case-card img, .skin-tile img { width: 64px; height: 64px; object-fit: contain; }
.case-card b, .skin-tile b { font-size: 13px; }
.tone-dust { color: #c8c6b8; }
.tone-gloves { color: var(--lime); }
.tone-rifle { color: var(--gold); }
.tone-grail { color: var(--coral); }
.tone-scrap { color: #c4b49a; }
.tone-silver { color: #d5d8e0; }
.tone-coral { color: var(--coral); }
.tone-gold { color: var(--gold); }
.tone-lime { color: var(--lime); }
.tone-blue { color: #7eb6ff; }
.tone-violet { color: #c084fc; }
.tone-ember { color: #ff8a3c; }

.versus { width: min(680px, 100%); display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.fighter { min-height: 210px; border-radius: 22px; background: #0c0e0a; border: 1px solid var(--line); display: grid; place-items: center; text-align: center; padding: 16px; }
.fighter strong { display: block; font-family: var(--serif); font-size: 28px; }
.vs { color: var(--muted); letter-spacing: 0.14em; }

.wheel-layout { width: min(920px, 100%); display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: center; }
.wheel-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wheel-wrap { width: 300px; height: 300px; }
.wheel-canvas { width: 100%; height: 100%; border-radius: 50%; }
.wheel-clock { font-family: var(--serif); font-size: 40px; letter-spacing: -0.04em; }
.wheel-bets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wheel-bet {
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    text-align: left; border-radius: 16px; padding: 12px; background: #12140f;
    border: 1px solid var(--line); border-left: 4px solid var(--slice, var(--lime));
}
.wheel-bet b { font-family: var(--serif); font-size: 28px; letter-spacing: -0.04em; font-weight: 560; }
.wheel-bet span { color: var(--muted); font-size: 13px; }
.wheel-bet strong { color: var(--ink); }
.wheel-actions { display: flex; gap: 8px; margin-top: 4px; }
.wheel-actions button {
    border: 0;
    background: transparent;
    padding: 0;
    font-weight: 700;
    color: var(--lime);
}
.wheel-actions button[data-pull] { color: var(--gold); }
.wheel-actions button:disabled { color: var(--muted); cursor: not-allowed; }
.slot-shelf { display: grid; gap: 12px; }
.slot-card {
    display: flex; align-items: center; gap: 16px; text-align: left; padding: 14px 16px;
    border-radius: 22px; border: 1px solid var(--line); background: #0c0e0a; color: inherit;
}
.slot-card b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 560; }
.slot-card small { color: var(--muted); }
.slot-card-art { width: 72px; height: 72px; display: grid; place-items: center; }
.slot-card-art svg { width: 64px; height: 64px; }
.slot-stage { position: relative; display: grid; justify-items: center; gap: 10px; margin: 12px 0; }
.slot-board.base { display: grid; grid-template-columns: repeat(3, 92px); gap: 8px; }
.slot-window { height: 234px; overflow: hidden; position: relative; border-radius: 16px; background: #0c0e0a; border: 1px solid var(--line); }
.theme-grave .slot-window, .theme-grave .slot-mini { background: radial-gradient(circle at 50% 0%, #3a2418, #120c0c 72%); border-color: #6a4a28; box-shadow: inset 0 0 18px rgba(180, 90, 40, 0.28); }
.theme-reef .slot-window, .theme-reef .slot-mini { background: radial-gradient(circle at 50% 18%, #123a4a, #06141c 74%); border-color: #2a8a9a; box-shadow: inset 0 0 16px rgba(40, 220, 220, 0.22); }
.theme-ember .slot-window, .theme-ember .slot-mini { background: radial-gradient(circle at 50% 0%, #4a1c0c, #140804 74%); border-color: #a84820; box-shadow: inset 0 0 18px rgba(255, 90, 20, 0.28); }
.theme-ember .slot-window::after, .theme-ember .slot-mini::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(255, 120, 40, 0.16), transparent); animation: emberWash 2.4s ease-in-out infinite; pointer-events: none; }
.slot-window.expanded { border-color: #ff8a3c; box-shadow: inset 0 0 22px rgba(255, 120, 30, 0.72), 0 0 14px rgba(255, 80, 20, 0.45); }
.slot-window.tense { animation: tensePulse 0.55s ease-in-out infinite; }
.slot-bait { position: absolute; left: 0; right: 0; top: -40px; height: 58px; z-index: 3; display: grid; justify-items: center; align-items: end; pointer-events: none; }
.slot-bait .slot-symbol { transform: translateY(8px); filter: brightness(1.35) drop-shadow(0 0 8px rgba(255, 210, 90, 0.85)); }
.slot-jackpots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; width: min(100%, 460px); }
.slot-jackpot { display: grid; gap: 2px; padding: 6px 4px; border-radius: 12px; text-align: center; background: rgba(20, 8, 4, 0.78); border: 1px solid #8a3a18; }
.slot-jackpot small { letter-spacing: 0.14em; text-transform: uppercase; font-size: 10px; color: #ffb45a; }
.slot-jackpot b { font-size: 12px; color: #fff1c9; }
.slot-jackpot.grand { border-color: #ffd15a; box-shadow: 0 0 16px rgba(255, 140, 40, 0.4); }
.slot-board.ways { grid-template-columns: repeat(5, 68px); gap: 6px; }
.slot-board.ways .slot-window { height: 232px; border-radius: 12px; }
.slot-board.ways .slot-stop { height: 58px; }
.slot-board.ways .slot-symbol svg { width: 32px; height: 32px; }
.slot-symbol b.pot { font-size: 8px; letter-spacing: 0.08em; color: #ffe7a8; }
.slot-board.fire { width: min(100%, 420px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.slot-mini.hit { animation: firePop 0.4s ease; }
.theme-ember .slot-spins { color: #ffb45a; text-shadow: 0 0 12px rgba(255, 100, 30, 0.5); }
.slot-burst.theme-ember i { background: radial-gradient(circle, #ffd15a, #ff4d1a 46%, transparent 72%); }
.theme-reef .slot-window::after, .theme-reef .slot-mini::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(126, 231, 240, 0.14), transparent); animation: reefWash 2.6s ease-in-out infinite; pointer-events: none; }
.theme-grave .slot-spins { color: #e7c27a; text-shadow: 0 0 12px rgba(231, 194, 122, 0.45); }
.theme-reef .slot-spins { color: #7ee7f0; text-shadow: 0 0 12px rgba(126, 231, 240, 0.45); }
.slot-burst.theme-grave i { background: radial-gradient(circle, #e7c27a, #6a1a3a 46%, transparent 72%); }
.slot-burst.theme-reef i { background: radial-gradient(circle, #7ee7f0, #ff4d9a 42%, transparent 72%); }
.slot-strip { position: absolute; left: 0; right: 0; top: 0; }
.slot-stop { height: 78px; display: grid; place-items: center; }
.slot-stop.hot { box-shadow: inset 0 0 0 2px var(--lime); }
.slot-stop.scatter { border-radius: 10px; animation: vaultPulse 0.85s ease-in-out infinite; }
.slot-stop.scatter .slot-symbol { animation: vaultShine 0.85s ease-in-out infinite; }
.slot-symbol { display: grid; justify-items: center; gap: 2px; }
.slot-symbol svg { width: 48px; height: 48px; }
.slot-symbol b { font-size: 11px; color: var(--gold); min-height: 0; }
.slot-board.bonus { width: min(100%, 420px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.slot-mini { height: 64px; overflow: hidden; position: relative; border-radius: 10px; background: #0c0e0a; border: 1px solid var(--line); }
.slot-mini .slot-stop, .mini-stop { height: 64px; }
.slot-mini svg { width: 36px; height: 36px; }
.slot-mini.locked { border-color: var(--gold); }
.slot-mini.explode { animation: bombShake 0.9s linear; }
.slot-spins { min-height: 18px; margin: 0; color: var(--gold); font-family: var(--serif); font-size: 22px; }
.slot-lines { min-height: 18px; margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.slot-total { min-height: 20px; margin: 2px 0 0; color: var(--lime); font-size: 15px; text-align: center; }
.slot-controls { position: relative; display: flex; justify-content: center; align-items: center; gap: 10px; margin: 8px 0 18px; }
.slot-auto-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.slot-auto { width: 46px; height: 46px; padding: 0; display: grid; place-items: center; border-radius: 14px; }
.slot-auto svg { width: 22px; height: 22px; }
.slot-auto b { font-size: 14px; }
.slot-auto.on { border-color: var(--lime); color: var(--lime); }
.slot-fast { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border-radius: 12px; }
.slot-fast[hidden] { display: none; }
.slot-fast svg { width: 16px; height: 16px; }
.slot-fast.on { border-color: var(--gold); color: var(--gold); }
.slot-auto-box {
    position: absolute; bottom: calc(100% + 8px); right: 0; z-index: 5; display: grid; gap: 8px;
    width: 180px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: #14160f;
}
.slot-auto-box[hidden] { display: none; }
.slot-auto-box label { display: grid; gap: 4px; color: var(--muted); font-size: 13px; }
.slot-auto-box input { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #0c0e0a; color: inherit; padding: 8px 10px; }
.slot-auto-box .play { min-width: 0; width: 100%; }
.slot-pay { display: grid; gap: 6px; }
.slot-pay p { display: flex; justify-content: space-between; align-items: center; margin: 0; }
.slot-pay svg { width: 28px; height: 28px; vertical-align: middle; }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.62); }
.slot-denom { width: min(520px, 100%); background: #14160f; border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.slot-denom-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-burst { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; pointer-events: none; }
.slot-burst i { position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, #ffe14a, #ff6b4a 42%, transparent 72%); animation: burstGlow 1.1s ease forwards; }
.slot-burst b { position: relative; font-family: var(--serif); font-size: clamp(42px, 8vw, 84px); color: #fff8ef; text-shadow: 0 0 24px #ff6b4a; animation: burstPop 1.1s ease forwards; }
.slot-big { position: fixed; inset: 0; z-index: 72; display: grid; place-items: center; pointer-events: none; background: radial-gradient(circle at center, rgba(255, 225, 74, 0.28), transparent 58%); }
.slot-big b { font-family: var(--serif); font-size: clamp(40px, 7vw, 84px); font-weight: 560; color: #fff8ef; text-align: center; text-shadow: 0 0 28px #e7c27a; animation: bigHold 2.2s ease forwards; padding: 0 24px; }
.slot-fly { position: fixed; z-index: 75; color: var(--gold); font-size: 13px; pointer-events: none; }
@keyframes bombShake { 20% { transform: translateX(-4px) scale(1.04); } 40% { transform: translateX(4px) scale(1.12); } 60% { transform: translateX(-3px) scale(1.08); } 80% { transform: translateX(2px) scale(1.04); } }
@keyframes burstGlow { from { transform: scale(0.3); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
@keyframes burstPop { 0% { transform: scale(0.4); opacity: 0; } 30% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes bigHold { 0% { transform: scale(0.6); opacity: 0; } 14% { transform: scale(1); opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }
@keyframes reefWash { 0% { transform: translateY(-30%); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(30%); opacity: 0; } }
@keyframes emberWash { 0% { opacity: 0.15; } 50% { opacity: 0.7; } 100% { opacity: 0.15; } }
@keyframes firePop { 0% { transform: scale(0.72); filter: brightness(2.2); } 100% { transform: none; filter: none; } }
@keyframes vaultPulse {
    0%, 100% { box-shadow: inset 0 0 0 2px rgba(255, 209, 90, 0.4), 0 0 6px rgba(255, 150, 40, 0.25); }
    50% { box-shadow: inset 0 0 0 2px #fff6d0, 0 0 16px rgba(255, 210, 90, 0.9); }
}
@keyframes vaultShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.6) drop-shadow(0 0 8px #ffe7a8); }
}
@keyframes tensePulse {
    0%, 100% { box-shadow: inset 0 0 10px rgba(255, 70, 30, 0.25); }
    50% { box-shadow: inset 0 0 22px rgba(255, 190, 70, 0.85), 0 0 14px rgba(255, 120, 40, 0.45); }
}
.reel-window { width: 120px; height: 120px; overflow: hidden; position: relative; border-radius: 18px; background: #0c0e0a; border: 1px solid var(--line); }
.reel { position: absolute; inset: 0 0 auto 0; }
.cell { height: 120px; display: grid; place-items: center; }
.paytable { display: flex; gap: 14px; color: var(--muted); font-size: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.stat { background: var(--panel); border-radius: 18px; padding: 16px 18px; border: 1px solid var(--line); }
.stat b { display: block; margin-top: 6px; font-family: var(--serif); font-size: 30px; font-weight: 560; letter-spacing: -0.04em; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 8px; }
td { padding: 12px 8px; border-top: 1px solid var(--line); }
tr.me td { background: rgba(223, 242, 90, 0.06); }
.section { margin-top: 28px; }
.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}
.auth-copy, .auth-card { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.auth-card { background: rgba(20, 22, 15, 0.92); border-left: 1px solid var(--line); }
.auth-card h2 { font-family: var(--serif); font-size: 42px; margin: 0 0 8px; font-weight: 560; }
form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; }
input[type="text"], input[type="password"], input[type="number"], select {
    background: #0e100c; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 16px; color: inherit;
}
input:focus { outline: 2px solid var(--lime); border-color: transparent; }
.form-error { color: var(--coral); min-height: 20px; margin: 0; }
.toast {
    position: fixed; top: 18px; left: 50%; transform: translate(-50%, -12px);
    background: var(--ink); color: var(--on-lime); padding: 12px 18px; border-radius: 999px;
    font-weight: 700; opacity: 0; pointer-events: none; transition: 0.25s ease; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.cashier { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; }
.cashier-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0, 0, 0, 0.62); cursor: pointer; }
.cashier-card {
    position: relative; width: min(440px, 100%); background: var(--panel);
    border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 16px;
}
.owner-crown, .role-mark { cursor: help; margin-right: 0.12em; }
.owner-crown { font-size: 0.72em; }
.role-mark { font-size: 0.95em; }
button.stat { text-align: left; color: inherit; width: 100%; }
button.stat-link { cursor: pointer; }
button.stat-link:hover { border-color: var(--lime); }
.stat-modal { width: min(760px, 100%); }
.stat-headline { display: block; font-family: var(--serif); font-size: 36px; font-weight: 560; }
.role-list { display: grid; gap: 14px; }
.role-card { max-width: none; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.gift-icon { font-size: 28px; line-height: 1; margin-right: 8px; }
.gift-timer { color: var(--gold); font-weight: 700; }
.admin-pin, .admin-search, [data-fund] { margin: 18px 0; }
.admin-chart { width: min(100%, 720px); height: auto; margin-top: 8px; }
.admin-chart line { stroke: rgba(255, 255, 255, 0.18); }
.admin-chart path { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.admin-chart text { fill: var(--muted); font-size: 12px; }
.cashier-tabs { display: flex; gap: 6px; width: fit-content; background: rgba(0, 0, 0, 0.25); padding: 4px; border-radius: 999px; }
.cashier-tabs button, .cashier-tabs a { border: 0; background: transparent; border-radius: 999px; padding: 8px 14px; text-decoration: none; color: inherit; }
.cashier-tabs button.on, .cashier-tabs a.on { background: var(--lime); color: var(--on-lime); }
.cashier-form { display: grid; gap: 10px; }
.cashier-form button:disabled { opacity: 0.45; }
.level-card, .reward-stat, .reward-case {
    background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 8px;
}
.level-card b, .reward-stat b { font-family: var(--serif); font-size: 40px; line-height: 1; }
.level-track { height: 10px; border-radius: 999px; background: #0c0e0a; overflow: hidden; }
.level-track span { display: block; height: 100%; background: var(--lime); }
.reward-hero, .reward-grid { display: grid; gap: 14px; }
.reward-hero { grid-template-columns: 1.3fr 0.7fr; }
.reward-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.reward-case.locked { opacity: 0.55; }
.reward-case b { font-size: 18px; }
.cashier-form label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.cashier-pane { position: relative; }
.cashier-lock {
    position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
    padding: 18px; border-radius: 16px; background: rgba(12, 14, 10, 0.62);
}
.cashier-lock p { color: var(--paper); font-weight: 700; }
.cashier-x { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 22px; line-height: 1; }
.cashier-card p { margin: 0; color: var(--muted); }
.cashier-card .play { justify-self: start; }
.toast.lose { background: var(--coral); color: #2a0d07; }
.toast.push { background: var(--gold); }
.saver { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 20px; }
.saver-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0, 0, 0, 0.62); cursor: pointer; }
.saver-card {
    position: relative; width: min(420px, 100%); display: grid; gap: 12px;
    background: var(--panel); border: 1px solid var(--gold); border-radius: 22px; padding: 22px;
}
.saver-card h2 { margin: 0; font-family: var(--serif); font-weight: 560; font-size: 34px; }
.saver-card p { margin: 0; }
.saver-card .kicker { color: var(--gold); }
.saver-actions { display: flex; gap: 10px; }
.saver-actions .play, .saver-actions .ghost { min-width: 96px; }
.saver-play {
    position: absolute; inset: 0; z-index: 4; display: grid; justify-items: center; align-content: center; gap: 14px;
    background: rgba(8, 9, 6, 0.78);
}
.saver-pointer {
    width: 0; height: 0; margin-bottom: -8px;
    border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 16px solid var(--paper);
}
.saver-disc {
    width: 190px; height: 190px; border-radius: 50%;
    background: conic-gradient(var(--lime) var(--sweep), #2a2d22 0);
    box-shadow: inset 0 0 0 12px #14160f, 0 0 0 3px var(--gold);
}
.saver-caption { margin: 0; color: var(--gold); font-family: var(--serif); font-size: 22px; }
.level-up {
    position: fixed; top: 74px; left: 50%; z-index: 70; transform: translate(-50%, -14px);
    min-width: 180px; padding: 12px 22px 14px; text-align: center; pointer-events: none;
    background: #17190d; color: var(--paper); border: 1px solid var(--gold); border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); opacity: 0; transition: 0.25s ease;
}
.level-up.show { opacity: 1; transform: translate(-50%, 0); }
.level-up .kicker { color: var(--gold); letter-spacing: 0.16em; }
.level-up b { display: block; font-family: var(--serif); font-size: 34px; line-height: 1; font-weight: 560; }
.confetti { position: fixed; inset: 0; z-index: 71; pointer-events: none; overflow: hidden; }
.confetti i {
    position: fixed; width: 8px; height: 12px; margin: -6px 0 0 -4px; border-radius: 2px;
    animation: confettiOut 1.05s ease-out forwards;
}
@keyframes confettiOut {
    to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}
.gift-announce {
    position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
    background: rgba(0, 0, 0, 0.62); cursor: pointer;
}
.present-stage { position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.present { position: relative; width: 140px; height: 120px; transform-origin: center bottom; animation: presentDrop 4.2s ease forwards; }
.present-box {
    position: absolute; left: 0; right: 0; bottom: 0; height: 78px; border-radius: 8px;
    background: linear-gradient(#3dcf6a, #1f9a4a);
    box-shadow: inset 0 0 0 4px #e7c27a;
}
.present-box::before {
    content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 18px; transform: translateX(-50%);
    background: #e7c27a;
}
.present-lid {
    position: absolute; left: -8px; right: -8px; top: 18px; height: 32px; border-radius: 6px;
    background: #49dc78; box-shadow: inset 0 0 0 4px #e7c27a;
    animation: lidPop 4.2s ease forwards;
}
.present-lid::before {
    content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 18px; transform: translateX(-50%);
    background: #e7c27a;
}
.present-bow {
    position: absolute; left: 50%; top: 0; width: 34px; height: 24px; transform: translateX(-50%);
    background: #e7c27a; border-radius: 12px 12px 4px 4px; z-index: 1;
}
.present-bow::before, .present-bow::after {
    content: ""; position: absolute; top: 8px; width: 22px; height: 18px; border: 4px solid #e7c27a; border-radius: 50%;
}
.present-bow::before { left: -16px; }
.present-bow::after { right: -16px; }
.present-icon { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; font-size: 28px; }
.gift-reveal {
    position: absolute; left: 50%; top: 50%; width: max-content; max-width: min(420px, 86vw);
    display: grid; align-content: center; justify-items: center; text-align: center; gap: 6px;
    padding: 22px 28px; border-radius: 18px; background: #17190d; border: 1px solid var(--gold);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    opacity: 0; animation: giftReveal 4.2s ease forwards;
}
.gift-reveal .kicker { color: var(--gold); }
.gift-reveal b { font-family: var(--serif); font-size: 34px; font-weight: 560; line-height: 1; }
.gift-reveal p { margin: 0; color: var(--muted); }
.present-stage.plain .present { animation: none; opacity: 0; }
.present-stage.plain .gift-reveal { animation: none; opacity: 1; transform: translate(-50%, -50%); }
@keyframes presentDrop {
    0% { transform: translateY(-75vh) rotate(-8deg); }
    22% { transform: translateY(0) rotate(0); }
    28% { transform: translateY(10px) rotate(0); }
    34% { transform: translateY(0) rotate(0); }
    42% { transform: rotate(-8deg); }
    48% { transform: rotate(8deg); }
    54% { transform: rotate(-6deg); }
    60% { transform: rotate(5deg); }
    66% { transform: rotate(0) scale(1); }
    74% { transform: scale(1.12); }
    84% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}
@keyframes lidPop {
    0%, 66% { transform: translateY(0) rotate(0); }
    76% { transform: translateY(-46px) rotate(-18deg); opacity: 1; }
    88%, 100% { transform: translateY(-70px) rotate(-28deg); opacity: 0; }
}
@keyframes giftReveal {
    0%, 76% { opacity: 0; transform: translate(-50%, -50%) scale(0.86); }
    88%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 900px) {
    .hero, .auth, .dock, .dock.upgrade-dock, .stats, .versus, .wheel-layout, .reward-hero { grid-template-columns: 1fr; }
    .gift-row { grid-template-columns: 1fr; }
    .gift-row .play { justify-self: stretch; }
    .admin-tools-row, .admin-split, .dossier-grid, .dossier-stats, .dossier-facts { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr; }
    .auth-card { border-left: 0; border-top: 1px solid var(--line); }
    .play { justify-self: stretch; }
    .dice-read { font-size: 72px; }
    .game-head { flex-direction: column; align-items: start; }
}

.gift-alert {
    display: block;
    width: 100%;
    margin: 0 0 18px;
    border: 0;
    border-radius: 16px;
    padding: 18px 20px;
    background: #3dcf6a;
    color: #102114;
    font-weight: 800;
    font-size: clamp(18px, 2.4vw, 24px);
    letter-spacing: -0.02em;
    text-align: center;
    animation: giftBreathe 1.7s ease-in-out infinite;
}
@keyframes giftBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}
.gift-catalogue { width: min(640px, 100%); max-height: min(80vh, 760px); overflow: auto; }
.gift-catalogue h2 { margin: 0; font-family: var(--serif); font-weight: 560; font-size: 34px; }
.gift-list { display: grid; gap: 10px; }
.gift-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    background: #0e100c;
    border: 1px solid var(--line);
}
.gift-row b { font-family: var(--serif); font-size: 28px; font-weight: 560; line-height: 1; }
.gift-row .note { margin: 6px 0 0; }
.gift-row .play { min-width: 110px; }

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
    .gift-alert { animation: none !important; }
    .present, .present-lid, .gift-reveal { animation: none !important; }
    .present { opacity: 0; }
    .gift-reveal { opacity: 1; transform: translate(-50%, -50%); }
}

.battle-top { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin: 18px 0; }
.battle-top h1 { font-size: clamp(40px, 5vw, 64px); }
.battle-list { display: flex; flex-direction: column; gap: 10px; }
.battle-kicker { margin: 18px 0 0; }
.battle-row {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.7fr) auto;
    gap: 16px; align-items: center; padding: 28px 16px 14px; border-radius: 18px;
    border: 1px solid var(--line); background: #0c0e0a; cursor: pointer; text-align: left;
}
.battle-preview { display: flex; gap: 8px; align-items: center; min-width: 0; }
.battle-preview svg, .battle-preview img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.battle-more { color: var(--muted); font-weight: 700; }
.battle-facts { display: grid; gap: 3px; }
.battle-facts b { font-family: var(--serif); font-size: 22px; font-weight: 560; }
.battle-facts span { color: var(--muted); font-size: 13px; }
.battle-end { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.battle-actions { display: flex; align-items: center; gap: 12px; }
.battle-age { position: absolute; top: 10px; right: 16px; color: var(--muted); font-size: 12px; }
.battle-end strong { color: var(--lime); font-family: var(--serif); font-size: 22px; }
.battle-price { display: grid; justify-items: end; line-height: 1.05; }
.battle-price s, .note s { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.borrow-line { display: flex; align-items: center; gap: 12px; max-width: 420px; margin-top: 8px; }
.borrow-line[hidden] { display: none; }
.borrow-line input { flex: 1; accent-color: var(--lime); }
.borrow-line b { min-width: 48px; font-family: var(--serif); font-size: 22px; font-weight: 560; }
.battle-score.borrow-out, .battle-winner.borrow-out { animation: borrowStrike 0.45s ease forwards; }
.battle-score.borrow-in, .battle-winner.borrow-in { animation: borrowIn 0.35s ease; }
@keyframes borrowStrike {
    from { opacity: 1; }
    to { opacity: 0.45; text-decoration: line-through; }
}
@keyframes borrowIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.battle-create { display: flex; flex-direction: column; gap: 18px; min-height: calc(100vh - 160px); }
.battle-options { display: flex; flex-wrap: wrap; gap: 8px; }
.choice.on { background: var(--lime); color: var(--on-lime); border-color: transparent; }
.battle-queue { display: flex; flex-wrap: wrap; gap: 12px; }
.add-case, .battle-chip {
    width: 150px; min-height: 180px; border-radius: 18px; background: #0c0e0a;
    border: 1px solid var(--line); display: grid; justify-items: center; align-content: center;
    gap: 6px; padding: 12px; text-align: center;
}
.add-case { border-style: dashed; }
.add-case span { font-family: var(--serif); font-size: 42px; line-height: 1; }
.battle-chip svg, .battle-chip img { width: 48px; height: 48px; object-fit: contain; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 8px; }
.stepper button {
    width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
}
.create-bar { margin-top: auto; display: grid; justify-items: center; gap: 8px; }
.create-bar .play { min-width: min(360px, 100%); }
.battle-picker { width: min(960px, 100%); max-height: min(80vh, 820px); overflow: auto; }
.battle-picks { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.battle-pick { position: relative; }
.pick-main {
    border: 0; background: transparent; color: inherit; display: grid; justify-items: center;
    gap: 6px; padding: 0; width: 100%; cursor: pointer;
}
.battle-pick img, .pick-main img { width: 48px; height: 48px; object-fit: contain; }
.odds-modal { z-index: 60; }
.odds-card { width: min(440px, 100%); }
.odds-list { display: grid; gap: 8px; max-height: 50vh; overflow: auto; }
.odds-row { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 8px; align-items: center; }
.odds-row svg, .odds-row img { width: 32px; height: 32px; object-fit: contain; }
.battle-room { display: grid; grid-template-columns: repeat(var(--teams, var(--seats, 2)), minmax(0, 1fr)); gap: 12px; align-items: start; }
.team-block { min-width: 0; border: 1px solid var(--line); border-radius: 22px; background: #0c0e0a; padding: 10px 8px 12px; display: grid; justify-items: center; gap: 8px; }
.team-seats { width: 100%; display: grid; grid-template-columns: repeat(var(--mates, 1), minmax(0, 1fr)); gap: 8px; }
.battle-seat { min-width: 0; display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; }
.battle-seat > b, .team-block > .kicker { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.battle-seat.me > b { color: var(--lime); }
.team-block.win { border-color: var(--lime); background: rgba(223, 242, 90, 0.1); }
.team-block.lose { border-color: var(--coral); background: rgba(255, 107, 74, 0.1); }
.team-block.win .battle-score { color: var(--lime); }
.team-block.lose .battle-score { color: var(--coral); }
.battle-room.stacked .team-seats { grid-template-columns: 1fr; }
.battle-window { width: 100%; height: clamp(148px, 22vh, 200px); container-type: inline-size; transition: box-shadow 0.15s ease, border-color 0.15s ease; }
.case-window.landed, .battle-window.landed { border-color: rgba(223, 242, 90, 0.85); box-shadow: inset 0 0 0 2px rgba(223, 242, 90, 0.9), 0 0 18px rgba(223, 242, 90, 0.28); }
.case-window.landed.profit, .battle-window.landed.profit { border-color: #e7c27a; box-shadow: inset 0 0 0 2px #e7c27a, 0 0 22px rgba(231, 194, 122, 0.4); }
.gem-mark { font-size: 40px; line-height: 1; }
.battle-room .gem-mark { font-size: clamp(40px, 16cqw, 72px); }
.battle-room .case-track { top: 6px; height: calc(100% - 12px); gap: 8px; }
.battle-room .case-card { width: min(168px, 46cqw); flex-basis: min(168px, 46cqw); height: 100%; min-width: 0; }
.battle-room .case-card > div { flex: 1 1 auto; display: grid; place-items: center; width: 100%; min-height: 0; }
.battle-room .case-card svg, .battle-room .case-card img { width: auto; height: auto; max-width: 92%; max-height: 100%; object-fit: contain; }
.battle-room .case-card b, .battle-room .case-card span { max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.battle-hits { min-height: 16px; max-height: 16px; width: 100%; overflow: hidden; color: var(--muted); font-size: 12px; }
.battle-hits p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.battle-score { font-family: var(--serif); font-size: clamp(16px, 2vw, 22px); margin: 0; }
.note.battle-count { text-align: center; font-family: var(--serif); font-size: clamp(56px, 8vw, 88px); line-height: 0.9; color: var(--ink); margin: 4px 0 8px; }
.battle-winner { text-align: center; font-family: var(--serif); font-size: 28px; }
.battle-strip { flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.battle-strip button { border: 0; background: transparent; padding: 3px; border-radius: 8px; line-height: 0; }
.battle-strip button:hover, .battle-strip button.on { background: rgba(223, 242, 90, 0.14); }
.battle-strip svg, .battle-strip img { width: 36px; height: 36px; object-fit: contain; }
.case-pop {
    position: fixed; z-index: 70; width: min(300px, calc(100vw - 16px)); max-height: min(320px, 64vh);
    overflow: auto; padding: 10px; border-radius: 14px; border: 1px solid var(--line);
    background: #14160f; box-shadow: var(--shadow);
}
.case-pop-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.case-pop-head img, .case-pop-head svg { width: 42px; height: 42px; object-fit: contain; flex: none; }
.case-pop-head b { display: block; font-family: var(--serif); font-size: 18px; font-weight: 560; }
.case-pop-head span { color: var(--lime); font-size: 13px; font-weight: 700; }
.case-pop-items { display: grid; gap: 6px; }
.case-pop-items article { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 6px; align-items: center; font-size: 12px; }
.case-pop-items img, .case-pop-items svg { width: 28px; height: 28px; object-fit: contain; }
.case-pop-items b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-pop-items span:last-child { color: var(--muted); }
.battle-log { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px 18px; margin-top: 14px; }
.battle-log section { min-width: 0; }
.battle-log b { display: block; font-size: 14px; }
.battle-log section.me b { color: var(--lime); }
.battle-log ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.battle-log li { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fighter.me { outline: 1px solid var(--lime); }
.call-bot { margin-top: 8px; }
.tie-stage { display: grid; justify-items: center; gap: 0; margin: 18px auto; }
.tie-pointer { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 16px solid var(--lime); z-index: 2; margin-bottom: -4px; }
.tie-wheel { width: 260px; height: 260px; border-radius: 50%; position: relative; border: 6px solid #17190d; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35); transition: transform 3.2s cubic-bezier(0.12, 0.7, 0.08, 1); }
.tie-label { position: absolute; left: 50%; top: 50%; width: 96px; margin-left: -48px; margin-top: -9px; text-align: center; font-size: 13px; font-weight: 700; color: #17190d; }
@media (max-width: 720px) {
    .battle-row { grid-template-columns: 1fr; }
}

.stage.bj-stage {
    display: block;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
}
.bj-felt {
    position: relative;
    width: 100%;
    min-height: 380px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    gap: 22px;
    padding: 28px 22px 26px;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(90% 70% at 50% 0%, rgba(255, 255, 255, 0.1), transparent 46%),
        radial-gradient(80% 60% at 50% 100%, rgba(0, 0, 0, 0.28), transparent 55%),
        #146b43;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 0 90px rgba(0, 0, 0, 0.35);
}
.bj-felt.shake { animation: bj-shake 0.4s ease; }
@keyframes bj-shake {
    0%, 100% { transform: translateX(0); }
    30% { transform: translateX(-5px); }
    70% { transform: translateX(5px); }
}
.bj-rail {
    position: absolute;
    inset: 14px;
    border: 2px solid rgba(231, 194, 122, 0.45);
    border-radius: 18px;
    pointer-events: none;
}
.bj-deck {
    position: absolute;
    top: 28px;
    right: 34px;
    width: 64px;
    height: 90px;
    z-index: 2;
}
.bj-deck i {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    border: 1px solid rgba(231, 194, 122, 0.8);
    background:
        repeating-linear-gradient(45deg, #123c2c 0 5px, #1b5640 5px 10px);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.25);
}
.bj-deck i:nth-child(1) { transform: translate(6px, -4px); }
.bj-deck i:nth-child(2) { transform: translate(3px, -2px); }
.bj-dealer, .bj-players { position: relative; z-index: 1; }
.bj-dealer { grid-row: 1; display: grid; justify-items: center; gap: 8px; }
.bj-players { grid-row: 3; }
.bj-players { display: flex; justify-content: center; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.bj-label {
    display: flex;
    gap: 10px;
    align-items: baseline;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(244, 241, 230, 0.78);
}
.bj-label b { font-family: var(--serif); font-size: 22px; letter-spacing: 0; color: white; }
.bj-label b.down { color: #ffb0a0; }
.bj-cards { display: flex; gap: 8px; min-height: 118px; align-items: center; justify-content: center; }
.bj-hand {
    position: relative;
    min-width: 180px;
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 8px 8px 0;
    border-radius: 16px;
}
.bj-hand.active { box-shadow: inset 0 0 0 1px rgba(223, 242, 90, 0.85), 0 0 24px rgba(223, 242, 90, 0.18); }
.bj-hand.win .bj-cards, .bj-hand.blackjack .bj-cards, .bj-dealer.win .bj-cards { filter: drop-shadow(0 0 12px rgba(223, 242, 90, 0.7)); }
.bj-hand.lose .bj-cards, .bj-hand.bust .bj-cards, .bj-dealer.lose .bj-cards { filter: saturate(0.5) brightness(0.82); }
.bj-hand.doubled .bj-chip::after { content: " · 2x"; }
.bj-chip {
    min-width: 72px;
    padding: 4px 10px;
    border-radius: 999px;
    background: radial-gradient(circle at 50% 40%, #f0d59a, #c9a15a);
    color: #2a210f;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}
.bj-card, .bj-ghost { width: 84px; height: 118px; flex: none; }
.bj-ghost { opacity: 0; }
.bj-card { perspective: 700px; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.28)); }
.bj-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.45s ease;
}
.bj-card.down .bj-card-inner { transform: rotateY(180deg); }
.bj-face, .bj-back {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    backface-visibility: hidden;
    overflow: hidden;
}
.bj-face { background: linear-gradient(180deg, #fffdf8, #f3ecdf); color: #1c1e16; }
.bj-card.red .bj-face { color: #c5333a; }
.bj-back {
    transform: rotateY(180deg);
    border: 2px solid #e7c27a;
    background: repeating-linear-gradient(45deg, #123c2c 0 6px, #1b5640 6px 12px);
}
.bj-back::after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(223, 242, 90, 0.75);
    border-radius: 6px;
}
.bj-corner {
    position: absolute;
    top: 6px;
    left: 7px;
    display: grid;
    justify-items: center;
    font-family: var(--serif);
    line-height: 1;
}
.bj-corner b { font-size: 18px; font-weight: 560; }
.bj-corner svg { width: 12px; height: 12px; }
.bj-corner-b { top: auto; left: auto; bottom: 6px; right: 7px; }
.bj-pip { position: absolute; inset: 0; display: grid; place-items: center; }
.bj-pip svg { width: 34px; height: 34px; }
.bj-banner {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    z-index: 5;
    margin: 0;
    text-align: center;
    font-family: var(--serif);
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: -0.03em;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}
.bj-banner.win, .bj-banner.blackjack { color: var(--lime); }
.bj-banner.lose, .bj-banner.bust { color: #ffd0c6; }
.bj-banner.push { color: var(--gold); }
.bj-float {
    font-family: var(--serif);
    font-size: 20px;
    animation: bj-rise 0.8s ease forwards;
    pointer-events: none;
}
@keyframes bj-rise {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.bj-sparks { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.bj-sparks i {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lime);
    opacity: 0.95;
    animation: bj-spark 750ms ease-out forwards;
}
.bj-sparks i:nth-child(odd) { background: var(--gold); }
@keyframes bj-spark {
    to { transform: rotate(calc(var(--i) * 26deg)) translateY(-140px); opacity: 0; }
}
.bj-empty {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 78px;
    margin: 0;
    text-align: center;
    color: rgba(244, 241, 230, 0.72);
}
.bj-dock {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin-top: 14px;
}
.bj-seat, .bj-actions button {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 999px;
    padding: 12px 14px;
}
.bj-seat.on { background: var(--lime); color: var(--on-lime); border-color: transparent; }
.bj-seat:disabled, .bj-actions button:disabled { opacity: 0.4; }
.bj-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.bj-actions[hidden], .bj-banner[hidden], .bj-empty[hidden] { display: none; }
.bj-actions button { border-radius: 14px; font-weight: 700; padding: 14px 8px; }
.bj-actions button[data-act="hit"] { background: var(--lime); color: var(--on-lime); border: 0; }
@media (max-width: 720px) {
    .bj-felt { min-height: 320px; padding: 18px 12px 16px; }
    .bj-card, .bj-ghost { width: 64px; height: 90px; }
    .bj-cards { min-height: 90px; }
    .bj-hand { min-width: 140px; }
    .bj-corner b { font-size: 14px; }
    .bj-pip svg { width: 26px; height: 26px; }
    .bj-actions { grid-template-columns: repeat(2, 1fr); }
}
.linkish, .chat-name {
    border: 0; background: none; color: inherit; font: inherit; padding: 0;
    cursor: pointer; text-align: left;
}
.linkish { text-decoration: underline; text-underline-offset: 3px; }
.flair { display: inline-grid; place-items: center; margin-left: 6px; min-width: 28px; height: 24px; padding: 0 6px; border-radius: 999px; background: #1c2018; border: 1px solid var(--line); }
.player-menu { width: min(560px, 100%); max-height: min(86vh, 820px); overflow: auto; background: #14160f; border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: grid; gap: 16px; }
.player-menu.player-dossier { width: min(1080px, 100%); }
.player-menu form { max-width: none; }
.player-menu h3 { margin: 16px 0 8px; font-size: 16px; }
.dossier-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr); gap: 18px; align-items: start; }
.dossier-actions { display: grid; gap: 16px; }
.dossier-stats, .dossier-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dossier-facts { margin-top: 12px; }
.dossier-stats > div, .dossier-facts > div { background: #0e100c; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.dossier-stats b, .dossier-facts b { display: block; margin-top: 4px; font-family: var(--serif); font-size: 20px; font-weight: 560; line-height: 1.15; overflow-wrap: anywhere; }
.admin-tools { max-width: none; display: grid; gap: 12px; margin: 18px 0; }
.admin-tools-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.admin-tool-actions { display: flex; gap: 8px; }
.admin-tool-actions .play, .admin-tool-actions .ghost { min-width: 0; flex: 1; }
.admin-table-wrap { overflow-x: auto; }
.admin-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.admin-flag { border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; font-size: 12px; color: var(--muted); }
.admin-flag.warn { color: var(--gold); border-color: rgba(231, 194, 122, 0.7); }
th button.sort { border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; padding: 0; cursor: pointer; }
th button.sort.on { color: var(--lime); }
.menu-head, .menu-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.emoji-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.emoji-pick { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #0c0e0a; font-size: 18px; }
.emoji-pick.on { border-color: var(--gold); }
.check-row { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.chat-root { position: fixed; inset: 0; pointer-events: none; z-index: 35; }
.chat-tab {
    pointer-events: auto; position: fixed; top: 42%; width: 28px; height: 64px; z-index: 36;
    border: 1px solid var(--line); background: #14160f; color: inherit; font-size: 18px; cursor: pointer;
}
.chat-root.left .chat-tab { left: 0; border-radius: 0 12px 12px 0; }
.chat-root.right .chat-tab { right: 0; border-radius: 12px 0 0 12px; }
.chat-root.left.open .chat-tab { left: min(320px, 88vw); }
.chat-root.right.open .chat-tab { right: min(320px, 88vw); }
.chat-dock {
    pointer-events: auto; position: fixed; top: 0; bottom: 0; width: min(320px, 88vw);
    display: flex; flex-direction: column; gap: 10px; padding: 16px;
    background: #10130e; border: 1px solid var(--line); transform: translateX(-105%);
}
.chat-root.right .chat-dock { right: 0; border-right: 0; transform: translateX(105%); }
.chat-root.left .chat-dock { left: 0; border-left: 0; }
.chat-root.open .chat-dock { transform: none; }
.chat-root:not(.open) .chat-dock { pointer-events: none; }
.chat-dock form { max-width: none; display: flex; gap: 8px; }
.chat-dock input { flex: 1; }
.chat-log { flex: 1; overflow: auto; display: grid; align-content: start; gap: 10px; }
.chat-line p { margin: 2px 0 0; }
.chat-line.rain-announce p { color: #f3d48a; font-weight: 700; }
.rain-card {
    border: 1px solid #e7c27a;
    background: linear-gradient(180deg, #3a3014, #16140c);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 6px;
}
.rain-card strong { font-family: var(--serif); font-size: 28px; color: #f3d48a; }
.rain-card p { margin: 0; }
.rain-actions { display: flex; gap: 8px; align-items: center; }
.rain-actions form { max-width: none; flex-direction: row; gap: 8px; flex: 1; }
.rain-actions input { min-width: 0; }
@media (prefers-reduced-motion: reduce) {
    .chat-dock, .chat-tab { transition: none; }
}
.chat-dock, .chat-tab { transition: transform 0.25s ease, left 0.25s ease, right 0.25s ease; }
.slot-board.last-call { box-shadow: inset 0 0 24px rgba(231, 194, 122, 0.45); }
.slot-mini.last-chance { z-index: 3; border-color: var(--gold); animation: tensePulse 0.32s ease-in-out infinite; }
.slot-mini.bait-hold .slot-symbol { animation: baitIn 0.45s ease; }
.slot-mini.bait-miss .slot-symbol { animation: baitOut 0.4s ease forwards; }
.slot-mini.grand-hit { box-shadow: 0 0 22px #ffe14a; }
@keyframes baitIn { from { transform: translateY(-28px); opacity: 0.2; } to { transform: none; opacity: 1; } }
@keyframes baitOut { to { transform: translateY(-36px); opacity: 0; } }

.sound-toggle { min-width: 76px; border-radius: 999px; padding: 8px 12px; }
.sound-toggle[aria-pressed="false"] { color: var(--muted); }
.fx-chip { box-shadow: 0 0 0 3px #e7c27a; }
.fx-green { box-shadow: inset 0 0 0 2px #3dcf6a; }
.fx-gold { box-shadow: inset 0 0 0 2px #e7c27a; }
.fx-lose { box-shadow: inset 0 0 0 2px #ff6b4a; background-color: rgba(255, 107, 74, 0.16); }
.fx-error { box-shadow: inset 0 0 0 2px #ff6b4a; }
.fx-shake { animation: fxShake 0.32s linear; }
.fx-pulse { animation: fxPulse 0.42s ease; }
@keyframes fxShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
@keyframes fxPulse {
    0% { box-shadow: 0 0 0 0 rgba(61, 207, 106, 0.55); }
    100% { box-shadow: 0 0 0 14px rgba(61, 207, 106, 0); }
}
.fx-coins { position: fixed; z-index: 80; width: 0; height: 0; pointer-events: none; }
.fx-coins i {
    position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
    background: #e7c27a; animation: fxCoin 0.6s ease-out forwards;
}
@keyframes fxCoin { to { transform: translate(var(--x), -48px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .fx-shake, .fx-pulse, .fx-coins i, .confetti i { animation: none !important; }
}
