/* ==========================================================================
   Range Field Co. — LocalBench design language
   Framework-free. Tokens first. Light + dark. Game and dialogs included.
   ========================================================================== */

@font-face {
  font-family: "Inter Variable";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --fg: #09090b;
  --card: #ffffff;
  --muted: #f4f4f5;
  --muted-2: #fafafa;
  --muted-fg: #71717a;
  --muted-fg-2: #a1a1aa;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --accent: #4f46e5;
  --accent-fg: #ffffff;
  --accent-soft: #eef2ff;
  --ring: #4f46e5;
  --shadow-soft: 0 1px 2px rgb(0 0 0 / 0.04), 0 1px 3px rgb(0 0 0 / 0.03);
  --shadow-lift: 0 22px 55px -24px rgb(15 15 20 / 0.2), 0 2px 8px -2px rgb(15 15 20 / 0.06);
  --logo-shadow: #ffffff;

  --art-sky-1: #eef2ff;
  --art-sky-2: #ffffff;
  --art-ridge-1: #d4d4d8;
  --art-ridge-2: #71717a;
  --art-tree: #18181b;
  --art-snow: #fafafa;
  --art-ground: #e4e4e7;
  --art-ground-line: #d4d4d8;
  --art-line: #52525b;
  --art-skin: #d4d4d8;
  --art-shadow: #09090b;

  --font-sans: "Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono",
    Menlo, Consolas, monospace;

  --shell: 1100px;
  --gutter: clamp(20px, 4vw, 32px);
  --header-h: 64px;
  --radius: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: light;
}

.dark {
  --bg: #09090b;
  --fg: #fafafa;
  --card: #0c0c0e;
  --muted: #18181b;
  --muted-2: #111113;
  --muted-fg: #a1a1aa;
  --muted-fg-2: #71717a;
  --border: #27272a;
  --border-strong: #3f3f46;
  --accent: #818cf8;
  --accent-fg: #09090b;
  --accent-soft: #1e1b4b;
  --ring: #818cf8;
  --shadow-soft: 0 1px 2px rgb(0 0 0 / 0.3), 0 1px 3px rgb(0 0 0 / 0.2);
  --shadow-lift: 0 22px 55px -24px rgb(0 0 0 / 0.7), 0 2px 8px -2px rgb(0 0 0 / 0.4);
  --logo-shadow: #09090b;

  --art-sky-1: #18181b;
  --art-sky-2: #09090b;
  --art-ridge-1: #27272a;
  --art-ridge-2: #52525b;
  --art-tree: #e4e4e7;
  --art-snow: #fafafa;
  --art-ground: #3f3f46;
  --art-ground-line: #52525b;
  --art-line: #a1a1aa;
  --art-skin: #d4d4d8;
  --art-shadow: #000000;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body.is-locked {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--accent-fg);
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - (var(--gutter) * 2)), var(--shell));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  transform: translateY(calc(-100% - 24px));
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.18s var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Type and shared components
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted-fg);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow__mark {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.eyebrow__sep {
  color: var(--muted-fg-2);
}

.eyebrow--light {
  color: rgb(255 255 255 / 0.55);
}

.eyebrow--light .eyebrow__mark {
  background: #818cf8;
  box-shadow: 0 0 0 3px rgb(129 140 248 / 0.12);
}

.display-2 {
  color: var(--fg);
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  font-weight: 680;
  letter-spacing: -0.048em;
  line-height: 1.04;
}

.display-2 em,
.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.display-2--light {
  color: #fafafa;
}

.accent {
  color: var(--accent);
}

.accent-gold {
  color: #818cf8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--fg);
  color: var(--bg);
  font-size: 13px;
  font-weight: 620;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.18s var(--ease-out),
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--fg) 88%, var(--bg));
}

.btn:active {
  transform: translateY(0);
}

.btn--outline {
  border-color: var(--border);
  background: transparent;
  color: var(--fg);
}

.btn--outline:hover {
  border-color: var(--border-strong);
  background: var(--muted);
}

.btn--paper {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-fg);
}

