:root {
  --grape: #1d1433;
  --grape-2: #2c2150;
  --grape-3: #43357a;
  --lemon: #ffd23f;
  --lemon-deep: #c99a00;
  --bubble: #ff5c8a;
  --mint: #37d67a;
  --coral: #ff6b5b;
  --lilac: #b8a9ff;

  --bg: #f5f3ff;
  --card: #ffffff;
  --ink: #1d1433;
  --muted: #6b6390;
  --line: #e3def7;

  --display: 'Bagel Fat One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  --mono: 'Martian Mono', ui-monospace, monospace;
  --bar-h: 64px;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120c22;
    --card: #1d1433;
    --ink: #efeaff;
    --muted: #a79fcb;
    --line: #30275a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------------- toolbar ---------------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 14px;
  background: var(--grape);
  color: #f3efff;
  box-shadow: 0 1px 0 #0006;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font: 22px/1 var(--display);
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--lemon);
  flex: none;
}
.logo-mark { width: 30px; height: 30px; color: var(--lemon); }

.dock { display: flex; align-items: center; gap: 8px; flex: none; }

.stumble {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px 0 22px;
  border: 0; border-radius: 999px;
  background: var(--lemon);
  color: var(--grape);
  font: 21px/1 var(--display);
  letter-spacing: .02em;
  box-shadow: 0 5px 0 var(--lemon-deep), 0 7px 14px #0005;
  transform: translateY(-2px);
  transition: transform .06s, box-shadow .06s, background .15s;
}
.stumble svg { width: 20px; height: 20px; }
.stumble:hover { background: #ffdc66; }
.stumble:active, .stumble.pressed { transform: translateY(3px); box-shadow: 0 0 0 var(--lemon-deep), 0 2px 4px #0005; }

.vote {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; min-width: 40px; padding: 0 10px;
  border: 2px solid var(--grape-3); border-radius: 999px;
  background: var(--grape-2);
  color: #d9d2f7;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.vote svg { width: 18px; height: 18px; }
.vote .count { font: 600 12px/1 var(--mono); }
.vote:hover { border-color: var(--lilac); }
.vote.up.on { background: var(--mint); border-color: var(--mint); color: var(--grape); }
.vote.down.on { background: var(--coral); border-color: var(--coral); color: var(--grape); }
.vote.pop-anim { animation: bump .35s ease-out; }
@keyframes bump { 40% { transform: scale(1.22) rotate(-8deg); } }

/* the slot-machine title window */
.reel {
  position: relative;
  flex: 1 1 auto; min-width: 120px; max-width: 460px;
  height: 46px;
  overflow: hidden;
  border: 0; border-radius: 10px;
  background: #0f0a1e;
  box-shadow: inset 0 2px 6px #000a, inset 0 0 0 1px #ffffff14;
  padding: 0 14px;
  text-align: left;
}
.reel::before, .reel::after {
  content: ''; position: absolute; left: 0; right: 0; height: 10px; z-index: 1; pointer-events: none;
}
.reel::before { top: 0; background: linear-gradient(#0f0a1e, #0f0a1e00); }
.reel::after { bottom: 0; background: linear-gradient(#0f0a1e00, #0f0a1e); }
.reel-strip { display: block; will-change: transform; }
.reel-item {
  display: flex; flex-direction: column; justify-content: center;
  height: 46px; white-space: nowrap; overflow: hidden;
}
.reel-item b { font-weight: 800; font-size: 15px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.reel-item small { font-size: 12px; color: #a99fd6; overflow: hidden; text-overflow: ellipsis; }
.reel-item small .badge { vertical-align: 1px; }
.reel-item.blur b { filter: blur(.6px); color: #cfc6f5; }

.tools { display: flex; align-items: center; gap: 4px; flex: none; }
.icon {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border: 0; border-radius: 10px;
  background: transparent; color: #cfc6f5;
}
.icon svg { width: 20px; height: 20px; }
.icon:hover { background: var(--grape-2); color: #fff; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px;
  border: 1px solid var(--grape-3); border-radius: 999px;
  background: transparent; color: #e8e2ff;
  font-size: 14px; font-weight: 600;
  white-space: nowrap;
}
.chip svg { width: 12px; height: 12px; }
.chip.active { border-color: var(--lemon); color: var(--lemon); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex: none; }
.nav a {
  padding: 8px 10px; border-radius: 8px;
  text-decoration: none; font-weight: 700; font-size: 14px; color: #cfc6f5;
}
.nav a:hover, .nav a.here { color: #fff; background: var(--grape-2); }
.nav a.nav-cta { color: var(--grape); background: var(--bubble); margin-left: 6px; }
.nav a.nav-cta:hover { background: #ff7aa0; }
.menu-btn { display: none; }

/* ---------------- stage ---------------- */
.stage {
  position: fixed; inset: var(--bar-h) 0 0 0;
  background: #0b0716;
}
.stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.stage iframe[src=""], .stage iframe:not([src]) { visibility: hidden; }
.stage:fullscreen .warp, .stage:fullscreen .slow { display: none; }

.warp {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  background: var(--grape);
  overflow: hidden;
}
.warp p { position: relative; font: 28px/1 var(--display); color: var(--lemon); margin: 0; }
.warp-lines {
  position: absolute; inset: -50%;
  background: repeating-conic-gradient(from 0deg, #ffffff08 0deg 6deg, transparent 6deg 12deg);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.slow {
  position: absolute; left: 50%; bottom: 20px; z-index: 4; transform: translateX(-50%);
  padding: 10px 16px; border-radius: 999px;
  background: var(--grape); color: #efeaff; font-size: 14px;
  box-shadow: 0 8px 24px #0007;
  white-space: nowrap;
}
.slow a, .slow button { color: var(--lemon); font-weight: 700; background: none; border: 0; padding: 0; text-decoration: underline; }

.hello {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center; padding: 24px;
  background: var(--grape);
  color: #efeaff;
  overflow: hidden;
}
.hello::before {
  content: ''; position: absolute; inset: -40%;
  background: repeating-conic-gradient(from 0deg, #ffffff07 0deg 6deg, transparent 6deg 12deg);
  animation: spin 40s linear infinite;
}
.hello-card { position: relative; max-width: 560px; }
.hello h1 { font: clamp(44px, 8vw, 76px)/.95 var(--display); margin: 0 0 18px; color: #fff; letter-spacing: -.01em; }
.hello h1::first-line { color: var(--lemon); }
.hello p { font-size: 18px; color: #cfc6f5; margin: 0 0 26px; max-width: 46ch; }
.stumble.big { height: 60px; font-size: 26px; padding: 0 28px; }
.hello-stats { font: 12px/1.6 var(--mono) !important; color: #7d73aa !important; margin-top: 10px !important; }

/* ---------------- popovers ---------------- */
.pop {
  position: fixed; z-index: 30;
  top: calc(var(--bar-h) + 8px);
  width: min(380px, calc(100vw - 24px));
  max-height: calc(100vh - var(--bar-h) - 24px); overflow: auto;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card); color: var(--ink);
  box-shadow: 0 20px 50px #0006, 0 0 0 1px var(--line);
  animation: drop .16s ease-out;
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.pop h3 { font: 20px/1.1 var(--display); margin: 0 0 12px; }
.pop h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 0 8px; }
.pop p { margin: 0 0 10px; }
.pop .row { display: flex; gap: 8px; flex-wrap: wrap; }
.pop .meta-line { font: 12px/1.7 var(--mono); color: var(--muted); }
.opt {
  padding: 7px 12px; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent;
  font-size: 14px; font-weight: 600;
}
.opt[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.opt .n { font: 10px var(--mono); opacity: .6; margin-left: 4px; }
.opt:disabled { opacity: .35; cursor: default; }
.reason-list { display: grid; gap: 6px; }
.reason-list button {
  text-align: left; padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid var(--line); background: transparent; font-weight: 600;
}
.reason-list button:hover { border-color: var(--coral); }

/* ---------------- shared bits ---------------- */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font: 700 11px/1.5 var(--body); letter-spacing: .02em; white-space: nowrap;
}
.badge.vibe { background: var(--bubble); color: #2a0612; }
.badge.hand { background: var(--lemon); color: #2a2000; }
.badge.hybrid { background: var(--lilac); color: #150c33; }
.badge.fast { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 8px; }
.tag::before { content: '#'; opacity: .6; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px;
  border: 0; border-radius: 12px;
  font-weight: 800; font-size: 16px; text-decoration: none;
  background: var(--ink); color: var(--bg);
}
.btn.lemon { background: var(--lemon); color: var(--grape); box-shadow: 0 4px 0 var(--lemon-deep); }
.btn.lemon:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--lemon-deep); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.small { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.good { background: var(--mint); color: var(--grape); }
.btn.bad { background: var(--coral); color: var(--grape); }

.thumb {
  display: grid; place-items: center;
  aspect-ratio: 1.91; overflow: hidden;
  border-radius: 10px;
  background: hsl(var(--h, 260) 70% 62%);
  font: 42px/1 var(--display); color: #fff9;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 40;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px;
  background: var(--lemon); color: var(--grape); font-weight: 800;
  box-shadow: 0 10px 30px #0006;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--coral); }

/* ---------------- content pages ---------------- */
.page {
  padding: calc(var(--bar-h) + 36px) 20px 80px;
  max-width: 980px; margin: 0 auto;
}
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page h1 { font: clamp(38px, 6vw, 56px)/1 var(--display); margin: 0; letter-spacing: -.01em; }
.page h2 { font: 26px/1.1 var(--display); margin: 36px 0 12px; }
.page .lede { color: var(--muted); font-size: 18px; margin: 10px 0 0; max-width: 60ch; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.tabs a { padding: 8px 14px; border-radius: 9px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--muted); }
.tabs a.here { background: var(--ink); color: var(--bg); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }

.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.board li {
  display: grid; grid-template-columns: 44px 150px 1fr auto; gap: 16px; align-items: center;
  padding: 12px 16px 12px 8px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
}
.rank { font: 22px/1 var(--display); color: var(--muted); text-align: center; }
.board li:nth-child(1) .rank { color: var(--lemon-deep); font-size: 30px; }
.board .thumb { width: 150px; font-size: 32px; }
.board h3 { margin: 0 0 2px; font-size: 18px; font-weight: 800; line-height: 1.25; }
.board h3 a { text-decoration: none; }
.board h3 a:hover { text-decoration: underline; }
.board .by { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.board .desc { font-size: 14px; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.score { display: grid; justify-items: center; gap: 4px; min-width: 64px; }
.score .v { font: 600 14px/1 var(--mono); }
.score .v.up { color: #16a05a; }
.score .sub { font: 10px/1 var(--mono); color: var(--muted); }
.mini-vote { display: flex; gap: 4px; }
.mini-vote button {
  width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--line); background: transparent;
  display: grid; place-items: center; color: var(--muted);
}
.mini-vote button svg { width: 14px; height: 14px; }
.mini-vote button.on.u { background: var(--mint); border-color: var(--mint); color: var(--grape); }
.mini-vote button.on.d { background: var(--coral); border-color: var(--coral); color: var(--grape); }

.empty {
  padding: 48px 24px; text-align: center; border-radius: var(--radius);
  background: var(--card); box-shadow: 0 0 0 1px var(--line);
}
.empty p { color: var(--muted); margin: 0 0 18px; }

/* submit */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 800; font-size: 15px; }
.field > span em { font-style: normal; font-weight: 500; color: var(--muted); }
.field small { color: var(--muted); font-size: 13px; }
input[type=text], input[type=url], input[type=email], input[type=password], textarea, select {
  width: 100%; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--ink);
  font: inherit;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--lilac); }
textarea { min-height: 90px; resize: vertical; }
.url-row { display: flex; gap: 8px; }
.url-row input { flex: 1; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check {
  display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center;
  padding: 14px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line);
}
.check .status-line { font-weight: 700; margin: 0 0 4px; }
.check .ok { color: #16a05a; }
.check .warn { color: #c77700; }
.check .no { color: var(--coral); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line); cursor: pointer; font-weight: 700;
}
.seg input { accent-color: var(--grape-3); }
.seg label:has(input:checked) { border-color: var(--ink); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plan {
  position: relative; display: block; cursor: pointer;
  padding: 20px; border-radius: 18px;
  border: 2.5px solid var(--line); background: var(--card);
}
.plan input { position: absolute; opacity: 0; }
.plan:has(input:checked) { border-color: var(--ink); box-shadow: 0 6px 0 var(--ink); transform: translateY(-3px); }
.plan:has(input:focus-visible) { outline: 3px solid var(--lilac); outline-offset: 2px; }
.plan:has(input:disabled) { opacity: .5; cursor: default; }
.plan .price { font: 44px/1 var(--display); margin: 0 0 6px; }
.plan .coin {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--lemon); color: var(--grape); box-shadow: inset 0 -4px 0 var(--lemon-deep), 0 0 0 3px var(--grape);
  font: 22px/1 var(--display); vertical-align: middle; margin-right: 6px;
}
.plan h3 { margin: 0 0 6px; font-size: 18px; }
.plan ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.hp { position: absolute; left: -9999px; }
.fine { color: var(--muted); font-size: 13px; }
.err-box { padding: 12px 14px; border-radius: 12px; background: #ff6b5b22; color: var(--ink); border: 1.5px solid var(--coral); font-weight: 600; }

.drop {
  position: relative; display: grid; gap: 4px; justify-items: center; text-align: center;
  padding: 28px 20px; border-radius: 16px; cursor: pointer;
  border: 2.5px dashed var(--line); background: var(--card);
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--lilac); }
.drop.over { background: color-mix(in srgb, var(--lilac) 12%, var(--card)); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:has(input:focus-visible) { outline: 3px solid var(--lilac); outline-offset: 2px; }
.drop b { font-size: 17px; }
.drop span { color: var(--muted); font-size: 14px; max-width: 52ch; }
.upload-preview { grid-template-columns: 320px 1fr; }
.upload-preview iframe { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 10px; background: #fff; }

.auth { max-width: 520px; margin: 0 auto; }
.auth .lede { margin-bottom: 24px; }
.auth-sent { font-size: 17px; margin: 0; }
.code-input { font: 600 28px/1 var(--mono) !important; letter-spacing: .3em; max-width: 260px; }
.status-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--line); color: var(--ink); }
.status-pill.s-live { background: var(--mint); color: var(--grape); }
.status-pill.s-pending, .status-pill.s-awaiting_payment { background: var(--lemon); color: var(--grape); }
.status-pill.s-flagged, .status-pill.s-rejected, .status-pill.s-removed { background: var(--coral); color: var(--grape); }
.board.mine li { grid-template-columns: 0 150px 1fr auto; }

/* status */
.steps { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 22px 36px; }
.steps li::before {
  content: ''; position: absolute; left: 6px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--card); box-shadow: 0 0 0 2.5px var(--line);
}
.steps li::after { content: ''; position: absolute; left: 12px; top: 24px; bottom: 2px; width: 2.5px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.done::before { background: var(--mint); box-shadow: 0 0 0 2.5px var(--mint); }
.steps li.now::before { background: var(--lemon); box-shadow: 0 0 0 2.5px var(--lemon-deep); }
.steps li.fail::before { background: var(--coral); box-shadow: 0 0 0 2.5px var(--coral); }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 14px; }
.linkbox { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font: 12px var(--mono); overflow: hidden; }
.linkbox code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* admin */
.admin-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 18px;
  padding: 16px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line);
  margin-bottom: 12px;
}
.admin-card h3 { margin: 0 0 4px; }
.admin-card .actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.admin-card .meta-line { font: 12px/1.7 var(--mono); color: var(--muted); word-break: break-all; }
.admin-card input { padding: 8px 10px; font-size: 14px; margin-top: 8px; }

/* share hero on the status page */
.share-hero {
  margin: 8px 0 28px; padding: 26px 26px 22px;
  border-radius: 20px; background: var(--grape); color: #efeaff;
  box-shadow: 0 8px 0 var(--grape-3);
}
.share-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--lilac); }
.share-url {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 10px 10px 18px; border-radius: 14px; background: #0f0a1e; box-shadow: inset 0 2px 6px #000a;
}
.share-url a { flex: 1; min-width: 0; font: 600 clamp(16px, 3.2vw, 24px)/1.3 var(--mono); color: var(--lemon); text-decoration: none; overflow-wrap: anywhere; }
.share-url a:hover { text-decoration: underline; }
.share-why { margin: 16px 0; color: #cfc6f5; max-width: 62ch; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-hero .btn.ghost { color: #efeaff; box-shadow: inset 0 0 0 2px var(--grape-3); }
.share-hero .btn:not(.ghost):not(.lemon) { background: #efeaff; color: var(--grape); }
.share-embed { margin-top: 18px; font-size: 14px; color: #cfc6f5; }
.share-embed summary { cursor: pointer; font-weight: 700; }
.share-embed .linkbox { margin-top: 10px; background: #0f0a1e; color: #efeaff; box-shadow: none; }
.share-embed .linkbox .btn.ghost { color: #efeaff; }

/* admin stats */
.figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0; }
.figures div { padding: 14px 16px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.figures dt { font-size: 13px; color: var(--muted); }
.figures dd { margin: 4px 0 0; font: 600 22px/1.2 var(--mono); }
table.stats { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
table.stats th, table.stats td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.stats th { font-size: 12px; color: var(--muted); font-weight: 700; }
table.stats .num { text-align: right; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
table.stats tr:last-child td { border-bottom: 0; }

/* ---------------- responsive ---------------- */
@media (max-width: 1180px) {
  .nav a:not(.nav-cta) { display: none; }
  .menu-btn { display: inline-grid; }
  .nav.open {
    position: fixed; top: var(--bar-h); right: 8px; flex-direction: column; align-items: stretch;
    padding: 8px; border-radius: 12px; background: var(--grape); box-shadow: 0 16px 40px #0008;
  }
  .nav.open a { display: block; }
  .nav.open a.nav-cta { margin: 4px 0 0; }
}
@media (max-width: 900px) {
  #reportBtn, #shareBtn { display: none; }
  .logo span { display: none; }
  .nav a.nav-cta { display: none; }
  .nav.open a.nav-cta { display: block; }
}
@media (max-width: 700px) {
  :root { --bar-h: 56px; --dock-h: 76px; }
  .bar { gap: 8px; padding: 0 8px; }
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    height: var(--dock-h);
    justify-content: center; gap: 16px;
    padding: 0 16px env(safe-area-inset-bottom);
    background: var(--grape);
    box-shadow: 0 -1px 0 #0006;
  }
  .dock .stumble { flex: 1; max-width: 240px; justify-content: center; height: 52px; }
  .dock .vote { height: 48px; min-width: 56px; justify-content: center; }
  .stage { bottom: var(--dock-h); }
  .reel { max-width: none; }
  .chip span { display: none; }
  .chip { padding: 0 10px; }
  #fullBtn { display: none; }
  .page { padding-bottom: 120px; }
  .board li { grid-template-columns: 90px 1fr; grid-template-areas: 'thumb info' 'score score'; gap: 10px 12px; padding: 12px; }
  .board .rank { display: none; }
  .board .thumb { width: 90px; font-size: 22px; grid-area: thumb; }
  .board .info { grid-area: info; }
  .board .score { grid-area: score; grid-auto-flow: column; justify-content: start; gap: 12px; align-items: center; }
  .two, .plans, .check, .admin-card, .upload-preview { grid-template-columns: 1fr; }
  .slow { white-space: normal; width: calc(100% - 32px); border-radius: 16px; text-align: center; }
  .hello { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
