:root {
  --bg: #070B16; --bar: #0B1122; --card: #111A31; --card2: #0E1528; --card3: #16213F;
  --line: #1B2440; --line2: #22305A; --line3: #1F2A4A;
  --text: #E9EDF8; --muted: #9AA3BF; --dim: #6B7493;
  --gold: #F5B83D; --gold-soft: #FFD27A; --gold-ink: #2A1C00; --gold-deep: #2A2208;
  --green: #3DDC97; --green-ink: #04341F; --purple: #B9A4FF; --purple-ink: #1E1638; --red: #E2463B; --flame: #FF8A5C;
  --felt: #0F5A3E; --felt-line: #1C7A55; --wood: #5A3A1E;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.4 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; overscroll-behavior: none; }
body { overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .display { font-family: Sora, Inter, sans-serif; letter-spacing: -0.5px; margin: 0; }
[hidden] { display: none !important; }
.app { position: fixed; inset: 0; max-width: 480px; margin: 0 auto; overflow: hidden; background: var(--bg); }
@media (min-width: 481px) { .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.screen.pad { padding: calc(56px + var(--safe-top)) 22px calc(28px + var(--safe-bottom)); }
.scroll { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.grow { flex-grow: 1; }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.center { text-align: center; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.title { font-family: Sora, sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -0.5px; }

/* landing (welcome) */
.app.wide { max-width: none; border: 0; }
.screen.landing { overflow-y: auto; -webkit-overflow-scrolling: touch; display: block; padding: 0 0 calc(24px + var(--safe-bottom)); scroll-behavior: smooth; }
.lp-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: calc(14px + var(--safe-top)) 22px 14px; background: rgba(7,11,22,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.lp-jump { background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 14px; border-radius: 12px; padding: 9px 14px; }
.lp-hero { display: flex; flex-direction: column; gap: 26px; padding: 26px 22px 10px; max-width: 1180px; margin: 0 auto; }
.lp-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--green); background: #0B1A14; border: 1px solid #16352A; border-radius: 999px; padding: 6px 12px; }
.lp-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.landing .headline { margin-top: 16px; }
.lp-form { margin-top: 22px; background: var(--card2); border: 1px solid var(--line); border-radius: 20px; padding: 16px; scroll-margin-top: 80px; }
.lp-visual { display: flex; flex-direction: column; gap: 14px; }
.landing .hero-table { margin-top: 0; height: 230px; }
.landing .hero-table .b { margin: -11px 0 0 -11px; }
.landing .hero-table .b.roll { animation: roll 3.2s cubic-bezier(.2,.7,.3,1) infinite; }
@keyframes roll { 0%, 15% { left: 22%; } 55%, 100% { left: 60%; } }
.landing .hero-table .cue { top: 44%; animation: cue 3.2s ease-in-out infinite; }
@keyframes cue { 0% { left: -40px; } 10% { left: -60px; } 15% { left: -8px; } 100% { left: -8px; } }
.lp-vs { display: flex; align-items: center; justify-content: space-between; background: var(--card2); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; }
.lp-vs > div { display: flex; align-items: center; gap: 10px; }
.lp-vs > div:last-child { flex-direction: row-reverse; text-align: right; }
.lp-vs b { font-size: 14px; display: block; } .lp-vs em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--gold); }
.lp-vs strong { font-family: Sora, sans-serif; font-weight: 800; color: var(--red); }
.lp-sec { max-width: 1180px; margin: 0 auto; padding: 30px 22px 0; }
.lp-sec h2 { font-family: Sora, sans-serif; font-weight: 800; font-size: 24px; margin-bottom: 14px; }
.lp-steps { display: grid; gap: 12px; }
.lp-steps > div { background: var(--card); border-radius: 18px; padding: 16px; }
.lp-steps span { display: inline-flex; width: 30px; height: 30px; border-radius: 10px; background: var(--gold); color: var(--gold-ink); font-family: Sora, sans-serif; font-weight: 800; align-items: center; justify-content: center; }
.lp-steps b, .lp-features b { display: block; font-family: Sora, sans-serif; font-size: 17px; margin-top: 10px; }
.lp-steps p, .lp-features p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.lp-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lp-game { background: var(--card); border-radius: 16px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.lp-game i { width: 38px; height: 38px; border-radius: 12px; }
.lp-game b { font-size: 12px; font-weight: 600; }
.lp-game span { font-size: 10px; font-weight: 700; color: var(--dim); }
.lp-game span.live { color: var(--green); }
.lp-features { display: grid; gap: 12px; }
.lp-features > div { background: var(--card2); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.lp-features b { margin-top: 0; color: var(--gold); }
.lp-cta { max-width: 760px; margin: 34px auto 0; padding: 26px 22px; text-align: center; }
.lp-cta h2 { font-family: Sora, sans-serif; font-weight: 800; font-size: 26px; margin-bottom: 16px; }
.lp-foot { max-width: 1180px; margin: 20px auto 0; padding: 18px 22px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: 12px; color: var(--dim); }
@media (min-width: 900px) {
  .lp-top { padding-left: max(22px, calc((100% - 1180px) / 2 + 22px)); padding-right: max(22px, calc((100% - 1180px) / 2 + 22px)); }
  .lp-hero { flex-direction: row; align-items: center; gap: 56px; padding-top: 64px; padding-bottom: 20px; }
  .lp-copy { flex: 1 1 0; min-width: 0; }
  .lp-visual { flex: 1 1 0; min-width: 0; }
  .landing .headline { font-size: 60px; letter-spacing: -2.5px; }
  .landing .lede { font-size: 17px; max-width: 520px; }
  .lp-form { max-width: 440px; }
  .landing .hero-table { height: 340px; }
  .landing .hero-table .b { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
  .lp-sec { padding-top: 56px; }
  .lp-sec h2 { font-size: 30px; }
  .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .lp-games { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lp-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .lp-cta { margin-top: 56px; }
}

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; border-radius: 16px; font-family: Sora, sans-serif; font-weight: 700; font-size: 17px; transition: transform .08s ease, filter .15s; user-select: none; -webkit-user-select: none; }
.btn:active { transform: scale(.98); }
.btn.gold { background: var(--gold); color: var(--gold-ink); }
.btn.gold:disabled { background: #6E5A2E; color: #2A1C00; cursor: default; }
.btn.ghost { height: 50px; border-radius: 14px; border: 1px solid var(--line2); font-family: Inter, sans-serif; font-weight: 600; font-size: 14px; }
.btn.dark { height: 50px; border-radius: 14px; background: var(--card); font-family: Inter, sans-serif; font-weight: 600; font-size: 14px; }
.btn.purple { background: var(--purple); color: var(--purple-ink); }
.row2 { display: flex; gap: 10px; width: 100%; margin-top: 10px; }
.row2 > * { flex: 1; }
.back { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.back.on-card { background: var(--card); }
.link-gold { color: var(--gold); font-weight: 500; font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rank-chip { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tag-soon { position: absolute; top: 5px; right: 5px; font-size: 8px; line-height: 1.2; font-weight: 700; letter-spacing: .4px; color: var(--muted); background: var(--line3); border-radius: 6px; padding: 2px 5px; }
.tag-live { position: absolute; top: 5px; right: 5px; font-size: 8px; line-height: 1.2; font-weight: 700; letter-spacing: .4px; color: var(--green-ink); background: var(--green); border-radius: 6px; padding: 2px 5px; }

/* avatars */
.av { display: flex; align-items: center; justify-content: center; font-family: Sora, sans-serif; font-weight: 800; color: #fff; flex-shrink: 0; }
.av.s40 { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; }
.av.s34 { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.av.s56 { width: 56px; height: 56px; border-radius: 18px; font-size: 19px; }
.av.s80 { width: 80px; height: 80px; border-radius: 26px; font-size: 24px; }
.av.s96 { width: 96px; height: 96px; border-radius: 30px; font-size: 30px; border: 4px solid var(--gold); }

/* welcome */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--gold); display: flex; align-items: center; justify-content: center; }
.brand-name { font-family: Sora, sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.5px; }
.brand-name span { color: var(--gold); }
.hero-table { margin-top: 30px; height: 230px; border-radius: 28px; background: var(--felt); border: 10px solid var(--wood); position: relative; flex-shrink: 0; overflow: hidden; }
.hero-table .ring { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 1.5px solid var(--felt-line); }
.hero-table .b { position: absolute; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset -3px -4px 6px rgba(0,0,0,.35), inset 3px 3px 5px rgba(255,255,255,.25); }
.hero-table .cue { position: absolute; left: -8px; top: 96px; width: 108px; height: 5px; border-radius: 3px; background: #C9A26B; transform: rotate(-8deg); }
.hero-table .pill { position: absolute; right: 14px; bottom: 14px; background: var(--bg); color: var(--green); font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.headline { font-family: Sora, sans-serif; font-weight: 800; font-size: 38px; line-height: 1.04; letter-spacing: -1.5px; margin: 28px 0 0; }
.headline span { color: var(--gold); }
.lede { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.field input { height: 52px; border-radius: 14px; border: 1px solid var(--line3); background: var(--bar); color: var(--text); padding: 0 14px; font-size: 16px; outline: none; }
.field input:focus { border-color: var(--gold); }
.form-error { color: #FF8A80; font-size: 13px; min-height: 18px; margin-top: 6px; }
.fine { margin: 14px 0 0; text-align: center; font-size: 11px; color: var(--dim); }
.invite-note { background: var(--purple-ink); border: 1px solid #3B2D6B; color: var(--purple); border-radius: 14px; padding: 10px 12px; font-size: 13px; margin-top: 18px; }

/* home */
.topbar { padding: calc(14px + var(--safe-top)) 18px 0; flex-shrink: 0; }
.topbar .in { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.me-mini { display: flex; align-items: center; gap: 10px; min-width: 0; }
.me-mini .nm { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.me-mini .rk { font-size: 11px; color: var(--gold); font-weight: 600; text-transform: uppercase; }
.balances { display: flex; gap: 6px; }
.home-body { padding: 16px 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.play-card { display: block; background: var(--gold); color: var(--gold-ink); border-radius: 22px; padding: 18px; position: relative; overflow: hidden; text-align: left; width: 100%; }
.play-card .k { font-size: 12px; font-weight: 600; letter-spacing: .5px; }
.play-card .t { font-family: Sora, sans-serif; font-weight: 800; font-size: 30px; letter-spacing: -1px; margin-top: 4px; }
.play-card .s { font-size: 13px; margin-top: 4px; }
.play-card .moon { position: absolute; right: -18px; top: -18px; width: 120px; height: 120px; border-radius: 50%; background: var(--gold-soft); }
.play-card .eight { position: absolute; right: 22px; top: 26px; width: 44px; height: 44px; border-radius: 50%; background: #141414; color: #fff; display: flex; align-items: center; justify-content: center; font-family: Sora, sans-serif; font-weight: 800; box-shadow: inset -4px -5px 8px rgba(0,0,0,.6), inset 3px 3px 6px rgba(255,255,255,.18); }
.play-card .eight i { width: 24px; height: 24px; border-radius: 50%; background: #F4F1E8; color: #141414; font-style: normal; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.sec { display: flex; justify-content: space-between; align-items: baseline; }
.sec b { font-family: Sora, sans-serif; font-weight: 600; font-size: 16px; }
.sec span { font-size: 12px; color: var(--muted); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; background: var(--card); border-radius: 16px; padding: 22px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; text-align: center; }
.tile.soon .ic { opacity: .55; }
.tile.soon .lb { color: var(--muted); }
.ic { width: 34px; height: 34px; flex-shrink: 0; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.mission-card { display: flex; align-items: center; justify-content: space-between; background: var(--card); border-radius: 14px; padding: 12px; width: 100%; text-align: left; gap: 12px; }
.bar { height: 6px; background: var(--line3); border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--purple); border-radius: 3px; transition: width .4s; }

/* tab bar */
.tabs { display: flex; justify-content: space-around; align-items: center; height: calc(68px + var(--safe-bottom)); padding-bottom: calc(6px + var(--safe-bottom)); background: var(--bar); border-top: 1px solid #18213B; font-size: 11px; color: var(--dim); flex-shrink: 0; }
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 56px; padding: 6px 0; color: inherit; font-size: 11px; }
.tabs button i { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--dim); display: block; }
.tabs button.on { color: var(--gold); }
.tabs button.on i { background: var(--gold); border-color: var(--gold); }

/* modes */
.mode-hero { height: 230px; background: var(--felt); position: relative; flex-shrink: 0; overflow: hidden; }
.mode-hero .rail { position: absolute; inset: 0; border: 12px solid var(--wood); border-top: 0; }
.mode-hero .b { position: absolute; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset -3px -4px 6px rgba(0,0,0,.35), inset 3px 3px 5px rgba(255,255,255,.25); }
.mode-hero .back { position: absolute; left: 18px; top: calc(14px + var(--safe-top)); }
.mode-hero .cap { position: absolute; left: 24px; bottom: 22px; }
.mode-hero .cap .k { font-size: 12px; font-weight: 600; color: #A7E8C9; }
.mode-hero .cap .t { font-family: Sora, sans-serif; font-weight: 800; font-size: 32px; letter-spacing: -1px; }
.modes { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.mode { display: flex; align-items: center; justify-content: space-between; width: 100%; border-radius: 14px; padding: 12px 14px; text-align: left; min-height: 58px; background: var(--card2); border: 2px solid var(--line); }
.mode.on { background: var(--card3); border-color: var(--gold); }
.mode.off { opacity: .55; }
.mode .n { font-size: 15px; font-weight: 600; display: block; }
.mode .s { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }
.mode .tg { font-size: 12px; font-weight: 700; flex-shrink: 0; margin-left: 10px; }
.join-row { display: flex; gap: 8px; }
.join-row input { flex: 1; min-width: 0; height: 48px; border-radius: 12px; border: 1px solid var(--line3); background: var(--bar); color: var(--text); padding: 0 12px; font-size: 16px; letter-spacing: 3px; text-transform: uppercase; outline: none; font-weight: 700; }
.join-row input::placeholder { letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--dim); }
.join-row button { height: 48px; border-radius: 12px; background: var(--purple); color: var(--purple-ink); font-weight: 700; padding: 0 18px; font-size: 14px; }
.cta-wrap { padding: 0 18px calc(22px + var(--safe-bottom)); flex-shrink: 0; }

/* searching */
.radar { position: relative; width: 260px; height: 260px; margin: 40px auto 0; flex-shrink: 0; }
.radar .r { position: absolute; border-radius: 50%; }
.radar .r1 { inset: 0; border: 1px solid var(--line); }
.radar .r2 { inset: 38px; border: 1px solid var(--line2); }
.radar .r3 { inset: 76px; border: 2px solid var(--gold); animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.radar .me { position: absolute; left: 90px; top: 90px; }
.radar .dot { position: absolute; border-radius: 9px; animation: drift 3s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateY(-4px); } to { transform: translateY(5px); } }
.timer { font-family: Sora, sans-serif; font-weight: 800; font-size: 36px; color: var(--gold); margin-top: 30px; }
.card-row { width: 100%; background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-row button { color: var(--gold); font-weight: 700; font-size: 14px; flex-shrink: 0; }

/* rival found */
.versus { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 40px; }
.versus .side { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 130px; text-align: center; }
.versus .nm { font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.versus .vs { font-family: Sora, sans-serif; font-weight: 800; font-size: 28px; color: var(--red); }
.info-card { width: 100%; background: var(--card2); border: 1px solid var(--line); border-radius: 20px; padding: 18px; margin-top: 36px; }
.info-card .lines { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; font-size: 13px; }
.info-card .lines div { display: flex; justify-content: space-between; gap: 10px; }
.count { font-family: Sora, sans-serif; font-weight: 800; font-size: 56px; color: var(--gold); line-height: 1; }

/* private room */
.code-card { background: var(--card2); border: 1px solid var(--line); border-radius: 20px; padding: 20px; text-align: center; margin-top: 22px; }
.code { font-family: Sora, sans-serif; font-weight: 800; font-size: 44px; letter-spacing: 6px; color: var(--purple); margin: 6px 0 4px; }
.share-row { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.share-row button { background: var(--card); border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 600; }
.kv { background: var(--card); border-radius: 16px; padding: 4px 14px; margin-top: 12px; }
.kv > div { display: flex; justify-content: space-between; padding: 11px 0; font-size: 13px; border-bottom: 1px solid var(--line); gap: 10px; }
.kv > div:last-child { border-bottom: 0; }
.kv > div span:first-child { color: var(--muted); }
.seats2 { display: flex; gap: 10px; margin-top: 12px; }
.seats2 > div { flex: 1; background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; text-align: center; }
.seats2 .wait { border-style: dashed; color: var(--muted); }
.ghost-av { width: 56px; height: 56px; border-radius: 18px; border: 2px dashed var(--line2); animation: pulse 1.6s infinite; }

/* match */
.match { background: #06120D; }
.hud { padding: calc(10px + var(--safe-top)) 12px 8px; display: flex; align-items: center; justify-content: space-between; background: var(--bg); flex-shrink: 0; gap: 6px; }
.hud .pl { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.hud .pl.right { flex-direction: row-reverse; text-align: right; }
.hud .pl .nm { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.hud .pl.turn .av { box-shadow: 0 0 0 2px var(--gold); }
.hud .dots { display: flex; gap: 3px; margin-top: 4px; }
.hud .pl.right .dots { justify-content: flex-end; }
.hud .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line3); display: block; }
.hud .mid { text-align: center; flex-shrink: 0; }
.hud .mid .k { font-size: 10px; color: var(--muted); letter-spacing: .5px; }
.hud .mid .v { font-family: Sora, sans-serif; font-weight: 800; color: var(--green); font-size: 13px; }
.hud .menu { width: 30px; height: 30px; border-radius: 9px; background: var(--card); display: flex; align-items: center; justify-content: center; margin-top: 4px; }
.clock { height: 4px; background: var(--line3); flex-shrink: 0; }
.clock i { display: block; height: 4px; width: 100%; background: var(--gold); transform-origin: left; }
.clock.low i { background: var(--red); }
.status { text-align: center; font-size: 12px; color: var(--gold); font-weight: 600; padding: 7px 10px; flex-shrink: 0; min-height: 32px; }
.status.theirs { color: var(--muted); }
.table-wrap { flex: 1 1 auto; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 8px; }
.table-wrap canvas { display: block; touch-action: none; }
.banner { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: min(300px, 84%); background: rgba(7, 11, 22, .94); border: 1px solid var(--line2); border-radius: 16px; padding: 14px 16px; text-align: center; pointer-events: none; }
.banner b { display: block; font-family: Sora, sans-serif; font-size: 18px; }
.banner span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.banner.foul { border-color: var(--red); }
.banner.foul b { color: #FF8A80; }
.banner.info b { color: var(--gold); }
.call-hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 12px; padding: 6px 12px; border-radius: 999px; pointer-events: none; white-space: nowrap; }
.controls { padding: 8px 14px calc(14px + var(--safe-bottom)); display: flex; align-items: center; gap: 8px; flex-shrink: 0; background: #06120D; }
.controls.off { opacity: .4; pointer-events: none; }
.nudge { width: 40px; height: 52px; border-radius: 12px; background: var(--card); display: flex; align-items: center; justify-content: center; flex-shrink: 0; touch-action: none; }
.power { flex: 1; min-width: 0; touch-action: none; padding: 6px 0; }
.power .lb { font-size: 11px; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; }
.power .track { height: 16px; border-radius: 8px; background: var(--line3); position: relative; overflow: hidden; }
.power .track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: linear-gradient(90deg, #C98A1C, var(--gold)); }
.shoot { width: 64px; height: 64px; border-radius: 20px; background: var(--gold); color: var(--gold-ink); font-family: Sora, sans-serif; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.shoot:active { transform: scale(.96); }
.sheet-back { position: absolute; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; z-index: 30; }
.sheet { width: 100%; background: var(--bar); border-top: 1px solid var(--line2); border-radius: 22px 22px 0 0; padding: 20px 18px calc(22px + var(--safe-bottom)); }
.sheet h3 { font-size: 19px; }
.sheet p { color: var(--muted); font-size: 14px; margin: 8px 0 16px; line-height: 1.5; }

/* result */
.result { align-items: center; padding: calc(64px + var(--safe-top)) 22px calc(24px + var(--safe-bottom)); }
.result .halo1, .result .halo2 { position: absolute; left: 50%; border-radius: 50%; pointer-events: none; }
.result .halo1 { top: 30px; width: 420px; height: 420px; margin-left: -210px; border: 1px solid var(--line); }
.result .halo2 { top: 90px; width: 300px; height: 300px; margin-left: -150px; border: 1px solid var(--line2); }
.result > * { position: relative; }
.big-win { font-family: Sora, sans-serif; font-weight: 800; font-size: 54px; letter-spacing: -2px; margin-top: 10px; line-height: 1.05; }
.stats3 { display: flex; gap: 10px; margin-top: 30px; width: 100%; }
.stats3 > div { flex: 1; background: var(--card); border-radius: 16px; padding: 14px 6px; text-align: center; min-width: 0; }
.stats3 .k { font-size: 11px; color: var(--muted); }
.stats3 .v { font-family: Sora, sans-serif; font-weight: 800; font-size: 18px; margin-top: 4px; }
.stats3 .s { font-size: 11px; color: var(--muted); }
.claim-card { width: 100%; margin-top: 12px; background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.claim-card button { background: var(--purple); color: var(--purple-ink); font-size: 12px; font-weight: 700; border-radius: 10px; padding: 8px 12px; flex-shrink: 0; }
.claim-card button:disabled { background: var(--line3); color: var(--muted); }
.defeat { background: #0D0A14; }
.defeat .stats-card { width: 100%; margin-top: 28px; background: #16111F; border-radius: 18px; padding: 16px; }
.defeat .stats-card > div { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; }
.defeat .stats-card > div b { font-weight: 700; }
.defeat .btn.ghost { border-color: #2A2238; }

/* lists, me, settings */
.page-head { padding: calc(14px + var(--safe-top)) 18px 6px; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.page-head .title { font-size: 22px; }
.filters { display: flex; gap: 8px; padding: 10px 18px; overflow-x: auto; flex-shrink: 0; }
.filters button { background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--muted); }
.filters button.on { background: var(--gold); color: var(--gold-ink); }
.game-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 6px 18px 20px; }
.game-row { position: relative; background: var(--card); border-radius: 16px; padding: 12px; display: flex; align-items: center; gap: 10px; text-align: left; min-height: 64px; }
.game-row .n { font-size: 13px; font-weight: 600; }
.game-row .s { font-size: 11px; color: var(--muted); }
.game-row.soon .ic { opacity: .55; }
.game-row .tag-soon, .game-row .tag-live { top: 8px; right: 8px; }
.profile { padding: calc(20px + var(--safe-top)) 18px 0; display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.profile .nm { font-family: Sora, sans-serif; font-weight: 800; font-size: 20px; }
.profile .sub { font-size: 12px; font-weight: 600; color: var(--gold); text-transform: uppercase; margin-top: 2px; }
.profile .w { font-size: 12px; color: var(--muted); margin-top: 2px; }
.wallet-card { margin: 16px 18px 0; background: linear-gradient(135deg, #16213F, #0E1528); border: 1px solid var(--line2); border-radius: 20px; padding: 16px; }
.wallet-card .big { font-family: Sora, sans-serif; font-weight: 800; font-size: 30px; margin-top: 4px; }
.wallet-card .row { display: flex; gap: 14px; font-size: 13px; margin-top: 4px; }
.wallet-card .note { font-size: 11px; color: var(--dim); margin-top: 12px; line-height: 1.5; }
.stat-row { display: flex; gap: 10px; margin: 12px 18px 0; }
.stat-row > div { flex: 1; background: var(--card); border-radius: 14px; padding: 12px; text-align: center; }
.stat-row b { display: block; font-family: Sora, sans-serif; font-size: 20px; }
.stat-row span { font-size: 11px; color: var(--muted); }
.list { margin: 8px 18px 0; background: var(--card); border-radius: 16px; padding: 2px 14px; }
.list > div, .list > button { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 13px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; gap: 10px; }
.list > :last-child { border-bottom: 0; }
.list .r { color: var(--muted); }
.label { margin: 18px 18px 0; font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--dim); }
.toggle { width: 50px; height: 30px; border-radius: 15px; padding: 3px; display: flex; background: #2B3866; flex-shrink: 0; transition: background .15s; }
.toggle span { width: 24px; height: 24px; border-radius: 50%; background: #fff; display: block; transition: transform .15s; }
.toggle.on { background: var(--green); }
.toggle.on span { transform: translateX(20px); }
.mission { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border-radius: 16px; padding: 14px; margin: 10px 18px 0; }
.mission .t { font-size: 14px; font-weight: 600; }
.mission .bar { margin-top: 8px; width: 100%; }
.mission .p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.mission button { background: var(--purple); color: var(--purple-ink); font-weight: 700; font-size: 12px; border-radius: 10px; padding: 8px 12px; flex-shrink: 0; }
.mission .done { color: var(--green); font-weight: 700; font-size: 12px; flex-shrink: 0; }
.mission .rw { color: var(--purple); font-weight: 700; font-size: 12px; flex-shrink: 0; }

/* coming soon */
.soon-art { margin: 18px 18px 0; height: 220px; border-radius: 24px; position: relative; overflow: hidden; background: var(--card2); border: 1px solid var(--line); flex-shrink: 0; }
.soon-body { padding: 18px 22px 0; }
.soon-body h2 { font-size: 26px; font-weight: 800; }
.soon-body p { color: var(--muted); line-height: 1.55; margin: 10px 0 0; font-size: 14px; }
.soon-list { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.soon-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.soon-list li i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 6px; flex-shrink: 0; }
.soon-pill { display: inline-block; margin-top: 14px; background: var(--gold-deep); color: var(--gold); border: 1px solid #5A4614; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; letter-spacing: .5px; }

/* toast + modal */
.toast { position: absolute; left: 50%; top: calc(14px + var(--safe-top)); transform: translateX(-50%); z-index: 50; background: #1B2440; border: 1px solid var(--line2); color: var(--text); padding: 10px 16px; border-radius: 14px; font-size: 13px; font-weight: 500; max-width: 90%; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.bad { border-color: #6B2A2A; }
.modal-back { position: absolute; inset: 0; background: rgba(3,5,12,.7); display: flex; align-items: center; justify-content: center; z-index: 40; padding: 22px; }
.modal { width: 100%; background: var(--bar); border: 1px solid var(--line2); border-radius: 22px; padding: 22px; }
.modal h3 { font-size: 20px; }
.modal p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 10px 0 18px; }
.boot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-height: 700px) {
  .hero-table { height: 170px; margin-top: 18px; }
  .headline { font-size: 32px; margin-top: 18px; }
  .radar { width: 200px; height: 200px; margin-top: 24px; }
  .radar .r2 { inset: 30px; } .radar .r3 { inset: 60px; } .radar .me { left: 60px; top: 60px; }
}

/* ------------------------------------------------------------ shell (phones: as before) */
.shell > .side, .d-only { display: none; }
.shell .main { flex: 1 1 auto; min-height: 0; min-width: 0; display: flex; flex-direction: column; position: relative; }
.room-screen { padding: calc(14px + var(--safe-top)) 18px calc(22px + var(--safe-bottom)); }

/* ------------------------------------------------------------ home */
.blk { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sec button { font-size: 12px; font-weight: 600; color: var(--gold); }
.box { background: var(--card); border-radius: 18px; padding: 2px 14px; }

/* hero slider */
.hero-slider { position: relative; border-radius: 22px; overflow: hidden; flex-shrink: 0; }
.hs-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; border-radius: 22px; }
.hs-track::-webkit-scrollbar { display: none; }
.hs-track > .play-card { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; border-radius: 0; padding-bottom: 30px; }
.play-card .k, .play-card .t, .play-card .s { position: relative; z-index: 1; max-width: 68%; }
.play-card.theme-purple { background: var(--purple); color: var(--purple-ink); }
.play-card.theme-purple .moon { background: #D3C6FF; }
.play-card.theme-green { background: var(--green); color: var(--green-ink); }
.play-card.theme-green .moon { background: #8AF0C4; }
.play-card.theme-navy { background: linear-gradient(135deg, #1E2D5C, #111A31); color: var(--text); }
.play-card.theme-navy .k { color: var(--gold); }
.play-card.theme-navy .s { color: var(--muted); }
.play-card.theme-navy .moon { background: #22305A; }
.art-room { position: absolute; right: 16px; top: 28px; background: var(--purple-ink); color: var(--purple); border-radius: 12px; padding: 7px 9px; text-align: center; }
.art-room span { display: block; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.art-room div { display: flex; gap: 3px; margin-top: 5px; }
.art-room i { width: 9px; height: 13px; border-radius: 3px; background: var(--purple); display: block; }
.art-gems { position: absolute; right: 26px; top: 30px; width: 60px; height: 44px; }
.art-gems i { position: absolute; width: 22px; height: 22px; background: #7B3FD1; border-radius: 5px; transform: rotate(45deg); box-shadow: inset -4px -4px 0 rgba(0,0,0,.18); }
.art-gems i:nth-child(1) { left: 0; top: 14px; } .art-gems i:nth-child(2) { left: 19px; top: 0; width: 26px; height: 26px; background: var(--purple-ink); } .art-gems i:nth-child(3) { left: 40px; top: 16px; }
.art-coin { position: absolute; right: 22px; top: 24px; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-soft), var(--gold) 60%, #C98A1C); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px rgba(245,184,61,.18); }
.art-coin i { font-style: normal; font-family: Sora, sans-serif; font-weight: 800; font-size: 13px; color: var(--gold-ink); }
.hs-dots { position: absolute; left: 18px; bottom: 11px; display: flex; gap: 6px; z-index: 2; }
.hs-dots button { width: 7px; height: 7px; border-radius: 4px; background: rgba(0,0,0,.22); transition: width .2s, background .2s; }
.hs-dots button.on { width: 20px; background: rgba(0,0,0,.55); }
.hs-arrow { display: none; position: absolute; top: 50%; margin-top: -18px; width: 36px; height: 36px; border-radius: 50%; background: rgba(7,11,22,.72); color: var(--text); align-items: center; justify-content: center; z-index: 2; }
.hs-arrow.prev { left: 10px; } .hs-arrow.next { right: 10px; }
.hs-arrow:hover { background: rgba(7,11,22,.92); }

/* missions on home */
.mrow { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.mrow .t { font-size: 14px; font-weight: 600; }
.mrow .bar { margin-top: 8px; }
.mrow .p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.mrow .claim { background: var(--purple); color: var(--purple-ink); font-weight: 700; font-size: 12px; border-radius: 10px; padding: 8px 12px; flex-shrink: 0; }
.mrow .done { color: var(--green); font-weight: 700; font-size: 12px; flex-shrink: 0; }
.mrow .rw { color: var(--purple); font-weight: 700; font-size: 12px; flex-shrink: 0; }

/* rank card */
.rank-card { padding: 16px; }
.rc-top { display: flex; align-items: center; gap: 12px; }
.tier-badge { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rc-top .tier { font-family: Sora, sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -.4px; }
.rc-pos { text-align: right; flex-shrink: 0; }
.rc-pos b { display: block; font-family: Sora, sans-serif; font-size: 20px; color: var(--gold); }
.rc-pos span { font-size: 11px; color: var(--muted); }
.bar.gold > i { background: linear-gradient(90deg, #C98A1C, var(--gold)); }
.rc-next { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.rc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.rc-stats > div { background: var(--card2); border-radius: 12px; padding: 10px 4px; text-align: center; }
.rc-stats b { display: block; font-family: Sora, sans-serif; font-size: 18px; }
.rc-stats span { font-size: 10px; color: var(--muted); }

/* recent + top players */
.rrow, .trow { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.rrow:last-child, .trow:last-child { border-bottom: 0; }
.rrow .t, .trow .t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow .s, .trow .s { font-size: 11px; color: var(--muted); margin-top: 1px; }
.rrow .d { font-size: 12px; font-weight: 700; flex-shrink: 0; }
.wl { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: Sora, sans-serif; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.wl.w { background: #0B2A1E; color: var(--green); }
.wl.l { background: #2A1418; color: #FF8A80; }
.trow .pos { width: 20px; text-align: center; font-family: Sora, sans-serif; font-weight: 700; font-size: 14px; color: var(--dim); flex-shrink: 0; }
.trow .pos.p1 { color: var(--gold); } .trow .pos.p2 { color: #C9CED9; } .trow .pos.p3 { color: #D9965F; }
.trow > b { font-family: Sora, sans-serif; font-size: 15px; flex-shrink: 0; }
.trow em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--gold-ink); background: var(--gold); border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
.trow.sep { border-top: 1px dashed var(--line2); }
.empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; font-size: 13px; color: var(--muted); }
.mini-btn { background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 12px; border-radius: 10px; padding: 8px 12px; flex-shrink: 0; }

/* coming next */
.next-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.next-card { position: relative; background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; min-width: 0; }
.next-card b { font-family: Sora, sans-serif; font-size: 14px; margin-top: 8px; line-height: 1.2; }
.next-card > span:last-child { font-size: 11px; color: var(--muted); line-height: 1.4; }
.soon-pill.sm { display: none; position: absolute; top: 10px; right: 10px; margin: 0; padding: 2px 7px; font-size: 9px; }
.trow.open .t { color: var(--dim); } .trow.open .s { color: var(--dim); }
.ghost-sq { width: 34px; height: 34px; border-radius: 10px; border: 2px dashed var(--line2); flex-shrink: 0; }
.nx-art { width: 44px; height: 44px; border-radius: 14px; position: relative; flex-shrink: 0; }
.nx-art.cup { background: var(--gold-deep); border: 1px solid #5A4614; }
.nx-art.cup i { position: absolute; left: 7px; width: 13px; height: 6px; border-radius: 2px; background: #5A4614; }
.nx-art.cup i:nth-child(1) { top: 8px; } .nx-art.cup i:nth-child(2) { top: 18px; } .nx-art.cup i:nth-child(3) { top: 28px; }
.nx-art.cup b { position: absolute; right: 7px; top: 13px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); }
.nx-art.squad { background: #121F3D; }
.nx-art.squad i { position: absolute; width: 18px; height: 18px; border-radius: 6px; border: 2px solid #121F3D; }
.nx-art.squad i:nth-child(1) { left: 4px; top: 4px; } .nx-art.squad i:nth-child(2) { right: 4px; top: 4px; } .nx-art.squad i:nth-child(3) { left: 4px; bottom: 4px; } .nx-art.squad i:nth-child(4) { right: 4px; bottom: 4px; }
.nx-art.coin { border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-soft), var(--gold) 60%, #C98A1C); display: flex; align-items: center; justify-content: center; }
.nx-art.coin i { font-style: normal; font-family: Sora, sans-serif; font-weight: 800; font-size: 11px; color: var(--gold-ink); }

/* coming-soon pages */
.soon-cta { padding: 22px; }

/* ------------------------------------------------------------ desktop: 900 px and wider */
@media (min-width: 900px) {
  .app { max-width: none; border: 0; }
  .d-only { display: flex; }
  .shell { flex-direction: row; --cw: 1200px; }
  .shell.narrow { --cw: 760px; }
  .shell.mid { --cw: 1000px; }
  .shell > .side { display: flex; flex-direction: column; width: 232px; flex-shrink: 0; background: var(--bar); border-right: 1px solid var(--line); padding: 22px 14px 18px; }
  .side .brand { padding: 0 8px; }
  .side-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 30px; }
  .side-nav button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--muted); font-size: 14px; font-weight: 600; text-align: left; transition: background .12s, color .12s; }
  .side-nav button:hover { background: var(--card); color: var(--text); }
  .side-nav button.on { background: var(--gold-deep); color: var(--gold); }
  .side-card { background: var(--card); border-radius: 14px; padding: 12px; text-align: left; width: 100%; }
  .side-card:hover { background: var(--card3); }
  .side-card .k { font-size: 11px; color: var(--muted); }
  .side-card .v { font-size: 13px; font-weight: 600; margin: 2px 0 8px; }
  .side-fine { font-size: 11px; color: var(--dim); margin: 10px 4px 0; }
  .shell .tabs { display: none; }

  .shell .topbar { padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg); }
  .shell .topbar .in { width: 100%; max-width: calc(var(--cw) - 36px); margin: 0 auto; }
  .shell .topbar .me-mini .nm { max-width: 260px; }
  .balances { gap: 8px; align-items: center; }
  .shell .chip { padding: 8px 13px; font-size: 13px; }
  .top-play { height: 36px; padding: 0 18px; border-radius: 11px; background: var(--gold); color: var(--gold-ink); font-family: Sora, sans-serif; font-weight: 700; font-size: 13px; align-items: center; margin-left: 4px; }
  .top-play:hover, .btn.gold:hover:not(:disabled), .mini-btn:hover { filter: brightness(1.06); }

  .shell .main > .page-head, .shell .main > .filters, .shell .main > .mode-hero, .shell .main > .cta-wrap { width: 100%; max-width: var(--cw); margin-left: auto; margin-right: auto; }
  .shell .main > .page-head { padding: 26px 18px 6px; }
  .shell .scroll > .wrap { width: 100%; max-width: var(--cw); margin: 0 auto; padding-bottom: 32px; }

  /* home grid */
  .home-body { max-width: var(--cw); margin: 0 auto; padding: 26px 18px 40px; display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "play rank" "games missions" "top recent" "top next"; }
  .hb-play { grid-area: play; } .hb-rank { grid-area: rank; } .hb-games { grid-area: games; } .hb-missions { grid-area: missions; }
  .hb-recent { grid-area: recent; } .hb-top { grid-area: top; } .hb-next { grid-area: next; }
  .blk > .box { flex: 1 1 auto; }
  .hb-play .hero-slider { flex: 1 1 auto; display: flex; min-height: 230px; }
  .hs-track { flex: 1; }
  .hs-track > .play-card { padding: 30px 30px 44px; display: flex; flex-direction: column; justify-content: center; }
  .play-card .t { font-size: 40px; letter-spacing: -1.5px; }
  .play-card .s { font-size: 15px; }
  .play-card .k { font-size: 13px; }
  .play-card .moon { width: 210px; height: 210px; right: -40px; top: -40px; }
  .play-card .eight { width: 72px; height: 72px; right: 48px; top: 50%; margin-top: -36px; font-size: 20px; }
  .play-card .eight i { width: 38px; height: 38px; font-size: 18px; }
  .art-room, .art-gems, .art-coin { top: 50%; transform: translateY(-50%) scale(1.45); right: 56px; transform-origin: right center; }
  .hs-arrow { display: flex; }
  .hs-arrow.prev { left: auto; right: 58px; top: auto; bottom: 14px; margin: 0; }
  .hs-arrow.next { right: 14px; top: auto; bottom: 14px; margin: 0; }
  .hs-dots { left: 30px; bottom: 22px; }
  .hb-games .grid4 { gap: 12px; }
  .hb-games .tile { padding: 26px 6px 14px; gap: 10px; font-size: 12px; }
  .hb-games .tile:hover, .game-row:hover, .next-card:hover { background: var(--card3); }
  .hb-games .ic { width: 40px; height: 40px; }
  .box { padding: 4px 18px; }
  .rank-card { padding: 20px; display: flex; flex-direction: column; justify-content: center; }
  .next-card { padding: 16px; }
  .soon-pill.sm { display: inline-block; }
  .hb-play .sec.d-only { display: flex; }

  /* other wide pages */
  .shell .filters { padding: 10px 18px; }
  .game-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
  .game-row { min-height: 76px; padding: 14px 16px; }
  .shell.mid .scroll { display: flex; flex-direction: column; }
  .soon-wrap { margin: auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 8px 18px 32px; }
  .soon-wrap .soon-art { margin: 0; height: clamp(340px, 52vh, 500px); }
  .shell.mid .scroll > .soon-wrap { margin: auto; width: 100%; }
  .soon-wrap .soon-body { padding: 0; }
  .soon-wrap .soon-cta { padding: 24px 0 0; max-width: 360px; }
  .modes-screen .main > .mode-hero { border-radius: 24px; margin-top: 24px; height: 250px; max-width: calc(var(--cw) - 36px); }
  .modes-screen .mode-hero .back { top: 16px; }
  .modes-screen .cta-wrap { padding: 4px 18px 32px; }
  .modes-screen .scroll { flex: 0 1 auto; }
  .mode:hover:not(.on) { border-color: var(--line2); }

  /* focus screens: one centred column on a lit ground */
  .screen.pad, .screen.result, .screen.room-screen { padding-left: max(22px, calc(50% - 270px)); padding-right: max(22px, calc(50% - 270px));
    background: radial-gradient(ellipse 70% 55% at 50% 0%, #142045 0%, rgba(7,11,22,0) 70%), var(--bg); }
  .screen.pad, .screen.result, .screen.room-screen { justify-content: center; }
  .screen.pad > .grow, .screen.result > .grow, .screen.room-screen > .grow { flex: 0 0 28px; }
  .screen.result.defeat { background: radial-gradient(ellipse 70% 55% at 50% 0%, #241631 0%, rgba(13,10,20,0) 70%), #0D0A14; }

  /* the match: the table big and centred, the HUD around it */
  .match .hud { padding: 16px max(24px, calc(50% - 600px)) 12px; }
  .match .hud .pl { gap: 12px; }
  .match .hud .pl .nm { font-size: 15px; max-width: 280px; }
  .match .hud .av.s34 { width: 44px; height: 44px; border-radius: 14px; font-size: 15px; }
  .match .hud .dots { gap: 4px; margin-top: 6px; }
  .match .hud .dots i { width: 12px; height: 12px; }
  .match .hud .mid .k { font-size: 11px; }
  .match .hud .mid .v { font-size: 15px; }
  .match .clock { width: min(1200px, calc(100% - 48px)); margin: 0 auto; border-radius: 2px; overflow: hidden; }
  .match .status { font-size: 14px; padding: 10px; }
  .match .table-wrap { padding: 4px 32px; }
  .match .controls { width: 100%; max-width: 780px; margin: 0 auto; padding: 12px 24px 24px; gap: 12px; }
  .match .nudge { width: 48px; height: 56px; }
  .match .shoot { width: 120px; height: 60px; border-radius: 18px; font-size: 16px; }

  .modal { max-width: 440px; }
  .sheet-back { justify-content: center; align-items: center; }
  .sheet { max-width: 480px; border-radius: 22px; border: 1px solid var(--line2); padding-bottom: 22px; }
}
@media (min-width: 1240px) {
  .home-body { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "play play rank" "games games missions" "top recent recent" "top next next"; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-track { scroll-behavior: auto; }
  .hs-dots button { transition: none; }
}

/* ------------------------------------------------------------ the other games: shared match shell */
.match.g-penalties { background: #0B1122; }
.match.g-ludo, .match.g-dice, .match.g-chess { background: #0A0F1E; }
.play-wrap { flex: 1 1 auto; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 10px; }
.gctl { background: transparent; min-height: 86px; justify-content: center; }
.gctl.off { pointer-events: auto; opacity: 1; }
.gctl.off button { opacity: .45; }
.shoot.wide { width: auto; min-width: 104px; padding: 0 18px; }
.shoot:disabled { background: #6E5A2E; color: #2A1C00; cursor: default; }
.hud .nm em.tag { font-style: normal; font-family: Sora, sans-serif; font-weight: 800; font-size: 12px; color: var(--gold); margin-left: 2px; }
.hud .dots i.g { background: var(--green); }
.hud .dots i.x { background: var(--red); }
.hud .dots.kicks i { width: 10px; height: 10px; }
.wl.d { background: #1B2440; color: var(--muted); }
.score-line { margin-top: 10px; font-size: 13px; color: var(--muted); background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.score-line b { color: var(--text); font-family: Sora, sans-serif; margin-left: 6px; }
.result.draw { padding-top: calc(72px + var(--safe-top)); }
.result.draw .stats-card, .defeat .stats-card { width: 100%; margin-top: 28px; background: var(--card); border-radius: 18px; padding: 16px; }
.defeat .stats-card { background: #16111F; }
.result.draw .stats-card > div { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; }
.result.draw .stats-card > div:first-child { margin-top: 0; }
.verify-link { width: 100%; margin-bottom: 10px; padding: 10px; border-radius: 12px; border: 1px dashed var(--line2); color: var(--purple); font-weight: 600; font-size: 13px; }
.verify-sheet { max-height: 88%; overflow-y: auto; }
.vf-result { margin-top: 12px; border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 14px; }
.vf-result.ok { background: #0B2A1E; color: var(--green); }
.vf-result.bad { background: #2A1418; color: #FF8A80; }
.verify-sheet .vf-note { font-size: 12px; margin: 10px 0 12px; }
.vf-kv { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); }
.vf-kv code { display: block; font: 11px/1.4 ui-monospace, Menlo, monospace; color: var(--text); background: var(--card2); border-radius: 8px; padding: 6px 8px; word-break: break-all; margin-bottom: 6px; }
.vf-kv em { font-style: normal; font-weight: 700; margin-left: 6px; }
.vf-kv em.okc { color: var(--green); } .vf-kv em.badc { color: #FF8A80; }
.vf-rolls { max-height: 150px; overflow-y: auto; background: var(--card2); border-radius: 12px; padding: 4px 12px; margin: 6px 0 14px; }
.vf-rolls > div { display: flex; justify-content: space-between; font-size: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.vf-rolls > div:last-child { border-bottom: 0; }

/* mode heroes per game */
.mode-hero.hero-penalties { background: linear-gradient(#142045, #0E1A33 55%, #1A7A4C 55%, #1E8754); }
.h-goal { position: absolute; left: 50%; top: 40px; width: 200px; height: 84px; margin-left: -100px; border: 5px solid #F4F1E8; border-bottom: 0; }
.h-goal i { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(233,237,248,.22) 0 1px, transparent 1px 9px), repeating-linear-gradient(-45deg, rgba(233,237,248,.22) 0 1px, transparent 1px 9px); }
.h-ball { position: absolute; right: 18%; top: 168px; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #fff, #D9D6CC 70%, #9E9A8E); box-shadow: 0 6px 0 -2px rgba(0,0,0,.25); }
.mode-hero.hero-ludo { background: #1B2440; }
.h-ludo { position: absolute; right: 26px; top: 26px; width: 150px; height: 150px; border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; transform: rotate(8deg); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.h-ludo b { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; background: #F4F1E8; transform: rotate(45deg); border-radius: 6px; }
.mode-hero.hero-dice { background: radial-gradient(ellipse at 70% 30%, #3A2F6B, #1E1638 70%); }
.h-die { position: absolute; width: 70px; height: 70px; border-radius: 16px; background: #F4F1E8; box-shadow: inset -5px -6px 0 rgba(0,0,0,.12), 0 14px 30px rgba(0,0,0,.35); }
.h-die i { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #1E1638; }
.h-die.a { right: 120px; top: 50px; transform: rotate(-14deg); }
.h-die.b { right: 36px; top: 84px; transform: rotate(18deg); }
.mode-hero.hero-chess { background: #1B2440; }
.h-board { position: absolute; right: -30px; top: -20px; width: 260px; height: 260px; transform: rotate(14deg); background: conic-gradient(#C9CED9 0 25%, #4A5578 0 50%, #C9CED9 0 75%, #4A5578 0) 0 0 / 65px 65px; opacity: .5; }
.h-king { position: absolute; right: 60px; top: 44px; width: 110px; height: 110px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); }

/* penalties */
.pen-wrap { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.pen-svg { width: 100%; height: 100%; display: block; touch-action: manipulation; }
.pen-svg .pz { fill: transparent; stroke: transparent; }
.pen-svg.picking .pz { stroke: rgba(245,184,61,.55); stroke-dasharray: 4 4; stroke-width: 1.5; cursor: pointer; }
.pen-svg.picking.keeping .pz { stroke: rgba(185,164,255,.6); }
.pen-svg.picking .pz:hover { fill: rgba(245,184,61,.12); }
.pen-svg .pz.on { fill: rgba(245,184,61,.22); stroke: var(--gold); stroke-dasharray: none; }
.pen-svg.keeping .pz.on { fill: rgba(185,164,255,.22); stroke: var(--purple); }
.pen-ctl { display: flex; align-items: center; gap: 10px; width: 100%; }
.pen-pow { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.pen-pow button { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 8px 4px; text-align: center; min-width: 0; }
.pen-pow button b { display: block; font-family: Sora, sans-serif; font-size: 13px; }
.pen-pow button span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; line-height: 1.2; }
.pen-pow button.on { border-color: var(--gold); background: var(--card3); }
.pen-hint { flex: 1; font-size: 13px; color: var(--muted); line-height: 1.4; }
@media (min-width: 900px) {
  .play-wrap { padding: 4px 32px; }
  .match .gctl { min-height: 96px; }
  .pen-pow button { padding: 10px 8px; }
  .pen-pow button b { font-size: 15px; }
  .pen-pow button span { font-size: 11px; }
}
.g-penalties .play-wrap, .match.g-penalties .play-wrap { padding: 0; }
.pen-svg * { pointer-events: none; } .pen-svg .pz { pointer-events: all; }

/* 3D dice (public/js/dice3d.js) */
.die3 { --ds: 56px; position: relative; width: var(--ds); height: var(--ds); perspective: calc(var(--ds) * 9); flex-shrink: 0; }
.die3 .dhop { position: absolute; inset: 0; transform-style: preserve-3d; }
.die3 .dcube { position: absolute; inset: 0; transform-style: preserve-3d; }
.die3 .dface { position: absolute; inset: 0; border-radius: 18%; background: radial-gradient(circle at 30% 25%, var(--dfa, #FFFFFF), var(--dfm, #F1EEE4) 55%, var(--dfb, #D9D4C4)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), inset -3px -4px 8px rgba(0,0,0,.12);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 14%; backface-visibility: hidden; }
.die3 .dface i { width: 72%; height: 72%; margin: auto; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--dpa, #4A3A8A), var(--dp, #1E1638) 70%); }   /* dice skins: public/js/shop.js */
.die3 .dface b { display: block; }
.die3 .dshadow { position: absolute; left: 8%; right: 8%; bottom: -14%; height: 18%; border-radius: 50%; background: rgba(0,0,0,.35); filter: blur(4px); }
.die3.used { filter: grayscale(1) brightness(.55); }
.die3.big { --ds: 76px; }

/* ludo */
.ludo-wrap { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ludo-svg { width: 100%; height: 100%; display: block; touch-action: manipulation; filter: drop-shadow(0 12px 28px rgba(0,0,0,.45)); }
.ludo-svg .seed { transition: transform .085s ease-out; cursor: default; }
.ludo-svg .seed .ring { opacity: 0; transform-box: fill-box; transform-origin: center; }
.ludo-svg .seed.can { cursor: pointer; }
.ludo-svg .seed.can .ring { opacity: 1; animation: seedPulse 1s ease-in-out infinite; }
.ludo-svg .seed.sel .ring { stroke: #FFFFFF; animation: none; }
.ludo-svg .tgt { cursor: pointer; }
@keyframes seedPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.18); opacity: .55; } }
.ludo-banner { top: 50%; }
.dice-ctl { display: flex; align-items: center; gap: 14px; width: 100%; }
.dice-pair { display: flex; gap: 16px; padding: 12px 16px; border-radius: 20px; background: var(--card2); border: 2px solid var(--line); flex-shrink: 0; }
.dice-pair.ready { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245,184,61,.15); animation: pairGlow 1.4s ease-in-out infinite; }
@keyframes pairGlow { 50% { box-shadow: 0 0 0 7px rgba(245,184,61,.06); } }
.dice-pair:disabled { cursor: default; }
.dice-acts { flex: 1; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; min-width: 0; }
.chip-move { background: var(--gold); color: var(--gold-ink); border-radius: 14px; padding: 9px 12px; font-weight: 800; font-family: Sora, sans-serif; font-size: 14px; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.chip-move em { font-style: normal; font-size: 10px; font-weight: 700; opacity: .75; font-family: Inter, sans-serif; }
@media (prefers-reduced-motion: reduce) { .dice-pair.ready, .ludo-svg .seed.can .ring { animation: none; } }

/* dice */
.dice-table { width: 100%; max-width: 520px; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 6px 4px; }
.race { display: flex; flex-direction: column; gap: 10px; background: var(--card2); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.lane .who { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; }
.lane .who b { font-family: Sora, sans-serif; font-size: 18px; }
.lane .who em { font-style: normal; font-size: 12px; color: var(--dim); }
.lane.on .who span { color: var(--gold); }
.lane .track { position: relative; height: 10px; border-radius: 5px; background: var(--line3); margin-top: 6px; overflow: hidden; }
.lane .track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; transition: width .5s ease, left .5s ease; }
.lane .track i.r { background: repeating-linear-gradient(45deg, rgba(245,184,61,.85) 0 4px, rgba(245,184,61,.45) 4px 8px); border-radius: 0 5px 5px 0; }
.pot { text-align: center; }
.pot .k { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); }
.pot .v { font-family: Sora, sans-serif; font-weight: 800; font-size: 54px; line-height: 1.05; color: var(--gold); }
.pot .s { font-size: 12px; color: var(--muted); }
.tray { position: relative; display: flex; justify-content: center; gap: 30px; padding: 26px 0 30px; border-radius: 26px; background: radial-gradient(ellipse at 50% 40%, #1D3A5E, #0F1E36 70%); border: 1px solid #22305A; cursor: default; }
.tray.ready { cursor: pointer; border-color: var(--gold); }
.dflash { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); z-index: 2; background: #0B1122; border: 1px solid var(--line2); border-radius: 999px; padding: 6px 18px; text-align: center; pointer-events: none; white-space: nowrap; display: flex; align-items: baseline; gap: 8px; }
.dflash b { font-family: Sora, sans-serif; font-weight: 800; font-size: 18px; }
.dflash span { font-size: 12px; color: var(--muted); }
.dflash[hidden] { display: none; }
.dflash.ok b { color: var(--green); } .dflash.gold b { color: var(--gold); } .dflash.bad b { color: #FF8A80; } .dflash.bad { border-color: var(--red); }
.risk { text-align: center; font-size: 12px; color: var(--muted); min-height: 16px; }
.risk b { color: var(--green); }
.dlog { text-align: center; font-size: 13px; color: var(--text); min-height: 18px; }
.dice-btns { display: flex; gap: 10px; width: 100%; max-width: 520px; margin: 0 auto; }
.dice-btns .btn { flex: 1; height: 58px; }
.btn.keep { background: var(--green); color: var(--green-ink); font-family: Sora, sans-serif; }
.btn.keep em { font-style: normal; font-size: 12px; margin-left: 6px; background: var(--green-ink); color: var(--green); border-radius: 6px; padding: 1px 6px; }
.dice-btns .btn:disabled { background: var(--card); color: var(--dim); cursor: default; }
@media (min-width: 900px) { .dice-table { max-width: 620px; } .die3.big { --ds: 92px; } .pot .v { font-size: 64px; } .tray { padding: 34px 0 38px; gap: 40px; } }
@media (max-height: 760px) { .pot .v { font-size: 42px; } .tray { padding: 18px 0 22px; } .dice-table { gap: 10px; } }

/* blitz chess */
.match.g-chess .clock { visibility: hidden; }
.chess-wrap { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.chess-svg { width: 100%; height: 100%; display: block; touch-action: manipulation; filter: drop-shadow(0 12px 28px rgba(0,0,0,.45)); }
.chess-svg .coord { font: 700 .17px Inter, sans-serif; pointer-events: none; }
.chess-svg .pc, .chess-svg .sq { cursor: pointer; }
.ch-hud { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.hud .pl.right .ch-hud { flex-direction: row-reverse; }
.cclock { font-family: Sora, sans-serif; font-weight: 800; font-size: 14px; background: var(--card); color: var(--muted); border-radius: 8px; padding: 2px 8px; min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }
.cclock.on { background: var(--gold); color: var(--gold-ink); }
.cclock.on.low { background: var(--red); color: #fff; }
.cclock.low { color: #FF8A80; }
.ch-hud .taken { display: flex; align-items: center; }
.ch-hud .taken svg { width: 15px; height: 15px; margin-right: -5px; }
.ch-hud .taken b { font-size: 11px; color: var(--muted); margin-left: 8px; }
.ch-moves { width: 100%; display: block; scrollbar-width: none; font-size: 13px; font-weight: 600; white-space: nowrap; padding: 10px 4px; align-items: center; }
.ch-moves::-webkit-scrollbar { display: none; }
.ch-moves .mv em { font-style: normal; color: var(--dim); margin-right: 4px; font-weight: 500; }
.ch-moves .mv:last-child { color: var(--gold); }
.ch-empty { color: var(--muted); font-weight: 500; white-space: normal; }
.promo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(3,5,12,.55); z-index: 3; }
.promo-in { background: var(--bar); border: 1px solid var(--line2); border-radius: 20px; padding: 16px; text-align: center; }
.promo-in b { font-family: Sora, sans-serif; font-size: 16px; }
.promo-in > div { display: flex; gap: 8px; margin: 12px 0 8px; }
.promo-in > div button { width: 62px; height: 62px; border-radius: 14px; background: #DCE1EC; }
.promo-in button svg { width: 52px; height: 52px; }
.promo-in .link { background: none; color: var(--muted); font-size: 13px; width: auto; height: auto; }
@media (min-width: 900px) { .cclock { font-size: 18px; padding: 3px 10px; min-width: 64px; } .ch-hud .taken svg { width: 18px; height: 18px; } }

.vf-tech { margin: 12px 0 4px; }
.vf-tech summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; padding: 8px 0; }
.vf-tech[open] summary { color: var(--text); }

.ch-last { display: block; font-size: 15px; font-weight: 600; color: var(--text); text-align: center; }
.ch-all { margin-top: 6px; text-align: center; }
.ch-all summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.ch-all .ch-list { margin-top: 6px; overflow-x: auto; white-space: nowrap; }
/* ------------------------------------------------------------ cups, squads, clubs (phones first) */
.av.s54 { width: 54px; height: 54px; border-radius: 16px; font-size: 18px; }
.ghost-sq.s54 { width: 54px; height: 54px; border-radius: 16px; }
.ghost-sq.s40 { width: 40px; height: 40px; border-radius: 12px; }
.btn.green { background: var(--green); color: var(--green-ink); }
.btn.green:disabled { background: #1F5C45; color: #0B2A1E; cursor: default; }
.btn.ghost:disabled { color: var(--muted); cursor: default; }
.soon-pill.new { background: #0B2A1E; color: var(--green); border-color: #1D6B4E; }
.page-head .kick { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--flame); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-head > div { min-width: 0; }
.cups-head { justify-content: space-between; align-items: baseline; }
.cups-head .title { font-size: 28px; letter-spacing: -1px; }
.cups-head .link-gold { font-size: 13px; font-weight: 600; }
.cups-body { padding: 4px 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.fine-print { font-size: 12px; color: var(--dim); line-height: 1.5; margin: 12px 0 0; }
.info-box { background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.info-box b { font-family: Sora, sans-serif; font-size: 15px; display: block; }
.info-box p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.info-box .mini-btn { margin-top: 12px; }

.cup-hero { position: relative; overflow: hidden; background: var(--flame); color: #3A1405; border-radius: 22px; padding: 18px; cursor: pointer; flex-shrink: 0; }
.cup-hero .moon { position: absolute; right: -30px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%; background: #FFA982; }
.cup-hero > * { position: relative; }
.cup-hero .k { font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.cup-hero .t { font-family: Sora, sans-serif; font-weight: 800; font-size: 34px; letter-spacing: -1px; margin-top: 6px; line-height: 1.1; }
.cup-hero .s { font-size: 13px; margin-top: 2px; }
.cup-hero .row { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.cup-hero .lbl { font-size: 10px; font-weight: 700; letter-spacing: .5px; margin-top: 6px; opacity: .8; }
.cd-boxes { display: flex; gap: 8px; }
.cd { background: #3A1405; color: #FFE3D6; border-radius: 10px; padding: 8px 10px; text-align: center; min-width: 46px; }
.cd b { display: block; font-family: Sora, sans-serif; font-weight: 800; font-size: 18px; }
.cd span { font-size: 10px; }
.cup-hero .go { margin-left: auto; background: #3A1405; color: #fff; border-radius: 12px; padding: 12px 18px; font-weight: 700; font-size: 14px; }
.cup-list { display: flex; flex-direction: column; gap: 10px; }
.cup-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.cup-row.mine { border-color: #5A4614; background: #15192A; }
.cup-row.alt { background: var(--card); border-color: transparent; }
.cup-row .n { font-weight: 600; font-size: 14px; }
.cup-row .n em { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .5px; color: var(--gold-ink); background: var(--gold); border-radius: 6px; padding: 2px 6px; margin-left: 6px; vertical-align: 2px; }
.cup-row .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tg { font-weight: 700; font-size: 13px; flex-shrink: 0; white-space: nowrap; }
.tg.green { color: var(--green); } .tg.purple { color: var(--purple); } .tg.gold { color: var(--gold); } .tg.dim { color: var(--dim); font-size: 11px; }
.call-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--gold-deep); border: 1px solid var(--gold); border-radius: 16px; padding: 14px; }
.call-card .k { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--gold); }
.call-card .n { font-weight: 700; font-size: 15px; margin-top: 2px; }
.call-card .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.call-card button { background: var(--gold); color: var(--gold-ink); font-weight: 700; border-radius: 12px; padding: 11px 18px; font-size: 14px; flex-shrink: 0; }

.cup-wrap { padding: 8px 18px 20px; }
.cup-wrap .label, .squad-wrap .label, .club-wrap .label { margin: 18px 0 8px; }
.cup-main > :first-child { margin-top: 12px; }
.cup-wrap .kv { margin-top: 0; }
.cup-info { background: var(--card2); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-top: 12px; }
.cup-info .pz .v { font-family: Sora, sans-serif; font-weight: 800; font-size: 32px; color: var(--green); letter-spacing: -1px; margin: 2px 0; }
.cup-info .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.cup-info .facts > div { background: var(--card); border-radius: 12px; padding: 10px 12px; }
.cup-info .facts > div > span { display: block; font-size: 11px; color: var(--muted); }
.cup-info .facts b { font-size: 14px; }
.who-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.who-grid > div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; min-width: 0; }
.who-grid span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-card { background: var(--card); border-radius: 16px; padding: 14px; margin-top: 12px; }
.my-card .k { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.my-card .n { font-family: Sora, sans-serif; font-weight: 800; font-size: 19px; margin-top: 4px; }
.my-card .s { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.my-card.call { background: #16213F; border: 1px solid var(--gold); }
.my-card.call .k { color: var(--gold); }
.my-card.win { background: var(--gold-deep); border: 1px solid var(--gold); } .my-card.win .k { color: var(--gold); }
.my-card.out .k { color: #FF8A80; }
.big-cd { display: inline-block; font-family: Sora, sans-serif; font-weight: 800; color: var(--gold); font-size: 15px; margin-left: 4px; }
.arena-me { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.arena-me > div { background: var(--card2); border-radius: 12px; padding: 10px 4px; text-align: center; }
.arena-me b { display: block; font-family: Sora, sans-serif; font-size: 18px; }
.arena-me span { font-size: 10px; color: var(--muted); }
.arena-live { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.arena-live i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; animation: pulse 1.6s infinite; }

/* bracket: one column per round, later rounds centred between their feeders */
.bracket { display: grid; grid-template-columns: repeat(var(--cols), minmax(112px, 1fr)); gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.bcol { display: flex; flex-direction: column; min-width: 0; }
.bh { font-size: 11px; color: var(--muted); font-weight: 700; margin-bottom: 8px; white-space: nowrap; }
.bms { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.bm { background: var(--card); border: 1px solid transparent; border-radius: 12px; padding: 8px; font-size: 12px; min-width: 0; }
.bm > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.bm > div.won { color: var(--text); font-weight: 700; }
.bm > div.lost { color: var(--dim); text-decoration: line-through; }
.bm.you { background: var(--card3); border-color: var(--gold); }
.bm i { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 4px; }
.bm i.live { color: var(--gold); font-weight: 700; }
.bm i.call { color: var(--gold); }
.bm i.done { color: var(--green); }
.bm.final { background: var(--gold-deep); border-color: var(--gold); text-align: center; padding: 10px 8px; }
.bm .fk { display: block; color: var(--gold); font-size: 12px; margin-bottom: 4px; }
.bm .fp { display: block; font-family: Sora, sans-serif; font-weight: 800; margin-top: 6px; }
.cup-cta { padding-top: 10px; }

.how { padding: 8px 18px 24px; display: flex; flex-direction: column; gap: 10px; }
.how-card { display: block; width: 100%; text-align: left; background: var(--card2); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.how-card .hd { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.how-card .hd b { font-family: Sora, sans-serif; font-weight: 800; font-size: 16px; }
.how-card .hd span { font-size: 11px; font-weight: 700; white-space: nowrap; }
.how-card p { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.how-card .ex { font-size: 12px; margin-top: 8px; }
.rules { background: var(--card); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.rules b { color: var(--text); }

/* squads */
.squad-wrap { padding: 4px 18px 24px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chips button.on.green { background: var(--green); color: var(--green-ink); }
.chips button:disabled:not(.on) { color: var(--dim); }
.chips.sm { margin-top: 12px; }
.chips.sm button { padding: 6px 11px; font-size: 12px; background: var(--card3); }
.squad-art { height: 120px; border-radius: 22px; background: var(--card2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; }
.squad-art i { width: 30px; height: 30px; border-radius: 10px; display: block; }
.squad-art b { font-family: Sora, sans-serif; font-weight: 800; color: var(--red); margin: 0 10px; }
.lede-s { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 14px 0 0; }
.slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; min-width: 0; }
.slot .nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .ok { color: var(--green); } .slot .wait { color: var(--gold); }
.money { margin-top: 18px; background: var(--card2); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.money > div:not(.chips) { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-top: 10px; }
.money > div:first-child { margin-top: 0; }
.money > div:not(.chips) span { color: var(--muted); }
.money p { font-size: 11px; color: var(--dim); margin: 10px 0 0; line-height: 1.5; }
.share-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.share-line b { color: var(--purple); letter-spacing: 2px; font-family: Sora, sans-serif; }
.share-line span { flex: 1; }
.share-line button { background: var(--card); border-radius: 10px; padding: 8px 12px; font-size: 12px; font-weight: 600; color: var(--text); }
.cta-in { margin-top: 18px; }
.squad-match { align-items: stretch; padding-top: calc(40px + var(--safe-top)); overflow-y: auto; }
.squad-match > .title { font-size: 26px; }
.score-big { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; font-family: Sora, sans-serif; font-weight: 800; }
.score-big b { font-size: 34px; color: var(--muted); } .score-big b.lead { color: var(--gold); } .score-big b.lead.bad { color: var(--purple); }
.score-big span { color: var(--dim); }
.sq-pair { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sq-pair .vs { text-align: center; font-family: Sora, sans-serif; font-weight: 800; font-size: 18px; color: var(--red); }
.sq-card { background: var(--card2); border: 2px solid var(--gold); border-radius: 18px; padding: 12px 14px; }
.sq-card.theirs { border-color: var(--purple); }
.sq-card .hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sq-card .nm { font-family: Sora, sans-serif; font-weight: 800; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq-card .tg { font-size: 10px; color: var(--gold); letter-spacing: .5px; }
.sq-card.theirs .tg { color: var(--purple); }
.sq-card .avs { display: flex; gap: 8px; margin-top: 8px; }
.sq-card .s { font-size: 12px; color: var(--muted); margin-top: 6px; }
.legs { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.leg { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 12px; padding: 9px 12px; font-size: 13px; border: 1px solid transparent; }
.leg.now { border-color: var(--line2); }
.leg.mine { border-color: var(--gold); }
.leg .no { width: 24px; height: 24px; border-radius: 8px; background: var(--card3); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.leg .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leg .s { font-size: 11px; color: var(--muted); }
.leg i { font-style: normal; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.leg i.ok { color: var(--green); } .leg i.bad { color: #FF8A80; } .leg i.live, .leg i.call { color: var(--gold); } .leg i.dim { color: var(--dim); font-weight: 600; }
.pot-card { margin-top: 12px; background: var(--card); border-radius: 18px; padding: 14px; text-align: center; }
.pot-card .k { font-size: 12px; color: var(--muted); }
.pot-card .v { font-family: Sora, sans-serif; font-weight: 800; font-size: 32px; color: var(--green); }
.pot-card .s { font-size: 12px; color: var(--muted); }
.squad-match > .btn { margin-top: 14px; flex-shrink: 0; }
.squad-match.lost { background: #0D0A14; }

/* clubs */
.club-head { padding: calc(18px + var(--safe-top)) 18px 4px; display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.club-head .nm { font-family: Sora, sans-serif; font-weight: 800; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.club-head .s { font-size: 12px; color: var(--muted); }
.club-tag { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: Sora, sans-serif; font-weight: 800; font-size: 13px; color: #fff; flex-shrink: 0; letter-spacing: -.3px; }
.club-tag.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 11px; }
.club-tag.big { width: 64px; height: 64px; border-radius: 20px; font-size: 20px; border: 3px solid var(--gold); }
.club-wrap { padding: 8px 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.club-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.club-col > .label { margin: 6px 0 -4px; }
.war-card { background: var(--card2); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.war-card .k { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--flame); }
.war-card .vsrow { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 10px; }
.war-card .vsrow > div { text-align: center; min-width: 0; flex: 1; }
.war-card .vsrow b { display: block; font-family: Sora, sans-serif; font-weight: 800; font-size: 30px; }
.war-card .vsrow span { font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.war-card em { font-style: normal; font-family: Sora, sans-serif; font-weight: 800; color: var(--dim); }
.bar2 { height: 8px; border-radius: 4px; background: var(--purple); margin-top: 12px; overflow: hidden; }
.bar2 i { display: block; height: 8px; border-radius: 4px; background: var(--gold); }
.war-card .s { font-size: 12px; color: var(--muted); margin-top: 8px; }
.chat-box { background: var(--card2); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; max-height: 260px; min-height: 90px; overflow-y: auto; overscroll-behavior: contain; }
.chat-line { line-height: 1.45; word-break: break-word; }
.chat-form { display: flex; gap: 8px; }
.chat-form input, .club-form input { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1px solid var(--line3); background: var(--bar); color: var(--text); padding: 0 12px; font-size: 16px; outline: none; }
.chat-form input:focus, .club-form input:focus, .join-row input:focus { border-color: var(--gold); }
.chat-form button { height: 44px; border-radius: 12px; background: var(--gold); color: var(--gold-ink); font-weight: 700; padding: 0 16px; font-size: 14px; }
.club-form { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 8px; }
.club-form .btn { grid-column: 1 / -1; height: 50px; font-size: 15px; }
.club-list { display: flex; flex-direction: column; gap: 8px; }
.club-row { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 14px; padding: 10px 12px; }
.club-row .n { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.club-row .s { font-size: 12px; color: var(--muted); }
.trow.you { background: var(--card3); border-radius: 12px; margin: 2px -8px; padding-left: 8px; padding-right: 8px; border-bottom-color: transparent; }
.trow > span.s { font-size: 12px; color: var(--muted); flex-shrink: 0; }

@media (min-width: 900px) {
  .shell.mid-wide { --cw: 1100px; }
  .cups-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; align-items: start; padding-top: 10px; }
  .cups-body > .cup-hero, .cups-body > .call-card, .cups-body > .info-box { grid-column: 1 / -1; }
  .cups-body > .sec { grid-column: 1 / -1; margin-top: 8px; }
  .cups-body > .cup-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cups-body > .box { grid-column: 1 / -1; }
  .cup-hero { padding: 28px 30px; }
  .cup-hero .t { font-size: 46px; }
  .cup-hero .moon { width: 260px; height: 260px; right: -40px; bottom: -90px; }
  .cup-row:hover, .how-card:hover, .club-row:hover { background: var(--card3); }
  .cup-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0 26px; align-items: start; }
  .cup-side:empty { display: none; }
  .cup-screen .cta-wrap { width: 100%; max-width: 480px; margin: 0 auto; padding: 4px 18px 26px; }
  .bracket { grid-template-columns: repeat(var(--cols), minmax(150px, 1fr)); gap: 14px; }
  .bm { padding: 10px 12px; font-size: 13px; }
  .who-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .club-head { width: 100%; max-width: var(--cw); margin: 0 auto; padding: 26px 18px 8px; }
  .club-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
  .club-wrap.browse { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .chat-box { max-height: 420px; min-height: 240px; }
  .squad-wrap { padding-top: 10px; }
  .squad-match { justify-content: flex-start; }
  .sq-pair { flex-direction: row; align-items: center; }
  .sq-pair .sq-card { flex: 1; min-width: 0; }
  .sq-pair .vs { padding: 0 6px; }
}

/* cup / squad result card: each game's own score lines */
.result .cup-lines { background: var(--card); border-radius: 18px; padding: 14px 16px; }
.result .cup-lines > div { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; }
.result .cup-lines > div:first-child { margin-top: 0; }
.result .verify-link { margin-top: 12px; }
/* ------------------------------------------------------------ money: wallets, add funds, withdraw, stakes (money.js) */
.pad18 { padding: 4px 18px calc(24px + var(--safe-bottom)); display: flex; flex-direction: column; }
.lead { font-size: 14px; line-height: 1.5; margin: 8px 0 14px; }
.test-pill { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .6px; color: #FFD27A; background: #2A2208; border: 1px solid #5A4718; border-radius: 999px; padding: 3px 8px; vertical-align: middle; margin-left: 6px; white-space: nowrap; }
.page-head .test-pill { margin-left: auto; }
.test-note { background: #1A1608; border: 1px solid #3D3313; color: #E8D9A8; border-radius: 14px; padding: 10px 12px; font-size: 12px; line-height: 1.5; margin-bottom: 12px; }
.test-note .test-pill { margin: 0 6px 0 0; }
.xlink { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.link-gold.inline { font-size: inherit; font-weight: 700; text-decoration: underline; padding: 0; }
.link-quiet { color: var(--muted); font-size: 13px; padding: 12px 0; text-align: center; width: 100%; }
.center-block { display: block; margin-top: 8px; }
.btn.green { background: var(--green); color: var(--green-ink); }
.btn.green:disabled { background: #2E6E54; color: #0B2A1D; }

/* wallet card on Me: Add funds first and main */
.wallet-card .wc-head { display: flex; align-items: center; justify-content: space-between; }
.wallet-card .btn.wc-1 { background: var(--green); color: var(--green-ink); height: 46px; border-radius: 12px; font-family: Inter, sans-serif; font-size: 14px; font-weight: 700; }
.wallet-card .btn.wc-2 { height: 46px; border-radius: 12px; border: 1px solid var(--line2); background: transparent; }
.wallet-card .wc-who { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* sheets: wallet choice and the connect list */
.wallet-sheet .choice { display: block; width: 100%; text-align: left; background: var(--card2); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-top: 10px; }
.wallet-sheet .choice.main { border: 2px solid var(--green); }
.wallet-sheet .choice b { display: block; font-family: Sora, sans-serif; font-size: 17px; }
.wallet-sheet .choice span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.45; }
.wlist { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; }
.wrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; background: var(--card); border-radius: 14px; padding: 10px 12px; text-align: left; }
.wrow img, .wrow .wi-ph { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; }
.wrow .wi-ph { display: flex; align-items: center; justify-content: center; background: var(--line2); font-size: 12px; font-weight: 700; color: var(--muted); }
.wrow .wn { flex: 1; font-weight: 600; font-size: 14px; }
.wrow .wt { font-size: 12px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.wrow .wt.ok { color: var(--green); }
.wrow.off { opacity: .55; }

/* ready to play for real */
.ready-card { display: block; width: 100%; text-align: left; background: var(--card2); border: 1px solid var(--line); border-radius: 20px; padding: 18px; margin-top: 12px; }
.ready-card.gold { border: 2px solid var(--gold); }
.ready-card .rc-t { display: flex; justify-content: space-between; align-items: center; font-family: Sora, sans-serif; font-weight: 800; font-size: 18px; }
.ready-card .rc-t em { font-style: normal; font-family: Inter, sans-serif; font-size: 11px; font-weight: 700; color: var(--gold); background: var(--gold-deep); border-radius: 999px; padding: 4px 10px; }
.ready-card .rc-s { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.ready-card .rc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 12px; }
.ready-card .rc-chips span { border: 1px solid #222B45; border-radius: 999px; padding: 6px 12px; }
.ready-card .rc-warn { font-size: 12px; color: var(--purple); margin-top: 10px; font-weight: 600; }
.terms-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--text); }
.terms-row input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--gold); }
.fine-box { background: var(--card); border-radius: 14px; padding: 12px; font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 14px; }

/* the backup phrase */
.words { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: var(--card2); border: 1px solid var(--line2); border-radius: 18px; padding: 12px; user-select: text; -webkit-user-select: text; }
.words > div { background: var(--card); border-radius: 10px; padding: 9px 8px; font-weight: 600; font-size: 14px; display: flex; gap: 6px; align-items: baseline; }
.words i { font-style: normal; color: var(--dim); font-size: 11px; min-width: 16px; }
.warn-list { margin: 14px 0 18px; padding-left: 18px; color: #FFD9B8; font-size: 13px; line-height: 1.55; }
.addr { font-family: Sora, sans-serif; color: var(--text); }
.quiz { margin-bottom: 14px; }
.quiz .qk { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.qopts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.qopts button { height: 46px; border-radius: 12px; background: var(--card); border: 1px solid var(--line3); font-weight: 600; }
.qopts button.on { border: 2px solid var(--gold); background: var(--card3); }
.words-in { width: 100%; border-radius: 14px; border: 1px solid var(--line3); background: var(--bar); color: var(--text); padding: 12px 14px; font-size: 16px; line-height: 1.5; resize: none; outline: none; font-family: inherit; }
.words-in:focus { border-color: var(--gold); }
.pin-wrap { display: block; margin-top: 14px; }
.pin-wrap input { width: 100%; height: 52px; border-radius: 14px; border: 1px solid var(--line3); background: var(--card); color: var(--text); padding: 0 14px; font-size: 20px; letter-spacing: 4px; outline: none; }
.pin-wrap input:focus { border-color: var(--gold); }
.modal .form-error { display: block; }

/* add funds */
.seg { display: flex; gap: 8px; font-size: 13px; font-weight: 700; }
.seg button { flex: 1; height: 44px; border-radius: 12px; background: var(--card); }
.seg button.on { background: var(--green); color: var(--green-ink); }
.qr-card { margin-top: 16px; background: var(--card2); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; align-items: center; }
.qr-card .qr { width: 180px; height: 180px; border-radius: 14px; background: #F4F1E8; }
.addr-full { font-family: Sora, sans-serif; font-weight: 600; font-size: 13px; margin-top: 4px; word-break: break-all; text-align: center; user-select: all; -webkit-user-select: all; }
.qr-card .row2 { margin-top: 14px; }
.bal-line { font-size: 12px; color: var(--muted); margin-top: 12px; }
.warn-box { margin-top: 14px; background: #2A1C10; border-radius: 14px; padding: 12px; font-size: 12px; color: #FFD9B8; line-height: 1.5; }
.faucet { margin-top: 14px; background: var(--card); border-radius: 16px; padding: 14px; }
.faucet .fk { font-size: 12px; font-weight: 700; color: var(--gold-soft); }
.faucet .btn.dark { background: var(--card3); border: 1px solid var(--line2); font-size: 13px; }
.faucet .btn.dark:disabled { opacity: .6; }
.sb-fine { font-size: 11px; color: var(--dim); margin-top: 8px; line-height: 1.5; }

/* withdraw */
.wd-amt { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.wd-amt .cur-sign { font-family: Sora, sans-serif; font-weight: 800; font-size: 48px; letter-spacing: -2px; }
.wd-amt input { width: 100%; min-width: 0; flex: 1; background: transparent; border: 0; outline: none; font-family: Sora, sans-serif; font-weight: 800; font-size: 48px; letter-spacing: -2px; color: var(--text); padding: 0; }
.chips4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.chips4 button { height: 44px; border-radius: 12px; background: var(--card); font-size: 13px; font-weight: 700; }
.chips4 button.on { background: var(--green); color: var(--green-ink); }
.kv.sum { margin: 16px 0 6px; }

/* stake box on the modes screen */
.stake-box { background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.stake-box .sb-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.stake-box .cur { display: flex; gap: 6px; }
.stake-box .cur button { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--card); color: var(--muted); }
.stake-box .cur button.on { background: var(--green); color: var(--green-ink); }
.stake-box .tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.stake-box .tiers button { height: 44px; border-radius: 10px; font-weight: 700; font-size: 14px; background: var(--card); border: 1px solid var(--line3); }
.stake-box .tiers button.on { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.stake-box .sb-line { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; }

/* rival found: lock the stakes */
.pot-card { width: 100%; margin-top: 30px; background: var(--card2); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.pot-card .pot { font-weight: 800; font-size: 40px; color: var(--green); }
.pot-card .lines { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; font-size: 13px; }
.pot-card .lines > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 32px; }
.pot-card .ok { color: var(--green); font-weight: 700; }
.mini-gold { background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 12px; border-radius: 10px; padding: 8px 12px; flex-shrink: 0; }
.mini-gold:disabled { opacity: .7; }
.stake-result { width: 100%; margin-top: 16px; background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; font-size: 14px; text-align: center; }

/* terms */
.terms h4 { font-family: Sora, sans-serif; font-size: 15px; margin: 18px 0 4px; }
.terms p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.terms .draft { color: #FFD27A; background: #2A2208; border-radius: 12px; padding: 10px 12px; font-size: 12px; }

@media (min-width: 900px) {
  .pad18 { padding: 8px 18px 32px; }
  .qr-card { flex-direction: column; }
  .words { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stakefound > .versus, .stakefound > .pot-card, .stakefound > .btn { max-width: 520px; }
  .wrow:hover, .wallet-sheet .choice:hover, .ready-card:hover { border-color: var(--gold); filter: brightness(1.05); }
}

/* ------------------------------------------------------------ live games: Street Football and Tennis (public/js/games/live-kit.js) */
.match.g-football { background: #081120; }
.match.g-tennis { background: #0B1122; }
.match.g-football .clock, .match.g-tennis .clock { visibility: hidden; }
.play-wrap.live-wrap { padding: 0; display: block; overflow: hidden; }
.live-canvas { position: absolute; left: 0; top: 0; display: block; touch-action: none; }
.hud .kit-bar { display: flex; gap: 2px; margin-top: 4px; }
.hud .pl.right .kit-bar { justify-content: flex-end; }
.hud .kit-bar i { display: block; width: 16px; height: 5px; border-radius: 3px; }
.controls.gctl.live-ctl { min-height: 156px; padding: 6px 12px calc(10px + var(--safe-bottom)); justify-content: space-between; align-items: stretch; gap: 10px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; background: #060C18; }
.live-ctl .lc-joy { position: relative; flex: 1 1 auto; min-width: 0; touch-action: none; border-radius: 18px; }
.live-ctl .lc-base { position: absolute; left: 18px; top: calc(50% - 58px); width: 116px; height: 116px; border-radius: 50%; background: radial-gradient(circle, rgba(233,237,248,.05), rgba(233,237,248,.11)); border: 2px solid rgba(233,237,248,.2); pointer-events: none; }
.live-ctl .lc-knob { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFD27A, #F5B83D 60%, #B9852A); box-shadow: 0 4px 12px rgba(0,0,0,.45); }
.live-ctl .lc-joy.on .lc-base { border-color: rgba(245,184,61,.55); }
.live-ctl .lc-hint { position: absolute; left: 18px; bottom: 2px; width: 116px; text-align: center; font: 700 10px Sora, sans-serif; letter-spacing: 1.5px; color: var(--dim); pointer-events: none; }
.live-ctl .lc-joy.on .lc-hint { visibility: hidden; }
.live-ctl .lc-btns { flex: 0 0 auto; display: grid; align-items: center; justify-items: center; gap: 8px 10px; }
.live-ctl.fb .lc-btns { grid-template-columns: 64px 84px; grid-template-rows: 52px 84px; }
.live-ctl.tn .lc-btns { grid-template-columns: 104px; }
.live-ctl .lc-b { border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: Sora, sans-serif; font-weight: 800; color: var(--text); background: var(--card3); border: 2px solid var(--line2); touch-action: none; transition: transform .06s; padding: 0; }
.live-ctl .lc-b b { font-size: 11px; letter-spacing: .5px; pointer-events: none; }
.live-ctl .lc-b small { display: none; font: 600 9px Inter, sans-serif; color: inherit; opacity: .7; margin-top: 2px; pointer-events: none; }
.live-ctl .lc-b.s { width: 50px; height: 50px; }
.live-ctl .lc-b.s b { font-size: 9px; }
.live-ctl .lc-b.l { width: 62px; height: 62px; background: #0E3B2A; border-color: var(--green); color: var(--green); }
.live-ctl .lc-b.xl { width: 84px; height: 84px; background: var(--gold); border-color: var(--gold-soft); color: var(--gold-ink); box-shadow: 0 6px 18px rgba(245,184,61,.25); }
.live-ctl .lc-b.xl b { font-size: 13px; }
.live-ctl.tn .lc-b.xl { width: 100px; height: 100px; }
.live-ctl .lc-b.down { transform: scale(.9); filter: brightness(1.2); }
.live-ctl .lc-keys { display: none; }
@media (hover: hover) and (pointer: fine) {
  .controls.gctl.live-ctl { min-height: 74px; align-items: center; }
  .live-ctl .lc-joy { display: none; }
  .live-ctl .lc-keys { display: block; flex: 1 1 auto; font-size: 13px; color: var(--muted); line-height: 1.5; }
  .live-ctl .lc-keys b { color: var(--text); font-family: Sora, sans-serif; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--card3); border: 1px solid var(--line2); }
  .live-ctl .lc-btns { order: 2; display: flex; gap: 8px; }
  .live-ctl .lc-b, .live-ctl .lc-b.s, .live-ctl .lc-b.l, .live-ctl .lc-b.xl, .live-ctl.tn .lc-b.xl { width: auto; height: 46px; border-radius: 14px; padding: 0 14px; flex-direction: column; }
  .live-ctl .lc-b small { display: block; }
}

/* mode heroes: football and tennis */
.mode-hero.hero-football { background: radial-gradient(ellipse at 50% 0%, #1B3B2C, #081120 75%); }
.h-cage { position: absolute; left: 50%; top: 34px; width: 300px; height: 140px; margin-left: -150px; border-radius: 6px; overflow: hidden; transform: perspective(500px) rotateX(38deg); background: repeating-linear-gradient(90deg, #2C9454 0 30px, #279049 30px 60px); box-shadow: 0 0 0 4px #14213D, 0 20px 40px rgba(0,0,0,.5); }
.h-cage i { position: absolute; display: block; }
.h-cage .m { left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(244,241,232,.8); }
.h-cage .c { left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 2px solid rgba(244,241,232,.8); }
.h-cage .g { top: 50%; width: 10px; height: 34px; margin-top: -17px; border: 2px solid #F4F1E8; background: rgba(233,237,248,.15); }
.h-cage .g.l { left: -2px; } .h-cage .g.r { right: -2px; }
.h-kit { position: absolute; top: 74px; width: 14px; height: 22px; border-radius: 4px 4px 2px 2px; }
.h-kit.a { left: calc(50% - 50px); background: #1F5FBF; box-shadow: 0 -9px 0 -3px #8D5524; }
.h-kit.b { left: calc(50% + 34px); background: #D9481C; box-shadow: 0 -9px 0 -3px #4E3020; }
.h-ball.fb { right: auto; left: calc(50% - 8px); top: 100px; width: 16px; height: 16px; }
.mode-hero.hero-tennis { background: linear-gradient(#0E1A33, #13294A 50%, #1F7A55 50%); }
.h-court { position: absolute; left: 50%; top: 70px; width: 170px; height: 150px; margin-left: -85px; background: #2C6FC4; border: 3px solid #F4F1E8; transform: perspective(420px) rotateX(48deg); transform-origin: 50% 100%; }
.h-court i { position: absolute; display: block; background: #F4F1E8; }
.h-court .sv { left: 0; right: 0; top: 30%; height: 3px; }
.h-court .ct { left: 50%; top: 30%; bottom: 0; width: 3px; margin-left: -1px; }
.h-net { position: absolute; left: 50%; top: 104px; width: 210px; height: 16px; margin-left: -105px; border-top: 3px solid #F4F1E8; background: repeating-linear-gradient(90deg, rgba(233,237,248,.3) 0 1px, transparent 1px 6px), rgba(12,16,22,.5); }
.h-tball { position: absolute; left: calc(50% + 60px); top: 58px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F2FF9A, #D7F23A 60%, #9DB820); box-shadow: -18px 10px 0 -5px rgba(215,242,58,.25), -34px 20px 0 -6px rgba(215,242,58,.12); }

/* ------------------------------------------------------------ Car Racing, Mini Golf, Air Hockey (public/js/games/racing-view.js, golf-view.js, hockey-view.js) */
.match.g-racing { background: #0A1A12; }
.match.g-hockey { background: #060A16; }
.match.g-golf { background: #1B1636; }
.match.g-racing .clock, .match.g-hockey .clock { visibility: hidden; }
/* racing controls: LEFT and RIGHT under the left thumb, BRAKE and BOOST under the right */
.controls.gctl.live-ctl.rc { min-height: 118px; align-items: center; }
.live-ctl.rc .rc-steer, .live-ctl.rc .rc-act { display: flex; gap: 10px; align-items: center; }
.live-ctl.rc .rc-b { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: 22px; border: 2px solid var(--line2); background: var(--card3); color: var(--text); touch-action: none; padding: 0; font-family: Sora, sans-serif; transition: transform .06s; -webkit-tap-highlight-color: transparent; }
.live-ctl.rc .rc-b b { position: relative; font-size: 12px; font-weight: 800; letter-spacing: .6px; pointer-events: none; }
.live-ctl.rc .rc-b svg { width: 38px; height: 38px; pointer-events: none; }
.live-ctl.rc .rc-l, .live-ctl.rc .rc-r { width: 82px; height: 92px; }
.live-ctl.rc .rc-brake { width: 72px; height: 72px; border-radius: 50%; background: #2A1418; border-color: #E2463B; color: #FF8A80; }
.live-ctl.rc .rc-boost { width: 92px; height: 92px; border-radius: 50%; background: #241B05; border-color: var(--gold); color: var(--gold); }
.live-ctl.rc .rc-boost .rc-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: linear-gradient(#F5B83D, #B9852A); opacity: .35; transform-origin: 50% 100%; pointer-events: none; }
.live-ctl.rc .rc-boost.on { box-shadow: 0 0 22px rgba(245,184,61,.55); }
.live-ctl.rc .rc-boost.empty { opacity: .55; }
.live-ctl.rc .rc-b.down { transform: scale(.92); filter: brightness(1.25); }
@media (hover: hover) and (pointer: fine) {
  .controls.gctl.live-ctl.rc { min-height: 70px; }
  .live-ctl.rc .rc-steer { order: 1; }
  .live-ctl.rc .lc-keys { order: 2; }
  .live-ctl.rc .rc-act { order: 3; }
  .live-ctl.rc .rc-l, .live-ctl.rc .rc-r { width: 54px; height: 46px; border-radius: 14px; }
  .live-ctl.rc .rc-b svg { width: 24px; height: 24px; }
  .live-ctl.rc .rc-brake, .live-ctl.rc .rc-boost { width: auto; height: 46px; padding: 0 16px; border-radius: 14px; }
}
/* air hockey: the table takes the screen, a one-line hint below */
.controls.gctl.hk-ctl { min-height: 44px; padding: 6px 14px calc(8px + var(--safe-bottom)); background: #060A16; justify-content: center; }
.hk-hint { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.4; }
.hk-hint b { color: var(--text); font-family: Sora, sans-serif; font-weight: 700; }
.hk-hint .hk-keys { display: none; }
.hk-wrap .live-canvas { cursor: none; }
@media (hover: hover) and (pointer: fine) { .hk-hint .hk-keys { display: inline; } }
/* mini golf: the scorecard and the power bar */
.controls.gctl.gf-controls { min-height: 92px; padding: 8px 12px calc(10px + var(--safe-bottom)); background: #140F28; }
.gf-ctl { display: flex; gap: 12px; align-items: center; width: 100%; }
.gf-card { flex: 0 0 auto; }
.gf-card table { border-collapse: collapse; font-size: 12px; }
.gf-card th, .gf-card td { padding: 2px 6px; text-align: center; color: var(--text); font-family: Sora, sans-serif; }
.gf-card th { font-size: 11px; color: var(--muted); font-weight: 700; }
.gf-card th small { display: block; font-size: 9px; font-weight: 600; color: var(--dim); }
.gf-card th.on { color: var(--gold); }
.gf-card td:first-child { text-align: left; font-family: Inter, sans-serif; font-weight: 600; max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-card td:first-child i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.gf-card td em { color: var(--gold); font-style: normal; }
.gf-right { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gf-pow { position: relative; height: 14px; border-radius: 7px; background: var(--card3); overflow: hidden; }
.gf-pow i { position: absolute; inset: 0; background: linear-gradient(90deg, #3DDC97, #F5B83D 60%, #E2463B); transform: scaleX(0); transform-origin: 0 50%; }
.gf-pow b { position: absolute; right: 6px; top: 0; font: 700 10px/14px Sora, sans-serif; color: #0B1122; }
.gf-hint { font-size: 12px; color: var(--muted); line-height: 1.3; }
.gf-hint .t { color: var(--text); font-weight: 600; }
.gf-hint .k { display: none; }
@media (hover: hover) and (pointer: fine) { .gf-hint .t { display: none; } .gf-hint .k { display: inline; } .gf-hint .k b { color: var(--text); font-family: Sora, sans-serif; } }
.gf-wrap .live-canvas { touch-action: none; }
/* the grid on the "rival found" screen (3 or 4 cars) and a room for 4 */
.grid-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 26px; }
.grid-up .gu { position: relative; background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; overflow: hidden; }
.grid-up .gu.you { border-color: var(--gold); }
.grid-up .gu .nm { font-weight: 600; font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-up .gu > i { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.seats2.seats4 { flex-wrap: wrap; }
.seats2.seats4 > div { flex: 1 1 calc(50% - 10px); }
/* mode heroes */
.mode-hero.hero-racing { background: radial-gradient(ellipse at 50% 10%, #24543A, #0A1A12 75%); }
.h-track { position: absolute; left: 50%; top: 20px; width: 150px; height: 230px; margin-left: -75px; background: #3A3F4A; transform: perspective(420px) rotateX(46deg); transform-origin: 50% 100%; box-shadow: 0 0 0 10px #3C9461; }
.h-track i { position: absolute; display: block; }
.h-track .kb { top: 0; bottom: 0; width: 8px; background: repeating-linear-gradient(#D9342B 0 14px, #F4F1E8 14px 28px); }
.h-track .kb.l { left: 0; } .h-track .kb.r { right: 0; }
.h-track .ln { left: 8px; right: 8px; top: 62%; height: 10px; background: repeating-linear-gradient(90deg, #F4F1E8 0 10px, #14161C 10px 20px); }
.h-car { position: absolute; width: 22px; height: 40px; border-radius: 9px 9px 6px 6px; box-shadow: 4px 6px 0 rgba(0,0,0,.3); }
.h-car i { position: absolute; left: 4px; right: 4px; top: 11px; height: 12px; border-radius: 4px; background: #0D1220; }
.h-car.a { left: calc(50% - 30px); top: 112px; background: #E2463B; }
.h-car.b { left: calc(50% + 8px); top: 92px; background: #2F6FE0; }
.h-car.c { left: calc(50% - 6px); top: 150px; background: #F5B83D; }
.mode-hero.hero-golf { background: linear-gradient(#1B1636, #3A2244 60%, #5A2E3A); }
.h-green { position: absolute; left: 50%; top: 40px; width: 200px; height: 170px; margin-left: -100px; border-radius: 30px; background: repeating-linear-gradient(#2FA866 0 18px, #35B06E 18px 36px); border: 6px solid #8A5C34; transform: perspective(500px) rotateX(40deg); }
.h-green i { position: absolute; display: block; }
.h-green .cup { left: 128px; top: 36px; width: 16px; height: 16px; border-radius: 50%; background: #0A0E14; box-shadow: 0 0 0 2px #E9EDF8; }
.h-green .pole { left: 135px; top: -18px; width: 3px; height: 62px; background: #E9EDF8; }
.h-green .flag { left: 138px; top: -18px; width: 30px; height: 18px; background: #F5B83D; clip-path: polygon(0 0, 100% 45%, 0 100%); }
.h-gball { position: absolute; left: calc(50% - 40px); top: 152px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFFFFF, #E9EDF8 50%, #B9B2A0); box-shadow: 3px 4px 0 rgba(0,0,0,.3); }
.h-ramp { position: absolute; left: calc(50% - 60px); top: 110px; width: 70px; height: 20px; background: rgba(255,214,120,.18); border-radius: 4px; transform: perspective(500px) rotateX(40deg); }
.mode-hero.hero-hockey { background: radial-gradient(ellipse at 50% 40%, #141C3A, #060A16 75%); }
.h-rink { position: absolute; left: 50%; top: 26px; width: 150px; height: 210px; margin-left: -75px; border-radius: 22px; background: linear-gradient(#0E1E46, #132A5C 50%, #0E1E46); border: 7px solid #2A1F5C; box-shadow: 0 0 26px rgba(123,63,209,.6); transform: perspective(520px) rotateX(38deg); }
.h-rink i { position: absolute; display: block; }
.h-rink .cl { left: 0; right: 0; top: 50%; height: 2px; background: rgba(233,237,248,.3); }
.h-rink .cc { left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 2px solid rgba(233,237,248,.3); }
.h-rink .g { left: 50%; width: 50px; height: 6px; margin-left: -25px; background: #04060E; }
.h-rink .g.t { top: -6px; box-shadow: 0 2px 0 #B9A4FF; } .h-rink .g.b { bottom: -6px; box-shadow: 0 -2px 0 #F5B83D; }
.h-mal { position: absolute; width: 30px; height: 30px; border-radius: 50%; }
.h-mal.a { left: calc(50% + 14px); top: 168px; background: radial-gradient(circle at 40% 35%, #FFFFFF, #F5B83D 30%, #8A651E); box-shadow: 0 0 14px rgba(245,184,61,.6); }
.h-mal.b { left: calc(50% - 40px); top: 62px; width: 24px; height: 24px; background: radial-gradient(circle at 40% 35%, #FFFFFF, #B9A4FF 30%, #5A4A8A); }
.h-puck { position: absolute; left: calc(50% - 8px); top: 120px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #FF8A7A 45%, #E2463B 50%); box-shadow: 0 0 12px #FF6B5B; }
.room-screen:has(.seats4) { overflow-y: auto; }
.seats2.seats4 > div { flex-direction: row; justify-content: flex-start; padding: 8px 10px; gap: 8px; text-align: left; min-width: 0; }
.seats2.seats4 > div > div { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seats2.seats4 .av.s56 { width: 36px; height: 36px; font-size: 13px; border-radius: 11px; flex-shrink: 0; }
.seats2.seats4 .ghost-av { width: 36px; height: 36px; flex-shrink: 0; }
