/* Game board and side panel. Used by /play/local and /table. */
.game{--cell:#2a2538;--board-line:#0b0a10;--center:#191622;--panel2:#24202f;--house:#3ddc84;--hotel:#ff4d5e}
.game .setup-wrap{display:grid;place-items:start center;padding-block:clamp(28px,6vw,64px)}
.game .setup{background:var(--panel);border-radius:18px;max-width:560px;width:100%;padding:clamp(22px,4vw,32px);display:grid;gap:16px;box-shadow:0 30px 60px rgba(0,0,0,.35)}
.game .setup h1{font-size:40px;line-height:1}
.game .setup h1 span{color:var(--accent)}
.game .names{display:grid;gap:8px}
.game .nrow{display:flex;gap:10px;align-items:center}
.game .nrow .input{flex:1}
.game select.input{appearance:auto}
.game .wrap{max-width:var(--max);margin:0 auto;padding-inline:var(--gutter);padding-block:18px 32px;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
@media (max-width:900px){.game .wrap{grid-template-columns:minmax(0,1fr)}}

/* ----- board ----- */
.game .board-wrap{container-type:inline-size;container-name:board;max-width:740px;width:100%;margin-inline:auto;position:relative}
.game .board-wrap.wide{max-width:900px}
.game .board{--u:1cqw;--n:9;display:grid;grid-template-columns:1.5fr repeat(var(--n),1fr) 1.5fr;grid-template-rows:1.5fr repeat(var(--n),1fr) 1.5fr;aspect-ratio:1;width:100%;gap:.35cqw;background:var(--board-line);padding:.35cqw;border-radius:1.4cqw}
.game .board.b-world{--u:.84cqw;gap:.28cqw;padding:.3cqw}
.game .cell{--g:var(--muted);position:relative;background:color-mix(in srgb,var(--g) 14%,var(--cell));border:0;border-radius:calc(var(--u)*.8);padding:0;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:space-between;text-align:center;cursor:pointer;min-width:0;min-height:0;overflow:hidden;font-size:calc(var(--u)*1.3);line-height:1.1;color:var(--ink)}
.game .cell.special{background:var(--cell)}
.game .cell:hover{filter:brightness(1.15)}
.game .cell:focus-visible,.game .cell.sel{outline:.35cqw solid var(--accent);outline-offset:-.35cqw;z-index:3}
.game .cell.focus{animation:cfocus 1.4s ease-out 1}
@keyframes cfocus{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 80%,transparent)}100%{box-shadow:0 0 0 1.4cqw transparent}}
.game .cell.auction{outline:.35cqw dashed var(--accent);outline-offset:-.35cqw;z-index:3}

/* The colour strip faces the middle of the board, like on a real board. */
.game .strip{position:absolute;background:var(--g);z-index:1}
.game .e-bottom .strip{top:0;left:0;right:0;height:17%}
.game .e-top .strip{bottom:0;left:0;right:0;height:17%}
.game .e-left .strip{right:0;top:0;bottom:0;width:13%}
.game .e-right .strip{left:0;top:0;bottom:0;width:13%}
.game .cell:not(.corner):not(.special).e-bottom{padding-top:17%}
.game .cell:not(.corner):not(.special).e-top{padding-bottom:17%}
.game .cell:not(.corner):not(.special).e-left{padding-right:13%}
.game .cell:not(.corner):not(.special).e-right{padding-left:13%}

/* Buildings: a green badge with a house and the number of houses, or a red "H" badge for a hotel.
   It sits on the colour strip so it's easy to spot even on a phone. */
