/* TriCity Tycoon design system v7 ("glass + gold"): one set of tokens and components for every screen and control.
   Loaded after style.css; layout rules stay there, the look lives here. Everything animated uses transform / opacity
   only and stops under prefers-reduced-motion. */
:root {
  --ink: #f7efd9; --ink2: #b4bfe2; --ink-dark: #1d2747; --paper: #fff8ec;
  --gold: #f2b632; --gold2: #ffd76a; --gold3: #fff1b8; --gold-deep: #8a5a12;
  --trim: linear-gradient(135deg, #fff1b8 0%, #e9b23c 28%, #8a5a12 55%, #ffd76a 80%, #fff3c4 100%);
  --glass: linear-gradient(170deg, rgba(36, 46, 96, .84), rgba(13, 18, 44, .9));
  --glass2: linear-gradient(170deg, rgba(46, 58, 112, .7), rgba(20, 27, 60, .78)), linear-gradient(#141b40, #141b40);
  --glass2b: linear-gradient(170deg, rgba(46, 58, 112, .9), rgba(20, 27, 60, .95));
  --inset: rgba(5, 9, 28, .55);
  --card: rgba(18, 24, 54, .86); --line: rgba(255, 214, 120, .18);
  --shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 2px 0 rgba(255, 255, 255, .06) inset;
  --r: 18px; --font-display: Fredoka, Nunito, sans-serif;
  color-scheme: dark;
}
body { color: var(--ink); background: #0a1130; }
::selection { background: rgba(255, 215, 106, .45); color: #fff; }
a { color: var(--gold2); }

/* ---------------------------------------------------------------- the living background (every screen) */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; --px: 0; --py: 0; background: #0a1130; }
.sc-plate { position: absolute; inset: -4%; background: url(art/title/bg_scene.webp?v=fe4c6f08a6) center / cover no-repeat; transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -10px), 0) scale(1.06);
  animation: plateDrift 38s ease-in-out infinite alternate; filter: saturate(1.08) contrast(1.04); }
@media (max-width: 700px) { .sc-plate { background-image: url(art/title/bg_scene_960.webp?v=8d94db2440); background-position: 38% center; } }
/* Living title scene (Anton 2026-11-21): the same painting with its three waterfalls running, traffic on the bridge,
   monorail pods gliding, window lights twinkling and a light pulse along the Nexus rim (tools/art/make_title_live.py).
   Motion users only; the game screen keeps the still (it is blurred and dimmed there anyway). */
@media (prefers-reduced-motion: no-preference) { .sc-plate { background-image: url(art/title/bg_scene_live.webp?v=2a2b81dc06); } }
@media (prefers-reduced-motion: no-preference) and (max-width: 700px) { .sc-plate { background-image: url(art/title/bg_scene_960_live.webp?v=c219b1b73e); } }
body[data-screen=game] .sc-plate { background-image: url(art/title/bg_scene.webp?v=fe4c6f08a6); }
@media (max-width: 700px) { body[data-screen=game] .sc-plate { background-image: url(art/title/bg_scene_960.webp?v=8d94db2440); } }
.sc-traffic { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@keyframes plateDrift { from { scale: 1; translate: 0 0; } to { scale: 1.05; translate: -1.2% -1%; } }
.sc-rays { position: absolute; left: -20%; top: -40%; width: 90%; height: 120%; background: repeating-conic-gradient(from 200deg at 20% 10%, rgba(255, 236, 180, .16) 0 4deg, transparent 4deg 13deg);
  mix-blend-mode: screen; filter: blur(6px); opacity: .55; transform-origin: 20% 10%; animation: rays 26s ease-in-out infinite alternate; }
@keyframes rays { to { transform: rotate(7deg); opacity: .3; } }
.sc-cloud { position: absolute; width: 60vw; height: 22vw; min-height: 140px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 246, 232, .55), rgba(255, 246, 232, 0));
  filter: blur(8px); opacity: .55; animation: cloud 70s linear infinite; }
.sc-cloud.c1 { top: 58%; left: -60vw; } .sc-cloud.c2 { top: 18%; left: -60vw; animation-duration: 95s; animation-delay: -40s; opacity: .35; } .sc-cloud.c3 { top: 74%; left: -60vw; animation-duration: 120s; animation-delay: -80s; transform: scale(1.4); }
@keyframes cloud { to { translate: 180vw 0; } }
.sc-sparks i { position: absolute; bottom: -10px; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(#fff, #ffd76a 50%, transparent 70%); box-shadow: 0 0 10px #ffd76a;
  animation: sparkUp 14s linear infinite; opacity: 0; }
.sc-sparks i:nth-child(1) { left: 8%; animation-delay: 0s; } .sc-sparks i:nth-child(2) { left: 18%; animation-delay: -3s; animation-duration: 17s; } .sc-sparks i:nth-child(3) { left: 31%; animation-delay: -7s; }
.sc-sparks i:nth-child(4) { left: 44%; animation-delay: -1s; animation-duration: 19s; } .sc-sparks i:nth-child(5) { left: 57%; animation-delay: -9s; } .sc-sparks i:nth-child(6) { left: 66%; animation-delay: -5s; animation-duration: 16s; }
.sc-sparks i:nth-child(7) { left: 74%; animation-delay: -11s; } .sc-sparks i:nth-child(8) { left: 83%; animation-delay: -2s; animation-duration: 21s; } .sc-sparks i:nth-child(9) { left: 91%; animation-delay: -6s; } .sc-sparks i:nth-child(10) { left: 50%; animation-delay: -13s; animation-duration: 23s; }
@keyframes sparkUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 10% { opacity: .9; } 50% { transform: translateY(-50vh) translateX(18px) scale(1); } 90% { opacity: .7; } 100% { transform: translateY(-105vh) translateX(-10px) scale(.5); opacity: 0; } }
.sc-coin { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c8, #f2b632 45%, #a46a12 80%); box-shadow: 0 0 0 3px #c58a1c inset, 0 8px 18px rgba(0, 0, 0, .35), 0 0 22px rgba(255, 210, 90, .5);
  animation: coinBob 7s ease-in-out infinite, coinSpin 5s linear infinite; }
.sc-coin::after { content: '$'; position: absolute; inset: 0; display: grid; place-items: center; font: 800 24px Fredoka, sans-serif; color: #8a5a12; text-shadow: 0 1px 0 #fff4c2; }
.sc-coin.k1 { left: 7%; top: 22%; } .sc-coin.k2 { right: 9%; top: 14%; width: 34px; height: 34px; animation-delay: -2s, -1s; } .sc-coin.k3 { right: 18%; bottom: 16%; width: 40px; height: 40px; animation-delay: -4s, -3s; }
@keyframes coinBob { 50% { translate: 0 -16px; } } @keyframes coinSpin { 0% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
.sc-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 75% 70% at 50% 45%, rgba(8, 12, 34, 0) 30%, rgba(8, 12, 34, .55) 70%, rgba(5, 8, 24, .92) 100%),
  linear-gradient(180deg, rgba(10, 14, 40, .25), rgba(10, 14, 40, 0) 30%, rgba(8, 10, 30, .55)); }
/* the game screen: the same world, still and darker so the board and HUD read; nothing animates behind play */
body[data-screen=game] .sc-plate { filter: blur(6px) brightness(.42) saturate(1.1); animation: none; transform: scale(1.08); }
body[data-screen=game] .sc-rays, body[data-screen=game] .sc-cloud, body[data-screen=game] .sc-sparks, body[data-screen=game] .sc-coin { display: none; }
body[data-screen=lobby] .sc-plate { filter: brightness(.7) saturate(1.05); }

/* ---------------------------------------------------------------- glass surfaces */
.glass, .panel, .modal-card, .invite-pop, .sound-pop, .tconfirm-card, .deed-panel, .explain, .bix-bubble, .ttip, .toast, .tpick-list {
  color: var(--ink); background: var(--glass) padding-box, var(--trim) border-box; border: 1.5px solid transparent;
  box-shadow: var(--shadow); -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25); }
.panel { border-radius: var(--r); }
.panel h3, .modal-card h2, .modal-card h3 { font-family: var(--font-display); color: var(--gold3); text-shadow: 0 2px 0 rgba(0, 0, 0, .35); letter-spacing: .02em; }
.muted { color: var(--ink2); }
.kick, .card-deck { color: var(--gold2); }
hr { border: 0; height: 1px; background: var(--line); }

