:root {
  --bg: #111827;
  --panel: #172338;
  --line: #30415d;
  --text: #f8fafc;
  --muted: #b7c5d8;
  --mint: #5eead4;
  --yellow: #ffd85a;
  --red: #f05261;
  --green: #22c55e;
  --blue: #38bdf8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at 16% 6%, rgba(94,234,212,.18), transparent 18rem), var(--bg);
  color: var(--text);
}
button { border: 0; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.app-shell { width: min(680px, 100%); min-height: 100dvh; margin: 0 auto; padding: 16px 14px 22px; }
.topbar, .status-card, .table, .footer-actions { display: flex; gap: 12px; align-items: center; }
.topbar, .status-card, .table { justify-content: space-between; }
.eyebrow, .label, .status-label { margin: 0 0 4px; color: var(--mint); font-size: .76rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2rem, 9vw, 3.4rem); line-height: .95; }
.icon-button, .primary, .secondary { min-height: 44px; border-radius: 14px; font-weight: 900; }
.icon-button { width: 48px; background: var(--panel); border: 1px solid var(--line); }
.primary { padding: 0 16px; background: var(--yellow); color: #111827; }
.secondary { padding: 0 14px; border: 1px solid var(--line); background: var(--panel); }
.status-card, .table, .players { margin-top: 12px; padding: 14px; border: 1px solid rgba(94,234,212,.22); border-radius: 18px; background: rgba(23,35,56,.88); }
.status-text, .active-colour, .mini-note { margin: 0; color: var(--muted); line-height: 1.35; }
.players { min-width: 48%; white-space: pre-wrap; font: 800 .9rem/1.35 ui-monospace, Consolas, monospace; }
.uno-card { display: grid; place-items: center; width: 94px; aspect-ratio: 2/3; border-radius: 14px; border: 4px solid #f8fafc; box-shadow: 0 18px 36px rgba(0,0,0,.32); font-weight: 1000; text-align: center; }
.r { background: var(--red); }
.g { background: var(--green); }
.b { background: var(--blue); }
.y { background: var(--yellow); color: #111827; }
.wild { background: linear-gradient(135deg, var(--red), var(--blue), var(--green), var(--yellow)); }
.art-card { text-indent: -9999px; overflow: hidden; }
.colour-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(23,35,56,.92);
}
.colour-picker[hidden] { display: none; }
.colour-picker span { grid-column: 1 / -1; color: var(--muted); font-weight: 900; }
.colour-picker button { min-height: 42px; border-radius: 10px; font-weight: 1000; }
.colour-picker [data-colour="r"] { background: var(--red); }
.colour-picker [data-colour="g"] { background: var(--green); }
.colour-picker [data-colour="b"] { background: var(--blue); }
.colour-picker [data-colour="y"] { background: var(--yellow); color: #111827; }
.hand { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-top: 8px; }
.hand button { min-height: 104px; border-radius: 14px; border: 2px solid rgba(248,250,252,.72); font-weight: 1000; box-shadow: 0 10px 24px rgba(0,0,0,.24); }
.footer-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 12px; }
@media (max-width: 460px) { .table, .status-card { align-items: stretch; flex-direction: column; } .players { width: 100%; } }