.btn--paper:hover {
  background: color-mix(in srgb, var(--accent) 88%, #000000);
}

.btn__icon {
  width: 17px;
  height: 17px;
  flex: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.4;
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s var(--ease-out);
}

.text-link:hover svg {
  transform: translateX(3px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.62fr);
  align-items: end;
  gap: 32px;
  margin-bottom: 36px;
}

.section-head .display-2 {
  margin-top: 14px;
}

.section-head__intro {
  max-width: 430px;
  color: var(--muted-fg);
  font-size: 13.5px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px -24px rgb(0 0 0 / 0.45);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  border-radius: 7px;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--fg);
  transition: transform 0.25s var(--ease-out);
}

.brand:hover .brand__mark {
  transform: rotate(-4deg);
}

.brand__sun {
  fill: var(--accent);
}

.brand__mountain {
  fill: var(--bg);
}

.brand__type {
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.brand__name {
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -0.03em;
}

.brand__sub {
  color: var(--muted-fg);
  font-size: 11px;
  font-weight: 520;
  letter-spacing: 0.01em;
}

.concept-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-fg);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    border-color 0.18s ease,
    color 0.18s ease;
}

.concept-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: auto;
}

.nav a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 11px;
  border-radius: 7px;
  color: var(--muted-fg);
  font-size: 12.5px;
  font-weight: 520;
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
}

.nav a:hover {
  background: var(--muted);
  color: var(--fg);
}

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

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font-size: 11.5px;
  font-weight: 620;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.header__cta svg {
  width: 14px;
  height: 14px;
  color: var(--muted-fg);
}

.header__cta:hover {
  border-color: var(--border-strong);
  background: var(--muted);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted-fg);
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.theme-toggle:hover {
  background: var(--muted);
  color: var(--fg);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.theme-toggle__sun {
  display: none;
}

.dark .theme-toggle__sun {
  display: block;
}

.dark .theme-toggle__moon {
  display: none;
}

.mobile-nav {
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 7px var(--gutter) 8px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 7px 2px;
  border-radius: 6px;
  color: var(--muted-fg);
  font-size: 10.5px;
  font-weight: 560;
  white-space: nowrap;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  background: var(--muted);
  color: var(--fg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto 35%;
  height: 70%;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 55% 30%,
    color-mix(in srgb, var(--accent) 9%, transparent),
    transparent 65%
  );
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(
    color-mix(in srgb, var(--fg) 13%, transparent) 0.7px,
    transparent 0.7px
  );
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(2.5rem, 5.5vw, 5rem);
  padding-block: clamp(3.8rem, 7vw, 6.2rem) clamp(5.2rem, 8vw, 7.2rem);
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(2.9rem, 6.7vw, 4.8rem);
  font-weight: 690;
  letter-spacing: -0.068em;
  line-height: 0.95;
}

.hero__lede {
  max-width: 470px;
  margin-top: 24px;
  color: var(--muted-fg);
  font-size: 16px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  color: var(--muted-fg);
  font-size: 11px;
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__trust li::before {
  content: "✓";
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
}

.hero__visual {
  position: relative;
  min-width: 0;
}

.hero-window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-lift);
}

.hero-window__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 13px;
  border-bottom: 1px solid var(--border);
  background: var(--muted-2);
  color: var(--muted-fg);
}

.window-dots {
  display: inline-flex;
  gap: 4px;
}

.window-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
}

.window-dots i:last-child {
  background: var(--accent);
}

.hero-window__path {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-window__tag {
  margin-left: auto;
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  color: var(--muted-fg);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-art-wrap {
  aspect-ratio: 640 / 500;
  overflow: hidden;
  background: var(--art-sky-1);
}

.hero-art {
  width: 100%;
  height: 100%;
}

.hero-window__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 13px;
  border-top: 1px solid var(--border);
  color: var(--muted-fg);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.utils-float {
  position: absolute;
  right: -12px;
  bottom: -30px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(305px, calc(100% - 20px));
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--card);
  box-shadow: var(--shadow-lift);
  transition:
    transform 0.2s var(--ease-out),
    border-color 0.2s ease;
}

.utils-float:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.lb-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 29px;
  height: 29px;
  padding: 6px;
  flex: none;
  border-radius: 8px;
  background: var(--fg);
}

.lb-mark i {
  border-radius: 1px;
  background: var(--bg);
}

.lb-mark i:nth-child(2) {
  background: var(--accent);
}

.lb-mark i:nth-child(3) {
  opacity: 0.42;
}

.utils-float__copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.utils-float__copy > span {
  color: var(--muted-fg);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.utils-float__copy strong {
  overflow: hidden;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.utils-float > svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--muted-fg);
}

