:root {
  --pit: #121010;
  --crust: #1c1614;
  --arc: #9ad4ff;
  --glow: #e25a18;
  --si: #c8c4bc;
  --paper: #ece6dc;
  --ink: #ece6dc;
  --mute: #9a8e82;
  --display: "Kanit", "Noto Sans SC", sans-serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 70px; }
body { margin: 0; background: var(--pit); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.app-link { color: var(--glow); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
.ash {
  pointer-events: none; position: fixed; inset: 0; z-index: 6; opacity: 0.14;
  background-image: url("images/texture.webp"); background-size: 360px auto; mix-blend-mode: overlay;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 80; background: var(--glow); color: #111; padding: 8px; }
.arc-bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 24px; background: rgba(18,16,16,0.94);
  border-bottom: 3px solid var(--glow);
}
.brand { font-family: var(--display); font-weight: 700; letter-spacing: 0.04em; }
.brand small { display: block; font-family: var(--mono); font-size: 10px; color: var(--mute); letter-spacing: 0.14em; font-weight: 400; }
.nav-toggle { display: none; background: var(--glow); border: 0; color: #111; padding: 6px 12px; font-weight: 700; }
.pole-links { display: flex; gap: 14px; font-size: 14px; flex-wrap: wrap; }
.pole-links a { color: var(--mute); }
.pole-links a.is-active, .pole-links a:hover { color: var(--arc); }
.pole-links .live { background: var(--glow); color: #111; padding: 6px 12px; font-weight: 700; }
.hero { display: grid; grid-template-columns: 1.2fr 0.9fr; min-height: 86vh; }
.hero figure { margin: 0; }
.hero img { width: 100%; height: 100%; object-fit: cover; min-height: 440px; }
.copy { padding: 40px 32px; align-self: center; }
.kicker { font-family: var(--mono); letter-spacing: 0.16em; font-size: 11px; color: var(--arc); margin: 0 0 10px; }
h1, h2, h3 { font-family: var(--display); margin: 0 0 12px; line-height: 1.05; font-weight: 700; }
h1 { font-size: clamp(36px, 5.6vw, 68px); }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
.lead { color: var(--mute); }
.pot { margin: 20px 0; padding: 16px 18px; background: var(--crust); border-left: 8px solid var(--glow); }
.n { font-family: var(--display); font-size: 48px; margin: 0 0 6px; line-height: 1; }
.n span { font-size: 16px; color: var(--mute); }
.pot button { margin-top: 8px; background: var(--glow); color: #111; border: 0; padding: 8px 14px; font-weight: 700; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid currentColor; font-size: 14px; }
.btn.fill { background: var(--glow); color: #111; border-color: var(--glow); font-weight: 700; }
.btn.line { color: var(--ink); }
.w { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 76px 0; }
#need, #tap, #rules { background: var(--paper); color: #1a1410; }
#need .kicker, #tap .kicker, #rules .kicker { color: #8a3a18; }
#need .app-link, #tap .app-link, #rules .app-link { color: #8a3a18; }
.crust { background: var(--crust); }
.tri { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 20px; }
.tri article { background: rgba(255,255,255,0.04); padding: 16px; }
#need .tri article { background: #fff; }
.tri ul, .io ul, #rules ol { margin: 0; padding-left: 1.1em; }
.steps { padding-left: 1.2em; max-width: 50em; }
.steps li { margin-bottom: 10px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.pair figure { margin: 0; }
.pair img { width: 100%; height: 240px; object-fit: cover; }
.pair figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; }
#rules ol { background: #fff; padding: 16px 16px 16px 36px; border-left: 8px solid var(--glow); max-width: 46em; }
.io { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.io > div { background: #141210; padding: 16px; }
.url { margin-top: 18px; font-family: var(--mono); font-size: 13px; }
footer { padding: 20px 24px 40px; color: var(--mute); font-size: 13px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .arc-bar { flex-wrap: wrap; }
  .pole-links { display: none; width: 100%; flex-direction: column; background: #141210; padding: 12px; }
  .pole-links.open { display: flex; }
  .hero, .tri, .pair, .io { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
}
