/* Grok Prompt Leaderboard: dark, minimal, system fonts only. */

:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #0c0c0d;
  --surface-2: #131315;
  --surface-3: #1a1a1d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.13);
  --line-3: rgba(255, 255, 255, 0.22);
  --text: #f4f4f5;
  --text-2: #a9a9b3;
  --text-3: #82828c;
  --accent: #9db6ff;
  --success: #5ee0a0;
  --danger: #ff7c7c;
  --radius: 14px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --nav-h: 64px;
}

/* ---------- base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  scrollbar-color: #2a2a2f transparent;
}

html.modal-open { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: rgba(157, 182, 255, 0.32); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.muted { color: var(--text-2); }
.icon { width: 16px; height: 16px; flex: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--text);
  color: #09090b;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.kicker {
  margin-bottom: 8px;
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s, box-shadow 0.25s, transform 0.15s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn:disabled { cursor: progress; }

.btn-primary {
  background: #f4f4f5;
  color: #09090b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px -10px rgba(255, 255, 255, 0.3);
}
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 32px -8px rgba(255, 255, 255, 0.4); }

.btn-secondary { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--text); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--line-3); }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--text-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); color: var(--text); }

.btn-danger { background: rgba(255, 124, 124, 0.08); border-color: rgba(255, 124, 124, 0.25); color: #ffb8b8; }
.btn-danger:hover { background: rgba(255, 124, 124, 0.16); border-color: rgba(255, 124, 124, 0.45); color: #fff; }

.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }

.btn.is-loading { color: transparent !important; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-primary.is-loading::after { border-color: rgba(0, 0, 0, 0.2); border-top-color: #09090b; }

.icon-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--line-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- small pieces ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.badge-example { border-style: dashed; color: #cfcfd6; font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; }

.card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  background: rgba(5, 5, 5, 0.55);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  transition: border-color 0.3s, background-color 0.3s;
}
.site-nav.is-scrolled { border-bottom-color: var(--line); background: rgba(5, 5, 5, 0.82); }
.site-nav.is-static { position: relative; border-bottom-color: var(--line); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: none; transition: transform 0.45s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-sub { color: var(--text-3); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.nav-links .btn { margin-left: 8px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(var(--nav-h) + 96px) 0 80px;
  text-align: center;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-position: center top;
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(65% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(65% 60% at 50% 0%, #000 20%, transparent 75%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: -10% 0 0;
  background: radial-gradient(50% 50% at 50% 0%, rgba(157, 182, 255, 0.2), transparent 70%),
    radial-gradient(30% 35% at 78% 8%, rgba(255, 255, 255, 0.07), transparent 70%),
    radial-gradient(30% 35% at 20% 14%, rgba(130, 150, 255, 0.08), transparent 70%);
  animation: breathe 12s ease-in-out infinite alternate;
}

.hero-inner { position: relative; max-width: 880px; }
.hero-inner > * { animation: rise 0.8s var(--ease) backwards; }
.hero-inner > :nth-child(2) { animation-delay: 0.06s; }
.hero-inner > :nth-child(3) { animation-delay: 0.12s; }
.hero-inner > :nth-child(4) { animation-delay: 0.18s; }
.hero-inner > :nth-child(5) { animation-delay: 0.24s; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 13px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulse 2.4s infinite; }

.hero-title {
  background: linear-gradient(180deg, #fff 30%, #cfcfd6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(40px, 7.2vw, 78px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.hero-title-dim {
  background: linear-gradient(180deg, #8e8e98 10%, #4a4a52);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub { max-width: 590px; margin: 24px auto 0; color: var(--text-2); font-size: clamp(16px, 2vw, 18px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 44px 0 0;
  padding: 0;
  color: var(--text-3);
  font-size: 13px;
  list-style: none;
}
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .icon { color: var(--text-2); }

/* ---------- layout ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 40px;
  padding-bottom: 96px;
  outline: none;
}

.sidebar { display: flex; flex-direction: column; gap: 16px; }
@media (min-height: 900px) and (min-width: 1001px) {
  .sidebar { position: sticky; top: calc(var(--nav-h) + 20px); }
}

/* ---------- board ---------- */

.board-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.board-title { font-size: 26px; font-weight: 680; letter-spacing: -0.03em; line-height: 1.2; }
.board-desc { margin-top: 3px; color: var(--text-3); font-size: 14px; }

.tabs {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.tabs-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease);
}
.tabs[data-active="all"] .tabs-thumb { transform: translateX(100%); }
.tab {
  position: relative;
  z-index: 1;
  padding: 7px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-3);
  font-size: 13.5px;
  font-weight: 560;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s;
}
.tab:hover, .tab[aria-selected="true"] { color: var(--text); }