.principle-strip {
  position: relative;
  border-top: 1px solid var(--border);
  background: var(--muted-2);
}

.principle-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  min-height: 44px;
  color: var(--muted-fg);
  font-size: 9px;
  font-weight: 620;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.principle-strip i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Guides
   -------------------------------------------------------------------------- */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.guide-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.22s var(--ease-out),
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lift);
}

.guide-card__art {
  aspect-ratio: 600 / 340;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.guide-card__art svg {
  width: 100%;
  height: 100%;
  transition: transform 0.5s var(--ease-out);
}

.guide-card:hover .guide-card__art svg {
  transform: scale(1.025);
}

.guide-card__art--everyday {
  background: var(--card);
}

.guide-card__body {
  padding: 19px;
}

.guide-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted-fg);
  font-size: 9px;
  font-weight: 580;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-card h3 {
  font-size: 18px;
  font-weight: 660;
  letter-spacing: -0.025em;
}

.guide-card p {
  margin-top: 8px;
  color: var(--muted-fg);
  font-size: 12.5px;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.tag-row span {
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-fg);
  font-size: 9px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Manifesto / map
   -------------------------------------------------------------------------- */

.manifesto {
  border-block: 1px solid var(--border);
  background: var(--muted-2);
}

.manifesto__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.map-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-lift);
  transform: rotate(-1.1deg);
}

.map-card__bar,
.map-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  color: var(--muted-fg);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-card__bar {
  border-bottom: 1px solid var(--border);
  background: var(--muted-2);
}

.map-card__foot {
  border-top: 1px solid var(--border);
}

.map-card__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 40%, var(--accent-soft), transparent 47%),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-color: var(--card);
  background-size: auto, 40px 40px, 40px 40px;
}

.map-card__contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.map-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  color: var(--muted-fg);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.map-chip--one {
  top: 21%;
  left: 10%;
}

.map-chip--two {
  right: 11%;
  bottom: 18%;
}

.manifesto__copy .display-2 {
  margin-top: 15px;
}

.manifesto__body {
  max-width: 545px;
  margin-top: 21px;
  color: var(--muted-fg);
  font-size: 14px;
  line-height: 1.8;
}

.manifesto__body p + p {
  margin-top: 13px;
}

.manifesto__copy .text-link {
  margin-top: 21px;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin-top: 30px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}

.spec-list > div {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid var(--border);
}

.spec-list > div:last-child {
  border-right: 0;
}

.spec-list dt {
  color: var(--muted-fg);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spec-list dd {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 540;
}

/* --------------------------------------------------------------------------
   Developer tools
   -------------------------------------------------------------------------- */

.devtools-section {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.devtools-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--card);
  box-shadow: var(--shadow-lift);
}

.devtools-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.6rem, 4vw, 2.9rem);
}

.devtools-copy .display-2 {
  margin-top: 14px;
}

.devtools-lede {
  max-width: 485px;
  margin-top: 17px;
  color: var(--muted-fg);
  font-size: 13.5px;
  line-height: 1.78;
}

.devtools-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.devtools-note {
  color: var(--muted-fg);
  font-size: 9.5px;
}

.devtools-preview {
  display: block;
  min-width: 0;
  padding: 18px;
  border-left: 1px solid var(--border);
  background: var(--muted-2);
  transition: background-color 0.2s ease;
}

.devtools-preview:hover {
  background: var(--muted);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border);
}

.lb-mark--small {
  width: 23px;
  height: 23px;
  padding: 5px;
  border-radius: 6px;
}

.lb-mark--small i {
  border-radius: 0.5px;
}

.preview-name {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.preview-domain {
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  color: var(--muted-fg);
  font-family: var(--font-mono);
  font-size: 7.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-kicker {
  margin-top: 16px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.preview-list {
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--card);
}

.preview-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 10.5px;
}

.preview-row:last-child {
  border-bottom: 0;
}

.preview-row em {
  margin-left: auto;
  color: var(--muted-fg);
  font-family: var(--font-mono);
  font-size: 8px;
  font-style: normal;
}

.preview-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted-fg);
}

.preview-icon svg {
  width: 13px;
  height: 13px;
}

.preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted-fg);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.preview-arrow {
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.preview-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 10px;
  background: var(--card);
}

.preview-metrics strong {
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 550;
}

