*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{font-family:'Baloo 2',ui-rounded,'Comic Sans MS',system-ui,sans-serif;background:#0b1730;color:#fff;overflow-x:hidden}
.hidden{display:none!important}
.back{position:fixed;top:10px;left:10px;z-index:60;color:#cfe0ff;text-decoration:none;font-weight:700;background:rgba(255,255,255,.08);padding:8px 12px;border-radius:12px;backdrop-filter:blur(4px)}
.screen{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:56px 18px 30px;text-align:center}
.logo{font-size:clamp(38px,9vw,64px);font-weight:900;letter-spacing:2px;line-height:1;color:#ffd54a;text-shadow:0 4px 0 #b8860b,0 8px 24px rgba(0,0,0,.5)}
.logo span{font-size:.62em;color:#7ef29b;text-shadow:0 4px 0 #1b7a3d,0 8px 24px rgba(0,0,0,.5)}
.sub{color:#a9bee6;font-weight:600;max-width:420px}
h2{font-size:clamp(24px,6vw,34px);color:#ffd54a}
.big{display:block;width:min(92vw,420px);padding:16px 18px;border:0;border-radius:18px;font:900 20px/1.2 inherit;color:#08203f;cursor:pointer;box-shadow:0 5px 0 rgba(0,0,0,.35);transition:transform .06s}
.big:active{transform:translateY(3px);box-shadow:0 2px 0 rgba(0,0,0,.35)}
.big small{display:block;font:700 13px/1.3 inherit;opacity:.75;margin-top:4px}
.big.go{background:linear-gradient(#7ef29b,#34c75c)}
.big.gold{background:linear-gradient(#ffe082,#ffb300)}
.big.ghost{background:rgba(255,255,255,.12);color:#eaf1ff}
.big.half{width:min(44vw,200px);display:inline-block}
.big:disabled{opacity:.45;cursor:default}
.label{color:#a9bee6;font-weight:800;margin-top:8px}
.chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.chip{padding:10px 16px;border-radius:14px;border:2px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#fff;font:800 16px inherit;cursor:pointer}
.chip.on{background:#ffd54a;color:#08203f;border-color:#ffd54a}
.pickBar{display:flex;gap:10px;justify-content:center;margin-top:14px}
.howbody{max-width:520px;text-align:left;display:flex;flex-direction:column;gap:10px;background:rgba(255,255,255,.06);padding:18px;border-radius:18px}
.howbody p{font-weight:600;color:#dbe6ff}
#playerSetup{display:flex;flex-direction:column;gap:10px;width:min(92vw,420px)}
.prow{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.06);padding:10px;border-radius:14px}
.prow .tok{font-size:26px}
.prow input{flex:1;min-width:0;padding:8px 10px;border-radius:10px;border:0;font:700 15px inherit}
.prow .who{padding:8px 12px;border-radius:10px;border:0;font:800 13px inherit;cursor:pointer;background:#ffd54a;color:#08203f}
.prow .who.cpu{background:#8ab4ff}

#sGame{min-height:100dvh;display:flex;flex-direction:column;padding:52px 6px 8px;gap:6px}
#topbar{display:flex;align-items:center;justify-content:space-between;padding:0 8px}
#turnInfo{font:800 16px inherit;color:#ffd54a}
#menuBtn{background:rgba(255,255,255,.1);border:0;color:#fff;border-radius:10px;padding:6px 12px;font-size:18px;cursor:pointer}
#boardWrap{position:relative;flex:1;display:flex;align-items:center;justify-content:center}
#board{display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:repeat(7,1fr);gap:3px;width:min(96vw,calc(100dvh - 220px));aspect-ratio:1;background:#0b1730}
.tile{position:relative;border-radius:6px;background:#12244a;border:1px solid rgba(255,255,255,.1);display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:800;font-size:clamp(8px,2.2vw,12px);text-align:center;overflow:hidden;padding:2px}
.tile .band{width:100%;height:8px;border-radius:3px 3px 0 0;position:absolute;top:0;left:0}
.tile .price{color:#ffd54a;font-size:.9em}
.tile .own{position:absolute;bottom:2px;right:3px;font-size:1.2em}
.tile.corner{background:#1c3a75;font-size:clamp(10px,2.6vw,15px)}
.tile.chance{background:#173a2a}
.tile .peeps{position:absolute;bottom:2px;left:2px;display:flex;gap:1px;font-size:clamp(10px,2.4vw,16px)}
.tile.here{outline:3px solid #ffd54a;outline-offset:-3px}
#boardCenter{grid-row:2/7;grid-column:2/7;background:rgba(6,16,38,.94);border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:8px;text-align:center;min-width:0;min-height:0;overflow:hidden}
#diceRow{font-size:clamp(22px,6vw,36px);min-height:1.2em}
#prompt{font:800 clamp(12px,3vw,16px) inherit;color:#fff;min-height:1.2em}
#actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.act{padding:10px 16px;border:0;border-radius:12px;font:900 clamp(13px,3.4vw,16px) inherit;cursor:pointer;color:#08203f;background:linear-gradient(#7ef29b,#34c75c);box-shadow:0 3px 0 rgba(0,0,0,.35)}
.act.no{background:linear-gradient(#ffe082,#ffb300)}
.act:disabled{opacity:.4}
#log{font:600 clamp(9px,2.4vw,12px) inherit;color:#9fb4dd;max-height:3.6em;overflow:hidden;display:flex;flex-direction:column-reverse}
#playersBar{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;padding-bottom:4px}
.pcard{background:rgba(255,255,255,.07);border-radius:12px;padding:6px 10px;font:800 clamp(11px,3vw,14px) inherit;display:flex;gap:6px;align-items:center;border:2px solid transparent}
.pcard.me{border-color:#ffd54a}
.pcard.out{opacity:.35;text-decoration:line-through}
.pcard .cash{color:#7ef29b}
#cardModal{position:fixed;inset:0;z-index:80;background:rgba(3,8,22,.8);display:flex;align-items:center;justify-content:center;padding:20px}
#cardBox{background:linear-gradient(#fff8e1,#ffecb3);color:#4a3300;border-radius:20px;padding:26px 22px;max-width:380px;width:100%;text-align:center;font:800 18px/1.4 inherit;box-shadow:0 12px 40px rgba(0,0,0,.6)}
#cardBox h3{font-size:22px;margin-bottom:10px;color:#b8860b}
#cardBox .act{margin:16px auto 0}
#overStats{display:flex;flex-direction:column;gap:6px;background:rgba(255,255,255,.06);border-radius:16px;padding:14px 20px;font:700 15px inherit}

