:root {
  --bg: #1a1714;
  --ink: #f4ead5;
  --muted: #b7a894;
  --gold: #e8b84a;
  --surface: #2a241e;
  --line: #3d342b;
  --quiet: #d4a017;
  --infraction: #c45c4a;
  --present: #6aab7a;
  --grabbed: #6b8fd4;
  --pad: 16px;
  font-family: ui-sans-serif, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); min-height: 100%; }
body { padding-bottom: 88px; }
a { color: var(--gold); text-decoration: none; }
.top {
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) var(--pad) 10px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: #1a1714ee; backdrop-filter: blur(8px); z-index: 2;
}
.brand { font-weight: 750; color: var(--ink); letter-spacing: .02em; }
.meter { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--gold); }
.meter.big { font-size: 1.4rem; margin: 12px 0; }
main { padding: var(--pad); max-width: 980px; margin: 0 auto; }
h1 { font-size: 1.6rem; margin: 0 0 12px; }
h2 { font-size: 1.05rem; margin: 0; font-weight: 650; }
.lede { color: var(--muted); margin-top: 0; }
.card, .slot, .post {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; margin: 0 0 12px;
}
.slots { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.slot header { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.stars { color: var(--gold); font-weight: 700; }
.meta, .muted, .status { color: var(--muted); font-size: .9rem; }
.slot.open { box-shadow: inset 0 0 0 1px #e8b84a44; }
.slot.grabbed { opacity: .9; }
.slot.awarded { border-color: var(--present); }
.btn {
  display: inline-block; border: 1px solid var(--line); background: #3a3229; color: var(--ink);
  border-radius: 999px; padding: 10px 16px; font-weight: 650; cursor: pointer;
}
.btn.gold { background: var(--gold); color: #1a1714; border-color: var(--gold); }
.btn.ghost { background: transparent; }
.btn.text, button.text { background: none; border: 0; color: var(--muted); cursor: pointer; }
form.row, .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
input, select {
  background: #1a1714; color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit;
}
.banner {
  display: block; padding: 10px var(--pad); background: #3a3229;
}
.banner.quiet { background: #3a2e10; color: var(--quiet); }
.banner.infraction { background: #3a1d18; color: #f0b0a6; }
.banner.claim { background: #2c2410; color: var(--gold); }
.dock {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around;
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  background: #14110f; border-top: 1px solid var(--line);
}
.dock a { color: var(--ink); font-weight: 650; font-size: .9rem; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photos img, .empty { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #111; }
.wall { display: grid; gap: 12px; }
.post { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.post img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.chip { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: .75rem; text-transform: uppercase; }
.chip.present, li.present em { color: var(--present); }
.chip.quiet, li.quiet em { color: var(--quiet); }
.chip.infraction, li.infraction em { color: var(--infraction); }
.board { list-style: none; padding: 0; }
.board li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.board li.quiet, .board li.infraction { opacity: .85; }
.stats { display: flex; gap: 16px; list-style: none; padding: 0; }
.login .btn { width: 100%; text-align: center; margin: 8px 0; }
.code { font-size: 2.4rem; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.qr svg { width: 100%; height: auto; background: #fff; border-radius: 8px; }
.kiosk { padding-bottom: 16px; }
.kiosk-grid { display: grid; gap: 18px; }
@media (min-width: 900px) {
  .kiosk-grid { grid-template-columns: 1.2fr 1fr .7fr; }
}
@media print {
  .top, .dock, .print-hide { display: none; }
  body { background: #fff; color: #111; padding: 0; }
}
