/* Bright, chunky "mobile board game" look: warm peach backdrop, tilted 3D board, candy buttons. */
:root {
  --bg1: #ffe3cc;
  --bg2: #f7a98f;
  --card: #fffaf3;
  --ink: #3b2416;
  --muted: #8a6a55;
  --tile: #fffdf6;
  --tile-edge: #e9d9bf;
  --board-edge: #e07a5f;
  --lawn: #c9d96a;
  --path: #f6b98a;
  --orange: #ff7a1a;
  --orange-dark: #c2410c;
  --red: #e03131;
  --green: #2fb344;
  --blue: #2f80ed;
  --pink: #ff5ca8;
  --gold: #f5b100;
  --line: #f0dcc4;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.55), transparent 40%),
    linear-gradient(160deg, var(--bg1), var(--bg2));
  background-attachment: fixed;
  font-family: "Fredoka", "Nunito", "Trebuchet MS", system-ui, sans-serif;
}
button, input, select { font: inherit; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 12px 16px 32px; }
.sub { color: var(--muted); margin: 4px 0 12px; }
.err { color: var(--red); font-weight: 600; min-height: 1em; }

/* ---------- header ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.logo {
  display: inline-block; padding: 6px 18px; border-radius: 14px; background: var(--red); color: #fff;
  font-weight: 800; font-size: 26px; letter-spacing: .06em;
  box-shadow: 0 5px 0 #a51d1d, 0 10px 18px rgba(0,0,0,.18); transform: rotate(-2deg);
  text-shadow: 0 2px 0 rgba(0,0,0,.2);
}
.logo span { color: #ffe066; }
.invite { background: var(--card); border-radius: 999px; padding: 6px 14px; box-shadow: 0 3px 0 var(--line); color: var(--muted); }
.code { font-weight: 800; letter-spacing: .18em; color: var(--orange-dark); font-size: 18px; }

/* ---------- cards / lobby ---------- */
.panel, .card, .pcard {
  background: var(--card); border-radius: 20px; padding: 14px;
  box-shadow: 0 6px 0 var(--line), 0 12px 24px rgba(120,60,20,.12);
}
.lobby .panel { max-width: 640px; }
.panel h3 { margin: 14px 0 6px; }
input, select {
  width: 100%; background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: 12px;
  padding: 9px 10px; margin: 6px 0;
}
input:focus, select:focus { outline: none; border-color: var(--orange); }
button {
  background: linear-gradient(#ff8f3a, var(--orange)); color: #fff; border: 0; border-radius: 999px;
  padding: 9px 16px; margin: 6px 6px 0 0; cursor: pointer; font-weight: 700;
  box-shadow: 0 4px 0 var(--orange-dark); transition: transform .08s, box-shadow .08s;
}
button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-dark); }
button.ghost { background: #fff; color: var(--orange-dark); box-shadow: 0 3px 0 var(--line); border: 2px solid var(--line); }
button:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.wear-row { display: flex; gap: 6px; align-items: center; margin-bottom: 2px; }
.wear-row input { flex: 1 1 40%; min-width: 0; }
.wear-row select { flex: 1 1 50%; min-width: 0; }
.wear-row button { flex: 0 0 auto; padding: 6px 10px; margin: 0; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.board-col { min-width: 0; }
.side { display: flex; flex-direction: column; gap: 12px; }

/* ---------- board ---------- */
.board-stage { perspective: 1600px; padding: 6px 4px 26px; }
.board {
  display: grid; aspect-ratio: 1 / 1; width: 100%; max-width: 820px; margin: 0 auto;
  grid-template-columns: 1.55fr repeat(9, 1fr) 1.55fr; grid-template-rows: 1.55fr repeat(9, 1fr) 1.55fr;
  gap: 3px; padding: 8px; border-radius: 26px;
  background: linear-gradient(#f3e3c8, #ead3b0);
  transform: rotateX(22deg); transform-origin: 50% 70%;
  box-shadow: 0 10px 0 var(--board-edge), 0 18px 0 #b9573f, 0 34px 40px rgba(90,30,10,.35);
}
.space {
  position: relative; overflow: hidden; border-radius: 8px; background: var(--tile);
  box-shadow: inset 0 -3px 0 var(--tile-edge); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 2px; font-size: clamp(6px, .78vw, 10px); line-height: 1.05;
}
.space .nm { font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.space .price { color: var(--muted); font-weight: 600; margin-top: 1px; }
.space .icon { font-size: 1.9em; line-height: 1; margin-bottom: 1px; }
.space .band {
  position: absolute; display: flex; align-items: center; justify-content: center; gap: 1px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.18);
}
/* Color band sits on the edge facing the center of the board. */
.space.bottom .band { top: 0; left: 0; right: 0; height: 24%; }
.space.top .band { bottom: 0; left: 0; right: 0; height: 24%; }
.space.left .band { right: 0; top: 0; bottom: 0; width: 24%; flex-direction: column; }
.space.right .band { left: 0; top: 0; bottom: 0; width: 24%; flex-direction: column; }
.space.bottom { padding-top: 26%; } .space.top { padding-bottom: 26%; }
.space.left { padding-right: 26%; } .space.right { padding-left: 26%; }
.space.corner { background: linear-gradient(145deg, #fff6e0, #ffe2b8); font-size: clamp(7px, .9vw, 12px); }
.space.corner .icon { font-size: 2.6em; }
.space.go .icon { font-weight: 900; color: var(--red); font-size: 3em; letter-spacing: -.04em; text-shadow: 0 3px 0 #ffd0c0; }
.space.chance .icon { color: var(--orange); }
.space.here { box-shadow: inset 0 -3px 0 var(--tile-edge), 0 0 0 3px #fff, 0 0 14px 2px rgba(255,122,26,.75); z-index: 2; }

/* group colors */
.Brown { background: #9b5b3c; } .LightBlue { background: #8fd3fe; } .Pink { background: #f06fb4; }
.Orange { background: #ff9233; } .Red { background: #ef4040; } .Yellow { background: #ffd23f; }
.Green { background: #2fb36d; } .DarkBlue { background: #3d5af1; }

/* buildings: chunky little blocks */
.house { width: 7px; height: 7px; border-radius: 2px; background: #3ccf5a; box-shadow: 0 2px 0 #1f8a35; display: inline-block; }
.houses { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; }
.space.left .houses, .space.right .houses { flex-direction: column; }
.hotel { width: 14px; height: 9px; border-radius: 2px; background: #ff3b3b; box-shadow: 0 2px 0 #a51d1d; display: inline-block; }

/* owner badge */
.owner {
  position: absolute; bottom: 2px; right: 2px; width: 1.7em; height: 1.7em; border-radius: 50%;
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1em;
  box-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.space.top .owner { bottom: auto; top: 2px; }
.owner.p0, .avatar.p0 { background: var(--pink); }
.owner.p1, .avatar.p1 { background: var(--blue); }

/* pawns: head + body, the active one bounces */
.pawns { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4px; pointer-events: none; }
.pawn { position: relative; width: 16px; height: 24px; display: inline-block; filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); }
.pawn::before { content: ""; position: absolute; left: 3px; top: 0; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff8, transparent 45%), var(--pc); }
.pawn::after { content: ""; position: absolute; left: 0; bottom: 0; width: 16px; height: 15px; border-radius: 8px 8px 4px 4px; background: radial-gradient(circle at 35% 25%, #fff6, transparent 50%), var(--pc); }
.pawn.p0 { --pc: var(--pink); } .pawn.p1 { --pc: var(--blue); }
.pawn.active { animation: bob 1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }

/* center lawn with crossing paths, banner, decks, dice */
.center {
  grid-column: 2 / 11; grid-row: 2 / 11; position: relative; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6%;
}
.lawn {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle, var(--path) 0 22%, transparent 22.5%),
    linear-gradient(45deg, transparent 44%, var(--path) 44% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--path) 44% 56%, transparent 56%),
    radial-gradient(circle at 30% 25%, #d8e57d, transparent 60%),
    var(--lawn);
}
.banner, .subbanner, .decks, .dice { position: relative; }
.banner {
  background: var(--red); color: #fff; font-weight: 900; letter-spacing: .08em;
  font-size: clamp(18px, 4.4vw, 54px); padding: .1em .6em; border-radius: 10px;
  box-shadow: 0 6px 0 #a51d1d, 0 12px 20px rgba(0,0,0,.2); transform: rotate(-3deg);
  -webkit-text-stroke: 1px #a51d1d; text-shadow: 0 3px 0 rgba(0,0,0,.18);
}
.subbanner { margin-top: -4%; background: #fff; color: var(--red); font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: clamp(8px, 1.1vw, 13px); padding: 3px 12px; border-radius: 999px; box-shadow: 0 3px 0 #f0c2b0; }
.decks { display: flex; gap: 8%; width: 70%; justify-content: center; }
.deck {
  width: clamp(54px, 12vw, 130px); aspect-ratio: 1.5 / 1; border-radius: 12px; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-6deg);
  box-shadow: 0 4px 0 #fff, 0 8px 0 rgba(0,0,0,.15), 0 14px 20px rgba(0,0,0,.18);
}
.deck span { font-size: clamp(18px, 3.6vw, 46px); font-weight: 900; line-height: 1; }
.deck small { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: clamp(7px, .9vw, 11px); }
.deck.chance { background: linear-gradient(145deg, #ff8a4c, #e3263c); }
.deck.chest { background: linear-gradient(145deg, #cdbdff, #8b74ee); transform: rotate(6deg); }
.dice { display: flex; gap: 10px; }
.die {
  width: clamp(28px, 4.4vw, 50px); aspect-ratio: 1; background: #fff; border-radius: 22%; padding: 12%;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  box-shadow: inset 0 -4px 0 #e6dccd, 0 5px 10px rgba(0,0,0,.25); animation: land .35s ease-out;
}
.die:nth-child(2) { transform: rotate(8deg); }
.die i.pip { background: #2b1a10; border-radius: 50%; margin: 12%; }
@keyframes land { from { transform: translateY(-14px) rotate(-30deg) scale(1.2); opacity: 0; } }

/* ---------- turn bar with big GO-style roll button ---------- */
.turnbar { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 4px; }
.turntext { background: var(--card); border-radius: 999px; padding: 6px 16px; font-weight: 700; color: var(--muted); box-shadow: 0 3px 0 var(--line); }
.turntext.mine { color: var(--orange-dark); }
.go-btn {
  width: 180px; height: 120px; border-radius: 34px; margin: 4px 0 0; font-size: 46px; font-weight: 900; letter-spacing: .04em;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  background: linear-gradient(#ff9a3d, #ff5a0a); border: 5px solid #ffd2a8;
  box-shadow: 0 10px 0 var(--orange-dark), 0 18px 26px rgba(150,50,0,.35);
  text-shadow: 0 3px 0 rgba(0,0,0,.2);
}
.go-btn small { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .9; margin-top: 6px; }
.go-btn:active:not(:disabled) { transform: translateY(7px); box-shadow: 0 3px 0 var(--orange-dark), 0 6px 10px rgba(150,50,0,.3); }
.go-btn:not(:disabled) { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { filter: brightness(1.08); transform: scale(1.03); } }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pill { background: #fff; color: var(--ink); box-shadow: 0 4px 0 var(--line); border: 2px solid var(--line); }
.pill.green { background: linear-gradient(#4fd16a, var(--green)); color: #fff; border-color: transparent; box-shadow: 0 4px 0 #1d7a2f; }
.pill.red { background: linear-gradient(#ff5d5d, var(--red)); color: #fff; border-color: transparent; box-shadow: 0 4px 0 #a51d1d; }
.pill.wide { width: 100%; margin-right: 0; }

/* ---------- side panel ---------- */
.pcard { padding: 12px; border: 3px solid transparent; }
.pcard.current { border-color: var(--orange); }
.phead { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 3px 0 rgba(0,0,0,.12); border: 3px solid #fff; }
.pname { flex: 1; min-width: 0; }
.pname small { color: var(--muted); font-weight: 400; }
.money { background: linear-gradient(#6ec6ff, #2f80ed); color: #fff; font-weight: 800; border-radius: 999px; padding: 5px 12px; box-shadow: 0 3px 0 #1b5fb8; }
.tags { display: flex; gap: 4px; margin-top: 2px; }
.tag { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; color: #fff; }
.tag.turn { background: var(--orange); } .tag.jail { background: #555; } .tag.naked { background: var(--pink); }
.where { color: var(--muted); font-size: 13px; margin: 8px 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-block; background: #fff1e2; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; font-size: 12px; }
.chip em { font-style: normal; color: var(--orange-dark); font-weight: 700; }
.chip.empty { color: var(--muted); }
.chip.gold { background: #fff6cc; border-color: #f5d76e; }
.won { margin-top: 6px; font-size: 12px; font-weight: 700; color: #9a6b00; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.log { color: var(--ink); font-size: 14px; min-height: 48px; }
.paycard.alert { border: 3px solid var(--red); }
.due { font-size: 14px; margin-bottom: 8px; }
.seg { display: flex; background: #f6e7d4; border-radius: 999px; padding: 3px; gap: 2px; }
.seg-btn { flex: 1; margin: 0; padding: 7px 4px; background: transparent; color: var(--muted); box-shadow: none; font-size: 13px; }
.seg-btn.on { background: #fff; color: var(--ink); box-shadow: 0 2px 0 var(--line); }
.link { background: none; color: var(--muted); box-shadow: none; text-decoration: underline; font-weight: 400; align-self: center; }

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .board { transform: rotateX(16deg); border-radius: 18px; padding: 5px; gap: 2px; }
  .space { border-radius: 5px; }
  .space .nm { display: none; }
  .space.corner .nm, .space .price { display: none; }
  .go-btn { width: 150px; height: 100px; font-size: 38px; }
}

/* Desktop: keep the board short enough that the ROLL button stays on screen. */
@media (min-width: 981px) {
  .board { max-width: min(820px, calc(100vh - 250px)); }
  .space .nm { overflow-wrap: anywhere; hyphens: auto; }
}
.pawn { width: 20px; height: 30px; }
.pawn::before { left: 4px; width: 12px; height: 12px; }
.pawn::after { width: 20px; height: 19px; border-radius: 10px 10px 5px 5px; }

/* Board left; turn controls and player cards on the right (desktop). */
.layout { grid-template-areas: "board turn" "board side"; grid-template-rows: auto 1fr; }
.board-col { grid-area: board; }
.turnbar { grid-area: turn; margin-top: 0; }
.side { grid-area: side; }
@media (min-width: 981px) {
  .board { max-width: min(880px, calc(100vh - 110px)); }
  .space .nm { overflow-wrap: normal; hyphens: none; }
}
@media (max-width: 980px) {
  .layout { grid-template-areas: "board" "turn" "side"; grid-template-rows: auto; }
}

/* ---------- jail ---------- */
.space.locked { background: linear-gradient(145deg, #ffe1d6, #ffc2ad); }
.space .bars {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(90deg, transparent 0 12%, rgba(60,60,70,.55) 12% 16%);
}
.lockbadge {
  position: absolute; top: 3px; right: 3px; z-index: 4; background: #333; color: #fff; font-weight: 800;
  border-radius: 999px; padding: 1px 6px; font-size: 1em; box-shadow: 0 2px 0 rgba(0,0,0,.3);
}
.pawn.jailed { animation: none; filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)) saturate(.6); }
.jailnote {
  position: relative; background: rgba(255,255,255,.92); border: 3px solid #555; border-radius: 14px;
  padding: 6px 12px; font-size: clamp(10px, 1.1vw, 14px); text-align: center; max-width: 80%;
  box-shadow: 0 4px 0 rgba(0,0,0,.15);
}
.chip.held { background: #eceff3; border-color: #c9ced6; }
.chips.center { justify-content: center; }
.heldrow { color: #444; }
.jailpop {
  position: absolute; inset: 12% 10%; z-index: 20; border-radius: 22px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 12px;
  background: #fff; border: 5px solid #444; box-shadow: 0 10px 0 rgba(0,0,0,.2), 0 20px 40px rgba(0,0,0,.35);
  animation: popin .45s cubic-bezier(.2, 1.6, .4, 1);
}
.jailpop.in { background: repeating-linear-gradient(90deg, #fff 0 11%, #f1f1f4 11% 13%); }
.jailpop.out { border-color: var(--green); }
.jp-icon { font-size: clamp(30px, 6vw, 70px); line-height: 1; }
.jp-title { font-weight: 900; font-size: clamp(16px, 2.6vw, 34px); color: var(--red); }
.jailpop.out .jp-title { color: var(--green); }
.jp-sub { color: var(--muted); font-size: clamp(11px, 1.2vw, 15px); }
.jp-foot { color: var(--muted); font-size: 11px; margin-top: 4px; }
@keyframes popin { from { transform: scale(.4) rotate(-6deg); opacity: 0; } }
.jailact { display: flex; gap: 6px; align-items: center; width: 100%; max-width: 340px; }
.jailact select { flex: 1; min-width: 0; margin: 6px 0 0; }
.jailact button { flex: 0 0 auto; }

/* What just happened + what to do next, bold across the top. */
.headline {
  background: var(--card); border-radius: 18px; padding: 10px 16px; margin-bottom: 14px;
  box-shadow: 0 5px 0 var(--line), 0 10px 20px rgba(120,60,20,.1); border-left: 8px solid var(--muted);
}
.headline.mine { border-left-color: var(--orange); }
.hl-log { font-weight: 800; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.3; color: var(--ink); }
.hl-next { font-weight: 800; font-size: clamp(14px, 1.3vw, 17px); color: var(--muted); margin-top: 4px; }
.headline.mine .hl-next { color: var(--orange-dark); }
@media (min-width: 981px) { .board { max-width: min(880px, calc(100vh - 190px)); } }

/* ---------- accounts / lobby ---------- */
.panel.auth { max-width: 420px; }
.pill-row.start { justify-content: flex-start; }
.lobby-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
.lobby .lobby-grid .panel { max-width: none; }
@media (max-width: 860px) { .lobby-grid { grid-template-columns: 1fr; } }
.mygames { display: flex; flex-direction: column; gap: 8px; }
.mygame { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff7ee; border: 2px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.mygame .sub { margin: 2px 0 0; font-size: 13px; }
.mygame button { margin: 0; flex: 0 0 auto; }
.code.small { font-size: 13px; margin-left: 6px; }
.yourturn { color: var(--orange-dark); }
.invite .link { margin: 0; padding: 0; }
.invite a.toplink { color: inherit; font-size: inherit; white-space: nowrap; }

/* ---------- build card ---------- */
.buildcard h3 { margin: 0 0 6px; }
.bgroup { border-top: 2px dashed var(--line); padding-top: 6px; margin-top: 6px; position: relative; }
.band-dot { display: inline-block; width: 28px; height: 8px; border-radius: 4px; margin-bottom: 4px; }
.brow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 0; }
.brow .sub { margin: 0; font-size: 12px; }
.brow button { margin: 0; padding: 6px 12px; flex: 0 0 auto; }

/* ---------- password reset / account ---------- */
.lobby-left { display: flex; flex-direction: column; gap: 16px; }
.recovery {
  font-family: ui-monospace, Consolas, monospace; font-size: 22px; font-weight: 700; letter-spacing: .08em;
  background: #fff6cc; border: 2px dashed #f5b100; border-radius: 12px; padding: 12px; text-align: center; margin: 8px 0; user-select: all;
}
.account details { border-top: 2px dashed var(--line); padding: 8px 0; }
.account summary { cursor: pointer; font-weight: 700; }
.ok { color: var(--green); font-weight: 600; min-height: 1em; margin: 6px 0 0; }

/* ".me" domain suffix on the logo and board banner */
.tld { font-size: .55em; color: #fff; opacity: .9; letter-spacing: .02em; margin-left: 1px; text-transform: lowercase; }
.logo .tld { color: #ffe066; }
.banner { font-size: clamp(15px, 3.5vw, 44px); white-space: nowrap; max-width: 92%; }
@media (min-width: 981px) { .banner { font-size: clamp(18px, 2.9vw, 44px); } }

/* ---------- bank ---------- */
.bank-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bank-head h3 { margin: 0; }
.pot { background: linear-gradient(#ffe066, var(--gold)); color: #5a3d00; font-weight: 800; border-radius: 999px; padding: 4px 10px; font-size: 13px; box-shadow: 0 3px 0 #c28a00; }
.bank-holds { margin: 8px 0; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.bankcard details { border-top: 2px dashed var(--line); padding-top: 6px; }
.bankcard summary { cursor: pointer; font-weight: 700; }
.lrow { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; border-bottom: 1px solid #f5e8d8; font-size: 13px; }
.licon { flex: 0 0 auto; width: 22px; text-align: center; }
.ltime { color: var(--muted); font-size: 11px; }
.bankcard details[open] { max-height: 300px; overflow-y: auto; }

/* ---------- player history ---------- */
.history { border-top: 2px dashed var(--line); margin-top: 8px; padding-top: 6px; font-size: 13px; }
.history summary { cursor: pointer; font-weight: 700; }
.history[open] { max-height: 260px; overflow-y: auto; }
.lrow.out .ltime { color: var(--orange-dark); }
.lrow.in .ltime { color: var(--green); }

/* turn log: one event per row */
.hl-line { padding: 1px 0; }
.hl-line + .hl-line { font-size: .88em; font-weight: 700; color: #5b4130; border-top: 1px dashed var(--line); padding-top: 3px; margin-top: 2px; }

/* turn log: one event per row */
.hl-line { padding: 1px 0; }
.hl-line + .hl-line { font-size: .88em; font-weight: 700; color: #5b4130; border-top: 1px dashed var(--line); padding-top: 3px; margin-top: 2px; }

/* ---------- property postcards under the board ---------- */
.deeds-section { max-width: 880px; margin: 6px auto 0; display: flex; flex-direction: column; gap: 12px; }
.deed-row { background: var(--card); border-radius: 18px; padding: 10px 12px; box-shadow: 0 5px 0 var(--line), 0 10px 20px rgba(120,60,20,.1); }
.deed-owner { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.deed-owner .avatar { width: 26px; height: 26px; border-width: 2px; }
.deed-owner .sub { margin: 0; }
.deed-cards { display: flex; align-items: stretch; gap: 12px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 14px; margin: 0 -2px;
  scroll-snap-type: x proximity; scroll-padding: 0 2px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.deed-cards > .sub { margin: 4px 0; }
.banknote { margin: 6px 0 0; font-size: 12px; }


/* ---------- seats 3–8 ---------- */
.pawn.p2 { --pc: #2fb344; } .pawn.p3 { --pc: #ff8a00; } .pawn.p4 { --pc: #8e5cf7; }
.pawn.p5 { --pc: #14b8a6; } .pawn.p6 { --pc: #e03131; } .pawn.p7 { --pc: #d4a106; }
.owner.p2, .avatar.p2 { background: #2fb344; } .owner.p3, .avatar.p3 { background: #ff8a00; }
.owner.p4, .avatar.p4 { background: #8e5cf7; } .owner.p5, .avatar.p5 { background: #14b8a6; }
.owner.p6, .avatar.p6 { background: #e03131; } .owner.p7, .avatar.p7 { background: #d4a106; }
.pawns { flex-wrap: wrap; gap: 1px; }
.tag.host { background: #8a6a55; } .tag.outtag { background: #999; }
.pcard.out { opacity: .55; }

/* ---------- forms in cards ---------- */
.formrow { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.formrow > select, .formrow > input { flex: 1 1 120px; min-width: 0; margin: 4px 0; }
.formrow > span { font-size: 13px; color: var(--muted); }
.formrow > button { margin: 4px 0; }
.chipbtn { background: #fff1e2; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line); font-size: 12px; padding: 4px 10px; margin: 2px; font-weight: 600; }
.chk { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; background: #fff7ee; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; margin: 2px; }
.chk input { width: auto; margin: 0; }
.link.danger { color: var(--red); }
summary.danger { color: var(--red); }
.badge { background: var(--red); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 13px; }
.card h3 { margin: 0 0 6px; }

/* ---------- debts and offers ---------- */
.debtcard.alert, .offercard.alert { border: 3px solid var(--red); }
.debt { border-top: 2px dashed var(--line); padding: 6px 0; }
.debt:first-of-type { border-top: 0; }
.debt-head { font-size: 14px; margin-bottom: 4px; }
.debt-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 4px 0; }
.debt-actions select { flex: 1 1 110px; min-width: 0; margin: 0; padding: 6px 8px; }
.debt-actions button { margin: 0; }
.debt-actions .inline { display: flex; gap: 6px; flex: 1 1 200px; }
.waitnote { color: var(--orange-dark); }
.offer { border-top: 2px dashed var(--line); padding: 6px 0; font-size: 13px; }
.offer.in { font-weight: 600; }
.offer.out { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: var(--muted); }
.offer.done { color: var(--muted); }
.offercard details summary, .raisecard summary { cursor: pointer; font-weight: 700; margin-top: 6px; }

/* ---------- toast for new offers ---------- */
.toast {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 100; max-width: min(92vw, 560px);
  background: #2b1a10; color: #fff; border-radius: 16px; padding: 12px 18px; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: popin .35s ease-out;
}

/* ---------- admin ---------- */
.admincard { border: 3px dashed #8e5cf7; }
.admincard h3 { color: #6b3fd6; }

/* ---------- watch (big screen) ---------- */
.propchips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.propchip { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 6px; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
:where(.propchip) { background: #777; }   /* zero specificity so the group color classes win */
.propchip.Yellow, .propchip.LightBlue { color: #2b1a10; text-shadow: none; }
.propchip.Railroad { background: #333; } .propchip.Utility { background: #6b7c85; }
.watching .layout { grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); grid-template-areas: "board side"; }
.watching .side { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; align-content: start; }
.watching .bankcard { grid-column: 1 / -1; }
@media (min-width: 981px) { .watching .board { max-width: min(1000px, calc(100vh - 150px)); } }
@media (max-width: 980px) { .watching .layout { grid-template-columns: 1fr; grid-template-areas: "board" "side"; } }
.fieldlabel { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* "← My games" next to the logo on game screens */
.topleft { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.backbtn { margin: 0; padding: 7px 14px; font-size: 14px; }

/* delete buttons in My games / admin list */
.gamebtns { display: flex; gap: 6px; flex: 0 0 auto; }
.gamebtns button { margin: 0; }
.delbtn { background: #fff; color: var(--red); border: 2px solid #f3c2c2; box-shadow: 0 3px 0 #f3c2c2; padding: 7px 11px; }
.bbtns { display: flex; gap: 6px; flex: 0 0 auto; }
.bbtns button { margin: 0; padding: 6px 10px; }
.heatnote { color: #c2410c; font-weight: 700; margin: 2px 0 4px; }
.errbanner { background: #fff0f0; border: 2px solid var(--red); color: #9b1c1c; border-radius: 14px; padding: 8px 14px; margin: -6px 0 12px; font-weight: 700; cursor: pointer; }

/* ---------- sign-in screen: "or" divider + watch-a-game card ---------- */
.auth-or { max-width: 420px; display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: rgba(59,36,22,.16); }
.watchcard h3 { margin-top: 4px; }
.watchrow { display: flex; gap: 8px; align-items: center; }
.watchrow input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; color: var(--orange-dark); }
.watchrow input::placeholder { text-transform: none; letter-spacing: normal; font-weight: 400; color: var(--muted); }
.watchrow button { flex: 0 0 auto; margin: 0; }

/* ---------- big-screen watch page: the board fits the visible screen ----------
   Only applies on /watch once a table is showing (app.js adds html.watch-live and sets --bs, --watch-vh,
   --wpad, --wedge, --wz, --wui from the real visible size). The player game screen is not affected. */
html.watch-live { --watch-vh: 100vh; }
@supports (height: 100dvh) { html.watch-live { --watch-vh: 100dvh; } }
html.watch-live body { margin: 0; }
html.watch-live.watch-land:not(.watch-big), html.watch-live.watch-land:not(.watch-big) body { overflow: hidden; }
html.watch-live .wrap.game.watching { max-width: none; margin: 0; padding: var(--wsafe, 12px); box-sizing: border-box; }

/* the board: flat (no tilt) and exactly --bs square */
html.watch-live .watching .board-stage { padding: 0; perspective: none; }
html.watch-live .watching .board {
  width: var(--bs, min(94vw, 88vh)); max-width: none; margin: 0 auto; transform: none;
  padding: calc(var(--bs) * .01); gap: max(2px, calc(var(--bs) * .003)); border-radius: calc(var(--bs) * .028);
  box-shadow: 0 var(--wedge, 6px) 0 var(--board-edge);
}
html.watch-live .watching .space { font-size: calc(var(--bs) * .0125); border-radius: calc(var(--bs) * .007); }
html.watch-live .watching .space.corner { font-size: calc(var(--bs) * .0145); }
html.watch-live .watching .space .nm, html.watch-live .watching .space .price { display: block; }
html.watch-live.watch-small .watching .space .nm, html.watch-live.watch-small .watching .space .price { display: none; }
html.watch-live .watching .pawn, html.watch-live .watching .house, html.watch-live .watching .hotel { zoom: var(--wz, 1); }
html.watch-live .watching .center { border-radius: calc(var(--bs) * .017); }
html.watch-live .watching .banner { font-size: calc(var(--bs) * .05); }
html.watch-live .watching .subbanner { font-size: calc(var(--bs) * .014); }
html.watch-live .watching .deck { width: calc(var(--bs) * .14); border-radius: calc(var(--bs) * .013); }
html.watch-live .watching .deck span { font-size: calc(var(--bs) * .045); }
html.watch-live .watching .deck small { font-size: calc(var(--bs) * .011); }
html.watch-live .watching .die { width: calc(var(--bs) * .055); }
html.watch-live .watching .jailnote { font-size: max(9px, calc(var(--bs) * .016)); }
html.watch-live .watching .jp-icon { font-size: calc(var(--bs) * .08); }
html.watch-live .watching .jp-title { font-size: max(18px, calc(var(--bs) * .04)); }
html.watch-live .watching .jp-sub { font-size: max(11px, calc(var(--bs) * .017)); }
html.watch-live .watching .jp-foot, html.watch-live .watching .center .chip { font-size: max(10px, calc(var(--bs) * .014)); }
html.watch-live .watching .jailpop .chips { max-width: 100%; }

/* landscape TV: board on the left at full height; status, players, bank and pop-ups on the right */
html.watch-land .wrap.game.watching {
  height: var(--watch-vh); display: grid; align-content: start;
  grid-template-columns: var(--bs) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas: "board top" "board head" "board side";
  column-gap: calc(var(--wpad) * 1.5); row-gap: calc(var(--wpad) * .7);
}
html.watch-land.watch-big .wrap.game.watching { height: auto; min-height: var(--watch-vh); }
html.watch-land .watching .layout { display: contents; }
html.watch-land .watching .board-col { grid-area: board; align-self: start; }
html.watch-land .watching .topbar { grid-area: top; margin: 0; zoom: var(--wui, 1); }
html.watch-land .watching .headline { grid-area: head; margin: 0; zoom: var(--wui, 1); }
html.watch-land .watching .side {
  grid-area: side; min-height: 0; overflow-y: auto; zoom: var(--wside, var(--wui, 1));
  padding: 2px 4px 72px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
html.watch-land .watching .jailpop {
  position: fixed; z-index: 40; top: 16%; bottom: auto; min-height: 40%;
  left: calc(var(--wsafe) + var(--bs) + var(--wpad) * 1.5); right: var(--wsafe); padding: calc(16px * var(--wui, 1));
}
html.watch-land .watching .jp-icon { font-size: calc(64px * var(--wui, 1)); }
html.watch-land .watching .jp-title { font-size: calc(34px * var(--wui, 1)); }
html.watch-land .watching .jp-sub { font-size: calc(17px * var(--wui, 1)); }
html.watch-land .watching .jailpop .chip, html.watch-land .watching .jp-foot { font-size: calc(14px * var(--wui, 1)); }

/* portrait / phone: stacked, the board fits the width */
html.watch-port .watching .topbar, html.watch-port .watching .headline { zoom: var(--wui, 1); }
html.watch-port .watching .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "board" "side"; grid-template-rows: auto; gap: var(--wpad); }
html.watch-port .watching .side { zoom: var(--wui, 1); padding-bottom: 72px; }

/* Fit / − / + / full screen: small, remote-friendly, fades after a few seconds without input */
.watchctl {
  display: none; position: fixed; z-index: 60; right: max(12px, env(safe-area-inset-right), var(--wsafe, 0px)); bottom: max(12px, env(safe-area-inset-bottom), var(--wsafe, 0px));
  gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.88);
  box-shadow: 0 4px 0 var(--line), 0 8px 18px rgba(0,0,0,.18); transition: opacity .5s; zoom: var(--wui, 1);
}
html.watch-live .watchctl { display: flex; }
.watchctl.idle { opacity: 0; }
.watchctl button {
  margin: 0; min-width: 52px; height: 52px; padding: 0 14px; font-size: 26px; line-height: 1;
  background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.watchctl button[data-wz="fit"] { font-size: 18px; }
.watchctl button:focus { outline: none; }
.watchctl button:focus-visible { outline: 4px solid var(--orange); outline-offset: 3px; }
.watchctl .wpct { font-size: 13px; color: var(--muted); }
.watchctl .wpct:empty { display: none; }

/* ---------- admin: cards & acts editor ---------- */
.contentadmin { max-width: 980px; }
.contentadmin > .panel { margin-bottom: 14px; }
.contentadmin textarea {
  width: 100%; box-sizing: border-box; background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: 12px;
  padding: 9px 10px; margin: 6px 0; font: inherit; resize: vertical;
}
.contentadmin textarea:focus { outline: none; border-color: var(--orange); }
.contentadmin .formrow > div { flex: 1 1 180px; min-width: 0; }
.ctabs { margin: 10px 0 6px; max-width: 620px; }
.ctabs .seg-btn small { opacity: .7; font-weight: 600; margin-left: 4px; }
.ctools { margin-top: 6px; }
.cform { border: 3px solid #8e5cf7; }
.cform h3 { margin-top: 0; color: #6b3fd6; }
.check { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 14px; cursor: pointer; }
.check input { width: auto; margin: 0; accent-color: var(--orange); transform: scale(1.2); }
.crow { align-items: flex-start; }
.crow .cmain { min-width: 0; flex: 1; }
.crow .sub { margin: 3px 0 0; font-size: 13px; }
.crow .gamebtns { flex-wrap: wrap; justify-content: flex-end; }
.crow .gamebtns button { padding: 6px 12px; font-size: 13px; }
.crow.disabled { opacity: .6; background: #f4efe9; }
.ceffect { font-size: 13px; font-weight: 700; color: #6b3fd6; margin-top: 2px; }
.ctag { margin-left: 4px; vertical-align: 2px; }
.ctag.custom { background: #8e5cf7; } .ctag.off { background: #888; }
@media (max-width: 640px) { .crow { flex-direction: column; } .crow .gamebtns { justify-content: flex-start; } }

/* ---- acts on/off ---- */
.actscard h3 .actsstate { padding: 0 8px; border-radius: 999px; font-size: 13px; vertical-align: middle; }
.actscard.on h3 .actsstate { background: var(--red); color: #fff; }
.actscard.off h3 .actsstate { background: #555; color: #fff; }
.actscard .vote { display: grid; gap: 4px; }
.actsflag { font-weight: 700; white-space: nowrap; }
.actsflag.off { opacity: .85; }
.watching .actsflag { font-size: 1.05em; }

/* ---- block / report ---- */
.safety { border-top: 2px dashed var(--line); margin-top: 8px; padding-top: 6px; font-size: 13px; }
.safety summary { cursor: pointer; font-weight: 700; }
.safety .reportform { display: grid; gap: 6px; margin-top: 8px; }
.safety textarea { width: 100%; box-sizing: border-box; font: inherit; resize: vertical; }
.report.dismissed { opacity: .6; }
.reportdetails { margin-top: 4px; padding: 6px 8px; background: rgba(0,0,0,.06); border-radius: 8px; white-space: pre-wrap; font-size: 13px; }
label.check { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.sitefoot { text-align: center; margin: 22px 0 10px; font-size: 13px; opacity: .8; }
.sitefoot a { color: inherit; }


/* ---------- Bora Bora look: sand around the board, parchment tiles, wooden-sign corners, lagoon centre ---------- */
body {
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.45), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(190,140,80,.18), transparent 50%),
    url("img/sand.webp") repeat,
    linear-gradient(160deg, #f1dcb2, #e2c08a);
  background-size: auto, auto, 384px 384px, auto;
  background-attachment: fixed;
}
.board-stage { position: relative; }
/* Beach accents around the board (palm fronds, shells, starfish); purely decorative. */
.board-stage::before, .board-stage::after {
  position: absolute; z-index: 0; pointer-events: none; line-height: 1; opacity: .9;
  font-size: clamp(18px, 3vw, 38px); filter: drop-shadow(0 2px 2px rgba(90,60,20,.25));
}
.board-stage::before { content: "🌿"; left: -4px; top: -6px; transform: rotate(-25deg); }
.board-stage::after { content: "🐚 ⭐"; right: 0; bottom: 0; letter-spacing: .4em; transform: rotate(8deg); }
.board {
  position: relative; z-index: 1;
  background: linear-gradient(#efe0c0, #e3cc9f);
  box-shadow: 0 10px 0 #b98a52, 0 18px 0 #8a5f2f, 0 34px 40px rgba(90,60,20,.35);
}
.space {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.7), transparent 60%),
    linear-gradient(160deg, #fffaf0, #f7ead0);
  box-shadow: inset 0 0 0 1px rgba(160,120,70,.25), inset 0 -2px 0 #e2cfa8;
  color: #4a2e1a;
}
.space .nm { font-weight: 700; letter-spacing: .03em; }
.space .price { color: #8a6a4a; }
.space .icon { font-size: 1.6em; filter: saturate(.85) drop-shadow(0 1px 0 rgba(120,80,40,.25)); }
.space.property .icon { font-size: 1.35em; margin-bottom: 0; }
/* Thin colour-group strips (houses/hotels still sit on them). */
.space.bottom .band, .space.top .band { height: 15%; }
.space.left .band, .space.right .band { width: 15%; }
.space.bottom { padding-top: 17%; } .space.top { padding-bottom: 17%; }
.space.left { padding-right: 17%; } .space.right { padding-left: 17%; }
.space .band { box-shadow: inset 0 -1px 0 rgba(0,0,0,.2), 0 0 0 .5px rgba(80,50,20,.3); }
/* Cabanas (API "houses"): little striped beach huts with a straw roof, on a cream chip so they read on any colour strip. */
.houses { background: rgba(255,250,240,.92); border-radius: 3px; padding: 1px; gap: 1px; box-shadow: 0 1px 0 rgba(80,50,20,.35); }
.house {
  width: 7px; height: 8px; border-radius: 0; box-shadow: none;
  background: linear-gradient(#c98a2e 0 48%, transparent 48%), repeating-linear-gradient(90deg, #fffaf0 0 1.5px, #1fa5b5 1.5px 3px);
  clip-path: polygon(50% 0, 100% 48%, 86% 48%, 86% 100%, 14% 100%, 14% 48%, 0 48%);
}
/* Resort (API "hotel"): an overwater bungalow on stilts above the lagoon, on a cream badge. */
.hotel {
  position: relative; width: 14px; height: 12px; border-radius: 4px; background: #fffaf0;
  box-shadow: 0 0 0 1px #c98a2e, 0 1px 0 1px rgba(80,50,20,.35);
}
.hotel::before {
  content: ""; position: absolute; inset: 1px;
  background:
    linear-gradient(#7a4a1e 0 42%, #ff6f61 42% 70%, transparent 70%),
    linear-gradient(transparent 84%, #1fb5c4 84%),
    repeating-linear-gradient(90deg, #5c3415 0 1px, transparent 1px 3px);
  clip-path: polygon(50% 0, 100% 42%, 86% 42%, 86% 70%, 100% 70%, 100% 100%, 0 100%, 0 70%, 14% 70%, 14% 42%, 0 42%);
}
/* Corners: rounded wooden signs. */
.space.corner {
  border-radius: 16px; color: #fff4dc; text-shadow: 0 1px 0 rgba(60,30,10,.7);
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 22%, rgba(60,30,10,.28) 22% 23.5%),
    radial-gradient(circle at 30% 25%, rgba(255,230,180,.35), transparent 60%),
    linear-gradient(150deg, #b47a43, #8a5528);
  box-shadow: inset 0 0 0 2px #6b3f1c, inset 0 0 0 4px rgba(255,220,170,.25), 0 3px 0 #5c3415;
}
.space.corner .nm { font-weight: 800; }
.space.go .icon { color: #ffe08a; text-shadow: 0 2px 0 #6b3f1c; }
.space.locked { background: linear-gradient(150deg, #b9603f, #8a3b22); }
.space.here { box-shadow: inset 0 0 0 1px rgba(160,120,70,.25), 0 0 0 3px #fff, 0 0 14px 2px rgba(0,180,200,.8); }
/* Centre: original lagoon illustration (gradient fallback if the image is missing). */
.center { border-radius: 16px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.5); }
.lawn {
  background:
    url("img/lagoon.webp") center / cover no-repeat,
    linear-gradient(#7cc7ee 0 34%, #2cc4cf 36%, #8ff0dc 100%);
}
.lawn::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 48%, rgba(255,255,255,.28), transparent 55%); }
.banner {
  background: linear-gradient(#a8693a, #7d4a22); color: #fff6dc; border-radius: 14px;
  box-shadow: 0 0 0 3px #f7e3b5, 0 6px 0 #5c3415, 0 14px 22px rgba(0,40,60,.35);
  -webkit-text-stroke: 1px #5c3415; transform: rotate(-2deg);
}
.banner .tld { color: #ffe08a; }
.subbanner { background: #fffaf0; color: #1d7c8c; box-shadow: 0 3px 0 #d9c49a, 0 6px 12px rgba(0,40,60,.2); }
.deck { box-shadow: 0 0 0 3px #fffaf0, 0 6px 0 rgba(0,0,0,.25), 0 10px 18px rgba(0,40,60,.3); }

/* ---------- curved boards (boards.js): Clover / Double Eight ---------- */
.sboard { position: relative; width: 100%; max-width: min(880px, calc(100vh - 110px)); margin: 0 auto; }
@media (max-width: 980px) { .sboard { max-width: 100%; } }
.sb-vp {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 22px; touch-action: pan-y;
  box-shadow: 0 6px 0 #6b3f1c, 0 14px 26px rgba(90, 60, 20, .3); background: #1aa6bf;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.sb-vp.zoomed { touch-action: none; cursor: grab; }
.sb-zoom { position: absolute; inset: 0; transform-origin: 0 0; }
.sb-static, .sb-static svg, .sb-dyn { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sboard svg text { font-family: "Fredoka", "Nunito", system-ui, sans-serif; }
.sboard .sbt-name { font-weight: 700; letter-spacing: .02em; }
.sboard .sbt-price { font-weight: 600; }
.sboard .sbt-cornerName { font-weight: 800; letter-spacing: .04em; paint-order: stroke; stroke: #5c3415; stroke-width: 3px; }
.sboard .sbt-cornerSub { font-weight: 700; paint-order: stroke; stroke: #5c3415; stroke-width: 2.5px; }
.sboard .sbt-emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.sboard .sbt-logo { font-weight: 800; fill: #fff6dc; letter-spacing: .05em; stroke: #5c3415; stroke-width: 2.5px; paint-order: stroke; }
.sboard .sbt-tld { fill: #ffe08a; letter-spacing: 0; }
.sboard .sbt-subbanner { font-weight: 800; fill: #1d7c8c; letter-spacing: .14em; }
.sboard .sbt-deckName { font-weight: 800; fill: #fff; letter-spacing: .12em; }
.sboard .sbt-hubCell { font-weight: 800; fill: #5c3415; letter-spacing: .06em; }
.sboard .sbt-noStep { font-weight: 800; fill: #fffaf0; letter-spacing: .1em; }
.sboard .sbt-ownerTxt { font-weight: 800; fill: #fff; }
.sboard .sbt-lockTxt { font-weight: 800; fill: #fff; }
/* live layer: squares with pieces glow, the current player's square pulses, a tapped square gets a dashed outline */
.sb-here { fill: none; stroke: #00d5e6; stroke-width: 4; stroke-opacity: .55; }
.sb-current { fill: rgba(0, 213, 230, .12); stroke: #00d5e6; stroke-width: 7; animation: sbpulse 1.4s ease-in-out infinite; }
.sb-sel { fill: rgba(255, 210, 63, .18); stroke: #ffd23f; stroke-width: 6; stroke-dasharray: 14 8; }
@keyframes sbpulse { 50% { stroke-opacity: .35; } }
.sb-hit { fill: #000; fill-opacity: 0; cursor: pointer; }
.sboard.watch .sb-hit { cursor: default; }
.sb-pawn { filter: url(#sbdShadow); }
.sb-pawn.active:not(.walking) .bob { animation: sbbob 1s ease-in-out infinite; }
.sb-pawn.jailed { filter: url(#sbdShadow) saturate(.6); }
@keyframes sbbob { 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .sb-pawn .bob, .sb-current { animation: none !important; } }
/* zoom buttons (top-right of the board) */
.sb-zctl { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 6; }
.sb-zctl button {
  width: 40px; height: 40px; margin: 0; padding: 0; border-radius: 12px; font-size: 20px; line-height: 1;
  background: rgba(255, 250, 240, .92); color: #5c3415; box-shadow: 0 3px 0 rgba(92, 52, 21, .35);
}
@media (min-width: 981px) { .sb-zctl button { width: 34px; height: 34px; font-size: 17px; } }
/* jail notices (top corner) and the jail pop-up sit over the board, not zoomed */
.sb-over { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.sb-over .jailpop { pointer-events: auto; }
.sb-notes { position: absolute; top: 2%; left: 2%; width: 34%; display: flex; flex-direction: column; gap: 6px; }
.sb-double8 .sb-notes { left: 1%; top: 66%; width: 22%; }
.sb-notes .jailnote { max-width: none; padding: 4px 8px; }
/* the big square label under the board (readable on phones) */
.sb-label {
  display: flex; align-items: center; gap: 10px; margin: 14px auto 0; padding: 10px 12px; max-width: min(880px, calc(100vh - 110px));
  background: #fffaf0; border-radius: 16px; border-left: 10px solid #c9a46a; box-shadow: 0 4px 0 #d9c49a; color: #4a2e1a;
}
.sb-label .sbl-ic { font-size: 34px; line-height: 1; }
.sb-label .sbl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sb-label b { font-size: 21px; line-height: 1.15; }
.sb-label small { font-size: 14px; color: #7a5a3a; }
.sb-label .pill { margin: 0; flex: 0 0 auto; }
.sbl-who { font-weight: 700; }
.sb-label.band-Brown { border-left-color: #9b5b3c; } .sb-label.band-LightBlue { border-left-color: #8fd3fe; }
.sb-label.band-Pink { border-left-color: #f06fb4; } .sb-label.band-Orange { border-left-color: #ff9233; }
.sb-label.band-Red { border-left-color: #ef4040; } .sb-label.band-Yellow { border-left-color: #ffd23f; }
.sb-label.band-Green { border-left-color: #2fb36d; } .sb-label.band-DarkBlue { border-left-color: #3d5af1; }
/* tapped square: its postcard in a pop-up */
.sqpop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 40, 50, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sqpop-card { background: #fffaf0; border-radius: 20px; padding: 14px; max-width: 400px; width: auto; max-height: 100%; overflow-y: auto; text-align: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); animation: popin .3s ease-out; }
.sqpop-card .pc { margin: 0 auto; font-size: min(15px, calc((100vw - 64px) / 22)); }
.sqpop-card .pill { margin-top: 8px; }
/* create-game board picker */
.boardpick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 6px; }
.boardpick .bp {
  margin: 0; padding: 6px 6px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: #fffaf0; color: #4a2e1a; border: 3px solid transparent; border-radius: 14px; box-shadow: 0 3px 0 #d9c49a;
}
.boardpick .bp svg { width: 100%; max-width: 110px; aspect-ratio: 1 / 1; border-radius: 10px; display: block; }
.boardpick .bp b { font-size: 14px; }
.boardpick .bp small { font-size: 11px; color: #8a6a4a; font-weight: 400; line-height: 1.2; text-align: center; }
.boardpick .bp.on { border-color: #1d9fb0; background: #effcfb; }
.boardpick .sbt-thumbLogo { font-family: "Fredoka", sans-serif; font-weight: 800; fill: #5c3415; letter-spacing: .04em; }
/* TV watch page: the curved board is exactly --bs square, flat */
html.watch-live .watching .sboard { width: var(--bs, min(94vw, 88vh)); max-width: none; }
html.watch-live .watching .sb-vp { border-radius: calc(var(--bs) * .028); box-shadow: 0 var(--wedge, 6px) 0 #6b3f1c; }
html.watch-live .watching .sb-notes .jailnote { font-size: max(9px, calc(var(--bs) * .014)); }

/* ---------- property postcards: properties, cruise lines, utilities, other squares, kept Naughty / Nice cards ----------
   A "Greetings from …" postcard: beach scene in the region colour with the price on a perforated stamp, and the rents as a
   row of little stamps on the back. Sized in em (22em wide; 220 px in the row under the board, 242 px on phones), so the
   tapped-square pop-up just sets a bigger font-size. --c / --d / --ink: region colour, deeper shade, text colour on it. */
.pc {
  --c: #b9a78f; --d: #6b5444; --ink: #fff;
  flex: 0 0 auto; scroll-snap-align: start; box-sizing: border-box; width: 22em; font-size: 10px; line-height: 1.2; text-align: left;
  display: flex; flex-direction: column;
  background: #fffdf6; color: #3b2416; border: .1em solid #e9d9bf; border-radius: .6em; padding: .45em;
  box-shadow: 0 .3em 0 rgba(0,0,0,.1), 0 .6em 1.2em rgba(60,30,10,.12);
}
.pc small, .pc b { display: block; }
.pc-scene { position: relative; height: 10.4em; border-radius: .35em; overflow: hidden; background: linear-gradient(var(--c), #fff1d2 95%); }
.pc-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pc-emoji { position: absolute; left: 11%; top: 63%; font-size: 1.9em; line-height: 1; }
.pc-greet { position: absolute; left: .55em; top: .4em; font-family: "Pacifico", "Brush Script MT", cursive; font-size: .95em; line-height: 1.3;
  color: #fff; text-shadow: 0 .08em .2em rgba(0,0,0,.4); white-space: nowrap; }
.pc-name { position: absolute; left: .35em; right: 5.4em; top: 1.05em; font-family: "Lilita One", "Fredoka", sans-serif; font-size: 1.85em;
  line-height: .95; color: #fff; overflow-wrap: anywhere; transform: rotate(-4deg); transform-origin: left top;
  text-shadow: .06em .06em 0 var(--d), .1em .1em 0 rgba(0,0,0,.2); }
.pc-name.md { font-size: 1.55em; top: 1.3em; }
.pc-name.sm { font-size: 1.35em; top: 1.5em; }
.pc-stamp { position: absolute; right: .45em; top: .45em; width: 4.7em; height: 5em; padding: .28em; box-sizing: border-box; transform: rotate(3deg);
  background: radial-gradient(circle, transparent .13em, #fffdf6 .14em) -.25em -.25em / .5em .5em; filter: drop-shadow(0 .06em .1em rgba(0,0,0,.25)); }
.pc-stamp div { height: 100%; box-sizing: border-box; background: var(--c); color: var(--ink); display: flex; flex-direction: column;
  justify-content: space-between; padding: .3em .15em; text-align: center; box-shadow: inset 0 0 0 .1em rgba(255,255,255,.35); }
.pc-stamp small { font-size: .62em; text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; font-weight: 700; }
.pc-stamp b { font-size: 1.2em; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.pc-back { flex: 1; padding: .45em .15em .05em; display: flex; flex-direction: column; gap: .45em; }
.pc-note { display: flex; justify-content: space-between; gap: .5em; font-size: 1em; color: #5b4130; border-bottom: .1em solid #eadcc6; padding: 0 .1em .35em; }
.pc-note b { display: inline; font-weight: 700; color: #3b2416; padding: .02em .25em; border-radius: .3em; white-space: nowrap; }
.pc-note b.on { background: var(--c); color: var(--ink); box-shadow: 0 0 0 .12em #3b2416; }
.pc-stamps { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: .35em; }
.pc-st { position: relative; min-width: 0; text-align: center; padding: .35em .05em .3em; border-radius: .15em;
  background: color-mix(in srgb, var(--c) 14%, #fff); outline: .12em dashed color-mix(in srgb, var(--d) 45%, #fff); outline-offset: -.2em; }
.pc-st small { font-size: .7em; line-height: 1.3; height: 1.3em; letter-spacing: -.05em; white-space: nowrap; overflow: hidden; }
.pc-st b { font-size: .92em; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; margin-top: .1em; }
.pc-st.on { background: var(--c); color: var(--ink); outline-color: color-mix(in srgb, var(--ink) 70%, transparent); }
.pc-st.on::after { content: ""; position: absolute; inset: -.2em -.1em; border: .13em solid rgba(59,36,22,.6); border-radius: 50%; transform: rotate(-12deg); pointer-events: none; }
.pc-stamps.four .pc-st b { font-size: 1.05em; }
.pc-stamps.four .pc-st small, .pc-stamps.wide .pc-st small { font-size: .78em; letter-spacing: 0; }
.pc-stamps.wide { gap: .6em; }
.pc-stamps.wide .pc-st b { font-size: 1.1em; }
.pc-stamps.wide .pc-st.on::after { inset: -.25em auto -.25em 50%; width: 3.6em; margin-left: -1.8em; }
.pc-foot { display: flex; justify-content: space-between; gap: .6em; margin-top: auto; font-size: .78em; color: #7a604c; }
.pc-status { font-weight: 700; color: #3b2416; white-space: nowrap; }
.pc-msg { font-size: 1.1em; font-weight: 600; color: #3b2416; padding: .2em .25em .35em; line-height: 1.35;
  background: repeating-linear-gradient(transparent 0 1.3em, #eadcc6 1.3em 1.35em); }
/* region colours (same as the board bands) */
.pc.g-Brown { --c: #9b5b3c; --d: #6e3d24; }
.pc.g-LightBlue { --c: #8fd3fe; --d: #1f78ad; --ink: #12324a; }
.pc.g-Pink { --c: #f06fb4; --d: #b02f74; }
.pc.g-Orange { --c: #ff9233; --d: #c25a0c; }
.pc.g-Red { --c: #ef4040; --d: #b01e1e; }
.pc.g-Yellow { --c: #ffd23f; --d: #9c7300; --ink: #3b2a05; }
.pc.g-Green { --c: #2fb36d; --d: #1b7546; }
.pc.g-DarkBlue { --c: #3d5af1; --d: #2236a6; }
.pc.g-Railroad { --c: #1d7c8c; --d: #11525d; }
.pc.g-Utility { --c: #7a5cc0; --d: #4f3790; }
/* squares you can't own and the kept-card decks */
.pc.sq-Go { --c: #ffb35c; --d: #e0573a; }
.pc.sq-Jail { --c: #9aa7b0; --d: #56636c; }
.pc.sq-FreeParking { --c: #5fd0df; --d: #1f8fb0; }
.pc.sq-GoToJail { --c: #ff6b6b; --d: #c92a2a; }
.pc.sq-Chance, .pc.d-chance { --c: #ff8a4c; --d: #e3263c; }
.pc.sq-CommunityChest, .pc.d-chest { --c: #b9a6fb; --d: #6f55d9; }
.pc.sq-Tax { --c: #e8c25a; --d: #a8801a; }
/* phones: a little bigger in the row so the rent stamps stay readable; the next card still peeks in to show it swipes */
@media (max-width: 600px) { .deed-cards .pc { font-size: 11px; } }

/* Sign-up: "I am 18 or older and agree to the Terms of Use" (also the one-time prompt for older accounts). */
.check.terms-check { align-items: flex-start; font-size: 14px; line-height: 1.35; margin: 8px 0 4px; }
.check.terms-check input { margin-top: 2px; flex: 0 0 auto; }
.check.terms-check a { color: var(--orange-dark); font-weight: 700; }
.check.terms-check .sub { margin: 0; font-size: 12px; }
.panel.auth .sub a { color: var(--orange-dark); font-weight: 700; }
.quickstart { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: #fff3e0; border-left: 4px solid var(--orange-dark); font-size: 14px; line-height: 1.4; }
