/* ==========================================================
   194OPOLY — UC 194 after dark
   ========================================================== */
:root {
  --bg: #140b2e;
  --bg-2: #1d1145;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f1ff;
  --muted: #a99fcf;
  --gold: #fbbf24;
  --gold-2: #f59e0b;
  --pink: #f43f5e;
  --cyan: #22d3ee;
  --purple: #a855f7;
  --green: #22c55e;
  --tile: #fff8ec;
  --tile-ink: #2a1d4a;
  --board: #2a1a5e;
  --radius: 16px;
  --display: 'Lilita One', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 700;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 10% 0%, rgba(168, 85, 247, 0.28), transparent 60%),
    radial-gradient(50vmax 40vmax at 100% 100%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(40vmax 40vmax at 90% 10%, rgba(244, 63, 94, 0.16), transparent 60%),
    linear-gradient(180deg, #170c36, #0f0824);
}
.bg-glow::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 80%);
}

.screen { position: relative; z-index: 1; display: none; height: 100dvh; }
.screen.active { display: flex; }

/* ---------------- Buttons ---------------- */
.btn {
  --c1: #3a2d6e; --c2: #2a1f55; --sh: #160f33; --ink: #fff;
  border: 0; border-radius: 14px; padding: 10px 16px;
  font-weight: 900; letter-spacing: 0.02em; color: var(--ink);
  background: linear-gradient(180deg, var(--c1), var(--c2));
  box-shadow: 0 4px 0 var(--sh), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sh), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn:disabled { filter: grayscale(0.8) brightness(0.7); cursor: not-allowed; transform: none; }
