:root {
  --bg: #0b0810;
  --surface: #17111f;
  --surface-2: #211830;
  --line: #31264a;
  --text: #f4eefc;
  --muted: #a898c0;
  --accent: #ff7a1a;
  --accent-ink: #1a0d02;
  --accent-soft: rgba(255, 122, 26, 0.14);
  --purple: #b88aff;
  --purple-soft: rgba(166, 107, 255, 0.15);
  --danger: #ff6b86;
  --danger-soft: rgba(255, 92, 122, 0.12);
  --ok: #4fdc9b;
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --spooky: "Creepster", var(--font);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-tap-highlight-color: transparent;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(120% 55% at 50% -10%, rgba(166, 107, 255, 0.22), transparent 60%),
    radial-gradient(90% 40% at 50% 115%, rgba(255, 122, 26, 0.14), transparent 70%);
}
body.locked { overflow: hidden; }

.moon {
  position: fixed;
  top: 22px;
  right: -34px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #fff6dc, #f1d394 60%, #caa45b);
  box-shadow: 0 0 70px 24px rgba(255, 214, 140, 0.18);
}
body:has(#screen-home:not([hidden])) .moon,
body:has(#screen-dash:not([hidden])) .moon { display: none; }

/* ---------- Layout ---------- */

.screen {
  max-width: 480px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
}
.screen.wide { max-width: 760px; }
#screen-home { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }

.hero { text-align: center; padding: 44px 0 28px; }
.logo {
  font-family: var(--spooky);
  font-weight: 400;
  font-size: 68px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-shadow: 0 0 26px rgba(255, 122, 26, 0.45);
  margin: 0;
}
.logo-sm { font-size: 34px; }
.tagline { color: var(--muted); margin: 10px 0 0; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 14px; }
.topbar .btn-row { flex-wrap: nowrap; }
.topbar .btn-small { padding: 8px 12px; white-space: nowrap; }
.hello { font-size: 26px; font-weight: 800; line-height: 1.2; margin: 4px 0 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.card-tight { padding: 16px; }

h2 { font-size: 20px; line-height: 1.25; margin: 0 0 4px; }
h2.mt { margin-top: 26px; }
.sub { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.step { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 6px; }
.center { text-align: center; display: block; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* ---------- Forms ---------- */

label { display: block; font-weight: 650; font-size: 15px; margin: 0 0 6px; }
.field { margin-bottom: 18px; }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.error { color: var(--danger); font-size: 15px; margin: 8px 0 0; }
.error:empty { display: none; }

input[type="text"],
input[type="password"],
input[type="search"],
textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
textarea { min-height: 160px; resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #75688c; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 17px;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-small { width: auto; min-height: 44px; padding: 8px 14px; font-size: 15px; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid rgba(255, 107, 134, 0.35); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

.link {
  background: none;
  border: 0;
  padding: 10px 4px;
  color: var(--accent);
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.banner {
  padding: 12px 14px;
  margin: 0 0 16px;
  border-radius: 12px;
  background: var(--purple-soft);
  color: #e6d8ff;
  font-size: 15px;
}
.banner.closed { background: var(--danger-soft); color: #ffd0d9; }

/* ---------- Voting ---------- */

.slots { display: grid; gap: 10px; }
.slot {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 12px 14px;
  text-align: left;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  cursor: pointer;
}
.slot:disabled { cursor: default; opacity: 0.85; }
.slot.filled { border-color: rgba(255, 122, 26, 0.5); }
.medal { flex: none; width: 34px; font-size: 27px; text-align: center; line-height: 1; }
.slot-body, .pick-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.slot-label { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; }
.slot-name, .pick-name { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot:not(.filled) .slot-name { color: var(--muted); font-weight: 500; }
.slot-costume, .pick-costume { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { flex: none; color: var(--muted); font-size: 26px; line-height: 1; }
.vote-status { color: var(--muted); font-size: 14px; margin: 16px 0 0; }

/* ---------- Picker sheet ---------- */

.sheet { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(5, 3, 8, 0.72); }
.sheet-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  max-height: 86dvh;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  animation: rise 0.18s ease-out;
}
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 10px; }
.sheet-head h2 { margin: 0; font-size: 18px; }
.sheet-search { padding: 0 16px 8px; }
.sheet-list { overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 8px; min-height: 120px; }
.sheet-foot { padding: 8px 16px 14px; border-top: 1px solid var(--line); }
.sheet-empty { color: var(--muted); text-align: center; padding: 24px 12px; margin: 0; list-style: none; }

.pick {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 10px 10px;
  text-align: left;
  color: var(--text);
  background: none;
  border: 0;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
}
.pick:hover, .pick:active { background: var(--surface-2); }
.pick.selected { background: var(--accent-soft); }
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
}
.tag {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.tag.ok { background: rgba(79, 220, 155, 0.14); color: var(--ok); }
.tag.warn { background: var(--danger-soft); color: var(--danger); }

/* ---------- Results ---------- */

.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--surface-2);
}
.rank.first {
  border-color: rgba(255, 122, 26, 0.55);
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.18), rgba(166, 107, 255, 0.12));
}
.place { flex: none; width: 34px; text-align: center; font-size: 24px; font-weight: 800; color: var(--muted); line-height: 1; }
.score { flex: none; margin-left: auto; font-weight: 800; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }

.empty-state { text-align: center; padding: 36px 20px; }
.empty-state .big { font-size: 52px; line-height: 1; margin: 0 0 12px; }
.empty-state .sub { margin: 0; }

.rank.me { border-color: rgba(184, 138, 255, 0.6); }

/* ---------- Games ---------- */

.game-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  margin-bottom: 10px;
  padding: 14px 16px;
  text-align: left;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  cursor: pointer;
}
.game-card:active { background: var(--surface-2); }
.game-icon { flex: none; width: 40px; font-size: 32px; line-height: 1; text-align: center; }
.back { margin: -6px 0 6px; padding-left: 0; text-decoration: none; }

.closed-card { text-align: center; padding: 36px 20px; }
.closed-card .big { font-size: 52px; line-height: 1; margin: 0 0 12px; }
.closed-card .sub { margin: 0; }

.hunt-slots { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.hunt-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 14px 6px 6px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
}
.hunt-slot.found { border: 1px solid rgba(255, 122, 26, 0.6); background: var(--accent-soft); color: var(--text); }
.hunt-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
}
.hunt-slot.found .hunt-num { background: var(--accent); color: var(--accent-ink); }

.clue-found { padding: 12px 14px; border-radius: 12px; background: var(--purple-soft); border: 1px solid rgba(184, 138, 255, 0.35); }
.clue-label { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple); }
.clue-text { margin: 0; font-size: 18px; font-weight: 650; font-style: italic; color: var(--text); }

.scanner { position: fixed; inset: 0; z-index: 45; background: #000; overflow: hidden; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner-frame {
  position: absolute;
  left: 50%;
  top: 45%;
  width: min(70vw, 70vh, 320px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 3px solid var(--accent);
  border-radius: 20px;
  box-shadow: 0 0 0 100vmax rgba(11, 8, 16, 0.55);
}
.scanner-status {
  position: absolute;
  left: 16px;
  right: 16px;
  top: max(24px, env(safe-area-inset-top));
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 650;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.scanner-close {
  position: absolute;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: auto;
  min-width: 160px;
  background: rgba(11, 8, 16, 0.7);
}

.game-msg { font-size: 15px; margin: 10px 0 0; color: var(--muted); }
.game-msg:empty { display: none; }
.game-msg.good { color: var(--ok); }
.game-msg.bad { color: var(--danger); }
.solved {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(79, 220, 155, 0.12);
  color: #c4f5dd;
  font-weight: 650;
}

.reflex-pad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 300px;
  height: 48vh;
  margin-bottom: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.reflex-big { font-size: 42px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.reflex-small { color: var(--muted); font-size: 15px; max-width: 280px; }
.reflex-pad[data-phase="waiting"] { background: #9e1c35; border-color: #9e1c35; }
.reflex-pad[data-phase="waiting"] .reflex-small { color: #ffd0d9; }
.reflex-pad[data-phase="go"] { background: #22c55e; border-color: #22c55e; color: #052e14; }
.reflex-pad[data-phase="early"] { border-color: var(--danger); }
.reflex-pad[data-phase="early"] .reflex-big { color: var(--danger); }
.reflex-pad[data-phase="result"] .reflex-big { color: var(--accent); }
.stats.reflex-stats { grid-template-columns: repeat(2, 1fr); }

/* ---------- Arcade games (Bat Swat, Broomstick Run) ---------- */

.arcade-intro { text-align: center; }
.arcade-title { font-family: var(--spooky); font-size: clamp(36px, 11vw, 52px); line-height: 1; color: var(--accent); text-shadow: 0 0 22px rgba(255, 122, 26, 0.4); margin: 4px 0 14px; }
.arcade-rules { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; text-align: left; }
.arcade-rules li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.arcade-rules .ico { flex: none; width: 24px; text-align: center; }

.arcade-stage { position: fixed; inset: 0; z-index: 40; background: #2a1047; touch-action: none; overscroll-behavior: none; }
.arcade-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.arcade-hud {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.arcade-score { font-size: 34px; font-weight: 800; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); font-variant-numeric: tabular-nums; }
.arcade-hud-best { flex: 1; color: rgba(255, 255, 255, 0.75); font-size: 14px; font-weight: 700; }
.arcade-btn {
  pointer-events: auto;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 10, 31, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
#arcade-quit { font-size: 26px; }
.arcade-count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--spooky);
  font-size: 96px;
  color: var(--accent);
  text-shadow: 0 0 30px rgba(255, 122, 26, 0.6), 0 4px 0 #1a0d02;
  pointer-events: none;
}
.arcade-over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
  background: rgba(11, 8, 16, 0.82);
  text-align: center;
}
.arcade-over .btn { max-width: 320px; }
.arcade-over-title { font-size: 60px; margin: 0; }
.arcade-over-why { color: var(--muted); margin: 0; font-size: 16px; }
.arcade-final { font-size: 52px; font-weight: 800; margin: 4px 0; font-variant-numeric: tabular-nums; }
.arcade-over-msg { min-height: 1.5em; margin: 0 0 10px; color: #e6d8ff; }

/* ---------- Tab bar ---------- */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  background: rgba(17, 12, 24, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-inner { display: flex; width: 100%; max-width: 480px; }
.tab {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 60px;
  padding: 9px 0 8px;
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.tab svg { width: 24px; height: 24px; }
.tab[aria-selected="true"] { color: var(--accent); }
.dot { position: absolute; top: 8px; left: calc(50% + 9px); width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 30;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--danger); color: #fff; }

/* ---------- Host page ---------- */

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: 30px; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; }

.qr-card { text-align: center; }
.qr-frame { display: inline-block; padding: 14px; background: #fff; border-radius: 16px; margin: 4px 0 12px; }
.qr-frame canvas { display: block; width: 240px; height: 240px; image-rendering: pixelated; }
.qr-link { display: block; word-break: break-all; color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.qr-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; letter-spacing: 0.12em; color: var(--text); }
.print-title { display: none; }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.switch-row:first-of-type { border-top: 0; padding-top: 4px; }
.switch-row .sub { margin: 2px 0 0; font-size: 14px; }
.switch-row b { font-size: 16px; }
.switch { position: relative; flex: none; width: 54px; height: 32px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background 0.2s; pointer-events: none; }
.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(22px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

.guest-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.guest-row:first-child { border-top: 0; }
.guest-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.guest-actions .btn-small { min-height: 36px; padding: 6px 10px; font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

.table-wrap { overflow-x: auto; }
table.results { width: 100%; border-collapse: collapse; font-size: 15px; }
table.results th, table.results td { padding: 9px 6px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
table.results th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; border-top: 0; }
table.results td.num, table.results th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.results td .pick-costume { display: block; white-space: normal; }

h3 { font-size: 13px; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.mt-sm { margin-top: 18px; }
.answer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; margin-bottom: 12px; }
.answer-row label { grid-column: 1 / -1; margin: 0; }
.answer-row input { padding: 11px 12px; font-size: 16px; }
.secret-row { padding-top: 14px; border-top: 1px solid var(--line); }
.clue-row input { grid-column: 1 / -1; }
.clue-qr { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; }
textarea.short { min-height: 100px; }
.host-list { margin: 0; padding-left: 24px; }
.host-list li { padding: 5px 0; border-top: 1px solid var(--line); }
.host-list li:first-child { border-top: 0; }
.host-list .muted { font-size: 14px; }

@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .host-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-bottom: 16px; }
  .host-grid > .card { margin-bottom: 0; }
  .card .host-grid { margin-bottom: 0; }
}

@media print {
  @page { margin: 1.5cm; }
  body { background: #fff; color: #000; }
  body::before, .moon { display: none; }
  #dash > :not(#top-grid), #top-grid > :not(#qr-card), .topbar, .no-print { display: none !important; }
  #top-grid { display: block; }
  #qr-card { border: 0; background: none; padding: 0; }
  .print-title { display: block; font-size: 30px; font-weight: 800; margin: 0 0 8px; color: #000; }
  .logo { color: #000; text-shadow: none; font-size: 80px; }
  .qr-frame { padding: 0; }
  .qr-frame canvas { width: 12cm; height: 12cm; }
  .qr-link { color: #333; font-size: 13px; }
}
