/* Wspólny wygląd portalu (pasek, przyciski, okna) — każda gra dokłada własny CSS. */
:root {
  --bg: #f4f1ea; --surface: #ffffff; --ink: #1d2a33; --muted: #5d6b75; --line: #dcd6c9;
  --accent: #0f3b57; --accent-ink: #ffffff; --ocean: #cfe4ef; --land: #e9e2d0; --border: #ffffff;
  --hit: #3fa34d; --near: #f0b429; --far: #e4572e; --mid: #f08a24; --guess: #c0392b;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10171d; --surface: #182229; --ink: #e8eef2; --muted: #9aabb6; --line: #2a3843;
    --accent: #6cc3f0; --accent-ink: #0b1a24; --ocean: #12303f; --land: #3b4a52; --border: #182229;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10171d; --surface: #182229; --ink: #e8eef2; --muted: #9aabb6; --line: #2a3843;
  --accent: #6cc3f0; --accent-ink: #0b1a24; --ocean: #12303f; --land: #3b4a52; --border: #182229;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex; flex-direction: column; min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); }
.bar {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: -.3px; color: var(--ink); text-decoration: none; }
.daynum { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.icons { margin-left: auto; display: flex; gap: 6px; }
.icon {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 700 18px/1 system-ui, sans-serif; display: grid; place-items: center; cursor: pointer;
}
.icon:active { transform: scale(.94); }
button.primary {
  width: 100%; padding: 14px; border: 0; border-radius: var(--radius); background: var(--accent);
  color: var(--accent-ink); font: 700 18px/1 system-ui, sans-serif; cursor: pointer;
}
button.primary:disabled { opacity: .4; cursor: default; }
.ghost {
  display: inline-block; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: transparent; color: var(--ink); font: 600 15px/1 system-ui, sans-serif; text-decoration: none; cursor: pointer;
}
dialog.sheet {
  border: 0; border-radius: 18px; padding: 20px; width: min(420px, calc(100vw - 32px));
  background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
dialog.sheet::backdrop { background: rgba(10, 20, 30, .55); }
dialog h2 { margin: 0 0 12px; font-size: 22px; }
.small { color: var(--muted); font-size: 14px; }
.row { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 8px; }
.row form { margin: 0; }
.foot { padding: 8px 16px 12px; text-align: center; color: var(--muted); font-size: 12px; }
