@font-face{font-family:"Press Start 2P";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/press-start-2p-latin-400.woff2") format("woff2")}
@font-face{font-family:"VT323";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/vt323-latin-400.woff2") format("woff2")}
/* Squipy Monopoly: original board in Squipy colours (Earth → sky → space). No animated CSS filters anywhere (WebKit stability). */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#0a0612;--text:#f0e6ff;--muted:rgba(232,210,255,.74);
  --gold:#ffe566;--gold-frame:#c9a227;--gold-lo:#4a2c12;--pink:#ff4ecd;--cyan:#3df0ff;--violet:#c084fc;
  --pixel:"Press Start 2P",ui-monospace,monospace;--display:"VT323","Courier New",monospace;--ui:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --safe-l:env(safe-area-inset-left,0px);--safe-r:env(safe-area-inset-right,0px);--safe-b:env(safe-area-inset-bottom,0px);
  --vh:calc(100dvh - var(--rg-bar));--side-w:clamp(260px,30vw,360px);
}
html{background:var(--bg);-webkit-text-size-adjust:100%;text-size-adjust:100%;touch-action:manipulation}
body{min-height:calc(100vh - var(--rg-bar));background:var(--bg);color:var(--text);font-family:var(--display);font-size:20px;overflow-x:hidden;-webkit-tap-highlight-color:transparent}
button,select,input{font:inherit;color:inherit}
[hidden]{display:none!important}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
#app{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"hud" "map" "side";min-height:var(--vh);
  background:radial-gradient(ellipse 90% 55% at 50% -8%,rgba(255,78,205,.14),transparent 50%),radial-gradient(ellipse 50% 40% at 100% 80%,rgba(61,240,255,.08),transparent 50%),#0a0612}
.stage{display:contents}
#hud{grid-area:hud;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;min-height:3.2rem;padding:.4rem max(.8rem,var(--safe-r)) .4rem max(.8rem,var(--safe-l));border-bottom:3px solid var(--gold-frame);box-shadow:0 3px 0 var(--gold-lo);background:linear-gradient(180deg,#1b0d33,#0d0619);text-align:center}
.message{font-size:clamp(1.05rem,3.6vw,1.3rem);line-height:1.1;min-height:1.1em}

/* ── Map ── */

/* ── Side panel ── */
.side{grid-area:side;display:flex;flex-direction:column;gap:.6rem;padding:.4rem max(.7rem,var(--safe-r)) .8rem max(.7rem,var(--safe-l));min-width:0}
.turn{border:2px solid rgba(255,229,102,.3);background:rgba(10,4,22,.6);padding:.5rem .6rem}
.turn-who{display:flex;align-items:center;gap:.5rem;font-size:1.2rem;min-width:0}
#turn-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.swatch{width:22px;height:22px;flex:0 0 auto;display:inline-block}
.swatch svg{display:block;width:22px;height:22px}
.turn-clock{margin-left:auto;font-size:1rem;color:var(--gold);white-space:nowrap}
.hint-line{font-size:1.05rem;color:var(--text);min-height:1.2em;line-height:1.15}
.panel-box{border:2px solid rgba(61,240,255,.35);background:rgba(10,4,22,.6);padding:.55rem;display:flex;flex-direction:column;gap:.5rem}
.panel-box[hidden]{display:none}
.sub{font-size:1.02rem;color:var(--muted);line-height:1.15}
.sub.small{font-size:.92rem;margin-top:.6rem}
.sub a,.help a{color:var(--cyan)}
.row2,.row3{display:grid;gap:.45rem;align-items:end}
.row2{grid-template-columns:repeat(2,minmax(0,1fr))}
.row3{grid-template-columns:repeat(3,minmax(0,1fr))}
.btn{font-family:var(--pixel);font-size:.52rem;line-height:1.35;letter-spacing:.03em;cursor:pointer;border:3px solid var(--gold-frame);background:linear-gradient(180deg,#3b1f6e,#1e0f3a);color:var(--gold);text-decoration:none;display:inline-grid;place-items:center;text-align:center;min-height:44px;padding:.45rem .5rem;box-shadow:3px 3px 0 #2a1508;border-radius:0;touch-action:manipulation}
.btn.primary{background:linear-gradient(180deg,#ff4ecd,#9d174d);border-color:#ffb3e0;color:#fff}
.btn.ghost{background:linear-gradient(180deg,#2a1848,#12081f)}
.btn.small{min-height:44px;font-size:.48rem}
.btn:hover{border-color:#ffe9a3}
.btn.primary:hover{background:linear-gradient(180deg,#ff6ad6,#b01e5a)}
.btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #2a1508}
.btn:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}
.field{display:flex;flex-direction:column;gap:.25rem;min-width:0}
.field label{font-family:var(--pixel);font-size:.45rem;letter-spacing:.06em;color:var(--cyan);text-transform:uppercase}
.field select,.field input{width:100%;min-height:44px;padding:0 .4rem;background:#1a0e30;border:2px solid rgba(192,132,252,.6);border-radius:0;font-family:var(--display);font-size:1.1rem;color:var(--text)}
.field select:focus-visible,.field input:focus-visible{outline:3px solid var(--cyan);outline-offset:1px}
.code-input{font-family:var(--pixel)!important;font-size:max(16px,.9rem)!important;letter-spacing:.2em;text-transform:uppercase;text-align:center}
abbr{text-decoration:none}
.controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem}
.help{font-size:1.02rem;line-height:1.2;display:flex;flex-direction:column;gap:.35rem}
.help[hidden]{display:none}
.help strong{color:var(--gold);font-weight:400}
.log-list{list-style:none;max-height:9.5rem;overflow:auto;font-size:1rem;line-height:1.15;display:flex;flex-direction:column;gap:.15rem}
.log-list li{color:var(--muted)}
.log-list li.me{color:var(--text)}
.log-list li.big{color:var(--gold)}
.log-list:focus-visible{outline:3px solid var(--cyan)}
.lobby .seats{list-style:none;display:flex;flex-direction:column;gap:.3rem}
.room-status{font-size:1rem;color:var(--muted);min-height:1.1em}

/* ── Dialogs ── */
.overlay{position:fixed;inset:var(--rg-bar,0px) 0 0 0;z-index:90;display:grid;place-items:center;background:rgba(5,2,12,.76);padding:.8rem;overflow:auto}
.overlay[hidden]{display:none}
.overlay .panel{width:min(26rem,100%);padding:1.2rem 1rem;border:4px solid var(--gold-frame);background:linear-gradient(180deg,#2a1848,#12081f);box-shadow:6px 6px 0 #1a0c04;text-align:center;display:flex;flex-direction:column;gap:.7rem}
.panel-tag{font-family:var(--pixel);font-size:.5rem;letter-spacing:.16em;color:var(--pink)}
.panel h2{font-family:var(--pixel);font-size:clamp(.8rem,3vw,1.05rem);line-height:1.4;color:var(--gold);text-shadow:3px 3px 0 #4a2c12}
.subtitle{color:var(--muted);font-size:1.25rem}
.actions{display:flex;flex-wrap:wrap;gap:.55rem;justify-content:center}
.actions .btn{min-width:7rem}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;text-align:left}
.span2{grid-column:1/-1}
.on-view[hidden]{display:none}
.on-view{display:flex;flex-direction:column;gap:.7rem}
.err{color:#ffb3c1;font-size:1.05rem;min-height:1.1em}

/* ── Wide / landscape: map left, panel right ── */

/* ── Start screen ── */
#app[hidden],.start[hidden]{display:none!important}
.start{min-height:var(--vh);display:flex;justify-content:center;align-items:flex-start;padding:clamp(.6rem,3vw,1.6rem) max(.75rem,var(--safe-r)) calc(1.2rem + var(--safe-b)) max(.75rem,var(--safe-l));
  background:radial-gradient(ellipse 90% 55% at 50% -8%,rgba(255,78,205,.16),transparent 50%),radial-gradient(ellipse 50% 40% at 100% 80%,rgba(61,240,255,.08),transparent 50%),#0a0612}
.start-inner{width:min(40rem,100%);display:flex;flex-direction:column;align-items:center;gap:.7rem;text-align:center}
.start-art{display:block;width:min(100%,32rem);height:auto;box-shadow:5px 5px 0 #1a0c04}
.start-title{font-family:var(--pixel);font-weight:400;font-size:clamp(1.35rem,7.5vw,2.6rem);line-height:1.2;letter-spacing:.06em;color:#fff;text-shadow:3px 3px 0 #5b21b6,6px 6px 0 #1a0c04;margin-top:.2rem}
.start-title span{color:var(--gold);text-shadow:3px 3px 0 #9d174d,6px 6px 0 #1a0c04}
.start-tag{font-size:clamp(1.1rem,4.2vw,1.35rem);color:var(--muted);line-height:1.15}
.start-msg{min-height:1.1em;font-size:1.1rem;color:var(--cyan)}
.start-msg:empty{min-height:0}
.start-actions{display:flex;flex-direction:column;gap:.6rem;width:min(20rem,100%)}
.start-actions .btn{min-height:52px;font-size:clamp(.6rem,2.6vw,.72rem);display:flex;align-items:center;justify-content:center;text-decoration:none;padding:.6rem .9rem}
.start-actions .btn[hidden]{display:none}
.start-save{font-size:1rem;color:var(--muted);margin-top:-.2rem}
.how{width:100%;margin-top:.5rem;padding:.9rem 1rem 1rem;border:3px solid var(--gold-frame);box-shadow:4px 4px 0 var(--gold-lo);background:linear-gradient(180deg,#1b0d33,#0d0619);text-align:left;font-size:clamp(1.05rem,3.8vw,1.2rem);line-height:1.2}
.how h3{font-family:var(--pixel);font-weight:400;font-size:clamp(.62rem,2.6vw,.78rem);letter-spacing:.08em;color:var(--gold);text-shadow:2px 2px 0 #4a2c12;margin-bottom:.6rem;text-align:center}
.how p{margin:.45rem 0 0}
.how strong{color:var(--text)}
.how-goal{margin-top:0!important}
.how-steps{list-style:none;counter-reset:step;display:grid;gap:.45rem;margin:.6rem 0 .2rem}
.how-steps li{counter-increment:step;display:grid;grid-template-columns:2rem minmax(0,1fr);grid-template-rows:auto auto;column-gap:.55rem;align-items:start;color:var(--muted)}
.how-steps li::before{content:counter(step);grid-row:1/3;width:2rem;height:2rem;display:grid;place-items:center;border:2px solid var(--gold-frame);background:#2a1656;color:var(--gold);font-family:var(--pixel);font-size:.65rem}
.how-steps strong{font-family:var(--pixel);font-weight:400;font-size:.6rem;letter-spacing:.06em;color:var(--pink);line-height:1.6}
.how-steps span{display:block}
.sub.warn{color:var(--gold)}
.controls{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:600px){.start-actions{flex-direction:row;flex-wrap:wrap;justify-content:center;width:100%}.start-actions .btn{flex:0 1 auto;min-width:11rem}}

/* ── Board ── */
.board-area{grid-area:map;display:flex;flex-direction:column;gap:6px;padding:6px max(6px,var(--safe-r)) 2px max(6px,var(--safe-l));min-width:0;align-items:center}
.board-wrap{width:100%;max-width:min(100%,calc(var(--vh) - 7.5rem));min-width:0;position:relative}
.board-wrap.zoomed{max-width:100%;height:min(calc(var(--vh) - 7rem),100vw);overflow:auto;border:2px solid var(--gold-frame);overscroll-behavior:contain}
.board{--u:30px;position:relative;width:100%;aspect-ratio:1/1;display:grid;grid-template-columns:1.6fr repeat(9,1fr) 1.6fr;grid-template-rows:1.6fr repeat(9,1fr) 1.6fr;gap:1px;background:#0b0718;border:3px solid var(--gold-frame);box-shadow:3px 3px 0 var(--gold-lo);font-family:var(--ui);user-select:none;-webkit-user-select:none}
.board-wrap.zoomed .board{width:820px;max-width:none}
.sp{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:space-between;min-width:0;min-height:0;overflow:hidden;padding:0;border:0;border-radius:0;cursor:pointer;color:#1b1030;font-family:var(--ui);text-align:center;background:var(--bgc,#efe6d2);touch-action:manipulation}
.sp:focus-visible{outline:3px solid var(--pink);outline-offset:-3px;z-index:3}
.sp.sel{outline:3px solid var(--cyan);outline-offset:-3px;z-index:2}
.z-earth{--bgc:#e4f2df}.z-sky{--bgc:#dfeaf8}.z-space{--bgc:#e2def4}
.sp .band{display:flex;align-items:center;justify-content:center;gap:1px;background:var(--c);flex:0 0 22%;width:100%;border-bottom:1px solid #0b0718}
.sp .nm{font-weight:700;font-size:calc(var(--u)*.2);line-height:1.05;padding:0 1px;white-space:nowrap;letter-spacing:-.02em;max-width:100%;overflow:hidden;text-overflow:clip}
.sp .pr{font-size:calc(var(--u)*.22);font-weight:600;padding-bottom:2px;color:#3b2d55}
.sp .ic{font-size:calc(var(--u)*.42);line-height:1;font-weight:800}
.sp .own{position:absolute;right:1px;bottom:1px;width:calc(var(--u)*.38);height:calc(var(--u)*.38);min-width:8px;min-height:8px;pointer-events:none}
.sp .own svg{display:block;width:100%;height:100%}
.sp.mort{background:repeating-linear-gradient(135deg,var(--bgc,#efe6d2) 0 5px,#b9a9cf 5px 7px)}
.sp.mort .mtag{position:absolute;left:1px;bottom:1px;font-size:calc(var(--u)*.22);font-weight:800;background:#1b1030;color:#fff;padding:0 2px;line-height:1.2}
.hs{display:flex;gap:1px;align-items:center;justify-content:center}
.hs i{display:block;width:calc(var(--u)*.16);height:calc(var(--u)*.16);min-width:4px;min-height:4px;background:#16a34a;border:1px solid #fff}
.hs i.h{width:calc(var(--u)*.36);background:#dc2626}
/* side columns: band on the inner edge */
.sp.s-l{flex-direction:row-reverse}.sp.s-r{flex-direction:row}
.sp.s-l .band,.sp.s-r .band{flex:0 0 18%;height:100%;width:auto;flex-direction:column;border-bottom:0}
.sp.s-l .band{border-left:1px solid #0b0718}.sp.s-r .band{border-right:1px solid #0b0718}
.sp.s-l .txt,.sp.s-r .txt{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0}
.sp.s-t{flex-direction:column-reverse}.sp.s-t .band{border-bottom:0;border-top:1px solid #0b0718}
.sp .txt{display:flex;flex-direction:column;justify-content:space-between;align-items:center;flex:1;min-height:0;width:100%;padding:1px 0}
.sp.corner{justify-content:center;background:#2a1848;color:var(--gold)}
.sp.corner .nm{font-family:var(--pixel);font-weight:400;font-size:calc(var(--u)*.2);line-height:1.4;color:var(--gold)}
.sp.corner .ic{font-size:calc(var(--u)*.6);color:#fff}
.sp.t-start{background:#14532d}.sp.t-prison{background:#3b0d2a}.sp.t-free{background:#0c3a4a}.sp.t-gotoprison{background:#4a1d0c}
.sp .vis{position:absolute;left:2px;top:2px;font-size:calc(var(--u)*.18);color:var(--muted)}
.board.compact .nm,.board.compact .pr{display:none}
.board.compact .sp .ic{font-size:calc(var(--u)*.5)}
.board.compact .sp.corner .nm{display:block;font-size:calc(var(--u)*.22)}
.center{grid-row:2/11;grid-column:2/11;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--u)*.25);padding:calc(var(--u)*.3);text-align:center;color:var(--text);
  background:linear-gradient(0deg,#0f3d3a 0%,#1b4f8a 40%,#22145a 72%,#07040f 100%);overflow:hidden;font-family:var(--display)}
.c-logo{font-family:var(--pixel);font-size:calc(var(--u)*.42);line-height:1.3;color:#fff;text-shadow:2px 2px 0 #5b21b6;letter-spacing:.06em}
.c-logo span{display:block;color:var(--gold);text-shadow:2px 2px 0 #9d174d}
.c-turn{font-size:clamp(.9rem,calc(var(--u)*.5),1.4rem);line-height:1.1;color:var(--text);min-height:1.1em}
.c-card{max-width:92%;font-size:clamp(.85rem,calc(var(--u)*.44),1.25rem);line-height:1.1;background:#fff4d6;color:#1b1030;border:2px solid var(--gold-frame);padding:.3rem .45rem;box-shadow:3px 3px 0 #1a0c04}
.c-card b{display:block;font-family:var(--pixel);font-weight:400;font-size:.45rem;letter-spacing:.08em;color:#9d174d;margin-bottom:.2rem}
.dice{display:flex;gap:calc(var(--u)*.3)}
.die{width:calc(var(--u)*1.25);height:calc(var(--u)*1.25);min-width:26px;min-height:26px;background:#fff;border:2px solid #0b0718;border-radius:18%;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);padding:12%;box-shadow:2px 2px 0 #1a0c04}
.die i{display:block;margin:auto;width:70%;height:70%;border-radius:50%;background:transparent}
.die i.on{background:#1b1030}
.die.rolling{animation:dieroll .5s steps(5) 1}
@keyframes dieroll{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}
.tokens{position:absolute;inset:0;pointer-events:none}
.tk{position:absolute;left:0;top:0;width:calc(var(--u)*.62);height:calc(var(--u)*.62);min-width:12px;min-height:12px;transition:transform .14s linear;will-change:transform}
.tk svg{display:block;width:100%;height:100%}
.tk.cur{z-index:2}
.tk.cur::after{content:"";position:absolute;inset:-3px;border:2px solid #fff;border-radius:50%}
.tk.out{display:none}
.board-tools{display:flex;gap:.5rem;justify-content:center;flex-wrap:wrap}
.tk-ico{display:inline-block;width:24px;height:24px;flex:0 0 auto}
.tk-ico svg{display:block;width:100%;height:100%}

/* ── Turn panel ── */
.actions-box{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
.actions-box .btn{width:100%}
.actions-box .btn.span2{grid-column:1/-1}
.bid-box{display:flex;flex-direction:column;gap:.3rem;margin-top:.45rem}
.bid-box label{font-family:var(--pixel);font-size:.45rem;letter-spacing:.06em;color:var(--cyan);text-transform:uppercase}
.bid-row{display:grid;grid-template-columns:56px minmax(0,1fr) 56px;gap:.4rem}
.bid-row input,.trade-panel input[type=number]{width:100%;min-height:44px;padding:0 .4rem;background:#1a0e30;border:2px solid rgba(192,132,252,.6);border-radius:0;font-family:var(--display);font-size:max(16px,1.15rem);color:var(--text);text-align:center}
.plist{list-style:none;display:flex;flex-direction:column;gap:.35rem}
.plist li{border:1px solid rgba(255,255,255,.12);padding:.3rem .4rem;display:flex;flex-direction:column;gap:.25rem}
.plist li.cur{border-color:var(--gold);background:rgba(255,229,102,.08)}
.plist li.out{opacity:.55}
.p-top{display:flex;align-items:center;gap:.4rem;font-size:1.1rem;min-width:0}
.p-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.p-cash{margin-left:auto;color:var(--gold);white-space:nowrap}
.p-sub{font-size:.95rem;color:var(--muted);line-height:1.1}
.p-props{display:flex;flex-wrap:wrap;gap:3px}
.chip{width:22px;height:22px;border:2px solid #0b0718;background:var(--c);padding:0;cursor:pointer;position:relative;font-family:var(--ui);font-size:10px;font-weight:800;color:#0b0718;line-height:1}
.chip.m{background:repeating-linear-gradient(135deg,var(--c) 0 3px,#3a2d55 3px 5px)}
.chip:focus-visible{outline:3px solid var(--cyan);outline-offset:1px}
.speed{max-width:12rem}

/* ── Property card ── */
.card-panel{width:min(22rem,100%)!important;text-align:left!important}
.deed{background:#fff8e6;color:#1b1030;border:3px solid #0b0718;font-family:var(--ui)}
.deed-band{background:var(--c,#2a1848);color:var(--tc,#fff);padding:.55rem .6rem;text-align:center;border-bottom:3px solid #0b0718}
.deed-band h2{font-family:var(--ui)!important;font-weight:800;font-size:1.15rem!important;color:inherit!important;text-shadow:none!important;line-height:1.15!important}
.deed-group{font-size:.8rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.9}
.deed-body{padding:.55rem .7rem;font-size:.95rem;line-height:1.3}
.deed-body table{width:100%;border-collapse:collapse}
.deed-body td{padding:.12rem 0}
.deed-body td:last-child{text-align:right;font-weight:700}
.deed-body tr.now td{background:#ffe9a8}
.deed-body p{margin:.3rem 0}
.deed-body .muted{color:#5b4b75;font-size:.88rem}
.mine{list-style:none;display:flex;flex-direction:column;gap:.35rem;text-align:left;max-height:55vh;overflow:auto}
.mine li{display:flex;align-items:center;gap:.45rem;font-size:1.05rem;border:1px solid rgba(255,255,255,.12);padding:.25rem .35rem}
.mine li .btn{margin-left:auto;min-width:0;padding:.3rem .5rem}
.mine .sw{width:16px;height:16px;border:2px solid #0b0718;background:var(--c);flex:0 0 auto}

/* ── Setup + trade ── */
.seat-grid{display:grid;gap:.45rem;text-align:left}
.seat-row{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(0,8.5rem);align-items:center;gap:.5rem;font-size:1.15rem}
.seat-row select{min-height:44px;background:#1a0e30;border:2px solid rgba(192,132,252,.6);border-radius:0;color:var(--text);font-family:var(--display);font-size:1.1rem;padding:0 .3rem}
.trade-panel{width:min(34rem,100%)!important;text-align:left!important}
.trade-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
.trade-cols fieldset{border:2px solid rgba(192,132,252,.45);padding:.4rem;display:flex;flex-direction:column;gap:.4rem;min-width:0}
.trade-cols legend{font-family:var(--pixel);font-size:.45rem;color:var(--pink);padding:0 .3rem}
.tr-list{display:flex;flex-direction:column;gap:.2rem;max-height:30vh;overflow:auto}
.chk{display:flex;align-items:center;gap:.4rem;font-size:1rem;min-height:32px;line-height:1.05}
.chk input{width:20px;height:20px;flex:0 0 auto;accent-color:#ff4ecd}
.chk .sw{width:12px;height:12px;border:1px solid #0b0718;background:var(--c);flex:0 0 auto}
.ranks{text-align:left;padding-left:1.4rem;font-size:1.1rem;color:var(--muted)}
.ranks li:first-child{color:var(--gold)}
.turn-clock{margin-left:auto;font-size:1rem;color:var(--gold);white-space:nowrap}
.turn-who{display:flex;align-items:center;gap:.5rem;font-size:1.2rem;min-width:0}
#turn-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ── Wide: board left, panel right ── */
@media (min-width:900px) and (min-aspect-ratio:1/1){
  #app{grid-template-columns:minmax(0,1fr) clamp(300px,32vw,400px);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"hud hud" "map side";height:var(--vh);min-height:0}
  .board-area{min-height:0;padding:8px 4px 6px max(8px,var(--safe-l));justify-content:flex-start}
  .board-wrap{max-width:min(100%,calc(var(--vh) - 7.2rem))}
  .side{overflow-y:auto;min-height:0;padding-top:.5rem}
}
@media (max-width:380px){
  .btn,.btn.small{font-size:.44rem;padding:.4rem .3rem}
  .trade-cols{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){
  .tk{transition:none}
  .die.rolling{animation:none}
  .btn:active{transform:none}
}
#hud:has(.message:empty){display:none}
.message:empty{display:none}
.dlg-form{display:flex;flex-direction:column;gap:.7rem}
.sp.corner .nm{white-space:normal;overflow:visible;text-align:center}
