* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  /* palette matched to the nostalgic physical-board standard (research: board-visual) */
  --red: #ed2b33; --red-d: #c31d21;
  --green: #0aa64f; --green-d: #007a36;
  --yellow: #fdd835; --yellow-d: #dcae00;
  --blue: #27aeff; --blue-d: #1487d6;
  --bg: #171a38; --panel: #212549; --panel2: #2a2f5e;
  --ink: #eef0ff; --muted: rgba(238,240,255,.6);
  --wood: #3a2b22; --wood2: #57402f;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, #232860, var(--bg) 70%);
  font-family: -apple-system, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
}

.hidden { display: none !important; }
.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; overflow-y: auto; }

.panel {
  text-align: center; padding: 26px; width: min(400px, 94vw);
  margin: auto; /* keeps top reachable when content overflows the flex-centered screen */
  animation: pin .3s ease;
}
@keyframes pin { from { transform: translateY(16px) scale(.97); opacity: 0; } }

/* ---------- profile ---------- */
.profileCard {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel);
  border-radius: 20px; padding: 14px;
  margin: 52px 0 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.avatarBig {
  width: 64px; height: 64px; flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a4180, var(--panel2));
  border: 3px solid var(--yellow);
  font-size: 34px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(252,196,25,.3);
}
.profileRight { flex: 1; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.profileRight input { margin: 0; padding: 10px 14px; text-align: left; }
.profileRight .skg-coin { align-self: flex-start; }
.coinIcon {
  display: inline-block;
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a0, #f5b820 65%, #c78a00);
  box-shadow: inset 0 0 0 2px rgba(160,110,0,.5);
}

#avatarGrid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 6px 4px;
}
#avatarGrid button {
  aspect-ratio: 1; border-radius: 18px;
  border: 3px solid var(--panel2);
  background: var(--panel);
  font-size: 34px; cursor: pointer;
  transition: transform .1s, border-color .1s;
}
#avatarGrid button:active { transform: scale(.92); }
#avatarGrid button.sel { border-color: var(--yellow); box-shadow: 0 0 16px rgba(252,196,25,.35); }

