:root {
  --cold: #1a3040;
  --cold-2: #243c4e;
  --scale: #6a4a32;
  --blue: #3a6a8a;
  --mold: #5a6a32;
  --paper: #efe6d8;
  --ink: #e8e4dc;
  --mute: #9ab0bc;
  --display: "Cardo", "Noto Serif SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cold);
  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: #c4a070; text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
label { display: block; font-size: 13px; color: var(--mute); }
input[type="range"] { width: min(280px, 100%); accent-color: #c4a070; }
.tunic {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 6;
  opacity: 0.1;
  background-image: url("images/texture.webp");
  background-size: 360px auto;
  mix-blend-mode: multiply;
}
.staff {
  position: sticky;
  top: 0;
  z-index: 45;
  height: 28px;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 4px,
      rgba(196, 160, 112, 0.55) 4px 5px
    );
  background-size: 100% 6px;
  border-bottom: 1px solid rgba(196, 160, 112, 0.3);
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 36px; z-index: 80; background: #c4a070; color: #1a3040; padding: 8px; }
.bar {
  position: sticky;
  top: 28px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 22px;
  background: rgba(26, 48, 64, 0.94);
  border-bottom: 1px solid rgba(196, 160, 112, 0.35);
}
.brand { font-family: var(--display); font-weight: 700; }
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mute);
  font-weight: 400;
}
.nav-toggle {
  display: none;
  background: #c4a070;
  color: #1a3040;
  border: 0;
  padding: 6px 12px;
}
.nav-links { display: flex; gap: 14px; font-size: 14px; flex-wrap: wrap; }
.nav-links a { color: var(--mute); }
.nav-links a.is-active, .nav-links a:hover { color: #c4a070; }
.nav-links .live { background: var(--blue); color: #fff; padding: 6px 12px; }
.hero { position: relative; min-height: calc(100vh - 84px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 48, 64, 0.2) 12%, rgba(26, 48, 64, 0.9) 76%);
}
.sheet { position: relative; z-index: 2; padding: 8vh 6vw 7vh; max-width: 740px; }
.kicker {
  font-family: var(--mono);
  letter-spacing: 0.16em;
  font-size: 11px;
  color: #c4a070;
  margin: 0 0 12px;
}
h1, h2, h3 { font-family: var(--display); margin: 0 0 12px; line-height: 1.12; }
h1 { font-size: clamp(34px, 5.6vw, 62px); }
h2 { font-size: clamp(24px, 3vw, 36px); }
.lead { max-width: 44em; color: #c5d0d6; }
.score {
  margin: 18px 0;
  padding: 14px 16px;
  background: rgba(26, 48, 64, 0.82);
  border-left: 8px solid var(--mold);
  max-width: 30em;
}
.score.is-ok { border-left-color: #c4a070; }
.n { font-family: var(--display); font-size: 48px; margin: 0 0 6px; color: #c4a070; }
.n span { font-size: 18px; color: var(--mute); }
.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.sleep { background: #c4a070; color: #1a3040; border-color: #c4a070; }
.btn.line { color: var(--ink); }
.w { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0; }
#need, #stage, #rules { background: var(--paper); color: #1a3040; }
#need .kicker, #stage .kicker, #rules .kicker { color: var(--scale); }
#need .app-link, #stage .app-link, #rules .app-link { color: var(--scale); }
.alt { background: var(--cold-2); }
.tri { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 20px; }
.tri article { background: #fff; color: #1a3040; padding: 16px; }
.alt .tri article { background: #1a3040; color: var(--ink); }
.tri ul, .io ul, #rules ol { margin: 0; padding-left: 1.1em; }
.steps { padding-left: 1.2em; max-width: 48em; }
.steps li { margin-bottom: 10px; }
.solo { margin: 24px 0 0; max-width: 640px; }
.solo img { width: 100%; height: 320px; object-fit: cover; }
.solo figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; }
#rules ol {
  background: #fff;
  padding: 16px 16px 16px 36px;
  border-left: 8px solid var(--scale);
  max-width: 46em;
}
.io { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.io > div { background: #1a3040; 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) {
  .tri, .io { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .bar { flex-wrap: wrap; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #243c4e;
    padding: 12px;
  }
  .nav-links.open { display: flex; }
  .sheet { padding: 24px 18px 36px; }
  h1 { font-size: 34px; }
}