.preview-metrics span {
  color: var(--muted-fg);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Arcade
   -------------------------------------------------------------------------- */

.arcade-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 8vw, 7rem);
  border-block: 1px solid rgb(255 255 255 / 0.09);
  background: #09090b;
  color: #fafafa;
}

.arcade-section__glow,
.arcade-section__lines {
  display: none;
}

.arcade-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.66fr);
  align-items: end;
  gap: 32px;
  margin-bottom: 28px;
}

.arcade-head .display-2 {
  margin-top: 14px;
  color: #fafafa;
}

.arcade-head__aside p {
  max-width: 380px;
  color: rgb(255 255 255 / 0.63);
  font-size: 13px;
  line-height: 1.7;
}

.arcade-head__note {
  display: inline-block;
  margin-top: 13px;
  color: rgb(255 255 255 / 0.56);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.arcade {
  position: relative;
  overflow: hidden;
  max-width: 980px;
  margin-inline: auto;
  border: 1px solid rgb(255 255 255 / 0.13);
  border-radius: 16px;
  background: #111113;
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.8);
}

.arcade::before {
  content: none;
}

.arcade__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  min-height: 48px;
  padding: 7px 12px;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  background: #141416;
}

.arcade__brand {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: rgb(255 255 255 / 0.65);
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arcade__brand-no {
  color: rgb(255 255 255 / 0.56);
}

.arcade__light {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 0 3px rgb(129 140 248 / 0.13);
}

.game-modes {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgb(255 255 255 / 0.09);
  border-radius: 7px;
  background: rgb(255 255 255 / 0.04);
}

.game-modes__btn {
  min-width: 54px;
  height: 26px;
  padding: 0 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgb(255 255 255 / 0.48);
  font-size: 10px;
  font-weight: 600;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.game-modes__btn:hover {
  color: #ffffff;
}

.game-modes__btn.is-active {
  background: #fafafa;
  color: #09090b;
}

.arcade__tools {
  display: flex;
  align-items: center;
  gap: 5px;
}

.arcade__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 6px;
  background: transparent;
  color: rgb(255 255 255 / 0.55);
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.arcade__tool:hover:not(:disabled) {
  background: rgb(255 255 255 / 0.08);
  color: #ffffff;
}

.arcade__tool:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.arcade__tool svg {
  width: 16px;
  height: 16px;
}

.icon-sound-off,
.icon-play {
  display: none;
}

.arcade__tool[aria-pressed="false"] .icon-sound-on {
  display: none;
}

.arcade__tool[aria-pressed="false"] .icon-sound-off {
  display: block;
}

[data-phase="paused"] .icon-pause {
  display: none;
}

[data-phase="paused"] .icon-play {
  display: block;
}

.arcade__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f4f4f5;
  isolation: isolate;
}

.arcade__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgb(0 0 0 / 0.06);
}

.arcade__screen:has(.game-canvas:focus-visible)::after {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.game-canvas {
  width: 100%;
  height: 100%;
  touch-action: manipulation;
  cursor: crosshair;
  outline: none;
}

.game-hud {
  position: absolute;
  inset: 14px 14px auto;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

[data-phase="idle"] .game-hud,
[data-phase="over"] .game-hud {
  opacity: 0;
}

.game-hud__group {
  display: flex;
  gap: 6px;
}

.game-hud__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgb(9 9 11 / 0.08);
  border-radius: 7px;
  background: rgb(255 255 255 / 0.88);
  color: #09090b;
  box-shadow: 0 3px 10px rgb(9 9 11 / 0.1);
  backdrop-filter: blur(8px);
}

.game-hud__label {
  color: #71717a;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-hud strong {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.game-hud__pill--coin svg {
  width: 14px;
  height: 14px;
}

.game-hud__pill--coin svg circle:first-child {
  fill: var(--accent);
}

.game-hud__pill--coin svg circle:nth-child(2) {
  fill: none;
  stroke: #ffffff;
  opacity: 0.7;
}

.game-hud__pill--coin svg path {
  fill: #ffffff;
}

.game-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgb(9 9 11 / 0.48);
  backdrop-filter: blur(2px);
}

