/* Bidness. Ink-navy table, cream paper cards, money-green Bollars. */
@font-face { font-family: 'Archivo'; src: url(fonts/archivo-latin-wdth-normal.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
:root {
  --bg: #0b1020; --bg2: #10172b; --board: #111a30; --panel: #141c32; --panel2: #1a2340; --panel3: #222c4c;
  --line: rgba(255, 255, 255, .075); --line2: rgba(255, 255, 255, .13);
  --ink: #eef1f8; --ink2: #b0b8cd; --ink3: #7c86a2;
  --paper: #f4eee0; --paper2: #e8dfca; --paper3: #d9ceb4; --pink: #1b1e28; --pink2: #5d5a52;
  --money: #22d47b; --money2: #10b866; --moneyink: #04301a;
  --danger: #ff5f5f; --warn: #ffc857; --info: #7cc4ff;
  --r: 14px; --r2: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25);
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --head: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { overflow-x: hidden; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 500 15px/1.45 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--info); }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
svg.i { width: 1.15em; height: 1.15em; fill: currentColor; vertical-align: -.2em; flex: none; }
svg.i .ac { fill: rgba(0, 0, 0, .55); stroke: rgba(0, 0, 0, .55); }
::selection { background: rgba(34, 212, 123, .35); }
:focus-visible { outline: 2px solid var(--money); outline-offset: 2px; }

/* the Bollar sign and the Bands mark */
.bol { display: inline-block; width: .62em; height: .9em; margin: 0 .06em 0 0; vertical-align: -.08em; background: linear-gradient(180deg, #5cf3a6, var(--money) 45%, var(--money2)); -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; filter: drop-shadow(0 0 .2em rgba(34, 212, 123, .35)); }
.paper .bol, .on-paper .bol { background: linear-gradient(180deg, #19b866, #0b8f4d); filter: none; }
.money { color: inherit; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.btn.go .bol, .btn.light .bol, .btn.danger .bol { background: currentColor; filter: none; }
.bands { display: inline-flex; align-items: center; gap: .3em; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; vertical-align: -.22em; }
.bands i.bm { width: 1.3em; height: 1.1em; background: var(--bandsmark) center / contain no-repeat; display: inline-block; }
.pos { color: var(--money); } .neg { color: var(--danger); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--head); display: flex; align-items: center; gap: 16px; padding: 0 clamp(12px, 2.4vw, 28px); background: rgba(11, 16, 32, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo .mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(160deg, #18233f, #0d1427); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 4px 12px rgba(0, 0, 0, .4); position: relative; }
.logo .mark::after { content: ''; position: absolute; inset: 5px 8px; background: linear-gradient(180deg, #5cf3a6, var(--money) 50%, var(--money2)); -webkit-mask: var(--glyphH) center / contain no-repeat; mask: var(--glyphH) center / contain no-repeat; }
.logo .word { font-weight: 900; font-stretch: 112%; font-size: 22px; letter-spacing: .01em; display: inline-flex; align-items: center; line-height: 1; }
.logoB { display: inline-block; width: .74em; height: 1.05em; margin-right: .02em; background: linear-gradient(180deg, #5cf3a6, var(--money) 50%, var(--money2)); -webkit-mask: var(--glyphH) center / contain no-repeat; mask: var(--glyphH) center / contain no-repeat; }
.topmid { flex: 1; display: flex; justify-content: center; min-width: 0; }
.topnav { display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); font-weight: 700; cursor: pointer; }
.pill:hover { background: var(--panel3); }
.ribbon { font-size: 11.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--warn); background: rgba(255, 200, 87, .1); border: 1px solid rgba(255, 200, 87, .3); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
button.me { display: inline-flex; align-items: center; gap: 9px; padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); cursor: pointer; font-weight: 700; }
button.me:hover { background: var(--panel3); }
.menu { position: absolute; right: 14px; top: calc(var(--head) - 4px); min-width: 220px; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r); padding: 6px; box-shadow: var(--shadow); z-index: 60; animation: pop .18s var(--ease); }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: 9px; cursor: pointer; text-align: left; font-weight: 600; }
.menu button:hover { background: var(--panel2); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

/* ---------- buttons: they press like keys ---------- */
.btn { --bb: #10172b; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 12px; border: 0; cursor: pointer; font-weight: 750; letter-spacing: .01em; background: var(--panel3); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 0 var(--bb), 0 6px 14px rgba(0, 0, 0, .3); transform: translateY(0); transition: transform .09s ease, box-shadow .09s ease, background .15s; user-select: none; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.btn:hover { background: #2a3558; }
.btn:active, .btn.pressed { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 0 var(--bb), 0 2px 6px rgba(0, 0, 0, .3); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.go { --bb: #087a40; background: linear-gradient(180deg, #34e38b, #1cc86f); color: var(--moneyink); }
.btn.go:hover { background: linear-gradient(180deg, #45ee98, #22d47b); }
.btn.danger { --bb: #8d2323; background: linear-gradient(180deg, #ff7676, #ef4f4f); color: #2a0707; }
.btn.light { --bb: #b9ad92; background: linear-gradient(180deg, #fffaf0, #efe6d2); color: var(--pink); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line2); --bb: transparent; }
.btn.ghost:active { transform: translateY(1px); }
.btn.big { min-height: 56px; padding: 0 28px; font-size: 18px; border-radius: 16px; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn .sub { font-weight: 600; opacity: .7; font-size: .85em; }
.btn.hold { overflow: hidden; }
.btn.hold .fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: rgba(255, 255, 255, .28); pointer-events: none; }
.btn.hold.holding .fill { transition: transform var(--holdms, 1100ms) linear; transform: scaleX(1); }
.btn.hold span { position: relative; }
.iconbtn { width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; color: var(--ink2); }
.iconbtn:hover { color: var(--ink); background: var(--panel3); }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin: 0 0 14px; }
.field > span { font-size: 13px; font-weight: 650; color: var(--ink2); }
.field small { color: var(--ink3); font-size: 12.5px; }
.input, select.input, textarea.input { width: 100%; height: 46px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line2); background: var(--bg2); outline: none; transition: border .15s, box-shadow .15s; }
textarea.input { height: auto; padding: 10px 14px; resize: vertical; }
.input:focus { border-color: rgba(34, 212, 123, .6); box-shadow: 0 0 0 3px rgba(34, 212, 123, .15); }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink3); }
.err { color: var(--danger); font-weight: 650; font-size: 13.5px; min-height: 1.2em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg2); cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: rgba(34, 212, 123, .14); border-color: rgba(34, 212, 123, .6); color: #b6f7d4; }
.chip:disabled { opacity: .45; cursor: not-allowed; }
.switch { position: relative; width: 48px; height: 28px; flex: none; border-radius: 999px; background: var(--panel3); border: 1px solid var(--line2); cursor: pointer; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #c6cde0; transition: transform .22s var(--spring), background .2s; }
.switch.on { background: rgba(34, 212, 123, .5); }
.switch.on::after { transform: translateX(20px); background: #fff; }

/* ---------- sheets (modals) and toasts ---------- */
.sheetwrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(5, 8, 18, .62); backdrop-filter: blur(6px); animation: fade .2s ease; }
.sheet { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); padding: 22px; animation: rise .28s var(--spring); position: relative; }
.sheet.wide { width: min(980px, 100%); }
.sheet.mid { width: min(720px, 100%); }
.sheet h2 { margin: 0 0 4px; font-size: 22px; font-weight: 850; font-stretch: 105%; }
.sheet h3 { margin: 18px 0 8px; font-size: 14px; color: var(--ink2); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.sheet .x { position: absolute; top: 14px; right: 14px; z-index: 5; }
.sheet .foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
#toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(560px, calc(100vw - 24px)); }
.toast { background: var(--panel2); border: 1px solid var(--line2); border-radius: 14px; padding: 11px 16px; box-shadow: var(--shadow); font-weight: 650; animation: rise .3s var(--spring); pointer-events: auto; max-width: 100%; }
.toast.bad { border-color: rgba(255, 95, 95, .5); }
.toast.good { border-color: rgba(34, 212, 123, .5); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }

/* ---------- pages ---------- */
.page { min-height: calc(100dvh - var(--head)); }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; padding: 28px 0 60px; }
.hero { min-height: calc(100dvh - var(--head)); display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(20px, 4vw, 60px); width: min(1180px, 100% - 40px); margin: 0 auto; padding: 24px 0; }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: .96; margin: 0 0 18px; font-weight: 900; font-stretch: 112%; letter-spacing: -.015em; }
.hero h1 em { font-style: normal; color: var(--money); }
.hero p.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink2); max-width: 520px; margin: 0 0 26px; }
.hero .pts { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--ink2); }
.hero .pts li { display: flex; gap: 10px; align-items: center; }
.hero .pts svg.i { color: var(--money); }
.heroBoard { aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; perspective: 1400px; }
.heroBoard .board { transform: rotateX(28deg) rotateZ(-14deg); transform-style: preserve-3d; box-shadow: 0 40px 80px rgba(0, 0, 0, .5); pointer-events: none; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 28px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 8px; align-content: start; }
.step .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; background: var(--panel3); }
.step.done .n { background: var(--money); color: var(--moneyink); }
.step.now { border-color: rgba(34, 212, 123, .45); box-shadow: 0 0 0 4px rgba(34, 212, 123, .07); }
.step h3 { margin: 0; font-size: 17px; }
.step p { margin: 0; color: var(--ink2); font-size: 14px; }
.lobbyhead { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.lobbyhead h1 { margin: 0; font-size: 30px; font-weight: 900; font-stretch: 108%; }
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tcard { background: linear-gradient(180deg, var(--panel), #121a2e); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 12px; transition: transform .15s var(--ease), border-color .15s; }
.tcard:hover { transform: translateY(-2px); border-color: var(--line2); }
.tcard .stake { font-size: 26px; font-weight: 850; }
.tcard .seats { display: flex; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 750; background: var(--panel3); color: var(--ink2); }
.tag.classic { background: rgba(124, 196, 255, .12); color: #bfe2ff; }
.tag.custom { background: rgba(255, 200, 87, .12); color: #ffe3a6; }
.tag.ai { background: rgba(185, 139, 255, .14); color: #dcc8ff; }
.empty { text-align: center; padding: 40px 16px; color: var(--ink3); border: 1px dashed var(--line2); border-radius: 18px; }
.side2 { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.box h3 { margin: 0 0 10px; font-size: 13px; color: var(--ink3); font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--ink2); }
.rules { display: grid; gap: 6px; margin: 12px 0; }
.rules .r { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--bg2); font-size: 14px; }
.rules .r b { font-weight: 750; }
.rules .r.off b { color: var(--ink3); }
.rules .r.changed { box-shadow: inset 3px 0 0 var(--warn); }
.callout { border-radius: 14px; padding: 12px 14px; background: rgba(255, 200, 87, .08); border: 1px solid rgba(255, 200, 87, .28); color: #ffe7b0; font-size: 14px; }
.callout.money { background: rgba(34, 212, 123, .08); border-color: rgba(34, 212, 123, .3); color: #c9f8dd; white-space: normal; }
.callout.bad { background: rgba(255, 95, 95, .08); border-color: rgba(255, 95, 95, .35); color: #ffd2d2; }
.callout.mailnote { display: grid; gap: 10px; margin-bottom: 18px; }
.callout.mailnote .row { gap: 8px; flex-wrap: wrap; }
.avatar { --c: #888; position: relative; width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 58%, color-mix(in srgb, var(--c) 70%, #000)); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22), 0 2px 6px rgba(0, 0, 0, .35); color: #fff; }
.avatar svg { width: 60%; height: 60%; fill: #fff; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .3)); }
.avatar.sm { width: 26px; height: 26px; }
.avatar.lg { width: 64px; height: 64px; }
.avatar.xl { width: 120px; height: 120px; }
/* 3D pieces: the piece stands on a soft pool of its player's colour */
.avatar.piece { background: none; box-shadow: none; border-radius: 0; }
.avatar.piece::before { content: ''; position: absolute; left: 6%; right: 6%; bottom: -2%; height: 24%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 85%, transparent), color-mix(in srgb, var(--c) 25%, transparent) 70%, transparent); pointer-events: none; }
.avatar.piece img { position: absolute; left: -12%; top: -16%; width: 124%; height: 124%; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)); }
.avatar.flat svg { width: 60%; height: 60%; }
.tokens { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.tokens button { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; font-size: 12px; font-weight: 650; color: var(--ink2); }
.tokens button.on { border-color: var(--money); background: rgba(34, 212, 123, .1); color: var(--ink); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.swatches button.on { border-color: #fff; }
.drop { border: 1.5px dashed var(--line2); border-radius: 14px; padding: 12px; display: grid; gap: 8px; justify-items: center; text-align: center; cursor: pointer; background: var(--bg2); min-height: 150px; align-content: center; position: relative; overflow: hidden; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop .lbl { position: relative; background: rgba(11, 16, 32, .75); padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.kyc3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.list { display: grid; gap: 6px; }
.list .li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--bg2); border-radius: 10px; font-size: 14px; }

/* ---------- table layout: everything on one screen ---------- */
body.at-table { overflow: hidden; }
.tablepage { height: calc(100dvh - var(--head)); display: grid; grid-template-columns: minmax(230px, 290px) minmax(0, 1fr) minmax(270px, 350px); gap: 12px; padding: 10px 12px 12px; }
.col { min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.boardwrap { min-width: 0; min-height: 0; container-type: size; display: grid; place-items: center; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px; min-height: 0; display: flex; flex-direction: column; }
.panel > h4 { margin: 2px 4px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); display: flex; align-items: center; gap: 8px; }
.panel > h4 .sp { flex: 1; }
.panel .scroll { overflow: auto; min-height: 0; flex: 1; }
.panel.fill { flex: 1; }
.players { display: grid; gap: 6px; }
.pl { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; padding: 8px; border-radius: 12px; background: var(--bg2); border: 1px solid transparent; transition: border-color .2s, background .2s; }
.pl.turn { border-color: color-mix(in srgb, var(--c) 70%, transparent); background: color-mix(in srgb, var(--c) 9%, var(--bg2)); }
.pl.out { opacity: .45; }
.pl .nm { font-weight: 750; font-size: 14px; display: flex; gap: 6px; align-items: center; min-width: 0; }
.pl .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl .sub { font-size: 12px; color: var(--ink3); display: flex; gap: 6px; align-items: center; min-height: 16px; }
.pl .cash { font-size: 15.5px; text-align: right; transition: color .45s; }
.pl .cash.up { color: var(--money); }
.pl .cash.down { color: #ff9b9b; }
.pl .sets { display: flex; gap: 2px; margin-top: 3px; }
.pl .sets i { width: 9px; height: 5px; border-radius: 2px; opacity: .9; }
.pl .acts { display: flex; gap: 4px; justify-content: flex-end; margin-top: 3px; }
.pl .acts button { height: 24px; padding: 0 8px; font-size: 11.5px; border-radius: 7px; border: 1px solid var(--line2); background: var(--panel2); cursor: pointer; font-weight: 700; color: var(--ink2); }
.pl .acts button:hover { color: var(--ink); }
.pres { display: inline-flex; align-items: center; gap: 4px; color: var(--info); font-weight: 650; }
.pres svg { width: 12px; height: 12px; }
.pres.w svg { animation: scribble .7s ease-in-out infinite; }
.dots::after { content: '...'; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.2s steps(4) infinite; overflow: hidden; vertical-align: bottom; }
@keyframes dots { 0% { width: 0; } 100% { width: 1.2em; } }
@keyframes scribble { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(1px, -1px) rotate(-8deg); } 75% { transform: translate(-1px, 1px) rotate(8deg); } }
.tag.bot { background: rgba(185, 139, 255, .16); color: #dccbff; height: 18px; font-size: 10.5px; padding: 0 6px; }
.log { display: grid; gap: 4px; align-content: start; font-size: 12.5px; color: var(--ink2); }
.log div { padding: 4px 6px; border-radius: 8px; }
.log div.k-dealDone, .log div.k-won { color: #c9f8dd; }
.log div.k-bankrupt { color: #ffc0c0; }
.log div.k-feds { color: #bfe2ff; }

/* ---------- the board ---------- */
.board { --u: calc(100cqw / 12.1); position: relative; width: min(100cqw, 100cqh); aspect-ratio: 1; container-type: inline-size; border-radius: 22px; background: radial-gradient(120% 120% at 50% 40%, #16213d, var(--board) 55%, #0c1325); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 24px 60px rgba(0, 0, 0, .45); user-select: none; -webkit-user-select: none; }
.board .tile { position: absolute; padding: .32cqw; }
.board .card { position: relative; width: 100%; height: 100%; border-radius: .9cqw; background: linear-gradient(180deg, #fbf7ee, var(--paper) 40%, var(--paper2)); color: var(--pink); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(0, 0, 0, .05), 0 .34cqw 0 #b9ad92, 0 .5cqw .2cqw rgba(0, 0, 0, .28), 0 1.1cqw 1.6cqw rgba(0, 0, 0, .3); transition: transform .16s var(--ease), box-shadow .16s; cursor: pointer; }
.board .tile:hover .card { transform: translateY(-.35cqw); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(0, 0, 0, .05), 0 .55cqw 0 #b9ad92, 0 .9cqw .4cqw rgba(0, 0, 0, .28), 0 1.8cqw 2.4cqw rgba(0, 0, 0, .35); z-index: 3; }
.board .tile.hl .card { box-shadow: inset 0 1px 0 #fff, 0 0 0 .3cqw var(--money), 0 .34cqw 0 #b9ad92, 0 1.1cqw 1.6cqw rgba(0, 0, 0, .3); }
/* a ring that pings round a tile (flashTile): paint only, nothing on the tile moves */
.board .tping { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 6; animation: tping .72s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes tping { 0% { box-shadow: 0 0 0 0 var(--pc, rgba(255, 255, 255, .95)); } 28% { box-shadow: 0 0 0 .42cqw var(--pc, rgba(255, 255, 255, .95)); } 100% { box-shadow: 0 0 0 .95cqw transparent; } }
.board .in { position: absolute; left: 50%; top: 50%; width: var(--w); height: var(--h); display: flex; flex-direction: column; align-items: stretch; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); border-radius: .9cqw; overflow: hidden; }
.board .s-top .in { flex-direction: column-reverse; }
.board .band { flex: 0 0 25%; display: flex; align-items: center; justify-content: center; gap: .3cqw; background: var(--gc); color: var(--gi); position: relative; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15); }
.board .band svg { width: 1.75cqw; height: 1.75cqw; fill: currentColor; }
.board .band .lv { position: absolute; inset: auto .4cqw .25cqw auto; display: flex; gap: .2cqw; }
.board .body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 .3cqw; gap: .15cqw; min-height: 0; }
.board .city { font-weight: 850; font-size: 1.42cqw; line-height: 1.02; letter-spacing: -.01em; font-stretch: 92%; }
.board .biz { font-weight: 700; font-size: .86cqw; text-transform: uppercase; letter-spacing: .06em; color: var(--pink2); line-height: 1.1; }
.board .foot { flex: 0 0 22%; display: grid; place-items: center; font-weight: 800; font-size: 1.12cqw; color: #2b2a25; }
.board .foot .money { color: inherit; }
.board .s-top .foot { align-items: center; }
.board .flag { position: absolute; width: 2.5cqw; height: 2.5cqw; border-radius: 50%; box-shadow: 0 0 0 .3cqw #fff, 0 .4cqw .8cqw rgba(0, 0, 0, .35); z-index: 4; pointer-events: none; }
.board .s-top .flag { left: 50%; bottom: 0; transform: translate(-50%, 55%); }
.board .s-bottom .flag { left: 50%; top: 0; transform: translate(-50%, -55%); }
.board .s-left .flag { top: 50%; right: 0; transform: translate(55%, -50%); }
.board .s-right .flag { top: 50%; left: 0; transform: translate(-55%, -50%); }
.board .own { position: absolute; display: flex; align-items: center; justify-content: center; background: var(--oc); z-index: 2; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.board .own svg { width: 1.6cqw; height: 1.6cqw; fill: #fff; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }
.board .s-top .own { left: 0; right: 0; top: 0; height: 22%; border-radius: .9cqw .9cqw 0 0; }
.board .s-bottom .own { left: 0; right: 0; bottom: 0; height: 22%; border-radius: 0 0 .9cqw .9cqw; }
.board .s-left .own { top: 0; bottom: 0; left: 0; width: 22%; border-radius: .9cqw 0 0 .9cqw; }
.board .s-right .own { top: 0; bottom: 0; right: 0; width: 22%; border-radius: 0 .9cqw .9cqw 0; }
.board .owned .foot { visibility: hidden; transition: visibility 0s linear .32s; } /* the price stays until the band has covered it */
.board .mort .in { filter: grayscale(.85) brightness(.82); }
.board .mort .card::after { content: 'MORTGAGED'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-28deg); font-weight: 900; font-size: .95cqw; letter-spacing: .08em; color: #b33; border: .2cqw solid #b33; padding: .1cqw .4cqw; border-radius: .4cqw; background: rgba(255, 255, 255, .7); z-index: 5; }
.pip { width: .72cqw; height: .72cqw; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 .12cqw rgba(0, 0, 0, .15); }
.pip.top { width: auto; height: auto; padding: .05cqw .35cqw; border-radius: .4cqw; font-size: .72cqw; font-weight: 900; background: #fff; color: #111; letter-spacing: .04em; text-transform: uppercase; }
.board .misc .body svg { width: 3.2cqw; height: 3.2cqw; fill: var(--mc, #333); }
.board .misc .city { font-size: 1.3cqw; }
.board .misc .foot { font-size: 1.05cqw; color: var(--pink2); }
.board .k-burner { --mc: #6b45c9; }
.board .k-dm { --mc: #12838e; }
.board .k-tax { --mc: #7a6a50; }
.board .k-checkin { --mc: #3a5aa8; }
.board .k-plug { --mc: #d6a400; }
.board .k-drip { --mc: #2c8fe0; }
.board .corner .in { justify-content: center; align-items: center; gap: .35cqw; padding: .6cqw; }
.board .corner svg { width: 4.6cqw; height: 4.6cqw; fill: var(--mc); }
.board .corner .ttl { font-weight: 900; font-size: 1.5cqw; letter-spacing: .01em; text-align: center; line-height: 1; font-stretch: 88%; }
.board .corner .st { font-weight: 650; font-size: .95cqw; color: var(--pink2); text-align: center; }
.board .c-reup { --mc: #12a85c; }
.board .c-reup .card { background: linear-gradient(160deg, #f6fff8, #dff5e6); }
.board .c-feds { --mc: #2553b8; }
.board .c-feds .bars { position: absolute; right: 7%; top: 7%; width: 56%; height: 56%; border-radius: .7cqw; background: repeating-linear-gradient(90deg, rgba(37, 83, 184, .16) 0 .45cqw, transparent .45cqw 1.3cqw), rgba(37, 83, 184, .08); border: .18cqw solid rgba(37, 83, 184, .35); }
.board .c-feds .in { align-items: flex-start; justify-content: flex-end; padding: .8cqw; }
.board .c-feds .ttl { text-align: left; }
/* the board turned half a turn (RE-UP bottom right): the cell sits in The Feds' outer corner */
.board.flip .c-feds .bars { right: auto; top: auto; left: 7%; bottom: 7%; }
.board.flip .c-feds .in { align-items: flex-end; justify-content: flex-start; }
.board.flip .c-feds .ttl { text-align: right; }
.board .c-after { --mc: #d44fa1; }
.board .c-rico { --mc: #c2412b; }
.board .pot { font-weight: 850; font-size: 1.2cqw; color: #0d7a44; }

/* centre: map, 3D table and the play area */
.center { position: absolute; left: calc(var(--u) * 1.55); top: calc(var(--u) * 1.55); width: calc(var(--u) * 9); height: calc(var(--u) * 9); border-radius: 1.2cqw; overflow: hidden; }
.center .map { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); width: 100%; aspect-ratio: 1000 / 604; opacity: .95; }
.center .map canvas { width: 100%; height: 100%; display: block; }
.center .map .set { position: absolute; width: 2.1cqw; height: 2.1cqw; margin: -1.05cqw 0 0 -1.05cqw; border-radius: 50%; display: grid; place-items: center; background: var(--gc); box-shadow: 0 0 0 .22cqw rgba(13, 19, 37, .9), 0 .3cqw .6cqw rgba(0, 0, 0, .4); transition: transform .2s var(--spring); }
.center .map .set svg { width: 62%; height: 62%; fill: var(--gi); }
.center .map .set.hl { transform: scale(1.45); z-index: 2; }
.center .map .cpin { position: absolute; width: .7cqw; height: .7cqw; margin: -.35cqw; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .18cqw var(--gc); opacity: .85; transition: transform .2s; }
.center .map .cpin.hl { transform: scale(2); opacity: 1; }
.center .map .cpin.hl::after { content: attr(data-n); position: absolute; left: 50%; bottom: 120%; transform: translateX(-50%) scale(.5); transform-origin: bottom; white-space: nowrap; font-size: 2cqw; font-weight: 800; background: rgba(11, 16, 32, .9); color: #fff; padding: .2cqw .7cqw; border-radius: .6cqw; }
.center .map .apin { position: absolute; width: 1.6cqw; height: 1.6cqw; margin: -.8cqw; display: grid; place-items: center; color: #cfe3ff; opacity: .8; }
.center .map .apin svg { width: 100%; height: 100%; fill: currentColor; }
.center .map svg.routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.center .fx { position: absolute; inset: 0; }
.center .ui { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 2cqw 2cqw 1.6cqw; pointer-events: none; }
.center .ui > * { pointer-events: auto; }
.status { display: flex; align-items: center; gap: 1cqw; background: rgba(11, 16, 32, .72); backdrop-filter: blur(8px); border: 1px solid var(--line); padding: .6cqw 1.4cqw .6cqw .6cqw; border-radius: 999px; font-weight: 750; font-size: 1.55cqw; box-shadow: 0 .6cqw 1.6cqw rgba(0, 0, 0, .3); max-width: 100%; }
.status .avatar { width: 3.2cqw; height: 3.2cqw; }
.status .clock { position: relative; width: 3.4cqw; height: 3.4cqw; flex: none; }
.status .clock svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.status .clock circle { fill: none; stroke-width: 3.2; }
.status .clock .bg { stroke: rgba(255, 255, 255, .12); }
.status .clock .fg { stroke: var(--money); stroke-linecap: round; transition: stroke-dashoffset .25s linear, stroke .3s; }
.status .clock.low .fg { stroke: var(--danger); }
.status .clock b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.25cqw; font-variant-numeric: tabular-nums; }
.status small { color: var(--ink2); font-weight: 600; }
.chain { margin-top: .6cqw; font-size: 1cqw; color: var(--ink3); font-weight: 650; letter-spacing: .02em; cursor: pointer; display: inline-flex; gap: .4cqw; align-items: center; background: rgba(11, 16, 32, .5); padding: .2cqw .8cqw; border-radius: 999px; }
.chain svg { width: 1.1cqw; height: 1.1cqw; fill: currentColor; }
.stage { margin-top: auto; width: 100%; display: grid; justify-items: center; gap: 1cqw; }
.acts { display: flex; gap: 1cqw; flex-wrap: wrap; justify-content: center; }
.center .btn { font-size: 1.55cqw; min-height: 4.6cqw; padding: 0 2.2cqw; border-radius: 1.3cqw; }
.center .btn.big { font-size: 1.95cqw; min-height: 5.6cqw; padding: 0 3cqw; }
.feed { width: min(80%, 60cqw); display: grid; gap: .2cqw; text-align: center; font-size: 1.22cqw; color: var(--ink2); min-height: 6cqw; align-content: end; pointer-events: none; }
.feed div { animation: rise .4s var(--ease); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.feed div:nth-last-child(n+3) { opacity: .55; }
.feed div:nth-last-child(n+4) { opacity: .3; }
.banner { background: rgba(11, 16, 32, .8); border: 1px solid var(--line2); border-radius: 1.4cqw; padding: 1cqw 1.6cqw; font-size: 1.4cqw; font-weight: 650; text-align: center; max-width: 92%; backdrop-filter: blur(8px); }
.banner.bad { border-color: rgba(255, 95, 95, .5); color: #ffd6d6; }
.offer { display: flex; gap: 1.6cqw; align-items: center; background: rgba(11, 16, 32, .82); border: 1px solid var(--line2); border-radius: 1.8cqw; padding: 1.2cqw; backdrop-filter: blur(10px); box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .45); animation: rise .35s var(--spring); }
.offer .deedmini { width: 13cqw; }
.offer .txt { display: grid; gap: .6cqw; min-width: 18cqw; }
.offer .txt h5 { margin: 0; font-size: 1.9cqw; font-weight: 850; }
.offer .txt p { margin: 0; font-size: 1.25cqw; color: var(--ink2); }

/* tokens on the board */
.tokenlayer { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.tok { position: absolute; left: 0; top: 0; width: calc(var(--u) * .62); height: calc(var(--u) * .62); margin: calc(var(--u) * -.31); will-change: transform; }
.tok .avatar { width: 100%; height: 100%; box-shadow: inset 0 -.25cqw 0 rgba(0, 0, 0, .25), 0 0 0 .22cqw #fff, 0 .4cqw .8cqw rgba(0, 0, 0, .45); }
.tok .shadow { position: absolute; left: 12%; right: 12%; bottom: -14%; height: 26%; border-radius: 50%; background: rgba(0, 0, 0, .35); filter: blur(.15cqw); z-index: -1; }
.tok.me .avatar::after { content: ''; position: absolute; inset: -.55cqw; border-radius: 50%; border: .2cqw dashed rgba(255, 255, 255, .75); animation: spin 6s linear infinite; }
.tok.jail .avatar { filter: saturate(.6); }
/* on the board the piece stands up off its tile, on a ring and pool of its colour */
.tok .avatar.piece { box-shadow: none; overflow: visible; }
.tok .avatar.piece::before { display: none; }
/* --ry is where the ring sits in the token box, --ps the image size; --ft and --hd come from table.js per piece */
/* with the live 3D layer on, the flat tokens stay as invisible anchors (money flies off them) */
.board.p3 .tok { opacity: 0; }
.tokenlayer canvas.pieces3d { z-index: 1; }
.tok:has(.piece) { --ry: 76%; --ps: 132%; }
.tok .avatar.piece img { left: calc((100% - var(--ps)) / 2); top: calc(var(--ry) - var(--ft, .8) * var(--ps)); width: var(--ps); height: var(--ps); filter: drop-shadow(0 .2cqw .2cqw rgba(0, 0, 0, .55)); }
.tok:has(.piece) .shadow { left: 4%; right: 4%; top: calc(var(--ry) - 14%); bottom: auto; height: 28%; filter: none; background: radial-gradient(closest-side, rgba(0, 0, 0, .5), rgba(0, 0, 0, .18) 60%, transparent); box-shadow: 0 0 0 .16cqw var(--c), 0 0 1cqw .2cqw color-mix(in srgb, var(--c) 55%, transparent); }
.tok.me:has(.piece) .avatar::after { display: none; }
.tok.me:has(.piece) .shadow::after { content: ''; position: absolute; inset: -38% -16%; border-radius: 50%; border: .2cqw dashed rgba(255, 255, 255, .8); animation: mePulse 1.6s ease-in-out infinite; }
@keyframes mePulse { 0%, 100% { transform: scale(.94); opacity: .55; } 50% { transform: scale(1.04); opacity: 1; } }
.dust { position: absolute; width: calc(var(--u) * .9); height: calc(var(--u) * .35); margin: calc(var(--u) * -.1) 0 0 calc(var(--u) * -.45); border-radius: 50%; border: .25cqw solid rgba(255, 255, 255, .55); animation: dust .5s ease-out forwards; pointer-events: none; z-index: 5; }
@keyframes dust { from { transform: scale(.3); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.flyer { position: fixed; z-index: 70; pointer-events: none; font-weight: 850; font-size: 18px; padding: 4px 10px; border-radius: 999px; background: rgba(11, 16, 32, .85); border: 1px solid rgba(34, 212, 123, .5); color: #c9f8dd; white-space: nowrap; }
.flyer.neg { border-color: rgba(255, 95, 95, .55); color: #ffd2d2; }

/* the card reveal */
.reveal { position: fixed; z-index: 75; perspective: 900px; pointer-events: none; }
.reveal .rc { position: absolute; inset: 0; transform-style: preserve-3d; }
.reveal .rf, .reveal .rb { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 12px; }
.reveal .rb { background: var(--deckc, #4b2f8f); box-shadow: inset 0 0 0 4px #f4efe3, 0 20px 50px rgba(0, 0, 0, .5); display: grid; place-items: center; color: #fff; font-weight: 900; }
.reveal .rb svg { width: 34%; height: 34%; fill: rgba(255, 255, 255, .8); }
.reveal .rf { transform: rotateY(180deg); background: linear-gradient(180deg, #fffaf0, var(--paper)); color: var(--pink); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); display: grid; grid-template-rows: auto 1fr auto; padding: 16px; gap: 10px; }
.reveal .rf .hd { display: flex; align-items: center; gap: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: var(--deckc); }
.reveal .rf .hd svg { width: 20px; height: 20px; fill: currentColor; }
.reveal .rf p { margin: 0; align-self: center; font-size: 18px; font-weight: 700; line-height: 1.32; text-align: center; }
.reveal .rf .ft { font-size: 11px; color: var(--pink2); text-align: center; font-weight: 700; letter-spacing: .1em; }

/* title deed (property sheet and minis) */
.deed { position: relative; background: linear-gradient(180deg, #fffaf0, var(--paper)); color: var(--pink); border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 6px 0 #b9ad92, 0 16px 30px rgba(0, 0, 0, .4); }
.deed .dh { background: var(--gc); color: var(--gi); padding: 14px 14px 12px; display: grid; gap: 2px; text-align: center; position: relative; }
.deed .dh .k { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; display: flex; align-items: center; justify-content: center; gap: 6px; }
.deed .dh .k svg { width: 15px; height: 15px; fill: currentColor; }
.deed .dh .t { font-size: 24px; font-weight: 900; font-stretch: 104%; line-height: 1.05; }
.deed .dh img { position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.deed .db { padding: 10px 14px 14px; display: grid; gap: 0; font-size: 14px; }
.deed .db .r { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed rgba(0, 0, 0, .12); }
.deed .db .r:last-child { border-bottom: 0; }
.deed .db .r.on { font-weight: 850; background: rgba(34, 212, 123, .14); margin: 0 -8px; padding: 5px 8px; border-radius: 6px; }
.deed .db .money, .deedmini .money { color: var(--pink); }
.deed .db .muted { color: var(--pink2); }
.deedmini { background: linear-gradient(180deg, #fffaf0, var(--paper)); color: var(--pink); border-radius: 1cqw; overflow: hidden; box-shadow: 0 .5cqw 0 #b9ad92, 0 1cqw 2cqw rgba(0, 0, 0, .4); text-align: center; }
.deedmini .dh { background: var(--gc); color: var(--gi); padding: .8cqw; font-size: 1cqw; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; display: flex; gap: .4cqw; align-items: center; justify-content: center; }
.deedmini .dh svg { width: 1.4cqw; height: 1.4cqw; fill: currentColor; }
.deedmini .t { font-size: 2cqw; font-weight: 900; padding: 1cqw .6cqw .2cqw; line-height: 1; }
.deedmini .p { font-size: 1.6cqw; font-weight: 800; padding: .2cqw 0 1cqw; }
.deedmini img { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; box-shadow: 0 0 0 .2cqw #fff; margin-top: .6cqw; }
.propsheet { display: grid; grid-template-columns: 250px 1fr; gap: 18px; }
.propsheet .acts2 { display: grid; gap: 8px; align-content: start; padding-top: 42px; }
.levelrow { display: flex; align-items: center; gap: 10px; justify-content: space-between; background: var(--bg2); padding: 10px; border-radius: 12px; }
.levelrow .lvl { display: flex; gap: 5px; }
.levelrow .lvl i { width: 14px; height: 14px; border-radius: 4px; background: var(--panel3); }
.levelrow .lvl i.on { background: var(--gc); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }

/* portfolio */
.port { display: grid; gap: 6px; align-content: start; }
.port .set { display: flex; gap: 4px; flex-wrap: wrap; align-items: stretch; }
.mini { width: 54px; min-height: 58px; border-radius: 8px; background: linear-gradient(180deg, #fffaf0, var(--paper)); color: var(--pink); overflow: hidden; box-shadow: 0 2px 0 #b9ad92, 0 3px 8px rgba(0, 0, 0, .35); cursor: pointer; display: flex; flex-direction: column; transition: transform .14s var(--ease); position: relative; touch-action: none; }
.mini:hover { transform: translateY(-2px); }
.mini .mb { height: 13px; background: var(--gc); display: flex; align-items: center; justify-content: center; gap: 2px; color: var(--gi); }
.mini .mb svg { width: 9px; height: 9px; fill: currentColor; }
.mini .mb .pip { width: 4px; height: 4px; }
.mini .mn { flex: 1; display: grid; place-items: center; text-align: center; font-size: 10.5px; font-weight: 800; line-height: 1.05; padding: 2px; }
.mini .mp { font-size: 10px; font-weight: 800; text-align: center; padding-bottom: 3px; color: #3b3a33; }
.mini.mort { filter: grayscale(.8) brightness(.85); }
.mini.mort::after { content: 'M'; position: absolute; right: 3px; bottom: 2px; font-size: 9px; font-weight: 900; color: #b33; }
.mini.off { opacity: .35; pointer-events: none; }
.mini.sel { box-shadow: 0 0 0 2px var(--money), 0 2px 0 #b9ad92, 0 3px 8px rgba(0, 0, 0, .35); }
.mini .lawyer { background: #3b2b6b; }
.tabs { display: flex; gap: 4px; margin: 0 0 8px; flex-wrap: wrap; }
.tabs button { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink2); font-weight: 700; font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tabs button.on { background: var(--panel3); color: var(--ink); border-color: var(--line2); }

/* deals panel and the deal desk */
.deals { display: grid; gap: 8px; align-content: start; }
.contract { border-radius: 14px; background: var(--paper); color: var(--pink); padding: 10px; display: grid; gap: 8px; box-shadow: 0 3px 0 #b9ad92, 0 8px 20px rgba(0, 0, 0, .35); position: relative; }
.contract .hd { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; }
.contract .hd .sp { flex: 1; }
.contract .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contract .side { background: rgba(0, 0, 0, .05); border-radius: 10px; padding: 6px; display: grid; gap: 4px; align-content: start; min-height: 46px; }
.contract .side .lbl { font-size: 10.5px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; color: var(--pink2); }
.contract .it { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.contract .it i { width: 8px; height: 14px; border-radius: 2px; background: var(--gc); flex: none; }
.contract .row { justify-content: flex-end; }
.contract .btn.ghost { color: var(--pink); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22); }
.contract .btn.ghost:hover { background: rgba(0, 0, 0, .06); }
.contract .warn { font-size: 11.5px; color: #8a5a00; font-weight: 700; }
.contract.mine { background: #e9eef8; }
.contract .stampd { position: absolute; right: 14px; top: 34px; transform: rotate(-12deg); font-weight: 900; color: #128c4b; border: 3px solid #128c4b; padding: 2px 8px; border-radius: 6px; font-size: 15px; letter-spacing: .06em; opacity: .85; }
.writing { font-size: 12.5px; color: var(--info); font-weight: 700; padding: 6px 4px; display: flex; gap: 6px; align-items: center; }
.desk { display: grid; gap: 14px; }
.desk .with { display: flex; gap: 8px; flex-wrap: wrap; }
.desk .with button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 5px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg2); cursor: pointer; font-weight: 750; }
.desk .with button.on { border-color: var(--money); background: rgba(34, 212, 123, .1); }
.paperdesk { background: linear-gradient(180deg, #fbf6ea, var(--paper)); color: var(--pink); border-radius: 18px; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; box-shadow: 0 6px 0 #b9ad92, 0 20px 40px rgba(0, 0, 0, .4); position: relative; }
.paperdesk::before { content: 'BIDNESS DEAL'; position: absolute; left: 50%; top: -11px; transform: translateX(-50%); background: var(--pink); color: var(--paper); font-weight: 900; letter-spacing: .2em; font-size: 11px; padding: 4px 12px; border-radius: 999px; }
.dside { display: grid; gap: 8px; align-content: start; min-width: 0; }
.dside h5 { margin: 0; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--pink2); display: flex; align-items: center; gap: 8px; }
.zone { min-height: 92px; border: 2px dashed rgba(0, 0, 0, .18); border-radius: 12px; padding: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; transition: background .15s, border-color .15s; position: relative; }
.zone.over { background: rgba(34, 212, 123, .14); border-color: #16a35c; }
.zone:empty::after { content: attr(data-empty); position: absolute; inset: 0; display: grid; place-items: center; font-size: 12.5px; font-weight: 650; color: var(--pink2); pointer-events: none; text-align: center; padding: 8px; }
.hand { display: flex; flex-wrap: wrap; gap: 6px; min-height: 64px; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .06); align-content: flex-start; }
.hand:empty::after { content: 'Nothing to trade'; color: var(--pink2); font-size: 12.5px; font-weight: 650; padding: 4px; }
.cashrow { display: flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .05); padding: 8px; border-radius: 12px; }
.cashrow input[type=range] { flex: 1; accent-color: #16a35c; min-width: 0; }
.cashrow .cv { width: 92px; height: 36px; border-radius: 9px; border: 1px solid rgba(0, 0, 0, .15); background: #fff; color: var(--pink); padding: 0 8px; font-weight: 800; text-align: right; }
.dval { font-size: 12.5px; font-weight: 750; color: var(--pink2); display: flex; justify-content: space-between; }
.ghostcard { position: fixed; z-index: 95; pointer-events: none; transform: rotate(-4deg) scale(1.06); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); opacity: .95; }

/* auction */
.auction { display: grid; gap: 1.2cqw; justify-items: center; background: rgba(11, 16, 32, .86); border: 1px solid var(--line2); border-radius: 2cqw; padding: 1.6cqw 2cqw; backdrop-filter: blur(10px); box-shadow: 0 1.2cqw 3cqw rgba(0, 0, 0, .5); animation: rise .35s var(--spring); width: min(94%, 60cqw); }
.auction .top { display: grid; grid-template-columns: 11cqw 1fr; align-items: center; gap: 2cqw; width: 100%; }
.auction .top .deedmini { width: 11cqw; }
.auction .hb { display: grid; justify-items: center; gap: .4cqw; text-align: center; }
.auction .who { white-space: nowrap; }
.auction .hb .avatar { width: 7cqw; height: 7cqw; }
.auction .hb .avatar.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.22); } }
.auction .amt { font-size: 4.2cqw; font-weight: 900; line-height: 1; }
.auction .who { font-size: 1.5cqw; font-weight: 750; color: var(--ink2); }
.auction .hist { display: flex; gap: .5cqw; flex-wrap: wrap; justify-content: center; font-size: 1.15cqw; color: var(--ink3); }
.auction .hist span { display: inline-flex; align-items: center; gap: .3cqw; background: var(--bg2); padding: .2cqw .6cqw .2cqw .2cqw; border-radius: 999px; }
.auction .hist .avatar { width: 1.8cqw; height: 1.8cqw; }

/* chat */
.chatbtn { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(180deg, #2a3558, #1d2644); color: var(--ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .1); display: grid; place-items: center; }
.chatbtn svg { width: 24px; height: 24px; fill: currentColor; }
.chatbtn .badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11.5px; font-weight: 850; display: grid; place-items: center; padding: 0 5px; }
.chatbox { position: fixed; right: 18px; bottom: 82px; z-index: 50; width: min(340px, calc(100vw - 36px)); height: min(440px, 60dvh); background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; animation: rise .25s var(--spring); }
.chatbox .msgs { flex: 1; overflow: auto; padding: 12px; display: grid; gap: 8px; align-content: start; }
.chatbox .m { font-size: 14px; }
.chatbox .m b { color: var(--c); }
.chatbox form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }

/* winner */
.winner { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; background: radial-gradient(60% 50% at 50% 42%, rgba(34, 212, 123, .18), rgba(5, 8, 18, .92) 70%); animation: fade .5s ease; overflow: hidden; }
.winner .beam { position: absolute; left: 50%; top: -20%; width: 70vmin; height: 140vmin; transform: translateX(-50%); background: conic-gradient(from 180deg at 50% 0, transparent 160deg, rgba(255, 255, 255, .1) 172deg, rgba(255, 255, 255, .16) 180deg, rgba(255, 255, 255, .1) 188deg, transparent 200deg); pointer-events: none; animation: sway 4s ease-in-out infinite; }
@keyframes sway { 50% { transform: translateX(-50%) rotate(4deg); } }
.winner .card2 { position: relative; z-index: 2; display: grid; justify-items: center; gap: 12px; text-align: center; padding: 24px; width: min(560px, 100%); }
.winner .crown { width: 70px; height: 70px; fill: #ffe082; filter: drop-shadow(0 6px 14px rgba(255, 224, 130, .5)); animation: drop .8s var(--spring) both .2s; }
@keyframes drop { from { transform: translateY(-80px) rotate(-20deg); opacity: 0; } }
.winner .avatar.xl { animation: bounceIn .9s var(--spring) both; box-shadow: 0 0 0 6px #fff, 0 0 60px rgba(34, 212, 123, .55), 0 20px 50px rgba(0, 0, 0, .5); }
.winner .avatar.piece.xl { box-shadow: none; }
.winner .avatar.piece.xl img { filter: drop-shadow(0 0 22px rgba(34, 212, 123, .5)) drop-shadow(0 18px 22px rgba(0, 0, 0, .5)); }
@keyframes bounceIn { from { transform: scale(.2); opacity: 0; } }
.winner h1 { margin: 6px 0 0; font-size: clamp(34px, 6vw, 60px); font-weight: 900; font-stretch: 110%; line-height: 1; }
.winner .takes { font-size: clamp(18px, 2.2vw, 24px); color: var(--ink2); font-weight: 700; }
.winner .big { font-size: clamp(36px, 6vw, 64px); font-weight: 900; display: inline-flex; align-items: center; gap: 12px; }
.winner .stand { width: 100%; display: grid; gap: 6px; margin-top: 8px; }
.winner .stand .li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(20, 28, 50, .85); text-align: left; }
.bill { position: absolute; z-index: 1; top: -8vh; width: 60px; height: 28px; border-radius: 4px; background: linear-gradient(90deg, #138d4c, #22c46f 30%, #f2e6c7 30% 38%, #22c46f 38%, #138d4c); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 115vh) rotate(var(--rot)); } }

/* fairness */
.hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; background: var(--bg2); padding: 8px 10px; border-radius: 10px; color: #cfe3ff; }
.ok { color: var(--money); font-weight: 800; }
.bad { color: var(--danger); font-weight: 800; }

/* ---------- small screens: board first, panels in tabs ---------- */
.mtabs { display: none; }
@media (max-width: 1180px) {
  .tablepage { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); grid-template-rows: minmax(0, 1fr); }
  .tablepage .col.left { display: none; }
  .tablepage .col.right .p-players { display: flex; }
}
@media (min-width: 1181px) { .col.right .p-players { display: none; } }
@media (max-width: 860px) {
  :root { --head: 56px; }
  .hero { grid-template-columns: 1fr; text-align: left; }
  .heroBoard { max-width: 420px; }
  .steps { grid-template-columns: 1fr; }
  .side2 { grid-template-columns: 1fr; }
  .kyc3 { grid-template-columns: 1fr; }
  .propsheet { grid-template-columns: 1fr; }
  .paperdesk { grid-template-columns: 1fr; }
  .tablepage { display: flex; flex-direction: column; gap: 8px; padding: 6px; height: calc(100dvh - var(--head)); }
  .tablepage .boardwrap { flex: none; width: 100%; height: min(100vw - 12px, 62dvh); }
  .tablepage .col.right { flex: 1; min-height: 0; }
  .mtabs { display: flex; gap: 4px; }
  .mtabs button { flex: 1; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink2); font-weight: 750; font-size: 13px; }
  .mtabs button.on { background: var(--panel3); color: var(--ink); }
  .tablepage .col.right .panel { display: none; flex: 1; }
  .tablepage .col.right .panel.mshow { display: flex; }
  .logo .word { font-size: 19px; }
  .logo .mark { width: 30px; height: 30px; }
  .top { gap: 8px; padding: 0 10px; }
  .topnav { gap: 6px; }
  .topnav .me span:last-child { display: none; }
  .topnav .me { padding: 3px; }
  .topnav [data-act=mute] { display: none; }
  .heroBoard { max-width: 330px; margin-top: 10px; }
  .propsheet .acts2 { padding-top: 0; }
  .topmid .ribbon { display: none; }
  .board .biz { display: none; }
  .board .city { font-size: 1.6cqw; }
  .chatbtn { bottom: 12px; right: 12px; width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- v4.1: the landing deal ---------- */
.land { min-height: calc(100dvh - var(--head) - 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(20px, 4vw, 64px); width: min(1220px, 100% - 40px); margin: 0 auto; padding: 22px 0 6px; }
.land-h { font-size: clamp(34px, 4.4vw, 62px); line-height: .98; margin: 0 0 20px; font-weight: 900; font-stretch: 110%; letter-spacing: -.015em; }
.land-h em { font-style: normal; color: var(--money); }
.offer { position: relative; background: var(--paper); color: var(--pink); border-radius: 20px; padding: 18px 18px 20px; box-shadow: 0 4px 0 #b9ad92, 0 26px 60px rgba(0, 0, 0, .45); transform: rotate(-1deg); display: grid; gap: 14px; max-width: 560px; animation: offerIn .6s var(--spring) both .1s; }
@keyframes offerIn { from { opacity: 0; transform: translateY(26px) rotate(-4deg) scale(.96); } }
.o-head { display: flex; align-items: center; gap: 10px; }
.o-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.o-title svg.i { color: #10b866; width: 20px; height: 20px; }
.o-to { margin-left: auto; font-size: 13px; color: var(--pink2); font-weight: 650; }
.o-to b { color: var(--pink); }
.o-sides { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; }
.o-side { background: rgba(0, 0, 0, .05); border-radius: 14px; padding: 12px; display: grid; gap: 5px; align-content: start; }
.o-lab { font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: var(--pink2); }
.o-big { font-size: 21px; font-weight: 900; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 1.15; }
.o-to2 { font-size: 13px; color: var(--pink2); font-weight: 700; }
.o-sub { font-size: 13px; color: var(--pink2); font-weight: 600; line-height: 1.35; }
.o-swap { align-self: center; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #10b866; color: #fff; box-shadow: 0 3px 0 #0b7a44; }
.o-swap svg.i { width: 20px; height: 20px; }
.o-terms { margin: 0; padding: 0 0 0 22px; display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #34373f; }
.o-terms li::marker { font-weight: 900; color: #10864d; }
.o-sign { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 2px dashed #d9ceb4; }
.o-sign .btn.ghost { color: var(--pink); background: transparent; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .25); }
.o-sign .btn.ghost:hover { background: rgba(0, 0, 0, .06); }
.o-stamp { position: absolute; right: 18px; top: -13px; transform: rotate(7deg); font-style: normal; font-weight: 900; font-size: 13px; letter-spacing: .1em; color: var(--paper); background: #141c32; border-radius: 8px; padding: 4px 10px; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
.land-pre { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.land-board { position: relative; display: grid; justify-items: center; }
/* The tilt leans the near corner (Re-Up) out to the right, so the board sits a little left of
   its column's centre and takes 86% of it: the whole board stays on screen at every width. */
.land-board .heroBoard { width: 86%; max-width: 520px; translate: -4.4% 0; }
.land-tag { margin-top: 34px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: var(--ink3); }
.land-foot { display: flex; justify-content: center; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0; padding: 10px 16px 18px; color: var(--ink3); font-size: 13px; }
.land-foot b { color: var(--ink2); font-weight: 800; }
.demoDeal { position: absolute; left: 50%; top: 46%; z-index: 6; width: 44cqw; background: var(--paper); color: var(--pink); border-radius: 1.6cqw; padding: 1.4cqw 1.6cqw 1.8cqw; box-shadow: 0 .5cqw 0 #b9ad92, 0 2.4cqw 5cqw rgba(0, 0, 0, .5); display: grid; gap: 1cqw; font-size: 2.3cqw; font-weight: 750; transform: translate(-50%, -50%) rotate(-3deg); animation: ddIn .45s var(--spring) both; transition: opacity .45s, transform .45s; }
.demoDeal .dd-h { display: flex; align-items: center; gap: 1cqw; }
.demoDeal .dd-h svg.i { color: #10b866; width: 3.2cqw; height: 3.2cqw; margin: 0 auto; }
.demoDeal .avatar.sm { width: 4cqw; height: 4cqw; }
.demoDeal .dd-r { display: flex; align-items: center; gap: 1.2cqw; flex-wrap: wrap; }
.demoDeal .dd-r span { display: inline-flex; align-items: center; gap: .8cqw; }
.demoDeal .dd-r i { width: 1.2cqw; height: 2.2cqw; border-radius: .3cqw; }
.demoDeal .dd-x { color: var(--pink2); font-weight: 650; }
.demoDeal .dd-stamp { position: absolute; right: -1.6cqw; top: -2.2cqw; background: var(--paper); font-style: normal; font-weight: 900; letter-spacing: .14em; color: #10b866; border: .4cqw solid #10b866; border-radius: 1cqw; padding: .2cqw 1cqw; transform: rotate(-12deg) scale(2); opacity: 0; transition: transform .3s var(--spring), opacity .2s; }
.demoDeal.signed .dd-stamp { opacity: 1; transform: rotate(-12deg) scale(1); }
.demoDeal.gone { opacity: 0; transform: translate(-50%, -64%) rotate(-3deg); }
@keyframes ddIn { from { opacity: 0; transform: translate(-50%, -30%) rotate(-9deg) scale(.8); } }

/* ---------- pieces are picked at the table ---------- */
.pickrow { display: grid; gap: 12px; }
.tokens.pick { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; }
.tokens.pick button { padding: 8px 2px 7px; gap: 3px; }
.tokens.pick button .avatar { width: 32px; height: 32px; }
.tokens button .avatar.piece { width: 46px; height: 46px; }
.tokens.pick button .avatar.piece { width: 40px; height: 40px; }
.tokens.pick button:disabled { opacity: .4; cursor: not-allowed; }
.tokens.pick button small { font-size: 10px; color: var(--ink3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 3px; }
.swatches button:disabled { opacity: .3; cursor: not-allowed; position: relative; }
.swatches button:disabled::after { content: ''; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; margin-left: -1px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.tseats { display: flex; gap: 6px; flex-wrap: wrap; }
.avatar.open { background: var(--bg2); box-shadow: inset 0 0 0 1.5px var(--line2); }
.muted.small { font-size: 13px; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .92em; word-break: break-all; }

/* ---------- the bag ---------- */
.bagchip { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px; background: rgba(34, 212, 123, .1); border: 1px solid rgba(34, 212, 123, .28); font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.bagchip:empty { display: none; }
.bagchip .bands { vertical-align: 0; }
.bagic { width: 13px; height: 14px; display: inline-block; background: var(--money); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 26'%3E%3Cpath d='M8.6 1h6.8l-1.6 4.2h-3.6zM8 6.4h8v2.2H8zM8.4 9.6C4.5 11.8 2.6 16.3 3.6 19.9 4.5 23.2 7.4 25 12 25s7.5-1.8 8.4-5.1c1-3.6-.9-8.1-4.8-10.3z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 26'%3E%3Cpath d='M8.6 1h6.8l-1.6 4.2h-3.6zM8 6.4h8v2.2H8zM8.4 9.6C4.5 11.8 2.6 16.3 3.6 19.9 4.5 23.2 7.4 25 12 25s7.5-1.8 8.4-5.1c1-3.6-.9-8.1-4.8-10.3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.winner .bagline { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 850; color: var(--money); margin-top: 4px; }
.winner .flexline { margin-top: 4px; font-weight: 850; font-stretch: 108%; color: var(--paper); font-size: clamp(16px, 2vw, 20px); }

/* ---------- the cop light on whoever is in The Feds ---------- */
.tok .siren { display: none; position: absolute; left: 50%; top: -38%; width: 74%; height: 34%; transform: translateX(-50%); border-radius: 50% 50% 22% 22% / 80% 80% 25% 25%; overflow: hidden; box-shadow: 0 0 0 .14cqw rgba(255, 255, 255, .9), 0 .2cqw .5cqw rgba(0, 0, 0, .4); z-index: 2; }
.tok.jail .siren { display: flex; animation: sirenGlow 1.2s steps(1) infinite; }
.tok:has(.piece) .siren { top: calc(var(--ry) - (var(--ft, .8) - var(--hd, .2)) * var(--ps) - 26%); width: 54%; height: 26%; }
.tok .siren i { flex: 1; }
.tok .siren .r { background: #ff3b47; animation: sirenR 1.2s steps(1) infinite; }
.tok .siren .b { background: #2f7bff; animation: sirenB 1.2s steps(1) infinite; }
.tok.jail::before { content: ''; position: absolute; left: -70%; top: -70%; width: 240%; height: 240%; border-radius: 50%; z-index: -2; pointer-events: none; animation: sirenWash 1.2s steps(1) infinite; }
@keyframes sirenR { 0% { filter: brightness(1.35); } 50% { filter: brightness(.45); } }
@keyframes sirenB { 0% { filter: brightness(.45); } 50% { filter: brightness(1.35); } }
@keyframes sirenGlow { 0% { box-shadow: 0 0 0 .14cqw rgba(255, 255, 255, .9), 0 0 1.4cqw .3cqw rgba(255, 59, 71, .75); } 50% { box-shadow: 0 0 0 .14cqw rgba(255, 255, 255, .9), 0 0 1.4cqw .3cqw rgba(47, 123, 255, .75); } }
@keyframes sirenWash { 0% { background: radial-gradient(circle, rgba(255, 59, 71, .32), rgba(255, 59, 71, 0) 62%); } 50% { background: radial-gradient(circle, rgba(47, 123, 255, .32), rgba(47, 123, 255, 0) 62%); } }
.sirenmini { display: inline-block; width: 14px; height: 7px; margin-right: 6px; border-radius: 7px 7px 2px 2px; background: linear-gradient(90deg, #ff3b47 50%, #2f7bff 50%); vertical-align: 1px; animation: sirenMini 1.2s steps(1) infinite; }
@keyframes sirenMini { 50% { background: linear-gradient(90deg, #6b1d22 50%, #5fa0ff 50%); } }
.pres.feds { color: #ffb3b8; }

/* ---------- the owner console inside the preview ---------- */
.admin-overlay { position: fixed; inset: 0; z-index: 120; background: var(--bg); overflow: auto; animation: fade .2s ease; }

@media (max-width: 860px) {
  .land { grid-template-columns: 1fr; gap: 8px; padding-top: 10px; }
  .land-board { order: -1; }
  .land-board .heroBoard { max-width: 320px; }
  .land-h { margin-bottom: 14px; }
  .offer { transform: none; }
  .o-sides { grid-template-columns: 1fr 1fr; }
  .o-swap { display: none; }
}
@media (max-width: 420px) { .o-sides { grid-template-columns: 1fr; } .o-sign .btn { flex: 1; } }
@media (min-width: 900px) { .sheet.mid .rules { grid-template-columns: 1fr 1fr; } }

/* ---------- test tables (owner console): the test controls drawer ---------- */
.testend { max-width: 560px; margin: 14vh auto; padding: 0 20px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.testend h2 { margin: 0; }
#tkWrap .tk-btn { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 200, 87, .45); background: #2a2110; color: #ffe3a6; font-weight: 800; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); cursor: pointer; }
#tkWrap .tk-btn i { width: 8px; height: 8px; border-radius: 50%; background: #ffc857; box-shadow: 0 0 0 4px rgba(255, 200, 87, .18); }
#tkWrap.open .tk-btn { display: none; }
.tk { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100vw); z-index: 61; background: var(--panel); border-left: 1px solid var(--line2); box-shadow: -20px 0 60px rgba(0, 0, 0, .5); display: none; flex-direction: column; }
#tkWrap.open .tk { display: flex; }
.tk-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line2); }
.tk-head b { font-size: 15px; }
.tk-head .iconbtn { margin-left: auto; font-size: 22px; line-height: 1; }
.tk-tabs { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--line2); }
.tk-tabs button { flex: 1; height: 32px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--ink2); font-weight: 750; font-size: 13px; cursor: pointer; }
.tk-tabs button.on { background: var(--bg2); border-color: var(--line2); color: var(--ink); }
.tk-body { overflow: auto; padding: 4px 16px 24px; display: grid; gap: 8px; align-content: start; }
.tk-body h4 { margin: 14px 0 2px; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink3); }
.tk-body .input { height: 38px; font-size: 13.5px; }
.tk-body .callout { margin: 8px 0 0; }
.tk-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-p { border: 1px solid var(--line2); border-radius: 12px; padding: 10px; display: grid; gap: 6px; background: var(--bg2); }
.tk-p.out { opacity: .55; }
.tk-pl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tk-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.tk-sub { color: var(--ink2); font-size: 12.5px; }
.tk-die { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.tk-die button { height: 34px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); color: var(--ink); font-weight: 800; cursor: pointer; }
.tk-die button.on { background: rgba(34, 212, 123, .16); border-color: rgba(34, 212, 123, .6); }
.tk-q { margin: 0; font-weight: 700; }
.tk-note { margin: 0; color: var(--ink3); font-size: 12.5px; }
.tk-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.tk-list { display: grid; gap: 2px; }
.tk-li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tk-li small { display: block; color: var(--ink3); font-size: 11.5px; }
.tk .chips { gap: 6px; }
.tk .chip { height: 32px; font-size: 12.5px; padding: 0 10px; }
@media (max-width: 720px) {
  .tk { top: auto; height: 66vh; width: 100vw; border-left: 0; border-top: 1px solid var(--line2); border-radius: 16px 16px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .5); }
  #tkWrap .tk-btn { left: 10px; bottom: 10px; }
}

/* deeds, Bands notes and lawyer cards flying between players */
.fly { position: fixed; left: 0; top: 0; z-index: 75; pointer-events: none; will-change: transform, opacity; opacity: 0; }
.fdeed { width: 60px; height: 80px; border-radius: 7px; background: #f6f1e4; color: #2b2a25; box-shadow: inset 0 1px 0 #fff, 0 3px 0 #b9ad92, 0 12px 24px rgba(0, 0, 0, .45); overflow: hidden; display: flex; flex-direction: column; align-items: center; font-weight: 800; }
.fdeed .fh { width: 100%; height: 22px; flex: none; background: var(--gc); color: var(--gi); display: grid; place-items: center; }
.fdeed .fh svg { width: 14px; height: 14px; }
.fdeed .fn { font-size: 9.5px; line-height: 1.12; text-align: center; padding: 6px 4px 0; letter-spacing: -.01em; }
.fdeed .fp { margin-top: auto; padding-bottom: 6px; font-size: 9px; color: #5e5a4d; }
.fdeed .fp .money { color: inherit; }
.fdeed.lawyer { --gc: #5b3bb0; --gi: #fff; }
.fnote { width: 48px; height: 25px; border-radius: 4px; background: linear-gradient(135deg, #36d886 0%, #17a463 55%, #0f8a52 100%); border: 1px solid rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .14), 0 8px 16px rgba(0, 0, 0, .4); display: grid; place-items: center; }
.fnote .bm { width: 16px; height: 14px; background: var(--bandsmark) center / contain no-repeat; display: block; filter: brightness(0) invert(1); opacity: .9; }
.fnote .famt { position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 850; padding: 2px 9px; border-radius: 999px; background: rgba(11, 16, 32, .9); border: 1px solid rgba(34, 212, 123, .5); color: #c9f8dd; }