.chips-wrap { margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s, color 0.2s;
}
.chip-btn:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--text); }
.chip-btn[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: #09090b; }
.chip-count { color: var(--text-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.chip-btn[aria-pressed="true"] .chip-count { color: rgba(0, 0, 0, 0.5); }

/* sponsored slot */
.sponsor {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px dashed rgba(157, 182, 255, 0.3);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(157, 182, 255, 0.07), rgba(255, 255, 255, 0.012) 60%);
  transition: border-color 0.3s;
}
.sponsor:hover { border-color: rgba(157, 182, 255, 0.5); }
.sponsor-glow {
  position: absolute;
  top: -120px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(closest-side, rgba(157, 182, 255, 0.18), transparent);
  pointer-events: none;
  transition: transform 0.6s var(--ease);
}
.sponsor:hover .sponsor-glow { transform: translate(-20px, 16px); }
.sponsor-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--accent);
}
.sponsor-logo svg { width: 22px; height: 22px; }
.sponsor-body { position: relative; flex: 1; min-width: 0; }
.sponsor-label { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.sponsor-title { margin-top: 2px; font-size: 15px; font-weight: 620; letter-spacing: -0.01em; }
.sponsor-text { margin-top: 2px; color: var(--text-2); font-size: 13.5px; }
.sponsor-cta {
  position: relative;
  flex: none;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 12px;
}

/* ---------- prompt cards ---------- */

.prompt-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }

.prompt-card {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 60px;
  gap: 0 18px;
  padding: 22px 22px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.006)), var(--surface);
  animation: card-in 0.5s var(--ease) backwards;
  transition: border-color 0.25s var(--ease), box-shadow 0.3s var(--ease), transform 0.25s var(--ease);
}
.prompt-card:hover {
  border-color: var(--line-2);
  box-shadow: 0 20px 44px -28px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.015);
  transform: translateY(-1px);
}
.prompt-card:nth-child(2) { animation-delay: 0.03s; }
.prompt-card:nth-child(3) { animation-delay: 0.06s; }
.prompt-card:nth-child(4) { animation-delay: 0.09s; }
.prompt-card:nth-child(5) { animation-delay: 0.12s; }
.prompt-card:nth-child(6) { animation-delay: 0.15s; }
.prompt-card:nth-child(n + 7) { animation-delay: 0.18s; }

.prompt-card.is-top:first-child::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157, 182, 255, 0.7), transparent);
}

.prompt-card.is-highlight { animation: highlight 2.4s var(--ease); }