.btn-gold { --c1: #fde047; --c2: #f59e0b; --sh: #a16207; --ink: #3b1d00; }
.btn-cyan { --c1: #67e8f9; --c2: #0891b2; --sh: #155e75; --ink: #04212b; }
.btn-pink { --c1: #fb7185; --c2: #e11d48; --sh: #881337; }
.btn-purple { --c1: #c084fc; --c2: #7e22ce; --sh: #4c1d95; }
.btn-green { --c1: #4ade80; --c2: #16a34a; --sh: #14532d; --ink: #052e16; }
.btn-ghost { --c1: rgba(255,255,255,0.12); --c2: rgba(255,255,255,0.06); --sh: rgba(0,0,0,0.35); }
.btn-lg { padding: 13px 20px; font-size: 1.05rem; }
.btn-xl { padding: 16px 22px; font-size: 1.2rem; border-radius: 18px; }
.btn-sm { padding: 6px 10px; font-size: 0.8rem; border-radius: 10px; box-shadow: 0 3px 0 var(--sh), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-block { width: 100%; }
.btn.pulse { animation: btnPulse 1.1s ease-in-out infinite; }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 0 var(--sh), 0 0 0 0 rgba(251, 191, 36, 0.6), inset 0 1px 0 rgba(255,255,255,0.35); }
  50% { box-shadow: 0 4px 0 var(--sh), 0 0 0 10px rgba(251, 191, 36, 0), inset 0 1px 0 rgba(255,255,255,0.35); }
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--panel); font-size: 1.05rem; display: grid; place-items: center;
}
.icon-btn:hover { background: var(--panel-2); }

.text-input, .select {
  width: 100%; border-radius: 12px; border: 2px solid var(--line);
  background: rgba(0,0,0,0.28); padding: 12px 14px; font-weight: 800; outline: none;
  user-select: text;
}
.text-input:focus, .select:focus { border-color: var(--cyan); }
.select { padding: 8px 10px; width: auto; }
.select option { background: var(--bg-2); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); font-size: 0.75rem; color: var(--muted); vertical-align: middle; }
.eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.field-label { font-size: 0.8rem; color: var(--muted); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.section-title { font-family: var(--display); font-size: 1.2rem; margin: 16px 0 8px; letter-spacing: 0.02em; }
.section-title.small { font-size: 0.95rem; margin: 12px 0 6px; color: var(--muted); }

/* ---------------- Home ---------------- */
#home-screen, #lobby-screen { align-items: center; justify-content: center; flex-direction: column; padding: 16px; overflow-y: auto; }
.home-card, .lobby-card {
  width: min(460px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  border: 1px solid var(--line); border-radius: 26px; padding: 26px 22px 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
}
.lobby-card { width: min(820px, 100%); }
.logo-block { text-align: center; margin-bottom: 6px; }
.logo-house { font-size: 3rem; animation: floaty 3s ease-in-out infinite; filter: drop-shadow(0 8px 16px rgba(251,191,36,0.4)); }
@keyframes floaty { 50% { transform: translateY(-8px) rotate(-4deg); } }
.logo, .mini-logo, .center-logo {
  font-family: var(--display); margin: 0; line-height: 0.95; letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fff 10%, #fde68a 55%, #f59e0b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #7c2d12) drop-shadow(0 10px 22px rgba(245, 158, 11, 0.35));
}
.logo { font-size: clamp(3rem, 13vw, 4.6rem); }
.logo span, .mini-logo span, .center-logo span {
  background: linear-gradient(180deg, #fff 10%, #f9a8d4 50%, #db2777);
  -webkit-background-clip: text; background-clip: text;
}
.tagline { color: var(--muted); margin: 10px 0 4px; }
.token-picker { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.token-picker.small { grid-template-columns: repeat(8, 1fr); }
.token-opt {
  aspect-ratio: 1; border-radius: 12px; border: 2px solid var(--line); background: var(--panel);
  font-size: 1.45rem; display: grid; place-items: center; transition: transform 0.1s;
}
.token-opt:hover { transform: translateY(-2px); }
.token-opt.selected { border-color: var(--gold); background: rgba(251, 191, 36, 0.18); box-shadow: 0 0 0 3px rgba(251,191,36,0.25); }
.token-opt.taken { opacity: 0.25; cursor: not-allowed; }
#create-btn { width: 100%; margin-top: 20px; }
.or-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.8rem; margin: 18px 0 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.join-row { display: flex; gap: 10px; }
.code-input { text-transform: uppercase; letter-spacing: 0.35em; text-align: center; font-family: var(--display); font-size: 1.4rem; padding: 8px; }
.home-foot { color: var(--muted); font-size: 0.8rem; margin-top: 16px; }

/* ---------------- Lobby ---------------- */
.lobby-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lobby-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.room-code { font-family: var(--display); font-size: 3.2rem; letter-spacing: 0.15em; color: var(--gold); text-shadow: 0 4px 0 #92400e; line-height: 1; }
.lobby-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; }
.lobby-players { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.lobby-player {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--pc);
  animation: popIn 0.35s cubic-bezier(.2,1.6,.4,1);
}
.lobby-player .lp-token { font-size: 1.6rem; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--pc) 30%, transparent); }
.lobby-player .lp-name { flex: 1; font-weight: 900; }
.lobby-player .lp-tag { font-size: 0.7rem; color: var(--muted); }
.color-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.color-opt { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; background: var(--c); }
.color-opt.selected { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.25); }
.color-opt.taken { opacity: 0.2; cursor: not-allowed; }
.rules { display: flex; flex-direction: column; gap: 8px; }
.rule-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; background: var(--panel); border-radius: 12px; }
.rule-row small { color: var(--muted); font-weight: 600; }
.switch { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: rgba(255,255,255,0.18); position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left 0.2s; }
.switch:checked { background: var(--green); }
.switch:checked::after { left: 21px; }
.switch:disabled, .select:disabled { opacity: 0.55; cursor: not-allowed; }
#start-btn { margin-top: 20px; }
.lobby-wait { text-align: center; color: var(--muted); margin-top: 16px; display: none; }
.host-only { display: none; }
.is-host .host-only { display: block; }

/* ---------------- Game layout ---------------- */
#game-screen { display: none; gap: 12px; padding: 12px; }
#game-screen.active { display: grid; grid-template-columns: 270px minmax(0, 1fr) 330px; }
.side { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 12px; backdrop-filter: blur(10px); }
.side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mini-logo { font-size: 1.6rem; }
.head-btns { display: flex; gap: 6px; }
.board-wrap { min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; container-type: size; }

/* ---------------- Board ---------------- */
.board {
  position: relative;
  width: min(100cqw, 100cqh);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: 1.5fr repeat(9, 1fr) 1.5fr;
  grid-template-rows: 1.5fr repeat(9, 1fr) 1.5fr;
  background: linear-gradient(145deg, #3b2580, #24144f);
  border-radius: 2.2%;
  padding: 0;
  box-shadow: 0 0 0 6px #1a0f3d, 0 0 0 9px rgba(251, 191, 36, 0.55), 0 30px 80px rgba(0,0,0,0.6);
  container-type: inline-size;
  overflow: hidden;
}
.tile {
  position: relative; background: var(--tile); color: var(--tile-ink);
  border: 0.12cqw solid #c9b99a; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; cursor: pointer; transition: filter 0.15s, transform 0.15s;
  padding: 0.3cqw;
}
.tile:hover { filter: brightness(1.06); z-index: 2; }
.tile-strip { position: absolute; background: var(--gc); }
.side-bottom .tile-strip { top: 0; left: 0; right: 0; height: 22%; }
.side-top .tile-strip { bottom: 0; left: 0; right: 0; height: 22%; }
.side-left .tile-strip { right: 0; top: 0; bottom: 0; width: 22%; }
.side-right .tile-strip { left: 0; top: 0; bottom: 0; width: 22%; }
.side-bottom.has-strip { padding-top: 22%; }
.side-top.has-strip { padding-bottom: 22%; }
.side-left.has-strip { padding-right: 22%; }
.side-right.has-strip { padding-left: 22%; }
.side-left, .side-right { flex-direction: row; gap: 0.4cqw; }
.side-left .tile-text, .side-right .tile-text { text-align: left; }
.tile-icon { font-size: 2.6cqw; line-height: 1; }
.tile-name { font-size: 0.95cqw; font-weight: 900; line-height: 1.05; margin-top: 0.3cqw; text-transform: uppercase; letter-spacing: -0.01em; }
.tile-price { font-size: 0.95cqw; font-weight: 800; color: #6b5a8a; margin-top: 0.2cqw; }
.tile-text { display: flex; flex-direction: column; align-items: inherit; }
.corner .tile-icon { font-size: 4.6cqw; }
.corner .tile-name { font-size: 1.25cqw; }
.corner { background: linear-gradient(145deg, #fff3d6, #ffe4a8); }
.tile.t-gotojail { background: linear-gradient(145deg, #ffd6d6, #ffb3b3); }
.tile.t-freeparking { background: linear-gradient(145deg, #fff1b8, #ffd76b); }
.tile.t-chance { background: #ffeef3; }
.tile.t-chest { background: #eaf9ff; }
.tile.t-tax { background: #f3ecff; }
/* ownership */
.tile.owned::after {
  content: ''; position: absolute; pointer-events: none; background: var(--oc);
  box-shadow: 0 0 1cqw var(--oc);
}
.side-bottom.owned::after { bottom: 0; left: 0; right: 0; height: 9%; }
.side-top.owned::after { top: 0; left: 0; right: 0; height: 9%; }
.side-left.owned::after { left: 0; top: 0; bottom: 0; width: 9%; }
.side-right.owned::after { right: 0; top: 0; bottom: 0; width: 9%; }
.tile.owned { box-shadow: inset 0 0 0 0.25cqw var(--oc); }
.tile.mortgaged > *:not(.tile-stamp) { filter: grayscale(1); opacity: 0.45; }
.tile-stamp { position: absolute; inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-24deg); font-size: 0.9cqw; font-weight: 900; color: #dc2626; border: 0.2cqw solid #dc2626; padding: 0.1cqw 0.4cqw; border-radius: 0.4cqw; background: rgba(255,255,255,0.8); }
.tile-houses { position: absolute; font-size: 1.1cqw; line-height: 1; letter-spacing: -0.15cqw; z-index: 1; }
.side-bottom .tile-houses { top: 2%; left: 0; right: 0; }
.side-top .tile-houses { bottom: 2%; left: 0; right: 0; }
.side-left .tile-houses { right: 1%; top: 0; bottom: 0; writing-mode: vertical-lr; display: flex; justify-content: center; }
.side-right .tile-houses { left: 1%; top: 0; bottom: 0; writing-mode: vertical-lr; display: flex; justify-content: center; }
.tile-hike { position: absolute; top: 2%; right: 4%; font-size: 1.5cqw; animation: hikeFlame 0.7s ease-in-out infinite alternate; z-index: 2; }
@keyframes hikeFlame { to { transform: scale(1.25) translateY(-8%); } }
.tile.flash { animation: tileFlash 0.9s ease-out; z-index: 3; }
@keyframes tileFlash { 0% { transform: scale(1); } 30% { transform: scale(1.18); box-shadow: 0 0 3cqw var(--gold); } 100% { transform: scale(1); } }
.tile.landed { animation: tileLand 0.5s ease-out; }
@keyframes tileLand { 40% { filter: brightness(1.3); transform: scale(1.08); } }
.tile.pending-buy { animation: pendingPulse 1s ease-in-out infinite; z-index: 3; }
@keyframes pendingPulse { 50% { box-shadow: inset 0 0 0 0.4cqw var(--gold), 0 0 2.5cqw var(--gold); } }

/* ---------------- Board center ---------------- */
.board-center {
  grid-area: 2 / 2 / 11 / 11; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6cqw;
  padding: 2cqw; text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(168,85,247,0.35), transparent 65%);
}
.center-top { display: flex; flex-direction: column; align-items: center; gap: 1.2cqw; }
.center-logo { font-size: 7.5cqw; transform: rotate(-4deg); }
.pot-display {
  background: linear-gradient(180deg, #fde047, #f59e0b); color: #3b1d00; border-radius: 1.6cqw;
  padding: 0.7cqw 2.4cqw; box-shadow: 0 0.5cqw 0 #a16207, 0 0 3cqw rgba(251,191,36,0.45); transform: rotate(2deg);
}
.pot-label { font-size: 1.15cqw; font-weight: 900; letter-spacing: 0.1em; }
.pot-amount { font-family: var(--display); font-size: 3.4cqw; line-height: 1; }
.pot-display.bump { animation: potBump 0.5s cubic-bezier(.2,1.8,.4,1); }
@keyframes potBump { 40% { transform: rotate(2deg) scale(1.2); } }
.turn-banner { font-size: 1.8cqw; font-weight: 900; display: flex; align-items: center; gap: 1cqw; min-height: 3cqw; }
.turn-banner .tb-token { width: 3.6cqw; height: 3.6cqw; border-radius: 50%; display: grid; place-items: center; font-size: 2.2cqw; background: var(--pc); box-shadow: 0 0 0 0.3cqw rgba(255,255,255,0.8); }
.turn-banner.mine { color: var(--gold); animation: mineGlow 1.4s ease-in-out infinite; }
@keyframes mineGlow { 50% { text-shadow: 0 0 2cqw rgba(251,191,36,0.9); } }
.dice-tray { display: flex; gap: 2cqw; }
.die {
  width: 7cqw; height: 7cqw; background: linear-gradient(145deg, #fff, #e8e0ff); border-radius: 1.4cqw;
  box-shadow: 0 0.6cqw 0 #8b7fc0, inset 0 -0.3cqw 0 rgba(0,0,0,0.08);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 0.9cqw;
}
.die .pip { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: #2a1d4a; place-self: center; }
.die.rolling { animation: dieRoll 0.12s linear infinite; }
@keyframes dieRoll { 0% { transform: rotate(0) translateY(0); } 50% { transform: rotate(14deg) translateY(-12%); } 100% { transform: rotate(-10deg) translateY(0); } }
.die.landed { animation: dieLand 0.4s cubic-bezier(.2,1.8,.4,1); }
@keyframes dieLand { 0% { transform: scale(1.35) rotate(-15deg); } 100% { transform: scale(1) rotate(0); } }
.dice-tray.doubles .die { box-shadow: 0 0.6cqw 0 #a16207, 0 0 2.5cqw var(--gold); background: linear-gradient(145deg, #fffbe6, #fde68a); }
.action-area { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2cqw; min-height: 6cqw; align-items: center; max-width: 92%; }
.action-area .btn { font-size: max(12px, 1.7cqw); padding: 1.1cqw 2cqw; border-radius: 1.4cqw; }
.action-area .btn-xl { font-size: max(15px, 2.4cqw); padding: 1.4cqw 3.4cqw; }
.action-note { font-size: max(11px, 1.4cqw); color: var(--muted); width: 100%; }
.buy-card { width: 100%; display: flex; align-items: center; gap: 1.4cqw; justify-content: center; background: rgba(0,0,0,0.25); border-radius: 1.6cqw; padding: 1cqw 1.6cqw; border-left: 0.8cqw solid var(--gc, #888); }
.buy-card .bc-icon { font-size: 4cqw; }
.buy-card .bc-name { font-family: var(--display); font-size: 2.2cqw; }
.buy-card .bc-sub { font-size: 1.3cqw; color: var(--muted); }
.ticker { font-size: max(11px, 1.35cqw); color: var(--muted); max-width: 86%; min-height: 2cqw; }
.ticker b { color: var(--text); }

/* ---------------- Tokens ---------------- */
.tokens-layer { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.token {
  position: absolute; width: 4.4cqw; height: 4.4cqw; margin: -2.2cqw 0 0 -2.2cqw; border-radius: 50%;
  display: grid; place-items: center; font-size: 2.6cqw; background: radial-gradient(circle at 35% 30%, #fff, var(--pc) 70%);
  border: 0.35cqw solid #fff; box-shadow: 0 0.6cqw 1.2cqw rgba(0,0,0,0.45), 0 0 0 0.25cqw var(--pc);
  transition: left 0.17s cubic-bezier(.3,.7,.4,1.2), top 0.17s cubic-bezier(.3,.7,.4,1.2), transform 0.17s;
}
.token.hopping { animation: hop 0.17s ease-out; }
@keyframes hop { 50% { transform: translateY(-1.6cqw) scale(1.12); } }
.token.teleport { transition: left 0.55s cubic-bezier(.6,-0.3,.3,1.3), top 0.55s cubic-bezier(.6,-0.3,.3,1.3); }
.token.active-turn { z-index: 3; animation: tokenBob 1.2s ease-in-out infinite; }
@keyframes tokenBob { 50% { transform: translateY(-0.6cqw); } }
.token.jailed::after { content: '🔒'; position: absolute; right: -1cqw; bottom: -0.8cqw; font-size: 1.6cqw; }
.token.bankrupt { display: none; }
.token-bubble {
  position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: #fff; color: #1d1145; font-size: max(10px, 1.4cqw); font-weight: 900; padding: 0.6cqw 1cqw; border-radius: 1cqw;
  box-shadow: 0 0.4cqw 1cqw rgba(0,0,0,0.4); animation: bubbleIn 2.6s ease forwards;
}
@keyframes bubbleIn { 0% { opacity: 0; transform: translate(-50%, 40%) scale(0.5); } 10% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 15% { transform: translate(-50%, 0) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -30%); } }

/* ---------------- Player list ---------------- */
.player-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; flex: 1; padding: 2px; }
.pcard {
  position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 2px 10px; align-items: center;
  padding: 9px 10px; border-radius: 14px; background: rgba(0,0,0,0.22); border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}
.pcard.active { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 16%, rgba(0,0,0,0.25)); box-shadow: 0 0 18px color-mix(in srgb, var(--pc) 45%, transparent); }
.pcard.me .pc-name::after { content: ' (you)'; color: var(--muted); font-weight: 700; font-size: 0.75rem; }
.pcard.bankrupt { opacity: 0.4; filter: grayscale(1); }
.pcard.bankrupt .pc-name { text-decoration: line-through; }
.pcard.offline .pc-avatar { opacity: 0.5; }
.pc-avatar { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: radial-gradient(circle at 35% 30%, #fff, var(--pc) 75%); border: 2px solid #fff; }
.pc-name { font-weight: 900; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pc-cash { font-family: var(--display); font-size: 1.3rem; color: #86efac; letter-spacing: 0.02em; }
.pc-cash.neg { color: #fda4af; }
.pc-cash.tick-up { animation: cashUp 0.5s ease; }
.pc-cash.tick-down { animation: cashDown 0.5s ease; }
@keyframes cashUp { 40% { transform: scale(1.25); color: #bbf7d0; text-shadow: 0 0 12px #22c55e; } }
@keyframes cashDown { 40% { transform: scale(0.9) translateX(-3px); color: #fb7185; } }
.pc-chip { font-size: 0.72rem; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,0.1); white-space: nowrap; }
.pc-badge { white-space: nowrap; font-size: 0.65rem; font-weight: 900; padding: 2px 7px; border-radius: 999px; color: #1d1145; background: var(--bc); letter-spacing: 0.04em; }
.pc-net { font-size: 0.7rem; color: var(--muted); }
.pcard .bubble { position: absolute; right: 8px; top: -10px; background: #fff; color: #1d1145; font-size: 0.75rem; font-weight: 900; padding: 4px 8px; border-radius: 10px; animation: bubbleIn 2.6s ease forwards; z-index: 3; white-space: nowrap; }
.taunt-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.taunt-btn { border: 1px solid var(--line); background: rgba(0,0,0,0.25); border-radius: 12px; padding: 7px 4px; font-size: 0.68rem; font-weight: 900; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: transform 0.1s; }
.taunt-btn span { font-size: 1.2rem; }
.taunt-btn:hover { background: var(--panel-2); transform: translateY(-2px); }
.taunt-btn:disabled { opacity: 0.4; }

/* ---------------- Right panel tabs ---------------- */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: rgba(0,0,0,0.25); padding: 4px; border-radius: 14px; margin-bottom: 10px; }
.tab { border: 0; background: transparent; border-radius: 10px; padding: 8px 2px; font-size: 0.78rem; font-weight: 900; color: var(--muted); position: relative; }
.tab.active { background: var(--panel-2); color: var(--text); }
.tab-badge { display: none; position: absolute; top: -4px; right: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--pink); color: #fff; font-size: 0.68rem; line-height: 18px; padding: 0 4px; }
.tab-badge.show { display: inline-block; }
.tab-panel { display: none; flex: 1; min-height: 0; flex-direction: column; overflow-y: auto; }
.tab-panel.active { display: flex; }
.log-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 2px; min-height: 0; }
.log-item { display: flex; gap: 8px; font-size: 0.82rem; padding: 6px 8px; border-radius: 10px; background: rgba(0,0,0,0.18); line-height: 1.3; animation: logIn 0.3s ease; }
@keyframes logIn { from { opacity: 0; transform: translateX(10px); } }
.log-item .li-icon { flex-shrink: 0; }
.log-item.tone-good { border-left: 3px solid var(--green); }
.log-item.tone-bad { border-left: 3px solid var(--pink); }
.log-item.tone-warn { border-left: 3px solid #fb923c; }
.log-item.tone-gold { border-left: 3px solid var(--gold); background: rgba(251,191,36,0.1); }
.log-item.tone-purple { border-left: 3px solid var(--purple); background: rgba(168,85,247,0.12); }
.log-item.tone-chat { background: rgba(34,211,238,0.1); border-left: 3px solid var(--cyan); }
.log-item.tone-muted { color: var(--muted); }
.chat-form { display: flex; gap: 6px; margin-top: 8px; }
.chat-form .text-input { padding: 9px 12px; }
.empty-note { color: var(--muted); text-align: center; padding: 24px 10px; font-size: 0.9rem; line-height: 1.5; }

/* Hand (petty cards) */
.hand-grid { display: flex; flex-direction: column; gap: 10px; }
.petty-card {
  border-radius: 16px; padding: 12px; background: linear-gradient(160deg, color-mix(in srgb, var(--cc) 40%, #1d1145), #1d1145 70%);
  border: 2px solid var(--cc); position: relative; animation: popIn 0.4s cubic-bezier(.2,1.6,.4,1);
}
.petty-card .pc-top { display: flex; align-items: center; gap: 8px; }
.petty-card .pc-icon { font-size: 1.8rem; }
.petty-card .pc-title { font-family: var(--display); font-size: 1.1rem; }
.petty-card p { margin: 8px 0 10px; font-size: 0.82rem; color: #ddd6fe; line-height: 1.35; font-weight: 700; }
.hand-hint { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; line-height: 1.4; }

/* Props */
.prop-summary { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.prop-group { margin-bottom: 10px; }
.prop-group-head { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 6px 0 4px; display: flex; align-items: center; gap: 6px; }
.prop-group-head .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--gc); }
.prop-group-head .set { color: var(--gold); }
.prop-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; padding: 7px 8px; border-radius: 10px; background: rgba(0,0,0,0.2); border-left: 4px solid var(--gc); margin-bottom: 4px; }
.prop-row.mortgaged { opacity: 0.6; }
.prop-row .pr-name { font-size: 0.85rem; font-weight: 900; cursor: pointer; }
.prop-row .pr-sub { font-size: 0.72rem; color: var(--muted); }
.prop-row .pr-btns { display: flex; gap: 4px; }
.prop-row .btn-sm { padding: 5px 7px; font-size: 0.72rem; }

/* Trades */
.trade-item { background: rgba(0,0,0,0.22); border-radius: 14px; padding: 10px; margin-bottom: 8px; border: 1px solid var(--line); }
.trade-item.incoming { border-color: var(--gold); box-shadow: 0 0 14px rgba(251,191,36,0.25); }
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; font-size: 0.8rem; }
.trade-cols h4 { margin: 0 0 4px; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.trade-cols ul { margin: 0; padding-left: 16px; }
.trade-actions { display: flex; gap: 6px; }

/* ---------------- Modals ---------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(8, 3, 24, 0.62); backdrop-filter: blur(6px); animation: fadeIn 0.2s ease;
}
.modal-backdrop.passive { pointer-events: none; background: rgba(8,3,24,0.35); backdrop-filter: blur(2px); }
.modal-backdrop.passive .modal { pointer-events: auto; }
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: linear-gradient(180deg, #2a1a5e, #1a0f3d);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 24px; padding: 20px; box-shadow: 0 30px 90px rgba(0,0,0,0.6);
  animation: popIn 0.35s cubic-bezier(.2,1.5,.4,1);
}
.modal.wide { width: min(680px, 100%); }
@keyframes popIn { from { opacity: 0; transform: scale(0.8) translateY(20px); } }
.modal h2 { font-family: var(--display); margin: 0 0 6px; font-size: 1.7rem; letter-spacing: 0.01em; }
.modal .sub { color: var(--muted); margin: 0 0 14px; font-size: 0.9rem; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }

/* Tile detail */
.tile-detail-head { border-radius: 16px; padding: 14px; text-align: center; background: var(--gc, #3a2d6e); color: var(--gt, #fff); margin-bottom: 12px; }
.tile-detail-head .td-icon { font-size: 2.6rem; }
.tile-detail-head .td-name { font-family: var(--display); font-size: 1.6rem; }
.tile-detail-head .td-group { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.85; }
.flavor { font-style: italic; color: #ddd6fe; font-weight: 600; text-align: center; margin: 0 0 12px; }
.rent-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.rent-table td { padding: 5px 4px; border-bottom: 1px dashed var(--line); }
.rent-table td:last-child { text-align: right; font-weight: 900; }
.rent-table tr.current td { color: var(--gold); }

/* Deck card reveal */
.deck-card {
  width: min(330px, 86vw); margin: 0 auto; border-radius: 22px; padding: 22px 20px; text-align: center; color: #1d1145;
  background: linear-gradient(160deg, #fff, #ffe9f1); border: 5px solid #fff; box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 4px var(--dc);
  animation: cardFlip 0.6s cubic-bezier(.2,1.2,.4,1);
}
.deck-card.chest { background: linear-gradient(160deg, #fff, #e3f7ff); }
@keyframes cardFlip { from { transform: perspective(800px) rotateY(180deg) scale(0.5); opacity: 0; } }
.deck-card .dk-deck { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dc); }
.deck-card .dk-icon { font-size: 3.4rem; margin: 6px 0; }
.deck-card .dk-title { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.deck-card .dk-text { margin-top: 10px; font-size: 0.95rem; color: #4c3b78; line-height: 1.35; }
.deck-card .dk-who { margin-top: 12px; font-size: 0.8rem; color: #7c6aa6; }

/* Wheel */
.wheel-wrap { position: relative; width: min(340px, 80vw); aspect-ratio: 1; margin: 10px auto; }
.wheel-svg { width: 100%; height: 100%; filter: drop-shadow(0 12px 30px rgba(0,0,0,0.5)); }
.wheel-rotor { transform-origin: 50% 50%; transform-box: view-box; }
.wheel-pointer { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 2.4rem; filter: drop-shadow(0 4px 4px rgba(0,0,0,0.5)); z-index: 2; }
.wheel-hub { position: absolute; inset: 40%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #fbbf24); display: grid; place-items: center; font-family: var(--display); color: #3b1d00; font-size: 1.1rem; box-shadow: 0 4px 10px rgba(0,0,0,0.4); }
.wheel-result { text-align: center; font-family: var(--display); font-size: 1.5rem; min-height: 2.2em; color: var(--gold); }
.wheel-result.show { animation: popIn 0.4s cubic-bezier(.2,1.8,.4,1); }

/* Auction */
.auction-tile { display: flex; gap: 12px; align-items: center; background: rgba(0,0,0,0.25); border-radius: 16px; padding: 12px; border-left: 8px solid var(--gc); }
.auction-tile .at-icon { font-size: 2.4rem; }
.auction-bid { text-align: center; margin: 16px 0 8px; }
.auction-bid .ab-amount { font-family: var(--display); font-size: 3rem; color: var(--gold); line-height: 1; }
.auction-bid .ab-amount.bump { animation: potBump 0.4s cubic-bezier(.2,1.8,.4,1); }
.auction-bid .ab-who { color: var(--muted); }
.timer-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.1); overflow: hidden; }
.timer-fill { height: 100%; background: linear-gradient(90deg, var(--pink), var(--gold)); width: 100%; transition: width 0.1s linear; }
.bid-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.bid-custom { display: flex; gap: 8px; margin-top: 8px; }

/* Target picker */
.target-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.target-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 14px; border: 2px solid var(--line); background: rgba(0,0,0,0.25); }
.target-opt:hover:not(:disabled) { border-color: var(--pc); transform: translateY(-2px); }
.target-opt:disabled { opacity: 0.35; }
.target-opt .to-avatar { font-size: 1.8rem; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff, var(--pc) 75%); }
.target-opt .to-cash { font-size: 0.8rem; color: #86efac; }

/* Trade builder */
.trade-builder { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tb-col h3 { margin: 0 0 8px; font-size: 0.9rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.tb-list { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow-y: auto; }
.tb-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; padding: 6px 8px; border-radius: 10px; background: rgba(0,0,0,0.25); border-left: 4px solid var(--gc); cursor: pointer; }
.tb-item input { accent-color: var(--gold); }
.tb-cash { margin-top: 8px; }
.tb-cash .text-input { padding: 8px 10px; }
.partner-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.partner-opt { display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 2px solid var(--line); background: rgba(0,0,0,0.25); font-weight: 900; }
.partner-opt.selected { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 25%, transparent); }
.partner-opt .po-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pc); }

/* Game over */
.podium { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.podium-row { display: grid; grid-template-columns: 32px 44px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(0,0,0,0.22); }
.podium-row.winner { background: linear-gradient(90deg, rgba(251,191,36,0.3), rgba(251,191,36,0.05)); border: 2px solid var(--gold); }
.podium-row .rank { font-family: var(--display); font-size: 1.4rem; text-align: center; }
.awards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.award { background: rgba(0,0,0,0.22); border-radius: 12px; padding: 10px; font-size: 0.8rem; }
.award b { display: block; font-size: 0.95rem; }
.winner-crown { text-align: center; font-size: 4rem; animation: floaty 2s ease-in-out infinite; }

/* ---------------- Banner / toasts / floats ---------------- */
#vfx-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.float-layer { position: fixed; inset: 0; pointer-events: none; z-index: 91; }
.float-pop {
  position: absolute; transform: translate(-50%, -50%); font-family: var(--display); font-size: 1.5rem;
  text-shadow: 0 3px 0 rgba(0,0,0,0.55), 0 0 14px currentColor; animation: floatUp 1.4s cubic-bezier(.2,.8,.3,1) forwards; white-space: nowrap;
}
.float-pop-big { font-size: 2.6rem; }
@keyframes floatUp {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(0.4); }
  15% { opacity: 1; transform: translate(-50%, -60%) scale(1.2); }
  25% { transform: translate(-50%, -70%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -260%) scale(0.95); }
}
.celebration-banner {
  position: fixed; left: 50%; top: 16%; z-index: 80; transform: translate(-50%, -30px) scale(0.6); opacity: 0; pointer-events: none;
  min-width: min(520px, 92vw); max-width: 92vw; text-align: center; padding: 16px 26px; border-radius: 22px; overflow: hidden;
  border: 3px solid rgba(255,255,255,0.85); box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: transform 0.35s cubic-bezier(.2,1.6,.4,1), opacity 0.25s;
}
.celebration-banner.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.celebration-banner.tone-gold { background: linear-gradient(135deg, #fde047, #f59e0b 60%, #ea580c); color: #3b1d00; }
.celebration-banner.tone-danger { background: linear-gradient(135deg, #fb7185, #e11d48 60%, #7f1d1d); color: #fff; }
.celebration-banner.tone-purple { background: linear-gradient(135deg, #e879f9, #9333ea 60%, #4c1d95); color: #fff; }
.celebration-banner.tone-cyan { background: linear-gradient(135deg, #67e8f9, #0891b2 60%, #164e63); color: #fff; }
.banner-title { font-family: var(--display); font-size: clamp(1.4rem, 4.5vw, 2.3rem); line-height: 1.05; position: relative; }
.banner-sub { font-weight: 900; margin-top: 6px; position: relative; opacity: 0.92; }
.banner-shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%); transform: translateX(-100%); }
.celebration-banner.show .banner-shine { animation: shine 1.2s 0.2s ease; }
@keyframes shine { to { transform: translateX(100%); } }
.toast-stack { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 95; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(420px, 92vw); }
.toast { background: #2a1a5e; border: 1px solid var(--line); border-left: 5px solid var(--cyan); padding: 10px 14px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); font-size: 0.9rem; animation: toastIn 0.3s cubic-bezier(.2,1.5,.4,1); pointer-events: auto; }
.toast.error { border-left-color: var(--pink); }
.toast.good { border-left-color: var(--green); }
.toast.out { opacity: 0; transform: translateY(10px); transition: all 0.3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(0.9); } }
.taunt-splash { position: fixed; left: 50%; top: 44%; z-index: 85; pointer-events: none; transform: translate(-50%, -50%); text-align: center; animation: tauntSplash 1.6s cubic-bezier(.2,1.4,.4,1) forwards; }
.taunt-splash .ts-emoji { font-size: 6rem; line-height: 1; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); }
.taunt-splash .ts-text { font-family: var(--display); font-size: 2.2rem; color: #fff; text-shadow: 0 4px 0 #000, 0 0 20px var(--pc); white-space: nowrap; }
.taunt-splash .ts-who { font-weight: 900; color: var(--muted); }
@keyframes tauntSplash { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(-20deg); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(4deg); } 25% { transform: translate(-50%, -50%) scale(1) rotate(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -70%) scale(0.9); } }

.shake-light { animation: shakeL 0.4s ease; }
.shake-heavy { animation: shakeH 0.5s ease; }
@keyframes shakeL { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes shakeH { 10%, 50%, 90% { transform: translate(-9px, 3px) rotate(-0.6deg); } 30%, 70% { transform: translate(9px, -3px) rotate(0.6deg); } }

.conn-overlay { position: fixed; inset: 0; z-index: 99; display: none; align-items: center; justify-content: center; background: rgba(8,3,24,0.7); backdrop-filter: blur(4px); }
.conn-overlay.show { display: flex; }
.conn-box { background: #2a1a5e; padding: 22px 26px; border-radius: 18px; display: flex; align-items: center; gap: 14px; font-weight: 900; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 4px solid rgba(255,255,255,0.2); border-top-color: var(--gold); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.menu-list { display: flex; flex-direction: column; gap: 8px; }
.your-turn-flash { position: fixed; inset: 0; pointer-events: none; z-index: 70; box-shadow: inset 0 0 120px rgba(251,191,36,0.6); animation: yourTurn 1.2s ease forwards; }
@keyframes yourTurn { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  #game-screen.active { grid-template-columns: 230px minmax(0, 1fr) 290px; }
}
@media (max-width: 960px) {
  body { overflow: auto; }
  #game-screen.active { display: flex; flex-direction: column; height: auto; min-height: 100dvh; padding: 8px; gap: 8px; }
  .board-wrap { container-type: inline-size; width: 100%; order: 2; }
  .board { width: 100cqw; }
  .panel-left { order: 1; padding: 8px; }
  .panel-right { order: 3; min-height: 420px; max-height: 70dvh; }
  .player-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; flex: none; padding-bottom: 4px; }
  .pcard { min-width: 150px; padding: 6px 8px; grid-template-columns: 34px 1fr; gap: 0 8px; }
  .pc-avatar { width: 34px; height: 34px; font-size: 1.1rem; }
  .pc-cash { font-size: 1.05rem; }
  .pc-name { font-size: 0.85rem; }
  .pc-chip, .pc-badge { font-size: 0.6rem; }
  .taunt-bar { grid-template-columns: repeat(6, 1fr); }
  .taunt-btn { font-size: 0.55rem; padding: 5px 2px; }
  .section-title.small { display: none; }
  .side-head { margin-bottom: 6px; }
  .lobby-grid { grid-template-columns: 1fr; gap: 0; }
  .room-code { font-size: 2.6rem; }
  .trade-builder { grid-template-columns: 1fr; }
}
@container (max-width: 620px) {
  .tile-name { display: none; }
  .tile-price { font-size: 1.9cqw; }
  .tile-icon { font-size: 3.6cqw; }
  .corner .tile-name { display: block; font-size: 1.9cqw; }
  .tile-stamp { font-size: 1.6cqw; }
  .tile-houses { font-size: 1.9cqw; }
  .side-left, .side-right { flex-direction: column; gap: 0; }
  .center-logo { font-size: 9cqw; }
  .pot-label { font-size: 1.8cqw; }
  .pot-amount { font-size: 5cqw; }
  .turn-banner { font-size: 2.8cqw; }
  .die { width: 9cqw; height: 9cqw; }
  .die .pip { width: 1.7cqw; height: 1.7cqw; }
  .buy-card .bc-name { font-size: 3.2cqw; }
  .buy-card .bc-sub { font-size: 2.2cqw; }
  .board-center { gap: 1.4cqw; padding: 1.2cqw; }
  .ticker { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