.crown { font-size: 46px; margin-bottom: -4px; filter: drop-shadow(0 4px 12px rgba(252,196,25,.4)); }
h1 { font-size: 46px; font-weight: 900; letter-spacing: 3px; line-height: .95; margin-bottom: 14px; }
h1 span {
  display: block; font-size: 23px; letter-spacing: 7px;
  background: linear-gradient(135deg, #ffe07a, #fcc419, #ff8a3d);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
h2 { font-size: 26px; font-weight: 900; letter-spacing: 3px; margin-bottom: 16px; }

input {
  width: 100%; padding: 13px 16px; margin: 14px 0 6px;
  border-radius: 14px; border: 2px solid var(--panel2);
  background: var(--panel); color: var(--ink);
  font-size: 16px; font-weight: 700; text-align: center; outline: none;
}
input:focus { border-color: var(--yellow); }

button { font-family: inherit; cursor: pointer; }
button.big {
  display: block; width: 100%; margin: 10px 0; padding: 13px 0;
  font-size: 17px; font-weight: 900; letter-spacing: 1.5px;
  color: #08331a; background: linear-gradient(135deg, #6dedb0, #22c76a);
  border: none; border-radius: 16px;
  box-shadow: 0 5px 0 #169148, 0 10px 24px rgba(0,0,0,.35);
  transition: transform .08s;
}
button.big small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; opacity: .7; margin-top: 2px; }
button.big:active { transform: translateY(3px); box-shadow: 0 2px 0 #169148; }
button.big.alt { color: #0b2d4a; background: linear-gradient(135deg, #74c0fc, #339af0); box-shadow: 0 5px 0 #1c7ed6, 0 10px 24px rgba(0,0,0,.35); }
button.big.alt:active { box-shadow: 0 2px 0 #1c7ed6; }
button.big.alt2 { color: #4a2c00; background: linear-gradient(135deg, #ffe07a, #fcc419); box-shadow: 0 5px 0 #e0a800, 0 10px 24px rgba(0,0,0,.35); }
button.big.alt2:active { box-shadow: 0 2px 0 #e0a800; }
button.big:disabled { filter: grayscale(.8); opacity: .5; }

.ghost { display: inline-block; background: none; border: none; color: var(--muted); font-size: 14px; font-weight: 700; margin-top: 14px; text-decoration: none; padding: 8px; }
.mini { background: var(--panel2); color: var(--ink); border: none; padding: 9px 14px; border-radius: 12px; font-size: 13px; font-weight: 800; }
.mini.invite { background: linear-gradient(135deg, #33d17a, #1aa855); color: #06331a; padding: 11px 18px; box-shadow: 0 4px 0 #0e7a3c, 0 8px 18px rgba(0,0,0,.3); margin: 6px 0; }
.mini.invite:active { transform: translateY(2px); box-shadow: 0 2px 0 #0e7a3c; }
.err { color: #ff8787; font-weight: 700; font-size: 14px; min-height: 20px; margin-top: 8px; }
.hint { color: var(--muted); font-size: 13px; font-weight: 600; }
.orSep { color: var(--muted); font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
.joinRow { display: flex; gap: 8px; }
.joinRow input { flex: 1; margin: 0; text-transform: uppercase; letter-spacing: 4px; }
.joinRow button { padding: 0 22px; border: none; border-radius: 14px; font-weight: 900; background: var(--yellow); color: #4a2c00; font-size: 15px; }

.roomCode {
  font-size: 44px; font-weight: 900; letter-spacing: 10px;
  color: var(--yellow); margin: 4px 0 10px;
  text-shadow: 0 4px 18px rgba(252,196,25,.35);
}
.lobbyPlayers { margin: 16px 0 10px; display: flex; flex-direction: column; gap: 8px; }
.lobbySeat {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border-radius: 14px; padding: 8px 12px;
  font-weight: 800; font-size: 15px;
}
.lobbySeat .seatAv {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; background: var(--panel2);
  border: 3px solid transparent;
}
.lobbySeat .tag { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: 1px; }
.lobbySeat.empty { opacity: .35; font-weight: 600; }
.lobbyBtns { display: flex; gap: 8px; justify-content: center; margin: 10px 0; }

#colorPickRow { display: flex; gap: 12px; justify-content: center; margin-bottom: 4px; }
#colorPickRow button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25);
  cursor: pointer; position: relative;
  transition: transform .1s;
}
#colorPickRow button:active { transform: scale(.9); }
#colorPickRow button.taken { opacity: .28; cursor: default; }
#colorPickRow button.mine { border-color: #fff; box-shadow: 0 0 16px rgba(255,255,255,.5); }

.countRow { display: flex; gap: 10px; justify-content: center; margin-bottom: 8px; }
.countBtn {
  width: 54px; height: 54px; border-radius: 16px; border: 2px solid var(--panel2);
  background: var(--panel); color: var(--ink); font-size: 21px; font-weight: 900;
}
.countBtn.sel { border-color: var(--yellow); background: var(--panel2); box-shadow: 0 0 18px rgba(252,196,25,.25); }

.pawnRow { display: flex; gap: 12px; justify-content: center; margin-bottom: 10px; }
.pawnBtn {
  width: 60px; height: 60px; border-radius: 18px;
  border: 3px solid var(--panel2); background: var(--panel);
  display: flex; align-items: center; justify-content: center;
}
.pawnBtn.sel { border-color: #fff; box-shadow: 0 0 18px rgba(255,255,255,.3); }
.pawnBtn svg { width: 32px; height: 42px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }

/* ================= GAME ================= */
#gameWrap {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  padding: max(8px, env(safe-area-inset-top)) 0 max(8px, env(safe-area-inset-bottom));
}

/* ambient table theming: fills the dead bands above/below the board */
#gameWrap::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.018) 0 1px, transparent 1px 13px),
    radial-gradient(ellipse at 50% 42%, rgba(255,224,122,.05), transparent 58%),
    radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(0,0,0,.4) 100%);
}
#gameWrap::after {
  content: '\2654  SUPER KING  \2654';
  position: absolute; top: max(18px, env(safe-area-inset-top)); left: 50%;
  transform: translateX(-50%);
  font-size: 11px; font-weight: 900; letter-spacing: 5px; white-space: nowrap;
  color: rgba(252,196,25,.3);
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
  pointer-events: none;
}

#board {
  position: relative;
  width: min(94vmin, 560px);
  aspect-ratio: 1;
  background: linear-gradient(160deg, #faf6ea, #efe8d5);
  border-radius: 3%;
  border: 6px solid var(--wood2);
  outline: 3px solid var(--wood);
  box-shadow: 0 22px 55px rgba(0,0,0,.55), inset 0 0 26px rgba(90,60,20,.12);
}

.cell, .yard, .center, .token { position: absolute; }
.cell {
  background: #fdfcf7;
  border: 1px solid #d8d2c0;
  width: 6.667%; height: 6.667%;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
}
.cell.safe { background: #efe9d6; }
.cell .star { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.2vmin; color: #b9b09a; }
.cell.c-red    { background: var(--red);    border-color: var(--red-d); }
.cell.c-green  { background: var(--green);  border-color: var(--green-d); }
.cell.c-yellow { background: var(--yellow); border-color: var(--yellow-d); }
.cell.c-blue   { background: var(--blue);   border-color: var(--blue-d); }
.cell.c-red .star, .cell.c-green .star, .cell.c-yellow .star, .cell.c-blue .star { color: rgba(255,255,255,.8); }

.yard { width: 40%; height: 40%; }
.yard.red    { left: 0;   top: 0;   background: linear-gradient(135deg, var(--red), var(--red-d)); }
.yard.green  { left: 60%; top: 0;   background: linear-gradient(135deg, var(--green), var(--green-d)); }
.yard.yellow { left: 60%; top: 60%; background: linear-gradient(135deg, var(--yellow), var(--yellow-d)); }
.yard.blue   { left: 0;   top: 60%; background: linear-gradient(135deg, var(--blue), var(--blue-d)); }
.yard .inner {
  position: absolute; inset: 15%;
  background: #fdfcf7; border-radius: 16%;
  box-shadow: inset 0 3px 10px rgba(0,0,0,.2);
}
.yard .slot {
  position: absolute; width: 27%; height: 27%;
  border-radius: 50%;
  background: rgba(0,0,0,.08);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.2);
}
.yard .slot.s0 { left: 11%; top: 11%; } .yard .slot.s1 { right: 11%; top: 11%; }
.yard .slot.s2 { left: 11%; bottom: 11%; } .yard .slot.s3 { right: 11%; bottom: 11%; }

.center { left: 40%; top: 40%; width: 20%; height: 20%; }
.center .tri { position: absolute; inset: 0; }
.center .tri.red    { background: var(--red);    clip-path: polygon(0 0, 50% 50%, 0 100%); }
.center .tri.green  { background: var(--green);  clip-path: polygon(0 0, 100% 0, 50% 50%); }
.center .tri.yellow { background: var(--yellow); clip-path: polygon(100% 0, 100% 100%, 50% 50%); }
.center .tri.blue   { background: var(--blue);   clip-path: polygon(0 100%, 50% 50%, 100% 100%); }
.center .crest { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.center .crest svg { width: 38%; height: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }

/* drawn SVG pawn tokens */
.token {
  width: 6.667%; height: 6.667%;
  transition: left .18s ease, top .18s ease, transform .18s ease;
  z-index: 5;
  pointer-events: none;
}
.token .pin {
  position: absolute;
  left: 4%; right: 4%; bottom: 1%;
  height: 138%;
  transform-origin: 50% 92%;
}
.token .pin svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.35));
}
.token.movable { pointer-events: auto; cursor: pointer; z-index: 8; }
.token.movable .pin { animation: pulse .7s ease-in-out infinite; }
.token.movable .pin svg { filter: drop-shadow(0 0 5px rgba(255,255,255,.9)) drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
@keyframes pulse { 50% { transform: scale(1.16); } }
.token.hop { z-index: 9; }
.token.hop .pin { animation: hop .18s ease; }
@keyframes hop { 50% { transform: translateY(-38%) scale(1.12); } }

/* ---------- corner plaques with dice ---------- */
.plaqueRow {
  width: min(94vmin, 560px);
  display: flex; justify-content: space-between;
  gap: 10px; margin: 8px 0;
}
.plaque {
  position: relative;
  min-width: 128px; max-width: 46%;
  background: var(--panel);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 7px 10px;
  font-weight: 800; font-size: 12px;
  display: flex; align-items: center; gap: 8px;
  opacity: .55; transition: all .25s;
  overflow: hidden;
}
.plaque.active { opacity: 1; border-color: #fff; box-shadow: 0 0 22px rgba(255,255,255,.2); transform: scale(1.04); }
.plaque.gone { opacity: .25; filter: grayscale(1); }
.plaque .pav {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 23px; background: var(--panel2);
  border: 3px solid transparent;
}
.plaque .pcol { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 0; }
.plaque .diceBox { margin-left: 0; }
.plaque .pname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plaque .homeCt { font-size: 10px; color: var(--muted); }
.plaque .timebar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--yellow); width: 0%; }
.plaque .emoteFloat { position: absolute; right: 6px; top: -4px; font-size: 26px; animation: emUp 1.6s ease forwards; z-index: 3; }
@keyframes emUp { 0% { transform: translateY(14px) scale(.4); opacity: 0; } 25% { transform: none; opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-16px); opacity: 0; } }

/* dice lives in the plaque, Ludo King style */
.diceBox {
  margin-left: auto; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  border: none;
  background: linear-gradient(145deg, #ffffff, #dfe3f0);
  box-shadow: 0 3px 0 #b9bfd6, 0 6px 14px rgba(0,0,0,.35);
  position: relative;
  visibility: hidden;
  transition: transform .08s;
}
.diceBox.show { visibility: visible; }
.diceBox.canRoll { cursor: pointer; animation: diceGlow .9s ease-in-out infinite; }
@keyframes diceGlow { 50% { box-shadow: 0 3px 0 #b9bfd6, 0 0 22px rgba(252,196,25,.85); transform: scale(1.08); } }
.diceBox.canRoll:active { transform: translateY(2px) scale(.96); }
.diceBox.rolling { animation: shake .45s ease; }
@keyframes shake { 20% { transform: rotate(14deg) translateX(-3px); } 45% { transform: rotate(-12deg) translateX(3px); } 70% { transform: rotate(8deg); } }
.plaque .diceBox::after { content: ''; position: absolute; inset: -6px; }
.diceBox .pips { position: absolute; inset: 7px; display: grid; grid-template: repeat(3,1fr)/repeat(3,1fr); }
.diceBox .pip { width: 7px; height: 7px; background: #222; border-radius: 50%; align-self: center; justify-self: center; }

#turnLabel { font-size: 14px; font-weight: 800; letter-spacing: 1px; color: var(--muted); margin-top: 6px; min-height: 20px; }

/* big dice dock below the board */
#diceDock {
  width: min(94vmin, 560px);
  display: flex; justify-content: center;
  margin-top: 10px;
  min-height: 68px;
}
#bigDice {
  width: 64px; height: 64px; border-radius: 16px;
  margin-left: 0;
  box-shadow: 0 4px 0 #b9bfd6, 0 10px 22px rgba(0,0,0,.45);
}
#bigDice .pips { inset: 10px; }
#bigDice .pip { width: 10px; height: 10px; }
#bigDice::after {
  content: '';
  position: absolute; inset: -5px;
  border-radius: 20px;
  border: 2px solid var(--diceRing, transparent);
  pointer-events: none;
}

#emoteBar {
  position: absolute; bottom: max(10px, env(safe-area-inset-bottom));
  display: flex; gap: 6px;
  background: rgba(0,0,0,.3); border-radius: 20px; padding: 6px 10px;
}
#emoteBar .em { background: none; border: none; font-size: 22px; padding: 9px 8px; }
#emoteBar .em:active { transform: scale(.86); }

.mini:active { transform: scale(.94); }

#toast {
  position: absolute; top: 30%; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.72); color: #fff; font-weight: 800; font-size: 14px;
  padding: 8px 18px; border-radius: 18px; opacity: 0; transition: opacity .25s;
  pointer-events: none; white-space: normal; text-align: center;
  max-width: 86vw; line-height: 1.25; z-index: 30;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
#toast.show { opacity: 1; }

#fx { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

#board.shake { animation: boardShake .34s ease; }
@keyframes boardShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4px, 2px); }
  40% { transform: translate(4px, -2px); }
  60% { transform: translate(-3px, -2px); }
  80% { transform: translate(3px, 2px); }
}

/* ---------- premium board details ---------- */
.cell .arrow {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2vmin; color: rgba(255,255,255,.9);
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.center .medal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 52%; height: 52%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a0, #f5b820 60%, #b57e00);
  box-shadow: 0 2px 8px rgba(0,0,0,.45), inset 0 -3px 6px rgba(0,0,0,.3);
}

/* ---------- daily bonus ---------- */
.bonusBanner {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(252,196,25,.14); border: 1px solid rgba(252,196,25,.45);
  color: #ffd75e; font-weight: 800; font-size: 14px;
  padding: 9px 16px; border-radius: 14px; margin-bottom: 14px;
  animation: pin .5s ease;
}

/* ---------- shop ---------- */
#themeList { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.themeCard {
  background: var(--panel); border-radius: 18px; padding: 14px;
  display: flex; align-items: center; gap: 12px;
  border: 2px solid transparent;
}
.themeCard.equipped { border-color: var(--yellow); }
.themeCard .swatch {
  width: 74px; height: 54px; border-radius: 10px; flex: none;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  overflow: hidden; border: 3px solid rgba(255,255,255,.2);
}
.themeCard .swatch i { display: block; }
.themeCard .tinfo { text-align: left; min-width: 0; }
.themeCard .tname { font-weight: 900; font-size: 15px; letter-spacing: .5px; }
.themeCard .tdesc { font-size: 11px; color: var(--muted); font-weight: 600; }
.themeCard .tbtn {
  margin-left: auto; flex: none;
  border: none; border-radius: 12px; padding: 10px 16px;
  font-weight: 900; font-size: 13px; letter-spacing: .5px;
  color: #4a2c00; background: linear-gradient(135deg, #ffe07a, #fcc419);
  box-shadow: 0 3px 0 #c77e0a;
}
.themeCard .tbtn.owned { color: var(--ink); background: var(--panel2); box-shadow: 0 3px 0 #1a1e42; }
.themeCard .tbtn.equipped { color: #08331a; background: linear-gradient(135deg, #6dedb0, #22c76a); box-shadow: 0 3px 0 #169148; }
.themeCard .tbtn:disabled { opacity: .5; }

/* ---------- board themes ---------- */
body[data-btheme="royal"] #board {
  background: linear-gradient(160deg, #1d2340, #141830);
  border-color: #8a6b1f; outline-color: #5c4712;
}
body[data-btheme="royal"] .cell { background: #262c4e; border-color: #171b36; box-shadow: none; }
body[data-btheme="royal"] .cell.safe { background: #303763; }
body[data-btheme="royal"] .cell .star { color: #6a739f; }
body[data-btheme="royal"] .yard .inner { background: #262c4e; box-shadow: inset 0 3px 10px rgba(0,0,0,.5); }
body[data-btheme="royal"] .yard .slot { background: rgba(0,0,0,.3); }

body[data-btheme="marble"] #board {
  background: linear-gradient(160deg, #f7f7f9, #e8e8ee);
  border-color: #b9bfd0; outline-color: #979db0;
}
body[data-btheme="marble"] .cell { background: #ffffff; border-color: #d9dce6; }
body[data-btheme="marble"] .cell.safe { background: #eef0f6; }
body[data-btheme="marble"] .yard.red { background: linear-gradient(135deg, #ff7b7b, #e35d5d); }
body[data-btheme="marble"] .yard.green { background: linear-gradient(135deg, #63d179, #45b25c); }
body[data-btheme="marble"] .yard.yellow { background: linear-gradient(135deg, #ffd75e, #edb61e); }
body[data-btheme="marble"] .yard.blue { background: linear-gradient(135deg, #62aef5, #3d8ede); }

body[data-btheme="neon"] #board {
  background: #0a0a14;
  border-color: #2bd9e8; outline-color: #12525a;
  box-shadow: 0 0 34px rgba(43,217,232,.35), 0 22px 55px rgba(0,0,0,.55);
}
body[data-btheme="neon"] .cell { background: #12121f; border-color: #262640; }
body[data-btheme="neon"] .cell.safe { background: #1a1a2e; }
body[data-btheme="neon"] .cell .star { color: #2bd9e8; text-shadow: 0 0 8px rgba(43,217,232,.8); }
body[data-btheme="neon"] .cell.c-red { box-shadow: 0 0 10px rgba(255,82,82,.55); }
body[data-btheme="neon"] .cell.c-green { box-shadow: 0 0 10px rgba(64,192,87,.55); }
body[data-btheme="neon"] .cell.c-yellow { box-shadow: 0 0 10px rgba(252,196,25,.55); }
body[data-btheme="neon"] .cell.c-blue { box-shadow: 0 0 10px rgba(51,154,240,.55); }
body[data-btheme="neon"] .yard .inner { background: #12121f; }
body[data-btheme="neon"] .yard .slot { background: rgba(255,255,255,.05); }

@media (max-height: 720px) {
  #board { width: min(80vmin, 470px); }
  .plaqueRow { width: min(80vmin, 470px); }
}

@media (max-width: 384px) {
  .plaque { min-width: 0; max-width: 49%; padding: 6px 7px; gap: 5px; }
  .plaque .pav { width: 32px; height: 32px; font-size: 18px; border-width: 2px; }
  .plaque .diceBox { width: 34px; height: 34px; margin-left: 4px; }
  .plaque .homeCt { font-size: 9px; }
}

.masalaRow {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border-radius: 12px; padding: 10px 12px;
  font-weight: 800; font-size: 13px; cursor: pointer; text-align: left;
  margin: 4px 0 10px;
}
.masalaRow input { width: 18px; height: 18px; accent-color: #ff6b35; flex: none; }
.masalaRow i { display: block; font-style: normal; font-weight: 600; font-size: 11px; color: var(--muted); }

/* ---------- bot difficulty ---------- */
.diffRow { display: flex; gap: 8px; justify-content: center; margin-bottom: 6px; }
.diffBtn {
  flex: 1; min-height: 52px; border-radius: 14px;
  border: 2px solid var(--panel2); background: var(--panel); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 22px; line-height: 1; transition: transform .08s, border-color .1s;
}
.diffBtn b { font-size: 11px; letter-spacing: 1px; font-weight: 900; }
.diffBtn:active { transform: scale(.95); }
.diffBtn.sel { border-color: var(--yellow); background: var(--panel2); box-shadow: 0 0 16px rgba(252,196,25,.25); }

/* ---------- progression: league + daily challenge ---------- */
.progressCard {
  background: var(--panel); border-radius: 16px; padding: 12px 14px;
  margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.leagueRow, .dailyRow { display: flex; align-items: center; gap: 12px; }
.dailyRow { border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; }
.dailyRow.done { opacity: .7; }
.leagueIcon, .dailyIcon { font-size: 30px; flex: none; line-height: 1; filter: drop-shadow(0 2px 5px rgba(0,0,0,.4)); }
.leagueInfo { flex: 1; min-width: 0; text-align: left; }
.leagueTop { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.leagueName, .dailyLabel { font-weight: 900; font-size: 14px; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leagueSub { font-size: 11px; font-weight: 700; color: var(--muted); flex: none; }
.dailyReward { font-size: 12px; font-weight: 900; color: #ffd75e; flex: none; display: inline-flex; align-items: center; gap: 4px; }
.dailyRow.done #dailyCount { color: #6dedb0; }
.dailyBarLine { display: flex; align-items: center; gap: 10px; }
.dailyBarLine .pBar { flex: 1; }
.pBar { height: 8px; border-radius: 6px; background: rgba(0,0,0,.3); overflow: hidden; }
.pBar i { display: block; height: 100%; width: 0%; border-radius: 6px; transition: width .5s ease; }
#leagueBarFill { background: linear-gradient(90deg, #ffe07a, #fcc419); }
#dailyBarFill { background: linear-gradient(90deg, #6dedb0, #22c76a); }