.rank { padding-top: 1px; color: var(--text-3); font: 600 15px/1.45 var(--mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.prompt-card.is-top .rank { color: var(--text); }

.prompt-main { min-width: 0; }
.prompt-title { font-size: 16.5px; font-weight: 620; letter-spacing: -0.015em; line-height: 1.4; overflow-wrap: anywhere; }

.prompt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; color: var(--text-3); font-size: 13px; }
.prompt-meta time::before { content: "·"; margin-right: 10px; }
.author { color: var(--text-2); font-weight: 500; text-decoration: none; transition: color 0.2s; }
.author:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.prompt-box { position: relative; margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0, 0, 0, 0.4); }
.prompt-text {
  max-height: calc(1.65em * 5 + 28px);
  margin: 0;
  padding: 14px 16px;
  overflow: hidden;
  color: #c6c6ce;
  font: 13px/1.65 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prompt-box.is-clamped .prompt-text {
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.prompt-box.is-expanded .prompt-text { max-height: none; -webkit-mask-image: none; mask-image: none; }
.prompt-text.is-full { max-height: none; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0, 0, 0, 0.4); }

.prompt-expand {
  display: block;
  width: 100%;
  padding: 8px 16px 10px;
  border: 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.prompt-expand:hover { background: rgba(255, 255, 255, 0.045); color: var(--text); }

.prompt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 10px 0 0 -10px; }
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.action-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.action-btn.is-done { color: var(--success); }
.prompt-stat { margin-left: auto; color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }

.vote-btn {
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 60px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.3s, transform 0.15s var(--ease);
}
.vote-btn:hover { border-color: var(--line-3); background: var(--surface-3); }
.vote-btn:active { transform: scale(0.94); }
.vote-icon { width: 18px; height: 18px; color: var(--text-2); transition: transform 0.25s var(--ease), color 0.2s; }
.vote-btn:hover .vote-icon { color: var(--text); transform: translateY(-2px); }
.vote-count { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vote-btn.is-voted { border-color: #f4f4f5; background: #f4f4f5; color: #09090b; box-shadow: 0 10px 28px -12px rgba(255, 255, 255, 0.5); }
.vote-btn.is-voted .vote-icon { color: #09090b; transform: none; }
.vote-btn.is-popping { animation: pop 0.45s var(--ease); }

.prompt-card.skeleton {
  height: 196px;
  border-color: var(--line);
  background: linear-gradient(100deg, var(--surface) 30%, #111113 50%, var(--surface) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.state-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 24px; text-align: center; }
.state-title { font-size: 16px; font-weight: 600; }
.state-card .btn { margin-top: 12px; }

/* ---------- sidebar ---------- */

.side-card { padding: 24px; }
.side-title { font-size: 17px; font-weight: 640; letter-spacing: -0.02em; line-height: 1.3; }
.side-text { margin-top: 6px; color: var(--text-2); font-size: 14px; }

.submit-cta { background: radial-gradient(120% 100% at 100% 0%, rgba(157, 182, 255, 0.1), transparent 55%), var(--surface); }
.submit-cta .btn { margin-top: 18px; }
.side-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface-2);
}
.side-icon svg { width: 18px; height: 18px; }

.subscribe-form { margin-top: 16px; }
.subscribe-row { display: flex; gap: 8px; }
.subscribe-row .input { flex: 1; min-width: 0; }

.form-msg { margin-top: 10px; color: var(--text-2); font-size: 13px; }
.form-msg:empty { display: none; }
.form-msg.is-error, #submit-msg { color: var(--danger); }
.form-msg.is-success { color: var(--success); }

.privacy-note {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.5;
}
.privacy-note .icon { width: 14px; height: 14px; margin-top: 2px; }

.steps { display: flex; flex-direction: column; gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 12px; }
.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}
.steps strong { display: block; font-size: 14px; font-weight: 600; }
.steps li div span { display: block; color: var(--text-2); font-size: 13px; line-height: 1.5; }

/* ---------- forms ---------- */

.input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 14.5px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: #70707a; }
.input:hover { border-color: var(--line-3); }
.input:focus { border-color: rgba(157, 182, 255, 0.6); background: rgba(255, 255, 255, 0.045); box-shadow: 0 0 0 4px rgba(157, 182, 255, 0.12); }
.input[aria-invalid="true"] { border-color: rgba(255, 124, 124, 0.6); }
.textarea { height: auto; min-height: 168px; padding: 12px 14px; font: 13.5px/1.6 var(--mono); resize: vertical; }

.form { display: flex; flex-direction: column; gap: 20px; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-label { display: block; margin-bottom: 8px; padding: 0; color: var(--text); font-size: 13px; font-weight: 600; }
.counter { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.counter.is-near { color: #ffd08a; }
.field-error { margin-top: 6px; color: var(--danger); font-size: 12.5px; }
.field-error:empty { display: none; }

.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice span {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s, color 0.2s;
}
.choice:hover span { border-color: var(--line-3); color: var(--text); }
.choice input:checked + span { border-color: var(--text); background: var(--text); color: #09090b; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.input-affix { position: relative; }
.affix { position: absolute; top: 50%; left: 14px; color: var(--text-3); font-size: 14.5px; transform: translateY(-50%); pointer-events: none; }
.input-affix .input { padding-left: 30px; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.fine-print { max-width: 340px; color: var(--text-3); font-size: 12.5px; line-height: 1.5; }

/* Honeypot: off-screen for people, still present for bots. */
.hp { position: absolute !important; top: auto; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.clipboard-proxy { position: fixed; top: 0; left: 0; opacity: 0; pointer-events: none; }

/* ---------- dialog ---------- */

.modal {
  width: min(640px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: #0b0b0c;
  color: var(--text);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.modal::backdrop { background: rgba(0, 0, 0, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 0.35s var(--ease); }
.modal[open]::backdrop { animation: fade-in 0.3s ease; }
.modal-panel { max-height: inherit; padding: 28px; overflow-y: auto; overscroll-behavior: contain; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.modal-title { font-size: 22px; font-weight: 680; letter-spacing: -0.03em; }
.modal-sub { margin-top: 4px; color: var(--text-2); font-size: 14px; }

.success-state { padding: 20px 8px 8px; outline: none; text-align: center; }
.success-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border: 1px solid rgba(94, 224, 160, 0.3);
  border-radius: 50%;
  background: rgba(94, 224, 160, 0.1);
  color: var(--success);
  animation: pop 0.5s var(--ease);
}
.success-icon svg { width: 26px; height: 26px; }
.success-icon path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.5s 0.15s var(--ease) forwards; }
.success-title { font-size: 20px; font-weight: 660; letter-spacing: -0.02em; }
.success-text { margin-top: 6px; color: var(--text-2); font-size: 14.5px; }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 200;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #09090b;
  font-size: 13.5px;
  font-weight: 560;
  text-align: center;
  box-shadow: 0 14px 44px -8px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { border: 1px solid rgba(255, 124, 124, 0.35); background: #2a1215; color: #ffd4d4; }

/* ---------- footer ---------- */

.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.footer-brand .brand-mark { width: 24px; height: 24px; }
.footer-note { color: var(--text-3); font-size: 13px; }
.footer-note .badge { margin: 0 2px; }

/* ---------- admin & 404 ---------- */

.nav-inner .badge { margin-left: 2px; }

.admin { max-width: 960px; padding-top: 44px; padding-bottom: 96px; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.admin-title { font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }

.flash {
  margin-top: 22px;
  padding: 12px 16px;
  border: 1px solid rgba(94, 224, 160, 0.3);
  border-radius: 12px;
  background: rgba(94, 224, 160, 0.07);
  color: #c4f5dc;
  font-size: 14px;
}

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat-value { font-size: 28px; font-weight: 680; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--text-3); font-size: 13px; }

.admin-section { margin-top: 44px; }
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 18px; font-weight: 640; letter-spacing: -0.02em; }
.count-pill { padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--text-2); font-size: 12px; font-weight: 600; }

.queue { display: flex; flex-direction: column; gap: 12px; }
.queue-item { padding: 22px; }
.queue-actions { display: flex; gap: 8px; margin-top: 16px; }
.queue-actions form, .live-row form { margin: 0; }

.live-list { padding: 4px 20px; }
.live-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.live-row:last-child { border-bottom: 0; }
.live-row form { flex: none; }
.live-main { display: flex; flex-direction: column; min-width: 0; }
.live-title { overflow: hidden; font-size: 14.5px; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.live-meta { color: var(--text-3); font-size: 12.5px; }
.live-meta .badge { height: 18px; }
.live-list > .muted { padding: 16px 0; }

.subs-card { padding: 20px; }
.subs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.subs-remove { display: flex; flex: 1; gap: 8px; min-width: 260px; margin: 0; }
.subs-remove .input { height: 34px; font-size: 13.5px; }

.empty-card { padding: 40px 24px; text-align: center; }
.empty-title { margin-bottom: 4px; font-weight: 600; }

.not-found { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 640px; padding-top: 120px; padding-bottom: 140px; text-align: center; }
.not-found .btn { margin-top: 12px; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
}

@media (max-width: 640px) {
  :root { --nav-h: 58px; }
  .container { padding-inline: 18px; }
  .hide-sm { display: none; }
  .brand-sub { display: none; }

  .hero { padding: calc(var(--nav-h) + 56px) 0 52px; }
  .hero-sub { margin-top: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; margin-top: 28px; }
  .hero-points { flex-direction: column; align-items: center; gap: 8px; margin-top: 32px; }

  .board-head { align-items: stretch; flex-direction: column; }
  .tabs { width: 100%; }

  .chips-wrap { margin-inline: -18px; }
  .chips {
    flex-wrap: nowrap;
    padding: 2px 18px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  }
  .chips::-webkit-scrollbar { display: none; }

  .sponsor { flex-wrap: wrap; padding: 16px; }
  .sponsor-cta { margin-left: 60px; }

  .prompt-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "rank title vote" ". meta vote" "box box box" "actions actions actions";
    gap: 0 12px;
    padding: 18px 16px 12px;
  }
  .prompt-main { display: contents; }
  .rank { grid-area: rank; font-size: 13px; padding-top: 2px; }
  .prompt-title { grid-area: title; font-size: 16px; }
  .prompt-meta { grid-area: meta; align-self: start; }
  .prompt-box { grid-area: box; }
  .prompt-actions { grid-area: actions; margin-left: -8px; }
  .vote-btn { grid-area: vote; width: 52px; height: 58px; }
  .vote-count { font-size: 14px; }

  .input { font-size: 16px; }
  .textarea { font-size: 14px; }

  .modal {
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    margin: auto 0 0;
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
  }
  .modal[open] { animation-name: sheet-in; }
  .modal-panel { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; height: 46px; }

  .stat-row { grid-template-columns: minmax(0, 1fr); }
  .queue-item { padding: 18px; }
}

@media (max-width: 400px) {
  .hide-xs { display: none; }
  .subscribe-row { flex-direction: column; }
}

/* ---------- motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes breathe { from { opacity: 0.75; } to { opacity: 1; } }
@keyframes pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 224, 160, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(94, 224, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 224, 160, 0); }
}
@keyframes highlight {
  0%, 45% { border-color: rgba(157, 182, 255, 0.7); box-shadow: 0 0 0 4px rgba(157, 182, 255, 0.14); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
