[hidden] { display: none !important; }
:root {
  --bg: #141821;
  --card: #1d2230;
  --card2: #252b3b;
  --line: rgba(255,255,255,.08);
  --ink: #f3f4f8;
  --muted: #9aa1b5;
  --accent: #7b61ff;
  --pink: #ff5fa2;
  --yellow: #ffd166;
  --red: #ff5d5d;
  --green: #4ade80;
  --sea: #1e4f86;
  --top: env(safe-area-inset-top);
  --bot: env(safe-area-inset-bottom);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
body { overscroll-behavior: none; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.loading { color: var(--muted); text-align: center; margin-top: 40vh; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 16px;
  border: none; background: var(--card2); cursor: pointer; font-weight: 700; transition: transform .1s, filter .15s; }
.btn:active { transform: scale(.95); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--pink)); color: #fff; box-shadow: 0 8px 24px rgba(123,97,255,.35); }
.btn.small { min-height: 36px; padding: 0 14px; border-radius: 12px; font-size: .9rem; }
.btn.round { width: 42px; min-height: 42px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.07); font-size: 1.15rem; position: relative; }
.btn:disabled { opacity: .45; }
.badge { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: #fff; font-size: .7rem; display: grid; place-items: center; }

/* ---------- home ---------- */
.home { max-width: 640px; margin: 0 auto; padding: calc(18px + var(--top)) 16px calc(40px + var(--bot)); }
.home-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.logo { font-size: 1.9rem; font-weight: 900; letter-spacing: -.03em; margin: 0; }
.logo span { background: linear-gradient(135deg, var(--accent), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.me-chip { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--card); border: none; cursor: pointer; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .85rem; color: #141821; position: relative; flex: none; }
.avatar.big { width: 40px; height: 40px; font-size: 1rem; }
.avatar .dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #5b6275; border: 2px solid var(--bg); }
.avatar .dot.on { background: var(--green); }
h2.section { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 26px 4px 10px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.room-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); border-radius: 18px; }
.room-item .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.room-item .info { flex: 1; min-width: 0; }
.room-item .t { font-weight: 800; }
.room-item .s { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-item.turn { outline: 2px solid var(--pink); }
.room-item .pill { font-size: .75rem; font-weight: 800; padding: 5px 10px; border-radius: 99px; background: var(--pink); color: #fff; white-space: nowrap; }
.room-item .x { background: none; border: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 6px; }
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.game-card { position: relative; border: none; text-align: left; border-radius: 22px; padding: 16px; min-height: 150px; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; color: #fff; transition: transform .12s; }
.game-card:active { transform: scale(.96); }
.game-card .e { position: absolute; top: 10px; right: 12px; font-size: 3rem; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); }
.game-card .n { font-weight: 900; font-size: 1.1rem; }
.game-card .d { font-size: .8rem; opacity: .85; margin-top: 2px; }
.game-card.soon { filter: grayscale(.6) brightness(.7); cursor: default; }
.game-card .tag { position: absolute; top: 12px; left: 12px; font-size: .68rem; font-weight: 800; background: rgba(0,0,0,.35); padding: 4px 8px; border-radius: 99px; }
.g-vier { background: linear-gradient(145deg, #2f6bff, #1b3fae); }
.g-zeeslag { background: linear-gradient(145deg, #1aa2c7, #0d5a87); }
.g-tekenen { background: linear-gradient(145deg, #ff7a59, #e2367e); }
.g-soon1 { background: linear-gradient(145deg, #8e6bff, #5a3bd1); }
.g-soon2 { background: linear-gradient(145deg, #2fc78b, #138060); }
.g-soon3 { background: linear-gradient(145deg, #ffb347, #e07a1c); }
.empty { color: var(--muted); text-align: center; padding: 18px; background: var(--card); border-radius: 18px; font-size: .92rem; }

/* ---------- room ---------- */
.room { display: flex; flex-direction: column; min-height: 100dvh; max-width: 640px; margin: 0 auto; }
.topbar { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--top)) 12px 10px; position: sticky; top: 0; background: rgba(20,24,33,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 5; }
.topbar .title { flex: 1; min-width: 0; }
.topbar .title b { display: block; font-size: 1.05rem; }
.topbar .title small { color: var(--muted); }
.players { display: flex; gap: 4px; }
.stage { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 12px calc(16px + var(--bot)); gap: 14px; }
.status { font-weight: 800; font-size: 1.15rem; text-align: center; min-height: 1.5em; display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }
.status.you { color: var(--yellow); }
.scoreline { display: flex; gap: 16px; color: var(--muted); font-weight: 700; justify-content: center; flex-wrap: wrap; }
.scoreline b { color: var(--ink); }
.share { width: 100%; background: var(--card); border-radius: 22px; padding: 22px; text-align: center; }
.share .e { font-size: 3rem; }
.share h3 { margin: 6px 0; font-size: 1.3rem; }
.share p { color: var(--muted); margin: 0 0 16px; line-height: 1.45; }
.share .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.result { width: 100%; background: var(--card); border-radius: 22px; padding: 18px; text-align: center; animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
.result h3 { margin: 0 0 6px; font-size: 1.5rem; }
.result p { margin: 0 0 14px; color: var(--muted); }

/* Vier op een rij */
.c4 { width: min(100%, 460px); display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 8px; background: linear-gradient(180deg, #2f6bff, #2353d1); border-radius: 20px; box-shadow: 0 16px 40px rgba(31,80,220,.35), inset 0 -6px 0 rgba(0,0,0,.18); }
.c4 .col { display: grid; grid-template-rows: repeat(6, 1fr); gap: 4px; border: none; background: none; padding: 0; border-radius: 12px; cursor: pointer; }
.c4.my .col:hover, .c4.my .col:active { background: rgba(255,255,255,.12); }
.c4 .cell { aspect-ratio: 1; border-radius: 50%; background: #0f1a3d; box-shadow: inset 0 3px 6px rgba(0,0,0,.5); position: relative; overflow: visible; }
.disc { position: absolute; inset: 0; border-radius: 50%; }
.disc.p0 { background: radial-gradient(circle at 35% 30%, #ff9a9a, var(--red) 60%, #c23131); }
.disc.p1 { background: radial-gradient(circle at 35% 30%, #fff1b8, var(--yellow) 60%, #d9a521); }
.disc.new { animation: drop .45s cubic-bezier(.3,0,.5,1.4); }
.disc.win { box-shadow: 0 0 0 3px #fff, 0 0 18px #fff; animation: pulse 1s infinite alternate; }
@keyframes drop { from { transform: translateY(var(--from)); } to { transform: translateY(0); } }
@keyframes pulse { to { transform: scale(.86); } }
.chip-me { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: middle; }

/* Zeeslag */
.sea-wrap { width: min(100%, 460px); display: flex; flex-direction: column; gap: 8px; }
.sea-label { display: flex; justify-content: space-between; color: var(--muted); font-weight: 700; font-size: .9rem; padding: 0 4px; }
.sea { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; padding: 6px; border-radius: 16px; background: linear-gradient(180deg, #1e5a96, #123c6b); }
.sea.small { width: 62%; align-self: center; }
.sea .sq { aspect-ratio: 1; border: none; padding: 0; border-radius: 5px; background: rgba(255,255,255,.07); display: grid; place-items: center; font-size: .8rem; cursor: default; color: #fff; }
.sea.aim .sq:not(.shot) { cursor: pointer; }
.sea.aim .sq:not(.shot):hover { background: rgba(255,255,255,.22); }
.sea .sq.ship { background: #9aa7bd; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.sea .sq.miss::after { content: ''; width: 28%; height: 28%; border-radius: 50%; background: rgba(255,255,255,.55); }
.sea .sq.hit { background: #ff8a3d; }
.sea .sq.hit::after { content: '✕'; font-weight: 900; }
.sea .sq.sunk { background: #b3261e; }
.sea .sq.reveal { background: rgba(154,167,189,.45); }
.sea .sq.flash { animation: flash .6s; }
@keyframes flash { 0% { transform: scale(1.6); filter: brightness(2); } }
.buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Tekenen */
.draw-head { width: min(100%, 520px); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.word { font-weight: 900; font-size: 1.3rem; letter-spacing: .12em; }
.timer { width: min(100%, 520px); height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; }
.timer i { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow), var(--pink)); width: 100%; }
.paper { width: min(100%, 520px); aspect-ratio: 1; background: #fff; border-radius: 18px; touch-action: none; display: block; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.tools { width: min(100%, 520px); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; padding: 0; }
.swatch.on { border-color: #fff; transform: scale(1.12); }
.size { width: 36px; height: 36px; border-radius: 50%; background: var(--card2); border: 2px solid transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.size.on { border-color: #fff; }
.size i { display: block; border-radius: 50%; background: #fff; }
.choices { display: flex; flex-direction: column; gap: 10px; width: min(100%, 360px); }
.choices .btn { font-size: 1.15rem; min-height: 56px; }
.lobby { width: 100%; background: var(--card); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.lobby .who { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.guesses { width: min(100%, 520px); display: flex; flex-direction: column; gap: 4px; max-height: 150px; overflow-y: auto; }
.guesses div { font-size: .92rem; }
.guesses .sys { color: var(--green); font-weight: 700; }
.inputbar { width: min(100%, 520px); display: flex; gap: 8px; }
.inputbar input { flex: 1; min-width: 0; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); padding: 0 14px; outline: none; }
.inputbar input:focus { border-color: var(--accent); }
.scores { width: min(100%, 520px); display: flex; flex-direction: column; gap: 6px; }
.score-row { display: flex; align-items: center; gap: 10px; background: var(--card); padding: 8px 12px; border-radius: 14px; }
.score-row b { margin-left: auto; }

/* Chat sheet */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 20; display: none; }
.sheet-bg.show { display: block; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto; background: var(--card); border-radius: 24px 24px 0 0; z-index: 21;
  display: flex; flex-direction: column; max-height: 75dvh; transform: translateY(105%); transition: transform .25s cubic-bezier(.2,.9,.3,1); padding-bottom: var(--bot); }
.sheet.show { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); margin: 10px auto 4px; }
.msgs { flex: 1; overflow-y: auto; padding: 8px 14px; display: flex; flex-direction: column; gap: 6px; min-height: 160px; }
.msg { max-width: 80%; padding: 8px 12px; border-radius: 16px; background: var(--card2); align-self: flex-start; line-height: 1.35; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: var(--accent); }
.msg.sys { align-self: center; background: none; color: var(--muted); font-size: .85rem; padding: 2px; }
.msg .from { display: block; font-size: .72rem; font-weight: 800; opacity: .75; }
.msg.big { font-size: 2rem; background: none; padding: 0; }
.reactions { display: flex; gap: 6px; justify-content: center; padding: 6px 12px 0; }
.reactions button { font-size: 1.4rem; background: var(--card2); border: none; border-radius: 12px; width: 44px; height: 40px; cursor: pointer; }
.sheet .inputbar { width: auto; padding: 10px 12px 12px; }
.bubble { position: fixed; left: 50%; bottom: calc(24px + var(--bot)); transform: translateX(-50%); background: var(--card2); padding: 10px 16px; border-radius: 18px; z-index: 15;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: 86vw; animation: pop .3s cubic-bezier(.2,1.4,.4,1); cursor: pointer; }
.bubble b { margin-right: 6px; }
.toast { position: fixed; left: 50%; top: calc(112px + var(--top)); transform: translateX(-50%); background: #2d3346; padding: 10px 16px; border-radius: 14px; z-index: 30; opacity: 0; transition: opacity .2s; pointer-events: none; text-align: center; max-width: 90vw; }
.toast.show { opacity: 1; }

/* Modal */
.overlay { position: fixed; inset: 0; background: rgba(8,10,15,.6); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 40; padding: 20px; }
.modal { width: min(380px, 100%); background: var(--card); border-radius: 24px; padding: 24px; text-align: center; animation: pop .3s cubic-bezier(.2,1.4,.4,1); }
.modal h2 { margin: 0 0 6px; }
.modal p { margin: 0 0 16px; color: var(--muted); }
.modal input { width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); padding: 0 14px; outline: none; margin-bottom: 14px; text-align: center; font-size: 1.1rem; }
.modal input:focus { border-color: var(--accent); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 35; }

/* ---------- new game cards ---------- */
.g-uno { background: linear-gradient(145deg, #ff4d4d, #c4161c); }
.g-woord { background: linear-gradient(145deg, #f4b860, #c27a1a); }
.g-bank { background: linear-gradient(145deg, #2fc78b, #0f7a55); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.pick .btn { flex: 1 1 40%; }
.pick .btn.letter { flex: 0 0 44px; min-height: 44px; padding: 0; font-size: 1.1rem; }
.hint { color: var(--muted); font-size: .8rem; text-align: center; margin: 4px 8px; line-height: 1.4; }

/* ---------- Uno ---------- */
.uno { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.opps { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.opp { display: flex; align-items: center; gap: 8px; background: var(--card); padding: 8px 12px; border-radius: 16px; border: 2px solid transparent; }
.opp.turn { border-color: var(--yellow); }
.opp .cnt { color: var(--muted); font-size: .82rem; }
.pile { display: flex; align-items: center; gap: 22px; position: relative; padding: 14px 0; }
.ring { position: absolute; right: -14px; top: 50%; width: 18px; height: 18px; border-radius: 50%; transform: translateY(-50%); box-shadow: 0 0 0 3px var(--bg), 0 0 14px currentColor; }
.ucard { --w: 74px; width: var(--w); height: calc(var(--w) * 1.45); border-radius: 12px; position: relative; flex: none; display: grid; place-items: center;
  border: 4px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,.35); color: #fff; padding: 0; cursor: pointer; transition: transform .15s, opacity .15s; user-select: none; }
.ucard .oval { width: 78%; height: 62%; border-radius: 50%; background: #fff; transform: rotate(-28deg); display: grid; place-items: center; }
.ucard .oval b { transform: rotate(28deg); font-size: calc(var(--w) * .38); font-weight: 900; }
.ucard .corner { position: absolute; top: 3px; left: 6px; font-size: calc(var(--w) * .17); font-weight: 900; }
.c-r { background: #e53935; color: #e53935; } .c-y { background: #fdd835; color: #fdd835; } .c-g { background: #43a047; color: #43a047; } .c-b { background: #1e88e5; color: #1e88e5; }
.c-w { background: conic-gradient(#e53935 0 25%, #fdd835 0 50%, #43a047 0 75%, #1e88e5 0); color: #222; }
.ucard.c-y .corner, .ucard.c-y .oval b { color: #8a6d00; }
.ucard .corner { color: #fff; }
.ucard.c-y .corner { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.ucard.back { background: #222; color: #e53935; }
.ucard.back .oval { background: #e53935; } .ucard.back .oval b { color: #fdd835; font-size: 18px; }
.ucard.glow { animation: glow 1.2s infinite alternate; }
@keyframes glow { to { box-shadow: 0 0 0 3px var(--yellow), 0 0 24px var(--yellow); } }
.ucard.top { --w: 92px; animation: pop .3s; }
.hand { width: 100%; display: flex; gap: 0; overflow-x: auto; padding: 18px 10px 10px; justify-content: safe center; scroll-snap-type: x proximity; }
.hand .ucard { --w: 64px; margin-left: -14px; scroll-snap-align: center; }
.hand .ucard:first-child { margin-left: 0; }
.hand.my .ucard.ok { transform: translateY(-12px); }
.hand.my .ucard.no { opacity: .55; }
.hand .ucard.fresh { box-shadow: 0 0 0 3px var(--yellow), 0 6px 16px rgba(0,0,0,.35); }
.ubtn { color: #fff !important; font-weight: 900; }

/* ---------- Bankroll ---------- */
.bank { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bboard { width: min(100%, 520px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); gap: 2px;
  background: #0f3d2e; padding: 3px; border-radius: 14px; }
.bsq { position: relative; background: #e9f3ea; color: #1b2a22; border: none; border-bottom: 3px solid transparent; border-radius: 4px; padding: 6px 1px 1px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; font-size: 7.5px; line-height: 1.05; cursor: pointer; min-width: 0; }
.bsq.corner { background: #cfe7d4; justify-content: center; padding-top: 2px; }
.bsq .strip { position: absolute; top: 0; left: 0; right: 0; height: 5px; }
.bsq .ic { font-size: 13px; line-height: 1; }
.bsq .nm { font-weight: 800; text-align: center; word-break: break-word; hyphens: auto; }
.bsq .pr { color: #55705f; margin-top: auto; }
.bsq.owned { border-bottom-width: 5px; }
.bsq .houses { font-size: 7px; margin-top: auto; }
.bsq .tokens { position: absolute; bottom: 1px; left: 1px; right: 1px; display: flex; justify-content: center; gap: 1px; }
.tok { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.tok.now { animation: pulse .7s infinite alternate; }
.bcenter { grid-row: 2 / 8; grid-column: 2 / 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px; text-align: center;
  background: radial-gradient(circle, #1b5e45, #0f3d2e); border-radius: 10px; }
.bcenter .round { color: #a7d7bf; font-size: .75rem; font-weight: 700; }
.bcenter .status { font-size: 1rem; }
.dice { font-size: 2.6rem; line-height: 1; letter-spacing: 4px; }
.offer { font-weight: 800; font-size: .9rem; }
.blog { color: #cfe7d4; font-size: .7rem; line-height: 1.3; max-height: 4.2em; overflow: hidden; }
.score-row small { color: var(--muted); margin-left: auto; font-size: .75rem; }
.score-row small + b { margin-left: 10px; }
.score-row.turnrow { outline: 2px solid var(--yellow); }
.score-row.outrow { opacity: .45; }
.swatchbar { height: 8px; border-radius: 4px; margin: -4px 0 12px; }
.sqinfo { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Woordspel ---------- */
.woord { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wscore { width: min(100%, 520px); display: flex; gap: 8px; align-items: center; }
.wp { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--card); padding: 8px 10px; border-radius: 14px; border: 2px solid transparent; min-width: 0; }
.wp span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp b { margin-left: auto; font-size: 1.2rem; }
.wp.turn { border-color: var(--yellow); }
.bagc { color: var(--muted); font-weight: 700; white-space: nowrap; }
.wwrap { width: min(100%, 520px); overflow: auto; border-radius: 10px; }
.wboard { width: 100%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(15, 1fr); gap: 1px; background: #2a3247; padding: 2px; border-radius: 10px; }
.wboard.zoom { width: 175%; }
.wc { border: none; padding: 0; background: #39425a; border-radius: 3px; color: #fff; font-size: 7px; font-weight: 800; display: grid; place-items: center; position: relative; aspect-ratio: 1; cursor: pointer; min-width: 0; }
.wboard.zoom .wc { font-size: 10px; }
.wc.p-TW { background: #c0392b; } .wc.p-DW { background: #d9718b; } .wc.p-tL { background: #2e7bd6; } .wc.p-dL { background: #5ab0c9; }
.wc.tile { background: linear-gradient(180deg, #ffe9b8, #f7d488); color: #3a2a10; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.wc.tile.fresh { background: linear-gradient(180deg, #fff6a8, #ffd84d); box-shadow: 0 0 0 1px #fff; }
.wc.tile.pending { background: linear-gradient(180deg, #c9b6ff, #9c7bff); color: #1c1040; }
.wc .L { font-size: 12px; font-weight: 900; }
.wboard.zoom .wc .L { font-size: 18px; }
.wc .V { position: absolute; right: 1px; bottom: 0; font-size: 5px; }
.wboard.zoom .wc .V { font-size: 8px; }
.rack { display: flex; gap: 6px; justify-content: center; }
.rt { width: 44px; height: 46px; border: none; border-radius: 8px; background: linear-gradient(180deg, #ffe9b8, #f0c86a); color: #3a2a10; position: relative; cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 4px 10px rgba(0,0,0,.3); transition: transform .12s; padding: 0; }
.rt .L { font-size: 1.4rem; font-weight: 900; }
.rt .V { position: absolute; right: 4px; bottom: 2px; font-size: .62rem; font-weight: 800; }
.rt.sel { transform: translateY(-8px); box-shadow: 0 0 0 3px var(--accent), 0 8px 16px rgba(0,0,0,.4); }
.rt.used { opacity: .25; }
.lastmove { color: var(--muted); font-size: .85rem; text-align: center; }