/* ---------------------------------------------------------------- buttons: 3D, glossy, pressable */
.btn { position: relative; border: 0; border-radius: 14px; color: #fff; font-family: var(--font-display); letter-spacing: .02em; cursor: pointer;
  background: linear-gradient(180deg, #5a6fd0 0%, #34459a 55%, #26357e 100%); box-shadow: 0 5px 0 #141d4a, 0 9px 16px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .2);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35); transition: transform .08s ease, box-shadow .08s ease, filter .15s; overflow: hidden; }
.btn::before { content: ''; position: absolute; left: 6%; right: 6%; top: 3px; height: 42%; border-radius: 12px 12px 40% 40%; background: linear-gradient(rgba(255, 255, 255, .32), rgba(255, 255, 255, 0)); pointer-events: none; }
.btn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #141d4a, 0 3px 6px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn:disabled { filter: grayscale(.6) brightness(.75); opacity: .6; }
.btn.gold, .btn3d.gold { color: #3d2400; text-shadow: 0 1px 0 rgba(255, 255, 255, .45); background: linear-gradient(180deg, #fff3b0 0%, #ffd76a 30%, #f2b632 65%, #d89412 100%); box-shadow: 0 5px 0 #8a5a12, 0 9px 18px rgba(0, 0, 0, .35), 0 0 22px rgba(255, 200, 80, .25), inset 0 1px 0 #fff8d6; }
.btn.gold:active:not(:disabled) { box-shadow: 0 1px 0 #8a5a12, 0 3px 6px rgba(0, 0, 0, .3); }
.btn.green { background: linear-gradient(180deg, #8af0ae 0%, #3cc46a 45%, #24914a 100%); box-shadow: 0 5px 0 #145c2b, 0 9px 16px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn.green:active:not(:disabled) { box-shadow: 0 1px 0 #145c2b; }
.btn.red { background: linear-gradient(180deg, #ff9d9d 0%, #ef4444 45%, #b91c1c 100%); box-shadow: 0 5px 0 #7a1010, 0 9px 16px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn.red:active:not(:disabled) { box-shadow: 0 1px 0 #7a1010; }
.btn.roll { background: linear-gradient(180deg, #ffc38a 0%, #ff8a3d 40%, #e8590c 75%, #b8420a 100%); box-shadow: 0 6px 0 #7d2c05, 0 10px 22px rgba(0, 0, 0, .4), 0 0 26px rgba(255, 140, 60, .35), inset 0 1px 0 #ffe2c4; }
.btn.roll:active:not(:disabled) { box-shadow: 0 1px 0 #7d2c05; }
.btn.ghost { color: var(--gold3); background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)) padding-box, linear-gradient(180deg, #232d63, #121a3e) padding-box, var(--trim) border-box; border: 1.5px solid transparent; box-shadow: 0 4px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn.ghost::before { opacity: .35; }
.btn.ghost:active:not(:disabled) { box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.btn.full { width: 100%; }
.btn:focus-visible, .tseg-opt:focus-visible, .tpick-btn:focus-visible, .piece-opt:focus-visible, .ptab:focus-visible, .tab:focus-visible { outline: 3px solid var(--gold2); outline-offset: 3px; }

/* ---------------------------------------------------------------- text inputs: nameplates */
input:not([type=checkbox]):not([type=radio]):not([type=range]), textarea {
  font-family: var(--font-display); font-size: 16px; color: var(--gold3); caret-color: var(--gold2); border-radius: 12px; padding: 10px 14px;
  background: linear-gradient(180deg, rgba(4, 8, 26, .78), rgba(16, 22, 52, .72)) padding-box, var(--trim) border-box; border: 1.5px solid transparent;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .06); transition: box-shadow .15s; }
input::placeholder { color: rgba(220, 205, 160, .45); }
input:focus { outline: none; box-shadow: inset 0 3px 8px rgba(0, 0, 0, .55), 0 0 0 3px rgba(255, 215, 106, .35), 0 0 18px rgba(255, 200, 80, .35); }
label { color: var(--ink); }

/* checkboxes: gold check tiles */
input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; flex: none; margin: 0 6px 0 0; vertical-align: -5px; border-radius: 7px; cursor: pointer; position: relative;
  background: linear-gradient(180deg, rgba(4, 8, 26, .8), rgba(20, 28, 64, .8)) padding-box, var(--trim) border-box; border: 1.5px solid transparent; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6); display: inline-block; }
input[type=checkbox]:checked { background: linear-gradient(180deg, #fff3b0, #f2b632 60%, #c98a12) padding-box, var(--trim) border-box; box-shadow: 0 0 12px rgba(255, 200, 80, .5); }
input[type=checkbox]:checked::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #3d2400; border-width: 0 3px 3px 0; transform: rotate(45deg); }
input[type=checkbox]:focus-visible { outline: 3px solid var(--gold2); outline-offset: 2px; }
label input[type=checkbox] { display: inline-block; width: 22px; margin-top: 0; }

/* sliders */
input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; height: 30px; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, #f2b632, #ffd76a) 0 / var(--fill, 50%) 100% no-repeat, rgba(4, 8, 26, .8); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6), 0 0 0 1.5px rgba(255, 214, 120, .45); }
input[type=range]::-moz-range-track { height: 10px; border-radius: 99px; background: rgba(4, 8, 26, .8); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6), 0 0 0 1.5px rgba(255, 214, 120, .45); }
input[type=range]::-moz-range-progress { height: 10px; border-radius: 99px; background: linear-gradient(90deg, #f2b632, #ffd76a); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c8, #f2b632 55%, #a46a12); box-shadow: 0 3px 0 #6b4510, 0 4px 10px rgba(0, 0, 0, .5); border: 0; }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c8, #f2b632 55%, #a46a12); box-shadow: 0 3px 0 #6b4510; border: 0; }
input[type=range]:focus-visible { outline: 3px solid var(--gold2); outline-offset: 4px; border-radius: 99px; }

/* hidden native select (the custom picker drives it) */
select.tui-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
label:has(> select.tui-native) { position: relative; }

/* segmented chips (2-3 options) */
.tseg { display: flex; gap: 3px; padding: 3px; border-radius: 13px; margin-top: 4px; background: rgba(4, 8, 26, .6); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .55), 0 0 0 1.5px rgba(255, 214, 120, .3); }
.tseg-opt { flex: 1; min-width: 0; border: 0; border-radius: 10px; padding: 8px 6px; font: 700 13px var(--font-display); color: var(--ink2); background: transparent; cursor: pointer; transition: background .15s, color .15s, transform .08s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tseg-opt:hover:not(:disabled) { color: var(--gold3); }
.tseg-opt.on { color: #3d2400; background: linear-gradient(180deg, #fff3b0, #ffd76a 40%, #f2b632); box-shadow: 0 2px 0 #8a5a12, 0 0 12px rgba(255, 200, 80, .35); }
.tseg-opt:active:not(:disabled) { transform: translateY(1px); }
.tseg.disabled { opacity: .7; } .tseg-opt:disabled { cursor: default; }

/* dropdown picker */
.tpick { position: relative; margin-top: 4px; }
.tpick-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 12px; padding: 9px 12px; cursor: pointer; text-align: left;
  font: 700 14px var(--font-display); color: var(--gold3); background: linear-gradient(180deg, rgba(40, 52, 106, .9), rgba(16, 22, 52, .9)) padding-box, var(--trim) border-box; border: 1.5px solid transparent;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .14); }
.tpick-btn:disabled { cursor: default; opacity: .75; }
.tpick-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpick-caret { width: 10px; height: 10px; flex: none; border: solid var(--gold2); border-width: 0 2.5px 2.5px 0; transform: translateY(-3px) rotate(45deg); transition: transform .15s; }
.tpick.open .tpick-caret { transform: translateY(2px) rotate(-135deg); }
.tpick-list { position: absolute; z-index: 6200; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; border-radius: 14px; max-height: 260px; overflow-y: auto; display: none; outline: none; }
.tpick.up .tpick-list { top: auto; bottom: calc(100% + 6px); }
.tpick.open .tpick-list { display: block; animation: listIn .14s ease-out; }
@keyframes listIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.tpick-opt { padding: 8px 10px; border-radius: 9px; cursor: pointer; font: 600 14px Nunito, sans-serif; color: var(--ink); }
.tpick-opt.act, .tpick-opt:hover { background: rgba(255, 214, 120, .16); }
.tpick-opt[aria-selected=true] { color: var(--gold2); font-weight: 800; }
.tpick-opt[aria-selected=true]::before { content: '◆ '; color: var(--gold); }
.tpick-group { padding: 8px 10px 3px; font: 700 11px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* number stepper */
.tnum { display: inline-flex; align-items: stretch; gap: 0; vertical-align: middle; border-radius: 12px; box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.tnum input { width: 92px; text-align: center; border-radius: 0 !important; -moz-appearance: textfield; padding-left: 6px !important; padding-right: 6px !important; }
.tnum input::-webkit-inner-spin-button, .tnum input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tnum-btn { width: 36px; border: 0; font: 800 18px var(--font-display); color: #3d2400; cursor: pointer; background: linear-gradient(180deg, #fff3b0, #f2b632 60%, #c98a12); }
.tnum-btn:first-child { border-radius: 12px 0 0 12px; } .tnum-btn:last-child { border-radius: 0 12px 12px 0; }
.tnum-btn:active { filter: brightness(.9); }
.deal-cols .tnum { width: 100%; } .deal-cols .tnum input { width: 100%; flex: 1; }

/* tooltips */
.ttip { position: fixed; z-index: 9000; max-width: 260px; padding: 6px 10px; border-radius: 10px; font: 600 12.5px Nunito, sans-serif; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.ttip.on { opacity: 1; transform: none; }

/* confirm dialog */
.tconfirm { position: fixed; inset: 0; z-index: 8000; display: grid; place-items: center; padding: 16px; background: rgba(5, 8, 24, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .15s ease-out; }
.tconfirm-card { width: min(420px, 100%); border-radius: 20px; padding: 22px 20px 18px; text-align: center; animation: popin .22s cubic-bezier(.2, 1.3, .4, 1); }
.tconfirm-text { font: 600 17px Nunito, sans-serif; margin: 0 0 16px; }
.tconfirm-row { display: flex; gap: 10px; justify-content: center; } .tconfirm-row .btn { min-width: 120px; min-height: 44px; }   /* moneyfix2 1128: 44 px taps (was 42) */
@keyframes fadeIn { from { opacity: 0; } }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(242, 182, 50, .7) rgba(4, 8, 26, .35); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: rgba(4, 8, 26, .35); border-radius: 99px; }
::-webkit-scrollbar-thumb { background: linear-gradient(#ffd76a, #c98a12); border-radius: 99px; border: 2px solid rgba(4, 8, 26, .6); }

/* toasts */
.toast { border-radius: 16px; font-family: var(--font-display); color: var(--gold3); animation: toastIn .25s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes toastIn { from { transform: translate(-50%, 16px); opacity: 0; } }
.conn { background: linear-gradient(90deg, #b8420a, #e8590c, #b8420a); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }

/* ---------------------------------------------------------------- 3D logo */
/* "Fredoka Logo": Fredoka at wght 700 with the overlapping contours merged (tools/make_logo_font.py), so the text stroke
   draws only the outside of each letter: no inner lines where the t's crossbar or the y's arms cross. Only the logo letters. */
@font-face { font-family: 'Fredoka Logo'; src: url(fonts/FredokaLogo.ttf?v=8b3a76508b) format('truetype'); font-weight: 700; font-display: block; }
.logo3d { margin: 0; line-height: .9; font-family: 'Fredoka Logo', 'Fredoka Stroke', var(--font-display); font-weight: 700; display: flex; flex-direction: column; align-items: center; transform: perspective(600px) rotateX(10deg); }
.logo3d span { position: relative; display: block; -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .01em;
  -webkit-text-stroke: 2px #4a2a05; paint-order: stroke fill; filter: drop-shadow(0 2px 0 #b8760f) drop-shadow(0 4px 0 #8a5a12) drop-shadow(0 6px 0 #5e3a08) drop-shadow(0 12px 14px rgba(0, 0, 0, .55)); }
.logo3d .l1 { font-size: clamp(54px, 9vw, 96px); background-image: linear-gradient(180deg, #fffbe0 0%, #ffe48a 30%, #f2b632 55%, #c47d0c 75%, #ffe08a 100%); }
.logo3d .l2 { font-size: clamp(44px, 7.4vw, 80px); margin-top: -4px; background-image: linear-gradient(180deg, #ffe6c2 0%, #ffab5e 35%, #ef6a12 60%, #b8420a 80%, #ffb36b 100%); -webkit-text-stroke-color: #4a1a02; }
.logo3d span::after { content: attr(data-t); position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .95) 48%, transparent 60%) -150% 0 / 200% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 0; animation: shine 5.5s ease-in-out infinite; }
.logo3d .l2::after { animation-delay: .25s; }
@keyframes shine { 0%, 55% { background-position: -150% 0; } 85%, 100% { background-position: 150% 0; } }
.logo3d.small { flex-direction: row; gap: 10px; transform: none; } .logo3d.small .l1 { font-size: 34px; } .logo3d.small .l2 { font-size: 34px; margin: 0; }

/* ---------------------------------------------------------------- title screen */
#home.title-screen { min-height: 100vh; min-height: 100dvh; display: flex; align-items: flex-start; justify-content: center; padding: clamp(14px, 3vh, 34px) 14px 22px; }
.ts-wrap { width: min(860px, 100%); display: flex; flex-direction: column; align-items: center; }
.ts-title { position: relative; text-align: center; margin-bottom: 14px; animation: titleIn .9s cubic-bezier(.2, 1.2, .3, 1) both; }
@keyframes titleIn { from { transform: translateY(-30px) scale(.9); opacity: 0; } }
.ts-bix { position: absolute; left: -214px; top: -14px; width: 200px; height: auto; transform-origin: 50% 90%; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .5)); animation: bixPresent 4s ease-in-out infinite; }
@keyframes bixPresent { 50% { transform: translateY(-8px) rotate(2.5deg); } }
@keyframes bixBob { 50% { transform: translateY(-10px) rotate(-3deg); } }
.ts-title .tag { display: inline-block; padding: 4px 14px; border-radius: 99px; background: rgba(8, 12, 34, .55); margin: 10px 0 0; font: 700 16px var(--font-display); color: var(--gold3); letter-spacing: .04em; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.ts-panel { width: 100%; border-radius: 26px; padding: 18px 20px 16px; text-align: left; animation: panelIn .8s .15s cubic-bezier(.2, 1.1, .3, 1) both; }
@keyframes panelIn { from { transform: translateY(40px) scale(.97); opacity: 0; } }
.nameplate { margin: 0 0 12px; }
.np-label, .ts-lbl, .path-kick { display: block; font: 700 12px var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold2); margin: 0 0 6px; }
.nameplate input { font-size: 22px; padding: 12px 16px; letter-spacing: .02em; text-align: center; }
/* pieces on pedestals */
.piece-pick { grid-template-columns: repeat(8, 1fr); gap: 8px; margin-bottom: 16px; }
.piece-opt, .piece-opt.sel { position: relative; border: 0; border-radius: 16px; background: transparent; padding: 2px 0 0; color: var(--ink2); font: 700 12px var(--font-display); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); outline-offset: 2px; }
.piece-opt .pedestal { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; }
.piece-opt .pedestal::before { content: ''; position: absolute; left: 10%; right: 10%; bottom: 2%; height: 26%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--pc) 70%, #fff 0%), transparent); opacity: .35; transition: opacity .2s, transform .2s; }
.piece-opt .pc-img { position: absolute; inset: 0; display: block; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); will-change: transform; }
.piece-opt img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); }
.piece-opt .pc-name { display: block; text-align: center; margin-top: 2px; }
/* Idle lobby picker motion: main 8 pieces gently hop with a soft landing squash, staggered */
.piece-pick > .piece-opt:nth-child(1) { --d: 0s; }
.piece-pick > .piece-opt:nth-child(2) { --d: -1.12s; }
.piece-pick > .piece-opt:nth-child(3) { --d: -.45s; }
.piece-pick > .piece-opt:nth-child(4) { --d: -1.58s; }
.piece-pick > .piece-opt:nth-child(5) { --d: -.22s; }
.piece-pick > .piece-opt:nth-child(6) { --d: -1.35s; }
.piece-pick > .piece-opt:nth-child(7) { --d: -.70s; }
.piece-pick > .piece-opt:nth-child(8) { --d: -.92s; }
.piece-pick > .piece-opt:not(.taken):not(.sel):not(:hover) .pc-img {
  transform-origin: 50% 88%;
  animation: pieceHop 1.8s ease-in-out var(--d, 0s) infinite;
}
@keyframes pieceHop {
  0%, 42%, 100% { transform: translateY(0) scale(1, 1); }
  50% { transform: translateY(1px) scale(1.05, .94); }
  66% { transform: translateY(-7px) scale(.97, 1.04); }
  80% { transform: translateY(1px) scale(1.07, .92); }
  90% { transform: translateY(-1.5px) scale(.99, 1.015); }
}
.piece-opt:hover .pc-img { transform: translateY(-8px) scale(1.06); animation: bounce .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bounce { 40% { transform: translateY(-12px) scale(1.08, .96); } 70% { transform: translateY(-5px) scale(.98, 1.03); } }
.piece-opt.sel .pedestal::before { opacity: 1; transform: scale(1.25); box-shadow: 0 0 22px 6px var(--pc); animation: pedPulse 1.6s ease-in-out infinite; }
.piece-opt.sel .pc-img { animation: selSpin 3.2s ease-in-out infinite; }
.piece-opt.sel .pc-name { color: var(--gold2); }
@keyframes selSpin { 0%, 100% { transform: translateY(-6px) rotate(0) scale(1.06); } 25% { transform: translateY(-12px) rotate(-5deg) scale(1.1); } 75% { transform: translateY(-10px) rotate(5deg) scale(1.1); } }
@keyframes pedPulse { 50% { opacity: .7; transform: scale(1.4); } }
.piece-opt.taken { opacity: 1; filter: grayscale(1) brightness(.55); pointer-events: none; }
.piece-opt.taken .pc-img { animation: none; }
.piece-opt.taken .pc-name::after { content: ' · taken'; }
/* Thanksgiving Week 2026 commemorative section (only rendered while server event window is active) */
.comm-section {
  grid-column: 1 / -1; margin-top: 12px; padding: 12px 14px 12px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(126, 58, 20, .38) 0%, rgba(68, 30, 12, .52) 100%);
  border: 1.5px solid rgba(206, 136, 66, .56);
  box-shadow: inset 0 1px 0 rgba(255, 204, 140, .2), 0 8px 20px rgba(0, 0, 0, .28);
}
.comm-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid rgba(210, 142, 74, .28);
}
.comm-title {
  display: inline-flex; align-items: center; gap: 6px;
  font: 800 12px var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: #f3c27e;
}
.comm-title .ev-leaf { width: 15px; height: 15px; color: #df8234; flex: none; }
.comm-days {
  padding: 2px 9px; border-radius: 99px;
  background: rgba(172, 86, 28, .44); border: 1px solid rgba(224, 148, 78, .46);
  font: 700 11px var(--font-body); letter-spacing: .03em; color: #f8dbb0; white-space: nowrap;
}
.comm-desc {
  margin: 0 0 12px; font: 600 12px/1.42 var(--font-body); color: #e8d2b6; text-align: left;
}
.ltd-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start;
  gap: 12px; padding: 2px 2px 0;
}
.ltd-row .piece-opt { padding: 4px 2px 2px; }
.ltd-row .piece-opt .pedestal { max-width: 82px; margin: 0 auto; }
/* Commemorative pieces: gentle bubble scale out and in (no bounce), staggered */
.piece-pick .ltd-row .piece-opt:nth-child(1) { --d: 0s; }
.piece-pick .ltd-row .piece-opt:nth-child(2) { --d: -.85s; }
.piece-pick .ltd-row .piece-opt:nth-child(3) { --d: -1.70s; }
.piece-pick .ltd-row .piece-opt:not(.taken):not(:hover) .pc-img {
  transform-origin: 50% 55%;
  animation: pieceBubble 2.5s ease-in-out var(--d, 0s) infinite;
}
.piece-pick .ltd-row .piece-opt.sel:not(:hover) .pc-img { animation-name: pieceBubbleSel; }
.piece-pick .ltd-row .piece-opt:hover .pc-img { transform: scale(1.07); animation: none; }
@keyframes pieceBubble {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes pieceBubbleSel {
  0%, 100% { transform: scale(1.03); }
  50% { transform: scale(1.08); }
}
.ltd-tag {
  display: inline-block; margin-top: 3px; padding: 2px 7px; border-radius: 99px;
  background: linear-gradient(180deg, rgba(196, 102, 34, .5), rgba(140, 62, 16, .62));
  border: 1px solid rgba(228, 158, 86, .48); color: #f8dfba;
  font: 700 9px var(--font-display); letter-spacing: .03em; line-height: 1.25; white-space: nowrap;
}
/* Mystery ultra-rare silhouette card: strictly no gold color, no glow, no shine, not selectable */
.piece-mystery {
  position: relative; border-radius: 14px; padding: 6px 6px 8px; text-align: center;
  background: rgba(20, 24, 34, .76); border: 1.5px dashed rgba(152, 164, 186, .36);
  color: #c2cad8; font: 700 12px var(--font-display);
  cursor: default; user-select: none; pointer-events: none;
}
.piece-mystery .pedestal {
  position: relative; display: block; width: 100%; max-width: 78px; aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 50% 52%, rgba(114, 124, 146, .44) 0%, rgba(56, 63, 80, .28) 60%, transparent 74%);
}
.piece-mystery .pc-img { position: absolute; inset: 4%; display: block; }
.piece-mystery img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0); opacity: .94; }
.piece-mystery .pc-name { display: block; text-align: center; margin-top: 2px; color: #c8d0de; letter-spacing: .08em; }
.mystery-tag {
  display: inline-block; margin-top: 3px; padding: 2px 8px; border-radius: 99px;
  background: #1d2331; border: 1px solid rgba(162, 174, 196, .34); color: #cbd3e2;
  font: 700 9px var(--font-display); letter-spacing: .04em; text-transform: uppercase; line-height: 1.25; white-space: nowrap;
}
/* two paths */
.ts-paths { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.path-card { border-radius: 18px; padding: 14px; background: var(--glass2b) padding-box, linear-gradient(135deg, rgba(255, 241, 184, .55), rgba(138, 90, 18, .45)) border-box; border: 1.5px solid transparent; display: flex; flex-direction: column; gap: 10px; }
.path-card .path-kick { font-size: 15px; margin: 0; color: var(--gold3); text-align: center; }
.path-sub { margin: 0; font-size: 14px; color: var(--ink2); text-align: center; flex: 1; }
.path-or { display: flex; align-items: center; justify-content: center; margin: 0; }
.path-or span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--font-display); color: #3d2400; background: radial-gradient(circle at 35% 30%, #fff6c8, #f2b632 60%, #a46a12); box-shadow: 0 4px 0 #6b4510, 0 0 18px rgba(255, 200, 80, .35); }
.code-entry { position: relative; height: 62px; }
.code-boxes { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; pointer-events: none; }
.code-boxes i { display: grid; place-items: center; font: 700 28px var(--font-display); font-style: normal; color: var(--gold3); border-radius: 12px; text-shadow: 0 2px 0 #000;
  background: linear-gradient(180deg, rgba(4, 8, 26, .85), rgba(18, 26, 60, .8)) padding-box, var(--trim) border-box; border: 1.5px solid transparent; box-shadow: inset 0 3px 8px rgba(0, 0, 0, .6); transition: transform .15s, box-shadow .15s; }
.code-boxes i.filled { transform: translateY(-2px); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .6), 0 0 14px rgba(255, 200, 80, .35); animation: boxPop .2s cubic-bezier(.3, 1.8, .5, 1); }
.code-boxes i.cur { box-shadow: inset 0 3px 8px rgba(0, 0, 0, .6), 0 0 0 3px rgba(255, 215, 106, .6); }
.code-boxes i.cur:empty::after { content: ''; width: 3px; height: 30px; background: var(--gold2); border-radius: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } } @keyframes boxPop { 50% { transform: translateY(-4px) scale(1.08); } }
#codeIn { position: absolute; inset: 0; width: 100% !important; height: 100%; opacity: 0.01; color: transparent; caret-color: transparent; background: transparent !important; border: 0 !important; box-shadow: none !important; font-size: 16px; letter-spacing: 0; text-transform: uppercase; z-index: 1; }
.peek:empty { display: none; } .peek { text-align: center; }
#createBtn, #watchBtn, #joinBtn { margin-top: 0; }
.btn.big { font-size: 20px; padding: 15px 22px; border-radius: 16px; }
.home-foot { justify-content: center; margin-top: 14px; gap: 10px; }
.ts-foot { margin-top: 12px; text-align: center; color: var(--ink2); text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
@media (max-width: 760px) {
  .ts-paths { grid-template-columns: 1fr; gap: 10px; } .path-or span { width: 36px; height: 36px; font-size: 13px; }
  .piece-pick { grid-template-columns: repeat(4, 1fr); gap: 6px 10px; } .ts-title { padding: 0 54px; } .ts-bix { left: -20px; right: auto; top: -8px; bottom: auto; width: 76px; } .ts-title .tag { font-size: 13px; } .ts-panel { padding: 14px 12px; border-radius: 22px; }
  .comm-section { margin-top: 10px; padding: 10px 10px 10px; border-radius: 16px; }
  .comm-head { gap: 6px; padding-bottom: 6px; margin-bottom: 6px; flex-wrap: nowrap; }
  .comm-title { font-size: 10px; letter-spacing: .04em; gap: 4px; }
  .comm-title .ev-leaf { width: 13px; height: 13px; }
  .comm-days { font-size: 10px; padding: 2px 7px; flex: none; }
  .comm-desc { font-size: 11.5px; line-height: 1.38; margin-bottom: 9px; }
  .ltd-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; padding: 0; }
  .ltd-row .piece-opt .pedestal, .piece-mystery .pedestal { max-width: 70px; }
  .ltd-tag { font-size: 8.5px; padding: 2px 6px; white-space: nowrap; }
  .code-entry { height: 56px; } .code-boxes { gap: 5px; } .code-boxes i { font-size: 24px; }
}

/* ---------------------------------------------------------------- lobby */
.lobby-head { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin: 4px auto 14px; }
/* Stroked display text uses 'Fredoka Stroke' (Fredoka 700 with overlaps merged, tools/make_logo_font.py): plain Fredoka is drawn as
   overlapping contours, so the stroke over a transparent (background-clipped) fill showed inner lines, e.g. a seam through the R in "WPRW69". */
@font-face { font-family: 'Fredoka Stroke'; src: url(fonts/FredokaStroke.ttf?v=3a8aff2033) format('truetype'); font-weight: 700; font-display: block; }
.room-code { font-family: 'Fredoka Stroke', var(--font-display); font-weight: 700; font-synthesis: none; background: linear-gradient(180deg, #fffbe0, #ffd76a 45%, #e09a12); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1.5px #5e3a08; paint-order: stroke fill; filter: drop-shadow(0 3px 0 #8a5a12) drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
.seat-list li { background: linear-gradient(90deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); border: 1px solid var(--line); color: var(--ink); animation: seatIn .35s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes seatIn { from { transform: translateX(-12px); opacity: 0; } }
.seat-list li.empty { background: transparent; border: 1.5px dashed rgba(255, 214, 120, .25); color: var(--ink2); animation: none; }
.settings label { color: var(--gold3); font: 700 12px var(--font-display); letter-spacing: .06em; }
.countdown { color: var(--gold2); }
.tag-pill { box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }

/* ---------------------------------------------------------------- piece chips + tokens */
.mini-piece { width: 32px; height: 32px; border-radius: 50%; border: 0; position: relative; overflow: visible;
  background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--pc) 55%, transparent) 0, transparent 70%); box-shadow: 0 0 0 2px var(--pc), 0 2px 6px rgba(0, 0, 0, .45); }
.mini-piece img { position: absolute; left: -10%; top: -18%; width: 120%; height: 120%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.mini-piece svg { display: none; }
.chat-log .msg { display: flex; gap: 6px; align-items: flex-start; } .chat-log .msg .mini-piece { width: 22px; height: 22px; margin-top: 1px; }
.token .disc { border: 0; border-radius: 0; background: none !important; box-shadow: none; position: relative; }
.token .disc::before { content: ''; position: absolute; left: 6%; right: 6%; bottom: -2%; height: 30%; border-radius: 50%; background: radial-gradient(closest-side, var(--pc), transparent); opacity: .85; }
.token .disc img { position: relative; width: 128%; height: 128%; margin: -14% -14% 0; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .55)); }
.token.active .disc { box-shadow: none; } .token.active .disc img { filter: drop-shadow(0 0 4px #ffd76a) drop-shadow(0 0 10px rgba(255, 200, 80, .9)) drop-shadow(0 3px 2px rgba(0, 0, 0, .5)); }
.token .shadow { bottom: -10%; }

/* ---------------------------------------------------------------- in-game HUD */
.ticker { background: linear-gradient(180deg, #1b2556, #0e1536); color: var(--gold2); box-shadow: 0 0 0 1.5px rgba(255, 214, 120, .35); }
.ticker-label { background: linear-gradient(180deg, #ff9a4d, #e8590c); text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.board-viewport { box-shadow: 0 0 0 1.5px rgba(255, 214, 120, .45), 0 20px 50px rgba(0, 0, 0, .55); background: #0e1536; }
.board-tabs .tab { color: var(--ink); background: var(--glass2b) padding-box, linear-gradient(135deg, rgba(255, 241, 184, .5), rgba(138, 90, 18, .4)) border-box; border: 1.5px solid transparent; transition: transform .12s; }
@media (hover: hover) { .board-tabs .tab:hover { transform: translateY(-2px); } }   /* touch: a tapped tab kept the lift (sticky :hover), 3 px out of line and under 44 px (QA 1127) */
.board-tabs .tab.on { color: #3d2400; background: linear-gradient(180deg, #fff3b0, #ffd76a 40%, #f2b632) padding-box, var(--trim) border-box; }
.board-tabs .tab[data-board=goldspire].on { color: #3d2400; background: linear-gradient(180deg, #fff6d0, #f6d77a 45%, #c9a23a) padding-box, var(--trim) border-box; }
.board-tabs .tab[data-board=nexus].on { color: #e6fbff; background: linear-gradient(180deg, #7d6bff, #4b32c8 55%, #2a1a7a) padding-box, var(--trim) border-box; }
.board-tabs .tab.follow { color: var(--gold3); background: rgba(255, 214, 120, .14); }
.zoom-btn { background: var(--glass) padding-box, var(--trim) border-box; border: 1.5px solid transparent; color: var(--gold3); box-shadow: 0 3px 0 rgba(0, 0, 0, .4); }
.die i { background: var(--ink-dark); }
.bix-bubble { color: var(--ink); } .bix-bubble::before { border-right-color: rgba(36, 46, 96, .95); }
.timer { background: rgba(4, 8, 26, .6); color: var(--gold3); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .5), 0 0 0 1.5px rgba(255, 214, 120, .35); }
.timer.low { background: rgba(185, 28, 28, .35); color: #ffb4b4; box-shadow: 0 0 0 1.5px #ef4444, 0 0 14px rgba(239, 68, 68, .5); animation: timerPulse 1s ease-in-out infinite; }
@keyframes timerPulse { 50% { transform: scale(1.06); } }
.offer-box, .loan, .goal-box { background: rgba(255, 214, 120, .08); border: 1px solid var(--line); color: var(--ink); }
.goal-box { border: 1.5px dashed rgba(255, 214, 120, .5); }
.players li { border-bottom-color: var(--line); }
.players li.turn { background: linear-gradient(90deg, rgba(255, 214, 120, .2), rgba(255, 214, 120, .04)); box-shadow: inset 3px 0 0 var(--gold); }
.coach { background: rgba(80, 220, 255, .1); color: #a5f3ff; border: 1px solid rgba(80, 220, 255, .3); }
.held span { background: rgba(60, 207, 142, .16); color: #8ff0c0; }
.chat-log { background: var(--inset); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .5), 0 0 0 1px var(--line); color: var(--ink); }
.chat-log b { color: var(--gold2); } .chat-log .sys { color: #8ee6f5; }
.log { color: var(--ink2); }
.title-badge { background: rgba(4, 8, 26, .6); color: var(--ink2); box-shadow: 0 0 0 1px var(--line); }
.title-badge.on { background: linear-gradient(180deg, #fff3b0, #f2b632); color: #3d2400; }
.ptab { color: var(--ink); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 1px var(--line); transition: transform .1s; }
.ptab:hover { transform: translateY(-1px); }
.ptab.on { color: #3d2400; background: linear-gradient(180deg, #fff3b0, #ffd76a 40%, #f2b632); box-shadow: 0 2px 0 #8a5a12; }
.xtable th { color: var(--gold2); } .xtable a { color: var(--ink); } .xtable td { border-bottom-color: var(--line); }
.xtable .up { color: #6ee59a; } .xtable .down { color: #ff8a8a; }
.files li, .moment, .log div { border-bottom-color: var(--line); }
.explain { color: var(--ink); border-left: 0; } .explain.big { box-shadow: var(--shadow), inset 4px 0 0 #ff8a3d; }
.explain .x { color: var(--ink2); }
.tag-pill.board { background: rgba(116, 143, 252, .22); color: #c5d0ff; } .tag-pill.off { background: rgba(255, 255, 255, .14); color: #dfe3ea; }
.pause-veil { background: rgba(5, 8, 24, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: var(--gold3); }
.sw { border-color: rgba(255, 255, 255, .35); }

/* ---------------------------------------------------------------- modals / option screens / game over / history / Ask Bix */
.modal { background: rgba(5, 8, 24, .62); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.modal-card { border-radius: 24px; animation: modalIn .28s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes modalIn { from { transform: translateY(18px) scale(.95); opacity: 0; } }
.card-text { color: var(--ink); }
.wheel-ptr { border-top-color: var(--gold2); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); }
.standings li { border-bottom: 1px solid var(--line); } .standings li:first-child { background: linear-gradient(90deg, rgba(255, 214, 120, .25), transparent); border-radius: 10px; }
.history li { border-bottom-color: var(--line); } .history li:hover { background: rgba(255, 214, 120, .1); }
.deal-cols { color: var(--ink); } .deal-cols b { color: var(--gold2); font-family: var(--font-display); }
.bix-answer p { color: var(--ink); }
.invite-pop .inv-head span { color: var(--gold2); }
.inv-x { color: var(--gold3); } .inv-x:hover { background: rgba(255, 214, 120, .15); }
.inv-qr { box-shadow: 0 0 0 3px #ffd76a, 0 6px 16px rgba(0, 0, 0, .4); }
.inv-link { color: var(--ink2); }
.sp-row output { color: var(--gold2); }
.deed-card { --ink: #1d2747; --ink2: #4b5680; }
.deed-wait, .deed-due { color: var(--ink); } .deed-why { color: var(--ink2); }

/* ================================================================ v7.1 polish: every in-game panel, option screen and dialog */
/* opaque under-layer for trimmed fields: the gold trim must stay on the border, never tint the field */
input:not([type=checkbox]):not([type=radio]):not([type=range]), textarea {
  background: linear-gradient(180deg, rgba(4, 8, 26, .78), rgba(16, 22, 52, .72)) padding-box, linear-gradient(#0a0f2c, #0a0f2c) padding-box, var(--trim) border-box; }
.tpick-btn { background: linear-gradient(180deg, rgba(40, 52, 106, .9), rgba(16, 22, 52, .9)) padding-box, linear-gradient(#121a40, #121a40) padding-box, var(--trim) border-box; }
.code-boxes i { background: linear-gradient(180deg, rgba(4, 8, 26, .85), rgba(18, 26, 60, .8)) padding-box, linear-gradient(#080d26, #080d26) padding-box, var(--trim) border-box; }
input[type=checkbox] { background: linear-gradient(180deg, rgba(4, 8, 26, .8), rgba(20, 28, 64, .8)) padding-box, linear-gradient(#0a0f2c, #0a0f2c) padding-box, var(--trim) border-box; }

/* class-name collision: style.css's .board (the board element) also matched the island tag pill */
.tag-pill.board { width: auto; position: static; transition: none; }
.tag-pill { display: inline-flex; align-items: center; white-space: nowrap; line-height: 1.35; }

/* ---------------------------------------------------------------- title: room between the 3D logo and the tagline */
.ts-title .logo3d { margin-bottom: 6px; }
.ts-title .tag { position: relative; z-index: 1; margin-top: 22px; padding: 5px 16px; background: linear-gradient(180deg, rgba(14, 20, 52, .78), rgba(6, 10, 30, .78)) padding-box, linear-gradient(90deg, rgba(255, 214, 120, .15), rgba(255, 214, 120, .6), rgba(255, 214, 120, .15)) border-box; border: 1px solid transparent; }
@media (max-width: 760px) {
  .ts-title { padding: 0 58px; }
  .ts-title .tag { margin: 18px -50px 0; font-size: 12.5px; letter-spacing: .01em; white-space: nowrap; padding: 4px 12px; }
}
@media (max-width: 360px) { .ts-title .tag { white-space: normal; margin: 16px -40px 0; } }

/* ---------------------------------------------------------------- dropdown list: floats on <body> (ui.js), fixed under its button */
.tpick-list { position: fixed; right: auto; top: auto; display: none; z-index: 9500; }
.tpick-list.open { display: block; animation: listIn .14s ease-out; }
.tpick-list.up.open { animation-name: listUp; }
@keyframes listUp { from { opacity: 0; transform: translateY(4px) scale(.98); } }
.tpick.open .tpick-btn { box-shadow: 0 3px 0 rgba(0, 0, 0, .4), 0 0 0 3px rgba(255, 215, 106, .35), 0 0 16px rgba(255, 200, 80, .3); }
.tpick-opt { transition: background .1s, transform .1s; } .tpick-opt.act { transform: translateX(2px); }
/* segmented chips wrap their label instead of cutting it */
.tseg-opt { white-space: normal; text-overflow: clip; line-height: 1.12; padding: 8px 6px; min-height: 36px; }

/* ---------------------------------------------------------------- lobby */
.lobby-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.lobby-grid > .panel { position: relative; }
@media (max-width: 900px) { .lobby-grid { grid-template-columns: minmax(0, 1fr); } }
.kick { letter-spacing: .18em; font-weight: 700; }
.countdown { font-size: 15px; }
.seat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seat-list li { margin: 0; min-height: 46px; }
.seat-list li.empty { justify-content: center; font-family: var(--font-display); font-size: 14px; letter-spacing: .04em; }
.seat-list li.empty::before { content: '+'; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; margin-right: 2px; font-weight: 700; color: rgba(255, 214, 120, .6); box-shadow: 0 0 0 1.5px rgba(255, 214, 120, .3); }
.seat-list li { flex-wrap: wrap; row-gap: 3px; }
@media (max-width: 340px) { .seat-list { grid-template-columns: 1fr; } }
.settings { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; padding: 12px; border-radius: 16px; background: rgba(4, 8, 26, .38); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .4), 0 0 0 1px var(--line); }
.settings > span:empty { display: none; }
.settings label { min-width: 0; }
.settings label:has(.tseg-n3) { grid-column: 1 / -1; }
.set-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 4px 0 -2px; font: 700 12px var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold2); }
.set-head::before, .set-head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 214, 120, .5), transparent); }
#lobby .chat-log { height: 340px; }
#startBtn:not(:disabled) { animation: startGlow 2.4s ease-in-out infinite; }
@keyframes startGlow { 50% { box-shadow: 0 5px 0 #8a5a12, 0 9px 18px rgba(0, 0, 0, .35), 0 0 34px rgba(255, 200, 80, .65), inset 0 1px 0 #fff8d6; } }
.chat-form .btn { flex: none; }

/* ---------------------------------------------------------------- HUD: board fits the screen with the Bix bar, ticker fades at both ends */
@media (min-width: 901px) {
  /* bigger board (2026-11-20): tabs and ticker share one row, tighter padding, slimmer side column, so the board takes the height of the window */
  .game-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 10px; padding: 6px; }
  .board-col { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 6px; align-content: start; width: min(100%, calc((100vh - 112px) * var(--board-ar, 1.1328))); margin: 0 auto; }
  .board-tabs { grid-column: 1; width: auto; margin: 0 0 4px; flex-wrap: nowrap; white-space: nowrap; }
  .ticker { grid-column: 2; width: auto; margin: 0 0 4px; height: 32px; border-radius: 12px; align-self: stretch; }
  .board-viewport, .bix-bar { grid-column: 1 / -1; width: 100%; }
  .bix-bar { margin-top: 6px; } .bix-bar img { width: 46px; height: 46px; }
}
.ticker { border-radius: 12px 12px 0 0; }
.ticker-track { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 48px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 48px), transparent 100%); }
.ticker-label { letter-spacing: .12em; font-size: 14px; box-shadow: 4px 0 10px rgba(0, 0, 0, .35); position: relative; z-index: 1; }
.board-tabs .tab { box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.bix-bar img { animation: bixBob 3.6s ease-in-out infinite; }
.bix-bubble { font-family: Nunito, sans-serif; line-height: 1.3; }
#turnWho { white-space: nowrap; flex-wrap: wrap; row-gap: 3px; min-width: 0; font-size: 18px; color: var(--gold3); text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
#turnWho .mini-piece { width: 34px; height: 34px; }
.turn-card { position: relative; }
#actionHint { margin-top: 9px; line-height: 1.35; }
#actionHint:empty { display: none; }
.actions > .row { margin-top: 2px; }
/* ================================================================ actionplates-1128, calm pass (Anton 09:16 ET 2026-11-28 on the
   Prison Yard turn panel next to the approved Player Files mockup: "image one has to match up with image two style wise"). Every action
   button in the Turn Card (#actions: Roll / Roll again / End turn / Spin, Buy / Pass, Pay rent / Use card, jail + Prison Yard choices,
   choice rows, Exchange / Tip / Express, the sealed-bid row, Withdraw) and under a deed (#deedLayer .deed-panel) is a FLAT plate in the
   Player Files language: no bevel, no top sheen, no 3D lip, no glow; corners lightly chamfered (--c). One solid primary per decision
   (brass: Roll, Pay bail, End turn, Place sealed bid, Build; flat green Buy when it is the only lead; flat red Pay rent); every other
   button is an outlined secondary like the Player Files filter buttons: a one-pixel hairline (the plate itself, var(--edge)) around a
   face in the panel's own navy (::before one pixel in, same cut). The labels use the Player Files scale (Fredoka 600: 13.5 / 16 / 22).
   ::after is unused. No border-radius anywhere. Every selector starts at #game so the plates win over the Thanksgiving side-column
   button skin (harvest-borders.css, body.hv-borders #game ...), which still dresses the other side-column buttons. Scoped to #actions and the deed panel; the settle-up panel (settlerows-1128), Lobbyist
   rows (.lob-btn), option rows (.opt-row), modals, the lobby and the Deal Offer keep their own styles. */
#game :is(#actions, #deedLayer .deed-panel) .btn:not(.opt-row, .lob-btn, .q-chip, .settle .btn), #game #actions .tnum-btn {
  --c: 5px; --edge: rgba(212, 176, 98, .45); --face: var(--cl-bg, #151c3d); --fg: #efe7d2;
  position: relative; isolation: isolate; overflow: visible; box-sizing: border-box; min-height: 48px; min-width: 44px; padding: 10px 14px; margin: 0;
  display: inline-flex; align-items: center; justify-content: center; text-align: center; white-space: normal; overflow-wrap: break-word; line-height: 1.15;
  border: 0; border-radius: 0; background: var(--edge); box-shadow: none; color: var(--fg); text-shadow: none;
  font: 600 16px/1.15 var(--font-display, Fredoka), Nunito, sans-serif; font-synthesis: none; letter-spacing: .01em; text-transform: none;
  filter: none; transform: none; transition: background-color .12s ease, filter .12s ease; -webkit-tap-highlight-color: transparent;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
#game :is(#actions, #deedLayer .deed-panel) .btn:not(.opt-row, .lob-btn, .q-chip, .settle .btn)::before, #game #actions .tnum-btn::before {
  content: ''; position: absolute; display: block; inset: 1px; width: auto; height: auto; z-index: -1; pointer-events: none; border-radius: 0; opacity: 1; background: var(--face);
  clip-path: polygon(calc(var(--c) - .4px) 0, calc(100% - var(--c) + .4px) 0, 100% calc(var(--c) - .4px), 100% calc(100% - var(--c) + .4px), calc(100% - var(--c) + .4px) 100%, calc(var(--c) - .4px) 100%, 0 calc(100% - var(--c) + .4px), 0 calc(var(--c) - .4px)); }
#game :is(#actions, #deedLayer .deed-panel) .btn:not(.opt-row, .lob-btn, .q-chip, .settle .btn)::after, #game #actions .tnum-btn::after { content: none; }
@media (hover: hover) { #game :is(#actions, #deedLayer .deed-panel) .btn:not(.opt-row, .lob-btn, .q-chip, .settle .btn):hover:not(:disabled), #game #actions .tnum-btn:hover { filter: brightness(1.1); transform: none; } }
/* pressed: the face darkens; nothing moves (flat) */
#game :is(#actions, #deedLayer .deed-panel) .btn:not(.opt-row, .lob-btn, .q-chip, .settle .btn):active:not(:disabled), #game #actions .tnum-btn:active { filter: brightness(.86); transform: none; }
#game :is(#actions, #deedLayer .deed-panel) .btn:not(.opt-row, .lob-btn, .q-chip, .settle .btn):disabled { cursor: not-allowed; opacity: .5; transform: none; filter: grayscale(.6); }
#game :is(#actions, #deedLayer .deed-panel) .btn:not(.opt-row, .lob-btn, .q-chip, .settle .btn):focus-visible, #game #actions .tnum-btn:focus-visible { outline: 2px solid #e2c47e; outline-offset: 3px; }
/* the solid primary: brass (Roll, Pay bail, End turn, See results, Place sealed bid, Build, Accept loan) */
#game :is(#actions, #deedLayer .deed-panel) :is(.btn.gold, .btn.roll):not(.opt-row, .lob-btn, .settle .btn) { --edge: #d4b062; --face: #d4b062; --fg: #2a1e08; }
/* flat green / red when they lead (Buy with Pass; Pay rent with a card) */
#game :is(#actions, #deedLayer .deed-panel) .btn.green:not(.opt-row, .lob-btn, .settle .btn) { --edge: #23784a; --face: #23784a; --fg: #fff; }
#game :is(#actions, #deedLayer .deed-panel) .btn.red:not(.opt-row, .lob-btn, .settle .btn) { --edge: #a8382e; --face: #a8382e; --fg: #fff; }
/* ...and outlined when a brass (or red) plate already leads the same row, so a row never shows two solids: the green "Use Reduce
   Sentence" / "Walk out free" / "Use Bus Pass" are outlined green, "Roll for doubles" next to "Pay $50K" is outlined brass. Under a
   lone ROLL, the Exchange / Bix Stock Tip / Express Line row is secondary. */
#game :is(#actions .row, #deedLayer .deed-panel .deed-row):has(> .btn:is(.gold, .roll, .red)) > .btn.green:not(.opt-row, .lob-btn, .settle .btn) { --edge: rgba(134, 207, 159, .6); --face: var(--cl-bg, #151c3d); --fg: #9fdcb3; }
#game #actions .row:has(> .btn.gold) > .btn:is(.roll, .red):not(.opt-row, .lob-btn, .settle .btn) { --edge: rgba(212, 176, 98, .6); --face: var(--cl-bg, #151c3d); --fg: #e2c47e; }
#game #actions:has(> .btn.roll) > .row > .btn:not(.opt-row, .lob-btn, .settle .btn) { --edge: rgba(212, 176, 98, .45); --face: var(--cl-bg, #151c3d); --fg: #efe7d2; }
#game #actions:has(> .btn.roll) > .row > .btn.gold:not(.opt-row, .lob-btn, .settle .btn) { --fg: #e2c47e; }
#game #actions:has(> .btn.roll) > .row > .btn.green:not(.opt-row, .lob-btn, .settle .btn) { --edge: rgba(134, 207, 159, .6); --fg: #9fdcb3; }
#game :is(#actions, #deedLayer .deed-panel) .btn.ghost:not(.opt-row, .lob-btn, .settle .btn) { --edge: rgba(212, 176, 98, .45); --face: var(--cl-bg, #151c3d); --fg: #efe7d2; }
#game :is(#actions, #deedLayer .deed-panel) .btn.roll:not(.opt-row, .lob-btn, .settle .btn) { --c: 6px; width: 100%; min-height: 56px; padding: 10px 20px; font-size: 22px; letter-spacing: .08em; }
#game :is(#actions, #deedLayer .deed-panel) .btn.small:not(.opt-row, .lob-btn, .settle .btn) { min-height: 44px; padding: 6px 12px; font-size: 13.5px; }
#game :is(#actions, #deedLayer .deed-panel) .btn.big:not(.opt-row, .lob-btn, .settle .btn) { --c: 6px; min-height: 52px; padding: 10px 20px; font-size: 16px; letter-spacing: .06em; }
#game #actions > .btn { width: 100%; }                                       /* a lone plate (Roll, End turn, Spin, See results) spans the card */
#game #actions .row { gap: 8px; }
#game #actions .row.wrap { row-gap: 8px; }
#game #actions .row > .btn:not(.opt-row, .lob-btn, .q-chip, .settle .btn) { padding-left: 8px; padding-right: 8px; }   /* three plates share a 330 px row: whole words, no mid-word breaks */
#game #actions .choice-list { gap: 8px; padding: 2px 0 6px; }
#game #actions .row:has(> .btn:nth-child(3)) > .btn:not(.opt-row, .lob-btn, .q-chip, .settle .btn) { font-size: 13.5px; }   /* three plates in a row (Pay / Serve / Use card) */
#game #actions .choice-list .btn:not(.opt-row, .lob-btn) { width: 100%; font-size: 13.5px; }
/* the sealed bid: [-] [ $120K ] [+]  [Place sealed bid]. The number box is a flat well (a hairline around the page navy, square),
   drawn by the stepper's own ::before / ::after in the middle grid cell so the input itself stays a plain text box. -/+ are outlined. */
#game #actions .bid-row { flex-wrap: wrap; align-items: stretch; }
#game #actions .bid-row > .tnum { flex: 1 1 190px; min-width: 0; }
#game #actions .bid-row > .btn { flex: 1 1 130px; }
#game #actions .tnum { position: relative; isolation: isolate; display: grid; grid-template-columns: 44px minmax(76px, 1fr) 44px; column-gap: 6px; align-items: stretch;
  border-radius: 0; box-shadow: none; background: none; }
#game #actions .tnum::before, #game #actions .tnum::after { content: ''; grid-column: 2; grid-row: 1; pointer-events: none; border-radius: 0; }
#game #actions .tnum::before { z-index: -2; background: rgba(212, 176, 98, .45); }
#game #actions .tnum::after { z-index: -1; margin: 1px; background: #0f1531; }
#game #actions .tnum:focus-within::before { background: #d4b062; }
#game #actions .tnum .tnum-btn { grid-row: 1; width: 44px; min-height: 44px; padding: 0; font: 600 22px/1 var(--font-display, Fredoka), sans-serif; }
#game #actions .tnum .tnum-btn:first-child { grid-column: 1; } #actions .tnum .tnum-btn:last-child { grid-column: 3; }
#game #actions .tnum input { grid-column: 2; grid-row: 1; width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; margin: 0; padding: 0 8px !important; border: 0; border-radius: 0 !important;
  background: none; box-shadow: none; text-align: center; font: 600 16px/1 var(--font-display, Fredoka), sans-serif; letter-spacing: .02em; color: #e2c47e;
  font-variant-numeric: tabular-nums; text-shadow: none; }
#game #actions .tnum input:focus { outline: none; box-shadow: none; }
@media (max-width: 600px) { #game :is(#actions, #deedLayer .deed-panel) .btn.roll:not(.opt-row, .lob-btn, .settle .btn) { min-height: 52px; font-size: 22px; padding: 8px 16px; } }
@media (prefers-reduced-motion: reduce) { #game #actions .btn, #game #actions .tnum-btn { transition: none; } }

/* ---- the panel under a deed (actionplates-1128, Anton 06:38 ET "it just looks messy"): a chamfered dark plate with a thin rim in its
   city's colour (Ironbrook ember, Goldspire gold, Nexus cyan) and a notch pointing up at the card, a small notched status plate on top
   ("YOURS · GOLDEN AVE"), light text, the actions as the plates above. Never a white strip, never a rounded box. The deciding-1128
   waiting plate (a panel holding only .deed-wait) keeps its own look: these rules skip it. */
#deedLayer .deed-wrap[data-shape="circle"] { --city: #ff9a3c; --city-d: #7a3a0c; }
#deedLayer .deed-wrap[data-shape="rect"] { --city: #ffd76a; --city-d: #7a5a12; }
#deedLayer .deed-wrap[data-shape="diamond"] { --city: #4dd8ff; --city-d: #0c4a66; }
#deedLayer .deed-wrap .deed-panel:not(:has(> .deed-wait:only-child)) { --c: 12px; --nh: 9px; --nw: 11px;
  position: relative; isolation: isolate; box-sizing: border-box; width: min(320px, calc(100vw - 16px)); max-width: 100%; margin-top: var(--nh); padding: 12px 14px 14px;
  display: flex; flex-direction: column; align-items: stretch; gap: 9px; text-align: center; color: #f1ecdc;
  background: none; border: 0; border-radius: 0; box-shadow: none; clip-path: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  filter: drop-shadow(0 8px 16px rgba(4, 7, 20, .55)); }
#deedLayer .deed-wrap .deed-panel:not(:has(> .deed-wait:only-child))::before, #deedLayer .deed-wrap .deed-panel:not(:has(> .deed-wait:only-child))::after {
  content: ''; position: absolute; pointer-events: none;
  clip-path: polygon(var(--c) var(--nh), calc(50% - var(--nw)) var(--nh), 50% 0, calc(50% + var(--nw)) var(--nh), calc(100% - var(--c)) var(--nh), 100% calc(var(--nh) + var(--c)),
    100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 calc(var(--nh) + var(--c))); }
/* rim: the city colour, lit top-left; face: deep navy glass with a faint sheen at the top */
#deedLayer .deed-wrap .deed-panel:not(:has(> .deed-wait:only-child))::before { inset: calc(-1 * var(--nh)) 0 0 0; z-index: -2;
  background: linear-gradient(135deg, color-mix(in srgb, var(--city) 55%, #fff) 0%, var(--city) 35%, var(--city-d) 70%, var(--city) 100%); }
#deedLayer .deed-wrap .deed-panel:not(:has(> .deed-wait:only-child))::after { inset: calc(-1 * var(--nh) + 2.6px) 2px 2px 2px; z-index: -1; --c: 11px; --nw: 8.6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 28px), linear-gradient(180deg, #1d2756 0%, #121a3f 55%, #0b1230 100%); }
/* status plate: notched ribbon ends, city colour, dark ink, caps */
#deedLayer .deed-wrap .deed-panel[hidden] { display: none !important; }
#deedLayer .deed-panel .deed-head { align-self: center; max-width: 100%; box-sizing: border-box; margin: 0; padding: 4px 16px 5px; border-radius: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%, 8px 50%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--city) 70%, #fff) 0%, var(--city) 45%, color-mix(in srgb, var(--city) 78%, #000) 100%);
  color: #17110a; font: 400 13px/1.15 var(--font-hero, 'Lilita One'), Fredoka, sans-serif; font-synthesis: none; letter-spacing: .09em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); overflow-wrap: break-word; }
#deedLayer .deed-panel .deed-due { margin: 0; padding: 0; background: none; border-radius: 0; color: #f6f1e2; font: 700 15px/1.3 Nunito, sans-serif; }
#deedLayer .deed-panel .deed-due b { color: var(--city); font: 400 19px/1 var(--font-hero, 'Lilita One'), Fredoka, sans-serif; letter-spacing: .03em; }
#deedLayer .deed-panel .deed-why { margin: 0; padding: 0; list-style: none; color: #c9d0ee; font: 600 13px/1.35 Nunito, sans-serif; }
#deedLayer .deed-panel .deed-why li.rescue { color: #ffd2a6; }
#deedLayer .deed-panel .small.muted { margin: 0; color: #c3cae6; font-size: 13px; line-height: 1.35; }
#deedLayer .deed-panel .deed-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 2px 0 0; }
#deedLayer .deed-panel .deed-row > .btn { flex: 1 1 0; min-width: min(100%, 96px); }
/* phones in landscape put the panel beside the card: no up-notch there */
@media (max-height: 520px) and (orientation: landscape) { #deedLayer .deed-wrap .deed-panel:not(:has(> .deed-wait:only-child)) { --nh: 0px; margin-top: 0; } }
/* ---- event cards (eventcards-1128, Anton 07:29 / 07:31 ET): taxes, fees, parking, Court, start squares and the start-square charges
   pop up like a deed: the same chamfered dark plate and city rim as the deed panel above (no up-notch: no card above it), a notched
   header plate naming the space, an icon badge in the city colour, the money in compact form. Stacked above a deed when both are up. */
.deed-layer:has(> .evc-wrap) { align-content: center; grid-auto-rows: max-content; row-gap: 6px; }
.deed-layer:has(> .evc-wrap):not(:has(> .deed-wrap:not(.evc-wrap))) { align-content: start; padding-top: 10px; }   /* alone: at the top of the board, clear of the dice (bottom-left) */
#deedLayer .evc-wrap { cursor: pointer; animation-duration: .6s; }
#deedLayer .evc-wrap.deed-wrap .deed-panel.evc-panel:not(:has(> .deed-wait:only-child)) { --nh: 0px; margin-top: 0; width: min(330px, calc(100vw - 16px)); gap: 8px; padding: 12px 14px 13px; animation: none; }
#deedLayer .evc-panel .evc-main { display: flex; align-items: center; gap: 11px; text-align: left; }
#deedLayer .evc-panel .evc-ico { --c: 7px; flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; color: #17110a; border-radius: 0;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  background: linear-gradient(135deg, color-mix(in srgb, var(--city) 60%, #fff) 0%, var(--city) 45%, color-mix(in srgb, var(--city) 70%, #000) 100%); }
#deedLayer .evc-panel .evc-ico svg { width: 26px; height: 26px; display: block; }
#deedLayer .evc-panel .evc-line { color: #f6f1e2; font: 700 15px/1.3 Nunito, sans-serif; overflow-wrap: anywhere; }
#deedLayer .evc-panel .evc-amt { font: 400 30px/1 var(--font-hero, 'Lilita One'), Fredoka, sans-serif; letter-spacing: .03em; color: var(--city); text-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
#deedLayer .evc-panel .evc-amt.out { color: #ffb3a7; } #deedLayer .evc-panel .evc-amt.in { color: #8ff0b0; }
/* the itemised start-square list: label left, amount right, a thin rule between rows, then a bold net and cash before -> after */
#deedLayer .evc-panel .evc-items { margin: 0; padding: 0; list-style: none; text-align: left; font: 700 14px/1.3 Nunito, sans-serif; color: #e9e4d4; }
#deedLayer .evc-panel .evc-items li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 2px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
#deedLayer .evc-panel .evc-items li b { font: 400 16px/1.2 var(--font-hero, 'Lilita One'), Fredoka, sans-serif; letter-spacing: .03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
#deedLayer .evc-panel .evc-items li.out b { color: #ffb3a7; } #deedLayer .evc-panel .evc-items li.in b { color: #8ff0b0; }
#deedLayer .evc-panel .evc-items li.evc-sub { display: block; padding-top: 0; color: #c9d0ee; font: 600 12.5px/1.35 Nunito, sans-serif; }
#deedLayer .evc-panel .evc-items li.evc-sub.miss { color: #ffd2a6; }
#deedLayer .evc-panel .evc-net { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 2px 0; color: #f6f1e2; font: 400 18px/1 var(--font-hero, 'Lilita One'), Fredoka, sans-serif; letter-spacing: .05em; text-transform: uppercase; }
#deedLayer .evc-panel .evc-net b { font-size: 26px; } #deedLayer .evc-panel .evc-net.out b { color: #ffb3a7; } #deedLayer .evc-panel .evc-net.in b { color: #8ff0b0; }
#deedLayer .evc-panel .evc-cash { color: #c9d0ee; font: 700 13.5px/1.3 Nunito, sans-serif; } #deedLayer .evc-panel .evc-cash b { color: var(--gold3, #fff1b8); font-weight: 800; }
@media (max-width: 600px) { #deedLayer .evc-panel .evc-amt { font-size: 26px; } #deedLayer .evc-panel .evc-line { font-size: 14px; } }
.players li { border-radius: 12px; padding: 7px 6px; }
.players li .mini-piece { width: 34px; height: 34px; }
.players .nm { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); }
.players .cash { color: var(--gold2); text-shadow: 0 1px 0 rgba(0, 0, 0, .4); font-variant-numeric: tabular-nums; }
.players .cash.props { color: var(--ink2); }
.players .worth { color: var(--ink2); padding-left: 42px; }
.pots { padding-top: 8px; border-top: 1px solid var(--line); } .pots b { color: var(--gold2); font-family: var(--font-display); }
/* hotfix-1129 (Anton 05:32 ET 2026-11-29): the "Secret titles" heading over the badge strip is gone; the strip keeps the name as its aria-label (index.html) */
.title-badge { padding: 4px 11px; }
.title-badge:not(.on)::before { content: ''; width: 9px; height: 10px; border-radius: 2px 2px 3px 3px; background: currentColor; -webkit-mask: radial-gradient(circle at 50% 30%, transparent 2px, #000 2.5px); opacity: .8; }
.log div { padding: 3px 0 3px 12px; position: relative; } .log div::before { content: ''; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: .6; }
.log div:last-child { color: var(--ink); }
.chat-log { border-radius: 14px; }
.chat-log .msg { line-height: 1.35; }

/* side-panel tabs: one row of 3D icon tabs */
.ptabs { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 5px; padding: 4px; border-radius: 15px; background: rgba(4, 8, 26, .5); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5), 0 0 0 1px var(--line); margin-bottom: 12px; }
.ptab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 6px; border-radius: 11px; background: transparent; box-shadow: none; color: var(--ink2); font: 700 11px/1.05 var(--font-display); text-align: center; min-width: 0; }
.ptab-ic { width: 24px; height: 24px; display: block; color: #8d9ad0; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .45)); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), color .15s; }
.ptab-ic svg { width: 100%; height: 100%; display: block; }
@media (hover: hover) { .ptab:hover:not(.on) { background: rgba(255, 214, 120, .08); color: var(--gold3); } .ptab:hover .ptab-ic { transform: translateY(-2px) scale(1.08); color: var(--gold2); } }
.ptab.on { color: #3d2400; background: linear-gradient(180deg, #fff3b0, #ffd76a 40%, #f2b632); box-shadow: 0 3px 0 #8a5a12, 0 0 14px rgba(255, 200, 80, .35); }
.ptab.on .ptab-ic { color: #7a4a06; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .6)); animation: tabPop .35s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes tabPop { 40% { transform: translateY(-4px) scale(1.15); } }
.pbody { animation: pbodyIn .22s ease-out; }
@keyframes pbodyIn { from { opacity: 0; transform: translateY(6px); } }
.pbody > .row { margin-top: 10px; }

/* empty states */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 14px 10px; color: var(--ink2); }
.es-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #7a4a06; background: radial-gradient(circle at 35% 30%, #fff6c8, #f2b632 60%, #a46a12); box-shadow: 0 4px 0 #6b4510, 0 0 20px rgba(255, 200, 80, .3); animation: esBob 3s ease-in-out infinite; }
.es-ic svg { width: 26px; height: 26px; }
@keyframes esBob { 50% { transform: translateY(-4px); } }

/* My Tycoon */
.prop-list li { padding: 6px 8px; margin: 3px 0; border-radius: 10px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.prop-list .sw { width: 8px; height: 24px; border-radius: 4px; border: 0; box-shadow: 0 0 8px color-mix(in srgb, currentColor 0%, transparent); }
.prop-list .btn.small { padding: 4px 9px; min-width: 30px; }
.held span { box-shadow: inset 0 0 0 1px rgba(143, 240, 192, .35); }
.goal-box { border-radius: 12px; }

/* Exchange: a stock board */
.xtable { border-collapse: separate; border-spacing: 0 3px; margin-top: 8px; }
.xtable th { font: 700 10.5px var(--font-display); letter-spacing: .12em; text-transform: uppercase; padding: 0 4px 2px; }
.xtable td { padding: 6px 4px; border: 0; background: rgba(255, 255, 255, .045); font-variant-numeric: tabular-nums; }
.xtable td:first-child { border-radius: 9px 0 0 9px; padding-left: 8px; } .xtable td:last-child { border-radius: 0 9px 9px 0; padding-right: 6px; }
.xtable tr:hover td { background: rgba(255, 214, 120, .1); }
.xtable td:nth-child(2) { font-family: var(--font-display); color: var(--gold3); }
.xtable .sw { width: 10px; height: 10px; border-radius: 50%; display: inline-block; vertical-align: 0; border: 0; box-shadow: 0 0 6px rgba(255, 255, 255, .25); }
.xtable a { color: var(--ink); } .xtable a:hover { color: var(--gold2); }
.xtable .up, .xtable .down { font-size: 12px; }
.tag-pill.boom { background: rgba(60, 207, 142, .2); color: #8ff0c0; } .tag-pill.normal { background: rgba(116, 143, 252, .22); color: #c5d0ff; } .tag-pill.slump { background: rgba(239, 68, 68, .22); color: #ffb4b4; }

/* Bank */
.tier-card { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: linear-gradient(120deg, rgba(255, 214, 120, .16), rgba(255, 214, 120, .03)); box-shadow: inset 0 0 0 1px rgba(255, 214, 120, .3); margin-bottom: 8px; }
.tier-medal { width: 44px; height: 44px; flex: none; border-radius: 50%; position: relative; background: radial-gradient(circle at 35% 30%, #fff6c8, #f2b632 55%, #a46a12); box-shadow: 0 4px 0 #6b4510, 0 0 16px rgba(255, 200, 80, .4); }
.tier-medal::after { content: ''; position: absolute; inset: 11px; background: #7a4a06; clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 77%, 20% 100%, 30% 60%, 0 38%, 38% 36%); opacity: .85; }
.tier-kick { font: 700 12px var(--font-display); font-variant: all-small-caps; letter-spacing: .14em; color: var(--gold2); }
.tier-name { font: 600 19px var(--font-display); color: var(--gold3); }
.loan { border-radius: 12px; padding: 10px; box-shadow: inset 3px 0 0 var(--gold); background: rgba(255, 255, 255, .05); border: 0; }
.loan .row { margin-top: 8px; }

/* Deal Files + Bix Moments */
.files li { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; padding: 7px 8px; margin: 3px 0; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.tag-pill.contract { background: rgba(60, 207, 142, .2); color: #8ff0c0; } .tag-pill.note { background: rgba(255, 214, 120, .2); color: var(--gold2); } .tag-pill.iou { background: rgba(239, 68, 68, .22); color: #ffb4b4; } .tag-pill.ledger { background: rgba(116, 143, 252, .22); color: #c5d0ff; }
.tag-pill.title { background: rgba(255, 214, 120, .2); color: var(--gold2); } .tag-pill.lock { background: #0b0f26; color: #dfe3ea; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); } .tag-pill.out { background: rgba(239, 68, 68, .25); color: #ffb4b4; } .tag-pill.bix { background: rgba(80, 220, 255, .18); color: #a5f3ff; }
.moment { position: relative; margin: 8px 0 0 26px; padding: 8px 10px; border: 0; border-radius: 12px 12px 12px 4px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); line-height: 1.35; }
.moment::before { content: ''; position: absolute; left: -26px; bottom: 0; width: 20px; height: 20px; border-radius: 50%; background: url(art/bix.png?v=941673a6d0) center / 130% no-repeat, #26357e; box-shadow: 0 0 0 1.5px rgba(255, 214, 120, .5); }
.moment.big { box-shadow: inset 0 0 0 1px rgba(255, 138, 61, .45); background: rgba(255, 138, 61, .1); } .moment.big b { color: #ffb37a; }
/* toggle switch (a themed checkbox) */
.tswitch { display: inline-flex !important; align-items: center; gap: 8px; cursor: pointer; margin: 0; font-weight: 700; }
.tswitch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tswitch-track { position: relative; width: 44px; height: 24px; flex: none; border-radius: 99px; background: rgba(4, 8, 26, .8); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6), 0 0 0 1.5px rgba(255, 214, 120, .45); transition: background .2s; }
.tswitch-track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c5cbe0 70%); box-shadow: 0 2px 0 rgba(0, 0, 0, .4); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background .2s; }
.tswitch input:checked + .tswitch-track { background: linear-gradient(90deg, #d89412, #ffd76a); box-shadow: 0 0 12px rgba(255, 200, 80, .45), 0 0 0 1.5px #ffd76a; }
.tswitch input:checked + .tswitch-track::after { transform: translateX(20px); background: radial-gradient(circle at 35% 30%, #fff6c8, #f2b632 60%, #a46a12); }
.tswitch input:focus-visible + .tswitch-track { outline: 3px solid var(--gold2); outline-offset: 2px; }

/* ---------------------------------------------------------------- modals: kicker, Bix pop, deal table, offer, game over, history, Ask Bix */
.modal-card { position: relative; padding: 22px 22px 20px; }
.modal-card .card-deck { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold2); letter-spacing: .2em; }
.modal-card .card-deck::before, .modal-card .card-deck::after { content: ''; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold2)); }
.modal-card .card-deck::after { transform: scaleX(-1); }
.modal-card h2 { font-size: 24px; margin: 6px 0 8px; }
.modal-card > div > .row:last-child { margin-top: 12px; }
.bix-pop { width: 76px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); animation: bixPopIn .5s cubic-bezier(.2, 1.6, .4, 1) both, bixBob 3.6s .5s ease-in-out infinite; }
@keyframes bixPopIn { from { transform: translateY(14px) scale(.6); opacity: 0; } }
.ask-form input { text-align: left; }
.ask-chips { margin: 10px 0; justify-content: center; gap: 7px; }
.btn.q-chip { font-size: 12.5px; padding: 6px 11px; border-radius: 99px; }
.btn.q-chip::before { display: none; }
.bix-answer .card-text { font-size: 17px; line-height: 1.4; }
/* deal table */
.deal-with { justify-content: center; margin-bottom: 12px; gap: 10px; font-family: var(--font-display); color: var(--ink2); }
.deal-with .tpick, .deal-with .tseg { min-width: 170px; margin: 0; }
.deal-cols { grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.deal-cols > div:not(.deal-swap) { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; background: rgba(4, 8, 26, .45); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .45), 0 0 0 1px var(--line); }
.deal-cols > div > b { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.deal-swap { align-self: center; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c8, #f2b632 60%, #a46a12); box-shadow: 0 3px 0 #6b4510, 0 0 14px rgba(255, 200, 80, .35); position: relative; }
.deal-swap { display: grid; place-items: center; color: #6b4510; } .deal-swap svg { width: 18px; height: 18px; }
.deal-chip { display: flex !important; align-items: center; gap: 8px !important; margin: 0 !important; padding: 7px 8px 7px 0; border-radius: 10px; cursor: pointer; overflow: hidden; background: linear-gradient(90deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); box-shadow: inset 0 0 0 1px var(--line), 0 2px 0 rgba(0, 0, 0, .3); transition: transform .15s cubic-bezier(.3, 1.6, .5, 1), box-shadow .15s, background .15s; font-weight: 700 !important; }
.deal-chip:hover { transform: translateY(-1px); }
.deal-chip input[type=checkbox] { order: 3; margin: 0 0 0 auto; width: 20px; height: 20px; }
.deal-chip input[type=checkbox]:checked::after { left: 5px; top: 1px; }
.dc-band { width: 7px; align-self: stretch; margin: -7px 0; background: var(--sw); box-shadow: 0 0 10px var(--sw); }
.dc-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
.deal-chip:has(input:checked) { background: linear-gradient(90deg, rgba(255, 214, 120, .28), rgba(255, 214, 120, .08)); box-shadow: inset 0 0 0 1.5px rgba(255, 214, 120, .8), 0 0 16px rgba(255, 200, 80, .25); transform: translateY(-2px); }
.dc-none { text-align: center; padding: 6px 0; }
.deal-cash { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 4px !important; margin-top: auto !important; font: 700 11px var(--font-display) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--gold2); }
.deal-cash .tnum { width: 100%; display: flex; } .deal-cash .tnum input { flex: 1; width: 100%; min-width: 0; font-size: 17px; }
@media (max-width: 480px) { .deal-cols { grid-template-columns: minmax(0, 1fr); } .deal-swap { transform: rotate(90deg); justify-self: center; } }
/* incoming offer: Deal Offer pop-up (dealoffer-1127, Anton 12:51 ET; approved mockup 4_deal_offer_phone). Brass-edged chamfered
   frame (no rounded card), notched YOU GET / YOU GIVE banners, mini shaped property cards, stamped cash plate, chamfered
   Accept / Decline plates. No rounded pills. The modal-card itself only scrolls; the frame is on .deal-offer-card. */
#modal:has(> .modal-card.deal-offer) { padding: 10px; }
.modal-card.deal-offer { max-width: 600px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; text-align: center;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); scrollbar-width: thin; }
.deal-offer-card { --c: 16px; position: relative; isolation: isolate; padding: 18px 16px 14px; }
.deal-offer-card::before { content: ''; position: absolute; inset: 0; z-index: -2; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); background: var(--trim); }
.deal-offer-card::after { content: ''; position: absolute; inset: 3px; z-index: -1; --c: 14px; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  background: radial-gradient(80% 50% at 50% 0, rgba(255, 215, 106, .14), transparent 70%), linear-gradient(170deg, rgba(40, 50, 104, .98), rgba(12, 16, 40, .99)); }
.do-top { display: flex; align-items: center; gap: 12px; margin: 0 4px 14px; text-align: left; }
.do-pc { width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }
.do-pc img { width: 100%; height: 100%; object-fit: contain; }
.do-head { min-width: 0; }
.do-kicker { font: 800 11px/1 Nunito, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--gold2); margin-bottom: 4px; }
.modal-card.deal-offer h2 { margin: 0; font: 400 24px/1.08 var(--font-hero, Fredoka), Fredoka, sans-serif; color: var(--gold3); text-shadow: 0 2px 0 rgba(0, 0, 0, .5); overflow-wrap: anywhere; }
.do-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: stretch; }
.do-col { position: relative; isolation: isolate; min-width: 0; padding: 36px 6px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.do-col::before { content: ''; position: absolute; inset: 12px 0 0; z-index: -1; --c: 10px; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); background: rgba(5, 9, 28, .55); box-shadow: inset 0 2px 6px #000; }
/* notched banner (swallow-tail both ends) */
.do-ribbon { position: absolute; top: 0; left: 50%; transform: translateX(-50%); min-width: 120px; max-width: calc(100% + 8px); height: 30px; padding: 0 22px; display: grid; place-items: center;
  font: 400 16px/1 var(--font-hero, Fredoka), Fredoka, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 10px 50%); filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .5)); }
.do-ribbon.get { background: linear-gradient(180deg, #5fd68a, #24914a); }
.do-ribbon.give { background: linear-gradient(180deg, #e25a5a, #8f1b1b); }
/* tap-to-view mini property card */
.do-deed { width: 100%; min-height: 44px; border: 0; border-radius: 0; background: none; box-shadow: none; padding: 2px 0; margin: 0; color: var(--ink); cursor: pointer; font: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 4px; -webkit-tap-highlight-color: transparent; }
.do-deed:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
.do-deed:hover .do-shape, .do-deed:focus-visible .do-shape { transform: translateY(-2px) scale(1.04); }
.do-deed .nm { max-width: 100%; font: 800 15px/1.15 Nunito, sans-serif; color: #fff7e6; overflow-wrap: anywhere; margin-top: 2px; }
.do-deed .city { max-width: 100%; font: 800 10.5px/1.2 Nunito, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.do-deed .hint { font: 700 12px/1 Nunito, sans-serif; color: var(--ink2); display: flex; gap: 4px; align-items: center; }
.do-deed .hint svg { width: 13px; height: 13px; flex: 0 0 13px; }
.do-shape { --sz: 74px; position: relative; width: var(--sz); height: var(--sz); flex: 0 0 auto; transition: transform .15s; }
.do-shape .rim { position: absolute; inset: 0; background: linear-gradient(135deg, var(--rim-l), var(--rim) 35%, var(--rim-d) 62%, var(--rim) 80%, var(--rim-l)); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
.do-shape .face { position: absolute; inset: 4px; overflow: hidden; }
.do-shape .vig { position: absolute; inset: 0; }
.do-shape .vig::after { content: ''; position: absolute; inset: 0; background: radial-gradient(closest-side, transparent 55%, rgba(8, 12, 34, .55)); }
.do-shape .band { position: absolute; left: 0; right: 0; top: 0; height: 22%; z-index: 1; background: var(--band); box-shadow: 0 1px 0 rgba(255, 255, 255, .35), 0 2px 3px rgba(0, 0, 0, .35); }
/* Ironbrook: copper circle with four rivets */
.do-shape[data-shape="circle"] .rim, .do-shape[data-shape="circle"] .face { border-radius: 50%; }
.do-shape[data-shape="circle"] .band { height: 24%; }
.do-shape[data-shape="circle"] .rim::after { content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 2.6%, #ffd2a6 0 1.3px, #7d3b16 1.8px, transparent 2.3px), radial-gradient(circle at 97.4% 50%, #ffd2a6 0 1.3px, #7d3b16 1.8px, transparent 2.3px),
    radial-gradient(circle at 50% 97.4%, #ffd2a6 0 1.3px, #7d3b16 1.8px, transparent 2.3px), radial-gradient(circle at 2.6% 50%, #ffd2a6 0 1.3px, #7d3b16 1.8px, transparent 2.3px); }
/* Goldspire: gold-rimmed card, marble name band */
.do-shape[data-shape="rect"] { width: calc(var(--sz) * 1.06); height: calc(var(--sz) * .78); }
.do-shape[data-shape="rect"] .rim { border-radius: 3px; }
.do-shape[data-shape="rect"] .face { border-radius: 2px; }
.do-shape[data-shape="rect"] .face::after { content: ''; position: absolute; inset: 3px; z-index: 2; border: 1px solid rgba(255, 236, 170, .6); pointer-events: none; }
.do-shape[data-shape="rect"] .band { background: linear-gradient(118deg, transparent 30%, rgba(255,255,255,.42) 31.4%, rgba(255,255,255,.14) 33%, transparent 35%),
    linear-gradient(64deg, transparent 56%, rgba(0,0,0,.22) 57.3%, transparent 61%), linear-gradient(162deg, transparent 12%, rgba(255,255,255,.3) 13.4%, transparent 16%),
    linear-gradient(180deg, rgba(255,255,255,.38) 0, rgba(255,255,255,.12) 46%, transparent 50%, rgba(0,0,0,.08) 100%), var(--band); }
/* Nexus: hologram diamond, segmented rim in the group colour */
.do-shape[data-shape="diamond"] { width: calc(var(--sz) * 1.08); height: calc(var(--sz) * 1.08);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--rim) 70%, transparent)) drop-shadow(0 4px 5px rgba(0, 0, 0, .5)); }
.do-shape[data-shape="diamond"] .rim, .do-shape[data-shape="diamond"] .face { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); filter: none; }
.do-shape[data-shape="diamond"] .rim { background: repeating-linear-gradient(45deg, transparent 0 9px, rgba(6,14,32,.55) 9px 10.5px), repeating-linear-gradient(-45deg, transparent 0 9px, rgba(6,14,32,.55) 9px 10.5px), linear-gradient(135deg, var(--rim-l), var(--rim) 35%, var(--rim) 65%, var(--rim-l)); }
.do-shape[data-shape="diamond"] .face { inset: 5px; }
.do-shape[data-shape="diamond"] .face::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 45%, rgba(255,255,255,.08) 52%, transparent 62%), repeating-linear-gradient(0deg, color-mix(in srgb, var(--rim) 14%, transparent) 0 1px, transparent 1px 3px); }
.do-shape[data-shape="diamond"] .band { top: 26%; height: 9%; left: 18%; right: 18%; background: linear-gradient(180deg, #102a52, #071330); box-shadow: 0 0 0 1px var(--rim), 0 0 6px var(--rim); }
/* hint plates under a card (chamfered, not pills) */
.do-note { --c: 4px; position: relative; isolation: isolate; max-width: 100%; padding: 5px 9px; font: 800 12px/1.2 Nunito, sans-serif; color: #12351f; text-align: center; }
.do-note::before { content: ''; position: absolute; inset: 0; z-index: -1; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); background: linear-gradient(180deg, #c9f7d8, #7fd99d); }
.do-note.mort { color: #3d2400; } .do-note.mort::before { background: linear-gradient(180deg, #ffe6b0, #e9b23c); }
/* cash: a stamped plate */
.do-stamp { position: relative; margin: 4px 0 2px; padding: 8px 14px 7px; transform: rotate(-4deg); text-align: center; color: #b8f5cb; border: 2.5px solid currentColor; border-radius: 0;
  outline: 1.5px solid currentColor; outline-offset: 2px; max-width: calc(100% - 12px);
  -webkit-mask: radial-gradient(circle at 20% 30%, transparent 0 .7px, #000 1px) 0 0 / 13px 15px, linear-gradient(#000, #000); -webkit-mask-composite: source-in; mask-composite: intersect; }
.do-stamp small { display: block; font: 800 10px/1.1 Nunito, sans-serif; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 3px; white-space: nowrap; }
.do-stamp b { display: block; font: 400 24px/1 var(--font-hero, Fredoka), Fredoka, sans-serif; letter-spacing: .04em; text-shadow: 0 0 1px currentColor; white-space: nowrap; }
.do-stamp.give { color: #ffb3b3; transform: rotate(3deg); }
.do-none { font: 700 13px/1.2 Nunito, sans-serif; color: var(--ink2); padding: 8px 0; }
/* chamfered metal plates (Accept / Decline / Back to the deal) */
.do-plate { --c: 9px; --edge: linear-gradient(135deg, #c9d3f5, #6b7bb8 35%, #26305e 65%, #9aa8e0); --face: linear-gradient(180deg, #4a5a9e, #2c3870 55%, #1d2654);
  position: relative; isolation: isolate; min-height: 52px; min-width: 44px; padding: 0 18px; border: 0; border-radius: 0; background: none; box-shadow: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font: 400 20px/1.05 var(--font-hero, Fredoka), Fredoka, sans-serif; letter-spacing: .03em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .5); filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35)) drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); -webkit-tap-highlight-color: transparent; }
.do-plate::before, .do-plate::after { content: ''; position: absolute; pointer-events: none; }
.do-plate::before { inset: 0; z-index: -2; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); background: var(--edge); }
.do-plate::after { inset: 2px; z-index: -1; --c: 8px; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 46%), var(--face); }
.do-plate:active { transform: translateY(2px); }
.do-plate:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; }
.do-plate.green { --edge: linear-gradient(135deg, #d9ffe6, #3cc46a 35%, #145c2b 70%, #8af0ae); --face: linear-gradient(180deg, #8af0ae 0%, #3cc46a 45%, #24914a 100%); text-shadow: 0 1px 0 rgba(0, 60, 20, .6); }
.do-plate.garnet { --edge: linear-gradient(135deg, #ffc9c9, #c23434 35%, #5c0e0e 70%, #f08a8a); --face: linear-gradient(180deg, #e25a5a 0%, #b52525 50%, #7e1414 100%); text-shadow: 0 1px 0 rgba(60, 0, 0, .6); }
.do-plate.steel { color: #f3f0e2; }
.do-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.do-foot { margin-top: 10px; font: 700 13px/1.3 Nunito, sans-serif; color: var(--ink2); }
/* tap to view: the real title deed (deedCard, the same shaped card a landing shows) over the deal */
.do-zoom { position: fixed; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 12px 6px;
  background: rgba(5, 8, 24, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow: hidden; }
.do-zoom .deed-wrap { max-height: none; flex: 0 0 auto; }
.do-zoom .do-back { min-width: 200px; padding: 0 28px; flex: 0 0 auto; }
@media (max-width: 600px) { .do-zoom .deed-card[data-shape="rect"] { width: min(320px, 86vw); } .do-zoom .deed-card[data-shape="circle"] { width: min(330px, 88vw); } .do-zoom .deed-card[data-shape="diamond"] { width: min(372px, 95vw); } }
@media (max-width: 380px) { .deal-offer-card { padding: 16px 10px 12px; } .modal-card.deal-offer h2 { font-size: 21px; } .do-col { padding-left: 4px; padding-right: 4px; } .do-ribbon { min-width: 0; width: calc(100% - 4px); padding: 0 14px; font-size: 15px; } }
@media (max-height: 700px) and (max-width: 600px) { .deal-offer-card { padding-top: 14px; } .do-top { margin-bottom: 10px; } .do-pc { width: 46px; height: 46px; flex-basis: 46px; } .do-col { gap: 7px; } .do-btns { margin-top: 12px; } .do-foot { margin-top: 8px; font-size: 12px; } .do-deed .nm { font-size: 14px; } }
/* a side with only cash: the stamp sits in the middle of its column */
.do-col:not(:has(.do-deed)) { justify-content: center; }
/* desktop: the 600px frame gets a little more presence */
@media (min-width: 601px) { .deal-offer-card { padding: 22px 22px 16px; } .modal-card.deal-offer h2 { font-size: 28px; } .do-pc { width: 64px; height: 64px; flex-basis: 64px; }
  .do-ribbon { height: 34px; font-size: 18px; min-width: 140px; } .do-col { padding-top: 40px; } .do-deed .nm { font-size: 17px; } .do-deed .city { font-size: 11.5px; } .do-deed .hint { font-size: 13px; }
  .do-note { font-size: 13px; } .do-stamp b { font-size: 28px; } .do-plate { min-height: 56px; font-size: 22px; } .do-foot { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .do-shape { transition: none; } }
/* game over */
.gameover { position: relative; }
.go-crown { position: relative; width: 120px; height: 120px; margin: -4px auto 2px; display: grid; place-items: center; }
.go-rays { position: absolute; inset: -30px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 220, 120, .35) 0 9deg, transparent 9deg 20deg); -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 100%); mask: radial-gradient(closest-side, #000 30%, transparent 100%); animation: goSpin 14s linear infinite; }
@keyframes goSpin { to { transform: rotate(360deg); } }
.go-piece { position: relative; animation: goBounce 1.8s cubic-bezier(.3, 1.6, .5, 1) infinite; }
.go-piece .mini-piece { width: 92px; height: 92px; display: block; box-shadow: 0 0 0 4px #ffd76a, 0 0 30px rgba(255, 200, 80, .7), 0 10px 20px rgba(0, 0, 0, .5); }
.go-piece::before { content: ''; position: absolute; left: 50%; top: -30px; width: 46px; height: 30px; transform: translateX(-50%); background: linear-gradient(180deg, #fff3b0, #f2b632 60%, #a46a12); clip-path: polygon(0 100%, 6% 20%, 28% 62%, 50% 0, 72% 62%, 94% 20%, 100% 100%); filter: drop-shadow(0 2px 0 #6b4510); z-index: 1; }
.go-crown img { width: 90px; position: relative; }
@keyframes goBounce { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px) scale(1.04, .97); } 55% { transform: translateY(0) scale(.98, 1.02); } }
.go-confetti { position: absolute; inset: -22px -22px auto; height: 0; pointer-events: none; }
.go-confetti i { position: absolute; top: 0; left: calc(var(--k) * 5.6%); width: 8px; height: 13px; border-radius: 2px; background: hsl(calc(var(--k) * 47deg) 90% 62%); opacity: 0; animation: confetti 3.2s calc(var(--k) * -.19s) ease-in infinite; }
@keyframes confetti { 0% { opacity: 0; transform: translateY(0) rotate(0); } 10% { opacity: 1; } 100% { opacity: 0; transform: translateY(420px) translateX(calc((var(--k) - 9) * 6px)) rotate(720deg); } }
.standings { counter-reset: rank; margin: 10px 0 12px; }
.standings li { counter-increment: rank; border-radius: 12px; padding: 8px 10px; margin-bottom: 4px; background: rgba(255, 255, 255, .05); border: 0 !important; font-family: var(--font-display); font-weight: 600; flex-wrap: wrap; }
.standings li::before { content: counter(rank); width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 14px; color: var(--ink2); box-shadow: 0 0 0 1.5px var(--line); }
.standings li:first-child { background: linear-gradient(90deg, rgba(255, 214, 120, .32), rgba(255, 214, 120, .06)); box-shadow: inset 0 0 0 1.5px rgba(255, 214, 120, .7), 0 0 18px rgba(255, 200, 80, .25); }
.standings li:first-child::before { color: #3d2400; background: radial-gradient(circle at 35% 30%, #fff6c8, #f2b632 60%, #a46a12); box-shadow: 0 2px 0 #6b4510; }
.standings li > span:not(.mini-piece):not(.tag-pill) { margin-left: auto; color: var(--gold2); font-variant-numeric: tabular-nums; }
/* history */
.history li { border: 0 !important; border-radius: 12px; margin-bottom: 6px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); transition: transform .12s, background .12s; }
.history li:hover { transform: translateX(3px); }
.history li b { color: var(--gold2); font-family: var(--font-display); }
/* confirm dialog: Bix crest */
.tconfirm-card { padding-top: 46px; margin-top: 34px; position: relative; overflow: visible; }
.tconfirm-crest { position: absolute; left: 50%; top: -38px; transform: translateX(-50%); width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #3a4a9a, #141b40 70%) padding-box, var(--trim) border-box; border: 2px solid transparent; box-shadow: 0 8px 18px rgba(0, 0, 0, .45), 0 0 18px rgba(255, 200, 80, .3); }
.tconfirm-crest img { width: 62px; animation: bixBob 3.6s ease-in-out infinite; }
.tconfirm-kick { font: 700 12px var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--gold2); margin-bottom: 6px; }
.tconfirm-card.danger .tconfirm-kick { color: #ffb4b4; }
.tconfirm-card.danger .tconfirm-crest { box-shadow: 0 8px 18px rgba(0, 0, 0, .45), 0 0 22px rgba(239, 68, 68, .45); }
/* sound popover rows */
.sp-head b, .sp-head { font-family: var(--font-display); color: var(--gold3); }
/* explain cards (Bix pop-ups on the board) */
.explain { border-radius: 14px; align-items: center; }
.explain img { border-radius: 50%; background: #26357e; box-shadow: 0 0 0 1.5px rgba(255, 214, 120, .5); }
.explain.big { box-shadow: var(--shadow), inset 4px 0 0 #ff8a3d, 0 0 20px rgba(255, 138, 61, .3); }
.toast { box-shadow: var(--shadow), 0 0 20px rgba(255, 200, 80, .2); padding: 11px 20px; }

/* player rows: piece · name · cash on the first line, status pills on the second */
.players li { row-gap: 4px; }
.players li > .mini-piece { order: 0; } .players li > .nm { order: 1; } .players li > .cash { order: 2; margin-left: auto; }
.players li::after { content: ''; order: 3; flex-basis: 100%; height: 0; }
.players li > .tag-pill { order: 4; } .players li > .nm + .tag-pill { margin-left: 42px; } .players li > .worth { order: 5; margin-top: 0; }
.ticker-text { animation-delay: -7s; }
#startHint { margin-top: 8px; }
.gameover > :not(.go-confetti) { position: relative; z-index: 1; }
.go-confetti { z-index: 0; }
@media (max-width: 520px) {
  .settings label:has(.tpick) { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .turn-card { box-shadow: 0 -10px 30px rgba(0, 0, 0, .55), 0 0 0 1.5px rgba(255, 214, 120, .5); }
  .ptab { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .bix-bar img, .bix-pop, .tconfirm-crest img, .es-ic, .go-rays, .go-piece, .go-confetti i, #startBtn, .ptab.on .ptab-ic, .pbody, .tpick-list.open, .tswitch-track::after, .deal-chip, .history li { animation: none !important; transition: none !important; }
  .go-confetti { display: none; }
}

/* reduced motion: a still, calm world */
@media (prefers-reduced-motion: reduce) {
  .sc-plate, .sc-rays, .sc-cloud, .sc-sparks i, .sc-coin, .logo3d span::after, .ts-bix, .ts-title, .ts-panel, .piece-opt .pc-img, .piece-opt.sel .pedestal::before, .code-boxes i,
  .seat-list li, .modal-card, .toast, .tconfirm, .tconfirm-card, .timer.low, .tpick-list { animation: none !important; transition: none !important; }
  .sc-cloud, .sc-sparks { display: none; }
}
/* phones: keep the floating coin clear of the logo and Bix */
@media (max-width: 760px) { .sc-coin.k2 { right: auto; left: 5%; top: 3%; } .sc-coin.k1 { top: 40%; left: 2%; } }

/* ---------------------------------------------------------------- game menu (Pause / End game now / Vote to end / Step away / Quit) */
.menu-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.menu-btn svg { width: 16px; height: 16px; flex: none; }
.gmenu { position: fixed; inset: 0; z-index: 7000; display: grid; place-items: center; padding: 54px 14px 16px; background: rgba(5, 8, 24, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .15s ease-out; overflow-y: auto; }
.gmenu.hidden { display: none; }
.gmenu-card { position: relative; width: min(440px, 100%); border-radius: 22px; padding: 46px 16px 16px; text-align: center; animation: popin .22s cubic-bezier(.2, 1.3, .4, 1); }
.gm-title { margin: 0 0 12px; font: 700 24px var(--font-display); color: var(--gold3); text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.gm-list { display: grid; gap: 9px; margin-bottom: 14px; }
.gm-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 10px 12px; text-align: left; cursor: pointer; border-radius: 16px; color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)) padding-box, linear-gradient(180deg, #232d63, #121a3e) padding-box, var(--trim) border-box; border: 1.5px solid transparent;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .1); transition: transform .08s ease, box-shadow .08s ease, filter .15s; font: inherit; }
.gm-item.hidden { display: none; }
.gm-item:hover:not(:disabled) { filter: brightness(1.12); transform: translateY(-1px); }
.gm-item:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.gm-item:focus-visible { outline: 3px solid var(--gold2); outline-offset: 3px; }
.gm-item:disabled { cursor: default; opacity: .62; filter: grayscale(.4); }
.gm-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #3d2400; background: linear-gradient(180deg, #fff3b0, #ffd76a 40%, #f2b632); box-shadow: 0 3px 0 #8a5a12, inset 0 1px 0 #fff8d6; }
.gm-ic svg { width: 22px; height: 22px; }
.gm-txt { display: grid; gap: 2px; min-width: 0; }
.gm-txt b { font: 700 16px var(--font-display); color: var(--gold3); letter-spacing: .01em; }
.gm-txt small { font: 600 13px Nunito, sans-serif; color: var(--ink2); line-height: 1.3; overflow-wrap: anywhere; }
.gm-item.danger .gm-ic { color: #fff; background: linear-gradient(180deg, #ff9d9d, #ef4444 50%, #b91c1c); box-shadow: 0 3px 0 #7a1010, inset 0 1px 0 rgba(255, 255, 255, .45); }
.gm-item.danger .gm-txt b { color: #ffc2c2; }
.gm-close { width: 100%; padding: 11px; font-size: 15px; }

/* ---------------------------------------------------------------- vote to end: banner for the whole table */
.vote-banner { position: fixed; z-index: 6500; top: 10px; left: 50%; transform: translateX(-50%); width: min(620px, calc(100% - 16px)); border-radius: 18px; padding: 10px 12px;
  display: flex; align-items: center; gap: 12px; animation: vbIn .3s cubic-bezier(.2, 1.3, .4, 1); box-shadow: var(--shadow), 0 0 24px rgba(255, 200, 80, .25); }
.vote-banner.hidden { display: none; }
@keyframes vbIn { from { transform: translate(-50%, -16px); opacity: 0; } }
.vb-bix { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .4)); }
.vb-body { flex: 1; min-width: 0; }
.vb-title { font: 700 16px var(--font-display); color: var(--gold3); line-height: 1.2; }
.vb-meta { font: 600 13px Nunito, sans-serif; color: var(--ink2); margin-top: 2px; }
.vb-bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .12); margin-top: 6px; overflow: hidden; }
.vb-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f2b632, #ffd76a); transform-origin: left; transition: transform .25s linear; }
.vb-actions { display: flex; gap: 8px; flex: none; }
.vb-actions.hidden { display: none; }
.vb-actions .btn { white-space: nowrap; }
@media (max-width: 560px) {
  .vote-banner { flex-wrap: wrap; top: 6px; gap: 8px 10px; }
  .vb-bix { width: 36px; height: 36px; }
  .vb-body { flex-basis: calc(100% - 50px); }
  .vb-actions { flex-basis: 100%; } .vb-actions .btn { flex: 1; }
}

/* ---------------------------------------------------------------- paused overlay */
.pause-veil { z-index: 40; padding: 46px 14px 14px; font: inherit; }
.pv-card { position: relative; width: min(360px, 100%); border-radius: 20px; padding: 44px 18px 18px; text-align: center; color: var(--ink); animation: popin .25s cubic-bezier(.2, 1.3, .4, 1); }
.pv-title { font: 700 34px var(--font-display); color: var(--gold2); text-shadow: 0 3px 0 rgba(0, 0, 0, .4), 0 0 18px rgba(255, 200, 80, .35); letter-spacing: .03em; line-height: 1.1; }
.pv-why { font: 600 15px Nunito, sans-serif; margin: 8px 0 10px; color: var(--ink); }
.pv-note { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: rgba(8, 12, 34, .55); color: var(--gold3); font: 700 12.5px var(--font-display); letter-spacing: .03em; }
.pv-note svg { width: 15px; height: 15px; }
#resumeBtn { display: block; margin: 14px auto 0; min-width: 180px; padding: 12px 18px; font-size: 17px; }
#resumeBtn.hidden { display: none; }
@media (max-width: 560px) { .pause-veil { padding-top: 40px; } .pv-card { padding: 38px 14px 14px; } .pv-title { font-size: 28px; } .pv-why { font-size: 14px; margin: 6px 0 8px; } #resumeBtn { margin-top: 10px; padding: 10px 16px; } }
.tag-pill.out.quit { background: rgba(255, 255, 255, .14); color: #ffc2c2; }
.standings li.quit { opacity: .75; }
@media (prefers-reduced-motion: reduce) { .gmenu, .gmenu-card, .vote-banner, .pv-card, .gm-item, .vb-bar i { animation: none !important; transition: none !important; } }
@media (max-width: 480px) { .menu-btn { padding-left: 11px; padding-right: 11px; } .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .menu-btn svg { width: 18px; height: 18px; } }

/* ---------------------------------------------------------------- settle up (a bill you can't pay from cash, 2026-11-18) */
.settle { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255, 214, 120, .07); border: 1px solid var(--line); box-shadow: 0 0 0 1px rgba(242, 182, 50, .18) inset; width: 100%; box-sizing: border-box; }
.settle-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; }
.settle-head > b { font-family: var(--font-display); font-size: 18px; color: var(--gold2); }
.settle-sum { font-size: 13px; color: var(--ink2); } .settle-sum .neg { color: #ff8f8f; }
.settle-bills { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink2); }
.settle-loan { padding: 10px; border-radius: 12px; background: var(--glass2b); border: 1px solid rgba(255, 215, 106, .35); display: flex; flex-direction: column; gap: 6px; }
.settle-loan-t { display: flex; align-items: center; gap: 8px; font-weight: 700; } .settle-loan-t b { color: var(--gold2); }
.settle-bix { width: 30px; height: 30px; object-fit: contain; }
.settle-sec { display: flex; flex-direction: column; gap: 6px; }
.settle-sec-t { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold2); font-weight: 800; }
.settle-list { display: flex; flex-direction: column; gap: 4px; max-height: 210px; overflow-y: auto; }
.settle-item { display: grid; grid-template-columns: 22px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 7px 10px; border-radius: 10px; cursor: pointer;
  background: var(--inset); border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 14px; }
.settle-item:hover, .settle-item:focus-visible { border-color: rgba(255, 215, 106, .6); outline: none; }
.settle-item .si-check { grid-row: 1 / span 2; width: 18px; height: 18px; border-radius: 5px; border: 2px solid rgba(255, 215, 106, .6); box-sizing: border-box; }
.settle-item.on { background: rgba(242, 182, 50, .16); border-color: var(--gold); }
.settle-item.on .si-check { background: var(--trim); border-color: var(--gold2); }
.settle-item .si-name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; } .settle-item .si-val { font-weight: 800; color: #8fe3a5; }
.settle-item .si-sub { grid-column: 2 / span 2; font-size: 11px; color: var(--ink2); }
.settle-run { font-size: 13px; font-weight: 700; color: var(--ink2); } .settle-run.ok { color: #8fe3a5; }

/* ---------------------------------------------------------------- set completed celebration (2026-11-18) */
.celebrate { position: fixed; inset: 0; z-index: 60; pointer-events: none; display: flex; align-items: flex-start; justify-content: center; padding-top: 14vh; }
.cel-confetti { position: absolute; inset: 0; width: 100%; height: 100%; }
.cel-banner { pointer-events: auto; cursor: pointer; position: relative; display: flex; align-items: center; gap: 14px; max-width: min(560px, calc(100vw - 24px)); box-sizing: border-box;
  padding: 14px 16px 14px 18px; border-radius: 18px; background: var(--glass); color: var(--ink);
  border: 2px solid var(--set, var(--gold)); box-shadow: 0 0 0 1px rgba(255, 241, 184, .35) inset, 0 0 46px color-mix(in srgb, var(--set, #f2b632) 70%, transparent), var(--shadow);
  animation: celIn .55s cubic-bezier(.2, 1.4, .4, 1) both; }
.cel-banner::before { content: ''; position: absolute; inset: -2px; border-radius: 18px; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%) no-repeat; background-size: 220% 100%; animation: celSweep 1.2s .35s ease-out both; pointer-events: none; mix-blend-mode: screen; }
.cel-swatch { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--set, var(--gold)); box-shadow: 0 0 0 3px rgba(255, 241, 184, .8), 0 0 22px var(--set, #f2b632); }
.cel-text { display: flex; flex-direction: column; min-width: 0; }
.cel-kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold2); font-weight: 800; }
.cel-title { font-family: var(--font-display); font-size: clamp(20px, 4.6vw, 30px); line-height: 1.1; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 0 18px var(--set, #f2b632); overflow-wrap: anywhere; }
.cel-who { font-size: 14px; color: var(--ink2); font-weight: 700; }
.cel-skip { flex: none; margin-left: auto; align-self: flex-start; background: rgba(255, 255, 255, .08); color: var(--ink2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.celebrate.out .cel-banner { animation: celOut .25s ease-in both; } .celebrate.out .cel-confetti { opacity: 0; transition: opacity .25s; }
@keyframes celIn { from { opacity: 0; transform: translateY(-26px) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes celOut { to { opacity: 0; transform: translateY(-12px) scale(.96); } }
@keyframes celSweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.tile-hit.set-glow { border-radius: 50%; box-shadow: 0 0 0 3px var(--set, #f2b632), 0 0 26px 8px var(--set, #f2b632); background: color-mix(in srgb, var(--set, #f2b632) 28%, transparent); animation: setGlow .7s ease-in-out 3 alternate; z-index: 3; }
@keyframes setGlow { from { box-shadow: 0 0 0 2px var(--set, #f2b632), 0 0 10px 2px var(--set, #f2b632); } to { box-shadow: 0 0 0 4px #fff1b8, 0 0 34px 12px var(--set, #f2b632); } }
.board-viewport.cam-nudge { animation: camNudge .85s cubic-bezier(.2, .9, .3, 1); }
@keyframes camNudge { 0% { transform: none; } 30% { transform: scale(1.025) translateY(-4px); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cel-banner, .cel-banner::before, .tile-hit.set-glow, .board-viewport.cam-nudge { animation: none !important; } .celebrate.out .cel-banner { animation: none !important; opacity: 0; } }

/* ---------------------------------------------------------------- Court Wheel (Ironbrook #30): THE VERDICT WHEEL, brass, walnut and brick */
.modal-card.court { max-width: 440px; padding: 14px 18px 16px; overflow-x: hidden;
  background: radial-gradient(ellipse 80% 70% at 50% 44%, transparent 50%, rgba(8, 3, 0, .62) 100%),
    radial-gradient(120% 60% at 50% 0%, rgba(255, 196, 110, .2), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.22' stroke-width='2'%3E%3Cpath d='M0 1H64M0 17H64M16 1V17M48 17V32'/%3E%3C/g%3E%3Cg fill='%23fff' fill-opacity='.035'%3E%3Crect x='17' y='2' width='30' height='14'/%3E%3Crect x='1' y='18' width='46' height='13'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, #5a2e1a, #3a1c10 55%, #24110a) padding-box,
    var(--trim) border-box;
  border: 2px solid transparent; box-shadow: 0 24px 60px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 241, 184, .18), inset 0 0 70px rgba(0, 0, 0, .5); }
.cw-card { position: relative; }
/* the courthouse: a carved walnut pediment over the title, fluted columns either side of the wheel */
.cw-head { position: relative; z-index: 3; height: 90px; margin: 0 -4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 90' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='w' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%238a5130'/%3E%3Cstop offset='1' stop-color='%234a2614'/%3E%3C/linearGradient%3E%3ClinearGradient id='f' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%233e1f0f'/%3E%3Cstop offset='1' stop-color='%23200e06'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%238a5a12'/%3E%3Cstop offset='.5' stop-color='%23ffe08a'/%3E%3Cstop offset='1' stop-color='%238a5a12'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M26 45 L200 4 L374 45 Z' fill='url(%23w)' stroke='url(%23b)' stroke-width='2' vector-effect='non-scaling-stroke' stroke-linejoin='round'/%3E%3Cpath d='M64 41 L200 11 L336 41 Z' fill='none' stroke='%23ffd76a' stroke-opacity='.35' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3Crect x='10' y='45' width='380' height='35' fill='url(%23f)'/%3E%3Cpath d='M10 45.5H390M10 79.5H390' stroke='url(%23b)' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M14 49H386' stroke='%23ffd76a' stroke-opacity='.25' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M18 80v6M30 80v6M42 80v6M54 80v6M66 80v6M78 80v6M90 80v6M102 80v6M114 80v6M126 80v6M138 80v6M150 80v6M162 80v6M174 80v6M186 80v6M198 80v6M210 80v6M222 80v6M234 80v6M246 80v6M258 80v6M270 80v6M282 80v6M294 80v6M306 80v6M318 80v6M330 80v6M342 80v6M354 80v6M366 80v6M378 80v6' stroke='%236b3a1e' stroke-width='6' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
.cw-deck { position: absolute; left: 0; right: 0; top: 23px; font: 700 10.5px var(--font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--gold2); text-shadow: 0 1px 0 rgba(0, 0, 0, .6); }
.modal-card.court h2.cw-title { position: absolute; left: 0; right: 0; top: 45px; margin: 0; line-height: 35px; font-size: clamp(19px, 5.3vw, 25px); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
  background: linear-gradient(180deg, #fffbe6 0%, #ffe08a 42%, #e9a92e 62%, #fff1b8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 0 #1a0a02) drop-shadow(0 0 8px rgba(255, 200, 90, .35)); }
.cw-col { position: absolute; z-index: 0; top: 104px; height: calc(min(330px, 78vw) * 1.1 + 40px); width: 24px; opacity: .8; border-radius: 2px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .45), transparent 35%, transparent 65%, rgba(0, 0, 0, .5)), repeating-linear-gradient(90deg, #6b3a1e 0 2px, #b07848 2px 4px, #7a4426 4px 6px);
  box-shadow: 0 0 18px rgba(0, 0, 0, .5); }
.cw-col.l { left: -2px; } .cw-col.r { right: -2px; }
.cw-col::before, .cw-col::after { content: ''; position: absolute; left: -5px; right: -5px; height: 10px; border-radius: 2px; background: linear-gradient(180deg, #ffe08a, #b9831f 55%, #6b440c); box-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.cw-col::before { top: -9px; } .cw-col::after { bottom: -9px; }
/* the wheel */
.cw-stage { position: relative; width: min(330px, 78vw); aspect-ratio: 1; margin: calc(min(330px, 78vw) * .15) auto 0; }
.cw-aura { position: absolute; inset: -24%; z-index: 0; pointer-events: none; border-radius: 50%; background: radial-gradient(circle closest-side, rgba(255, 210, 130, .42), rgba(255, 170, 80, .14) 55%, transparent 100%); }
.cw-aura::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle closest-side, color-mix(in srgb, var(--win), transparent 35%), transparent 80%); opacity: 0; transition: opacity .5s .3s; }
.cw-card.won .cw-aura::after { opacity: .9; }
.cw-rays { position: absolute; inset: 0; border-radius: 50%; will-change: transform;
  background: repeating-conic-gradient(from 0deg, rgba(255, 226, 160, .2) 0deg 4deg, rgba(255, 226, 160, 0) 8deg 15deg);
  -webkit-mask: radial-gradient(circle closest-side, #000 35%, transparent 100%); mask: radial-gradient(circle closest-side, #000 35%, transparent 100%); animation: cwTurn 60s linear infinite; }
.cw-card.won .cw-rays { animation-duration: 20s; }
@keyframes cwTurn { to { transform: rotate(360deg); } }
.cw-shadow { position: absolute; left: 8%; right: 8%; bottom: -7%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .65), transparent); }
.cw-wheel { position: absolute; inset: 0; z-index: 1; }
.cw-svg { position: relative; width: 100%; height: 100%; display: block; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .6)); }
.cw-face, .cw-gloss, .cw-lift, .cw-bulbs, .cw-sweep { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cw-face { will-change: transform; transform-origin: 50% 50%; }
.cw-face > svg { width: 100%; height: 100%; display: block; }
.cw-hub { position: absolute; left: 35.9%; top: 35.9%; width: 28.2%; height: 28.2%; overflow: visible; pointer-events: none; }
/* marquee bulbs: a lit glass core with its bloom, opacity only (each its own layer) */
.cw-lit { position: absolute; left: 50%; top: 50%; width: 7.5%; height: 7.5%; border-radius: 50%; will-change: opacity;
  background: radial-gradient(circle, #fff 0 13%, #fff4c8 22%, rgba(255, 204, 96, .8) 34%, rgba(255, 166, 52, .3) 52%, rgba(255, 140, 40, 0) 72%);
  animation: cwIdle 1.6s ease-in-out infinite alternate; }
.cw-lit.odd { animation-delay: -.8s; }
@keyframes cwIdle { from { opacity: 1; } to { opacity: .4; } }
.cw-stage.chase .cw-lit { animation: cwChase .64s linear infinite; animation-delay: calc(var(--i) * 80ms - 3.2s); }
@keyframes cwChase { 0%, 16% { opacity: 1; } 34%, 100% { opacity: .1; } }
.cw-stage.alt .cw-lit { animation: cwAlt .36s step-end infinite; }
.cw-stage.alt .cw-lit.odd { animation-delay: -.18s; }
@keyframes cwAlt { 0% { opacity: 1; } 50% { opacity: .12; } }
.cw-card.won .cw-lit { animation: cwWinF 1.6s step-end both;
  background: radial-gradient(circle, #fff 0 13%, color-mix(in srgb, var(--win), #fff 55%) 22%, color-mix(in srgb, var(--win), transparent 15%) 34%, color-mix(in srgb, var(--win), transparent 70%) 52%, transparent 72%); }
@keyframes cwWinF { 0% { opacity: 1; } 10% { opacity: .1; } 20% { opacity: 1; } 30% { opacity: .1; } 40% { opacity: 1; } 50% { opacity: .1; } 60%, 100% { opacity: 1; } }
/* the travelling light on the brass rim */
.cw-sweep { border-radius: 50%; will-change: transform;
  background: conic-gradient(from 0deg, transparent 0deg 292deg, rgba(255, 250, 230, .8) 322deg, transparent 350deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 84.5%, #000 85.5%, #000 97.8%, transparent 98.6%); mask: radial-gradient(circle closest-side, transparent 84.5%, #000 85.5%, #000 97.8%, transparent 98.6%);
  animation: cwTurn 5s linear infinite; opacity: .75; }
.cw-stage.spinning .cw-sweep { animation-duration: 1.3s; opacity: 1; }
/* pointer */
.cw-ptr { position: absolute; left: 50%; top: -15.5%; width: 34%; transform: translateX(-50%); overflow: visible; z-index: 7; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .55)); }
.cw-tongue { transform-box: view-box; transform-origin: 60px 58px; transition: transform .09s cubic-bezier(.3, 1.6, .5, 1); }
.cw-gavel { transform-box: view-box; transform-origin: 106px 18px; }
.cw-stage.struck .cw-gavel { animation: cwGavel .62s cubic-bezier(.3, .8, .4, 1) both; }
@keyframes cwGavel { 0% { transform: rotate(0); } 38% { transform: rotate(27deg); } 54% { transform: rotate(-5deg); } 66% { transform: rotate(2deg); } 100% { transform: rotate(0); } }
.cw-stage.struck .cw-wheel { animation: cwThud .5s .3s ease-out both; }
@keyframes cwThud { 0% { transform: translateY(0) scale(1); } 25% { transform: translateY(3px) scale(.985); } 100% { transform: none; } }
.cw-engrave { font-family: var(--font-display); font-weight: 700; fill: #3e2003; letter-spacing: .04em; }
.cw-engrave-hi { font-family: var(--font-display); font-weight: 700; fill: rgba(255, 250, 225, .85); letter-spacing: .04em; }
/* the verdict: the face dims, the winning wedge lifts and glows, a flash and brass dust */
.cw-dim { fill: rgba(12, 5, 0, .5); animation: cwFade .4s .15s ease-out both; }
@keyframes cwFade { from { opacity: 0; } }
.cw-lifted { transform-box: view-box; transform-origin: 200px 200px; animation: cwLift .55s .2s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes cwLift { from { transform: scale(1); } to { transform: scale(1.065); } }
.cw-lglow { animation: cwGlowP .8s .5s ease-in-out infinite alternate both; }
@keyframes cwGlowP { from { opacity: .2; } to { opacity: .7; } }
.cw-fx { position: absolute; left: 50%; top: 24%; width: 0; height: 0; z-index: 6; pointer-events: none; }
.cw-flash { position: absolute; left: -120px; top: -120px; width: 240px; height: 240px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 240, .95), rgba(255, 224, 150, .5) 28%, rgba(255, 200, 100, 0) 66%); animation: cwFlash .7s .28s ease-out both; }
@keyframes cwFlash { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }
.cw-spark { position: absolute; left: 0; top: 0; width: calc(var(--s) * 4); height: var(--s); margin-top: calc(var(--s) / -2); border-radius: 99px; opacity: 0; transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(255, 190, 70, 0), #ffe7a0 55%, #fff); box-shadow: 0 0 6px 1px rgba(255, 214, 120, .85); animation: cwSpark 1s cubic-bezier(.12, .7, .3, 1) both; }
.cw-spark.dust { width: var(--s); border-radius: 50%; background: radial-gradient(circle, #fffbe6, #f2c255 55%, #b9831f); box-shadow: 0 0 5px rgba(255, 200, 90, .8); animation-duration: 1.4s; }
@keyframes cwSpark { 0% { opacity: 1; transform: rotate(var(--a)) translateX(6px) scale(1.3); } 65% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) scale(.4); } }
/* base, verdict, buttons */
.cw-base { position: relative; z-index: 2; width: min(250px, 62vw); margin: 4px auto 0; padding: 7px 0 6px; border-radius: 6px 6px 14px 14px; text-align: center;
  background: linear-gradient(180deg, #8a5130, #4e2814 60%, #2e170a); box-shadow: 0 6px 14px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 220, 180, .35); }
.cw-plaque { display: inline-block; padding: 2px 12px; border-radius: 5px; background: linear-gradient(180deg, #fff2bf, #e3b04a 50%, #a87420); color: #4a2604; font: 700 12px var(--font-display);
  letter-spacing: .1em; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(90, 54, 6, .7), 0 1px 0 rgba(255, 255, 255, .2); text-shadow: 0 1px 0 rgba(255, 248, 220, .7); }
.cw-case { margin-top: 4px; font: 700 10.5px var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 228, 180, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }
.cw-verdict { position: relative; z-index: 2; min-height: 98px; margin-top: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.cw-wait { color: var(--gold3); font-weight: 700; opacity: .85; letter-spacing: .04em; }
.cw-stage.spinning ~ .cw-verdict .cw-wait { animation: cwBreathe 1.2s ease-in-out infinite alternate; }
@keyframes cwBreathe { to { opacity: .45; } }
.cw-v-main { display: flex; align-items: center; gap: 12px; text-align: left; animation: cwDrop .5s .2s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes cwDrop { from { opacity: 0; transform: translateY(-16px) scale(.9); } to { opacity: 1; transform: none; } }
.cw-v-icon { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #2a1505;
  background: radial-gradient(circle at 38% 32%, #fff, var(--c) 55%, color-mix(in srgb, var(--c), #1a0d02 45%)); box-shadow: 0 0 0 3px #e9b23c, 0 0 0 5px #5a3606, 0 0 22px var(--c); }
.cw-v-icon svg { width: 30px; height: 30px; }
.cw-v-kick { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold2); font-weight: 800; }
.cw-v-title { display: block; font-family: var(--font-display); font-size: clamp(21px, 5.6vw, 27px); line-height: 1.1; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .4), 0 0 16px var(--win); }
.cw-v-sub { font-size: 13px; color: var(--ink2); font-weight: 700; }
.cw-bix { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(10, 14, 36, .6); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink); text-align: left; animation: cwDrop .45s .55s ease-out both; }
.cw-bix img { width: 28px; height: 28px; flex: none; }
.cw-btns { position: relative; z-index: 2; justify-content: center; margin-top: 10px; min-height: 40px; }
.cw-stage.still .cw-lit, .cw-stage.still .cw-gavel, .cw-stage.still .cw-wheel, .cw-stage.still .cw-rays, .cw-stage.still .cw-sweep, .cw-stage.still .cw-dim, .cw-stage.still .cw-lglow { animation: none !important; }
.cw-stage.still .cw-lifted { animation: none; transform: scale(1.05); }
.cw-stage.still .cw-sweep { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .cw-lit, .cw-gavel, .cw-wheel, .cw-rays, .cw-sweep, .cw-v-main, .cw-bix, .cw-lglow, .cw-dim, .cw-wait, .cw-card.won .cw-lit { animation: none !important; } .cw-lifted { animation: none; transform: scale(1.05); } .cw-tongue { transition: none; } }
@media (max-width: 400px) { .cw-col { width: 16px; } .cw-deck { font-size: 10px; letter-spacing: .2em; } }

/* ---------------------------------------------------------------- Teleport destination picker (2026-11-18)
   A glass panel docked over the side column (desktop) or a sheet under the board (phones): the board stays visible
   and the hovered / chosen spot lights up on it in the owner's colour, with a tag. */
.tp-pick { position: fixed; z-index: 3100; right: 16px; top: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px;
  border-radius: var(--r); background: var(--glass); box-shadow: var(--shadow), 0 0 0 1.5px rgba(120, 220, 255, .35), 0 0 40px rgba(90, 200, 255, .18); animation: panelIn .28s cubic-bezier(.2, .9, .3, 1); }
.tp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tp-head h2 { margin: 2px 0 0; font: 700 26px var(--font-display); color: var(--gold2); letter-spacing: .01em; }
.tp-kick { font: 800 11px var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: #8fe6ff; }
.tp-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; padding: 4px; border-radius: 14px; background: var(--inset); }
.tp-tab { appearance: none; border: 0; border-radius: 10px; padding: 9px 6px; font: 700 14px var(--font-display); color: var(--ink2); background: transparent; cursor: pointer; }
.tp-tab.on { color: #1b1404; background: linear-gradient(180deg, #ffe596, #e9b23c); box-shadow: 0 2px 0 #8a5a12, 0 0 12px rgba(255, 210, 90, .4); }
.tp-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-chip { appearance: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font: 700 12.5px Nunito, sans-serif; color: var(--ink2); background: rgba(255, 255, 255, .04); cursor: pointer; }
.tp-chip.on { color: var(--gold3); border-color: rgba(255, 214, 120, .7); background: rgba(255, 214, 120, .14); }
.tp-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 2px 4px 2px 0; overscroll-behavior: contain; }
.tp-row { appearance: none; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 7px 10px 7px 8px; text-align: left; cursor: pointer;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .07); background: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); color: var(--ink); font: 600 14px Nunito, sans-serif;
  box-shadow: inset 4px 0 0 var(--band); transition: background .12s, border-color .12s, transform .12s; }
.tp-row:hover, .tp-row:focus-visible { background: linear-gradient(90deg, rgba(120, 220, 255, .16), rgba(120, 220, 255, .04)); border-color: rgba(140, 230, 255, .5); outline: none; }
.tp-row.on { border-color: var(--gold2); background: linear-gradient(90deg, rgba(255, 214, 120, .24), rgba(255, 214, 120, .06)); box-shadow: inset 4px 0 0 var(--band), 0 0 0 1px var(--gold2), 0 0 16px rgba(255, 210, 90, .25); }
.tp-row.t-owned { background: linear-gradient(90deg, color-mix(in srgb, var(--oc) 22%, transparent), rgba(255, 255, 255, .02) 70%); }
.tp-row.t-owned.on { background: linear-gradient(90deg, color-mix(in srgb, var(--oc) 30%, transparent), rgba(255, 214, 120, .08)); }
.tp-num { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 12px var(--font-display); color: var(--ink2); background: var(--inset); border: 1.5px solid var(--band); }
.tp-main { display: flex; flex-direction: column; min-width: 0; }
.tp-main b { font: 700 15.5px var(--font-display); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-sub { font-size: 12.5px; color: var(--ink2); line-height: 1.25; }
/* a long sub (Nexus Start's entrance-fee line) ran over the next row: two lines at most, the rest ends in an ellipsis (QA 1127) */
.tp-main { min-width: 0; } .tp-sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.tp-row.mort .tp-sub { color: #ffb4a8; }
.tp-owner { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; font: 800 13px Nunito, sans-serif; color: #fff; max-width: 132px;
  background: color-mix(in srgb, var(--oc) 70%, #10162f); box-shadow: 0 0 0 2px var(--oc), 0 2px 6px rgba(0, 0, 0, .4); }
.tp-owner span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-owner .mini-piece { width: 26px; height: 26px; border-color: #fff; background: rgba(0, 0, 0, .25); }
.tp-owner.me { box-shadow: 0 0 0 2px var(--gold2), 0 2px 6px rgba(0, 0, 0, .4); }
.tp-pill { padding: 4px 10px; border-radius: 999px; font: 800 12px Nunito, sans-serif; white-space: nowrap; }
.tp-pill.sale { color: #0e2a14; background: linear-gradient(180deg, #b2f2bb, #51cf66); box-shadow: 0 1px 0 #2b8a3e; }
.tp-pill.special { color: #d0ebff; background: rgba(77, 171, 247, .18); border: 1px solid rgba(116, 192, 252, .45); }
.tp-pill.bank { color: #ffe3e3; background: rgba(201, 42, 42, .25); border: 1px solid rgba(255, 135, 135, .5); }
.tp-empty { padding: 18px; text-align: center; }
.tp-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.tp-sum { display: flex; flex-direction: column; font-size: 13px; color: var(--ink2); min-height: 38px; } .tp-sum b { font: 700 15px var(--font-display); color: var(--gold3); }
.tp-sum.hint { justify-content: center; }
.tp-btns { justify-content: stretch; gap: 8px; } .tp-btns .btn.gold { flex: 1 1 auto; }
.tile-hit.tp-hl { z-index: 6; box-shadow: 0 0 0 3px var(--hl, #ffd76a), 0 0 0 6px rgba(255, 255, 255, .55), 0 0 26px 10px color-mix(in srgb, var(--hl, #ffd76a) 70%, transparent); background: color-mix(in srgb, var(--hl, #ffd76a) 22%, transparent); animation: tpPulse 1.1s ease-in-out infinite alternate; }
@keyframes tpPulse { to { box-shadow: 0 0 0 3px var(--hl, #ffd76a), 0 0 0 9px rgba(255, 255, 255, .25), 0 0 34px 14px color-mix(in srgb, var(--hl, #ffd76a) 80%, transparent); } }
.tp-tag { position: absolute; z-index: 30; transform: translate(-50%, calc(-100% - 8px)); display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 999px; pointer-events: none; white-space: nowrap;
  font: 700 12.5px Nunito, sans-serif; color: #fff; background: rgba(12, 16, 40, .9); box-shadow: 0 0 0 2px var(--oc), 0 6px 16px rgba(0, 0, 0, .5); }
.tp-tag b { font: 700 13px var(--font-display); color: var(--gold3); } .tp-tag .mini-piece { width: 22px; height: 22px; }
.tp-tag::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%) rotate(45deg); width: 10px; height: 10px; background: rgba(12, 16, 40, .9); box-shadow: 2px 2px 0 0 var(--oc); }
@media (max-width: 700px) {
  .tp-pick { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 56vh; height: 56dvh; border-radius: 22px 22px 0 0; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); animation-name: invsheet; }
  .tp-head h2 { font-size: 22px; } .tp-row { min-height: 56px; } .tp-main b { font-size: 16px; } .tp-sub { font-size: 13px; }
  .tp-owner { max-width: 120px; }
  body.tp-picking .side-col { padding-bottom: 58vh; } body.tp-picking .turn-card { display: none; }
}

/* ---------------------------------------------------------------- Teleport cinematic (2026-11-18) */
.tp-cine { position: absolute; inset: 0; z-index: 40; overflow: hidden; cursor: pointer; transition: opacity .25s; background: radial-gradient(ellipse at center, transparent 45%, rgba(4, 10, 30, .55) 100%); }
.tp-cine.out { opacity: 0; pointer-events: none; }
.tp-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tp-bars::before, .tp-bars::after { content: ''; position: absolute; left: 0; right: 0; height: 8%; background: #03060f; z-index: 2; transition: transform .5s cubic-bezier(.2, .9, .3, 1); }
.tp-bars::before { top: 0; transform: translateY(-100%); animation: tpBarT .5s .05s cubic-bezier(.2, .9, .3, 1) forwards; } .tp-bars::after { bottom: 0; transform: translateY(100%); animation: tpBarB .5s .05s cubic-bezier(.2, .9, .3, 1) forwards; }
@keyframes tpBarT { to { transform: none; } } @keyframes tpBarB { to { transform: none; } }
.tp-cap { position: absolute; z-index: 3; left: 3%; top: 10%; display: flex; flex-direction: column; padding: 8px 14px; border-radius: 12px; background: rgba(8, 14, 38, .72); box-shadow: 0 0 0 1px rgba(140, 230, 255, .45), 0 0 24px rgba(90, 200, 255, .25);
  animation: tpCapIn .5s .1s both cubic-bezier(.2, .9, .3, 1); }
@keyframes tpCapIn { from { opacity: 0; transform: translateX(-16px); } }
.tp-cap-kick { font: 800 10.5px var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: #8fe6ff; }
.tp-cap-title { font: 700 clamp(17px, 2.4vw, 26px) var(--font-display); color: var(--gold2); line-height: 1.1; } .tp-cap-sub { font: 700 12.5px Nunito, sans-serif; color: var(--ink); }
.tp-dest { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.8); opacity: 0; display: flex; flex-direction: column; align-items: center; text-align: center; pointer-events: none; padding: 18px 48px; background: radial-gradient(closest-side, rgba(4, 10, 30, .7), rgba(4, 10, 30, 0));
  text-shadow: 0 0 18px rgba(90, 210, 255, .9), 0 3px 0 rgba(0, 0, 0, .5); }
.tp-dest span { font: 800 clamp(12px, 1.6vw, 16px) var(--font-display); letter-spacing: .3em; text-transform: uppercase; color: #a5ecff; }
.tp-dest b { font: 700 clamp(26px, 5vw, 54px) var(--font-display); color: #fff; }
.tp-cine.ph-travel .tp-dest { animation: tpDest .85s cubic-bezier(.2, .9, .3, 1) forwards; }
@keyframes tpDest { 0% { opacity: 0; transform: translate(-30%, -50%) scale(.9); } 30%, 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-70%, -50%) scale(1.06); } }
.tp-flash { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: radial-gradient(circle at center, #fff, rgba(190, 245, 255, .7) 40%, rgba(120, 220, 255, 0) 75%); mix-blend-mode: screen; }
.tp-cine.ph-depart .tp-flash { animation: tpFlash .55s .12s ease-out; } .tp-cine.ph-arrive .tp-flash { animation: tpFlash .5s ease-out; }
@keyframes tpFlash { 0% { opacity: 0; } 18% { opacity: .9; } 100% { opacity: 0; } }
.tp-bix { position: absolute; z-index: 3; left: 50%; bottom: 11%; transform: translate(-50%, 12px); opacity: 0; display: flex; align-items: center; gap: 8px; max-width: 86%; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(10, 16, 44, .9); box-shadow: 0 0 0 1.5px rgba(255, 214, 120, .6), 0 8px 20px rgba(0, 0, 0, .5); font: 700 14px Nunito, sans-serif; color: #fff; pointer-events: none; }
.tp-bix img { width: 34px; height: 34px; object-fit: contain; }
.tp-cine.ph-arrive .tp-bix { animation: tpBix .4s .35s cubic-bezier(.2, .9, .3, 1.2) forwards; }
@keyframes tpBix { to { opacity: 1; transform: translate(-50%, 0); } }
.tp-skip { position: absolute; z-index: 4; right: 2.5%; bottom: 10%; appearance: none; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: 7px 16px; font: 800 13px Nunito, sans-serif; color: #fff; background: rgba(8, 12, 30, .65); cursor: pointer; }
.tp-skip:hover { background: rgba(255, 255, 255, .16); }
.board-viewport.tp-shake { animation: tpShake .42s linear; } @keyframes tpShake { 20% { transform: translate(3px, -2px); } 40% { transform: translate(-3px, 1px); } 60% { transform: translate(2px, 2px); } 80% { transform: translate(-1px, -1px); } }
.token.tp-charging .disc img { animation: tpCharge 2s ease-in forwards; }
@keyframes tpCharge { from { filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .5)); } to { filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 16px #6ef) brightness(1.9); } }
.token.tp-charging { animation: tpJitter .12s linear infinite; animation-delay: 1.2s; }
@keyframes tpJitter { 50% { transform: translate(-50%, -91%); } }
.token.tp-out { animation: tpOut .55s cubic-bezier(.5, 0, .9, .4) forwards !important; }
@keyframes tpOut { 0% { transform: translate(-50%, -88%); opacity: 1; filter: brightness(2); } 40% { transform: translate(-50%, -105%) scale(.8, 1.35); filter: brightness(3.5); } 100% { transform: translate(-50%, -170%) scale(.12, 2.8); opacity: 0; filter: brightness(6); } }
.token.tp-hidden { opacity: 0 !important; }
.token.tp-in { animation: tpIn .75s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes tpIn { 0% { transform: translate(-50%, -190%) scale(.15, 2.6); opacity: 0; filter: brightness(6); } 40% { opacity: 1; transform: translate(-50%, -80%) scale(1.25, .78); filter: brightness(2.2); } 70% { transform: translate(-50%, -93%) scale(.95, 1.06); } 100% { transform: translate(-50%, -88%); filter: none; } }
.tp-cine.still { background: rgba(4, 10, 30, .45); } .tp-cine.still .tp-bars::before, .tp-cine.still .tp-bars::after { animation: none; transform: none; }
.tp-cine.still .tp-dest { opacity: 1; transform: translate(-50%, -50%); animation: none; } .tp-cine.still .tp-bix { opacity: 1; transform: translate(-50%, 0); animation: none; }
@media (prefers-reduced-motion: reduce) { .tp-pick, .tile-hit.tp-hl, .tp-cap, .tp-dest, .tp-flash, .tp-bix, .token.tp-in, .token.tp-out, .token.tp-charging, .token.tp-charging .disc img, .board-viewport.tp-shake { animation: none !important; } }

/* ---------------------------------------------------------------- transit riders (2026-11-18): cars on their path */
.rider-car { position: absolute; overflow: hidden; pointer-events: none; will-change: transform, opacity; }
#motion .rider-car img { position: absolute; top: 0; height: 100%; max-width: none; }
.rider-car .axle { position: absolute; width: 0; height: 0; }

/* ---------------------------------------------------------------- on-tile buildings + build moment (tct-build-fx-1125) */
#buildLayer { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; z-index: 1; }
/* under the info plates (#plateLayer, z 0 but later in the DOM) and the tokens: a building never covers a name, a price or a piece */
#bldLayer { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; z-index: 0; isolation: isolate; --rim: 4px; --pal: saturate(1); }
/* houses-pop-1202 (Anton 2026-12-02, picked A+B+C): owner-colour rim (--ownr: the piece colour, dark ones lifted so they read,
   app.js rimCol) + owner-colour light pool on the lot + a richer palette. Static (no animation), so each building rasterises once.
   Rim widths are art px (the layer is scaled to the board), sized per island so the edge reads ~1 px at the whole-board view on a
   phone. Goldspire's lift is gentler so the Victorian cream stays as painted (b* +3, not +8). Nexus glass keeps its own glow and
   a single-shadow rim (lighter than before: frame rate). Mortgaged buildings stay grey with no pool. */
#board[data-board="ironbrook"] #bldLayer { --rim: 4px; --pal: saturate(1.3) contrast(1.07) brightness(1.05); }
#board[data-board="goldspire"] #bldLayer { --rim: 5.5px; --pal: saturate(1.08) contrast(1.06) brightness(1.03); }
#board[data-board="nexus"] #bldLayer { --rim: 3.4px; }
.bld { position: absolute; pointer-events: none; }
.bld .bld-img, .bld .bfx-old { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform-origin: 50% 95%;
  filter: var(--pal) drop-shadow(0 0 calc(var(--rim) * .3) var(--ownr, #f2b632)) drop-shadow(0 0 calc(var(--rim) * .3) var(--ownr, #f2b632)) drop-shadow(0 0 calc(var(--rim) * .3) var(--ownr, #f2b632)); }
.bld .bld-pool { position: absolute; left: 4%; width: 92%; height: 18%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ownr, #f2b632) 62%, transparent), color-mix(in srgb, var(--ownr, #f2b632) 22%, transparent) 62%, transparent); }
.bld.bld-mortgaged .bld-pool, .bld.bld-building .bld-pool { display: none; }
.bld.bld-mortgaged .bld-img { filter: grayscale(.85) brightness(.8); }
.lot[data-state="built"] { visibility: hidden; }   /* the building stands on the tile itself; the old lot sprite is not drawn under it */
.bld.bld-building { z-index: 99999 !important; }
/* Nexus glowing glass (nexushouse-1128): pre-rendered bloom + light pool behind (opacity pulse), shimmer masked to the sprite
   (transform sweep), owner colour kept as the crisp outline on the building itself. Compositor-only animations. */
.bld .bld-glow { position: absolute; pointer-events: none; transition: opacity .45s ease-out; }
.bld .bld-glow img { display: block; width: 100%; height: 100%; opacity: .78; animation: nxGlassPulse 3.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes nxGlassPulse { 0%, 100% { opacity: .62; } 50% { opacity: 1; } }
.bld[data-skin] .bld-img { filter: drop-shadow(0 0 calc(var(--rim) * .45) var(--ownr, #f2b632)); }
.bld .bld-shim { position: absolute; inset: 0; overflow: hidden; pointer-events: none; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; transition: opacity .45s; }
.bld .bld-shim { display: none; }
.bld.bld-shine .bld-shim { display: block; }   /* one building at a time (app.js S.nexShine), so one masked layer animates at most */
.bld .bld-shim::before { content: ''; position: absolute; top: -10%; bottom: -10%; left: 0; width: 38%; transform: translateX(-130%) skewX(-14deg);
  background: linear-gradient(90deg, transparent, rgba(225, 252, 255, .18) 30%, rgba(255, 255, 255, .62) 50%, rgba(225, 252, 255, .18) 70%, transparent); }
.bld.bld-shine .bld-shim::before { animation: nxGlassShim 1.6s cubic-bezier(.45, .05, .35, 1) 1 both; }
@keyframes nxGlassShim { 0% { transform: translateX(-130%) skewX(-14deg); } 100% { transform: translateX(300%) skewX(-14deg); } }
.bld.bld-building .bld-glow, .bld.bld-building .bld-shim { opacity: 0; }
.bld.bld-mortgaged .bld-glow, .bld.bld-mortgaged .bld-shim { display: none; }
@media (prefers-reduced-motion: reduce) { .bld .bld-glow img { animation: none; opacity: .9; } .bld .bld-shim { display: none; } }
.bfx-scaf { position: absolute; transform-origin: 50% 100%; pointer-events: none; }
.bfx-scaf svg { width: 100%; height: 100%; overflow: visible; display: block; }
.bfx-scaf line { vector-effect: non-scaling-stroke; stroke-linecap: round; }
.bfx-ironbrook line.p { stroke: #8d9196; stroke-width: 1.6px; } .bfx-ironbrook line.d { stroke: #b07a3c; stroke-width: 2.2px; } .bfx-ironbrook line.x { stroke: #6c7076; stroke-width: 1px; opacity: .8; }
.bfx-goldspire line.p { stroke: #fbf6ea; stroke-width: 1.6px; } .bfx-goldspire line.d { stroke: #e2b84a; stroke-width: 2.2px; } .bfx-goldspire line.x { stroke: #d8cfb8; stroke-width: 1px; opacity: .8; }
.bfx-nexus line { stroke: #5ff3ff; stroke-width: 1.3px; filter: drop-shadow(0 0 2px #22d3ee); } .bfx-nexus line.x { stroke: #e879f9; opacity: .55; }
.bfx-nexus.bfx-scaf { background: linear-gradient(180deg, rgba(34, 211, 238, .12), rgba(34, 211, 238, .02)); }
.bfx-scan { position: absolute; height: 3%; min-height: 1.5px; transform: translateY(-50%); border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #a5f3fc 18%, #ffffff 50%, #a5f3fc 82%, transparent); box-shadow: 0 0 6px 2px rgba(34, 211, 238, .8); }
.bfx-crane { position: absolute; width: auto; transform-origin: 50% 100%; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.bfx-crane.bfx-goldspire { filter: sepia(.35) saturate(1.3) brightness(1.08) drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.bfx-dust { position: absolute; width: 18%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(222, 205, 180, .95) 0 30%, rgba(196, 178, 150, .55) 55%, transparent 72%); }
.bfx-dust.bfx-d-goldspire { background: radial-gradient(circle, rgba(255, 246, 222, .95) 0 30%, rgba(240, 222, 180, .5) 55%, transparent 72%); }
.bfx-dust.bfx-d-nexus { background: radial-gradient(circle, rgba(165, 243, 252, .9) 0 25%, rgba(34, 211, 238, .4) 55%, transparent 72%); }
.bfx-sweep { position: absolute; inset: 0; pointer-events: none; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .85) 50%, transparent 62%) no-repeat; background-size: 60% 100%; }
.bfx-glow { position: absolute; aspect-ratio: 3.2; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); z-index: -1;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--own, #f2b632) 85%, #fff) 0 25%, color-mix(in srgb, var(--own, #f2b632) 55%, transparent) 50%, transparent 72%); }
@media (prefers-reduced-motion: reduce) { .bfx-scaf, .bfx-crane, .bfx-dust, .bfx-sweep, .bfx-scan, .bfx-glow { display: none !important; } }

/* ---------------------------------------------------------------- chat tab + Bix Moments panel (Anton 2026-11-20) */
.ptab { position: relative; }
.ptab-badge { position: absolute; top: 1px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: #e03131; color: #fff; font: 800 10px/16px Nunito, sans-serif; box-shadow: 0 0 0 2px rgba(12, 18, 48, .9), 0 0 10px rgba(224, 49, 49, .7); }
.pbody .chat-log { height: 250px; } .pbody .chat-form { margin-top: 2px; } .pbody .chat-form input[disabled] { opacity: .55; }
.moments-panel { display: flex; flex-direction: column; }
.mom-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .mom-head h3 { margin: 0; }
.mom-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 214, 120, .6), 0 0 12px rgba(255, 200, 80, .3); background: #26357e; }
.mom-tools { align-items: center; margin-bottom: 4px; }
.mom-list { max-height: 260px; overflow-y: auto; padding: 2px 4px 6px 2px; border-radius: 14px; }
.mom-list .moment:first-child { margin-top: 2px; }

/* ---------------------------------------------------------------- celebrations, bigger and longer (Anton 2026-11-20) */
.celebrate { padding-top: clamp(70px, 15vh, 160px); z-index: 70; }
.cel-rays { position: absolute; left: 50%; top: clamp(70px, 15vh, 160px); width: min(150vmin, 1100px); aspect-ratio: 1; transform: translate(-50%, -22%); pointer-events: none; opacity: .0;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--set, #f2b632) 55%, #fff1b8) 0 7deg, transparent 7deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 66%); mask-image: radial-gradient(circle, #000 0, transparent 66%); animation: celRays 5.6s linear both; }
@keyframes celRays { 0% { opacity: 0; transform: translate(-50%, -22%) rotate(0) scale(.5); } 8% { opacity: .55; } 80% { opacity: .4; } 100% { opacity: 0; transform: translate(-50%, -22%) rotate(50deg) scale(1.1); } }
.cel-banner { max-width: min(780px, calc(100vw - 20px)); width: max-content; padding: clamp(16px, 3.2vw, 26px) clamp(18px, 3.4vw, 30px); gap: clamp(12px, 2.6vw, 22px); border-radius: 26px; border-width: 3px;
  box-shadow: 0 0 0 2px rgba(255, 241, 184, .5) inset, 0 0 90px 10px color-mix(in srgb, var(--set, #f2b632) 75%, transparent), 0 18px 50px rgba(0, 0, 0, .6); animation: celIn .7s cubic-bezier(.2, 1.5, .4, 1) both, celBeat 1.4s .8s ease-in-out 3; }
.cel-banner::before { border-radius: 26px; animation-duration: 1.6s; animation-iteration-count: 2; }
.cel-swatch { width: clamp(56px, 13vw, 92px); height: clamp(56px, 13vw, 92px); border-radius: 22px; display: grid; place-items: center; color: #fff8d6; overflow: hidden;
  box-shadow: 0 0 0 4px rgba(255, 241, 184, .85), 0 0 34px var(--set, #f2b632); } .cel-swatch svg { width: 62%; height: 62%; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35)); } .cel-swatch img { width: 100%; height: 100%; object-fit: contain; }
.cel-kicker { font-size: clamp(12px, 2.6vw, 15px); } .cel-title { font-size: clamp(26px, 7.2vw, 54px); line-height: 1.04; }
.cel-who { font-size: clamp(14px, 3.2vw, 19px); }
.cel-skip { font-size: 13px; padding: 6px 13px; background: rgba(255, 255, 255, .12); }
.cel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cel-act-main { font-size: 14px; padding: 8px 16px; border-radius: 12px; }
.cel-act-sec { font-size: 13px; padding: 7px 12px; border-radius: 12px; }
.cel-gold .cel-swatch {
  width: clamp(94px, 21vw, 138px); height: clamp(94px, 21vw, 138px); padding: 6px; box-sizing: border-box;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 74%, rgba(242, 182, 50, .38) 0%, rgba(24, 30, 68, .94) 56%, rgba(10, 14, 34, .98) 100%);
  box-shadow: 0 0 0 3px #ffd76a, 0 0 28px rgba(242, 182, 50, .65), inset 0 4px 14px rgba(0, 0, 0, .55);
}
.cel-gold .cel-swatch img { width: 100%; height: 100%; object-fit: contain; opacity: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .65)); }
.cel-gold .cel-banner::before { display: none; }
/* Thanksgiving Week consolation toast & player cosmetic pills */
.turkey-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 65;
  display: flex; align-items: center; gap: 12px; max-width: min(440px, calc(100vw - 24px));
  padding: 12px 14px; border-radius: 16px; cursor: pointer;
  background: linear-gradient(180deg, rgba(44, 24, 12, .96), rgba(24, 14, 8, .96));
  border: 2px solid #f2b632; color: #fff4d6;
  box-shadow: 0 0 0 1px rgba(255, 232, 168, .35) inset, 0 10px 28px rgba(0, 0, 0, .55), 0 0 28px rgba(242, 182, 50, .35);
  animation: ttIn .35s cubic-bezier(.2, 1.3, .4, 1) both;
}
.turkey-toast.out { animation: ttOut .22s ease-in both; }
@keyframes ttIn { from { opacity: 0; transform: translate(-50%, 16px) scale(.94); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes ttOut { to { opacity: 0; transform: translate(-50%, 10px) scale(.96); } }
.tt-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(180deg, #e07a24, #9e420e); color: #ffe7a0; box-shadow: 0 0 0 2px rgba(255, 215, 106, .55); }
.tt-icon svg { width: 22px; height: 22px; }
.tt-body { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.tt-kicker { font: 800 10px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: #ffd466; }
.tt-title { font: 800 16px var(--font-display); color: #fff; line-height: 1.15; }
.tt-sub { font-size: 12px; color: #f1d9b4; line-height: 1.3; }
.tt-x { flex: none; background: rgba(255, 255, 255, .1); border: 0; color: #ffe5a8; width: 26px; height: 26px; border-radius: 99px; font-size: 16px; cursor: pointer; }
.tag-pill.harvest { background: linear-gradient(180deg, rgba(217, 119, 43, .36), rgba(148, 66, 16, .48)); color: #ffe5a8; border: 1px solid rgba(255, 198, 96, .45); }
.tag-pill.gold-turkey { background: linear-gradient(180deg, #ffe27a, #d89214); color: #3a2002; font-weight: 800; border: 1px solid #fff3c2; }
.players li > .gold-swap-row { order: 6; flex-basis: 100%; padding-left: 42px; margin-top: 2px; }
.gold-swap-btn { padding: 4px 11px; font-size: 11px; border-radius: 99px; background: linear-gradient(180deg, #ffe27a, #d89214); color: #2b1600; border: 1px solid #fff3c2; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .turkey-toast, .turkey-toast.out { animation: none !important; } }

/* ---------------------------------------------------------------- Autumn board dressing (Thanksgiving Week only) */
body.ev-thanksgiving .board-img,
body.ev-thanksgiving #motion { filter: sepia(.11) saturate(1.13) contrast(1.02) brightness(1.01); }
.autumn-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; display: none; }
body.ev-thanksgiving .autumn-layer { display: block; }
.autumn-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, rgba(255, 198, 96, .06) 34%, rgba(164, 68, 16, .16) 100%); mix-blend-mode: soft-light; }
.autumn-prop { position: absolute; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 3px rgba(38, 18, 5, .36)); opacity: .94; }
.autumn-prop svg { width: 100%; height: auto; display: block; }
.autumn-leaves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .autumn-leaves { display: none; } }
/* 3D seasonal props (Anton 14:57 ET 2026-11-27): toy-style renders with a baked dark outline, a soft contact shadow on the board and
   the pieces' squash-and-stretch hop (pieceHop shape, gentler and slower, % of the prop so it scales with zoom), staggered by --d.
   Transform-only animation on a will-change layer: composited, no repaint. Static under reduced motion. */
.autumn-prop.ap-3d { filter: none; opacity: 1; transform: translate(-50%, -62%); }
.ap-3d .ap-img { position: relative; z-index: 1; display: block; width: 100%; height: auto; transform-origin: 50% 94%; will-change: transform;
  animation: tgPropHop 2.8s ease-in-out var(--d, 0s) infinite; }
.ap-3d .ap-shadow { position: absolute; left: 8%; right: 8%; bottom: -5%; height: 22%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(28, 14, 4, .62), rgba(28, 14, 4, .3) 60%, rgba(28, 14, 4, 0) 100%); }
@keyframes tgPropHop {
  0%, 46%, 100% { transform: translateY(0) scale(1, 1); }
  54% { transform: translateY(0) scale(1.04, .95); }
  68% { transform: translateY(-7%) scale(.98, 1.03); }
  82% { transform: translateY(0) scale(1.05, .94); }
  91% { transform: translateY(-1%) scale(.99, 1.01); }
}
@media (prefers-reduced-motion: reduce) { .ap-3d .ap-img { animation: none; will-change: auto; } }

/* ---------------------------------------------------------------- Thanksgiving Week badges (lobby & HUD) */
.ev-badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 8px; padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(166, 68, 16, .88), rgba(102, 38, 10, .92));
  border: 1.5px solid rgba(255, 206, 104, .7);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .42), 0 0 0 1px rgba(255, 236, 180, .18) inset;
  color: #fff2cc; font: 700 12px var(--font-display); letter-spacing: .04em; line-height: 1.2;
}
.ev-badge b { color: #ffd978; font-weight: 800; }
.ev-badge span { color: #ffecc2; font-family: var(--font-body); font-weight: 700; font-size: 11px; opacity: .92; }
.ev-badge span::before { content: '· '; opacity: .7; }
.ev-badge .ev-leaf { width: 14px; height: 14px; color: #ffad3b; flex: none; }
.ev-badge.ev-hud { margin: 0 0 8px; width: 100%; box-sizing: border-box; padding: 5px 12px; }
.ts-title .ev-badge { display: flex; width: fit-content; margin: 8px auto 0; }
.ev-badge.hidden { display: none !important; }
/* QA 1127 #9: on a phone the home badge squeezed 'Thanksgiving Special' and '16 days left' into two cramped lines each. Each part keeps
   its words on one line; if the row is ever too narrow, the day count drops whole onto a second line. (Shape unchanged: restyle later.) */
.ev-badge { max-width: 100%; box-sizing: border-box; flex-wrap: wrap; row-gap: 0; }
.ev-badge b, .ev-badge span { white-space: nowrap; }

/* ---------------------------------------------------------------- Dice tumble roll stage */
#dice { z-index: 44; }
.dice-stage { position: absolute; inset: 0; pointer-events: none; z-index: 60; overflow: visible; }
.dice-stage .tumble-die {
  position: absolute; left: 0; top: 0; box-sizing: border-box; will-change: transform;
  background: linear-gradient(145deg, #ffffff 0%, #f6efe0 72%, #e0d3ba 100%);
  border: 1.5px solid rgba(110, 82, 42, .35);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, .95), inset 0 -3px 5px rgba(120, 90, 48, .25), 0 4px 10px rgba(0, 0, 0, .38);
}
.dice-stage .tumble-die.dbl-glow {
  border-color: #f2b632;
  box-shadow: 0 0 0 3px #ffd76a, 0 0 22px 6px rgba(255, 210, 72, .85), inset 0 2px 3px rgba(255, 255, 255, .95);
}
.dice-stage .die-sh {
  position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform, opacity;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
}
.dice-stage .dice-clack {
  position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; will-change: transform, opacity;
  border: 2.5px solid rgba(255, 238, 168, .92);
  box-shadow: 0 0 14px rgba(255, 200, 70, .75), inset 0 0 10px rgba(255, 245, 200, .65);
  opacity: 0;
}
.dice-stage .dice-burst {
  position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; will-change: transform, opacity;
  border: 3px solid #ffd76a;
  box-shadow: 0 0 24px 4px rgba(255, 210, 72, .8), inset 0 0 16px rgba(255, 244, 184, .55);
  opacity: 0;
}
#dice.dbl-pop .die { box-shadow: 0 0 0 3px #ffd76a, 0 0 16px 4px rgba(255, 210, 72, .85); }
@keyframes celBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@media (max-width: 520px) { .cel-banner { flex-wrap: wrap; justify-content: center; text-align: center; } .cel-text { align-items: center; } .cel-skip { margin: 0 auto; align-self: center; } }
.celebrate.still .cel-banner, .celebrate.still .cel-rays { animation: none; }
@media (prefers-reduced-motion: reduce) { .cel-banner, .cel-rays { animation: none !important; } .cel-rays { display: none; } }

/* ---------------------------------------------------------------- Ironbrook buses (Anton 2026-11-20) */
#busCanvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.bus-rider { position: absolute; z-index: 30; width: var(--tok, 32px); height: var(--tok, 32px); transform: translate(-50%, -88%); pointer-events: none; animation: riderBob .5s ease-in-out infinite alternate; }
.bus-rider .disc { width: 100%; height: 100%; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 0 0 3px var(--gold, #f2b632), 0 0 16px 4px rgba(255, 210, 80, .85), 0 3px 8px rgba(0, 0, 0, .5); display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--pc, #e03131); }
.bus-rider .disc img { width: 100%; height: 100%; object-fit: contain; }
@keyframes riderBob { from { margin-top: 0; } to { margin-top: -2px; } }
.token.riding { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .bus-rider { animation: none; } }

/* ---------------------------------------------------------------- rocket countdown + Nexus canvas (Anton 2026-11-20) */
#nexCanvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }
.rk-count { position: fixed; left: 50%; top: 22vh; transform: translateX(-50%); z-index: 80; pointer-events: none; text-align: center; }
.rk-kick { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--glass, rgba(12, 18, 48, .9)); border: 1.5px solid var(--gold, #f2b632); color: var(--gold2, #ffd76a); font: 800 clamp(11px, 2.6vw, 14px) var(--font-display); letter-spacing: .18em; text-transform: uppercase; }
.rk-num { display: block; font: 900 clamp(110px, 30vw, 240px) / 1 var(--font-display); color: #fff6c9; -webkit-text-stroke: 3px #a35a00; paint-order: stroke fill;
  text-shadow: 0 6px 0 #7a4300, 0 0 36px #ffb02e, 0 0 90px rgba(255, 140, 20, .8); animation: rkPop 1s ease-out both; }
.rk-num.go { font-size: clamp(58px, 15vw, 130px); color: #ffe27a; text-shadow: 0 5px 0 #7a4300, 0 0 40px #ff8a1e, 0 0 110px rgba(255, 80, 20, .9); animation: rkGo 1.3s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes rkPop { 0% { transform: scale(2.2); opacity: 0; } 18% { transform: scale(1); opacity: 1; } 80% { opacity: 1; } 100% { transform: scale(.82); opacity: .35; } }
@keyframes rkGo { 0% { transform: scale(.3); opacity: 0; } 35% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rk-num, .rk-num.go { animation: none !important; } }
/* Nexus rocket launch show (Anton 2026-11-25): over the board only, like the Teleport; tap anywhere or Skip returns you */
.rk-cine { position: absolute; inset: 0; z-index: 40; overflow: hidden; cursor: pointer; transition: opacity .25s; }
.rk-cine.out { opacity: 0; pointer-events: none; }
#motion img.rk-gone { opacity: 0 !important; transition: none !important; }
#motion img.rk-lift { transition: none; animation: rkLift 3.8s cubic-bezier(.55, 0, .9, .45) forwards; }
@keyframes rkLift { 0% { transform: translateY(63.7%); } 10% { transform: translateY(61%); } 100% { transform: translateY(-340%); } }
body.rk-on .explains, body.rk-on #dice, body.rk-on #diceStage { opacity: 0; transition: opacity .2s; }   /* Bix's explain cards wait under the launch, then come back */
.rk-cine .rk-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rk-cine .rk-cap { top: 3%; left: 2.5%; box-shadow: 0 0 0 1px rgba(255, 196, 90, .55), 0 0 24px rgba(255, 150, 40, .3); animation: rkCapIn .35s ease-out both; }
.rk-cine .rk-cap .tp-cap-kick { color: #ffd27a; }
.rk-cine.still { background: rgba(6, 10, 28, .42); animation: rkFade .3s ease-out both; }
@keyframes rkCapIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rkFade { from { opacity: 0; } to { opacity: 1; } }

/* review fixes 2026-11-20 14:40: the buses live under the plates (see buildView); the celebration banner is opaque enough to read on any board and fixed to the viewport */
.cel-banner { background: linear-gradient(180deg, rgba(30, 40, 92, .96), rgba(12, 18, 48, .97)); }
.celebrate { position: fixed; inset: 0; }

/* in-game turn timer chooser (host) */
.gm-timer { padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(255, 214, 120, .25); }
.gm-timer.hidden { display: none; }
.gm-timer-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; } .gm-timer-head small { opacity: .8; }
.gm-timer-opts { display: flex; gap: 6px; flex-wrap: wrap; } .gm-timer-opts .btn { flex: 1 1 52px; min-height: 40px; }

/* "Your turn!" caption for a player exploring the board: a pill, fixed to the screen over the board's top edge; it never covers the roll / End Turn buttons */
.your-turn { position: fixed; left: 50%; translate: -50% 0; z-index: 2500; display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border: 2px solid #fff3b0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--yt, #ffd76a) 70%, #fff), var(--yt, #ffd76a)); color: #2a1a00; font: 700 20px Fredoka, Nunito, sans-serif; box-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 0 22px var(--yt, #ffd76a); animation: ytPulse 1.3s ease-in-out infinite; max-width: 92vw; }
.your-turn small { font: 700 12px Nunito, sans-serif; opacity: .8; } .your-turn .yt-dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(0, 0, 0, .25); }
@keyframes ytPulse { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .your-turn { animation: none; } }
@media (max-width: 480px) { .your-turn { font-size: 18px; padding: 7px 12px 7px 10px; } .your-turn small { display: none; } }

/* ---------------------------------------------------------------- Banner-matched dice + ticker arrows (Anton 2026-11-21) */
.die.die-gold, .dice-stage .tumble-die.die-gold {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 28% 18%, #fff4b8 0%, rgba(255, 244, 184, 0) 42%), linear-gradient(150deg, #ffe066 0%, #f2c230 48%, #e0a91c 100%);
  border: 1.5px solid rgba(160, 106, 10, .45);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, .85), inset 0 -4px 6px rgba(150, 92, 6, .35), 0 4px 0 #d49a1a, 0 6px 12px rgba(0, 0, 0, .3);
}
.die.die-orange, .dice-stage .tumble-die.die-orange {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 28% 18%, #ffd2a8 0%, rgba(255, 210, 168, 0) 42%), linear-gradient(150deg, #ff9a4a 0%, #f07a28 50%, #d8601a 100%);
  border: 1.5px solid rgba(150, 62, 8, .45);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, .7), inset 0 -4px 6px rgba(140, 50, 4, .35), 0 4px 0 #c85a16, 0 6px 12px rgba(0, 0, 0, .3);
}
.dice-stage .tumble-die.die-gold, .dice-stage .tumble-die.die-orange { position: absolute; box-shadow: inset 0 2px 3px rgba(255, 255, 255, .8), inset 0 -4px 6px rgba(120, 60, 4, .3), 0 4px 10px rgba(0, 0, 0, .38); }
.die.die-gold i, .die.die-orange i {
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #fbf7f0 55%, #e9e2d6 100%);
  box-shadow: inset 0 1px 1.5px rgba(0, 0, 0, .28), 0 0 2px rgba(255, 255, 255, .6);
}
/* pearly sheen that drifts across the corner dice now and then; reduced motion keeps a static shine */
#dice .die.die-gold::after, #dice .die.die-orange::after {
  content: ''; position: absolute; inset: -20%; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 60%);
  transform: translateX(-70%); animation: diceSheen 5.5s ease-in-out infinite;
}
#dice .die.die-orange::after { animation-delay: 1.4s; }
@keyframes diceSheen { 0%, 70% { transform: translateX(-70%); } 85%, 100% { transform: translateX(70%); } }
#dice.dbl-pop .die.die-gold, #dice.dbl-pop .die.die-orange { box-shadow: 0 0 0 3px #ffd76a, 0 0 16px 4px rgba(255, 210, 72, .85); }
.dice-stage .tumble-die.die-gold.dbl-glow, .dice-stage .tumble-die.die-orange.dbl-glow { box-shadow: 0 0 0 3px #ffd76a, 0 0 22px 6px rgba(255, 210, 72, .85), inset 0 2px 3px rgba(255, 255, 255, .9); }
@media (prefers-reduced-motion: reduce) {
  #dice .die.die-gold::after, #dice .die.die-orange::after { animation: none !important; transform: translateX(-18%); opacity: .55; }
}
/* ticker arrows: up blue, down amber, flat dot unchanged */
.ticker-text .tick-up { color: #5fb4ff; text-shadow: 0 0 6px rgba(95, 180, 255, .45); }
.ticker-text .tick-down { color: #ff8a1f; text-shadow: 0 0 6px rgba(255, 138, 31, .45); }

/* ---------------------------------------------------------------- Speed Rail trains (Anton 2026-11-20): one canvas in the motion layer, never takes a tap */
#railCanvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9; }

/* ---------------------------------------------------------------- money callouts over the piece (fix 2026-11-21) */
.money-pop { position: absolute; z-index: 950; pointer-events: none; transform: translate(-50%, -100%) scale(var(--s, 1)); transform-origin: 50% 100%; display: flex; flex-direction: column; align-items: center; gap: 1px; animation: mpRise 2.1s cubic-bezier(.2, .9, .3, 1) forwards; }
.money-pop b { font: 400 22px/1 var(--display, 'Fredoka'), sans-serif; letter-spacing: .01em; color: #fff6c9; padding: 3px 12px 4px; border-radius: 999px;
  background: linear-gradient(180deg, #ffe07a, #f2a516 55%, #c9760a); color: #3b1d00; text-shadow: 0 1px 0 rgba(255,255,255,.6); box-shadow: 0 0 0 2px #fff3c4, 0 0 0 4px #8a4b05, 0 6px 14px rgba(0,0,0,.45), 0 0 22px rgba(255,200,60,.8); }
.money-pop span { font: 900 10px/1 Nunito, sans-serif; letter-spacing: .14em; color: #fff; text-shadow: 0 1px 2px #000, 0 0 6px rgba(0,0,0,.8); }
.money-pop.out b { background: linear-gradient(180deg, #ffd1c7, #f06a4a 55%, #b8341b); color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.5); box-shadow: 0 0 0 2px #ffe3dc, 0 0 0 4px #6e1a0c, 0 6px 14px rgba(0,0,0,.45); }
.money-pop .mp-coin { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff7c2, #ffc93c 45%, #b8740a); box-shadow: 0 0 0 2px #8a4b05, 0 0 12px rgba(255,200,60,.9); margin-bottom: 2px; animation: mpCoin .6s ease-in-out 3; }
.money-pop.out .mp-coin { display: none; }
@keyframes mpRise { 0% { opacity: 0; translate: 0 10px; scale: .6; } 12% { opacity: 1; translate: 0 -6px; scale: 1.08; } 22% { scale: 1; } 80% { opacity: 1; translate: 0 -34px; } 100% { opacity: 0; translate: 0 -48px; } }
@keyframes mpCoin { 50% { transform: rotateY(180deg); } }
.me-cash.tick-up { animation: cashUp .7s ease-out; } .me-cash.tick-down { animation: cashDown .7s ease-out; }
@keyframes cashUp { 0% { color: #7dffb0; scale: 1.25; text-shadow: 0 0 10px #2dd47a; } 100% { scale: 1; } }
@keyframes cashDown { 0% { color: #ff8f7a; scale: 1.2; } 100% { scale: 1; } }
@media (prefers-reduced-motion: reduce) { .money-pop, .money-pop .mp-coin, .me-cash.tick-up, .me-cash.tick-down { animation: none; } }
/* Start tile labels (Anton 2026-11-26 14:16): the city's start phrase painted into the start tile in place of the removed
   GO (app.js startLabel / START_LABEL). An SVG over the board in art px; no plate, no box. Ironbrook riveted steel,
   Goldspire marble with gold leaf edge, Nexus holo glass with a cyan rim. */
.start-label { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 4; }
.start-label text { font-family: 'Lilita One', 'Fredoka', sans-serif; font-weight: 400; font-synthesis: none; }
/* Ironbrook's cast-iron medallion decal (2026-11-27): first in the plate layer at z 0, so the street plates that overlap the
   disc's top edge and the tokens stay on top of it */
.start-label.sl-decal { z-index: 0; }
/* opening shot (fix 2026-11-21) */
#tokenLayer.tok-hidden .token { opacity: 0; }
.token.drop-in { animation: tokDrop .75s cubic-bezier(.3, 1.35, .5, 1) both; animation-delay: calc(var(--k, 0) * 110ms); }
@keyframes tokDrop { 0% { opacity: 0; translate: 0 -160px; } 55% { opacity: 1; translate: 0 8px; } 75% { translate: 0 -6px; } 100% { opacity: 1; translate: 0 0; } }
.open-skip { position: absolute; right: 12px; bottom: 12px; z-index: 60; font: 800 13px/1 Nunito, sans-serif; color: #fff4cf; padding: 10px 16px; min-height: 40px; border-radius: 99px; cursor: pointer;
  background: rgba(10, 14, 38, .72); border: 1.5px solid rgba(255, 214, 120, .6); backdrop-filter: blur(6px); }
.board-viewport.open-cut::after { content: ''; position: absolute; inset: 0; z-index: 70; background: radial-gradient(circle, #fff, #ffe7a8 60%, #ffcf6a); animation: openCut .5s ease-out forwards; pointer-events: none; }
@keyframes openCut { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .token.drop-in { animation: none; } }

/* ================================================================ fix 2026-11-21: display font + graphic moments (Anton: "containers are lazy",
   "the font could be more exciting"). Lilita One (OFL, self-hosted, public/fonts/OFL-LilitaOne.txt) for headings, numbers, big buttons and
   celebrations; Nunito stays the body font, Fredoka the small UI labels. Lilita has one weight: never synthesise bold. */
@font-face { font-family: 'Lilita One'; src: url(fonts/LilitaOne.ttf?v=70b4f26a47) format('truetype'); font-weight: 400; font-display: swap; }
:root { --font-hero: 'Lilita One', 'Fredoka Stroke', 'Fredoka', sans-serif; --display: 'Lilita One'; }
.panel h3, .modal-card h2, .modal-card h3, .cel-title, .cel-kicker, .rk-num, .me-cash, .cash, .turn-card h2, .turn-head b, #actions .btn.big, #actions .btn3d,
.money-pop b, .tab, .es-title, .standings b, .ts-title, .card-title { font-family: var(--font-hero); font-weight: 400; font-synthesis: none; letter-spacing: .02em; }

/* ---------------------------------------------------------------- celebrations: a full-screen moment over the board, not a box */
.celebrate { align-items: center; padding: 0 12px; z-index: 70; background: radial-gradient(ellipse 75% 60% at 50% 48%, rgba(6, 9, 30, .62), rgba(6, 9, 30, .18) 70%, transparent); animation: celScrim .4s ease-out both; }
@keyframes celScrim { from { opacity: 0; } }
.cel-rays { top: 48%; transform: translate(-50%, -50%); }
@keyframes celRays { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(0) scale(.5); } 8% { opacity: .6; } 80% { opacity: .45; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(50deg) scale(1.1); } }
.cel-banner { flex-direction: column; text-align: center; gap: 6px; width: auto; max-width: min(860px, calc(100vw - 16px)); padding: 0; border: 0; border-radius: 0; background: none !important; box-shadow: none; animation: celIn .7s cubic-bezier(.2, 1.5, .4, 1) both; }
.cel-banner::before { display: none; }
.cel-swatch { width: clamp(96px, 26vw, 170px); height: clamp(96px, 26vw, 170px); border-radius: 50%; margin-bottom: 4px;
  box-shadow: 0 0 0 5px #fff1b8, 0 0 0 10px color-mix(in srgb, var(--set, #f2b632) 85%, #000), 0 0 70px 14px color-mix(in srgb, var(--set, #f2b632) 80%, transparent); animation: celPop .8s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes celPop { 0% { scale: 0; rotate: -25deg; } 70% { scale: 1.12; rotate: 4deg; } 100% { scale: 1; rotate: 0deg; } }
.cel-text { align-items: center; }
.cel-kicker { order: -1; display: inline-block; position: relative; margin: 0 auto 4px; padding: 5px 26px 6px; font-size: clamp(13px, 3vw, 17px); letter-spacing: .12em; color: #3b1d00;
  background: linear-gradient(180deg, #fff0a8, #f6c33a 50%, #d48a12); clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%); filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35)); }
.cel-title { font-size: clamp(34px, 9.5vw, 78px); line-height: .98; color: #fff6d6; background: linear-gradient(180deg, #fffbe6 10%, #ffd45a 55%, #f29a17 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px rgba(70, 30, 0, .55); filter: drop-shadow(0 4px 0 rgba(60, 25, 0, .8)) drop-shadow(0 0 22px color-mix(in srgb, var(--set, #f2b632) 75%, transparent)); text-shadow: none; padding: 0 .1em; }
.cel-who { font: 800 clamp(15px, 3.6vw, 21px) Nunito, sans-serif; color: #fff; text-shadow: 0 2px 4px #000, 0 0 10px rgba(0, 0, 0, .7); }
.cel-skip { margin: 10px auto 0; align-self: center; background: rgba(10, 14, 38, .6); color: #fff4cf; border: 1.5px solid rgba(255, 214, 120, .55); }
.celebrate.still .cel-swatch { animation: none; }
@media (prefers-reduced-motion: reduce) { .celebrate, .cel-swatch { animation: none !important; } }

/* ---------------------------------------------------------------- end of game: TriCity Tycoon moment (replaces the boxed modal + crown) */
html, body { overflow-x: clip; }   /* nothing may widen the page: a wider layout viewport pushed centred overlays off to one side on phones */
.endscreen { position: fixed; inset: 0; z-index: 6000; display: grid; place-items: center; overflow-y: auto; overflow-x: hidden; padding: max(14px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse 80% 70% at 50% 35%, rgba(40, 30, 90, .55), rgba(5, 8, 24, .92)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: celScrim .5s ease-out both; }
.endscreen.out { opacity: 0; transition: opacity .3s; }
.es-wrap { position: relative; width: min(640px, 100%); margin: auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.es-rays { position: absolute; left: 50%; top: 120px; width: min(140vmin, 1000px); aspect-ratio: 1; translate: -50% -50%; pointer-events: none; z-index: 0;
  background: repeating-conic-gradient(rgba(255, 214, 110, .30) 0 7deg, transparent 7deg 19deg); -webkit-mask-image: radial-gradient(circle, #000, transparent 62%); mask-image: radial-gradient(circle, #000, transparent 62%); animation: esSpin 30s linear infinite; }
@keyframes esSpin { to { rotate: 360deg; } }
.es-hero { position: relative; z-index: 1; width: clamp(200px, 56vw, 290px); height: clamp(190px, 50vw, 260px); }
.es-cup { position: absolute; left: 50%; top: 0; width: 58%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px #ffe9a0, 0 0 0 9px #8a5410, 0 0 0 12px #f6c33a, 0 0 60px 16px rgba(255, 200, 80, .55); animation: celPop .9s cubic-bezier(.2, 1.6, .4, 1) both; }
.es-cup img { width: 100%; height: 100%; object-fit: cover; }
.es-piece { position: absolute; left: 50%; bottom: 0; width: 46%; translate: -50% 0; filter: drop-shadow(0 0 14px rgba(255, 220, 120, .95)) drop-shadow(0 8px 6px rgba(0, 0, 0, .6)); animation: esPiece 1s .35s cubic-bezier(.2, 1.5, .4, 1) both, esBob 2.4s 1.4s ease-in-out infinite; }
.es-piece img, .es-piece svg { width: 100%; height: auto; display: block; }
@keyframes esPiece { 0% { opacity: 0; translate: -50% 60px; scale: .4; } 100% { opacity: 1; translate: -50% 0; scale: 1; } }
@keyframes esBob { 50% { translate: -50% -6px; } }
.es-ribbon { position: relative; z-index: 1; margin-top: 8px; padding: 6px 34px 8px; font: 400 clamp(14px, 3.4vw, 18px) var(--font-hero); letter-spacing: .14em; color: #3b1d00; background: linear-gradient(180deg, #fff0a8, #f6c33a 50%, #d48a12);
  clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 5% 50%); filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .4)); }
.es-title { position: relative; z-index: 1; margin: 6px 0 0; font-size: clamp(30px, 8.6vw, 60px); line-height: 1; background: linear-gradient(180deg, #fffbe6 10%, #ffd45a 55%, #f29a17 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px rgba(70, 30, 0, .5); filter: drop-shadow(0 4px 0 rgba(60, 25, 0, .85)) drop-shadow(0 0 20px rgba(255, 190, 60, .6)); overflow-wrap: anywhere; }
.es-sub { position: relative; z-index: 1; margin: 6px 0 12px; font: 700 14px Nunito, sans-serif; color: #e8e4ff; text-shadow: 0 1px 3px #000; }
.es-plates { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 7px; counter-reset: rk; }
.es-plate { --pc: #f2b632; position: relative; display: grid; grid-template-columns: 44px 44px 1fr auto; align-items: center; gap: 8px; padding: 6px 30px 6px 6px; min-height: 52px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--pc) 55%, #10163a), #10163a 62%); clip-path: polygon(0 0, 100% 0, 97% 50%, 100% 100%, 0 100%); color: #fff; text-align: left;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .45)); animation: esPlate .5s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: calc(.6s + var(--k, 0) * .12s); }
@keyframes esPlate { from { opacity: 0; translate: -40px 0; } }
.es-plate .rk { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 400 22px var(--font-hero); color: #3b1d00; background: radial-gradient(circle at 35% 30%, #fff7c2, #f6c33a 55%, #b8740a); box-shadow: 0 0 0 2px #7a3f06; }
.es-plate.r2 .rk { background: radial-gradient(circle at 35% 30%, #fff, #c9d1e4 55%, #7d879e); box-shadow: 0 0 0 2px #3c4458; }
.es-plate.r3 .rk { background: radial-gradient(circle at 35% 30%, #ffe0c2, #d0894a 55%, #8a4b1c); box-shadow: 0 0 0 2px #4a250a; }
.es-plate.rn .rk { background: #2a3160; color: #cfd6ff; box-shadow: 0 0 0 2px #59609a; }
.es-plate .pc { width: 44px; height: 44px; } .es-plate .pc img, .es-plate .pc svg, .es-plate .pc .mini-piece { width: 100%; height: 100%; object-fit: contain; }
.es-plate .nm { font: 400 clamp(17px, 4.4vw, 22px) var(--font-hero); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-plate .nm small { display: block; font: 700 11px Nunito, sans-serif; color: #ffe9a0; letter-spacing: .04em; white-space: normal; }
.es-plate .wv { font: 400 clamp(17px, 4.4vw, 22px) var(--font-hero); color: #ffe07a; }
.es-plate.r1 { min-height: 62px; background: linear-gradient(90deg, #f6c33a, color-mix(in srgb, var(--pc) 45%, #2a1a50) 55%, #10163a); }
.es-plate.out .wv { color: #ff9a8a; font-size: 15px; }
.es-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.es-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
@media (prefers-reduced-motion: reduce) { .endscreen, .es-rays, .es-cup, .es-piece, .es-plate { animation: none !important; } }

/* ---------------------------------------------------------------- VERSE trademark badge, footer & menu row (Anton 2026-11-24) */
.verse-badge {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 13px 5px 7px; border-radius: 99px;
  text-decoration: none; color: #eef2ff; cursor: pointer;
  background: linear-gradient(155deg, rgba(18, 13, 50, .88), rgba(7, 6, 22, .94)) padding-box,
    linear-gradient(135deg, rgba(56, 225, 255, .72), rgba(168, 85, 247, .58) 50%, rgba(255, 122, 89, .72)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .42), 0 0 18px rgba(124, 58, 237, .22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .14s ease, filter .15s ease, box-shadow .18s ease;
}
.verse-badge:hover { transform: translateY(-1px); filter: brightness(1.1); box-shadow: 0 8px 22px rgba(0, 0, 0, .48), 0 0 24px rgba(56, 225, 255, .32); }
.verse-badge:active { transform: translateY(1px); }
.verse-badge:focus-visible { outline: 3px solid #41e3cf; outline-offset: 2px; }
.verse-corner { position: absolute; top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); z-index: 800; }
body:not([data-screen="home"]) .verse-corner { display: none !important; }
html.tct-gating body[data-screen="home"] .verse-corner { position: fixed; z-index: 9050; visibility: visible; }
.vb-mark { position: relative; width: 30px; height: 30px; border-radius: 9px; padding: 2px; display: grid; place-items: center; overflow: hidden; flex: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.vb-mark.md { width: 34px; height: 34px; border-radius: 10px; padding: 2px; }
.vb-portal { position: absolute; inset: -42%; background: conic-gradient(from 0deg, #38e1ff, #7c3aed, #ff7a59, #c026d3, #38e1ff);
  animation: vbSwirl 14s linear infinite; opacity: .92; pointer-events: none; }
.vb-icon { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 7px; display: block; object-fit: cover; }
.vb-mark.md .vb-icon { border-radius: 8px; }
.vb-copy { display: inline-flex; align-items: baseline; gap: 4px; line-height: 1; white-space: nowrap; }
.vb-kicker { font: 700 12px/1 Nunito, system-ui, sans-serif; color: #c9d4f8; letter-spacing: .01em; }
.vb-word { font: 800 14.5px/1 Fredoka, Nunito, system-ui, sans-serif; letter-spacing: .11em;
  background: linear-gradient(90deg, #b9fbff 0%, #ffffff 48%, #ffd1c2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.vb-tm { font: 700 .58em/1 Nunito, system-ui, sans-serif; vertical-align: super; margin-left: 1px; color: #c4b5fd; -webkit-text-fill-color: #c4b5fd; letter-spacing: 0; }
.ts-legal { margin: 4px 0 0; text-align: center; font-size: 12px; color: var(--ink2); opacity: .86; text-shadow: 0 1px 4px rgba(0, 0, 0, .75); }
/* In-game menu "More games on VERSE" row (lives strictly inside #gameMenu, never on the board) */
.gm-item.gm-verse {
  text-decoration: none; box-sizing: border-box;
  background: linear-gradient(180deg, rgba(84, 52, 168, .26), rgba(14, 12, 42, .45)) padding-box,
    linear-gradient(180deg, #1d1a4c, #0e1030) padding-box,
    linear-gradient(135deg, rgba(56, 225, 255, .72), rgba(168, 85, 247, .55) 50%, rgba(255, 122, 89, .72)) border-box;
}
.gm-item.gm-verse .gm-txt b { color: #eef2ff; display: inline-flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.gm-item.gm-verse .vb-word { font-size: 16px; }
.gm-ic.gm-ic-verse { padding: 3px; background: radial-gradient(circle at 50% 45%, #2a1764, #09071a); box-shadow: 0 3px 0 #050412, 0 0 12px rgba(56, 225, 255, .28); }
.gm-ext { margin-left: auto; flex: none; font: 800 17px/1 Nunito, sans-serif; color: #7df3ff; padding-left: 4px; }
@media (max-width: 760px) {
  #home.title-screen { padding-top: calc(max(10px, env(safe-area-inset-top)) + 58px); }
  .verse-corner { padding: 4px 11px 4px 6px; gap: 7px; min-height: 40px; }
  .verse-corner .vb-mark { width: 26px; height: 26px; border-radius: 8px; }
  .verse-corner .vb-icon { border-radius: 6px; }
  .verse-corner .vb-word { font-size: 13px; }
  .verse-corner .vb-kicker { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .vb-portal { animation: none !important; } }

/* ---------------- Solo play setup sheet, city-tinted difficulty chips, rivals & Exchange titles */
.btn3d.solo { background: linear-gradient(180deg, #35d0e8, #2279d4 60%, #1c4fa8); color: #fff; border-color: #8eeeff; box-shadow: 0 5px 0 #103270, 0 8px 18px rgba(10, 40, 100, .42); }
.btn3d.solo:hover { filter: brightness(1.07); }
.solo-card { border-color: rgba(110, 224, 255, .36); }
.solo-sheet { text-align: left; display: flex; flex-direction: column; gap: 12px; max-width: 440px; width: 100%; }
.solo-sheet h2 { margin: 2px 0 4px; text-align: center; }
.solo-sheet .card-deck { text-align: center; }
.solo-sec { display: flex; flex-direction: column; gap: 6px; }
.solo-lbl { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #b7c6eb; }
.solo-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.solo-chip { min-height: 40px; padding: 8px 10px; border-radius: 12px; font: 800 13px/1.1 Nunito, system-ui, sans-serif; color: #dbe6ff; background: rgba(255, 255, 255, .07); border: 1.5px solid rgba(255, 255, 255, .18); cursor: pointer; transition: transform .12s, border-color .15s, background .15s; }
.solo-chip.active { background: rgba(255, 214, 106, .2); border-color: #ffd66a; color: #fff6d6; box-shadow: 0 0 0 1px rgba(255, 214, 106, .35); }
.solo-diffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.solo-diff { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; padding: 8px 6px; border-radius: 14px; cursor: pointer; text-align: center; font-family: Nunito, system-ui, sans-serif; border: 2px solid transparent; transition: transform .12s, box-shadow .18s, filter .15s; }
.solo-diff .sd-lbl { font-weight: 900; font-size: 13px; line-height: 1.15; }
.solo-diff .sd-city { font-size: 11px; font-weight: 700; opacity: .82; letter-spacing: .04em; text-transform: uppercase; }
.solo-diff.diff-easy { background: linear-gradient(165deg, rgba(168, 72, 38, .38), rgba(92, 38, 22, .52)); border-color: rgba(218, 128, 84, .45); color: #ffdfcc; }
.solo-diff.diff-easy.active { background: linear-gradient(165deg, #c95b32, #8a341b); border-color: #ffb88c; color: #fff6ee; box-shadow: 0 0 0 2px rgba(255, 168, 118, .4), 0 6px 16px rgba(140, 48, 20, .45); }
.solo-diff.diff-normal { background: linear-gradient(165deg, rgba(196, 146, 36, .34), rgba(102, 70, 14, .52)); border-color: rgba(255, 212, 102, .45); color: #fff1c2; }
.solo-diff.diff-normal.active { background: linear-gradient(165deg, #e5b23a, #a67210); border-color: #ffe89e; color: #2b1800; box-shadow: 0 0 0 2px rgba(255, 224, 120, .45), 0 6px 16px rgba(170, 114, 16, .45); }
.solo-diff.diff-hard { background: linear-gradient(165deg, rgba(38, 152, 198, .34), rgba(98, 42, 178, .5)); border-color: rgba(112, 228, 255, .45); color: #dcf8ff; }
.solo-diff.diff-hard.active { background: linear-gradient(165deg, #1fc5e8, #6d35e8); border-color: #9bf6ff; color: #ffffff; box-shadow: 0 0 0 2px rgba(112, 232, 255, .45), 0 6px 16px rgba(80, 56, 210, .48); }
.solo-bix { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(12, 18, 44, .65); border: 1px solid rgba(255, 214, 120, .24); }
.solo-bix img { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.solo-bix-line { margin: 0; font-size: 13px; line-height: 1.35; color: #eef3ff; font-weight: 700; }
.solo-fast { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #cfd9f5; cursor: pointer; padding: 2px 0; }
.solo-fast input { width: 18px; height: 18px; accent-color: #38d9f5; }
.solo-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.players li.rival-row .mini-piece, .players li.rival-row > img { box-shadow: 0 0 0 2px var(--rival-tint, #67e8f9); border-radius: 50%; }
.tag-pill.rival-pill { background: color-mix(in srgb, var(--rival-tint, #67e8f9) 24%, rgba(12, 18, 44, .85)); color: #f6fbff; border: 1px solid color-mix(in srgb, var(--rival-tint, #67e8f9) 65%, transparent); }
.ach-popup { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ach-badge { display: grid; place-items: center; margin: 4px auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45)); }

/* ---------------- Start screen: Play Solo / Play with Friends (2026-11-24). Solo never shows a table or a code; the join/host
   cards live only in the friends pane, which has its own Back. */
#joinBox { display: flex; flex-direction: column; }
#joinBox > .ts-modes { order: 1; } #joinBox > .ts-identity { order: 2; } #joinBox > .home-foot { order: 4; }
#joinBox > .pane-head { order: 0; } #joinBox > .mp-pane { order: 3; }
#joinBox[data-pane="modes"] > .pane-head, #joinBox[data-pane="modes"] > .mp-pane { display: none; }
#joinBox[data-pane="mp"] > .ts-modes { display: none; }
.ts-modes { display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; }
.mode-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 18px 13px; }
.mode-btn .mb-main { font-size: 23px; line-height: 1.1; }
.mode-btn .mb-sub { font: 700 13px/1.25 Nunito, system-ui, sans-serif; letter-spacing: 0; text-transform: none; opacity: .92; }
.btn3d.gold.mode-btn .mb-sub { color: #4a2c00; }
.pane-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.pane-title { font: 700 17px var(--font-display); color: var(--gold3); letter-spacing: .04em; }
.back-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px 8px 8px; min-height: 40px; }
.back-btn svg { width: 20px; height: 20px; }
@media (min-width: 761px) { .ts-modes { flex-direction: row; } .ts-modes .mode-btn { flex: 1; } .mp-pane { grid-template-columns: 1fr auto 1fr; } }

/* in-game Back, first in the island tab row */
.game-back { flex: none; width: 38px; min-height: 34px; padding: 0; display: inline-grid; place-items: center; border-radius: 12px 12px 4px 4px; cursor: pointer; color: var(--gold3);
  background: var(--glass2b) padding-box, linear-gradient(135deg, rgba(255, 241, 184, .5), rgba(138, 90, 18, .4)) border-box; border: 1.5px solid transparent; box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.game-back svg { width: 20px; height: 20px; }
.game-back:focus-visible { outline: 3px solid #41e3cf; outline-offset: 2px; }
body.solo-game #inviteGame { display: none; }
#gameMenu.leave-ask .gm-title { color: #fff1b8; }

/* Solo setup sheet: close (x), name row */
.solo-modal { position: relative; }
.solo-sheet { position: relative; }
.sheet-x { position: absolute; top: -4px; right: -4px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); background: rgba(12, 18, 44, .7); color: #fff1b8;
  font: 700 26px/1 Nunito, system-ui, sans-serif; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.sheet-x:focus-visible { outline: 3px solid #41e3cf; outline-offset: 2px; }
.solo-you-row { display: flex; align-items: center; gap: 10px; }
.solo-piece { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 214, 120, .45); }
.solo-piece img { width: 38px; height: 38px; object-fit: contain; }
#soloNameIn { flex: 1; min-width: 0; font-size: 16px; }
#soloNameIn.need { box-shadow: 0 0 0 3px rgba(255, 120, 90, .7); }

/* Solo results */
.ss-grid { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 12px; }
.ss-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: rgba(12, 18, 44, .72); border: 1px solid rgba(255, 214, 120, .3); }
.ss-stat b { font: 700 18px var(--font-display); color: #fff1b8; white-space: nowrap; }
.ss-stat small { font: 800 11px Nunito, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #b7c6eb; }
.ss-plates .es-plate.me { outline: 2px solid rgba(110, 224, 255, .7); outline-offset: 1px; }
.ss-ach { position: relative; z-index: 1; width: 100%; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.ss-lbl { font: 800 12px Nunito, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #b7c6eb; text-align: center; }
.ss-ach-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(12, 18, 44, .6); border: 1px solid rgba(255, 255, 255, .12); opacity: .8; }
.ss-ach-row.got { opacity: 1; border-color: rgba(255, 214, 120, .6); background: rgba(80, 56, 12, .55); }
.ss-ach-ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: rgba(255, 255, 255, .1); color: #cbd5f5; }
.ss-ach-row.got .ss-ach-ic { background: #f2b632; color: #3d2400; }
/* celebrate-1129: the Exchange title symbol in a brass rim; not yet earned = dimmed */
.ss-ach-ic { width: 36px; height: 36px; background: radial-gradient(circle at 35% 28%, #fff6c8, #f2b632 55%, #a46a12); box-shadow: 0 0 0 1px #6b3d06; }
.ss-ach-ic img { width: 32px; height: 32px; display: block; }
.ss-ach-row:not(.got) .ss-ach-ic { filter: saturate(.3) brightness(.6); }
.ss-ach-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ss-ach-txt b { font: 800 14px Nunito, sans-serif; color: #fff; } .ss-ach-txt small { font: 600 12px Nunito, sans-serif; color: #cbd5f5; }
.ss-ach-st { flex: none; font: 800 11px Nunito, sans-serif; letter-spacing: .05em; text-transform: uppercase; color: #9fb0d8; }
.ss-ach-row.got .ss-ach-st { color: #ffd76a; }
@media (max-width: 420px) { .ss-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- "Achievement unlocked" banner (Anton 2026-11-25) */
.ach-banner { position: fixed; left: 50%; z-index: 7500; transform: translateX(-50%); width: min(420px, calc(100vw - 24px)); pointer-events: none;
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px; color: var(--ink, #fff);
  background: linear-gradient(135deg, rgba(40, 26, 84, .94), rgba(18, 22, 52, .94)) padding-box, linear-gradient(135deg, #ffe08a, #f2b632 45%, #b07a12) border-box;
  border: 2px solid transparent; box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 215, 106, .2); overflow: hidden;
  animation: abIn .42s cubic-bezier(.2, 1.35, .4, 1) both; }
.ach-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 240, 190, .45) 50%, transparent 70%); transform: translateX(-120%); animation: abShine 1.1s .25s ease-out both; }
.ach-banner.out { animation: abOut .26s ease-in both; }
.ach-banner .ab-ic { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 215, 106, .14); color: #ffd76a; }
.ach-banner .ab-ic img, .ach-banner .ab-ic svg { width: 40px; height: 40px; object-fit: contain; }
.ach-banner .ab-ic .ach-badge { width: 40px; height: 40px; }
.ach-banner .ab-ic svg path[fill="currentColor"] { fill: currentColor; }
.ach-banner .ab-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.ach-banner .ab-kick { font: 800 10px var(--font-display, sans-serif); letter-spacing: .16em; text-transform: uppercase; color: #ffd76a; }
.ach-banner .ab-title { font: 800 15px var(--font-display, sans-serif); color: #fff; overflow-wrap: anywhere; }
.ach-banner .ab-sub { font-size: 11.5px; color: #c9cdf2; overflow-wrap: anywhere; }
.ach-banner.mine { box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 18px rgba(255, 215, 106, .45); }
@keyframes abIn { from { opacity: 0; transform: translate(-50%, -14px) scale(.92); } }
@keyframes abOut { to { opacity: 0; transform: translate(-50%, -10px) scale(.97); } }
@keyframes abShine { to { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .ach-banner, .ach-banner.out, .ach-banner::after { animation: none !important; } .ach-banner::after { display: none; } }
/* modal backdrop eases in (the card already pops in); reduced motion: instant */
.modal:not(.hidden) { animation: fadeIn .18s ease-out; }
@media (prefers-reduced-motion: reduce) { .modal:not(.hidden) { animation: none !important; } }
/* reduced motion safety net (2026-11-25 audit found the board's follow-cam glide, the gold button's glow and Bix's bubble pop
   still moving under prefers-reduced-motion): every CSS animation and transition jumps straight to its end state */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- option lists (stock-list-1127, Anton 05:29 'squashed')
   Root cause: .btn has overflow:hidden (for its gloss), so as a flex item its automatic min-height is 0; in .choice-list
   (a flex column with max-height 240px) the 26 Lobbyist buttons shrank to ~12 px each instead of the list scrolling.
   The settle-up share / building buttons sat in .row.wrap where `.actions .row .btn { flex: 1 }` (basis 0) never wraps,
   so 13 buttons shared one line at 22 px wide. Every list item now keeps its size and the list scrolls. */
.choice-list > *, .opt-list > * { flex-shrink: 0; }
.choice-list .btn { min-height: 44px; white-space: normal; line-height: 1.2; text-align: center; }
.actions .row.wrap > .btn { min-width: min(100%, 84px); }   /* a short choice row (<= 6) wraps instead of squeezing a button below 84 px; 3 buttons still share one line in the 280 px side column */
.opt-list { display: flex; flex-direction: column; gap: 6px; max-height: min(300px, 42vh); overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 8px 2px; scrollbar-gutter: stable; }
.btn.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 7px 12px; font-size: 14px; border-radius: 12px; text-align: left; white-space: normal; line-height: 1.2; box-sizing: border-box; }
.opt-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; gap: 2px; }
.opt-name { font-weight: 700; overflow-wrap: break-word; hyphens: auto; }
.opt-sub { font-family: var(--font-body, inherit); font-size: 12px; font-weight: 600; letter-spacing: 0; color: rgba(255, 255, 255, .78); }
.opt-act { flex: none; font-size: 13px; padding: 4px 9px; border-radius: 9px; background: rgba(0, 0, 0, .22); color: #ffe7a3; white-space: nowrap; }
.lob-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 5px 7px 5px 10px; border-radius: 12px; background: var(--glass2b, rgba(30, 42, 100, .55)); border: 1px solid rgba(255, 215, 106, .28); box-sizing: border-box; }
.lob-row .opt-name { font-size: 15px; } .lob-row .opt-sub { color: var(--ink2, #c9d0ee); }
.lob-btns { display: flex; gap: 6px; flex: none; }
.btn.lob-btn { min-height: 44px; min-width: 64px; padding: 0 9px; font-size: 15px; border-radius: 11px; white-space: nowrap; }
/* narrow rows (desktop side column ~280 px, small phones): smaller buttons so names like 'Transportation' fit whole */
@media (max-width: 380px), (min-width: 901px) { .btn.lob-btn { min-width: 0; padding: 0 8px; font-size: 14px; } .lob-row .opt-name { font-size: 14px; } }
.opt-name .sw { display: inline-block; vertical-align: -2px; }

/* ---------------------------------------------------------------- Players panel chips (Anton 2026-11-27 06:40: the TRANSIT TITAN chip
   looked "crusty and doubled"). The chip's class 'title' also matched the old home-screen '.title' rule in style.css
   (Fredoka, margin-top 4px, text-shadow 0 3px 0 #fff), so a white copy of every letter sat 3 px under the gold one. The
   title chip is now a solid VERSE-gold pill with dark espresso text (the same gold as the secret-title badge), no stroke,
   no text shadow; the shine is a soft highlight inside the pill. City, title and Harvest Pin chips share one size: Nunito
   800 11px caps, 1px rim, same radius and height. */
.tag-pill.title { font: 800 11px / 1.35 Nunito, system-ui, sans-serif; letter-spacing: .5px; margin: 0; text-shadow: none; -webkit-text-stroke: 0;
  color: #3d2400; background: linear-gradient(180deg, #fff3b0 0%, #ffd76a 42%, #f2b632 100%); border: 1px solid rgba(255, 241, 184, .85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(138, 90, 18, .45), 0 1px 0 rgba(0, 0, 0, .3); }
.players .tag-pill.board { border: 1px solid rgba(160, 180, 255, .38); }
/* own cash: always every digit (house rule). It never shrinks or wraps; a long name gives way instead (the row wraps). */
.players .me-cash { white-space: nowrap; flex-shrink: 0; }
.players li > .nm { overflow-wrap: anywhere; }

/* ================================================================ QA 1127 release candidate (Neon QA sweep + Anton 2026-11-27) */
/* #2 one action bar: while YOUR buy / rent decision deed is up, its plate bar is the only Buy / Pass / Pay; the Turn Card's copy of
   the same buttons and its hint hide (the Bix coach line stays) and return the moment the deed closes (app.js mountDeed / closeDeed). */
body.deed-deciding #turnCard #actions, body.deed-deciding #turnCard #actionHint { display: none; }
/* phone: the deed (and the Nexus base plate under its point) sits over the Bix bar; its speech line showed half-covered between the
   plate and the action bar (QA 1127 capture). Bix's line is hidden while a deed is up and comes back when it closes. */
@media (max-width: 699px) { body.deed-up .bix-bar .bix-bubble { visibility: hidden; } }

/* #7 phone touch targets >= 44 px. Small HUD controls keep their look and get an invisible hit area (::after, centred, at least
   44 x 44); list buttons that sit in rows get a real 44 px height so neighbouring hit areas never overlap. */
@media (max-width: 900px) {
  #gameBackBtn, .board-tabs .tab, #askBixBtn, .bix-bar .menu-btn, .side-col .foot .btn { position: relative; overflow: visible; }
  #gameBackBtn::after, .board-tabs .tab::after, #zoomBtn::after, #askBixBtn::after, .bix-bar .menu-btn::after, .side-col .foot .btn::after {
    content: ''; position: absolute; pointer-events: auto; background: transparent;
    left: min(0px, calc((100% - 44px) / 2)); right: min(0px, calc((100% - 44px) / 2)); top: min(0px, calc((100% - 44px) / 2)); bottom: min(0px, calc((100% - 44px) / 2)); }
  #zoomBtn { overflow: visible; }
  .side-col .foot { row-gap: 8px; }
  #actions .btn.small { min-height: 44px; }
  #panels .pbody .btn.small, #panels .pbody .btn.ghost.small { min-height: 44px; min-width: 44px; }
  #panels .xtable .btn.small { min-height: 44px; min-width: 52px; padding: 2px 9px; font-size: 13px; }
  .tp-tab { min-height: 44px; } .tp-chip { min-height: 44px; padding-top: 0; padding-bottom: 0; }   /* Teleport picker tabs + filters */
}

/* #8 account chip: on a phone it scrolls away with the page instead of floating over the Play with Friends card */
@media (max-width: 760px) { .acct-chip { position: absolute; } }

/* Anton 08:00 ("no pill rule"): the secret-title chip (e.g. TRANSIT TITAN) is a small engraved gold plaque with notched ribbon ends,
   not a capsule. Same height and type as before; the notches are clip-path, the bevel is inset light / shade. */
.tag-pill.title { border: 0; border-radius: 0; padding: 2px 12px; clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 50%, 100% 100%, 0 100%, 6px 50%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -1.5px 0 rgba(138, 90, 18, .6); }

/* Anton 08:07 ("on PC keep the top pinned while the user scrolls the side bars"): desktop >= 1024 px. The page keeps ONE scroll (the
   window), and the whole board column (Back, board tabs, ticker, the board, the Bix bar) is sticky at the top, so it never leaves
   the screen while the side column (Turn Card, Players, titles, panels, log) scrolls past beside it. No second scrollbar, no jump:
   the board column is already sized to the window height (.board-col width from 100vh), so it fits under the sticky top. */
@media (min-width: 1024px) {
  body[data-screen="game"] .game-grid { align-items: start; }
  body[data-screen="game"] .board-col { position: sticky; top: 6px; align-self: start; z-index: 5; }
}

/* Anton 08:28 ET: start-square climb as destination cards (Direction B), no pills. Three in a row (two at Ironbrook), stacked only on
   very narrow screens. Each card: board-art crop, the city on its own plate, one short line with an up / down arrow. */
.climb-cards { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; margin: 6px 0 2px; }
.climb-cards[data-n="2"] { --n: 2; } .climb-cards[data-n="3"] { --n: 3; }
.climb-card { --cut: 9px; position: relative; display: flex; flex-direction: column; align-items: stretch; min-height: 44px; padding: 0; border: 0; cursor: pointer; text-align: center;
  color: #fff; background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.06)); isolation: isolate;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  transition: transform .12s ease, filter .12s ease; }
.climb-card::before { content: ''; position: absolute; inset: 2px; z-index: -1; background: #10162f;
  clip-path: polygon(calc(var(--cut) - 1px) 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, calc(var(--cut) - 1px) 100%, 0 calc(100% - var(--cut) + 1px), 0 calc(var(--cut) - 1px)); }
.climb-card:hover { transform: translateY(-2px); filter: brightness(1.08); } .climb-card:active { transform: translateY(1px); }
.climb-card:focus-visible { outline: 3px solid #41e3cf; outline-offset: 2px; }
.climb-card .cc-art { position: relative; display: block; margin: 2px 2px 0; aspect-ratio: 2.1; background: #223 center / cover no-repeat; }
.climb-card .cc-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,10,26,.55)); }
.cc-here { position: absolute; left: 0; right: 0; top: 0; z-index: 1; padding: 2px 4px; font: 800 10px/1.2 Nunito, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #3d2400; background: linear-gradient(180deg, #fff3b0, #f2b632); }
.climb-card .cc-plate { display: block; margin: -11px 8px 0; position: relative; z-index: 1; padding: 4px 6px; font: 700 15px/1.15 var(--font-display); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.climb-card .cc-line { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 5px 6px 8px; font: 800 12.5px/1.2 Nunito, sans-serif; color: #eef2ff; overflow-wrap: anywhere; }
.cc-arrow { display: inline-flex; width: 16px; height: 16px; flex: none; } .cc-arrow svg { width: 16px; height: 16px; }
.cc-arrow.up { color: #6dffb8; } .cc-arrow.down { color: #ffb36b; }
/* city plates: Ironbrook riveted steel, Goldspire gilt, Nexus hologram glass with angled ends */
.climb-card.c-ironbrook { background: linear-gradient(180deg, #8d96a3, #3a414b); }
.climb-card.c-ironbrook .cc-plate { color: #18202b; clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  background: radial-gradient(circle at 7px 50%, #f6f8fa 0 1.3px, #4a525d 1.8px, transparent 2.4px), radial-gradient(circle at calc(100% - 7px) 50%, #f6f8fa 0 1.3px, #4a525d 1.8px, transparent 2.4px), repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 3px), linear-gradient(180deg, #f1f3f6, #b3bbc6); }
.climb-card.c-goldspire { background: linear-gradient(135deg, #fff1b8, #d9a91c 35%, #8a6510 60%, #f5d77a); }
.climb-card.c-goldspire .cc-plate { color: #3a2a0c; background: linear-gradient(118deg, transparent 38%, rgba(120,110,95,.25) 39.5%, transparent 42%), linear-gradient(180deg, #fbf8f1, #e6dcc6); box-shadow: inset 0 0 0 1.5px #c9a23a, inset 0 0 0 3px #fff6d0; }
.climb-card.c-nexus { background: linear-gradient(90deg, #7fe6ff, #b98cff 50%, #7fe6ff); }
.climb-card.c-nexus .cc-plate { color: #e8fbff; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%); padding-left: 12px; padding-right: 12px;
  background: repeating-linear-gradient(0deg, rgba(127,230,255,.14) 0 1px, transparent 1px 3px), rgba(14,60,110,.95); }
.climb-card.here { box-shadow: none; filter: drop-shadow(0 0 8px rgba(255, 214, 106, .7)); }
.climb-card.here::before { background: #1b1a2c; }
/* narrow cards (desktop side column, ~93 px each): the 15 px plate clipped "Goldspire" / "Ironbrook" and hid the rivets (QA 1127). Same plates, smaller type */
.climb-cards[data-n] > .climb-card { container-type: inline-size; }
@media (min-width: 341px) { @container (max-width: 104px) { .cc-plate { margin-left: 4px !important; margin-right: 4px !important; padding: 4px 9px !important; font-size: 12.5px !important; letter-spacing: 0 !important; } } }
@media (max-width: 340px) { .climb-cards { grid-template-columns: minmax(0, 1fr); } .climb-card { flex-direction: row; } .climb-card .cc-art { width: 38%; margin: 2px; } .climb-card .cc-plate { margin: 6px 4px 0; } }

/* Anton 08:28 ET 2026-11-27: the Turn Card timer is a small tag, not a capsule ("no timer", "45s", "paused"). The hourglass icon it had
   (08:32 ET) is gone (Anton 06:55 ET 2026-11-28: the hourglass only marks a token in jail / prison); the plate itself is below. */
.timer[data-mode="idle"] { display: none; }

/* ---------------------------------------------------------------- Thanksgiving 2026 Commemorative box: festive upgrade
   (Anton 07:01 ET 2026-11-27: "high gloss fall time Thanksgiving graphics ... falling leaves ... a wooden festive frame").
   Golden-hour harvest plate behind the pieces (the three TriCity islands in the clouds), a carved, mitred walnut frame
   (9-slice SVG) with a gilt inner line and wheat/acorn/oak corner bosses, smoked-glass plates under the text so falling
   leaves (one canvas, behind everything) never sit on top of a word. Text and pieces are unchanged. */
.comm-section.tg-box {
  /* tgvisual-1128 (Anton 06:14 / 06:15 ET 2026-11-28, "borders here too can be thicker... wider", "more engraved details,
     like someone took the time to hand carve them in"): the carved frame is drawn --tg-fw wide (30 css px, was 16; phone
     19, was 10) from the hand-carved 9-slice (rope moulding, oak vine with acorns in relief, bead-and-reel, bevelled lip:
     art/event/tg_frame_carved.webp). The layout border stays --tg-frame, so the extra width lies over the box's background
     edge, and the padding keeps every label clear of it. The acorn corners scale with it (160 / 106 css px, was 84 / 56). */
  --tg-frame: 16px; --tg-fw: 30px; --tg-r: 16px; --tg-corner: 160px;
  position: relative; isolation: isolate; margin-top: 28px;
  padding: 24px 18px 20px; border: var(--tg-frame) solid transparent; border-radius: var(--tg-r);
  border-image: url(art/event/tg_frame_carved.webp?v=73e17127fc) 90 / var(--tg-fw) round;
  background:
    radial-gradient(110% 80% at 50% 50%, rgba(26, 10, 6, .34) 0%, rgba(26, 10, 6, .14) 64%, rgba(26, 10, 6, 0) 100%) padding-box,
    url(art/event/tg_box_bg.webp?v=198c99cacd) center 60% / cover padding-box, #3a1a0c padding-box;
  box-shadow: inset 0 8px 18px rgba(0, 0, 0, .34), inset 0 -6px 16px rgba(0, 0, 0, .3),
    0 14px 30px rgba(0, 0, 0, .5), 0 0 36px rgba(242, 140, 40, .18);
}
.tg-box .tg-corner {
  position: absolute; z-index: 4; width: var(--tg-corner); height: var(--tg-corner); pointer-events: none;
  background: url(art/event/tg_corner.svg?v=7825d8f58c) center / contain no-repeat; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6));
  /* boss centre (svg 20,20 of 64) sits on the middle of the drawn frame at the corner (offsets are from the padding edge) */
  --tg-off: calc(.5 * var(--tg-fw) - var(--tg-frame) - var(--tg-corner) * .3125);
}
.tg-box .tg-corner.tl { left: var(--tg-off); top: var(--tg-off); }
.tg-box .tg-corner.tr { right: var(--tg-off); top: var(--tg-off); transform: scaleX(-1); }
.tg-box .tg-corner.bl { left: var(--tg-off); bottom: var(--tg-off); transform: scaleY(-1); }
.tg-box .tg-corner.br { right: var(--tg-off); bottom: var(--tg-off); transform: scale(-1, -1); }
/* the VERSE V inlaid in brass on each boss, replacing the acorn (Anton 08:06 ET 2026-11-28, "switch the corner acorns with
   the logo V"): the Portal Prism V unchanged (art/event/tg_corner_v.svg), centred on the boss (svg 20,20 of 64) and as
   sized so the V's top corners stay inside the boss's inner carved ring. transform: inherit applies the corner's mirror a second time, so the V
   always reads upright and the right way round in all four corners. */
.tg-box .tg-corner::after {
  content: ''; position: absolute; left: 31.25%; top: 31.25%; width: 20.7%; height: 19.1%; translate: -50% -50%;
  background: url(art/event/tg_corner_v.svg?v=42df544481) center / contain no-repeat; transform: inherit;
}
/* falling leaves: canvas behind all content, clipped to the inner edge of the frame */
.tg-box .tg-leaves { position: absolute; inset: calc(var(--tg-fw) - var(--tg-frame)); z-index: 0; border-radius: 3px; overflow: hidden; pointer-events: none; }
/* the carved lip's shadow on the box background (key light top left), at the drawn frame's inner edge */
.comm-section.tg-box::after { content: ''; position: absolute; inset: calc(var(--tg-fw) - var(--tg-frame)); z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(18, 5, 1, .85), inset 0 9px 12px -6px rgba(12, 3, 0, .65), inset 8px 0 12px -7px rgba(12, 3, 0, .5), inset -5px 0 9px -6px rgba(12, 3, 0, .4), inset 0 -5px 9px -6px rgba(12, 3, 0, .4); }
.tg-box .tg-leaves canvas { display: block; width: 100%; height: 100%; }
.tg-box .tg-leaves.front { z-index: 2; }   /* near leaves: over the piece art, under every label (z-index 3) */
@media (prefers-reduced-motion: reduce) { .tg-box .tg-leaves { display: none; } }
.tg-box > .ltd-row { position: relative; }   /* no z-index: pieces share the box's stacking context with the leaf layers */
.tg-box > .tg-plate { position: relative; z-index: 3; }
.tg-box .ltd-row .piece-opt .pc-name, .tg-box .ltd-tag { position: relative; z-index: 3; }
.tg-box .ltd-row .piece-opt.taken { z-index: 3; }   /* its filter makes it a stacking context: keep the whole piece above the leaves */
/* smoked-glass plate under the title, countdown and description */
.tg-box .tg-plate {
  margin: 0 0 12px; padding: 10px 14px 11px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(34, 13, 6, .72), rgba(24, 9, 4, .66));
  -webkit-backdrop-filter: blur(6px) saturate(1.2); backdrop-filter: blur(6px) saturate(1.2);
  border: 1px solid rgba(255, 198, 120, .26); box-shadow: inset 0 1px 0 rgba(255, 220, 170, .18), 0 6px 16px rgba(0, 0, 0, .3);
}
.tg-box .comm-head { border-bottom: 0; position: relative; padding-bottom: 9px; margin-bottom: 9px; }
.tg-box .comm-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(233, 178, 60, 0), #e9b23c 14%, #fff1b8 50%, #e9b23c 86%, rgba(233, 178, 60, 0)); opacity: .75; }
.tg-box .comm-title { color: #ffd27a; text-shadow: 0 1px 0 #3a1606, 0 0 10px rgba(255, 160, 60, .35); }
.tg-box .comm-title .ev-leaf { color: #ff9a3c; filter: drop-shadow(0 0 4px rgba(255, 140, 40, .6)); }
.tg-box .comm-desc { margin: 0; color: #f6e6cf; text-shadow: 0 1px 2px rgba(0, 0, 0, .65); }
/* countdown: a swallowtail harvest ribbon with a gilt edge (Anton 07:06/08:00 ET: no rounded text pills) */
.tg-box .comm-days {
  position: relative; isolation: isolate; padding: 4px 14px 4px; border: 0; border-radius: 0;
  color: #fffaf0; text-shadow: 0 1px 1px rgba(50, 14, 0, .8);
  background: linear-gradient(135deg, #fff1b8, #e9b23c 35%, #8a5a12 65%, #ffd76a);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%, 8px 50%);
}
.tg-box .comm-days::before { content: ''; position: absolute; inset: 1.5px 2px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 220, 170, .18) 0 1px, rgba(0, 0, 0, 0) 1px 45%, rgba(40, 8, 0, .22) 100%), linear-gradient(90deg, #5e1a04, #8a300a 14%, #92360c 50%, #8a300a 86%, #5e1a04);
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%, 7px 50%); }
/* pieces stand in the open scene; their name sits on a small chamfered smoked-glass plate so leaves pass behind it */
.tg-box .ltd-row .piece-opt { padding: 6px 2px 4px; }
.tg-box .ltd-row .piece-opt .pedestal::after { content: ''; position: absolute; inset: -6% -14% -4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(22, 8, 3, .66) 0%, rgba(22, 8, 3, .42) 55%, rgba(22, 8, 3, 0) 100%); }
.tg-box .ltd-row .piece-opt .pc-name {
  display: table; margin: 4px auto 0; padding: 1px 9px 2px; border-radius: 0;
  color: #f8ead2; text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
  background: rgba(30, 11, 4, .76); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: inset 0 0 0 1px rgba(255, 198, 120, .22);
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
}
.tg-box .ltd-row .piece-opt.sel .pc-name { color: var(--gold2); box-shadow: inset 0 0 0 1px rgba(255, 215, 106, .55); }
/* "Thanksgiving 2026 Limited": a carved walnut tag with chamfered corners and a gilt edge, matching the frame */
.tg-box .ltd-tag { isolation: isolate; padding: 2px 8px 3px; border: 0; border-radius: 0; color: #fff3de; text-shadow: 0 1px 1px rgba(30, 8, 0, .85);
  background: linear-gradient(135deg, #fff1b8, #e9b23c 35%, #8a5a12 65%, #ffd76a); box-shadow: none;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
.tg-box .ltd-tag::before { content: ''; position: absolute; inset: 1px; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(2deg, rgba(255, 210, 150, 0) 0 2px, rgba(255, 210, 150, .07) 2px 3px, rgba(30, 8, 0, 0) 3px 5px, rgba(30, 8, 0, .2) 5px 6px), linear-gradient(180deg, #7a3a16, #5a260a 60%, #4a1e08);
  clip-path: polygon(3.5px 0, calc(100% - 3.5px) 0, 100% 3.5px, 100% calc(100% - 3.5px), calc(100% - 3.5px) 100%, 3.5px 100%, 0 calc(100% - 3.5px), 0 3.5px); }
/* ??? ULTRA RARE: still no gold (Anton 2026-11-20: pure dark silhouette, no gold shown); a cool moonlit sheen sweeps
   across the card and a faint silver halo breathes behind the silhouette, so it reads as special without spoiling it. */
.tg-box .piece-mystery {
  z-index: 3; overflow: hidden; padding: 8px 6px 9px; border-radius: 16px;
  background: radial-gradient(70% 55% at 50% 38%, rgba(150, 170, 220, .24), rgba(150, 170, 220, 0) 72%), linear-gradient(180deg, rgba(22, 26, 40, .9), rgba(12, 14, 24, .92));
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1.5px dashed rgba(190, 204, 232, .5); box-shadow: inset 0 0 18px rgba(140, 160, 220, .14), 0 6px 14px rgba(0, 0, 0, .35);
}
.tg-box .piece-mystery > * { position: relative; z-index: 1; }   /* sheen passes behind the ??? and the tag */
.tg-box .piece-mystery::after {
  content: ''; position: absolute; inset: -20% -60%; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(220, 230, 255, 0) 40%, rgba(220, 230, 255, .16) 47%, rgba(255, 255, 255, .3) 50%, rgba(220, 230, 255, .16) 53%, rgba(220, 230, 255, 0) 60%);
  transform: translateX(-70%); animation: tgSheen 4.8s ease-in-out .6s infinite;
}
.tg-box .piece-mystery .pedestal { background: radial-gradient(circle at 50% 52%, rgba(170, 186, 226, .5) 0%, rgba(70, 80, 112, .3) 58%, transparent 74%); animation: tgHalo 3.6s ease-in-out infinite; }
/* ULTRA RARE: a stamped slate plate with a cool silver edge (silver only, no pill) */
.tg-box .mystery-tag { border: 0; border-radius: 0; padding: 2px 9px 3px; background: linear-gradient(180deg, #2a3248, #171c2a); color: #e4eaf6; box-shadow: inset 0 0 0 1px rgba(200, 212, 238, .55), inset 0 2px 0 rgba(255, 255, 255, .1);
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
.tg-box .piece-mystery .pc-name {
  display: table; margin: 4px auto 0; padding: 1px 9px 2px; color: #f8ead2; text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
  background: rgba(30, 11, 4, .76); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: inset 0 0 0 1px rgba(255, 198, 120, .22);
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
}
/* tgvisual-1128: the header plate steps in from the wider frame's corners (wheat sprays), and on the narrowest phones the Limited
   tags keep inside their cells (the frame's extra width came out of the row) */
.tg-box > .tg-plate { margin-left: 6px; margin-right: 6px; }
@media (max-width: 380px) { .tg-box .ltd-row { column-gap: 4px; } .tg-box .ltd-tag { padding-left: 5px; padding-right: 5px; letter-spacing: 0; } }
@keyframes tgSheen { 0% { transform: translateX(-70%); } 38%, 100% { transform: translateX(70%); } }
@keyframes tgHalo { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }
@media (prefers-reduced-motion: reduce) { .tg-box .piece-mystery::after, .tg-box .piece-mystery .pedestal { animation: none; } .tg-box .piece-mystery::after { opacity: 0; } }
@media (max-width: 760px) {
  .comm-section.tg-box { --tg-frame: 10px; --tg-fw: 19px; --tg-r: 11px; --tg-corner: 106px; padding: 18px 11px 14px; margin-top: 24px;
    background:
      radial-gradient(110% 80% at 50% 50%, rgba(26, 10, 6, .34) 0%, rgba(26, 10, 6, .14) 64%, rgba(26, 10, 6, 0) 100%) padding-box,
      url(art/event/tg_box_bg_tall.webp?v=2a5d664013) center 42% / cover padding-box, #3a1a0c padding-box; }
  .tg-box .tg-plate { padding: 8px 6px 9px; margin-bottom: 8px; border-radius: 12px; }
  .tg-box .comm-head { padding-bottom: 7px; margin-bottom: 7px; }
  .tg-box .comm-days { padding: 3px 10px; clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 50%, 100% 100%, 0 100%, 6px 50%); }
  .tg-box .comm-days::before { clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 50%, 100% 100%, 0 100%, 5px 50%); }
  .tg-box .ltd-row .piece-opt .pc-name { padding: 1px 8px 2px; }
}

/* ---------------------------------------------------------------- "Deck reshuffled" sign (reshuffle 1127, Anton 13:11 ET)
   A board-styled chamfered plate (no pill, no round corners): Ironbrook riveted iron with a copper rim, Goldspire navy with a gold bevel, Nexus deep
   violet with a neon rim. The deck's card back fans, splits into two packets, riffles together and settles in a small fan.
   Only the plate takes a tap (to dismiss); it sits below the board tabs and Zoom, never over the action bar. */
.rs-sign { --cut: 11px; position: fixed; left: 50%; z-index: 7600; transform: translateX(-50%); width: min(360px, calc(100vw - 24px)); box-sizing: border-box;
  display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 12px; border: 0; border-radius: 0; overflow: hidden; isolation: isolate;
  cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; user-select: none; color: #fff;
  --face1: #3b302a; --face2: #1d1714; --rim1: #f0a868; --rim2: #8a4b22; --kick: #ff9a3c;
  /* chamfered plate (no pill, no rounded corners): the rim is the plate itself, the face (::before) sits 2px inside it with the same cut */
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  background: linear-gradient(135deg, var(--rim1), var(--rim2) 55%, var(--rim1));
  animation: rsIn .34s cubic-bezier(.2, 1.3, .4, 1) both; }
.rs-sign::before { content: ''; position: absolute; inset: 2px; z-index: -1; pointer-events: none;
  clip-path: polygon(calc(var(--cut) - 1px) 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, calc(var(--cut) - 1px) 100%, 0 calc(100% - var(--cut) + 1px), 0 calc(var(--cut) - 1px));
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 2px), linear-gradient(180deg, var(--face1), var(--face2)); }
.rs-sign[data-board="ironbrook"]::before { background:
  radial-gradient(circle at calc(100% - 16px) 6px, #e9b184 0 1.5px, #5a3418 2.1px, transparent 2.5px),
  radial-gradient(circle at calc(100% - 16px) calc(100% - 6px), #e9b184 0 1.5px, #5a3418 2.1px, transparent 2.5px),
  radial-gradient(circle at 16px 6px, #e9b184 0 1.5px, #5a3418 2.1px, transparent 2.5px),
  radial-gradient(circle at 16px calc(100% - 6px), #e9b184 0 1.5px, #5a3418 2.1px, transparent 2.5px),
  repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 5px),
  linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 2px), linear-gradient(180deg, var(--face1), var(--face2)); }
.rs-sign[data-board="goldspire"] { --face1: #1f2f5c; --face2: #0e1736; --rim1: #ffe9a3; --rim2: #b8860b; --kick: #ffd76a; }
.rs-sign[data-board="nexus"] { --face1: #1c0f44; --face2: #090a22; --rim1: #4dd8ff; --rim2: #b04dff; --kick: #7fe6ff; }
.rs-sign::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%); transform: translateX(-120%); animation: abShine 1.1s .5s ease-out both; }
.rs-sign.out { animation: rsOut .22s ease-in both; }
.rs-fan { position: relative; flex: 0 0 68px; height: 60px; }
.rs-card { position: absolute; left: 50%; bottom: 3px; width: 34px; height: 48px; border-radius: 4px; object-fit: cover; transform-origin: 50% 92%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 3px 6px rgba(0, 0, 0, .45); transform: translate(calc(-50% + var(--fx, 0px)), 0) rotate(var(--a));
  animation: rsRiffle 1.25s cubic-bezier(.45, .05, .3, 1) var(--d, 0ms) both; }
.rs-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.rs-kick { font: 800 11px var(--font-display, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--kick); }
.rs-title { font: 800 16.5px var(--font-display, sans-serif); color: #fff; overflow-wrap: anywhere; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.rs-sub { font-size: 12px; color: #dfe2f6; }
@keyframes rsIn { from { opacity: 0; transform: translate(-50%, -10px) scale(.94); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes rsOut { to { opacity: 0; transform: translate(-50%, -8px) scale(.97); } }
@keyframes rsRiffle {
  0% { opacity: 0; transform: translate(-50%, 8px) rotate(0deg); }
  10% { opacity: 1; transform: translate(-50%, 0) rotate(0deg); }
  26% { transform: translate(-50%, 0) rotate(var(--a)); }
  42% { transform: translate(calc(-50% + var(--sx)), 0) rotate(var(--sr)); }
  52% { transform: translate(calc(-50% + var(--sx) * .7), -5px) rotate(calc(var(--sr) * .8)); }
  62% { transform: translate(calc(-50% + var(--sx) * .35), -2px) rotate(calc(var(--sr) * .4)); }
  76% { transform: translate(-50%, 0) rotate(0deg); }
  84% { transform: translate(-50%, 1px) rotate(0deg); }
  100% { opacity: 1; transform: translate(calc(-50% + var(--fx, 0px)), 0) rotate(var(--a)); }
}
.rs-sign.reduced, .rs-sign.reduced.out, .rs-sign.reduced::after, .rs-sign.reduced .rs-card { animation: none !important; }
.rs-sign.reduced::after { display: none; }
@media (prefers-reduced-motion: reduce) { .rs-sign, .rs-sign.out, .rs-sign::after, .rs-card { animation: none !important; } .rs-sign::after { display: none; } }

/* ---------------------------------------------------------------- Locked ??? ULTRA RARE tile (lockedtitle-1127, Anton 2026-11-27 "please fix this")
   The crowned silhouette (a PNG) is gone: the mystery is a code-drawn crownless crest (app.js LOCK_CREST_SVG), still a pure dark
   silhouette with only a cool silver edge (no gold, 11-20). No rounded card, no pill: the card is a chamfered slate plate whose rim
   is the plate itself (face = ::before 1.5px inside, same cut), and the rarity label is a notched plate with a silver bevel. */
.piece-mystery .pc-img svg, .piece-mystery .lock-crest { display: block; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .55)); }
.piece-mystery, .tg-box .piece-mystery {
  --cut: 12px; border: 0; border-radius: 0; isolation: isolate; box-shadow: none;
  background: linear-gradient(135deg, rgba(222, 230, 246, .72), rgba(104, 116, 142, .55) 45%, rgba(46, 54, 74, .7) 70%, rgba(198, 208, 230, .66));
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.piece-mystery::before { content: ''; position: absolute; inset: 1.5px; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 52% at 50% 36%, rgba(150, 170, 220, .26), rgba(150, 170, 220, 0) 72%), linear-gradient(180deg, #1a2032, #0c0f19 70%, #090b13);
  clip-path: polygon(calc(var(--cut) - .6px) 0, calc(100% - var(--cut) + .6px) 0, 100% calc(var(--cut) - .6px), 100% calc(100% - var(--cut) + .6px), calc(100% - var(--cut) + .6px) 100%, calc(var(--cut) - .6px) 100%, 0 calc(100% - var(--cut) + .6px), 0 calc(var(--cut) - .6px)); }
.piece-mystery > * { position: relative; z-index: 1; }
/* rarity label: notched plate (V-notched ends + silver bevel), never a capsule */
.mystery-tag, .tg-box .mystery-tag {
  position: relative; isolation: isolate; border: 0; border-radius: 0; margin-top: 5px; padding: 3px 13px 4px;
  background: linear-gradient(135deg, #eef2fb, #8d98b0 45%, #4a5470 70%, #d4dbea); color: #eef2fb; box-shadow: none;
  font: 700 9px var(--font-display); letter-spacing: .1em; text-transform: uppercase; line-height: 1.25; white-space: nowrap; text-shadow: 0 1px 1px rgba(0, 0, 0, .85);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 50%, 100% 100%, 0 100%, 6px 50%);
}
.mystery-tag::before { content: ''; position: absolute; inset: 1.2px 1.6px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14) 0 1px, rgba(255, 255, 255, 0) 1px 50%, rgba(0, 0, 0, .25) 100%), linear-gradient(90deg, #121726, #252d44 18%, #2c3550 50%, #252d44 82%, #121726);
  clip-path: polygon(0 0, 100% 0, calc(100% - 5.2px) 50%, 100% 100%, 0 100%, 5.2px 50%); }
/* Anton 2026-11-28 05:21-05:22: the mystery turkey stays blacked out, but with NO dark card behind it, it should look 3D, and it moves like
   the other commemorative tokens. So: the real Golden Turkey model darkened to an obsidian silhouette (its 3D shading kept, no gold showing),
   no plate, no blur, no sheen, and the same pieceBubble motion as its neighbours. */
.piece-mystery, .tg-box .piece-mystery { background: none; clip-path: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible; }
.piece-mystery::before, .tg-box .piece-mystery::after { display: none; }
.tg-box .piece-mystery .pedestal { background: none; animation: none; }
.piece-mystery img, .tg-box .piece-mystery img { filter: grayscale(1) brightness(.32) contrast(1.45) drop-shadow(0 4px 5px rgba(0, 0, 0, .45)); opacity: 1; }
.piece-pick .ltd-row .piece-mystery .pc-img { transform-origin: 50% 55%; animation: pieceBubble 2.5s ease-in-out -2.55s infinite; }
@media (prefers-reduced-motion: reduce) { .piece-pick .ltd-row .piece-mystery .pc-img { animation: none; } }
/* Anton 2026-11-28 05:28 on the Thanksgiving box shot: "make the icons bigger". The four commemorative tokens (Cornucopia, Pumpkin Pie,
   Harvest Wagon, the obsidian mystery turkey) use the room in their cells: desktop 82/78 -> 108 px (+32/+38%), phone 70 -> 96 px (+37%).
   width stays 100% of the cell, so a narrower cell (360 px phone) shrinks them instead of overflowing. Names, Limited tags and the
   ULTRA RARE plate keep their size and sit below the token; the bounce (pieceBubble) is unchanged. */
.tg-box .ltd-row .piece-opt .pedestal, .tg-box .piece-mystery .pedestal { max-width: 108px; }
@media (max-width: 760px) { .tg-box .ltd-row .piece-opt .pedestal, .tg-box .piece-mystery .pedestal { max-width: 96px; } }
/* the base limited tag (outside the walnut box) follows the same no-pill rule */
.ltd-tag { border-radius: 0; clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
/* Golden Turkey rare-drop chip in the players list: notched gold plaque like the title chip, not a capsule */
.tag-pill.gold-turkey { border: 0; border-radius: 0; padding: 2px 12px; clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 50%, 100% 100%, 0 100%, 6px 50%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -1.5px 0 rgba(138, 90, 18, .6); }

/* ---------------------------------------------------------------- No-pill sweep (lockedtitle-1127, Anton 2026-11-27 "please fix this" on the
   turn panel's "no timer" chip). Every text tag that was a capsule is now a plate: V-notched ends (the rarity plate / title chip shape) for
   tags, small chamfered corners for counters and filters. Buttons, avatars, sliders, board lot plates and the Deal Offer pop-up
   (being rebuilt on dealoffer-1127) are not touched here. */
/* turn timer plate (Anton 06:55 ET 2026-11-28: "That button looks very out of place and the no timer font and look is off"): no icon,
   the turn header's own font (#turnWho: Fredoka 700), the city tag's notched plate beside it at the same height (11px x 1.35 + 2px
   padding top and bottom = 18.85px), letter-spacing and caps. "no timer" / "paused" are quiet; a countdown is clear tabular numerals;
   low time (< 10 s) turns the plate red. */
.timer { --tm-h: calc(11px * 1.35 + 4px); flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 1px; position: relative;
  box-sizing: border-box; height: var(--tm-h); min-width: 0; padding: 0 12px; border: 0; border-radius: 0; white-space: nowrap;
  font: 700 11.5px/1 Fredoka, sans-serif; letter-spacing: .5px; text-transform: uppercase; font-synthesis: none;
  color: rgba(214, 222, 255, .62); background: rgba(116, 143, 252, .14); box-shadow: none; text-shadow: 0 1px 1px rgba(0, 0, 0, .55);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 50%, 100% 100%, 0 100%, 6px 50%); }
.timer::before { content: none; }
.timer .tm-num { font: 700 15px/1 Fredoka, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .3px; color: var(--gold3); }
.timer .tm-txt:empty, .timer .tm-num:empty { display: none; }
.timer[data-mode="timer"] { background: rgba(255, 214, 120, .16); }
.timer.low { color: #ffd6d6; background: rgba(239, 68, 68, .34); box-shadow: inset 0 0 0 1px rgba(255, 120, 120, .9); animation: tmLow 1s ease-in-out infinite; }   /* a glow pulse, not a scale pulse: the plate keeps its size in the header */
@keyframes tmLow { 50% { filter: brightness(1.3); } }
.timer.low .tm-num { color: #fff0f0; text-shadow: 0 0 6px rgba(239, 68, 68, .9), 0 1px 1px rgba(0, 0, 0, .7); }
/* jail / prison marker (Anton 06:57 ET 2026-11-28: "no box or container"): the bare hourglass by the token on the board and by the name
   in Players; only a soft drop shadow for legibility */
.jail-mark { display: inline-block; flex: none; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .75)) drop-shadow(0 0 3px rgba(0, 0, 0, .35)); }
.jail-mark .jail-hg { display: block; width: 100%; height: 100%; overflow: visible; }
.jail-mark .jh-sand { fill: #f2b632; } .jail-mark.prison .jh-sand { fill: #ff5a4f; }
.jail-mark .jh-wood { fill: #d9a23a; } .jail-mark.prison .jh-wood { fill: #c98a2e; }
.token .lock.jail-mark { position: absolute; right: -30%; top: -36%; width: 60%; height: 72%; background: none; border: 0; border-radius: 0; color: inherit; font: inherit; display: block; }
/* status / city / rival / market / deal-type tags (IRONBROOK, THE DEALMAKER, NORMAL, BOOM, OUT, LOCK, BIX, Harvest Pin, ...) */
.tag-pill { border-radius: 0; padding-left: 11px; padding-right: 11px; clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 50%, 100% 100%, 0 100%, 6px 50%); }
/* secret-title badge (??? / Ultra Tycoon) in the titles strip: notched plate; its ring moves inside so the notch does not cut it off */
.title-badge { border-radius: 0; padding-left: 13px; padding-right: 13px; box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%, 7px 50%); }
.title-badge.on { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -1.5px 0 rgba(138, 90, 18, .55); }
/* Thanksgiving Special badge (home + HUD): chamfered walnut plate, the gilt rim is the plate itself (face = ::before) */
.ev-badge { position: relative; isolation: isolate; border: 0; border-radius: 0; box-shadow: none; --cut: 7px;
  background: linear-gradient(135deg, #fff1b8, #e9b23c 35%, #8a5a12 65%, #ffd76a);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
.ev-badge::before { content: ''; position: absolute; inset: 1.5px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(166, 68, 16, .97), rgba(102, 38, 10, .98));
  clip-path: polygon(calc(var(--cut) - .6px) 0, calc(100% - var(--cut) + .6px) 0, 100% calc(var(--cut) - .6px), 100% calc(100% - var(--cut) + .6px), calc(100% - var(--cut) + .6px) 100%, calc(var(--cut) - .6px) 100%, 0 calc(100% - var(--cut) + .6px), 0 calc(var(--cut) - .6px)); }
/* held cards ("Free Pass" etc.), the title-screen tagline, the passive note, the ranking kicker, money pops, the teleport price tag (the floating owner tag keeps its pointer, see report) */
.held span, .ts-title .tag, .pv-note, .rk-kick, .money-pop b, .tp-pill { border-radius: 0;
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px); }
.rk-kick { border: 0; box-shadow: inset 0 0 0 1.5px var(--gold, #f2b632); }
/* money pop: its double ring moves inside the chamfered plate (an outer ring would be cut off by the corners) */
.money-pop b { padding: 4px 14px 5px; box-shadow: inset 0 0 0 2px #8a4b05, inset 0 0 0 3.5px #fff3c4, inset 0 -6px 10px rgba(138, 75, 5, .25); }
.money-pop.out b { box-shadow: inset 0 0 0 2px #6e1a0c, inset 0 0 0 3.5px #ffe3dc; }
.money-pop { filter: drop-shadow(0 0 10px rgba(255, 200, 60, .55)) drop-shadow(0 5px 6px rgba(0, 0, 0, .4)); }
.money-pop.out { filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .45)); }

/* Earned secret-title plaque (TRANSIT TITAN etc.): moving shine sweep (Anton 2026-11-28 05:58 "way better, can we do a motion shiny banner?").
   Transform-only sweep on a pseudo layer inside the plaque's own notched clip; static under reduced motion. */
.tag-pill.title { position: relative; isolation: isolate; overflow: hidden; }
.tag-pill.title::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: 0; width: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 252, 230, .15) 30%, rgba(255, 255, 255, .85) 50%, rgba(255, 252, 230, .15) 70%, rgba(255, 255, 255, 0) 100%);
  mix-blend-mode: screen; transform: translateX(-130%) skewX(-18deg); animation: titleShine 3.2s cubic-bezier(.45, 0, .2, 1) infinite;
}
@keyframes titleShine { 0% { transform: translateX(-130%) skewX(-18deg); } 45%, 100% { transform: translateX(330%) skewX(-18deg); } }
@media (prefers-reduced-motion: reduce) { .tag-pill.title::after { animation: none; opacity: 0; } }

/* ---------------------------------------------------------------- No pull-to-refresh in a game (pullrefresh-1128, Anton 13:28 ET 2026-11-28:
   "every swipe down refreshed the screen"). A downward swipe at the top of the page that starts outside the board (tabs, frame, Bix bar,
   Turn Card, panels) chains to the page, and the phone browser turns that into pull-to-refresh, which reloads mid-game. Stopping the chain on
   the page itself turns the gesture off; ordinary scrolling, the board's own pinch / pan / double-tap and inner lists are untouched.
   Both elements, because Chrome reads the page's value from <html> since 140 and from <body> before it; Safari reads <html> (16+).
   html.tct-game is set by app.js show() with body[data-screen]. y only: the sideways back / forward swipe stays. none, not contain:
   contain still lets iOS bounce the page at the top, which drags the pinned board down under the finger.
   iOS Safari is not fully reliable here (WebKit bug 275947; iOS 15 has no overscroll-behavior), so boardpin.js adds a guarded touch fallback there. */
html.tct-game, body[data-screen="game"] { overscroll-behavior-y: none; }

/* ---------------------------------------------------------------- Phone board pin (pinfix-1128, Anton 11:12 ET 2026-11-28: "on mobile the
   board screen is not pinned"). Desktop pins the whole board column (sticky .board-col, >= 1024 px, above). On a portrait phone the column is
   too tall for that (with the Bix bar it is 500 px of a 640 px screen), so the column opens up (display: contents) and its rows pin one under
   the other: city tabs at the top, the ticker under them, the board (or its Thanksgiving frame) under the ticker. The Bix bar and the side
   column (Turn Card, Players, panels, log) scroll up beneath the board. boardpin.js sets body.board-pinned only when the pinned rows fit in
   70% of the window (a landscape phone, where the board is taller than the screen, keeps the plain scrolling page), and --pin-tk / --pin-vp from the measured rows.
   Sticky only: no transform / filter / will-change, so the board's fixed children (deed layer, dice) keep their positioning. */
@media (max-width: 900px) {
  body[data-screen="game"].board-pinned .board-col { display: contents; }
  body[data-screen="game"].board-pinned .board-col > .board-tabs { position: sticky; top: 0; z-index: 6; margin-bottom: 0; padding-top: 4px; padding-bottom: 6px; }
  body[data-screen="game"].board-pinned .game-grid { padding-top: 0; row-gap: 0; }   /* the rows are grid items now: no grid gap between them */
  body[data-screen="game"].board-pinned .side-col { margin-top: 14px; }                /* the gap the column used to have */
  /* the Turn Card still carried z-index 3000 from the old fixed-bottom phone card (style.css); in flow it would now ride OVER the pinned
     board as it scrolls up. 1 keeps it above its own column; the deed pop-up layer (z 3000, in <body> on phones) still sits above it. */
  body[data-screen="game"].board-pinned #game .turn-card { z-index: 1; }
  body[data-screen="game"].board-pinned .board-col > .ticker { position: sticky; top: var(--pin-tk, 44px); z-index: 6; }
  body[data-screen="game"].board-pinned #game .board-col > :is(.board-viewport, .hv-frame) {   /* #game: outranks harvest-borders.css "#game .hv-frame { position: relative }" */ position: sticky; top: var(--pin-vp, 70px); z-index: 6; }
  /* swipefix-1128 (Anton 12:35 ET 2026-11-28, "swipe is buggy"): a finger drag on the board brings up Re-centre / Follow play; as a third tab
     it wrapped the city tabs onto a second line, so the pinned tabs row grew 35 px and the board dropped 35 px under the finger. Pinned, it
     floats over the board's top-right corner, just under the Zoom button (boardpin.js measures --pin-fb-top / --pin-fb-right), and the tabs
     row stacks above the board so the tab is never under it. */
  body[data-screen="game"].board-pinned .board-col > .board-tabs { z-index: 7; }
  body[data-screen="game"].board-pinned .board-col > .board-tabs .tab.follow { position: absolute; top: var(--pin-fb-top, 120px); right: var(--pin-fb-right, 14px); margin: 0; min-height: 36px; box-shadow: 0 3px 8px rgba(0, 0, 0, .45); }
  /* once scrolled, the tabs row gets a backdrop so the panels scrolling up under it never show between the tabs */
  body[data-screen="game"].board-pinned.board-stuck .board-col > .board-tabs { background: linear-gradient(180deg, #070b20, rgba(9, 14, 38, .97)); }
  body[data-screen="game"].board-pinned.board-stuck.hv-borders .board-col > .board-tabs { background: linear-gradient(180deg, #1a0a03, rgba(30, 12, 5, .97)); }
}

/* ---------------- Lobby container (Anton 09:33 ET 2026-11-28, desktop ~1000 px: "can we do something about the huge container:
   either make it transparent, change the style, get rid of it, something, cause on PC it doesn't hit").
   Two looks, switched by a class on <body> (index.html sets the default):
     body.lobby-a  NO CONTAINER: the lobby floats on the board backdrop as one column (900 px max). Section labels sit on small
                   chamfered plates, the piece row gets a dark scrim strip only behind the pieces and their names (the name field
                   is its own dark well), the Thanksgiving box stands on its own carved frame, footnotes get a slim plate.
     body.lobby-b  GLASS: the container stays but as translucent navy glass (blur, ~60 % fill) with one brass hairline,
                   a 12 px chamfer instead of the 26 px rounding, and tighter padding.
   Nothing here touches the Thanksgiving box, the piece art or any button logic. No rounded pills, no purple.
   Text contrast measured from pixels over the moving backdrop: tgvisual1128/lobby/REPORT.md. */
body { --lb-ink-bg: rgba(6, 9, 26, .8); }   /* chamfers are written out (a var() polygon defined on body would resolve --c there) */

/* --- shared by both: the footnotes under the lobby read on a slim smoked plate (they sat bare on the backdrop) */
body:is(.lobby-a, .lobby-b) #home .ts-foot, body:is(.lobby-a, .lobby-b) #home .ts-legal {
  width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; padding: 3px 12px 4px; clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
  background: var(--lb-ink-bg); color: #d9dcef; opacity: 1; }

/* --- Option A: no container */
body.lobby-a #home .ts-wrap { width: min(900px, 100%); }
body.lobby-a #joinBox.ts-panel { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; padding: 0; }
body.lobby-a #joinBox .ts-modes { margin-bottom: 18px; }
/* section labels: small chamfered ink plates with a brass tick */
body.lobby-a #joinBox :is(.np-label, .ts-lbl) { width: fit-content; position: relative; padding: 4px 12px 4px 14px; margin: 0 0 8px; clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
  background: linear-gradient(90deg, #e9b23c 0 3px, transparent 3px), var(--lb-ink-bg); color: #ffd76a; }
body.lobby-a #joinBox .nameplate { display: block; margin-bottom: 16px; }
/* the piece row: each classic piece tile is a slice of one dark strip (spread = half the gap, so the slices meet with no seam) */
body.lobby-a #piecePick { --lb-gap: 8px; gap: var(--lb-gap); padding: 0 calc(var(--lb-gap) / 2); }
body.lobby-a #piecePick > .piece-opt { border-radius: 0; padding-top: 6px; background: rgba(6, 9, 26, .62); box-shadow: 0 0 0 calc(var(--lb-gap) / 2) rgba(6, 9, 26, .62); }
body.lobby-a #piecePick > .piece-opt .pc-name { color: #e4e7f6; padding-bottom: 3px; }
body.lobby-a #piecePick > .piece-opt.sel .pc-name { color: #ffd76a; }
body.lobby-a #piecePick > .comm-section { margin-left: calc(var(--lb-gap) / -2); margin-right: calc(var(--lb-gap) / -2); }
body.lobby-a #piecePick > .comm-section.tg-box { margin-top: 30px; }
body.lobby-a #joinBox .home-foot { margin-top: 18px; }
/* friends pane: its title and the "or" sit on the backdrop now */
body.lobby-a #joinBox .pane-title { padding: 4px 12px; clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px); background: var(--lb-ink-bg); }
@media (max-width: 760px) {
  body.lobby-a #piecePick { --lb-gap: 8px; }
  /* phone: a little side room so the Thanksgiving box's corner bosses stay on screen at 360 */
  body.lobby-a #joinBox.ts-panel { padding: 0 6px; }
}

/* --- Option B: navy glass. The glass and the hairline are the panel's two pseudo-elements, each cut to the chamfer; the panel
   itself is not clipped, so the Thanksgiving box's corner bosses (they reach past the panel edge on phone) stay whole. */
body.lobby-b #joinBox.ts-panel { position: relative; isolation: isolate; border: 0; border-radius: 0; padding: 14px 16px 12px; box-shadow: none; background: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
body.lobby-b #joinBox.ts-panel::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  background: linear-gradient(170deg, rgba(30, 40, 88, .65), rgba(9, 13, 36, .65));
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); }
/* the single brass hairline, following the chamfer: a 1 px frame cut with an even-odd polygon (outer ring + inner ring) */
body.lobby-b #joinBox.ts-panel::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(135deg, #fff1b8, #e9b23c 30%, #8a5a12 60%, #ffd76a);
  clip-path: polygon(evenodd, 12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px, 12px 0,
    12.4px 1px, calc(100% - 12.4px) 1px, calc(100% - 1px) 12.4px, calc(100% - 1px) calc(100% - 12.4px), calc(100% - 12.4px) calc(100% - 1px), 12.4px calc(100% - 1px), 1px calc(100% - 12.4px), 1px 12.4px, 12.4px 1px); }
body.lobby-b #joinBox .ts-modes { margin-bottom: 12px; }
body.lobby-b #joinBox .nameplate { margin-bottom: 10px; }
body.lobby-b #piecePick { margin-bottom: 10px; }
body.lobby-b #joinBox .home-foot { margin-top: 12px; }
@media (max-width: 760px) {
  body.lobby-b #joinBox.ts-panel { padding: 12px 10px 10px; }
}
/* piece names over the glass: brighter ink (the default --ink2 fell to 3.2:1 where the glass sits over bright sky) */
body.lobby-b #piecePick > .piece-opt .pc-name { color: #e4e7f6; }
body.lobby-b #piecePick > .piece-opt.sel .pc-name { color: #ffd76a; }

/* ================================================================ prop-colour-1128 BEGIN (moneyfix2-1128 branch; keep this block whole for rebases)
   Anton 14:56 ET 2026-11-28 on the settle-up "Or let it foreclose" rows: "the let it go buttons should be the color of the property",
   "property should always be displayed by its color". Every row or line that names a property carries its Color Set colour
   (or its transit / utility kind band), the same colour as its title deed. Vars come from propVars(i) in app.js:
   --setc colour, --setink text on it, --setplate the colour a labelled plate wears (>= 5:1 with its ink), --setrim a rim that reads on walnut (dark sets lifted toward cream),
   --setline the row hairline. Real thing: a title deed's coloured strip, here a strip down the row's left edge like a deed
   tab, and the row's one action a plate in the deed's own colour. No pills; the colours are the boards' canon.
   Anton's UI rule: no rounded corners anywhere (radius 0); the corner shape is the calm turn panel's clip-path chamfer (--c 5px). */
#game :is(.side-col, .bix-bar, #actions, .settle) .btn.opt-row[data-prop] { padding-left: 18px;
  box-shadow: inset 6px 0 0 var(--setc), inset 7px 0 0 var(--setrim), inset 0 0 0 1.5px var(--setline), inset 0 1px 0 rgba(255, 220, 170, .3), inset 0 -4px 0 rgba(26, 8, 2, .85); }
#game :is(.side-col, .bix-bar, #actions, .settle) .btn.opt-row[data-prop] > :is(.opt-main, .opt-act) { position: relative; z-index: 1; }   /* above the .btn gloss (it sat over the name: 4.28:1 on desktop) */
#game :is(.side-col, .bix-bar, #actions, .settle) .btn.opt-row[data-prop]::before { opacity: .45; left: 14px; }   /* a softer gloss that starts after the strip */
#game :is(.side-col, .bix-bar, #actions, .settle) .btn.opt-row[data-prop] .opt-act { background: var(--setplate, var(--setc)); color: var(--setink); text-shadow: none; font-weight: 800;
  min-height: 30px; display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 0; box-sizing: border-box;
  --c: 5px; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  box-shadow: inset 0 0 0 1px var(--setrim), inset 0 -2px 0 rgba(0, 0, 0, .22), 0 1px 0 rgba(0, 0, 0, .35); }
/* the mortgage pick list (checkbox rows): the same strip and hairline; picked rows keep the gold check and gold edge */
#game .settle .settle-item[data-prop] { padding-left: 16px; border-radius: 0; --c: 5px; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  border-color: var(--setline); box-shadow: inset 6px 0 0 var(--setc), inset 7px 0 0 var(--setrim); }
#game .settle .settle-item[data-prop].on { border-color: var(--gold); }
/* a property named in a line of text (buy prompt, auction, Express Line): a small chip in its colour before the name */
.prop-chip { display: inline-block; width: 11px; height: 14px; margin: 0 6px 0 1px; vertical-align: -2px; border-radius: 0; flex: none;
  background: var(--setc); box-shadow: 0 0 0 1px var(--setrim), 0 1px 2px rgba(0, 0, 0, .45); }
.btn.prop-btn .prop-chip { position: relative; z-index: 1; }
/* ================================================================ prop-colour-1128 END */

/* ================================================================ secret-titles-gold-1128 BEGIN (moneyfix2-1128 branch; keep whole for rebases)
   Anton 15:29 ET 2026-11-28: the locked Secret titles chips (padlock + "???" on the walnut notch tag) go GOLD and breathe softly.
   Brass/gold of the Golden Turkey and the earned titles; text #f6cf62 on the walnut reads ~9:1. The breath is the opacity of one
   pseudo-element (an inner gold radiance behind the text, clipped by the notch) from .35 to .75 over 3.2 s, each chip offset so
   they never pulse in unison. Opacity only: no layout shift, GPU-cheap. Reduced motion: a static soft glow. Earned (.on) untouched. */
#game #titles .title-badge:not(.on) { position: relative; isolation: isolate; color: #f6cf62; text-shadow: 0 0 6px rgba(255, 196, 80, .45), 0 1px 0 rgba(40, 12, 0, .8);
  box-shadow: inset 0 0 0 1px rgba(246, 207, 98, .6); }
#game #titles .title-badge:not(.on)::before { background: linear-gradient(180deg, #fff1b8, #f6cf62 45%, #d89a2a); opacity: 1; filter: drop-shadow(0 0 2px rgba(255, 200, 90, .6)); }
#game #titles .title-badge:not(.on)::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 90% at 50% 50%, rgba(255, 206, 96, .55), rgba(233, 168, 48, .18) 60%, rgba(233, 168, 48, 0) 85%);
  opacity: .35; will-change: opacity; animation: secretBreath 3.2s ease-in-out infinite; }
#game #titles .title-badge:not(.on):nth-child(3n+2)::after { animation-delay: -1.1s; }
#game #titles .title-badge:not(.on):nth-child(3n)::after { animation-delay: -2.2s; }
@keyframes secretBreath { 0%, 100% { opacity: .35; } 50% { opacity: .75; } }
@media (prefers-reduced-motion: reduce) { #game #titles .title-badge:not(.on)::after { animation: none; opacity: .55; } }
/* ================================================================ secret-titles-gold-1128 END */

/* ---------------- Thanksgiving: the carved frame IS the lobby container (Anton 10:51 ET 2026-11-28, desktop: "the frame needs to be
   the container. That entire frame that the tokens are in needs to frame everything in that container. Get rid of the container.")
   While the harvest borders are on (body.hv-borders: harvest-borders.js, the same Date.UTC 2026-12-13 00:00 EST end check), #joinBox
   (home lobby and the Play with Friends pane) is drawn in the Thanksgiving box's carved walnut frame: the same 9-slice
   (art/event/tg_frame_carved.webp: rope moulding, oak vine with acorns, bead-and-reel) and the same corner pieces (tg_corner.svg:
   oak leaf on the top rail, wheat ear down the side, carved boss with the brass VERSE V, tg_corner_v.svg) as four .lb-corner spans.
   Inside, a dark walnut panel (art/event/lb_walnut.webp, procedural grain, 3 KB) under a soft vignette. The Thanksgiving
   Commemorative box loses its own frame and corners and becomes a full-width harvest band inside the big frame, between two
   gilt bead lines. Off (after Dec 13, or tct.harvest = off): nothing here applies and the lobby is Option A again.
   No rounded pills, no purple. Buttons, handlers and piece art untouched. */
.lb-corner { display: none; }
body.hv-borders:not(.lobby-b) #home .ts-wrap { width: min(940px, 100%); }
body.hv-borders:not(.lobby-b) #joinBox.ts-panel {
  --lf-frame: 16px; --lf-fw: 30px; --lf-corner: 160px; --lf-px: 26px; --lf-pt: 28px; --lf-pb: 26px;
  --lf-ink: rgba(14, 5, 1, .74);
  position: relative; isolation: isolate; margin-top: 18px;
  padding: var(--lf-pt) var(--lf-px) var(--lf-pb);
  border: var(--lf-frame) solid transparent; border-radius: 0;
  border-image: url(art/event/tg_frame_carved.webp?v=73e17127fc) 90 / var(--lf-fw) round;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(70, 36, 14, .22) 0%, rgba(10, 4, 1, 0) 55%, rgba(8, 3, 0, .42) 100%) padding-box,
    url(art/event/lb_walnut.webp?v=291e8fb92b) 0 0 / 512px 256px repeat padding-box, #2a1508 padding-box;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .55), 0 0 40px rgba(242, 140, 40, .16);
}
/* the carved lip's shadow on the walnut, at the drawn frame's inner edge (key light top left) */
body.hv-borders:not(.lobby-b) #joinBox.ts-panel::before {
  content: ''; position: absolute; inset: calc(var(--lf-fw) - var(--lf-frame)); z-index: 0; pointer-events: none; background: none; clip-path: none;
  box-shadow: inset 0 0 0 1px rgba(18, 5, 1, .85), inset 0 10px 14px -7px rgba(6, 2, 0, .7), inset 9px 0 14px -8px rgba(6, 2, 0, .55), inset -6px 0 10px -7px rgba(6, 2, 0, .45), inset 0 -6px 10px -7px rgba(6, 2, 0, .45); }
body.hv-borders:not(.lobby-b) #joinBox.ts-panel::after { content: none; }
body.hv-borders:not(.lobby-b) #joinBox > :not(.lb-corner) { position: relative; z-index: 1; }
body.hv-borders:not(.lobby-b) #joinBox > .lb-corner {
  display: block; position: absolute; z-index: 4; width: var(--lf-corner); height: var(--lf-corner); pointer-events: none;
  background: url(art/event/tg_corner.svg?v=7825d8f58c) center / contain no-repeat; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6));
  /* boss centre (svg 20,20 of 64) on the middle of the drawn frame at the corner (offsets from the padding edge), as on the box */
  --lf-off: calc(.5 * var(--lf-fw) - var(--lf-frame) - var(--lf-corner) * .3125);
}
body.hv-borders:not(.lobby-b) #joinBox > .lb-corner.tl { left: var(--lf-off); top: var(--lf-off); }
body.hv-borders:not(.lobby-b) #joinBox > .lb-corner.tr { right: var(--lf-off); top: var(--lf-off); transform: scaleX(-1); }
body.hv-borders:not(.lobby-b) #joinBox > .lb-corner.bl { left: var(--lf-off); bottom: var(--lf-off); transform: scaleY(-1); }
body.hv-borders:not(.lobby-b) #joinBox > .lb-corner.br { right: var(--lf-off); bottom: var(--lf-off); transform: scale(-1, -1); }
body.hv-borders:not(.lobby-b) #joinBox > .lb-corner::after {   /* the brass VERSE V, upright in all four mirrored corners */
  content: ''; position: absolute; left: 31.25%; top: 31.25%; width: 20.7%; height: 19.1%; translate: -50% -50%;
  background: url(art/event/tg_corner_v.svg?v=42df544481) center / contain no-repeat; transform: inherit; }

/* inside the frame: plates and wells in walnut ink with a brass edge (the navy of Option A would clash with the wood) */
body.hv-borders:not(.lobby-b) #joinBox :is(.np-label, .ts-lbl) { background: linear-gradient(90deg, #e9b23c 0 3px, transparent 3px), var(--lf-ink); color: #ffd76a; }
body.hv-borders:not(.lobby-b) #joinBox .pane-title { background: var(--lf-ink); color: #ffe7a6; }
body.hv-borders:not(.lobby-b) #joinBox .nameplate input { border-radius: 0;
  background: linear-gradient(180deg, rgba(10, 4, 1, .86), rgba(22, 10, 4, .8)) padding-box, linear-gradient(135deg, #fff1b8, #e9b23c 35%, #8a5a12 65%, #ffd76a) border-box; }
body.hv-borders:not(.lobby-b) #piecePick > .piece-opt { background: rgba(10, 4, 1, .5); box-shadow: 0 0 0 calc(var(--lb-gap) / 2) rgba(10, 4, 1, .5); }
body.hv-borders:not(.lobby-b) #piecePick > .piece-opt .pc-name { color: #f3e6cf; }
body.hv-borders:not(.lobby-b) #piecePick > .piece-opt.sel .pc-name { color: #ffd76a; }
/* Join / Host: chamfered walnut plates with a gilt edge (ring = ::before, fill = ::after, both cut to the chamfer) */
body.hv-borders:not(.lobby-b) #joinBox .path-card { position: relative; isolation: isolate; border: 0; border-radius: 0; background: none; padding: 15px 15px 14px; }
body.hv-borders:not(.lobby-b) #joinBox .path-card::before, body.hv-borders:not(.lobby-b) #joinBox .path-card::after { content: ''; position: absolute; z-index: -1; pointer-events: none; }
body.hv-borders:not(.lobby-b) #joinBox .path-card::before { inset: 0; background: linear-gradient(135deg, #fff1b8, #e9b23c 30%, #8a5a12 62%, #ffd76a);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
body.hv-borders:not(.lobby-b) #joinBox .path-card::after { inset: 1.5px; background: linear-gradient(180deg, rgba(36, 16, 6, .97), rgba(16, 6, 2, .97));
  clip-path: polygon(9.4px 0, calc(100% - 9.4px) 0, 100% 9.4px, 100% calc(100% - 9.4px), calc(100% - 9.4px) 100%, 9.4px 100%, 0 calc(100% - 9.4px), 0 9.4px); }
body.hv-borders:not(.lobby-b) #joinBox .path-card .path-kick { color: #ffd76a; }
body.hv-borders:not(.lobby-b) #joinBox .path-card .path-sub, body.hv-borders:not(.lobby-b) #joinBox .peek { color: #eadcc4; }
body.hv-borders:not(.lobby-b) #joinBox .code-boxes i { border-radius: 0;
  background: linear-gradient(180deg, rgba(8, 3, 0, .9), rgba(26, 12, 5, .86)) padding-box, linear-gradient(#0c0502, #0c0502) padding-box, linear-gradient(135deg, #fff1b8, #e9b23c 35%, #8a5a12 65%, #ffd76a) border-box; }
/* tap targets inside the frame: at least 44 px tall (Back, the footer buttons and the name field measured 40-42) */
body.hv-borders:not(.lobby-b) #joinBox :is(#mpBack, .home-foot .btn) { min-height: 44px; }
body.hv-borders:not(.lobby-b) #joinBox .nameplate input { min-height: 46px; }
body.hv-borders:not(.lobby-b) #joinBox .home-foot { margin-top: 20px; }

/* the Thanksgiving Commemorative box: no frame of its own, a harvest band across the walnut panel (reaching the frame's inner
   edge on both sides) between two gilt bead lines; header plate, tags, pieces, turkey and name plates as they were */
body.hv-borders:not(.lobby-b) #piecePick > .comm-section.tg-box {
  --tg-frame: 0px; --tg-fw: 0px;
  --lf-bleed: calc(var(--lf-px) - (var(--lf-fw) - var(--lf-frame)) + var(--lb-gap) / 2);
  margin: 26px calc(-1 * var(--lf-bleed)) 4px; padding: 20px calc(var(--lf-bleed) - var(--lb-gap) / 2 + 2px) 16px;
  border: 0; border-image: none; border-radius: 0;
  background:
    radial-gradient(110% 80% at 50% 50%, rgba(26, 10, 6, .34) 0%, rgba(26, 10, 6, .14) 64%, rgba(26, 10, 6, 0) 100%),
    url(art/event/tg_box_bg.webp?v=198c99cacd) center 60% / cover, #3a1a0c;
  box-shadow: none;
}
body.hv-borders:not(.lobby-b) #piecePick > .comm-section.tg-box::after {   /* the dividers: a gilt bead line over a dark groove, top and bottom */
  inset: 0; box-shadow: inset 0 2px 0 #e9b23c, inset 0 3px 0 rgba(255, 241, 184, .6), inset 0 6px 0 rgba(20, 6, 0, .75), inset 0 12px 14px -8px rgba(8, 2, 0, .55),
    inset 0 -2px 0 #e9b23c, inset 0 -3px 0 rgba(255, 241, 184, .45), inset 0 -6px 0 rgba(20, 6, 0, .75), inset 0 -12px 14px -8px rgba(8, 2, 0, .5); }
body.hv-borders:not(.lobby-b) #piecePick > .tg-box .tg-corner { display: none; }
body.hv-borders:not(.lobby-b) #piecePick > .tg-box .tg-leaves { inset: 0; border-radius: 0; }
body.hv-borders:not(.lobby-b) #piecePick > .tg-box > .tg-plate { margin-left: 0; margin-right: 0; }

@media (max-width: 760px) {
  /* phone: the thinner frame weights the box used (10 / 19 px, 106 px corners); 4 px more side room keeps the V bosses on screen */
  body.hv-borders:not(.lobby-b) #joinBox.ts-panel { --lf-frame: 10px; --lf-fw: 19px; --lf-corner: 106px; --lf-px: 12px; --lf-pt: 20px; --lf-pb: 18px;
    width: calc(100% - 8px); margin-left: 4px; margin-right: 4px; }
  body.hv-borders:not(.lobby-b) #piecePick > .comm-section.tg-box { margin-top: 20px;
    background:
      radial-gradient(110% 80% at 50% 50%, rgba(26, 10, 6, .34) 0%, rgba(26, 10, 6, .14) 64%, rgba(26, 10, 6, 0) 100%),
      url(art/event/tg_box_bg_tall.webp?v=2a5d664013) center 42% / cover, #3a1a0c; padding-top: 16px; padding-bottom: 14px; }
  body.hv-borders:not(.lobby-b) #joinBox .path-card { padding: 13px 12px 12px; }
}
/* eventcards-1128 (Anton 08:13 ET "the reshuffle notice could be bigger"): ~1.6x on phone and desktop, built like the event cards:
   a dark navy plate with a rim in the city's colour (Ironbrook ember, Goldspire gold, Nexus cyan), the deck's name on a notched plate in
   that colour, a big "Deck reshuffled" headline, bigger card backs. Same timing (2.5 s, tap to dismiss); app.js rsPlace keeps it off the
   dice and the Turn Card. */
.rs-sign.rs-sign { --cut: 16px; width: min(540px, calc(100vw - 16px)); gap: 16px; padding: 14px 24px 14px 16px; }
.rs-sign[data-board] { --face1: #1d2756; --face2: #0b1230; --kick: #17110a; }
.rs-sign[data-board="ironbrook"] { --rim1: #ffd0a6; --rim2: #7a3a0c; --city: #ff9a3c; }
.rs-sign[data-board="goldspire"] { --rim1: #fff1c4; --rim2: #7a5a12; --city: #ffd76a; }
.rs-sign[data-board="nexus"] { --rim1: #c8f3ff; --rim2: #0c4a66; --city: #4dd8ff; }
.rs-sign[data-board] { background: linear-gradient(135deg, var(--rim1) 0%, var(--city) 35%, var(--rim2) 70%, var(--city) 100%); }
.rs-sign[data-board]::before, .rs-sign[data-board="ironbrook"]::before { inset: 2.5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 30px), linear-gradient(180deg, var(--face1) 0%, #121a3f 55%, var(--face2) 100%); }
.rs-sign .rs-fan { flex: 0 0 108px; height: 96px; }
.rs-sign .rs-card { width: 54px; height: 77px; border-radius: 0;
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px); }
.rs-sign .rs-txt { gap: 6px; line-height: 1.1; align-items: flex-start; }
.rs-sign .rs-kick { align-self: flex-start; max-width: 100%; box-sizing: border-box; padding: 4px 16px 5px; border-radius: 0; color: #17110a; text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%, 8px 50%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--city) 70%, #fff) 0%, var(--city) 45%, color-mix(in srgb, var(--city) 78%, #000) 100%);
  font: 400 15px/1.15 var(--font-hero, 'Lilita One'), Fredoka, sans-serif; letter-spacing: .09em; text-transform: uppercase; overflow-wrap: anywhere; }
.rs-sign .rs-title { font: 400 30px/1.02 var(--font-hero, 'Lilita One'), Fredoka, sans-serif; letter-spacing: .03em; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.rs-sign .rs-sub { font: 700 15px/1.25 Nunito, sans-serif; color: #dfe2f6; }
@media (max-width: 600px) {
  .rs-sign.rs-sign { gap: 12px; padding: 12px 16px 12px 12px; --cut: 14px; }
  .rs-sign .rs-fan { flex-basis: 86px; height: 82px; } .rs-sign .rs-card { width: 46px; height: 66px; }
  .rs-sign .rs-title { font-size: 27px; } .rs-sign .rs-kick { font-size: 14px; } .rs-sign .rs-sub { font-size: 14px; }
}

/* ================================================================ calm pass on the turn area (actionplates-1128, Anton 09:16 ET 2026-11-28:
   "image one has to match up with image two style wise" next to the approved Player Files round-2 mockup; "the timer was still in the
   shot"). The Player Files language: flat navy panels with one hairline, square corners (light chamfers only on buttons), brass used
   sparingly (the primary, the active line, money), two text greys, one type scale (10.5 / 12 / 13.5 / 16 / 22), flat notched labels
   instead of pills, no glows, no glossy bands, no 3D drops, no purple outside the game's own canon (tokens, board colours, rival
   persona tints). Covers the Turn Card (#turnCard), its timer, the Players panel (#game #playersPanel), the Bix bar (speech line, Ask Bix,
   Menu) and the in-game Thanksgiving Special strip (#evBadgeHud). Bix's art and the board are untouched. The buttons themselves are
   the calm plate block above (search "actionplates-1128, calm pass"). */
:root { --cl-bg: #151c3d; --cl-bg2: #1a2247; --cl-well: #0f1531; --cl-line: rgba(255, 255, 255, .07); --cl-line2: rgba(212, 176, 98, .3);
  --cl-ink: #efe7d2; --cl-ink2: #b3bbd6; --cl-ink3: #8e98ba; --cl-brass: #d4b062; --cl-brass-ink: #e2c47e; --cl-in: #86cf9f; --cl-out: #eb9a90;
  --cl-notch: polygon(0 0, 100% 0, calc(100% - 5px) 50%, 100% 100%, 0 100%, 5px 50%); }

/* ---- Turn Card: a flat navy panel with one hairline */
#game #turnCard.turn-card { --cl-bg: #151c3d; background: var(--cl-bg); border: 1px solid var(--cl-line2); border-radius: 0; box-shadow: 0 6px 18px rgba(4, 7, 20, .35);
  -webkit-backdrop-filter: none; backdrop-filter: none; padding: 12px 14px 14px; color: var(--cl-ink); font: 600 13.5px/1.4 Nunito, sans-serif; }
#game #turnCard.turn-card, #game #playersPanel.panel { border-image: none; }   /* no carved walnut rail on these two (the other side panels keep it) */
/* phone / tablet: the card sits in the page flow (theme .turn-card is position: relative), so style.css's old fixed-bar offsets no longer
   apply: left: 6px pushed it 6 px right and over the screen edge, max-height: 46vh + overflow clipped the hint under the plates, and margin: 0 left no gap above Players */
@media (max-width: 900px) { #game #turnCard.turn-card { left: auto; right: auto; bottom: auto; margin: 0 0 12px; max-height: none; overflow: visible; box-shadow: 0 6px 18px rgba(4, 7, 20, .35); } }
#game #turnCard .turn-head { gap: 10px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--cl-line); }
#game #turnCard .turn-head::after { content: none; }   /* the Thanksgiving gilt rule: a hairline here instead */
#game #turnWho { font: 600 16px/1.2 var(--font-display, Fredoka), sans-serif; color: var(--cl-ink); text-shadow: none; letter-spacing: 0; gap: 8px; }
#game #turnWho .mini-piece { width: 30px; height: 30px; }
#game #turnCard #actions { color: var(--cl-ink); font: 600 13.5px/1.4 Nunito, sans-serif; }
#game #turnCard #actions > div:not([class]) { color: var(--cl-ink); }
#game #turnCard #actionHint { margin-top: 10px; color: var(--cl-ink2); font: 600 12px/1.45 Nunito, sans-serif; }
#game #turnCard .coach { margin-top: 10px; padding: 8px 10px; border: 0; border-radius: 0; background: var(--cl-bg2); box-shadow: inset 2px 0 0 #6cc3d8; color: #bfe6ef; font: 600 12px/1.4 Nunito, sans-serif; }
/* the sealed-bid box (and any other offer box in the card): a flat inner panel, one hairline, square */
#game #actions .offer-box { --cl-bg: #1a2247; background: var(--cl-bg); border: 1px solid var(--cl-line); border-radius: 0; box-shadow: none; padding: 12px; color: var(--cl-ink2); font: 600 13.5px/1.4 Nunito, sans-serif; }
#game #actions .offer-box b { color: var(--cl-ink); font: 600 13.5px/1.4 var(--font-display, Fredoka), sans-serif; }
#game #actions .offer-box .bid-row { margin-top: 10px; }
#game #actions .offer-box #myBid { margin-top: 8px; color: var(--cl-brass-ink); font: 700 12px/1.3 Nunito, sans-serif; }
#game #actions .offer-box .small.muted { color: var(--cl-ink2); }
#game #deedLayer .deed-panel { --cl-bg: #141b42; }

/* ---- flat notched labels (no pills): the city in the turn header and every tag in the Players rows */
#game :is(#turnWho, #playersPanel) .tag-pill:not(.title) { position: static; display: inline-flex; align-items: center; height: 20px; box-sizing: border-box; padding: 0 10px;
  border: 0; border-radius: 0; box-shadow: none; text-shadow: none; -webkit-text-stroke: 0; clip-path: var(--cl-notch);
  font: 800 10.5px/1 Nunito, sans-serif; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  background: rgba(255, 255, 255, .08); color: var(--cl-ink2); }
#game :is(#turnWho, #playersPanel) .tag-pill.board { background: rgba(255, 255, 255, .08); color: #cdd3ea; border: 0; }
#game :is(#turnWho, #playersPanel) .tag-pill.board[data-board="ironbrook"] { background: rgba(217, 119, 58, .2); color: #f2b98f; }
#game :is(#turnWho, #playersPanel) .tag-pill.board[data-board="goldspire"] { background: rgba(212, 176, 98, .2); color: #e8cd8c; }
#game :is(#turnWho, #playersPanel) .tag-pill.board[data-board="nexus"] { background: rgba(77, 216, 255, .15); color: #9ae4f6; }
#game :is(#turnWho, #playersPanel) .tag-pill.bix { background: rgba(108, 195, 216, .16); color: #b5e5ef; }
#game #playersPanel .tag-pill.rival-pill { background: rgba(255, 255, 255, .08); color: var(--cl-ink); border: 0; }
#game #playersPanel .tag-pill.custody { background: rgba(212, 176, 98, .2); color: #e8cd8c; }
#game #playersPanel .tag-pill.custody.prison { background: rgba(235, 154, 144, .18); color: #f3b4ab; }
#game #playersPanel .tag-pill.off { background: rgba(255, 255, 255, .08); color: var(--cl-ink2); }
#game #playersPanel .tag-pill.out { background: rgba(235, 154, 144, .18); color: #f3b4ab; }
#game #playersPanel .tag-pill.out.quit { background: rgba(255, 255, 255, .08); color: #f3b4ab; }
#game #playersPanel .tag-pill.harvest { background: rgba(217, 119, 43, .22); color: #f2c58f; border: 0; }
/* the earned secret title (its shine sweep stays) and the Golden Turkey drop: flat brass, no bevel lines */
#game #playersPanel .tag-pill.title, #game #playersPanel .tag-pill.gold-turkey { background: var(--cl-brass); color: #2a1e08; border: 0; box-shadow: none; padding: 0 11px; }

/* ---- the turn timer: plain text on a hairline notched plate, no icon in any state ("No timer" / "0:45" / "Paused"; low time red) */
#game #turnTimer.timer { --tm-edge: rgba(212, 176, 98, .38); --tm-face: var(--cl-bg, #151c3d); flex: none; position: relative; isolation: isolate; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 0; height: 26px; min-width: 0; padding: 0 13px; border: 0; border-radius: 0;
  background: var(--tm-edge); box-shadow: none; text-shadow: none; animation: none; transform: none; clip-path: var(--cl-notch);
  font: 600 12px/1 var(--font-display, Fredoka), sans-serif; letter-spacing: .02em; text-transform: none; white-space: nowrap; font-synthesis: none; color: var(--cl-ink2); }
#game #turnTimer.timer::before { content: ''; position: absolute; inset: 1px; z-index: -1; pointer-events: none; background: var(--tm-face);
  clip-path: polygon(0 0, 100% 0, calc(100% - 4.6px) 50%, 100% 100%, 0 100%, 4.6px 50%); }
#game #turnTimer.timer::after { content: none; }
#game #turnTimer .tm-num { font: 600 13.5px/1 var(--font-display, Fredoka), sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--cl-brass-ink); }
#game #turnTimer.timer.low { --tm-edge: #e0776b; color: #f6bdb4; animation: none; }
#game #turnTimer.timer.low .tm-num { color: #ffd0c9; text-shadow: none; }

/* ---- Players panel: flat navy, one hairline, flat rows with hairline dividers */
#game #playersPanel.panel { --cl-bg: #151c3d; background: var(--cl-bg); border: 1px solid var(--cl-line2); border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 12px 14px; }
#game #playersPanel > h3 { position: static; display: block; padding: 0; clip-path: none; background: none; text-transform: none; margin: 0 0 6px; font: 600 16px/1.2 var(--font-display, Fredoka), sans-serif; letter-spacing: 0; color: var(--cl-ink); text-shadow: none; }
#game #playersPanel .players li { border-radius: 0; background: none; box-shadow: none; border-bottom: 1px solid var(--cl-line); padding: 8px 6px; }
#game #playersPanel > h3::before, #game #playersPanel .players li + li::before { content: none; }
#game #playersPanel .players li:last-child { border-bottom: 0; }
#game #playersPanel .players li.turn { background: rgba(212, 176, 98, .07); box-shadow: inset 2px 0 0 var(--cl-brass); }
#game #playersPanel .players .nm { font: 600 16px/1.2 var(--font-display, Fredoka), sans-serif; color: var(--cl-ink); }
#game #playersPanel .players :is(.cash, .me-cash) { font: 600 16px/1.2 var(--font-display, Fredoka), sans-serif; letter-spacing: 0; color: var(--cl-brass-ink); text-shadow: none; }
#game #playersPanel .players .cash.props { font: 600 13.5px/1.2 var(--font-display, Fredoka), sans-serif; color: var(--cl-ink2); }
#game #playersPanel .players .worth { font: 600 12px/1.35 Nunito, sans-serif; color: var(--cl-ink2); }
#game #playersPanel .players li.rival-row .mini-piece, #game #playersPanel .players li.rival-row > img { box-shadow: 0 0 0 1.5px var(--rival-tint, #67e8f9); }
#game #playersPanel .pots { border-top: 1px solid var(--cl-line); padding-top: 10px; margin-top: 4px; color: var(--cl-ink2); font: 600 12px/1.3 Nunito, sans-serif; }
#game #playersPanel .pots b { color: var(--cl-brass-ink); font: 600 13.5px/1.2 var(--font-display, Fredoka), sans-serif; }

/* ---- Bix bar: a flat chamfered speech line with a small notch toward Bix; Ask Bix the brass primary, Menu an outlined plate. The bar sits
   above the Thanksgiving board frame's cast shadow (.hv-ring, z-index 4), which darkened the top of Ask Bix (label contrast 3.7:1); the
   frame's caps (z-index 6) still draw over it. */
#game .bix-bar { position: relative; z-index: 5; }
#game .bix-bar #bixBubble { --c: 5px; --pw: 7px; position: relative; isolation: isolate; box-sizing: border-box; min-height: 44px; display: flex; align-items: center;
  padding: 8px 12px 8px calc(var(--pw) + 12px); margin-left: -2px; border: 0; border-image: none; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  background: var(--cl-line2); color: var(--cl-ink); font: 600 13.5px/1.35 Nunito, sans-serif; text-shadow: none;
  clip-path: polygon(calc(var(--pw) + var(--c)) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, calc(var(--pw) + var(--c)) 100%,
    var(--pw) calc(100% - var(--c)), var(--pw) calc(50% + 6px), 0 50%, var(--pw) calc(50% - 6px), var(--pw) var(--c)); }
#game .bix-bar #bixBubble::before { content: ''; position: absolute; inset: 1px; left: 1.2px; z-index: -1; width: auto; height: auto; border: 0; pointer-events: none; background: var(--cl-bg);
  clip-path: polygon(calc(var(--pw) + var(--c) - 1.4px) 0, calc(100% - var(--c) + .4px) 0, 100% calc(var(--c) - .4px), 100% calc(100% - var(--c) + .4px), calc(100% - var(--c) + .4px) 100%, calc(var(--pw) + var(--c) - 1.4px) 100%,
    calc(var(--pw) - 1px) calc(100% - var(--c) + .4px), calc(var(--pw) - 1px) calc(50% + 5.4px), 0 50%, calc(var(--pw) - 1px) calc(50% - 5.4px), calc(var(--pw) - 1px) calc(var(--c) - .4px)); }
#game .bix-bar :is(#askBixBtn, .menu-btn) { --c: 5px; position: relative; isolation: isolate; box-sizing: border-box; min-height: 44px; min-width: 44px; padding: 0 14px; border: 0; border-radius: 0;
  box-shadow: none; text-shadow: none; filter: none; transform: none; font: 600 13.5px/1 var(--font-display, Fredoka), sans-serif; letter-spacing: .01em;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
#game .bix-bar #askBixBtn { background: var(--cl-brass); color: #2a1e08; }
#game .bix-bar #askBixBtn::before { content: none; }
#game .bix-bar .menu-btn { background: rgba(212, 176, 98, .45); color: var(--cl-ink); }
#game .bix-bar .menu-btn::before { content: ''; position: absolute; inset: 1px; z-index: -1; width: auto; height: auto; border-radius: 0; opacity: 1; pointer-events: none; background: var(--cl-bg);
  clip-path: polygon(calc(var(--c) - .4px) 0, calc(100% - var(--c) + .4px) 0, 100% calc(var(--c) - .4px), 100% calc(100% - var(--c) + .4px), calc(100% - var(--c) + .4px) 100%, calc(var(--c) - .4px) 100%, 0 calc(100% - var(--c) + .4px), 0 calc(var(--c) - .4px)); }
@media (hover: hover) { #game .bix-bar :is(#askBixBtn, .menu-btn):hover:not(:disabled) { filter: brightness(1.1); transform: none; } }
#game .bix-bar :is(#askBixBtn, .menu-btn):active:not(:disabled) { filter: brightness(.86); transform: none; box-shadow: none; }
#game .bix-bar :is(#askBixBtn, .menu-btn):focus-visible { outline: 2px solid var(--cl-brass-ink); outline-offset: 3px; }

/* ---- the in-game Thanksgiving Special strip: a flat notched band (warm walnut, brass type), not a capsule */
#game #evBadgeHud.ev-badge { --n: 9px; border: 0; border-radius: 0; box-shadow: none; background: #3b2414; min-height: 30px; padding: 5px 20px; gap: 8px;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--n)) 50%, 100% 100%, 0 100%, var(--n) 50%); color: #ead2a2; font: 600 12px/1.2 var(--font-display, Fredoka), sans-serif; letter-spacing: .02em; }
#game #evBadgeHud.ev-badge::before, #game #evBadgeHud.ev-badge::after { content: none; }
#game #evBadgeHud.ev-badge b { color: #ecc87e; font: 600 12px/1.2 var(--font-display, Fredoka), sans-serif; letter-spacing: .04em; }
#game #evBadgeHud.ev-badge span { color: #dcc6a2; font: 600 12px/1.2 Nunito, sans-serif; opacity: 1; }
#game #evBadgeHud.ev-badge .ev-leaf { width: 13px; height: 13px; color: #d99a4e; }

/* ================================================================ EVENT SKIN SLOT for the Turn Card and the Players panel.
   W1 walnut (Anton picked W1 12:25 ET 2026-11-28, "this one", on W1_walnut_grain_roll_phone.png) is the first skin in it; Anton 12:32:
   "by then we'll have the Christmas frame and items ready, so smooth switch". So the layout below is skin-agnostic and reads only the
   --es-* variables; each event skin is ONE block of variables under its own body class.
   Classes (set by harvest-borders.js, the same live test and end check as the event frames):
     body.event-skin            an event skin is active: the slot layout below applies
     body.skin-<event>          which one (skin-thanksgiving now; skin-christmas next): it sets the variables
     neither                    the calm navy above (the fallback, only when no event skin is active)
   Variables a skin sets (all required; W1 values in brackets):
     --es-base           panel base colour under the texture            [#2a1508]
     --es-texture        panel texture url (absolute from the site root, or relative to this file) [url(art/event/lb_walnut.webp?v=291e8fb92b)]
     --es-texture-size   its tile size                                    [512px 256px]
     --es-vignette       a gradient laid over the texture                 [the lobby's radial walnut vignette]
     --es-hairline       the panel edge, one 1 px line on the chamfer     [rgba(212,176,98,.62)]
     --es-chamfer        the panel's corner cut                           [6px]
     --es-groove-dark / --es-groove-light   the incised rule under the header and between Players rows (dark cut over a catch-light)
     --es-well           face of the outlined secondaries (sunk well)     [rgba(14,5,1,.6)]
     --es-label / --es-label-edge   tag (city, role, timer) face and its notch hairline   [#1e0d05 / rgba(212,176,98,.55)]
     --es-inset-bg / --es-inset-edge   sealed-bid and other inset boxes  [rgba(14,5,1,.42) / rgba(212,176,98,.34)]
     --es-ink / --es-ink2 / --es-accent-ink   heading / secondary / accent lettering (money, brass tags)  [#f3e6cf / #dcc6a2 / #ecc87e]
     --es-accent         the current-row edge                             [#d4b062]
     --es-turn-wash      the current row's wash                           [brass .1 -> .02]
   Text contrast on the W1 grain is >= 7.5:1 everywhere (measured, SPEC "Round 2"); a new skin must be re-measured with the probe.
   The brass primaries (ROLL, END TURN, Pay bail, Buy, Pay rent) are untouched in every skin: the approved flat plates. */
body.skin-thanksgiving {
  --es-base: #2a1508; --es-texture: url(art/event/lb_walnut.webp?v=291e8fb92b); --es-texture-size: 512px 256px;
  --es-vignette: radial-gradient(130% 110% at 30% 20%, rgba(70, 36, 14, .2) 0%, rgba(10, 4, 1, 0) 55%, rgba(8, 3, 0, .38) 100%);
  --es-hairline: rgba(212, 176, 98, .62); --es-chamfer: 6px; --es-groove-dark: rgba(8, 3, 0, .7); --es-groove-light: rgba(212, 176, 98, .34);
  --es-well: rgba(14, 5, 1, .6); --es-label: #1e0d05; --es-label-edge: rgba(212, 176, 98, .55);
  --es-inset-bg: rgba(14, 5, 1, .42); --es-inset-edge: rgba(212, 176, 98, .34);
  --es-ink: #f3e6cf; --es-ink2: #dcc6a2; --es-accent-ink: #ecc87e; --es-accent: #d4b062;
  --es-turn-wash: linear-gradient(90deg, rgba(212, 176, 98, .1), rgba(212, 176, 98, .02)); }

/* ---- the slot layout (reads only --es-*). The panel layers are the card's own ::before (hairline) and ::after (material), both cut
   to the chamfer, so the content (and a plate's focus ring) is never clipped. */
body.event-skin #game :is(#turnCard.turn-card, #playersPanel.panel) { --cl-bg: var(--es-well); --wl-c: var(--es-chamfer); position: relative; isolation: isolate;
  background: none; border: 0; border-image: none; box-shadow: none; color: var(--es-ink); }
body.event-skin #game :is(#turnCard.turn-card, #playersPanel.panel)::before, body.event-skin #game :is(#turnCard.turn-card, #playersPanel.panel)::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none; border-radius: 0;
  clip-path: polygon(var(--wl-c) 0, calc(100% - var(--wl-c)) 0, 100% var(--wl-c), 100% calc(100% - var(--wl-c)), calc(100% - var(--wl-c)) 100%, var(--wl-c) 100%, 0 calc(100% - var(--wl-c)), 0 var(--wl-c)); }
body.event-skin #game :is(#turnCard.turn-card, #playersPanel.panel)::before { inset: 0; background: var(--es-hairline); }
body.event-skin #game :is(#turnCard.turn-card, #playersPanel.panel)::after { inset: 1px; --wl-c: calc(var(--es-chamfer) - .4px);
  background: var(--es-vignette), var(--es-texture) 0 0 / var(--es-texture-size) repeat, var(--es-base);
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, .07), inset 0 -10px 18px -10px rgba(6, 2, 0, .5); }
@media (max-width: 900px) { body.event-skin #game #turnCard.turn-card { box-shadow: none; } }
/* header: the incised groove under it, fading out at the ends */
body.event-skin #game #turnCard .turn-head { position: relative; border-bottom: 0; padding-bottom: 11px; }
body.event-skin #game #turnCard .turn-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; opacity: 1;
  background: linear-gradient(180deg, var(--es-groove-dark) 0 1px, var(--es-groove-light) 1px 2px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
body.event-skin #game #turnWho, body.event-skin #game #playersPanel > h3, body.event-skin #game #playersPanel .players .nm { color: var(--es-ink); }
body.event-skin #game #turnCard #actions, body.event-skin #game #turnCard #actions > div:not([class]) { color: var(--es-ink); }
body.event-skin #game #turnCard #actionHint { color: var(--es-ink2); }
/* labels (city, role, JAIL / PRISON ...): a sunk label, a hairline that follows the notch, accent lettering. The per-city tints give
   way to the skin; status colours (prison, out, Bix) keep their own lettering. */
body.event-skin #game :is(#turnWho, #playersPanel) .tag-pill:not(.title, .gold-turkey) { position: relative; isolation: isolate; background: var(--tg-edge, var(--es-label-edge)); box-shadow: none; color: var(--tg-ink, var(--es-accent-ink)); }
body.event-skin #game :is(#turnWho, #playersPanel) .tag-pill:not(.title, .gold-turkey)::before { content: ''; position: absolute; inset: 1px; z-index: -1; pointer-events: none; border-radius: 0; background: var(--tg-face, var(--es-label));
  clip-path: polygon(0 0, 100% 0, calc(100% - 4.6px) 50%, 100% 100%, 0 100%, 4.6px 50%); }
body.event-skin #game #playersPanel .tag-pill:is(.custody.prison, .out) { color: #f3b4ab; }
/* accents-1128 (Anton 13:45 ET 2026-11-28 on the walnut Players panel: "The titles in this pic could have kept their original colors on
   the brown, would look nice like small color accents"). Each tag keeps the sunk walnut label; its own colour comes back as the
   lettering and the notch hairline (Goldspire also gets a faint emerald tint in the label face). The colours are --es-tag-* slot
   variables with these defaults, so every event skin (Christmas next) keeps them unless it sets its own:
     --es-tag-ironbrook / -edge     copper lettering on a brick hairline        [#f2a878 / rgba(196, 92, 58, .9)]
     --es-tag-goldspire / -edge / -face   gold lettering, emerald hairline, a faint emerald face  [#f0cf7e / rgba(52, 170, 110, .85) / label + 16% #1f7d44]
     --es-tag-nexus / -edge         cyan                                         [#9ae4f6 / rgba(77, 216, 255, .62)]
     --es-tag-bix / -edge           Bix cyan-teal                                [#b5e5ef / rgba(108, 195, 216, .6)]
     --es-tag-harvest / -edge       Harvest Pin pumpkin                          [#f2c58f / rgba(217, 119, 43, .85)]
     rival epithet (THE BUILDER ...)  the rival's own tint (--rival-tint): lettering 72% tint + 28% cream, hairline 80% tint. The calm
                                    palette has no purple, so the Dealmaker's tag takes --es-tag-dealmaker [#e8949f, a dusty rose].
   Text >= 4.5:1 on the label face (measured from pixels by the accents probe). Host / Jail / away keep the brass accent. */
body.event-skin #game :is(#turnWho, #playersPanel) .tag-pill.board[data-board="ironbrook"] { --tg-ink: var(--es-tag-ironbrook, #f2a878); --tg-edge: var(--es-tag-ironbrook-edge, rgba(196, 92, 58, .9)); }
body.event-skin #game :is(#turnWho, #playersPanel) .tag-pill.board[data-board="goldspire"] { --tg-ink: var(--es-tag-goldspire, #f0cf7e); --tg-edge: var(--es-tag-goldspire-edge, rgba(52, 170, 110, .85));
  --tg-face: var(--es-tag-goldspire-face, color-mix(in srgb, var(--es-label) 84%, #1f7d44)); }
body.event-skin #game :is(#turnWho, #playersPanel) .tag-pill.board[data-board="nexus"] { --tg-ink: var(--es-tag-nexus, #9ae4f6); --tg-edge: var(--es-tag-nexus-edge, rgba(77, 216, 255, .62)); }
body.event-skin #game :is(#turnWho, #playersPanel) .tag-pill.bix { --tg-ink: var(--es-tag-bix, #b5e5ef); --tg-edge: var(--es-tag-bix-edge, rgba(108, 195, 216, .6)); }
body.event-skin #game #playersPanel .tag-pill.harvest { --tg-ink: var(--es-tag-harvest, #f2c58f); --tg-edge: var(--es-tag-harvest-edge, rgba(217, 119, 43, .85)); }
body.event-skin #game #playersPanel .tag-pill.rival-pill { --tg-tint: var(--rival-tint, #d4b062); --tg-ink: color-mix(in srgb, var(--tg-tint) 72%, #fff4e2); --tg-edge: color-mix(in srgb, var(--tg-tint) 80%, transparent); }
body.event-skin #game #playersPanel .tag-pill.rival-pill[data-persona="vera"] { --tg-tint: var(--es-tag-dealmaker, #e8949f); }
/* the timer: the same sunk label, quieter lettering (low time keeps its red edge) */
body.event-skin #game #turnTimer.timer { --tm-edge: var(--es-label-edge); --tm-face: var(--es-label); color: var(--es-ink2); }
body.event-skin #game #turnTimer.timer.low { --tm-edge: #e0776b; color: #f6bdb4; }
/* outlined secondaries: a hairline around the sunk well (--cl-bg, set on the card); ink / accent lettering */
body.event-skin #game #turnCard #actions .btn:not(.opt-row, .lob-btn, .q-chip, .settle .btn, .gold, .roll, .green, .red),
body.event-skin #game #turnCard #actions .btn.ghost:not(.opt-row, .lob-btn, .settle .btn),
body.event-skin #game #turnCard #actions:has(> .btn.roll) > .row > .btn:not(.opt-row, .lob-btn, .settle .btn, .green) { --edge: var(--es-hairline); --fg: var(--es-ink); }
body.event-skin #game #turnCard #actions:has(> .btn.roll) > .row > .btn.gold:not(.opt-row, .lob-btn, .settle .btn),
body.event-skin #game #turnCard #actions .row:has(> .btn.gold) > .btn:is(.roll, .red):not(.opt-row, .lob-btn, .settle .btn) { --edge: var(--es-hairline); --fg: var(--es-accent-ink); }
body.event-skin #game #turnCard #actions .tnum-btn { --edge: var(--es-hairline); --fg: var(--es-ink); }
/* the sealed bid and other inset boxes: hairline-outlined insets; the number well is the label colour */
body.event-skin #game #turnCard #actions .offer-box { --cl-bg: var(--es-well); background: var(--es-inset-bg); border: 1px solid var(--es-inset-edge); color: var(--es-ink2); }
body.event-skin #game #turnCard #actions .offer-box b { color: var(--es-ink); }
body.event-skin #game #turnCard #actions .offer-box .small.muted { color: var(--es-ink2); }
body.event-skin #game #turnCard #actions .offer-box #myBid { color: var(--es-accent-ink); }
body.event-skin #game #turnCard #actions .tnum::before { background: var(--es-hairline); }
body.event-skin #game #turnCard #actions .tnum::after { background: var(--es-label); }
body.event-skin #game #turnCard #actions .tnum:focus-within::before { background: var(--es-accent); }
body.event-skin #game #turnCard #actions .tnum input { color: var(--es-accent-ink); }
body.event-skin #game #turnCard .coach { background: var(--es-inset-bg); }
/* Players: incised row dividers, the current row an accent edge with a faint wash, accent money, ink2 worth line */
body.event-skin #game #playersPanel .players li { position: relative; border-bottom: 0; }
body.event-skin #game #playersPanel .players li + li::before { content: ''; position: absolute; left: 6px; right: 6px; top: 0; height: 2px; opacity: 1;
  background: linear-gradient(180deg, var(--es-groove-dark) 0 1px, var(--es-groove-light) 1px 2px); }
body.event-skin #game #playersPanel .players li.turn { background: var(--es-turn-wash); box-shadow: inset 2px 0 0 var(--es-accent); }
body.event-skin #game #playersPanel .players :is(.cash, .me-cash) { color: var(--es-accent-ink); }
body.event-skin #game #playersPanel .players .cash.props, body.event-skin #game #playersPanel .players .worth { color: var(--es-ink2); }
body.event-skin #game #playersPanel .pots { position: relative; border-top: 0; color: var(--es-ink2); }
body.event-skin #game #playersPanel .pots::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  background: linear-gradient(180deg, var(--es-groove-dark) 0 1px, var(--es-groove-light) 1px 2px); }
body.event-skin #game #playersPanel .pots b { color: var(--es-accent-ink); }

/* ================================================================ Roll / End Turn marks (Anton approved Roll B "game dice" + End B "ledger tick",
   12:25 ET 2026-11-28; rollbtn/SPEC.md). The plates are unchanged (flat brass, chamfer, Fredoka 600); only the mark is new, drawn in code
   by TMARK in app.js. Mark and label are centred as one group. */
#game #actions .btn.has-mark { gap: 10px; }
#game #actions .btn.has-mark .ico { display: block; flex: none; overflow: visible; transition: transform 120ms ease-out; }
#game #actions .btn.roll.has-mark .ico-dice { width: 36px; height: 26px; margin-left: -6px; }
#game #actions .btn.gold.big.has-mark { gap: 9px; }
#game #actions .btn.gold.big.has-mark .ico-tick { width: 20px; height: 18px; }
@media (min-width: 1024px) { #game #actions > .btn.roll.has-mark .ico-dice { width: 39px; height: 28px; } #game #actions .btn.gold.big.has-mark .ico-tick { width: 22px; height: 20px; } }
/* "Roll for doubles" in the jail row (an outlined secondary beside Pay $50K): a smaller pair, no brass knock-out on the dark well */
#game #actions .row > .btn.roll.has-mark { gap: 6px; }
#game #actions .row > .btn.roll.has-mark .ico-dice { width: 28px; height: 20px; margin-left: -3px; }
#game #actions .ico-dice .ko { fill: var(--ko, #d4b062); stroke: var(--ko, #d4b062); }
#game #actions .row > .btn.roll.has-mark .ico-dice { --ko: transparent; }
#game #actions .ico-dice .die { transform-box: view-box; transform-origin: 0 0; }
#game #actions .ico-tick .tk { stroke-dasharray: 1; stroke-dashoffset: 0; }
/* press: the face darkens (the plate rule) and the mark gives 1 px and 6 % */
#game #actions .btn.has-mark:active:not(:disabled) .ico { transform: translateY(1px) scale(.94); transition-duration: 70ms; }
#game #actions .btn.has-mark.sent { pointer-events: none; }
/* the 400 ms re-arm guard (TMARK): the disabled look, then a 150 ms fade to full */
#game #actions .btn.rearm-in { animation: tmRearm .15s ease-out; }
@keyframes tmRearm { from { opacity: .5; filter: grayscale(.6); } to { opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) { #game #actions .btn.has-mark .ico { transition: none; } #game #actions .btn.has-mark:active .ico { transform: none; } #game #actions .btn.rearm-in { animation: none; } }
/* keyboard focus and the reduced-motion your-turn cue: a 2 px brass-ink ring, 3 px outside the plate, on the plate's own chamfer. A plain
   outline never showed (the plate's clip-path clipped it away). The plate's clip-path becomes one even-odd path of three loops (the ring's
   outer edge 5 px out, its inner edge 3 px out, the plate itself), so the ring band and the plate both show with a clear gap between;
   a 5 px box-shadow fills the band. Chamfer cut at offset d: --c + d(2 - sqrt 2). */
#game :is(#actions, #deedLayer .deed-panel) .btn:not(.opt-row, .lob-btn, .q-chip, .settle .btn):is(:focus-visible, .attn-ring), #game #actions .tnum-btn:focus-visible {
  outline: none; box-shadow: 0 0 0 5px #e2c47e;
  clip-path: polygon(evenodd,
    50% -5px, calc(100% + 2.07px - var(--c)) -5px, calc(100% + 5px) calc(var(--c) - 2.07px), calc(100% + 5px) calc(100% - var(--c) + 2.07px), calc(100% - var(--c) + 2.07px) calc(100% + 5px), calc(var(--c) - 2.07px) calc(100% + 5px), -5px calc(100% - var(--c) + 2.07px), -5px calc(var(--c) - 2.07px), calc(var(--c) - 2.07px) -5px, 50% -5px,
    50% -3px, calc(100% + 1.24px - var(--c)) -3px, calc(100% + 3px) calc(var(--c) - 1.24px), calc(100% + 3px) calc(100% - var(--c) + 1.24px), calc(100% - var(--c) + 1.24px) calc(100% + 3px), calc(var(--c) - 1.24px) calc(100% + 3px), -3px calc(100% - var(--c) + 1.24px), -3px calc(var(--c) - 1.24px), calc(var(--c) - 1.24px) -3px, 50% -3px,
    50% 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c), var(--c) 0, 50% 0); }

/* ---------------------------------------------------------------- exchspace-1128: the Exchange as a compact quote board
   Anton 21:50 ET 2026-11-28, "we have a space problem": names wrapped to 2-3 lines with the set-colour dot alone on its own line,
   five loose columns, tall rows, tiny 18-20 px Buy / Sell, and the status line wrapping mid-fact. Built like a brokerage quote board:
   each company is one chamfered row plate, a set-colour chip on the name's first line (hanging indent, at most 2 lines, never
   clipped), price with its change under it in one cell, your holding, then Buy / Sell as notched plates. Rows are a fixed grid so
   every column lines up. Radius 0 everywhere. Desktop: 36 px plates with 44 x 44 hit areas (the plate is the ::before, so the
   button's own box carries no clip-path and its ::after hit area is never clipped); row pitch 44 px, so hit areas tile and never
   overlap. Touch (<= 900 px or a coarse pointer): the plate itself is 44 x 44. Buy text on the green plate measured >= 4.5:1. */
#game #panels .xstat { display: flex; flex-wrap: wrap; align-items: center; column-gap: 5px; row-gap: 3px; font-size: 11.5px; line-height: 1.3; color: var(--ink2); }
#game #panels .xstat .xf { white-space: nowrap; }
#game #panels .xstat .tag-pill { margin-right: 2px; }
#game #panels .xtable { --xcols: minmax(0, 1fr) 50px 20px 82px; display: block; width: 100%; margin-top: 8px; border-spacing: 0; font-size: 12.5px; }
#game #panels .xtable.xspect { --xcols: minmax(0, 1fr) 64px; }
#game #panels .xtable > tbody { display: block; }
#game #panels .xtable tr { display: grid; grid-template-columns: var(--xcols); column-gap: 6px; align-items: center; position: relative; isolation: isolate; padding: 0 3px 0 6px; }
#game #panels .xtable tr.xhead { margin-bottom: 1px; }
#game #panels .xtable tr[data-co] { min-height: 42px; margin-bottom: 2px; }
#game #panels .xtable tr[data-co]::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(255, 255, 255, .05);
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px); }
#game #panels .xtable tr[data-co]:hover::before { background: rgba(255, 214, 120, .1); }
#game #panels .xtable :is(td, th) { display: block; padding: 0; border: 0; border-radius: 0; background: none; min-width: 0; }
#game #panels .xtable tr:hover td { background: none; }
#game #panels .xtable th { padding: 0 0 1px; font-size: 10px; letter-spacing: .1em; }
#game #panels .xtable th:nth-child(3), #game #panels .xtable .xyou { text-align: center; }
#game #panels .xtable .xco { display: flex; align-items: flex-start; gap: 5px; padding: 4px 0; }
#game #panels .xtable .xco .sw { flex: none; width: 8px; height: 8px; margin-top: 4px; border-radius: 0; box-shadow: none; vertical-align: 0;
  clip-path: polygon(2px 0, 6px 0, 8px 2px, 8px 6px, 6px 8px, 2px 8px, 0 6px, 0 2px); }
#game #panels .xtable .xco a { font: 700 12.5px/15px Nunito, sans-serif; overflow-wrap: normal; word-break: normal; hyphens: manual; }
#game #panels .xtable .xpx { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; font-family: inherit; }
#game #panels .xtable .xp { font: 600 12px/14px var(--font-display); color: var(--gold3); white-space: nowrap; }
#game #panels .xtable .xch { font: 800 10.5px/12px Nunito, sans-serif; white-space: nowrap; }
#game #panels .xtable .xch.flat { color: var(--ink2); }
#game #panels .xtable .xyou { font: 700 12.5px/1 Nunito, sans-serif; color: var(--ink); }
#game #panels .xtable .xtr { display: flex; justify-content: flex-start; align-items: center; gap: 6px; }
/* the plates: the button is a bare 38 x 36 box; ::before is the notched plate, ::after the 44 x 44 hit area */
#game #panels .xtable .btn.xbtn { position: relative; isolation: isolate; overflow: visible; flex: none; width: 38px; height: 36px; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; clip-path: none; filter: none; font: 700 12px/1 var(--font-display); letter-spacing: .02em; color: #fff8e8; text-shadow: 0 1px 1px rgba(20, 6, 0, .7); }
#game #panels .xtable .btn.xbtn::before { content: ''; position: absolute; inset: 0; left: 0; right: 0; top: 0; height: auto; z-index: -1; opacity: 1; border-radius: 0; pointer-events: none;
  --c: 6px; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
#game #panels .xtable .btn.xbtn::after { content: ''; position: absolute; left: -3px; right: -3px; top: -4px; bottom: -4px; background: transparent; pointer-events: auto; }
#game #panels .xtable .btn.xbtn.green::before { background: linear-gradient(180deg, #587428 0%, #48661a 50%, #33490f 100%); box-shadow: inset 0 1px 0 rgba(230, 244, 192, .55), inset 0 -3px 0 #22320a, inset 0 0 0 1px rgba(20, 30, 4, .5); }
#game #panels .xtable .btn.xbtn.ghost { color: #f6e6cf; }
#game #panels .xtable .btn.xbtn.ghost::before { background: linear-gradient(180deg, rgba(58, 23, 9, .95), rgba(32, 12, 4, .96)); box-shadow: inset 0 0 0 1.5px rgba(233, 178, 60, .6), inset 0 1px 0 rgba(255, 220, 170, .14); }
#game #panels .xtable .btn.xbtn:hover:not(:disabled) { transform: none; filter: brightness(1.1); }
#game #panels .xtable .btn.xbtn:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
#game #panels .xtable .btn.xbtn:disabled { opacity: .55; filter: saturate(.5); }
#game #panels .xtable .btn.xbtn:focus-visible { outline: 2px solid var(--gold2); outline-offset: 1px; }
@media (max-width: 900px), (pointer: coarse) {
  #game #panels .xtable { --xcols: minmax(0, 1fr) 58px 24px 94px; font-size: 13px; }
  #game #panels .xtable tr[data-co] { min-height: 48px; }
  #game #panels .xtable .xco a { font-size: 13.5px; line-height: 16px; }
  #game #panels .xtable .xco .sw { margin-top: 4px; }
  #game #panels .xtable .xp { font-size: 13.5px; line-height: 15px; }
  #game #panels .xtable .xch { font-size: 11px; }
  #game #panels .xtable .btn.xbtn { width: 44px; height: 44px; min-width: 0; min-height: 0; font-size: 13px; }
  #game #panels .xtable .xtr { gap: 6px; }
  #game #panels .xtable .btn.xbtn::after { left: 0; right: 0; top: 0; bottom: 0; }
}
/* small phones (360): "Transportation" at 13.5 px met the price (1 px); one size step down and slimmer number columns keep 6 px clear */
@media (max-width: 380px) {
  #game #panels .xtable { --xcols: minmax(0, 1fr) 52px 20px 94px; }
  #game #panels .xtable .xco a { font-size: 12.5px; line-height: 15px; }
  #game #panels .xtable .xp { font-size: 12.5px; line-height: 14px; }
}

/* cachefix-1129: the "Updating..." plate (stale build -> one reload at a safe point). Chamfered, no radius, gold on night navy. */
.upd-plate { position: fixed; left: 50%; top: max(10px, env(safe-area-inset-top)); transform: translateX(-50%); z-index: 100000; display: flex; align-items: center; gap: 12px;
  min-height: 44px; max-width: calc(100vw - 24px); box-sizing: border-box; padding: 6px 10px 6px 18px; border-radius: 0; color: #ffe39a; font: 800 15px/1.25 Nunito, sans-serif;
  background: linear-gradient(180deg, #1b2450, #0e1433); box-shadow: inset 0 0 0 1.5px rgba(255, 214, 106, .7), 0 8px 22px rgba(0, 0, 0, .5);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
.upd-plate > span:only-child { padding-right: 8px; }
.upd-plate .upd-go { flex: none; min-height: 44px; min-width: 44px; padding: 0 16px; border: 0; border-radius: 0; cursor: pointer; color: #2a1a00; font: 800 15px Nunito, sans-serif;
  background: linear-gradient(180deg, #ffe08a, #e2a92a); clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px); }
.upd-plate .upd-go:focus-visible { outline: 3px solid #41e3cf; outline-offset: -3px; }


/* ---------------------------------------------------------------- dicetap-1130: tap the board dice to roll (Anton 12:13 ET 2026-11-30)
   Only while the Turn Card's roll plate is live (DICETAP in app.js adds .dice-tap); otherwise the dice stay pointer-events:none as before.
   The cue is the dice's own gold: a slow warm halo that breathes, like the doubles pop at a whisper. Reduced motion: a still halo. The hit
   area grows invisibly to >= 44 px tall (phone dice are 34 px) without moving the dice. */
#dice.dice-tap { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; outline: none; }
#dice.dice-tap::before { content: ''; position: absolute; inset: -7px -8px; border-radius: 0; }
#dice.dice-tap .die { animation: diceTapGlow 1.9s ease-in-out infinite; }
#dice.dice-tap .die.die-orange { animation-delay: .12s; }
@keyframes diceTapGlow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 215, 106, .45)); }
  50% { filter: drop-shadow(0 0 9px rgba(255, 206, 64, .95)) brightness(1.05); }
}
#dice.dice-tap:focus-visible::before { box-shadow: 0 0 0 2px #ffd76a, 0 0 0 4px rgba(42, 30, 8, .6); }
@media (hover: hover) { #dice.dice-tap:hover .die { filter: drop-shadow(0 0 8px rgba(255, 210, 72, .9)) brightness(1.06); animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { #dice.dice-tap .die { animation: none; filter: drop-shadow(0 0 5px rgba(255, 210, 72, .75)); } }