.game .bld{position:absolute;z-index:4;display:inline-flex;align-items:center;justify-content:center;gap:calc(var(--u)*.25);pointer-events:none;
  min-width:calc(var(--u)*3.6);height:calc(var(--u)*2.5);padding:0 calc(var(--u)*.55);border-radius:calc(var(--u)*1.3);
  font:800 calc(var(--u)*1.75)/1 var(--f-body);color:#fff;border:max(1.5px,calc(var(--u)*.22)) solid #fff;box-shadow:0 .2cqw .5cqw rgba(0,0,0,.6)}
.game .bld.is-house{background:#1f9d57}
.game .bld.is-house i.house{background:#fff;width:calc(var(--u)*1.45);height:calc(var(--u)*1.35)}
.game .bld.is-hotel{background:var(--hotel);min-width:calc(var(--u)*3.2);font-size:calc(var(--u)*1.9)}
.game .e-bottom .bld{top:0;left:50%;transform:translate(-50%,-10%)}
.game .e-top .bld{bottom:0;left:50%;transform:translate(-50%,10%)}
.game .e-left .bld{right:0;top:50%;transform:translate(8%,-50%)}
.game .e-right .bld{left:0;top:50%;transform:translate(-8%,-50%)}
@container board (max-width:560px){.game .bld{--u:1.35cqw}.game .board.b-world .bld{--u:1.15cqw}}
.game i.house{display:inline-block;width:calc(var(--u)*1.55);height:calc(var(--u)*1.45);background:var(--house);clip-path:polygon(50% 0,100% 42%,100% 100%,0 100%,0 42%);flex:none}
.game i.hotel{display:inline-grid;place-items:center;width:calc(var(--u)*3.2);height:calc(var(--u)*1.9);background:var(--hotel);clip-path:polygon(15% 0,85% 0,100% 30%,100% 100%,0 100%,0 30%);font:800 calc(var(--u)*1.25)/1 var(--f-body);color:#fff;font-style:normal;flex:none;padding-top:.2cqw}
.game .e-left i.hotel,.game .e-right i.hotel{width:calc(var(--u)*1.9);height:calc(var(--u)*3)}

.game .nm{padding:0 .2cqw;font-weight:700;overflow-wrap:normal;hyphens:manual;letter-spacing:-.02em;margin-top:calc(var(--u)*.4);max-width:100%}
.game .cell:not(.corner) .nm{font-size:calc(var(--u)*1.18)}
.game .flag{width:calc(var(--u)*3.2);height:calc(var(--u)*3.2);border-radius:50%;overflow:hidden;flex:none;box-shadow:0 0 0 .2cqw rgba(255,255,255,.85);display:block}
.game .flag svg{width:100%;height:100%;display:block}
.game .ico{font-size:calc(var(--u)*3);line-height:1;margin-top:calc(var(--u)*.5)}
.game .pr{position:relative;z-index:2;margin-bottom:calc(var(--u)*.45);padding:.15cqw calc(var(--u)*.6);border-radius:calc(var(--u)*.5);background:rgba(0,0,0,.32);color:var(--money);font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.game .pr.tax{color:var(--bad)}
/* Owned: the tag shows the rent, in the owner's colour. */
.game .pr.rent{background:var(--own);color:#15121d;box-shadow:0 0 0 .15cqw rgba(0,0,0,.35)}
.game .pr.mortg{background:#3a3546;color:#cfc8de;font-size:.85em;letter-spacing:.02em}
.game .pr.pot{color:var(--money)}
.game .lab-sur{color:#ff8fd0}.game .lab-tre{color:var(--accent)}
.game .corner{background:var(--panel2)}
.game .corner .nm{font-size:calc(var(--u)*1.65);font-family:var(--f-display);font-weight:400;letter-spacing:.02em;margin-bottom:1cqw}
.game .corner .ico{font-size:calc(var(--u)*5);margin-top:calc(var(--u)*1.3)}
.game .cell.owned::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 calc(var(--u)*.35) var(--own);pointer-events:none;z-index:2}
.game .ownbar{display:none}
.game .cell.mort::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(135deg,rgba(0,0,0,.42) 0 .7cqw,transparent .7cqw 1.4cqw);z-index:1;pointer-events:none}
.game .cell.mort .flag,.game .cell.mort .nm{opacity:.6}
@container board (max-width:560px){
  .game .cell:not(.corner) .nm{display:none}
  .game .cell:not(.corner) .pr{font-size:calc(var(--u)*1.7);padding:0 .3cqw}
  .game .flag{width:calc(var(--u)*4.4);height:calc(var(--u)*4.4)}
  .game .ico{font-size:calc(var(--u)*4.2)}
  .game .corner .nm{font-size:calc(var(--u)*2.1)}
  .game i.house{width:calc(var(--u)*1.9);height:calc(var(--u)*1.8)}
  .game .cell:not(.corner) .pr.mortg{font-size:0}
  .game .cell:not(.corner) .pr.mortg::after{content:"🔒";font-size:calc(var(--u)*2)}
}

/* ----- tokens: drawn above the board so they can hop from space to space ----- */
.game .tok-layer{position:absolute;inset:0;pointer-events:none;z-index:6;--ts:22px}
.game .ptok{position:absolute;left:0;top:0;width:var(--ts);height:var(--ts);transition:transform var(--step,150ms) ease-out;will-change:transform}
.game .ptok.still{transition:none}
.game .ptok.fly{transition:transform .46s cubic-bezier(.45,-0.25,.4,1.25)}
.game .ptok .in{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:var(--pc);border:max(2px,calc(var(--ts)*.11)) solid #fff;box-shadow:0 3px 6px rgba(0,0,0,.65);font-size:calc(var(--ts)*.58);line-height:1}
.game .ptok.emo .in{background:color-mix(in srgb,var(--pc) 35%,#1b1726);border-color:var(--pc)}
.game .ptok.cur{z-index:2}
.game .ptok.cur .in{box-shadow:0 0 0 3px color-mix(in srgb,var(--pc) 55%,transparent),0 4px 10px rgba(0,0,0,.7)}
.game .ptok.hop .in{animation:hop var(--step,150ms) ease-out}
@keyframes hop{45%{transform:translateY(-55%) scale(1.12)}100%{transform:none}}
.game .ptok.out{display:none}
@media (prefers-reduced-motion:reduce){.game .ptok{transition:none}.game .ptok.hop .in{animation:none}}

/* ----- centre of the board ----- */
.game .center{grid-row:2/11;grid-column:2/11;background:var(--center);border-radius:1cqw;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2cqw;padding:3cqw;text-align:center;min-width:0;min-height:0;overflow:hidden}
.game .glogo{font-family:var(--f-display);font-size:6.4cqw;line-height:.95;color:var(--ink);text-shadow:0 .5cqw 0 rgba(0,0,0,.45)}
.game .glogo span{color:var(--accent)}
.game .gsub{font-size:1.6cqw;color:var(--muted);text-transform:uppercase;letter-spacing:.16em;margin-top:.8cqw}
.game .dice{display:flex;gap:2.6cqw}
.game .die{width:9cqw;aspect-ratio:1;background:#fbfaff;border-radius:1.8cqw;display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);padding:1.3cqw;box-shadow:0 .8cqw 0 #c9c3da,0 1.4cqw 2cqw rgba(0,0,0,.5)}
.game .die b{width:62%;aspect-ratio:1;border-radius:50%;background:#1a1724;place-self:center}
.game .die.rolling{animation:tumble .18s linear infinite}
.game .die.rolling:nth-child(2){animation-direction:reverse}
@keyframes tumble{0%{transform:rotate(0) translateY(0)}25%{transform:rotate(-14deg) translateY(-1.4cqw)}50%{transform:rotate(8deg) translateY(-.4cqw)}75%{transform:rotate(16deg) translateY(-1.1cqw)}100%{transform:rotate(0) translateY(0)}}
@media (prefers-reduced-motion:reduce){.game .die.rolling{animation:none}}
.game .msg{font-size:max(12px,1.8cqw);max-width:46ch;font-weight:500}
.game .cardbox{background:var(--panel2);border:.25cqw solid var(--cb,var(--accent));border-radius:1.2cqw;padding:1.4cqw 2.4cqw;font-size:max(12px,1.8cqw);max-width:40ch}
.game .cardbox.fresh{animation:pop .3s ease-out}
.game .cardbox small{display:block;color:var(--cb,var(--accent));font-family:var(--f-display);font-size:1.2em;letter-spacing:.06em;text-transform:uppercase}
@keyframes pop{from{transform:scale(.85) rotate(-3deg);opacity:0}to{transform:none;opacity:1}}
.game .cmini{font-size:max(11px,1.6cqw);padding:.6cqw 1.6cqw;border-radius:99px;background:var(--panel2);max-width:100%}
.game .cmini.auc{border:1px solid var(--accent)}

/* ----- side panel ----- */
.game .side{display:flex;flex-direction:column;gap:14px;min-width:0}
.game .box{background:var(--panel);border-radius:12px;padding:14px}
.game .lbl{font-size:11px;text-transform:uppercase;letter-spacing:.14em;color:var(--muted);font-weight:700;margin-bottom:8px}
.game .note{font-size:12px;color:var(--muted);margin-top:8px}
.game .turn{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-family:var(--f-display);font-size:20px}
.game .turn .money{font-family:var(--f-body);font-size:16px;margin-left:auto}
.game .dot{width:14px;height:14px;border-radius:50%;flex:none;border:2px solid #fff;display:inline-block}
.game .players{display:flex;flex-direction:column;gap:6px}
.game .pl{display:grid;grid-template-columns:auto 1fr auto;gap:2px 8px;align-items:center;padding:8px 10px;border-radius:9px;background:var(--panel2);border:2px solid transparent}
.game .pl.cur{border-color:var(--accent)}
.game .pl.out{opacity:.4}
.game .pl.out .nmx{text-decoration:line-through}
.game .pl .nmx{font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.game .pl .meta{grid-column:2/4;font-size:12px;color:var(--muted);display:flex;flex-wrap:wrap;gap:3px;align-items:center}
.game .pl .chips{grid-column:1/4;display:flex;flex-wrap:wrap;gap:3px;margin-top:4px}
.game .pl .chip{min-width:14px;height:14px;border-radius:3px;display:inline-grid;place-items:center;font-size:9px;font-weight:800;color:#15121d;padding:0 2px}
.game .pl .chip.m{opacity:.35}
.game .pl .chip.b{box-shadow:0 0 0 1.5px #fff}
.game .pl .cashv{position:relative}
.game .dcash{position:absolute;right:0;top:-2px;font-size:12px;font-weight:800;pointer-events:none;animation:floatup 1.6s ease-out forwards;white-space:nowrap}
.game .dcash.up{color:var(--money)}.game .dcash.down{color:var(--bad)}
@keyframes floatup{0%{transform:translateY(4px);opacity:0}15%{opacity:1}100%{transform:translateY(-20px);opacity:0}}
.game .ptrade{margin-left:auto;padding:2px 8px;font-size:13px}
.game .chip{width:10px;height:10px;border-radius:2px;display:inline-block}
.game .info h3{font-size:22px;margin-bottom:8px;display:flex;align-items:center;gap:10px}
.game .info h3 .flag{width:26px;height:26px;box-shadow:0 0 0 2px #fff}
.game .info table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.game .info td{padding:4px 0;border-bottom:1px solid var(--panel2)}
.game .info td:last-child{text-align:right}
.game .info tr.now td{color:var(--accent);font-weight:700}
.game .info tr.now td:first-child::before{content:"▶ ";font-size:10px}
.game .info i.house{--u:9px;margin-right:1px;vertical-align:-1px}
.game .info i.hotel{--u:9px;vertical-align:-2px}
.game .owner-row{display:flex;align-items:center;gap:6px;font-size:14px;margin-bottom:8px;flex-wrap:wrap}
.game .bld-now{display:flex;align-items:center;gap:3px;margin-bottom:8px;--u:13px;font-size:13px;font-weight:700}
.game .bld-now span{margin-left:6px}
.game .gswatch{height:6px;border-radius:3px;margin-bottom:10px}
.game .log{max-height:230px;overflow:auto;font-size:13px;display:flex;flex-direction:column;gap:5px;padding-right:4px}
.game .log div{border-bottom:1px solid var(--panel2);padding-bottom:5px}
.game .log div:first-child{font-weight:600}
.game .winner{font-family:var(--f-display);font-size:28px;margin-bottom:4px;display:flex;align-items:center;gap:10px}

.game .turn-timer{height:6px;border-radius:3px;background:var(--panel2);overflow:hidden;margin:-4px 0 6px}
.game .turn-timer i{display:block;height:100%;width:100%;background:var(--money);border-radius:3px;transition:width .5s linear}
.game .turn-timer i.low{background:var(--bad)}
.game .timer-text{font-size:12px;color:var(--muted);margin-bottom:10px;font-variant-numeric:tabular-nums}
.game .you{font-family:var(--f-body);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;background:var(--accent);color:var(--accent-ink);padding:1px 6px;border-radius:5px;vertical-align:middle}
.game .waiting{color:var(--muted);margin:2px 0}
.game .btns{display:flex;flex-wrap:wrap;gap:8px}
.game .btns .btn{white-space:normal;text-align:center}
.game .btn-roll{font-size:17px;padding-inline:22px}
.game .btn-trade{margin-left:auto}
.game .pface{width:26px;height:26px;border-radius:50%;overflow:hidden;flex:none;box-shadow:0 0 0 2.5px var(--c)}
.game .pface img{width:100%;height:100%;object-fit:cover;display:block}
.game .pl .lvl{margin-left:4px}
.game .pl .off{font-size:11px;color:var(--muted);margin-left:4px}
.game .pl.offline .pface,.game .pl.offline .dot{opacity:.5}
.game .botchip{display:inline-flex;align-items:center;margin-left:4px;padding:2px 8px;border-radius:999px;font-family:var(--f-body);font-size:11.5px;font-weight:800;white-space:nowrap;vertical-align:middle;color:#8fb7ff;background:color-mix(in srgb,#8fb7ff 16%,transparent)}
.game .botchip::before{content:"🤖";margin-right:4px;font-size:11px}
.game .thinking .dots i{font-style:normal;animation:gdots 1.2s infinite;opacity:.2}
.game .thinking .dots i:nth-child(2){animation-delay:.2s}
.game .thinking .dots i:nth-child(3){animation-delay:.4s}
@keyframes gdots{50%{opacity:1}}
@media (prefers-reduced-motion:reduce){.game .thinking .dots i{animation:none;opacity:1}}
.game .nrow select.kind{flex:0 0 auto;width:auto;min-width:0;max-width:44%}
@media (max-width:420px){.game .nrow{flex-wrap:wrap}.game .nrow .input:not(.kind){flex-basis:calc(100% - 30px)}.game .nrow select.kind{margin-left:30px;max-width:none;flex:1}}
.game .pface.emo{display:grid;place-items:center;font-size:15px;line-height:1}
.game .pface.fr{box-shadow:none;outline:2.5px solid var(--fr,var(--c));outline-offset:1px}

/* ----- trade, auction and debt boxes ----- */
.game .tradebox,.game .aucbox,.game .debtbox{border-radius:10px;padding:10px 12px;margin-bottom:10px;background:var(--panel2)}
.game .tradebox.in{border:2px solid var(--accent)}
.game .tradebox p,.game .debtbox p{margin:4px 0;font-size:14px}
.game .cchips{display:flex;flex-wrap:wrap;gap:5px;margin:4px 0 6px}
.game .cchip{display:inline-flex;align-items:center;gap:5px;padding:3px 9px 3px 4px;border-radius:99px;background:color-mix(in srgb,var(--cc,var(--muted)) 22%,var(--panel));border:1px solid color-mix(in srgb,var(--cc,var(--muted)) 60%,transparent);font-size:13px;font-weight:600}
.game .cchip.cash{padding-left:9px}
.game .cchip .flag,.game .tcell .flag,.game .auc-head .flag{width:16px;height:16px;box-shadow:0 0 0 1.5px #fff}
.game .cchip small{color:var(--muted);font-weight:500}
.game .ci{font-size:14px;line-height:1}
.game .aucbox{border:2px solid var(--accent)}
.game .auc-head{display:flex;align-items:center;gap:8px;font-size:16px;margin-bottom:6px}
.game .auc-head .muted{font-size:12px;margin-left:auto}
.game .auc-bid{font-size:15px;margin-bottom:8px}
.game .auc-who{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px}
.game .aw{font-size:12px;padding:2px 8px;border-radius:99px;border:1.5px solid var(--pc);color:var(--ink-2)}
.game .aw.gone{opacity:.35;text-decoration:line-through}
.game .aw.now{background:color-mix(in srgb,var(--pc) 30%,transparent);color:var(--ink);font-weight:700}
.game .aw.top::after{content:" ★";color:var(--accent)}
.game .you-bid{font-size:13px;color:var(--muted);margin:2px 0 6px}
.game .bid-form{display:flex;gap:6px;margin:8px 0}
.game .bid-form .input{flex:1;min-width:0}
.game .debtbox{border:2px solid var(--bad)}
.game .btn-danger{border-color:var(--bad)}

/* ----- voice chat ----- */
.game .voice-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.game .voice-bar:empty{display:none}
.game .btn-voice{border-color:color-mix(in srgb,#7ee0d2 60%,var(--line));color:#9ff0e4}
.game .vchip{display:inline-flex;align-items:center;gap:4px;padding:3px 10px 3px 6px;border-radius:99px;background:var(--panel2);font-size:12.5px;font-weight:600;border:1.5px solid transparent;transition:border-color .12s,box-shadow .12s}
.game .vchip.talking{border-color:#3ddc84;box-shadow:0 0 0 3px color-mix(in srgb,#3ddc84 25%,transparent)}
.game .vchip.muted{opacity:.6}
.game .vico{font-size:12px}
.game .verr{font-size:12px;color:var(--bad)}
.game .vmic{font-size:11px;margin-left:3px;border-radius:99px;padding:0 2px;transition:box-shadow .12s}
.game .vmic.talking{box-shadow:0 0 0 2px #3ddc84;background:color-mix(in srgb,#3ddc84 25%,transparent)}
.game .vmic.muted{opacity:.6}

/* ----- my cities ----- */
.game .myprops[hidden]{display:none}
.game .mgroups{display:flex;flex-direction:column;gap:6px}
.game .mgroup{border-radius:10px;background:var(--panel2);border-left:4px solid var(--g,var(--muted));padding:7px 9px}
.game .mgroup.full{background:color-mix(in srgb,var(--g) 12%,var(--panel2))}
.game .mhead{display:flex;align-items:center;gap:7px;font-size:13.5px}
.game .mhead .flag{width:18px;height:18px;box-shadow:0 0 0 1.5px #fff}
.game .mcount{font-size:12px;color:var(--muted);font-weight:700}
.game .mgroup.full .mcount{color:var(--money)}
.game .mbtns{margin-left:auto;display:flex;gap:4px}
.game .mbtns .btn{padding:3px 9px;font-size:12.5px;min-height:0}
.game .mcities{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.game .mcity{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:8px;padding:3px 8px;font-size:12.5px;font-weight:600;cursor:pointer}
.game .mcity:hover{border-color:var(--g,var(--accent))}
.game .mcity.m{opacity:.6;border-style:dashed}
.game .mcity small{color:var(--muted);font-weight:500}
.game .mb{display:inline-flex;align-items:center;gap:2px;padding:0 5px;border-radius:6px;background:#1f9d57;color:#fff;font-size:11px;font-weight:800;--u:8px}
.game .mb i.house{background:#fff}
.game .mb.h{background:var(--hotel)}

/* ----- end of game ----- */
.game .winner .trophy{font-size:30px;animation:pop .5s ease-out}
.game .results{overflow-x:auto;margin:8px 0}
.game .results table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.game .results th{font-size:10.5px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);text-align:left;padding:4px 4px;font-weight:700}
.game .results td{padding:6px 4px;border-top:1px solid var(--panel2);white-space:nowrap}
.game .results td .dot{width:10px;height:10px;margin-right:6px;vertical-align:-1px}
.game .results tr.win td{color:var(--ink);font-weight:700;background:color-mix(in srgb,var(--accent) 10%,transparent)}
.game .chart{margin-top:10px}
.game .chart svg{width:100%;height:auto;display:block;background:var(--panel2);border-radius:10px}
.game .chart .axis{stroke:var(--line);stroke-width:1}
.game .chart-axis{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-top:4px}

/* ----- trade window ----- */
.tmodal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:16px}
.tmodal[hidden]{display:none}
.tmodal .tm-back{position:absolute;inset:0;background:rgba(6,5,10,.72);backdrop-filter:blur(2px)}
.tmodal .tm-card{position:relative;background:var(--panel);border-radius:16px;width:min(760px,100%);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;gap:12px;padding:18px;box-shadow:0 30px 80px rgba(0,0,0,.6);outline:none}
.tmodal.opening .tm-card{animation:pop .22s ease-out}
.tmodal .tm-top{display:flex;align-items:center;justify-content:space-between}
.tmodal h2{font-size:24px;margin:0}
.tmodal .tm-who{display:flex;flex-wrap:wrap;gap:6px}
.tmodal .tw{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:99px;border:1.5px solid var(--line);background:var(--bg-raised);color:var(--ink-2);font-weight:600;cursor:pointer}
.tmodal .tw.on{border-color:var(--pc);background:color-mix(in srgb,var(--pc) 18%,var(--bg-raised));color:var(--ink)}
.tmodal .tm-body{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;overflow:auto;min-height:0;padding-right:8px}
.tmodal .tm-swap{align-self:center;font-size:24px;color:var(--muted)}
.tmodal .tcol{display:flex;flex-direction:column;gap:8px;min-width:0}
.tmodal .tcol-head{display:flex;align-items:center;gap:8px}
.tmodal .tcol-head .money{margin-left:auto}
.tmodal .tcells{display:flex;flex-direction:column;gap:4px;max-height:260px;overflow:auto;padding-right:2px}
.tmodal .tcell{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:9px;border:1.5px solid transparent;background:color-mix(in srgb,var(--cc) 12%,var(--panel-2));color:var(--ink);text-align:left;cursor:pointer;font-weight:600;font-size:14px;border-left:5px solid var(--cc)}
.tmodal .tcell small{color:var(--muted);font-weight:500;font-size:11px}
.tmodal .tcell .tck{margin-left:auto;color:var(--accent);font-weight:800}
.tmodal .tcell.on{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 16%,var(--panel-2))}
.tmodal .tcell:disabled{opacity:.45;cursor:not-allowed}
.tmodal .tcash,.tmodal .tcards{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600}
.tmodal .tcash .input,.tmodal .tcards .input{flex:1;min-width:0}
.tmodal input[type=range]{width:100%;accent-color:var(--accent)}
.tmodal .note{font-size:12px;color:var(--muted);margin:0}
.tmodal .flag{width:16px;height:16px;border-radius:50%;overflow:hidden;flex:none;display:block}
.tmodal .flag svg{width:100%;height:100%;display:block}
.tmodal .dot{width:14px;height:14px;border-radius:50%;flex:none;border:2px solid #fff;display:inline-block}
@media (max-width:640px){.tmodal .tm-body{grid-template-columns:1fr}.tmodal .tm-swap{justify-self:center;transform:rotate(90deg)}.tmodal{padding:8px}}

/* =========================================================================
   Polish: depth, light and colour. These rules refine the basic look above.
   ========================================================================= */
.game{background:radial-gradient(1100px 700px at 30% 10%,color-mix(in srgb,var(--accent) 7%,transparent),transparent 70%),radial-gradient(900px 600px at 90% 80%,rgba(123,140,255,.06),transparent 70%)}
.game .board{background:linear-gradient(160deg,color-mix(in srgb,var(--board-line) 72%,#3a3355),var(--board-line) 55%);box-shadow:0 0 0 1px rgba(255,255,255,.06),0 2px 0 rgba(255,255,255,.05) inset,0 40px 80px -20px rgba(0,0,0,.7),0 18px 36px rgba(0,0,0,.45);border-radius:1.8cqw}

/* Spaces: a soft light from above, a thin highlight on the top edge, a lift on hover. */
.game .cell{background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,0) 55%),color-mix(in srgb,var(--g) 13%,var(--cell));box-shadow:inset 0 1px 0 rgba(255,255,255,.07),inset 0 -1px 0 rgba(0,0,0,.35);transition:transform .12s ease,filter .12s ease}
.game .cell.special{background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,0) 55%),var(--cell)}
.game .cell:hover{filter:brightness(1.18);transform:translateY(-1px);z-index:3}
.game .strip{box-shadow:inset 0 1px 0 rgba(255,255,255,.35),inset 0 -1px 0 rgba(0,0,0,.25)}
.game .e-bottom .strip,.game .e-top .strip{background:linear-gradient(180deg,color-mix(in srgb,var(--g) 85%,#fff),var(--g))}
.game .e-left .strip,.game .e-right .strip{background:linear-gradient(90deg,color-mix(in srgb,var(--g) 85%,#fff),var(--g))}

/* Corners each get their own colour. */
.game .corner{background:linear-gradient(145deg,var(--c1,#2c2640),var(--c2,#1c1828))}
.game .corner.t-start{--c1:#1f4d36;--c2:#14261d}
.game .corner.t-jail{--c1:#38344a;--c2:#1f1c2b}
.game .corner.t-free{--c1:#17485a;--c2:#11252e}
.game .corner.t-gojail{--c1:#5a2230;--c2:#2a1219}
.game .corner .nm{text-shadow:0 2px 0 rgba(0,0,0,.4)}
.game .corner.t-start .nm{color:#7ef0a8}
.game .corner.t-gojail .nm{color:#ff9aa8}
.game .corner.t-free .nm{color:#8fe3ff}
.game .t-chance .ico,.game .t-chest .ico{filter:drop-shadow(0 .3cqw .4cqw rgba(0,0,0,.5))}

/* On side columns the building badge sits at the top of the strip, clear of the flag. */
.game .e-left .bld{top:6%;transform:translate(8%,0)}
.game .e-right .bld{top:6%;transform:translate(-8%,0)}
.game .pr{border:1px solid rgba(255,255,255,.06)}

/* Centre: a soft spotlight, a faint dotted globe pattern, whose turn it is. */
.game .center{position:relative;background:radial-gradient(circle at 50% 42%,color-mix(in srgb,var(--center) 78%,#4a4070) 0,var(--center) 58%,color-mix(in srgb,var(--center) 85%,#000) 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),inset 0 20px 60px rgba(0,0,0,.35)}
.game .center::before{content:"";position:absolute;inset:6%;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.06) 1px,transparent 1.5px) 0 0/2.4cqw 2.4cqw;-webkit-mask:radial-gradient(circle,#000 55%,transparent 72%);mask:radial-gradient(circle,#000 55%,transparent 72%);pointer-events:none;opacity:.8}
.game .center>*{position:relative}
.game .cglow{position:absolute!important;width:60%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--accent) 16%,transparent),transparent 65%);filter:blur(2cqw);pointer-events:none}
.game .glogo{font-size:7cqw;letter-spacing:.01em;text-shadow:0 .5cqw 0 rgba(0,0,0,.5),0 0 4cqw color-mix(in srgb,var(--accent) 25%,transparent)}
.game .board.b-world .glogo{font-size:6cqw}
.game .gsub{display:flex;gap:1.2cqw;justify-content:center;font-size:1.45cqw;margin-top:1.2cqw}
.game .gsub span{padding:.3cqw 1.2cqw;border-radius:99px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.06)}
.game .cturn{display:inline-flex;align-items:center;gap:1cqw;font-weight:700;font-size:max(12px,1.8cqw);padding:.7cqw 2cqw;border-radius:99px;background:color-mix(in srgb,var(--pc,var(--accent)) 16%,#1b1726);border:1px solid color-mix(in srgb,var(--pc,var(--accent)) 45%,transparent)}
.game .cturn i{width:1.4cqw;height:1.4cqw;min-width:9px;min-height:9px;border-radius:50%;background:var(--pc);box-shadow:0 0 0 .25cqw rgba(255,255,255,.8)}

/* Dice with a bit of shape. */
.game .die{background:linear-gradient(145deg,#ffffff,#e4e0ef);box-shadow:inset 0 -.5cqw 0 rgba(0,0,0,.08),inset 0 .3cqw 0 #fff,0 .8cqw 0 #b9b2cc,0 1.6cqw 2.4cqw rgba(0,0,0,.55)}
.game .die b{background:radial-gradient(circle at 35% 30%,#4a4460,#14111d 70%);box-shadow:inset 0 .15cqw .2cqw rgba(0,0,0,.4)}

/* Tokens with a shine. */
.game .ptok .in{background:radial-gradient(circle at 32% 28%,color-mix(in srgb,var(--pc) 45%,#fff),var(--pc) 55%,color-mix(in srgb,var(--pc) 70%,#000))}
.game .ptok.emo .in{background:radial-gradient(circle at 32% 28%,color-mix(in srgb,var(--pc) 40%,#3a3450),#1b1726)}

/* Side panel: cards with a fine edge, the active player glows. */
.game .box{background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,0) 40%),var(--panel);border:1px solid rgba(255,255,255,.05);box-shadow:0 10px 30px -12px rgba(0,0,0,.5);border-radius:14px}
.game .lbl{display:flex;align-items:center;gap:6px}
.game .turn{font-size:22px}
.game .turn .money{font-size:18px;font-weight:800}
.game .pl{transition:border-color .2s,box-shadow .2s}
.game .pl.cur{box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent),0 8px 20px -10px color-mix(in srgb,var(--accent) 60%,transparent)}
.game .pl .money{font-weight:800}
.game .btn-roll{box-shadow:0 6px 0 color-mix(in srgb,var(--accent) 55%,#000),0 10px 24px -6px color-mix(in srgb,var(--accent) 60%,transparent)}
.game .btn-roll:not(:disabled){animation:rollpulse 2.2s ease-in-out infinite}
@keyframes rollpulse{50%{transform:translateY(-1px);filter:brightness(1.07)}}
@media (prefers-reduced-motion:reduce){.game .btn-roll{animation:none}.game .cell:hover{transform:none}}
@media (min-width:901px){.game .side{position:sticky;top:76px;max-height:calc(100dvh - 92px);overflow:auto;scrollbar-width:thin;padding-right:2px}}

/* ----- full country: the cities glow softly in the owner's colour ----- */
.game .cell.set::after{box-shadow:inset 0 0 0 calc(var(--u)*.4) var(--own),inset 0 0 calc(var(--u)*2.4) color-mix(in srgb,var(--own) 55%,transparent)}
.game .cell.set{animation:setglow 3.2s ease-in-out infinite}
@keyframes setglow{50%{filter:brightness(1.12) saturate(1.1)}}
@media (prefers-reduced-motion:reduce){.game .cell.set{animation:none}}

/* ----- dice thrown in from the sides of the centre ----- */
.game .dice.throw .die{animation:throwL .65s cubic-bezier(.2,.7,.3,1) both}
.game .dice.throw .die:nth-child(2){animation-name:throwR;animation-delay:.04s}
@keyframes throwL{0%{transform:translate(-26cqw,16cqw) rotate(-420deg) scale(.6);opacity:0}12%{opacity:1}62%{transform:translate(1.5cqw,-2.2cqw) rotate(16deg) scale(1.06)}82%{transform:translate(-.4cqw,.4cqw) rotate(-5deg)}100%{transform:none}}
@keyframes throwR{0%{transform:translate(26cqw,18cqw) rotate(460deg) scale(.6);opacity:0}12%{opacity:1}62%{transform:translate(-1.5cqw,-2.6cqw) rotate(-18deg) scale(1.06)}82%{transform:translate(.4cqw,.4cqw) rotate(4deg)}100%{transform:none}}
@media (prefers-reduced-motion:reduce){.game .dice.throw .die{animation:none}}

/* ----- sound button, "your turn" banner, confetti ----- */
.game .sfx-btn{position:absolute;top:1.6cqw;right:1.6cqw;z-index:8;width:max(30px,4.6cqw);height:max(30px,4.6cqw);border-radius:50%;border:1px solid rgba(255,255,255,.12);background:rgba(20,17,29,.75);backdrop-filter:blur(4px);font-size:max(14px,2.2cqw);cursor:pointer;display:grid;place-items:center;line-height:1}
.game .sfx-btn:hover{background:rgba(40,34,58,.9)}
.game .turn-banner{position:absolute;left:50%;top:44%;z-index:9;transform:translate(-50%,-50%) scale(.6);opacity:0;pointer-events:none;
  font-family:var(--f-display);font-size:max(22px,5.4cqw);white-space:nowrap;padding:1.2cqw 4cqw;border-radius:99px;color:#fff;
  background:linear-gradient(180deg,color-mix(in srgb,var(--pc) 75%,#fff),var(--pc));text-shadow:0 .3cqw 0 rgba(0,0,0,.35);
  box-shadow:0 0 0 .5cqw rgba(255,255,255,.85),0 2cqw 5cqw rgba(0,0,0,.55),0 0 6cqw color-mix(in srgb,var(--pc) 60%,transparent)}
.game .turn-banner.show{animation:banner 1.7s cubic-bezier(.2,.9,.3,1.2) both}
@keyframes banner{0%{opacity:0;transform:translate(-50%,-50%) scale(.5) rotate(-4deg)}14%{opacity:1;transform:translate(-50%,-50%) scale(1.08) rotate(1deg)}22%{transform:translate(-50%,-50%) scale(1)}80%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-62%) scale(.96)}}
@media (prefers-reduced-motion:reduce){.game .turn-banner.show{animation:none;opacity:1;transform:translate(-50%,-50%)}}
.game .confetti{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:10;display:none}
.game .confetti.on{display:block}

/* ----- city landmarks with a small flag badge ----- */
.game .lmw{position:relative;display:grid;place-items:center;flex:none}
.game .lm{font-size:calc(var(--u)*3.1);line-height:1;filter:drop-shadow(0 .25cqw .3cqw rgba(0,0,0,.55))}
.game .lmw .lm+.flag{position:absolute;right:calc(var(--u)*-1.4);bottom:calc(var(--u)*-.5);width:calc(var(--u)*1.7);height:calc(var(--u)*1.7);box-shadow:0 0 0 .15cqw #fff}
@container board (max-width:560px){.game .lm{font-size:calc(var(--u)*4.2)}.game .lmw .lm+.flag{width:calc(var(--u)*2.2);height:calc(var(--u)*2.2)}}

/* ----- 3D houses on big boards; the badge stays for small ones ----- */
.game .bld3d{display:none;position:absolute;z-index:4;pointer-events:none;gap:1px;justify-content:center;align-items:flex-end;filter:drop-shadow(0 .2cqw .2cqw rgba(0,0,0,.7))}
.game .bld3d .h3{width:calc(var(--u)*1.9);height:calc(var(--u)*1.9);display:block}
.game .bld3d .h3.ht{width:calc(var(--u)*3.6)}
.game .e-bottom .bld3d{top:-.4cqw;left:0;right:0}
.game .e-top .bld3d{bottom:-.2cqw;left:0;right:0}
.game .e-left .bld3d{right:-.2cqw;top:0;bottom:0;flex-direction:column;justify-content:center;width:13%}
.game .e-right .bld3d{left:-.2cqw;top:0;bottom:0;flex-direction:column;justify-content:center;width:13%}
.game .e-left .bld3d .h3,.game .e-right .bld3d .h3{width:calc(var(--u)*1.6);height:calc(var(--u)*1.6)}
@container board (min-width:700px){.game .bld3d{display:flex}.game .bld{display:none}}
/* Only a building that was just built pops in (see the build effects below). */
.game .bld3d .h3.pop{animation:rise .45s cubic-bezier(.3,1.6,.5,1) both}
@keyframes rise{from{transform:translateY(-60%) scale(.3);opacity:0}}

/* ----- before rolling: how far each reachable space is ----- */
.game .rch{position:absolute;z-index:5;top:3%;left:3%;min-width:calc(var(--u)*2);height:calc(var(--u)*2);padding:0 .3cqw;border-radius:99px;display:grid;place-items:center;
  font:800 calc(var(--u)*1.15)/1 var(--f-body);color:#15121d;background:color-mix(in srgb,var(--accent) calc(var(--p)*100%),#8a83a0);opacity:calc(.45 + var(--p)*.55);pointer-events:none}
.game .cell.reach{box-shadow:inset 0 0 0 calc(var(--u)*.2) color-mix(in srgb,var(--accent) 45%,transparent)}
@container board (max-width:560px){.game .rch{font-size:calc(var(--u)*1.6);min-width:calc(var(--u)*2.6);height:calc(var(--u)*2.6)}}

/* ----- centre: a turning dotted globe and a city skyline ----- */
.game .center::before{animation:globe 90s linear infinite}
@keyframes globe{to{transform:rotate(360deg)}}
.game .skyline{position:absolute!important;left:0;right:0;bottom:0;width:100%;height:18%;color:color-mix(in srgb,var(--center) 55%,#000);opacity:.85;pointer-events:none}
.game .skyline .win rect{animation:twinkle 4s ease-in-out infinite}
.game .skyline .win rect:nth-child(3n){animation-delay:1.3s}.game .skyline .win rect:nth-child(3n+1){animation-delay:2.6s}
@keyframes twinkle{50%{opacity:.15}}
@media (prefers-reduced-motion:reduce){.game .center::before,.game .skyline .win rect{animation:none}}

/* ----- seats above the board ----- */
.game .seatbar-box{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.game .seatbar{flex:1;min-width:0;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:4px 2px}
.game .seatbar::-webkit-scrollbar{display:none}
.game .sb{position:relative;flex:1 0 auto;min-width:112px;max-width:190px;display:flex;align-items:center;gap:7px;padding:5px 10px 5px 5px;border-radius:99px;background:var(--panel);border:1.5px solid color-mix(in srgb,var(--pc) 35%,transparent);transition:transform .2s,box-shadow .2s,border-color .2s}
.game .sb.now{border-color:var(--pc);box-shadow:0 0 0 3px color-mix(in srgb,var(--pc) 22%,transparent),0 8px 18px -8px var(--pc);transform:translateY(-1px)}
.game .sb.out{opacity:.4;filter:grayscale(.8)}
.game .sb.won{border-color:#f5b52e;box-shadow:0 0 0 3px rgba(245,181,46,.3),0 0 22px rgba(245,181,46,.45)}
.game .sb-face{position:relative;width:30px;height:30px;flex:none;border-radius:50%;display:grid;place-items:center;font-size:16px;font-weight:800;color:#15121d;
  background:radial-gradient(circle at 32% 28%,color-mix(in srgb,var(--pc) 45%,#fff),var(--pc) 60%);box-shadow:0 0 0 2px #fff;overflow:hidden}
.game .sb-face img{width:100%;height:100%;object-fit:cover}
.game .sb-bars{position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 5px,rgba(20,17,29,.85) 5px 7px)}
.game .sb-txt{display:flex;flex-direction:column;min-width:0;line-height:1.15}
.game .sb-nm{font-weight:700;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game .sb-cash{font-size:12px;font-weight:800;color:var(--money);font-variant-numeric:tabular-nums}
.game .sb-mic{position:absolute;top:-4px;left:22px;font-size:11px}
.game .sb-react{position:absolute;left:50%;top:-6px;font-size:22px;transform:translate(-50%,-100%);animation:sbreact 2s ease-out forwards;pointer-events:none}
@keyframes sbreact{0%{opacity:0;transform:translate(-50%,-60%) scale(.4)}20%{opacity:1;transform:translate(-50%,-110%) scale(1.2)}100%{opacity:0;transform:translate(-50%,-180%) scale(1)}}
.game .seatbar-box .sfx-btn{position:static;width:34px;height:34px;flex:none;font-size:16px}

/* ----- coins, reactions, new owners, bankrupt tokens ----- */
.game .coin{position:absolute;left:-8px;top:-8px;width:16px;height:16px;border-radius:50%;z-index:7;pointer-events:none;
  background:radial-gradient(circle at 35% 30%,#fff3b0,#f5b52e 55%,#b07a12);box-shadow:0 0 0 1.5px #8a5d0c,0 2px 6px rgba(0,0,0,.5)}
.game .react{position:absolute;left:0;top:0;z-index:9;font-size:max(26px,4.4cqw);pointer-events:none;filter:drop-shadow(0 3px 4px rgba(0,0,0,.5))}
.game .cell.flash{animation:ownflash 1.1s ease-out 1}
@keyframes ownflash{0%{box-shadow:0 0 0 0 var(--own,#fff)}30%{box-shadow:0 0 0 .9cqw color-mix(in srgb,var(--own,#fff) 70%,transparent);filter:brightness(1.5)}100%{box-shadow:0 0 0 1.6cqw transparent}}
.game .ptok.breaking .in{animation:shatter 1.1s ease-in forwards}
@keyframes shatter{0%{transform:none}20%{transform:scale(1.3) rotate(-12deg)}35%{transform:scale(1.1) rotate(10deg)}100%{transform:scale(0) rotate(200deg);opacity:0;filter:grayscale(1) brightness(.5)}}

/* ----- cards flip over when drawn ----- */
.game .center{perspective:900px}
.game .cardbox.fresh{animation:cardflip .7s cubic-bezier(.2,.8,.3,1.1) both;transform-origin:50% 50%}
@keyframes cardflip{0%{transform:translateY(-8cqw) rotateY(180deg) rotateZ(-8deg) scale(.5);opacity:0}40%{opacity:1}100%{transform:none}}

/* ----- end of game: awards and a chart that draws itself ----- */
.game .awards{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:6px;margin:8px 0}
.game .award{display:flex;align-items:center;gap:8px;padding:7px 9px;border-radius:10px;background:color-mix(in srgb,var(--pc) 12%,var(--panel2));border:1px solid color-mix(in srgb,var(--pc) 40%,transparent);animation:pop .4s ease-out both}
.game .award:nth-child(2){animation-delay:.1s}.game .award:nth-child(3){animation-delay:.2s}.game .award:nth-child(4){animation-delay:.3s}.game .award:nth-child(5){animation-delay:.4s}.game .award:nth-child(6){animation-delay:.5s}
.game .aw-i{font-size:20px}
.game .award small{display:block;font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700}
.game .award b{font-size:13px}
.game .aw-v{font-size:12px;color:var(--muted)}
.game .chart polyline{stroke-dasharray:100;stroke-dashoffset:100;animation:draw 1.8s ease-out forwards}
@keyframes draw{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){.game .chart polyline{animation:none;stroke-dashoffset:0}}

/* ----- phones: the board fills the screen, your moves sit in a sheet at the bottom ----- */
@media (max-width:700px){
  .game .wrap{padding-inline:6px;gap:12px;padding-bottom:calc(46vh + 20px)}
  .game .board{border-radius:2.4cqw}
  .game .side .box#actions{position:fixed;left:0;right:0;bottom:0;z-index:40;max-height:46vh;overflow:auto;margin:0;
    border-radius:18px 18px 0 0;padding:10px 14px calc(12px + env(safe-area-inset-bottom));box-shadow:0 -12px 30px rgba(0,0,0,.55);border-top:1px solid rgba(255,255,255,.08)}
  .game .side .box#actions::before{content:"";display:block;width:40px;height:4px;border-radius:2px;background:var(--line);margin:0 auto 8px}
  .game .side .box#actions .turn{font-size:18px;margin-bottom:8px}
  .game .side .box#actions .btn{min-height:44px}
  .game .side .box#actions .note{display:none}
  .game .seatbar-box{margin-bottom:6px}
  .game .sb{min-width:96px;padding-right:8px}
  .game .sb-face{width:26px;height:26px;font-size:14px}
  .game .turn-banner{font-size:26px}
  .table-strip{flex-wrap:wrap}
}

/* ----- red "Leave" button beside the seats ----- */
.game .extra-box{display:flex;flex:none}
.game .extra-box:empty{display:none}
.game .btn-leave{background:linear-gradient(180deg,#ff5d6b,#d93445);color:#fff;border:0;font-weight:700;box-shadow:0 4px 0 #8f1d2a,0 8px 18px -8px rgba(255,77,94,.7);white-space:nowrap}
.game .btn-leave:hover{filter:brightness(1.08);color:#fff}
.game .btn-leave.armed{animation:armed .5s ease-in-out infinite alternate}
@keyframes armed{to{box-shadow:0 4px 0 #8f1d2a,0 0 0 4px rgba(255,93,107,.45)}}

/* ----- your hand: cards under the board ----- */
.game .hand{margin-top:14px;padding:12px 14px 14px;border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,0)),var(--panel);border:1px solid rgba(255,255,255,.05)}
.game .hand[hidden]{display:none}
.game .hand-head{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}
.game .hand-head .lbl{margin:0}
.game .hand-head .note{margin:0}
.game .hand-row{display:flex;gap:18px;overflow-x:auto;padding:10px 4px 6px;scrollbar-width:thin}
.game .hand-empty{color:var(--muted);font-size:13px;margin:6px 0}
.game .hgroup{display:flex;flex-direction:column;align-items:center;gap:8px;flex:none}
.game .hgfoot{display:flex;align-items:center;gap:5px}
.game .hgfoot .btn{padding:3px 9px;font-size:12.5px;min-height:0}
.game .hgc{font-size:12px;font-weight:800;color:var(--muted)}
.game .hgroup.full .hgc{color:var(--money)}
/* Cards of one country overlap like a fan; the one under the pointer comes forward. */
.game .fan{display:flex}
.game .fan .deed+.deed{margin-left:-30px}
.game .fan .deed:nth-child(1){transform:rotate(-4deg)}
.game .fan .deed:nth-child(2){transform:rotate(0deg) translateY(-3px)}
.game .fan .deed:nth-child(3){transform:rotate(4deg)}
.game .fan .deed:hover,.game .fan .deed:focus-visible{transform:translateY(-14px) scale(1.04);z-index:5}

.game .deed{position:relative;width:104px;height:146px;flex:none;display:flex;flex-direction:column;align-items:center;gap:3px;padding:0 0 8px;border-radius:12px;cursor:pointer;
  background:linear-gradient(180deg,#fbf8ff,#e7e2f2);color:#1c1828;border:0;overflow:hidden;text-align:center;
  box-shadow:0 0 0 1.5px rgba(0,0,0,.25),0 6px 14px rgba(0,0,0,.45);transition:transform .18s ease,box-shadow .18s ease;font-family:var(--f-body)}
.game .deed .dh{align-self:stretch;display:flex;align-items:center;justify-content:center;gap:5px;padding:6px 6px;background:linear-gradient(180deg,color-mix(in srgb,var(--g) 80%,#fff),var(--g));color:#fff;
  font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;text-shadow:0 1px 1px rgba(0,0,0,.4)}
.game .deed .dh .flag{width:14px;height:14px;box-shadow:0 0 0 1.5px #fff}
.game .deed .dart{font-size:34px;line-height:1.1;margin-top:4px;filter:drop-shadow(0 3px 3px rgba(0,0,0,.25))}
.game .deed .dn{font-family:var(--f-display);font-weight:400;font-size:14.5px;line-height:1.05;padding:0 6px}
.game .deed .dbld{display:flex;gap:1px;height:16px;align-items:flex-end}
.game .deed .dbld .h3{width:15px;height:15px}
.game .deed .dbld .h3.ht{width:28px;height:17px}
.game .deed .dv{margin-top:auto;font-weight:800;font-size:13px;color:#14833f;font-variant-numeric:tabular-nums}
.game .deed .dv small{font-size:10px;color:#6a6380;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.game .deed .dv.m{color:#8a8398;text-decoration:line-through}
.game .deed.full{box-shadow:0 0 0 2px var(--g),0 0 16px color-mix(in srgb,var(--g) 60%,transparent),0 6px 14px rgba(0,0,0,.45)}
.game .deed.mort{filter:saturate(.35) brightness(.85)}
.game .deed .stamp{position:absolute;top:46%;left:50%;transform:translate(-50%,-50%) rotate(-18deg);padding:2px 8px;border:2px solid #d93445;border-radius:6px;color:#d93445;
  font-weight:900;font-size:11px;letter-spacing:.08em;text-transform:uppercase;background:rgba(255,255,255,.7)}
.game .deed .dnote{position:absolute;inset:auto 6px 30px;font-size:10px;font-weight:700;color:#d93445}
.game .deed .dtick{position:absolute;top:30px;right:6px;width:22px;height:22px;border-radius:50%;background:var(--accent);color:#1d1405;display:grid;place-items:center;font-weight:900;box-shadow:0 2px 6px rgba(0,0,0,.4)}
.game .deed:disabled{cursor:not-allowed;opacity:.55}
.game .deed:hover:not(:disabled){box-shadow:0 0 0 2px var(--g),0 12px 24px rgba(0,0,0,.55)}

/* "Jail Pass" card */
.game .jcard{position:relative;width:104px;height:146px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:10px;border-radius:12px;border:0;cursor:default;
  background:repeating-linear-gradient(135deg,#ffb84d 0 10px,#ffa733 10px 20px);color:#3a2205;text-align:center;box-shadow:0 0 0 1.5px rgba(0,0,0,.25),0 6px 14px rgba(0,0,0,.45);font-family:var(--f-body)}
.game .jcard[data-act]{cursor:pointer;animation:jglow 1.4s ease-in-out infinite alternate}
@keyframes jglow{to{box-shadow:0 0 0 3px #fff,0 0 22px rgba(255,184,77,.8)}}
.game .jcard .jk{font-size:34px;filter:drop-shadow(0 3px 3px rgba(0,0,0,.25))}
.game .jcard b{font-family:var(--f-display);font-weight:400;font-size:15px;line-height:1.05}
.game .jcard small{font-size:10.5px;font-weight:700;opacity:.8}
.game .jcard .jx{position:absolute;top:6px;right:6px;padding:1px 7px;border-radius:99px;background:#3a2205;color:#ffb84d;font-weight:900;font-size:12px}

/* Trade window: the same cards, in a grid; picked cards lift up. */
.tmodal .tcells{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;max-height:330px;padding:8px 2px}
.tmodal .deed.mini{width:86px;height:122px}
.tmodal .deed.mini .dart{font-size:26px}
.tmodal .deed.mini .dn{font-size:12.5px}
.tmodal .deed.mini .dh{font-size:9px;padding:5px 4px}
.tmodal .deed.on{transform:translateY(-6px);box-shadow:0 0 0 3px var(--accent),0 10px 22px rgba(0,0,0,.55)}
.tmodal .deed{position:relative;flex:none;display:flex;flex-direction:column;align-items:center;gap:2px;padding:0 0 6px;border-radius:10px;cursor:pointer;background:linear-gradient(180deg,#fbf8ff,#e7e2f2);color:#1c1828;border:0;overflow:hidden;text-align:center;box-shadow:0 0 0 1.5px rgba(0,0,0,.25),0 4px 10px rgba(0,0,0,.4);transition:transform .15s,box-shadow .15s}
.tmodal .deed .dh{align-self:stretch;display:flex;align-items:center;justify-content:center;gap:4px;background:linear-gradient(180deg,color-mix(in srgb,var(--g) 80%,#fff),var(--g));color:#fff;font-weight:800;letter-spacing:.05em;text-transform:uppercase;text-shadow:0 1px 1px rgba(0,0,0,.4)}
.tmodal .deed .dh .flag{width:12px;height:12px}
.tmodal .deed .dn{font-family:var(--f-display);font-weight:400;line-height:1.05;padding:0 4px}
.tmodal .deed .dv{margin-top:auto;font-weight:800;font-size:11.5px;color:#14833f}
.tmodal .deed .dv small{font-size:9px;color:#6a6380}
.tmodal .deed .dv.m{color:#8a8398;text-decoration:line-through}
.tmodal .deed .dbld{display:flex;gap:1px;height:12px;align-items:flex-end}
.tmodal .deed .dbld .h3{width:11px;height:11px}
.tmodal .deed .dbld .h3.ht{width:20px;height:12px}
.tmodal .deed .stamp{position:absolute;top:46%;left:50%;transform:translate(-50%,-50%) rotate(-18deg);padding:1px 6px;border:2px solid #d93445;border-radius:5px;color:#d93445;font-weight:900;font-size:9px;text-transform:uppercase;background:rgba(255,255,255,.7)}
.tmodal .deed .dnote{position:absolute;left:4px;right:4px;bottom:22px;font-size:9.5px;font-weight:700;color:#d93445}
.tmodal .deed .dtick{position:absolute;top:24px;right:5px;width:20px;height:20px;border-radius:50%;background:var(--accent);color:#1d1405;display:grid;place-items:center;font-weight:900}
.tmodal .deed:disabled{cursor:not-allowed;opacity:.5}
.tmodal .deed.mort{filter:saturate(.35) brightness(.85)}
.tmodal .tm-card{width:min(900px,100%)}

@media (max-width:700px){.game .deed{width:92px;height:130px}.game .deed .dart{font-size:28px}.game .fan .deed+.deed{margin-left:-40px}.game .jcard{width:92px;height:130px}}

/* =========================================================================
   Layout: chat & log on the left, a big board in the middle, your moves on the right.
   The board grows to the height of the screen, so the whole of it is always in view.
   ========================================================================= */
.game .wrap.three{max-width:1880px;grid-template-columns:290px minmax(0,1fr) 340px;grid-template-areas:"left board side";gap:18px;padding-block:14px 32px}
.game .wrap.three>.board-wrap{grid-area:board;width:100%;max-width:min(100%,calc(100dvh - 175px));min-width:0;margin-inline:auto}
.game .wrap.three>.side{grid-area:side}
.game .leftcol{grid-area:left;display:flex;flex-direction:column;gap:14px;min-width:0}
.game #game-wrap .wide-strip,.game .wide-strip{max-width:1880px}
@media (min-width:1281px){
  .game .leftcol{position:sticky;top:76px;height:calc(100dvh - 92px)}
  .game .leftcol .chatbox{flex:1 1 58%;min-height:0;display:flex;flex-direction:column}
  .game .leftcol .chatbox>#game-chat{flex:1;min-height:0;display:flex}
  .game .leftcol .chatbox .chat{flex:1;min-height:0;grid-template-rows:minmax(0,1fr) auto auto auto;width:100%}
  .game .leftcol .chatbox .chat-list{max-height:none;height:100%}
  .game .leftcol .logbox{flex:1 1 42%;min-height:0;display:flex;flex-direction:column}
  .game .leftcol .logbox .log{max-height:none;flex:1;min-height:0}
  .game .leftcol .logbox:only-child{flex:0 1 auto;max-height:100%}
}
/* Medium screens: board and moves side by side, chat and log under the board. */
@media (max-width:1280px){
  .game .wrap.three{grid-template-columns:minmax(0,1fr) 340px;grid-template-areas:"board side" "left side";max-width:1280px}
  .game .wrap.three>.board-wrap{max-width:min(100%,calc(100dvh - 140px));margin-inline:auto}
  .game .leftcol{display:grid;grid-template-columns:1fr 1fr;align-items:start}
  .game .leftcol .box:only-child{grid-column:1/-1}
}
/* Narrow screens: one column. */
@media (max-width:900px){
  .game .wrap.three{grid-template-columns:minmax(0,1fr);grid-template-areas:"board" "side" "left"}
  .game .wrap.three>.board-wrap{max-width:100%}
  .game .leftcol{display:flex}
}

/* =========================================================================
   Readability: smaller corners, bigger city names and prices on both boards.
   On the left and right sides the spaces are wide and short, so their content
   is laid out sideways: landmark on the left, name and price on the right.
   ========================================================================= */
.game .board{grid-template-columns:1.32fr repeat(var(--n),1fr) 1.32fr;grid-template-rows:1.32fr repeat(var(--n),1fr) 1.32fr}
.game .board.b-world{--u:.96cqw;grid-template-columns:1.25fr repeat(var(--n),1fr) 1.25fr;grid-template-rows:1.25fr repeat(var(--n),1fr) 1.25fr}
.game .cell:not(.corner) .nm{font-size:calc(var(--u)*1.38);font-weight:800;line-height:1.02;letter-spacing:-.025em;overflow-wrap:anywhere;text-shadow:0 1px 1px rgba(0,0,0,.45);margin-top:calc(var(--u)*.3)}
.game .board.b-world .cell.e-top .nm,.game .board.b-world .cell.e-bottom .nm{font-size:calc(var(--u)*1.3)}
/* The chunky display font reads better at small sizes than thin bold text. */
.game .cell:not(.corner) .nm{font-family:var(--f-display);font-weight:400;letter-spacing:.01em}

/* Hover magnifier: a big card of the space under the pointer. */
.game .peek{position:absolute;left:0;top:0;z-index:12;pointer-events:none;opacity:0;transform:scale(.9);transition:opacity .12s,transform .12s}
.game .peek.on{opacity:1;transform:none}
.game .peek .deed{width:150px;height:208px;cursor:default}
.game .peek .deed .dart{font-size:52px}
.game .peek .deed .dn{font-size:21px}
.game .peek .deed .dh{font-size:12px;padding:8px}
.game .peek .deed .dv{font-size:16px}
.game .peek .deed .dbld .h3{width:20px;height:20px}
.game .peek .deed .dbld .h3.ht{width:36px;height:22px}
.game .peek .deed .dbld{height:22px}
.game .peek .pk-own{display:block;margin-top:6px;text-align:center;font-size:12px;font-weight:700;padding:3px 8px;border-radius:99px;background:rgba(20,17,29,.9);color:#fff;border:1.5px solid var(--pc)}
.game .peek .pk-special{width:170px;padding:14px;border-radius:12px;background:linear-gradient(180deg,#fbf8ff,#e7e2f2);color:#1c1828;text-align:center;box-shadow:0 0 0 1.5px rgba(0,0,0,.25),0 10px 24px rgba(0,0,0,.55)}
.game .peek .pk-special .pi{font-size:40px;display:block}
.game .peek .pk-special b{font-family:var(--f-display);font-weight:400;font-size:19px;display:block;margin:4px 0}
.game .peek .pk-special small{font-size:12px;color:#4a445a}
.game .pr{font-size:calc(var(--u)*1.3);padding:.1cqw calc(var(--u)*.5)}
.game .lm{font-size:calc(var(--u)*3)}
.game .corner .nm{font-size:calc(var(--u)*1.7)}
.game .corner .ico{font-size:calc(var(--u)*4.4);margin-top:calc(var(--u)*.8)}

/* Side columns: the spaces are nearly square, so a slightly smaller landmark leaves room for the name. */
.game .cell.e-left:not(.corner) .lm,.game .cell.e-right:not(.corner) .lm{font-size:calc(var(--u)*2.5)}
.game .cell.e-left:not(.corner) .ico,.game .cell.e-right:not(.corner) .ico{font-size:calc(var(--u)*2.4);margin-top:0}
.game .cell.e-left:not(.corner),.game .cell.e-right:not(.corner){justify-content:space-evenly}
.game .e-left .rch{left:auto;right:calc(13% + 2px)}

/* ----- building effects: the house drops in with dust, a hotel lands with sparkles ----- */
.game .bfx{position:absolute;left:0;top:0;z-index:9;pointer-events:none;width:var(--sz);height:var(--sz);margin:calc(var(--sz)/-2) 0 0 calc(var(--sz)/-2)}
.game .bfx svg{width:100%;height:100%;display:block;filter:drop-shadow(0 6px 6px rgba(0,0,0,.6))}
.game .dust{position:absolute;left:0;top:0;z-index:8;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:radial-gradient(circle,#efe6d2,#b7a98c 70%);pointer-events:none}
.game .spark{position:absolute;left:0;top:0;z-index:10;font-size:16px;pointer-events:none;margin:-8px 0 0 -8px}
.game .bring{position:absolute;left:0;top:0;z-index:8;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;border:3px solid #ffd36b;pointer-events:none}
.game .blabel{position:absolute;left:0;top:0;z-index:11;pointer-events:none;white-space:nowrap;transform:translate(-50%,-50%);
  font:800 14px/1 var(--f-body);padding:4px 9px;border-radius:99px;color:#fff;background:#1f9d57;box-shadow:0 0 0 2px #fff,0 6px 14px rgba(0,0,0,.5)}
.game .blabel.hotel{background:linear-gradient(180deg,#ff6b7a,#d93445);font-size:15px}
.game .blabel.sold{background:#5d5670}
.game .smoke{position:absolute;left:0;top:0;z-index:8;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:radial-gradient(circle,rgba(200,195,215,.9),rgba(140,135,160,0) 70%);pointer-events:none}
.game .cell.shake{animation:cshake .35s ease-out}
@keyframes cshake{20%{transform:translate(0,2px)}40%{transform:translate(-1px,-1px)}60%{transform:translate(1px,1px)}100%{transform:none}}
.game .bld.pulse{animation:bpulse .6s ease-out}
@keyframes bpulse{40%{scale:1.6}}

/* Board themes (only the viewer sees their own) */
.game .theme-ocean{--cell:#18324a;--board-line:#06121e;--center:#0f2234;--panel2:#1d3b57}
.game .theme-forest{--cell:#1f3a2a;--board-line:#08130c;--center:#15291d;--panel2:#26452f}
.game .theme-midnight{--cell:#1e2650;--board-line:#070a1c;--center:#141a3a;--panel2:#252f63}
.game .theme-sunset{--cell:#4a2436;--board-line:#1a0a12;--center:#341826;--panel2:#5a2b3c}
.game .theme-gold{--cell:#3a311c;--board-line:#120e05;--center:#2a2312;--panel2:#4a3d1e}
.game .theme-cherry{--cell:#4a1c26;--board-line:#17070b;--center:#33121a;--panel2:#5c2431}
.game .theme-arctic{--cell:#24394a;--board-line:#0a141c;--center:#1a2b38;--panel2:#2e4a5e}
.game .theme-desert{--cell:#4a3a22;--board-line:#191208;--center:#352916;--panel2:#5a472a}
.game .theme-royal{--cell:#33204f;--board-line:#0f0819;--center:#241539;--panel2:#40295f}
.game .theme-arctic .center{background:radial-gradient(circle at 50% 35%,#2b4457,#121f2a)}
.game .theme-royal .center{background:radial-gradient(circle at 50% 40%,#3a2460,#160c25)}
.game .theme-gold .center{background:radial-gradient(circle at 50% 40%,#3d3218,#1d180b)}
.game .theme-sunset .center{background:linear-gradient(160deg,#4a1f33,#2a1220 60%,#3b1a12)}

/* ----- phones: chat behind a floating 💬 button ----- */
.chat-fab,.chat-close{display:none}
@media (max-width:700px){
  body:has(#game-wrap:not([hidden])) .chat-fab{display:grid;place-items:center;position:fixed;right:12px;bottom:calc(var(--sheet-h,160px) + 12px);z-index:45;
    width:52px;height:52px;border-radius:50%;border:1px solid rgba(255,255,255,.12);background:var(--panel-2,#2a2638);font-size:24px;
    box-shadow:0 10px 24px rgba(0,0,0,.5);cursor:pointer}
  .chat-fab .count{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--bad,#ff5d5d);
    color:#fff;font-size:11.5px;font-weight:800;display:grid;place-items:center}
  .chat-fab .count[hidden]{display:none}
  .game .leftcol .chatbox{display:none}
  body.chat-open .game .leftcol .chatbox{display:flex;flex-direction:column;position:fixed;left:8px;right:8px;bottom:8px;top:auto;max-height:min(70vh,560px);z-index:60;
    box-shadow:0 -10px 40px rgba(0,0,0,.65);animation:chat-up .18s ease-out}
  body.chat-open .game .leftcol .chatbox .chat-list{max-height:none;min-height:180px;flex:1}
  body.chat-open .game .leftcol .chatbox>#game-chat{flex:1;min-height:0;display:flex}
  body.chat-open .game .leftcol .chatbox .chat{flex:1;min-height:0;width:100%}
  body.chat-open .chat-fab{display:none!important}
  .game .leftcol .chatbox .lbl{display:flex;align-items:center;justify-content:space-between}
  .chat-close{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;border:0;background:var(--panel-2,#2a2638);color:inherit;font-size:15px;cursor:pointer}
}
@keyframes chat-up{from{transform:translateY(24px);opacity:0}}
@media (prefers-reduced-motion:reduce){body.chat-open .game .leftcol .chatbox{animation:none}}
@media (max-width:700px){
  .table-strip{gap:6px 8px;padding-block:8px 2px}
  .table-strip .code{font-size:18px}
  .table-strip .grow{display:none}
  .table-strip .toggle,.table-strip .btn-voice{padding:5px 10px;font-size:13px;min-height:32px}
}
/* Phones: the end-of-game sheet gets most of the screen, and the results table scrolls sideways inside it. */
@media (max-width:700px){
  .game .side .box#actions.over{max-height:86vh}
  .game .results{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .game .results table{min-width:100%}
}
/* "Your photo" token on the board */
.game .ptok.photo .in{background-size:cover;background-position:center;background-color:var(--panel-2,#2a2638);border-color:var(--pc)}

/* ----- Mega World (56 spaces): a little more compact than World Tour ----- */
.game .board.b-mega{--u:.84cqw;grid-template-columns:1.2fr repeat(var(--n),1fr) 1.2fr;grid-template-rows:1.2fr repeat(var(--n),1fr) 1.2fr}
.game .board.b-mega .cell.e-top .nm,.game .board.b-mega .cell.e-bottom .nm{font-size:calc(var(--u)*1.22)}
.game .board.b-mega .glogo{font-size:5.4cqw}

/* ----- Haunted Town: night colours, a big moon and pumpkin glow ----- */
.game .board.look-haunted{--cell:#211a2e;--board-line:#0a0710;--center:#140f1d;--panel2:#2a1f3a;background:#0a0710}
.game .board.look-haunted .center{background:
  radial-gradient(circle at 72% 24%,rgba(255,236,170,.95) 0 5.5%,rgba(255,220,120,.25) 6.5%,transparent 13%),
  radial-gradient(120% 90% at 50% 120%,rgba(255,122,24,.28),transparent 60%),
  linear-gradient(180deg,#1b1230,#0e0a17)}
.game .board.look-haunted .cell{background:linear-gradient(180deg,rgba(255,138,31,.06),transparent 60%),color-mix(in srgb,var(--g) 15%,var(--cell))}
.game .board.look-haunted .cell.corner .ico{filter:drop-shadow(0 0 6px rgba(255,138,31,.55))}
.game .board.look-haunted .glogo{color:#ff9a3c;text-shadow:0 0 18px rgba(255,138,31,.55)}
.game .flag.ico{display:inline-grid;place-items:center;font-size:1.05em;line-height:1;background:none;box-shadow:none}

/* The cursed space 👻 (double rent this round) */
.game .cell.cursed{box-shadow:inset 0 0 0 2px #b46cff,0 0 14px rgba(180,108,255,.65);z-index:2}
.game .cell .curse{position:absolute;right:2px;top:2px;font-size:calc(var(--u,1cqw)*2.2);line-height:1;filter:drop-shadow(0 0 4px rgba(180,108,255,.9));animation:curse-float 2.4s ease-in-out infinite;pointer-events:none}
@keyframes curse-float{50%{transform:translateY(-3px) rotate(-6deg)}}
@media (prefers-reduced-motion:reduce){.game .cell .curse{animation:none}}
.game .cell .curse{right:auto;left:50%;top:50%;z-index:4;font-size:calc(var(--u,1cqw)*3.4);transform:translate(-50%,-50%);
  width:1.5em;height:1.5em;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle,rgba(120,60,200,.75),rgba(60,20,110,.35) 60%,transparent 72%);animation:curse-float2 2.4s ease-in-out infinite}
@keyframes curse-float2{0%,100%{transform:translate(-50%,-50%)}50%{transform:translate(-50%,-62%) rotate(-6deg)}}
@media (prefers-reduced-motion:reduce){.game .cell .curse{animation:none}}
.game .sfx-btn.off{opacity:.45;filter:grayscale(1)}

/* ----- big moments: a banner sweeping across the board ----- */
.game .moment{position:absolute;left:50%;top:42%;z-index:30;transform:translate(-50%,-50%) scale(.6);opacity:0;pointer-events:none;
  max-width:86%;padding:.9em 1.4em;border-radius:18px;text-align:center;font-family:var(--f-display);font-size:clamp(18px,3.4cqw,34px);line-height:1.15;color:#fff;
  background:linear-gradient(135deg,rgba(40,30,70,.95),rgba(20,16,32,.95));border:2px solid var(--accent);box-shadow:0 20px 60px rgba(0,0,0,.6),0 0 40px color-mix(in srgb,var(--accent) 40%,transparent)}
.game .moment.show{animation:moment-in 2.6s cubic-bezier(.2,.9,.3,1.2) forwards}
.game .moment.m-bankrupt{border-color:#ff5d5d;box-shadow:0 20px 60px rgba(0,0,0,.6),0 0 40px rgba(255,93,93,.45)}
.game .moment.m-set{border-color:#3fdc7c;box-shadow:0 20px 60px rgba(0,0,0,.6),0 0 40px rgba(63,220,124,.45)}
.game .moment.m-hotel{border-color:#ff5d9e}
.game .moment.m-event,.game .moment.m-finale{border-color:#4fb3ff;box-shadow:0 20px 60px rgba(0,0,0,.6),0 0 40px rgba(79,179,255,.4)}
@keyframes moment-in{0%{opacity:0;transform:translate(-50%,-50%) scale(.6)}12%{opacity:1;transform:translate(-50%,-50%) scale(1.06)}20%{transform:translate(-50%,-50%) scale(1)}82%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-62%) scale(.96)}}
@media (prefers-reduced-motion:reduce){.game .moment.show{animation:none;opacity:1;transform:translate(-50%,-50%)}}

/* ----- centre chips: event, final rounds, bounty ----- */
.game .cmini.evt{background:rgba(79,179,255,.16);border-color:rgba(79,179,255,.45);max-width:92%}
.game .cmini.fin{background:rgba(255,106,61,.18);border-color:rgba(255,106,61,.5)}
.game .cmini.bty{background:rgba(255,93,93,.14);border-color:rgba(255,93,93,.45)}

/* ----- roles, teams, bounty, loans in the seat bar and player list ----- */
.game .sb-role{margin-right:3px}
.game .sb-team{display:inline-grid;place-items:center;margin-left:4px;width:15px;height:15px;border-radius:4px;font-size:10px;font-weight:800;vertical-align:1px}
.game .sb-team.t0,.game .pteam.t0{background:#3d7bff;color:#fff}
.game .sb-team.t1,.game .pteam.t1{background:#ff7a3d;color:#fff}
.game .pteam{padding:0 6px;border-radius:5px;font-size:11px;font-weight:800}
.game .prole{white-space:nowrap}
.game .pbounty{color:#ff8a8a;font-weight:700}
.game .ploan{font-size:12px;color:#ffd36b;margin-top:3px}

/* ----- loans in the trade window ----- */
.game .tloan{margin:8px 0 2px;padding:10px 12px;border-radius:12px;background:var(--panel-2,#2a2638);border:1px dashed rgba(255,211,107,.35)}
.game .tloan.on{border-style:solid;border-color:rgba(255,211,107,.6)}
.game .tl-switch{display:flex;align-items:center;gap:8px;font-weight:700;cursor:pointer}
.game .tl-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}
.game .tl-row .input{width:auto;min-width:0;max-width:110px;padding:6px 8px}
.game .tl-rate{font-weight:800;color:#ffd36b}
