/* Поток: Анапа — «ночной курорт»: глубокий синий, золото, море; игровые карточки — кремовая бумага. */
:root {
  --bg: #08121c; --bg2: #0d1b2a; --panel: rgba(255, 255, 255, .045); --panel2: rgba(255, 255, 255, .075);
  --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .16);
  --text: #eaf1f8; --muted: #8ea2b7; --dim: #5d7187;
  --gold: #f2c14e; --gold2: #d99a26; --green: #3ddc97; --red: #ff6b6b; --sea: #36c5d0; --violet: #b48cff;
  --paper: #fbf6ea; --ink: #18283a; --ink2: #5b6b7c;
  --r: 18px; --r2: 12px; --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --ui: 'Manrope', 'Segoe UI', system-ui, sans-serif; --serif: 'Playfair Display', Georgia, serif;
}
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body {
  font: 500 14px/1.45 var(--ui); color: var(--text); background: var(--bg);
  background-image: radial-gradient(1100px 700px at 12% -10%, rgba(54, 197, 208, .16), transparent 60%), radial-gradient(900px 600px at 105% 110%, rgba(242, 193, 78, .12), transparent 60%), linear-gradient(180deg, #0a1623, #060d15);
  background-attachment: fixed; overflow: hidden; -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4, p { margin: 0; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 8px; } ::-webkit-scrollbar-track { background: transparent; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.pos { color: var(--green); } .neg { color: var(--red); } .gold { color: var(--gold); } .muted { color: var(--muted); }
.hidden { display: none !important; }

/* ───── кнопки ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; font-weight: 700; background: var(--panel2); border: 1px solid var(--line2); transition: transform .12s, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn--primary { background: linear-gradient(180deg, #f7cf6a, #e0a52e); color: #2a1c02; border-color: transparent; box-shadow: 0 8px 24px rgba(242, 193, 78, .28), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--primary:hover { background: linear-gradient(180deg, #ffdb80, #e9b03a); box-shadow: 0 10px 30px rgba(242, 193, 78, .4), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--green { background: linear-gradient(180deg, #4be3a4, #22b877); color: #032415; border-color: transparent; box-shadow: 0 8px 22px rgba(61, 220, 151, .25); }
.btn--danger { background: rgba(255, 107, 107, .14); border-color: rgba(255, 107, 107, .4); color: #ffb3b3; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn--sm { padding: 6px 11px; border-radius: 10px; font-size: 12.5px; }
.btn--lg { padding: 14px 22px; font-size: 16px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn--dark { background: var(--ink); color: #fff; border-color: transparent; }
.btn--dark:hover { background: #24384f; }
.btn--paper { background: rgba(24, 40, 58, .07); border-color: rgba(24, 40, 58, .18); color: var(--ink); }
.btn--paper:hover { background: rgba(24, 40, 58, .13); border-color: rgba(24, 40, 58, .3); }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--panel2); border: 1px solid var(--line); font-size: 17px; transition: background .15s; }
.icon-btn:hover { background: rgba(255, 255, 255, .13); }
.icon-btn.on { background: rgba(61, 220, 151, .16); border-color: rgba(61, 220, 151, .5); }
.icon-btn.off { opacity: .55; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chip b { color: var(--text); }
.chip--gold { background: rgba(242, 193, 78, .13); border-color: rgba(242, 193, 78, .4); color: var(--gold); }
.input { width: 100%; padding: 11px 14px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line2); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 193, 78, .16); }
.input--paper { background: #fff; border-color: rgba(24, 40, 58, .2); color: var(--ink); }
label.field { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* ───── логотип ───── */
.logo { display: flex; align-items: center; gap: 10px; font: 800 20px/1 var(--serif); letter-spacing: .01em; }
.logo__mark { width: 34px; height: 34px; border-radius: 11px; background: radial-gradient(circle at 50% 38%, var(--gold) 0 32%, transparent 34%), linear-gradient(180deg, #12314a 0 58%, var(--sea) 58% 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15), 0 6px 16px rgba(0, 0, 0, .4); }
.logo small { font: 600 11px/1 var(--ui); color: var(--muted); letter-spacing: .14em; text-transform: uppercase; display: block; margin-top: 4px; }

/* ───── вход ───── */
.auth { height: 100%; display: grid; grid-template-columns: 1.15fr .85fr; }
.auth__hero { position: relative; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: linear-gradient(180deg, #0c2236 0%, #123a54 46%, #1c6f86 46.2%, #0e4257 100%); }
.auth__sun { position: absolute; left: 50%; top: 46%; width: 340px; height: 340px; margin: -170px 0 0 -170px; border-radius: 50%; background: radial-gradient(circle, #ffe7a6 0, #f2c14e 38%, rgba(242, 193, 78, 0) 70%); filter: blur(.5px); opacity: .95; }
.auth__sea { position: absolute; inset: 46% 0 0 0; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 22px), linear-gradient(180deg, rgba(242, 193, 78, .35), rgba(14, 66, 87, 0) 40%); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.auth__hero > * { position: relative; }
.auth__title { font: 800 64px/1.02 var(--serif); max-width: 560px; text-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
.auth__title em { font-style: normal; color: var(--gold); }
.auth__lead { margin-top: 18px; font-size: 17px; max-width: 480px; color: #cfe3ee; }
.auth__feats { display: flex; gap: 10px; flex-wrap: wrap; }
.auth__feats .chip { background: rgba(4, 20, 32, .5); color: #dceaf2; backdrop-filter: blur(6px); padding: 7px 13px; font-size: 13px; }
.auth__side { display: grid; place-items: center; padding: 40px; background: rgba(6, 13, 21, .6); }
.auth__card { width: min(400px, 100%); display: grid; gap: 16px; }
.auth__card h2 { font: 800 30px/1.1 var(--serif); }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 13px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.tabs button { flex: 1; padding: 8px 10px; border-radius: 10px; font-weight: 700; color: var(--muted); position: relative; }
.tabs button.active { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.tabs .badge { position: absolute; top: 3px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; line-height: 16px; }
.form-error { color: #ffb3b3; font-size: 13px; min-height: 18px; }

/* ───── лобби ───── */
.page { height: 100%; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: rgba(6, 13, 21, .55); backdrop-filter: blur(10px); flex: none; min-height: 58px; }
.topbar__sp { flex: 1; }
.lobby { flex: 1; overflow: auto; padding: 34px; }
.lobby__in { max-width: 1060px; margin: 0 auto; display: grid; gap: 26px; }
.lobby h1 { font: 800 40px/1.1 var(--serif); }
.lobby__new { display: flex; gap: 10px; padding: 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tcard { padding: 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); display: grid; gap: 14px; transition: transform .15s, border-color .15s, background .15s; }
.tcard:hover { transform: translateY(-2px); border-color: rgba(242, 193, 78, .45); background: var(--panel2); }
.tcard h3 { font: 700 20px/1.2 var(--serif); }
.tcard__seats { display: flex; gap: 6px; }
.empty { padding: 44px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r); }

/* ───── аватар ───── */
.ava { --c: #5b9bff; position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 60%, #000)); box-shadow: 0 0 0 2px rgba(8, 18, 28, .9), 0 0 0 3.5px color-mix(in srgb, var(--c) 55%, transparent); }
.ava--sm { width: 28px; height: 28px; font-size: 13px; } .ava--lg { width: 64px; height: 64px; font-size: 30px; }
.ava--empty { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1.5px var(--line2); color: var(--dim); font-size: 14px; }
.ava.speaking { animation: speak 1s ease-in-out infinite; }
@keyframes speak { 0%, 100% { box-shadow: 0 0 0 2px rgba(8, 18, 28, .9), 0 0 0 4px var(--green), 0 0 0 4px rgba(61, 220, 151, .5); } 50% { box-shadow: 0 0 0 2px rgba(8, 18, 28, .9), 0 0 0 4px var(--green), 0 0 0 11px rgba(61, 220, 151, 0); } }
.ava__dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #0b1622; background: var(--dim); }
.ava__dot.on { background: var(--green); }
.ava__mic { position: absolute; left: -4px; bottom: -4px; font-size: 11px; background: #0b1622; border-radius: 50%; width: 17px; height: 17px; display: grid; place-items: center; }

/* ───── стол: раскладка ───── */
.table { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px 350px; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; padding: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(8px); }
.boardwrap { position: relative; min-height: 0; display: grid; place-items: center; container-type: size; }
.board { position: relative; width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); }
.board svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .5)); }
.side { min-height: 0; display: flex; flex-direction: column; gap: 12px; overflow: auto; padding-right: 2px; }
.feed { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.hostbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r); background: linear-gradient(90deg, rgba(40, 28, 8, .92), rgba(22, 18, 12, .9)); border: 1px solid rgba(242, 193, 78, .28); box-shadow: 0 10px 34px rgba(0, 0, 0, .35); }
.hostbar__badge { flex: none; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; background: linear-gradient(180deg, #f7cf6a, #e0a52e); color: #2a1c02; font-weight: 800; font-size: 12px; letter-spacing: .1em; }
.hostbar__text { flex: 1; min-width: 0; }
.hostbar__line { font-size: 15.5px; font-weight: 600; color: #fff3d6; animation: fadeUp .35s ease; }
.hostbar__fact { font-size: 12px; color: #b9a67c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ───── поле (SVG) ───── */
.cell { stroke: rgba(8, 18, 28, .9); stroke-width: 3; transition: filter .2s; }
.cell--payday { fill: #1c8a66; } .cell--deal { fill: #1d3654; } .cell--doodad { fill: #8a3145; } .cell--market { fill: #9a6f1c; }
.cell--child { fill: #5e44a0; } .cell--charity { fill: #1b7381; } .cell--downsize { fill: #4a5664; }
.cell--season { fill: #c4912a; } .cell--flagship { fill: #123f52; } .cell--dream { fill: #8b3fa8; } .cell--audit { fill: #7a2f3c; } .cell--lawsuit { fill: #7a2f3c; } .cell--storm { fill: #4a5664; }
.cell.here { filter: brightness(1.45) saturate(1.15); stroke: var(--gold); stroke-width: 4; }
.cell-label { fill: rgba(255, 255, 255, .92); font: 700 13px var(--ui); text-anchor: middle; pointer-events: none; }
.cell-label--outer { font-size: 16.5px; }
.cell-emoji { font-size: 24px; text-anchor: middle; pointer-events: none; }
.cell-emoji--outer { font-size: 36px; }
.owner-dot { stroke: #08121c; stroke-width: 3; }
.ring-title { fill: rgba(255, 255, 255, .3); font: 800 12px var(--ui); letter-spacing: .32em; text-anchor: middle; }
.token { transition: transform .7s cubic-bezier(.34, 1.3, .5, 1); }
.token circle { stroke: #fff; stroke-width: 3; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .6)); }
.token text { fill: #08121c; font: 800 15px var(--ui); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.token.active circle { stroke: var(--gold); stroke-width: 4.5; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { stroke-width: 8; stroke-opacity: .55; } }

/* ───── центр поля ───── */
.center { position: absolute; left: 50%; top: 50%; width: 42%; height: 42%; transform: translate(-50%, -50%); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 6%; background: radial-gradient(circle at 50% 30%, #163650, #0b1b2b 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 0 60px rgba(54, 197, 208, .12), 0 10px 40px rgba(0, 0, 0, .5); }
.center__who { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.center__name { font: 800 clamp(18px, 3.2cqw, 30px)/1.1 var(--serif); }
.center__hint { font-size: 12.5px; color: var(--muted); max-width: 24ch; }
.dice { display: flex; gap: 10px; }
.die { width: 52px; height: 52px; border-radius: 13px; background: linear-gradient(145deg, #fff, #e6dcc6); box-shadow: 0 6px 16px rgba(0, 0, 0, .45), inset 0 -3px 0 rgba(0, 0, 0, .12); display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 8px; gap: 2px; }
.die i { border-radius: 50%; background: transparent; } .die i.on { background: #18283a; }
.die.rolling { animation: roll .6s ease; }
@keyframes roll { 0% { transform: rotate(0) scale(.6); opacity: .3; } 40% { transform: rotate(220deg) scale(1.15); } 70% { transform: rotate(340deg) scale(.95); } 100% { transform: rotate(360deg) scale(1); opacity: 1; } }

/* ───── всплывающее событие над полем и улетающие цифры ───── */
.spot { position: absolute; left: 50%; top: 3%; z-index: 6; max-width: 86%; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 16px; background: rgba(8, 18, 28, .94); border: 2px solid var(--c, var(--gold)); box-shadow: 0 12px 34px rgba(0, 0, 0, .55), 0 0 24px color-mix(in srgb, var(--c, #f2c14e) 35%, transparent); font-weight: 700; font-size: 15px; opacity: 0; transform: translate(-50%, -14px) scale(.96); transition: opacity .25s, transform .25s; pointer-events: none; }
.spot.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.spot__i { font-size: 24px; }
.pl__money { position: relative; }
.delta { position: absolute; right: 0; top: -4px; font-style: normal; font-weight: 800; font-size: 13px; white-space: nowrap; animation: fly 2s ease-out forwards; pointer-events: none; text-shadow: 0 2px 6px #000; }
@keyframes fly { 0% { opacity: 0; transform: translateY(6px) scale(.8); } 15% { opacity: 1; transform: translateY(-8px) scale(1.15); } 100% { opacity: 0; transform: translateY(-30px); } }
.pl.turn { animation: turnglow 1.6s ease-in-out infinite; }
@keyframes turnglow { 50% { box-shadow: 0 0 0 2px rgba(242, 193, 78, .35), 0 0 18px rgba(242, 193, 78, .25); } }

/* ───── сцена: карточка поверх поля ───── */
.stage { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 5; }
.stage > * { pointer-events: auto; animation: pop .28s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
.noanim > *, .noanim .modal__box { animation: none !important; }
.stage__box { width: min(370px, 86%); max-height: 96%; overflow: auto; display: grid; gap: 10px; }
.stage__box--wide { width: min(560px, 94%); }
.stage__box--xl { width: min(760px, 99%); }
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pick { display: grid; gap: 6px; align-content: start; justify-items: start; text-align: left; padding: 12px; border-radius: 16px; background: #fff; color: var(--ink); border: 2px solid rgba(24, 40, 58, .12); transition: transform .12s, border-color .15s, box-shadow .15s; }
.pick:hover { transform: translateY(-2px); border-color: rgba(24, 40, 58, .35); }
.pick.sel { border-color: var(--gold2); box-shadow: 0 0 0 3px rgba(242, 193, 78, .35), 0 10px 24px rgba(24, 40, 58, .16); background: #fffdf5; }
.pick b { font: 800 16px/1.15 var(--serif); } .pick i { font-style: normal; font-size: 11.5px; color: var(--ink2); line-height: 1.35; }
.pick__e { font-size: 30px; line-height: 1; } .pick__tier { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.pick__rows { display: grid; gap: 2px; width: 100%; font-size: 12.5px; color: var(--ink2); } .pick__rows span { display: flex; justify-content: space-between; gap: 8px; } .pick__rows b { font: 800 12.5px var(--ui); color: var(--ink); }
.pick--dream { grid-template-columns: auto 1fr; column-gap: 10px; } .pick--dream .pick__e { grid-row: span 2; } .pick--dream i { grid-column: 1 / -1; } .pick--dream .num { font-weight: 800; font-size: 13px; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mode { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1.5px solid var(--line); text-align: left; transition: border-color .15s, background .15s; }
.mode:not(:disabled):hover { border-color: var(--line2); background: var(--panel2); } .mode:disabled { cursor: default; }
.mode.sel { border-color: var(--gold); background: rgba(242, 193, 78, .1); }
.mode b { font-weight: 800; } .mode span { font-size: 12px; color: var(--gold); font-weight: 700; } .mode i { font-style: normal; font-size: 12px; color: var(--muted); }
.guide { display: grid; gap: 18px; } .guide h3 { font: 800 18px/1.2 var(--serif); margin-bottom: 6px; } .guide p, .guide li { color: #c9d6e3; font-size: 14px; line-height: 1.55; }
.guide ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; } .guide b { color: var(--text); }
.guide__cells { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; } .guide__cells div { display: flex; gap: 8px; font-size: 13.5px; color: #c9d6e3; } .guide__cells i { font-style: normal; flex: none; width: 22px; text-align: center; }
.stage__close { position: absolute; top: -10px; right: -10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); font-size: 14px; }
.gcard { position: relative; background: var(--paper); color: var(--ink); border-radius: 20px; box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .5) inset; overflow: visible; }
.gcard__in { border-radius: 20px; overflow: hidden; }
.gcard__band { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 16px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: #1d3654; }
.gcard--business .gcard__band { background: linear-gradient(90deg, #1d3654, #2c5d8a); } .gcard--realty .gcard__band { background: linear-gradient(90deg, #14584f, #1f8a78); }
.gcard--stock .gcard__band { background: linear-gradient(90deg, #3a2a78, #6a4fc4); } .gcard--doodad .gcard__band { background: linear-gradient(90deg, #7a2438, #c2445c); }
.gcard--market .gcard__band { background: linear-gradient(90deg, #7d5510, #c98f1f); } .gcard--flagship .gcard__band { background: linear-gradient(90deg, #0d3a4c, #1a8ea1); }
.gcard--dream .gcard__band { background: linear-gradient(90deg, #5a257a, #b356d6); } .gcard--info .gcard__band { background: linear-gradient(90deg, #1b3350, #36506e); }
.gcard__band span:last-child { font-weight: 700; letter-spacing: .02em; text-transform: none; opacity: .9; text-align: right; }
.gcard__body { padding: 16px 18px 18px; display: grid; gap: 10px; }
.gcard__head { display: flex; gap: 14px; align-items: center; }
.gcard__art { flex: none; width: 66px; height: 66px; border-radius: 18px; display: grid; place-items: center; font-size: 36px; background: linear-gradient(145deg, #fff, #efe4c8); box-shadow: inset 0 0 0 1px rgba(24, 40, 58, .1), 0 6px 14px rgba(24, 40, 58, .12); }
.gcard h3 { font: 800 21px/1.15 var(--serif); }
.gcard p { color: var(--ink2); font-size: 13.5px; }
.gcard__rows { display: grid; gap: 0; border-top: 1px dashed rgba(24, 40, 58, .2); }
.gcard__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(24, 40, 58, .2); font-size: 13.5px; }
.gcard__rows span { color: var(--ink2); } .gcard__rows b { font-weight: 800; }
.gcard .pos { color: #128a55; } .gcard .neg { color: #c43c3c; }
.gcard__actions { display: flex; gap: 8px; flex-wrap: wrap; } .gcard__actions .btn { flex: 1; }
.gcard__note { font-size: 12.5px; color: var(--ink2); text-align: center; padding: 8px 10px; border-radius: 10px; background: rgba(24, 40, 58, .06); }
.range { height: 8px; border-radius: 6px; background: linear-gradient(90deg, #2bb673, #e8c34a, #d9534f); position: relative; margin: 6px 0 2px; }
.range i { position: absolute; top: -4px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.qty { display: flex; gap: 6px; align-items: center; } .qty .input { text-align: center; font-weight: 800; }
.bignum { font: 800 34px/1 var(--ui); letter-spacing: -.01em; }
.auc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auc__bidders { display: grid; gap: 6px; align-content: start; }
.auc__b { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(24, 40, 58, .06); font-size: 13px; font-weight: 700; }
.auc__b.lead { background: rgba(18, 138, 85, .14); box-shadow: inset 0 0 0 1.5px rgba(18, 138, 85, .5); } .auc__b.out { opacity: .45; }
.auc__b span:last-child { margin-left: auto; font-weight: 600; color: var(--ink2); }
.timer { height: 6px; border-radius: 4px; background: rgba(24, 40, 58, .12); overflow: hidden; } .timer i { display: block; height: 100%; background: linear-gradient(90deg, #e0a52e, #c43c3c); transform-origin: left; }
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choose button { padding: 18px 14px; border-radius: 18px; background: var(--paper); color: var(--ink); text-align: left; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); transition: transform .15s; display: grid; gap: 6px; }
.choose button:hover { transform: translateY(-4px) rotate(-.6deg); } .choose button:last-child:hover { transform: translateY(-4px) rotate(.6deg); }
.choose b { font: 800 19px/1.1 var(--serif); } .choose span { font-size: 12.5px; color: var(--ink2); } .choose i { font-style: normal; font-size: 30px; }

/* ───── кошелёк и игроки ───── */
.wallet { padding: 16px; display: grid; gap: 12px; }
.wallet__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.wallet__cash { white-space: nowrap; }
.wallet__label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wallet__cash { font: 800 30px/1.1 var(--ui); letter-spacing: -.01em; transition: color .3s; }
.wallet__cash.up { color: var(--green); } .wallet__cash.down { color: var(--red); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 9px 10px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.stat span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .stat b { font-size: 14.5px; font-weight: 800; }
.progress { display: grid; gap: 6px; } .progress__row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.bar { height: 9px; border-radius: 6px; background: rgba(0, 0, 0, .35); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); } .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--sea), var(--green)); transition: width .6s; }
.bar--gold i { background: linear-gradient(90deg, var(--gold2), var(--gold)); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; } .actions .btn { flex: 1; }
.side > * { min-width: 0; flex: none; }
.players { padding: 8px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.players__title { display: flex; justify-content: space-between; padding: 8px 8px 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pl { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 13px; text-align: left; width: 100%; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.pl:hover { background: var(--panel2); } .pl.turn { background: rgba(242, 193, 78, .09); border-color: rgba(242, 193, 78, .4); }
.pl__main { flex: 1; min-width: 0; } .pl__name { font-weight: 800; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl__main { overflow: hidden; } .pl__money { flex: none; }
.pl__sub { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl__money { text-align: right; } .pl__money b { display: block; font-weight: 800; } .pl__money span { font-size: 11.5px; }
.tag { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: var(--muted); }
.tag--gold { background: rgba(242, 193, 78, .2); color: var(--gold); } .tag--sea { background: rgba(54, 197, 208, .18); color: var(--sea); }
.offer { padding: 12px; border-radius: 14px; background: linear-gradient(180deg, rgba(180, 140, 255, .16), rgba(180, 140, 255, .07)); border: 1px solid rgba(180, 140, 255, .45); display: grid; gap: 8px; }
.offer__t { font-weight: 800; } .offer__d { font-size: 13px; color: #d9cfee; }

/* ───── лента: журнал, чат, ведущий ───── */
.feed__tabs { padding: 10px 10px 0; }
.feed__body { flex: 1; min-height: 0; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.feed__body > * { flex: none; }
.log { padding: 8px 11px; border-radius: 11px; background: rgba(0, 0, 0, .2); border-left: 3px solid var(--c, var(--line2)); font-size: 13px; }
.log small { display: block; font-size: 10.5px; color: var(--dim); font-weight: 700; letter-spacing: .06em; }
.msg { display: flex; gap: 8px; align-items: flex-end; } .msg.me { flex-direction: row-reverse; }
.msg__b { max-width: 82%; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--panel2); border: 1px solid var(--line); font-size: 13.5px; }
.msg.me .msg__b { border-radius: 14px 14px 4px 14px; background: rgba(54, 197, 208, .16); border-color: rgba(54, 197, 208, .35); }
.msg__n { font-size: 11px; font-weight: 800; color: var(--c, var(--muted)); }
.msg--phrase .msg__b { font-weight: 800; font-size: 14.5px; background: rgba(242, 193, 78, .13); border-color: rgba(242, 193, 78, .4); }
.msg--system { justify-content: center; font-size: 12px; color: var(--dim); text-align: center; }
.hostmsg { padding: 10px 12px; border-radius: 12px; background: rgba(242, 193, 78, .08); border: 1px solid rgba(242, 193, 78, .22); display: grid; gap: 4px; }
.hostmsg p { font-weight: 600; color: #ffeec4; } .hostmsg small { color: #a8966d; font-size: 11.5px; } .hostmsg button { justify-self: start; }
.feed__foot { flex: none; padding: 10px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.chatrow { display: flex; gap: 6px; }
.phrases { display: flex; gap: 5px; flex-wrap: wrap; max-height: 96px; overflow: auto; }
.phrases button { padding: 4px 9px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); font-size: 12px; font-weight: 700; transition: transform .1s, background .15s; }
.phrases button:hover { background: rgba(242, 193, 78, .18); border-color: rgba(242, 193, 78, .5); } .phrases button:active { transform: scale(.94); }

/* ───── посадка перед партией ───── */
.seating { width: min(760px, 100%); display: grid; gap: 22px; text-align: center; padding: 20px; }
.seating h2 { font: 800 34px/1.1 var(--serif); }
.seats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.seat { padding: 18px 8px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 8px; justify-items: center; min-height: 150px; align-content: center; }
.seat.mine { border-color: rgba(242, 193, 78, .6); background: rgba(242, 193, 78, .08); }
.seat b { font-weight: 800; } .seat span { font-size: 12px; color: var(--muted); }
.seating__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ───── модальные окна ───── */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(3, 8, 14, .66); backdrop-filter: blur(5px); animation: fade .18s; }
@keyframes fade { from { opacity: 0; } }
.modal__box { width: min(var(--w, 560px), 100%); max-height: 92vh; overflow: auto; border-radius: 22px; background: #0f2032; border: 1px solid var(--line2); box-shadow: var(--shadow); animation: pop .25s; }
.modal__head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #0f2032; z-index: 1; }
.modal__head h2 { font: 800 22px/1.15 var(--serif); } .modal__head .sp { flex: 1; }
.modal__body { padding: 18px 20px 22px; display: grid; gap: 16px; }
.sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sheet h4 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.rows { display: grid; } .rows > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; } .rows > div:last-child { border-bottom: 0; }
.rows .total { font-weight: 800; border-top: 1px solid var(--line2); }
.asset { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.asset__e { font-size: 22px; width: 30px; text-align: center; } .asset__m { flex: 1; min-width: 0; } .asset__m b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .asset__m span { font-size: 12px; color: var(--muted); }
.asset label { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
.asset input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gold); }
.list { display: grid; gap: 6px; align-content: start; }
.trade { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.amounts { display: flex; gap: 6px; flex-wrap: wrap; }
.win { text-align: center; padding: 26px; display: grid; gap: 12px; } .win__cup { font-size: 64px; } .win h2 { font: 800 30px/1.1 var(--serif); }

/* ───── всплывающие сообщения ───── */
#toasts { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; pointer-events: none; }
.toast { padding: 10px 16px; border-radius: 12px; background: #2a1420; border: 1px solid rgba(255, 107, 107, .5); color: #ffd0d0; font-weight: 700; box-shadow: var(--shadow); animation: pop .25s; }
.toast--ok { background: #0f2a22; border-color: rgba(61, 220, 151, .5); color: #c8f5e1; }

/* ───── адаптив ───── */
@media (max-width: 1280px) { .table { grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr) auto; } .boardwrap { grid-row: 1 / 3; } .hostbar { grid-row: 3; } }
@media (max-width: 860px) {
  body { overflow: auto; } .page { height: auto; min-height: 100%; }
  .table { display: flex; flex-direction: column; } .boardwrap { height: 96vw; flex: none; } .feed { height: 460px; flex: none; } .side { overflow: visible; }
  .auth { grid-template-columns: 1fr; } .auth__hero { padding: 28px; min-height: 300px; } .auth__title { font-size: 40px; }
  .seats { grid-template-columns: repeat(2, 1fr); } .sheet, .trade, .auc { grid-template-columns: 1fr; }
  .hostbar { flex-wrap: wrap; }
  .topbar { flex-wrap: wrap; gap: 8px; padding: 8px 12px; } .topbar__sp { display: none; }
  /* на телефоне карточка выезжает снизу, как шторка */
  .stage { position: fixed; inset: auto 0 0 0; padding: 10px; z-index: 30; align-items: end; }
  .stage__box, .stage__box--wide { width: 100%; max-height: 78vh; }
  .stage__close { top: 6px; right: 6px; }
  .choose { grid-template-columns: 1fr 1fr; }
  .picks, .modes, .guide__cells { grid-template-columns: 1fr; }
}