.game-overlay__inner {
  width: min(340px, 100%);
  max-height: calc(100% - 12px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgb(9 9 11 / 0.08);
  border-radius: 13px;
  background: #ffffff;
  color: #09090b;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.3);
  text-align: center;
}

.game-kicker {
  color: #4f46e5;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-overlay h3 {
  margin-top: 8px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.game-copy {
  max-width: 260px;
  margin: 9px auto 0;
  color: #71717a;
  font-size: 11px;
  line-height: 1.6;
}

.game-overlay .btn {
  margin-top: 18px;
}

.game-hint {
  margin-top: 13px;
  color: #71717a;
  font-size: 9px;
}

.game-hint span {
  margin: 0 4px;
}

.game-hint kbd,
.arcade__controls kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid #e4e4e7;
  border-radius: 4px;
  background: #fafafa;
  color: #52525b;
  font-family: var(--font-mono);
  font-size: 8px;
  box-shadow: 0 1px 0 #d4d4d8;
}

.game-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #fafafa;
}

.game-result > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 5px;
  border-right: 1px solid #e4e4e7;
}

.game-result > div:last-child {
  border-right: 0;
}

.game-result span {
  color: #71717a;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-result strong {
  font-family: var(--font-mono);
  font-size: 11px;
}

.game-new-best {
  margin-top: 10px;
  color: #4f46e5;
  font-size: 10px;
  font-weight: 650;
}

.arcade__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 10px 13px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.62);
  font-size: 9px;
}

.arcade__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.arcade__controls span {
  color: rgb(255 255 255 / 0.22);
}

.arcade__controls kbd {
  border-color: rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.06);
  color: rgb(255 255 255 / 0.62);
  box-shadow: none;
}

.arcade__best {
  color: rgb(255 255 255 / 0.62);
}

.arcade__best strong {
  color: rgb(255 255 255 / 0.8);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* --------------------------------------------------------------------------
   Journal
   -------------------------------------------------------------------------- */

.journal {
  background: var(--bg);
}

.notes-list {
  border-top: 1px solid var(--border);
}

.note-row {
  display: grid;
  grid-template-columns: 40px 132px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 104px;
  padding: 20px 3px;
  border-bottom: 1px solid var(--border);
  transition:
    background-color 0.18s ease,
    padding 0.18s var(--ease-out);
}

.note-row:hover {
  padding-inline: 13px;
  background: var(--muted-2);
}

.note-row__num {
  color: var(--muted-fg);
  font-family: var(--font-mono);
  font-size: 10px;
}

.note-row__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted-fg);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.note-row__main {
  min-width: 0;
}

.note-row__title {
  font-size: 18px;
  font-weight: 640;
  letter-spacing: -0.025em;
  transition: color 0.18s ease;
}

.note-row:hover .note-row__title {
  color: var(--accent);
}

.note-row__excerpt {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted-fg);
  font-size: 12px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-row__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-fg);
  font-size: 10px;
  font-weight: 590;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.note-row__action svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease-out);
}

.note-row:hover .note-row__action {
  color: var(--accent);
}

.note-row:hover .note-row__action svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */

.join {
  border-top: 1px solid var(--border);
  background: var(--muted-2);
}

.join__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.join__copy {
  padding: clamp(1.7rem, 4.5vw, 3.2rem);
  border-right: 1px solid var(--border);
  background:
    radial-gradient(circle at 18% 8%, var(--accent-soft), transparent 45%),
    var(--card);
}

.join__copy .display-2 {
  margin-top: 14px;
}

.join__lede {
  max-width: 430px;
  margin-top: 16px;
  color: var(--muted-fg);
  font-size: 13px;
  line-height: 1.75;
}

.join__copy .text-link {
  margin-top: 18px;
}

.join__form-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(1.7rem, 4.5vw, 3.2rem);
}

.signup__label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 620;
}

.signup__field {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.signup__field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.signup__field input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12.5px;
}

.signup__field input::placeholder {
  color: var(--muted-fg-2);
}

.signup__field input[aria-invalid="true"] {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.signup__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: none;
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-left: 1px solid var(--border);
  background: var(--fg);
  color: var(--bg);
  font-size: 11px;
  font-weight: 620;
  transition: background-color 0.18s ease;
}

.signup__submit:hover {
  background: var(--accent);
  color: var(--accent-fg);
}

.signup__submit svg {
  width: 15px;
  height: 15px;
}

.signup__note {
  margin-top: 7px;
  color: var(--muted-fg);
  font-size: 9.5px;
  line-height: 1.6;
}

