:root {
  --bg: #05050b;
  --ink: #f6f3f8;
  --muted: #9aa0b5;
  --line: rgba(255, 255, 255, 0.1);
  --sakura: #ff2e63;
  --amber: #ffb347;
  --cyan: #25f4ee;
  --card: rgba(10, 10, 18, 0.72);
  --mx: 50%;
  --my: 20%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; width: 0; height: 0; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: "Space Grotesk", "IBM Plex Sans JP", "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
html[lang="ja"] body { font-family: "IBM Plex Sans JP", "Space Grotesk", sans-serif; }
h1, h2, h3, .brand span { font-family: Syne, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--sakura); color: white; }

.spot {
  position: fixed; inset: 0; pointer-events: none; z-index: 8;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 46, 99, 0.09), transparent 42%);
}

.ribbon {
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: 16px; align-items: center;
  padding: 8px 22px; font-size: 11px; letter-spacing: 0.16em;
  color: var(--muted);
  background: rgba(7, 7, 15, 0.9); backdrop-filter: blur(16px);
}
.ribbon b { color: var(--cyan); font-weight: 650; }
.ribbon .spacer { flex: 1; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); }
.live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--sakura);
  box-shadow: 0 0 10px var(--sakura); animation: blink 1.4s infinite;
}
.lang {
  background: transparent; border: 1px solid var(--line); color: var(--amber);
  border-radius: 999px; padding: 5px 12px; cursor: pointer;
}
.lang:hover { border-color: var(--amber); }

.nav {
  position: sticky; top: 33px; z-index: 19;
  display: flex; align-items: center; gap: 22px;
  padding: 12px 22px; border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 11, 0.78); backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.03em; }
.brand img { border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.brand small { color: var(--sakura); font-weight: 700; margin-left: 6px; letter-spacing: 0.08em; }
.nav nav { display: flex; gap: 14px; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav nav a { position: relative; }
.nav nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--cyan); transition: width 0.25s ease;
}
.nav nav a:hover { color: var(--ink); }
.nav nav a:hover::after { width: 100%; }
.xbtn {
  margin-left: auto; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 13px; letter-spacing: 0.08em;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
}
.xbtn:hover { border-color: var(--cyan); color: var(--cyan); }

