:root {
  --bg: #0A0A0A;
  --surface: #171717;
  --border: #262626;
  --border-strong: #404040;
  --text: #FFFFFF;
  --muted: #A3A3A3;
  --subtle: #8A8A8A;
  --accent: #FFD60A;
  --ok: #4ADE80;
  --error: #FF8A80;
  --pad-x: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--text); }

.page { min-height: 100vh; display: flex; flex-direction: column; }

.header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; padding: 28px var(--pad-x);
}

.logo {
  color: var(--text); text-decoration: none;
  font-size: 24px; font-weight: 900; letter-spacing: -0.04em;
}
.logo span { color: var(--accent); border-bottom: 4px solid var(--accent); }
.logo:hover { color: var(--text); }

.nav { display: flex; gap: 24px; align-items: center; font-size: 15px; font-weight: 500; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

.live { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.live .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ok); }
.live.offline .dot { background: var(--subtle); }

.hero {
  flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 40px; padding: 64px var(--pad-x) 80px; text-align: center;
}

.eyebrow {
  margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}

.line {
  margin: 0; max-width: 1140px;
  font-size: clamp(44px, 10vw, 156px); font-weight: 800;
  letter-spacing: -0.05em; line-height: 0.95; overflow-wrap: anywhere;
  transition: opacity 0.25s ease;
}
.line.flash { animation: flash 0.6s ease; }
@keyframes flash { from { opacity: 0.2; } to { opacity: 1; } }

.actions { width: 100%; min-height: 120px; display: flex; flex-direction: column; align-items: center; }
.stack { display: flex; flex-direction: column; align-items: center; gap: 14px; }
[hidden] { display: none !important; }

.btn {
  height: 60px; padding: 0 26px; border: 0; border-radius: 14px; cursor: pointer;
  font: 700 17px Inter, system-ui, sans-serif; letter-spacing: -0.01em;
}
.btn:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-xl { height: 64px; padding: 0 36px; border-radius: 999px; font-size: 19px; }
.btn-ghost { background: transparent; color: var(--muted); font-weight: 500; font-size: 15px; padding: 0 14px; }
.btn-ghost:hover { color: var(--text); }
.btn-link { background: transparent; color: var(--accent); height: 44px; font-size: 15px; font-weight: 600; }

.muted { margin: 0; color: var(--muted); font-size: 15px; }
.small { font-size: 13px; }
.error { margin: 0; color: var(--error); }

.edit { width: 100%; max-width: 800px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.edit-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: center; width: 100%; text-align: left; }
.field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 340px; }
.field-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input {
  height: 60px; padding: 0 20px; border: 1px solid var(--border-strong); border-radius: 14px;
  background: var(--surface); color: var(--text); font: 500 19px Inter, system-ui, sans-serif;
}
.field input::placeholder { color: #737373; }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 999px;
  background: var(--surface); border: 1px solid #333; font-size: 16px; font-weight: 500;
}

.how { border-top: 1px solid var(--border); padding: 48px var(--pad-x); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; max-width: 1180px; margin: 0 auto; }
.step { display: flex; flex-direction: column; gap: 8px; }
.step-num { font-size: 14px; font-weight: 800; color: var(--accent); }
.step h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.step p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px var(--pad-x); border-top: 1px solid var(--border); font-size: 13px; color: var(--subtle);
}
.footer strong { color: var(--text); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--subtle); }
.footer-links a:hover { color: var(--text); }

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

/* Simple text pages (terms, rules) */
.doc { max-width: 720px; margin: 0 auto; padding: 32px var(--pad-x) 80px; line-height: 1.6; color: #D4D4D4; }
.doc h1 { color: var(--text); font-size: 40px; letter-spacing: -0.03em; }
.doc h2 { color: var(--text); font-size: 20px; margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line.flash { animation: none; }
}

/* Share button (shown to the buyer of the current line) */
.share-row { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.share-btn {
  width: 52px; height: 52px; padding: 0; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 16px Inter, system-ui, sans-serif; letter-spacing: -0.01em;
  background: transparent; color: var(--accent); border: 2px solid var(--accent);
  transition: background 0.15s ease, color 0.15s ease;
}
.share-btn:hover { background: var(--accent); color: var(--bg); }
.share-btn:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.share-note { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.share-note:empty { display: none; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
a.btn { gap: 8px; line-height: 1; }
a.btn-primary:hover { color: var(--bg); }
.permalink-meta { margin-top: 0; }