.signup__status {
  min-height: 16px;
  margin-top: 7px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 560;
}

.signup__status.is-error {
  color: var(--fg);
}

.join__aside {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted-fg);
  font-size: 10px;
}

.join__aside a {
  color: var(--muted-fg);
  transition: color 0.18s ease;
}

.join__aside a strong {
  color: var(--accent);
  font-weight: 650;
}

.join__aside a:hover {
  color: var(--fg);
}

.join__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.join__status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.join__list {
  padding: 13px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.join__list p {
  margin-bottom: 7px;
  color: var(--muted-fg);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.join__list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.join__list li {
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-fg);
  font-size: 9px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(2.8rem, 5.5vw, 4.5rem) 1.6rem;
  border-top: 1px solid var(--border);
  background: var(--muted-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(120px, 0.68fr) minmax(140px, 0.8fr) minmax(160px, 0.82fr);
  gap: 36px;
  padding-bottom: 36px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand > p {
  max-width: 340px;
  color: var(--muted-fg);
  font-size: 12px;
  line-height: 1.7;
}

.footer-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--fg) !important;
  font-size: 10px !important;
}

.footer-privacy span {
  width: 5px;
  height: 5px;
  flex: none;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav p,
.footer-place p {
  margin-bottom: 3px;
  color: var(--muted-fg);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-nav a,
.footer-place span {
  color: var(--muted-fg);
  font-size: 11px;
  line-height: 1.5;
  transition: color 0.18s ease;
}

.footer-nav a:hover {
  color: var(--fg);
}

.footer-place {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-place__open {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--accent) !important;
}

.status-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 17px;
  border-top: 1px solid var(--border);
  color: var(--muted-fg);
  font-size: 9.5px;
}

.footer-base a {
  color: var(--muted-fg);
  transition: color 0.18s ease;
}

.footer-base a:hover {
  color: var(--fg);
}

/* --------------------------------------------------------------------------
   Field note dialogs
   -------------------------------------------------------------------------- */

.note-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: min(86vh, 860px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--card);
  color: var(--fg);
  box-shadow: 0 30px 100px rgb(0 0 0 / 0.35);
}

.note-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: dialog-in 0.24s var(--ease-out) both;
}

.note-dialog::backdrop {
  background: rgb(9 9 11 / 0.55);
  backdrop-filter: blur(4px);
}

.note-dialog__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--muted-2);
  color: var(--muted-fg);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.note-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  flex: none;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  color: var(--muted-fg);
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
}

.note-dialog__close:hover {
  background: var(--fg);
  color: var(--bg);
}

.note-dialog__close svg {
  width: 15px;
  height: 15px;
}

.note-dialog__body {
  overflow-y: auto;
  padding: 25px 28px 31px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted-fg);
}

.note-dialog__body .eyebrow {
  margin-bottom: 12px;
}

.note-dialog__body h2 {
  color: var(--fg);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.note-dialog__lede {
  margin-top: 11px;
  color: var(--fg);
  font-size: 15.5px;
  line-height: 1.6;
}

.note-dialog__body > p + p {
  margin-top: 13px;
}

.note-dialog__body blockquote {
  margin: 21px 0;
  padding: 3px 0 3px 16px;
  border-left: 2px solid var(--accent);
  color: var(--fg);
  font-size: 17px;
  font-weight: 530;
  letter-spacing: -0.02em;
  line-height: 1.55;
}

.note-dialog__body strong {
  color: var(--fg);
  font-weight: 650;
}

.note-dialog__signoff {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--fg);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.6;
}