.hero { position: relative; min-height: 820px; overflow: hidden; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,5,11,0.92) 0%, rgba(5,5,11,0.55) 34%, rgba(5,5,11,0.05) 62%),
    linear-gradient(180deg, rgba(5,5,11,0.2), transparent 20%, rgba(5,5,11,0.55));
}
.vjp {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; letter-spacing: 0.45em; color: rgba(255,179,71,0.55);
  font-size: 13px; z-index: 3; pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  min-height: 820px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 72px 7vw 40px; max-width: 1440px;
}
.eyebrow {
  letter-spacing: 0.28em; color: var(--amber); font-size: 12px; margin: 0 0 16px;
}
.hero-copy { max-width: 520px; }
h1 {
  font-size: clamp(52px, 5.6vw, 78px); line-height: 0.9; margin: 0 0 18px;
  letter-spacing: -0.05em; font-weight: 800; min-height: 1.9em;
  background: linear-gradient(120deg, #fff 10%, #fff 55%, #ff8eab 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede, .proofs li {
  font-family: "IBM Plex Mono", "IBM Plex Sans JP", ui-monospace, monospace;
  font-weight: 400;
}
html[lang="ja"] .lede, html[lang="ja"] .proofs li {
  font-family: "IBM Plex Sans JP", "IBM Plex Mono", sans-serif;
}
.lede { max-width: 460px; color: #d5dbe8; font-size: 14.5px; line-height: 1.7; margin: 0; min-height: 6.8em; letter-spacing: -0.02em; }
.proofs { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; min-height: 4.8em; }
.proofs li { color: #c5cedf; font-size: 12.5px; letter-spacing: 0; line-height: 1.45; }
.proofs li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--sakura); box-shadow: 0 0 8px var(--sakura); }
.hero-actions { display: flex; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #ff4d78, var(--sakura));
  color: white; border: 0; border-radius: 999px;
  padding: 13px 20px; cursor: pointer; font-weight: 650; letter-spacing: 0.02em;
  box-shadow: 0 8px 28px rgba(255, 46, 99, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(255, 46, 99, 0.4); }
.btn.ghost { background: rgba(5,5,11,0.35); border: 1px solid var(--line); color: var(--ink); box-shadow: none; }
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.hud { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.hud button {
  background: rgba(5,5,11,0.45); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 9px 14px; cursor: pointer; backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.hud button:hover { color: var(--ink); border-color: rgba(37,244,238,0.45); }
.hud button.on { color: #041014; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 18px rgba(37,244,238,0.35); }

.chips {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; width: min(440px, 100%); margin-top: 18px; z-index: 3;
}
.chips article {
  background: rgba(8,8,16,0.55); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px; backdrop-filter: blur(12px);
}
.chips small, .stats small { color: var(--muted); letter-spacing: 0.14em; font-size: 10px; }
.chips strong { display: block; margin-top: 4px; font-size: 18px; font-variant-numeric: tabular-nums; }

.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #07070f;
}
.marquee-track {
  display: flex; gap: 42px; padding: 12px 0; width: max-content;
  animation: tick 28s linear infinite;
  letter-spacing: 0.22em; font-size: 12px; color: var(--amber);
}
.marquee-track span::before { content: "✦"; margin-right: 42px; color: var(--sakura); }

.panel { padding: 64px 6vw; max-width: 1180px; margin: 0 auto; }
.kicker { letter-spacing: 0.22em; color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.kicker span { color: var(--sakura); }
.glass {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)),
    var(--card);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.signal-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.spark-card { padding: 18px 18px 8px; }
.spark-card .row, .mesh-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.spark-card h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.pill {
  border: 1px solid rgba(37,244,238,0.4); color: var(--cyan); border-radius: 999px;
  padding: 3px 8px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}
#spark { width: 100%; height: 160px; display: block; margin-top: 8px; }
.fine { color: var(--muted); font-size: 13px; line-height: 1.5; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats article { padding: 16px; }
.stats strong { display: block; margin-top: 8px; font-size: 30px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stats em { display: block; margin-top: 6px; color: var(--muted); font-style: normal; font-size: 12px; }

.spawn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form, .log { padding: 16px; }
.term-bar { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }
.term-bar i { width: 8px; height: 8px; border-radius: 50%; background: #2a2a38; }
.term-bar i:first-child { background: var(--sakura); }
.term-bar i:nth-child(2) { background: var(--amber); }
.term-bar i:nth-child(3) { background: var(--cyan); }
.term-bar span { margin-left: 8px; }
.form label, .split label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.form input, .form select {
  background: #090912; border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  outline: none; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink);
}
.form input:focus, .form select:focus { border-color: rgba(37,244,238,0.7); box-shadow: 0 0 0 3px rgba(37,244,238,0.12); }
.form .btn { margin-top: 14px; width: 100%; }
.note { color: var(--muted); font-size: 13px; min-height: 1.3em; }
.log { min-height: 320px; }
.log ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 360px; overflow: auto; }
.log li { font-family: Consolas, ui-monospace, monospace; font-size: 12px; color: #c5d0ea; line-height: 1.45; }
.log li b { color: var(--cyan); font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.anat-lead { max-width: 680px; margin-bottom: 16px; }
.anat-lead h2 { margin: 0 0 8px; font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.045em; }
.anat-lead .lede { min-height: 0; max-width: 640px; }
.system, .planets { display: grid; gap: 12px; }
.system { grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; }
.planets { grid-template-columns: repeat(4, 1fr); }
.system article, .planets article { padding: 16px 16px 18px; }
.swatch {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 8px; vertical-align: 1px;
}
.s1 { background: #ff4d8d; box-shadow: 0 0 8px #ff4d8d; }
.s2 { background: #25f4ee; box-shadow: 0 0 8px #25f4ee; }
.s3 { background: #ffb347; box-shadow: 0 0 8px #ffb347; }
.s4 { background: #c084fc; box-shadow: 0 0 8px #c084fc; }
.s5 { background: #dbeafe; box-shadow: 0 0 8px #dbeafe; }
.s6 { background: #ff3355; box-shadow: 0 0 8px #ff3355; }
.s7 { background: #3ee0b0; box-shadow: 0 0 8px #3ee0b0; }
.cards article { padding: 18px; min-height: 160px; transition: transform 0.25s ease, border-color 0.25s ease; }
.cards article:hover { transform: translateY(-3px); border-color: rgba(255,46,99,0.45); }
.idx { color: var(--cyan); letter-spacing: 0.16em; font-size: 12px; }
.cards h3, .steps h3 { margin: 8px 0; letter-spacing: -0.03em; }
.cards p, .steps p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14px; }

.mesh-head {
  padding: 0 16px 8px; color: var(--muted); font-size: 11px; letter-spacing: 0.16em;
}
.mesh-head, .feed article { display: grid; grid-template-columns: 1.1fr 1fr 0.8fr 0.7fr 1.4fr; gap: 8px; }
.feed { display: grid; gap: 8px; }
.feed article {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; align-items: center;
}
.feed b { color: var(--ink); font-weight: 650; }
.feed .sig { color: var(--amber); font-variant-numeric: tabular-nums; }
.feed .nid { color: var(--cyan); font-family: Consolas, monospace; font-size: 12px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps li { padding: 16px; }
.steps b { color: var(--sakura); letter-spacing: 0.14em; }

.close { padding: 80px 6vw 100px; text-align: left; max-width: 1180px; margin: 0 auto; }
.close h2 {
  font-size: clamp(48px, 7vw, 92px); line-height: 0.9; letter-spacing: -0.05em; margin: 0 0 22px;
}

footer {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 22px 6vw; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}

#boot {
  position: fixed; inset: 0; z-index: 80; background: #05050b;
  transition: transform 0.85s cubic-bezier(0.7, 0, 0.2, 1);
}
#boot.out { transform: translateY(-105%); }
#bootCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.boot-ui {
  position: absolute; left: 0; right: 0; bottom: 10vh; z-index: 2;
  display: grid; justify-items: center; gap: 12px; text-align: center;
}
.boot-ui h2 {
  margin: 0; font-size: clamp(42px, 6vw, 72px); letter-spacing: -0.05em; line-height: 0.9;
}
.boot-bar { width: min(280px, 68vw); height: 2px; background: rgba(255,255,255,0.12); overflow: hidden; }
.boot-bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--sakura), var(--cyan));
  box-shadow: 0 0 12px rgba(37,244,238,0.6);
}
.boot-status { margin: 0; color: var(--muted); letter-spacing: 0.22em; font-size: 11px; text-transform: uppercase; }
html.booting, html.booting body { overflow: hidden; }

#scrollBar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--sakura), var(--amber), var(--cyan));
  pointer-events: none;
}

.band, .panel, .close { scroll-margin-top: 96px; }
.band { position: relative; min-height: 740px; overflow: hidden; }
#packCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,5,11,0.9) 0%, rgba(5,5,11,0.45) 38%, rgba(5,5,11,0.05) 68%);
}
.pack-copy { position: relative; z-index: 2; max-width: 480px; padding: 100px 7vw; }
.pack-copy h2 {
  font-size: clamp(46px, 5.4vw, 72px); line-height: 0.92; letter-spacing: -0.05em; margin: 0 0 16px;
}
.pack-count { margin: 22px 0 0; letter-spacing: 0.18em; text-transform: uppercase; font-size: 12px; color: var(--muted); }
.pack-count b { color: var(--cyan); font-size: 22px; letter-spacing: 0; margin-right: 8px; }

.seven { padding: 42px 0 28px; scroll-margin-top: 96px; }
.seven-head { max-width: 1180px; margin: 0 auto 4px; padding: 0 6vw; }
.seven-head h2 { margin: 0; font-size: clamp(36px, 4vw, 56px); letter-spacing: -0.045em; }
.seven-scroll { overflow-x: auto; scrollbar-width: none; }
.seven-scroll::-webkit-scrollbar { display: none; }
.seven-row { width: max(100%, 980px); }
#sevenCanvas { width: 100%; height: 360px; display: block; }
.seven-names {
  margin: 0; padding: 0 1vw 8px; list-style: none;
  display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 8px;
}
.seven-names b { display: block; font-family: Syne, sans-serif; font-size: 15px; letter-spacing: -0.03em; }
.seven-names span {
  display: block; margin-top: 4px; color: var(--muted);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
}

#signal { position: relative; }
#orbitCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  pointer-events: none; opacity: 0.55; z-index: 0;
}
#signal .kicker, #signal .signal-grid { position: relative; z-index: 1; }

body.gh, html[lang="ja"] body.gh {
  background: #0d1117;
  color: #e6edf3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "IBM Plex Sans JP", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}
body.gh h1, body.gh h2, body.gh h3, body.gh .gh-brand, html[lang="ja"] body.gh h1, html[lang="ja"] body.gh h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "IBM Plex Sans JP", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.gh-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 24px;
  background: #010409;
  border-bottom: 1px solid #30363d;
}
.gh-brand { display: flex; align-items: center; gap: 8px; color: #e6edf3; font-size: 16px; }
.gh-brand img { width: 28px; height: 28px; border-radius: 6px; }
.gh-brand strong { font-weight: 600; }
.gh-slash { color: #8b949e; }
.gh-bar-right { display: flex; align-items: center; gap: 16px; color: #8b949e; font-size: 14px; }
.gh-slot b { color: #e6edf3; font-weight: 600; }
.gh-bar-right button, .gh-home {
  background: #21262d; color: #e6edf3; border: 1px solid #30363d;
  border-radius: 6px; padding: 5px 12px; font-size: 13px; cursor: pointer;
}
.gh-bar-right button:hover, .gh-home:hover { background: #30363d; border-color: #8b949e; }
.gh-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 920px);
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px 80px;
}
.gh-side { position: sticky; top: 88px; align-self: start; }
.gh-side p {
  margin: 0 0 8px; color: #8b949e; font-size: 12px; font-weight: 600;
}
.gh-side a {
  display: block; padding: 6px 12px; margin: 0 0 2px;
  border-left: 1px solid #30363d;
  color: #8b949e; font-size: 14px; line-height: 1.5;
}
.gh-side a:hover { color: #e6edf3; }
.gh-side a.on { color: #e6edf3; border-left-color: #f78166; font-weight: 600; }
.markdown-body { font-size: 16px; line-height: 1.6; word-wrap: break-word; }
.markdown-body h1 {
  margin: 0 0 16px; padding-bottom: 0.3em;
  font-size: 2em; border-bottom: 1px solid #30363d;
}
.markdown-body h2 {
  margin: 32px 0 16px; padding-bottom: 0.3em;
  font-size: 1.5em; border-bottom: 1px solid #30363d;
  scroll-margin-top: 88px;
}
.markdown-body h2 a { color: inherit; }
.markdown-body h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.markdown-body p { margin: 0 0 16px; }
.markdown-body .gh-lead { font-size: 18px; color: #e6edf3; }
.markdown-body a { color: #58a6ff; }
.markdown-body a:hover { text-decoration: underline; }
.markdown-body blockquote {
  margin: 0 0 16px; padding: 0 1em;
  color: #8b949e; border-left: 0.25em solid #30363d;
}
.markdown-body blockquote p { margin: 0; }
.markdown-body code {
  padding: 0.2em 0.4em; font-size: 85%;
  background: rgba(110, 118, 129, 0.4); border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, "IBM Plex Mono", Consolas, monospace;
}
.markdown-body pre {
  margin: 0 0 16px; padding: 16px; overflow: auto;
  background: #161b22; border-radius: 6px;
  border: 1px solid #30363d; line-height: 1.45;
}
.markdown-body pre code { padding: 0; background: transparent; font-size: 13px; color: #e6edf3; }
.markdown-body table { width: 100%; margin: 0 0 16px; border-collapse: collapse; display: block; overflow: auto; }
.markdown-body th, .markdown-body td {
  padding: 6px 13px; border: 1px solid #30363d; text-align: left;
}
.markdown-body th { font-weight: 600; background: #161b22; }
.markdown-body tr:nth-child(2n) td { background: rgba(110, 118, 129, 0.08); }
[data-type].typing::after {
  content: "";
  display: inline-block;
  width: 0.55ch;
  height: 0.85em;
  margin-left: 3px;
  background: var(--cyan);
  vertical-align: -0.05em;
  box-shadow: 0 0 8px rgba(37,244,238,0.7);
  animation: caret 0.85s steps(1) infinite;
}
h1.typing::after { height: 0.72em; }
@keyframes caret { 50% { opacity: 0; } }

.close { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 12px; }
#closeCanvas { width: 100%; height: 480px; display: block; }
.glass { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.glass:hover { border-color: rgba(37,244,238,0.35); box-shadow: 0 16px 40px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06); }
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }

body.ready .hero-copy > * { animation: rise 0.7s ease both; }
body.ready .hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
body.ready .hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
body.ready .hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
body.ready .hero-copy > *:nth-child(5) { animation-delay: 0.24s; }

.rise { animation: rise 0.7s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0.35; } }

@media (max-width: 900px) {
  .hide-sm, .vjp, .nav nav { display: none; }
  .ribbon { font-size: 10px; gap: 8px; padding: 8px 12px; letter-spacing: 0.06em; }
  .nav { top: 31px; padding: 12px; }
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .veil { display: none; }
  #heroCanvas { position: relative; order: 2; height: 340px; width: 100%; inset: auto; }
  .hero-grid { display: contents; }
  .hero-copy {
    order: 1; margin: 12px; padding: 16px;
    background: rgba(8, 8, 16, 0.94); border: 1px solid var(--line); border-radius: 18px;
  }
  h1 { font-size: 42px; }
  .lede { font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hud { order: 3; padding: 8px 12px 0; margin-top: 0; }
  .chips {
    position: relative; right: auto; top: auto; width: auto; order: 4;
    margin: 12px; grid-template-columns: 1fr 1fr;
  }
  .band { min-height: 520px; }
  .band::before { background: linear-gradient(180deg, rgba(5,5,11,0.2), rgba(5,5,11,0.82)); }
  .pack-copy { padding: 36px 16px 28px; }
  .pack-copy h2 { font-size: 40px; }
  .close { grid-template-columns: 1fr; padding: 36px 16px 48px; }
  #closeCanvas { height: 320px; }
  .gh-layout { grid-template-columns: 1fr; padding: 16px 16px 64px; gap: 8px; }
  .gh-side { position: static; display: flex; gap: 4px; overflow: auto; padding-bottom: 8px; }
  .gh-side p { display: none; }
  .gh-side a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; padding: 8px 10px; }
  .gh-side a.on { border-bottom-color: #f78166; }
  .gh-bar { padding: 0 12px; }
  .gh-slot { display: none; }
  .signal-grid, .spawn-grid, .cards, .steps, .split, .system, .planets { grid-template-columns: 1fr; }
  .mesh-head { display: none; }
  .feed article { grid-template-columns: 1fr 1fr; }
  .panel { padding: 36px 16px; }
  footer { flex-direction: column; padding: 22px 16px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