.note-dialog__signoff span {
  color: var(--muted-fg);
  font-weight: 400;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.js-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript-note {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 300;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--card);
  color: var(--muted-fg);
  font-size: 12px;
  box-shadow: var(--shadow-lift);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1020px) {
  .header__cta {
    display: none;
  }

  .header__inner {
    gap: 12px;
  }

  .hero__grid {
    gap: 2.5rem;
  }

  .note-row {
    grid-template-columns: 36px 116px minmax(0, 1fr) auto;
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .mobile-nav {
    display: grid;
  }

  .header__inner {
    justify-content: flex-start;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-block: 3.3rem 5.8rem;
  }

  .hero__copy {
    max-width: 670px;
  }

  .hero__visual {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .utils-float {
    right: 12px;
    bottom: -27px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-inline: auto;
  }

  .guide-card__art {
    aspect-ratio: 600 / 300;
  }

  .manifesto__grid,
  .devtools-panel,
  .join__panel {
    grid-template-columns: 1fr;
  }

  .map-card {
    max-width: 570px;
    margin-inline: auto;
    transform: none;
  }

  .join__copy {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .devtools-preview {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .section-head,
  .arcade-head {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .section-head__intro,
  .arcade-head__aside p {
    max-width: 600px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
  }

  .footer-place {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }

  .footer-place p {
    flex-basis: 100%;
    margin-bottom: 0;
  }

  .footer-place__open {
    margin-top: 0;
  }

  .note-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .note-row__meta {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .note-row__main {
    grid-column: 2 / 4;
    grid-row: 2;
  }

  .note-row__action {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 620px) {
  :root {
    --header-h: 60px;
  }

  .site-header .brand__sub {
    display: none;
  }

  .concept-tag {
    display: none;
  }

  .header__inner {
    gap: 10px;
    height: var(--header-h);
  }

  .brand__mark {
    width: 31px;
    height: 31px;
  }

  .brand__name {
    font-size: 14px;
  }

  .mobile-nav {
    padding-inline: 12px;
  }

  .mobile-nav a {
    font-size: 9.5px;
  }

  .hero__grid {
    padding-top: 2.7rem;
    padding-bottom: 5.2rem;
  }

  .hero__title {
    font-size: clamp(2.65rem, 12vw, 3.7rem);
    letter-spacing: -0.075em;
  }

  .hero__lede {
    font-size: 14.5px;
    line-height: 1.75;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__trust {
    gap: 7px 15px;
    font-size: 10px;
  }

  .hero-window__bar {
    padding-inline: 10px;
  }

  .hero-window__tag {
    display: none;
  }

  .hero-window__foot {
    gap: 8px;
    padding-inline: 10px;
    font-size: 7px;
  }

  .utils-float {
    right: 8px;
    bottom: -25px;
    width: calc(100% - 16px);
  }

  .principle-strip__inner {
    justify-content: flex-start;
    gap: 8px 13px;
    min-height: 0;
    padding-block: 13px;
    font-size: 8px;
  }

  .principle-strip i {
    display: none;
  }

  .section {
    padding-block: 4rem;
  }

  .section-head {
    margin-bottom: 26px;
  }

  .display-2 {
    font-size: clamp(1.9rem, 9vw, 2.55rem);
  }

  .guide-card__art {
    aspect-ratio: 600 / 330;
  }

  .guide-card__body {
    padding: 17px;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }

  .spec-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .spec-list > div:last-child {
    border-bottom: 0;
  }

  .spec-list dd {
    margin-top: 0;
  }

  .devtools-copy,
  .join__copy,
  .join__form-wrap {
    padding: 1.5rem;
  }

  .devtools-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .devtools-actions .btn {
    width: 100%;
  }

  .devtools-preview {
    padding: 14px;
  }

  .preview-domain {
    display: none;
  }

  .arcade-section {
    padding-block: 4rem;
  }

  .arcade__bar {
    flex-wrap: wrap;
    gap: 7px;
    justify-content: space-between;
    padding: 8px 10px;
  }

  .arcade__brand {
    width: calc(100% - 75px);
  }

  .game-modes {
    order: 3;
    width: 100%;
  }

  .game-modes__btn {
    flex: 1;
  }

  .arcade__tools {
    margin-left: auto;
  }

  .game-hud {
    inset: 8px 8px auto;
  }

  .game-hud__pill {
    min-height: 25px;
    padding: 3px 6px;
    gap: 5px;
  }

  .game-hud__label {
    font-size: 6.5px;
  }

  .game-hud strong {
    font-size: 9px;
  }

  .game-hud__pill--coin svg {
    width: 11px;
    height: 11px;
  }

  .game-overlay {
    padding: 10px;
  }

  .game-overlay__inner {
    padding: 17px;
  }

  .game-overlay h3 {
    font-size: 1.35rem;
  }

  .game-copy {
    font-size: 10px;
  }

  .game-hint {
    font-size: 8px;
  }

  .game-result {
    margin-top: 12px;
  }

  .game-result > div {
    padding: 7px 3px;
  }

  .game-result span {
    font-size: 6.5px;
  }

  .game-result strong {
    font-size: 9px;
  }

  .arcade__foot {
    justify-content: center;
    text-align: center;
    font-size: 8px;
  }

  .arcade__best {
    display: none;
  }

  .note-row {
    grid-template-columns: 29px minmax(0, 1fr) auto;
    gap: 10px;
    padding-block: 17px;
  }

  .note-row:hover {
    padding-inline: 3px;
    background: transparent;
  }

  .note-row__meta {
    grid-column: 2 / 4;
    font-size: 7.5px;
  }

  .note-row__main {
    grid-column: 2 / 4;
    grid-row: 3;
  }

  .note-row__action {
    grid-column: 3;
    grid-row: 1;
    font-size: 0;
  }

  .note-row__action svg {
    width: 17px;
    height: 17px;
  }

  .note-row__title {
    font-size: 16px;
  }

  .note-row__excerpt {
    font-size: 11px;
    white-space: normal;
  }

  .join__panel {
    border-radius: 13px;
  }

  .signup__field {
    flex-direction: column;
  }

  .signup__submit {
    min-height: 42px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-place {
    grid-column: 1 / -1;
  }

  .footer-base {
    justify-content: flex-start;
    font-size: 8.5px;
  }

  .note-dialog {
    width: calc(100vw - 20px);
    max-height: 88vh;
  }

  .note-dialog__body {
    padding: 21px 20px 25px;
    font-size: 12.5px;
  }

  .note-dialog__body blockquote {
    font-size: 15px;
  }

  .note-dialog__top {
    padding: 10px 14px;
  }
}

/* --------------------------------------------------------------------------
   Concept page
   -------------------------------------------------------------------------- */

.concept-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.2rem, 6vw, 5rem);
  border-bottom: 1px solid var(--border);
}

.concept-hero .hero__glow {
  height: 130%;
  inset: -55% -5% auto 38%;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 30px;
  color: var(--muted-fg);
  font-size: 11px;
  font-weight: 560;
  transition: color 0.18s ease;
}

.back-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s var(--ease-out);
}

.back-link:hover {
  color: var(--fg);
}

.back-link:hover svg {
  transform: translateX(-2px);
}

.concept-title {
  max-width: 780px;
  margin-top: 18px;
  font-size: clamp(2.65rem, 6.5vw, 4.6rem);
  font-weight: 690;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.concept-lede {
  max-width: 650px;
  margin-top: 22px;
  color: var(--muted-fg);
  font-size: 16px;
  line-height: 1.8;
}

.concept-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.concept-copy {
  max-width: 650px;
  color: var(--muted-fg);
  font-size: 13.5px;
  line-height: 1.82;
}

.concept-copy > p + p {
  margin-top: 13px;
}

.concept-copy h2 {
  margin-top: 32px;
  color: var(--fg);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.concept-copy h2 + p {
  margin-top: 7px;
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 3px;
}

.inline-link:hover {
  text-decoration-color: var(--accent);
}

.concept-copy__updated {
  margin-top: 30px;
  color: var(--muted-fg);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.concept-copy .text-link {
  margin-top: 21px;
}

.concept-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.concept-record {
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

.concept-record > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.concept-record dt {
  flex: none;
  color: var(--muted-fg);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.concept-record dd {
  color: var(--fg);
  font-size: 10.5px;
  text-align: right;
}

.concept-card__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--muted-2);
}

.concept-card__cta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.concept-card__cta > div > span {
  color: var(--muted-fg);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.concept-card__cta a {
  overflow: hidden;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.concept-card__note {
  margin-top: 16px;
  color: var(--muted-fg);
  font-size: 10px;
  font-style: italic;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .concept-grid {
    grid-template-columns: 1fr;
  }

  .concept-card {
    position: static;
    max-width: 540px;
  }
}

@media (max-width: 620px) {
  .concept-hero {
    padding-block: 2.5rem 3rem;
  }

  .back-link {
    margin-bottom: 23px;
  }

  .concept-title {
    font-size: clamp(2.4rem, 11.5vw, 3.25rem);
  }

  .concept-lede {
    font-size: 14px;
  }

  .concept-body {
    padding-block: 3rem;
  }

  .concept-card {
    padding: 18px;
  }
}

@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;
    scroll-behavior: auto !important;
  }

  .js-reveal {
    opacity: 1;
    transform: none;
  }
}
