:root {
  --bg: #090909;
  --bg-raise: #121214;
  --card: #161618;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f6f3f0;
  --muted: #a39b96;
  --red: #ff2a2b;
  --red-deep: #c8102e;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 28px;
  --serif: "Montserrat", system-ui, sans-serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  background:
    radial-gradient(900px 480px at 80% -10%, rgba(255, 42, 43, 0.18), transparent 55%),
    radial-gradient(700px 420px at -10% 20%, rgba(255, 42, 43, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.55;
  font-size: 16px;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 0.7px, transparent 0.7px);
  background-size: 4px 4px;
  mask-image: linear-gradient(#000 20%, transparent 85%);
  z-index: 0;
}
body > * { position: relative; z-index: 1; }
body > .nav { z-index: 40; }
body > .pack-dock { z-index: 50; }
body > .toast { z-index: 60; }
body > .sheet,
body > .lightbox { z-index: 70; }
body > .gate-overlay { z-index: 80; }
body > .loader { z-index: 90; }
img, video, iframe { max-width: 100%; }
.home-copy,
.steps,
.home-why,
.home-mission,
.home-rails,
.seo-guide,
.import-guide {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, .chip, .mood, .tile, .sticker { touch-action: manipulation; }
h1, h2, h3, p, .lede, .crumb, .tile-name { overflow-wrap: break-word; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--red);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 14px 24px;
  background: rgba(9, 9, 9, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
}
.nav:hover, .nav:focus-within { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.is-on { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.is-on { color: var(--red); }
.nav-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  min-width: 180px;
}
.nav-search input {
  width: 140px;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 16px;
}
.nav-search input::placeholder { color: #7d756f; }
.nav-search button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.nav-search svg { width: 16px; height: 16px; }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px 80px;
}

.eyebrow {
  display: block;
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 800; font-variation-settings: "wght" 800; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.15rem, 7vw, 4.8rem); font-weight: 900; font-variation-settings: "wght" 900; line-height: 0.96; margin: 0 0 16px; }
h1 em { font-style: italic; font-weight: 900; font-variation-settings: "wght" 900; color: var(--red); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 8px; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 46rem; margin: 0; }
.hero { padding: 42px 0 8px; max-width: none; }
.stage-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
.stage-top .branch-grid {
  margin-top: 0;
  grid-template-columns: 1.15fr 0.85fr;
}
.card-note {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 0.82rem;
  color: #6a615b;
}
.page-head { padding: 28px 0 8px; }
.crumb { color: var(--muted); font-size: 0.92rem; margin: 18px 0 0; }
.crumb a:hover { color: var(--text); }
.crumb span { margin: 0 6px; opacity: 0.5; }

.branch-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-top: 36px;
}
.branch-card {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 32px;
  border-radius: 32px 32px 18px 32px;
  border: 1px solid var(--line);
  background: var(--card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: perspective(1000px) rotateX(var(--ry)) rotateY(var(--rx)) translateY(var(--lift));
  transform-style: preserve-3d;
  transition: transform 0.16s ease-out, border-color 0.3s, box-shadow 0.45s, filter 0.35s;
}
.branch-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 42, 43, 0.45), transparent 68%);
  transition: transform 0.5s ease;
}
.branch-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(440px circle at var(--mx, 70%) var(--my, 30%), rgba(255, 255, 255, 0.16), transparent 46%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}
.branch-card:hover,
.branch-card.is-hot { --lift: -8px; box-shadow: var(--shadow); }
.branch-card:hover::before,
.branch-card.is-hot::before,
.branch-card:focus-visible::before { opacity: 1; }
.branch-card:hover::after,
.branch-card.is-hot::after { transform: scale(1.15); }
.branch-grid.is-focused .branch-card.is-dim { filter: brightness(0.58) saturate(0.8); --lift: 0px; }
.branch-card.is-adult { border-color: rgba(255, 42, 43, 0.45); }
.branch-card.is-safe { background: linear-gradient(180deg, #f7f1ec, #efe4dc); color: #161311; }
.branch-card.is-safe::before {
  background: radial-gradient(440px circle at var(--mx, 30%) var(--my, 20%), rgba(255, 255, 255, 0.72), transparent 48%);
}
.branch-card .pill,
.branch-card h2,
.branch-card p,
.branch-card .card-go { position: relative; z-index: 1; }
.branch-card.is-safe .pill-light { background: #161311; color: #fff; }
.branch-card.is-safe p { color: #5e564f; }
.branch-card h2 { font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 900; font-variation-settings: "wght" 900; }
.stage-top .branch-card { min-height: 220px; padding: 26px 28px; }
.branch-card p { max-width: 28rem; position: relative; z-index: 1; }
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.card-go {
  margin-top: auto;
  position: relative;
  z-index: 1;
  font-weight: 650;
  padding-top: 24px;
}
.card-go i { font-style: normal; display: inline-block; transition: transform 0.3s; }
.branch-card:hover .card-go i { transform: translateX(6px); }

.home-copy {
  margin-top: 72px;
  display: grid;
  gap: 56px;
}
.story-intro,
.story-head { max-width: 42rem; }
.story-intro h2,
.story-head h2,
.home-mission h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: 14px;
}
.story-intro p,
.home-mission p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.05rem;
}
.story-intro p:last-child,
.home-mission p:last-of-type { margin-bottom: 0; }
.vibe-grid,
.reasons {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.vibe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.vibe-grid li,
.reasons li {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.vibe-grid li.is-spicy {
  border-color: rgba(255, 42, 43, 0.45);
  background: rgba(255, 42, 43, 0.08);
}
.vibe-grid strong,
.reasons strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}
.vibe-grid p,
.reasons p { margin: 0; color: var(--muted); }
.steps { margin-top: 56px; }
.steps .story-head { margin-bottom: 18px; }
.home-why {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: start;
  margin-top: 56px;
}
.pullquote {
  margin: 0;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--card);
}
.pullquote p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 750;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.home-why .reasons { margin: 0; display: grid; gap: 14px; }
.home-mission {
  margin-top: 56px;
  padding: 32px;
  border-radius: 32px;
  border: 1px solid rgba(255, 42, 43, 0.35);
  background:
    radial-gradient(520px 240px at 100% 0%, rgba(255, 42, 43, 0.22), transparent 58%),
    var(--card);
}
.home-mission .mission-ask { color: var(--text); font-weight: 650; }
.mission-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.home-rails { margin-top: 56px; }
.home-rails .rail-block:first-child { margin-top: 0; }
.steps ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0;
  margin: 0;
}
.steps ol:has(li:nth-child(1) .step.is-on) { grid-template-columns: 1.65fr 0.85fr 0.85fr; }
.steps ol:has(li:nth-child(2) .step.is-on) { grid-template-columns: 0.85fr 1.65fr 0.85fr; }
.steps ol:has(li:nth-child(3) .step.is-on) { grid-template-columns: 0.85fr 0.85fr 1.65fr; }
.steps li { display: flex; margin: 0; min-width: 0; }
.step {
  width: 100%;
  height: 100%;
  color: inherit;
  text-align: left;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.step.is-on { border-color: rgba(255, 42, 43, 0.55); background: rgba(255, 42, 43, 0.08); }
.step.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--red);
  transform-origin: left center;
  animation: step-fill 3.4s linear;
}
.steps.is-paused .step.is-on::after { animation-play-state: paused; }
.steps span { display: block; color: var(--red); font-family: var(--serif); font-weight: 750; font-size: 1.4rem; }
.steps strong { display: block; margin: 6px 0; font-weight: 800; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.tile-grid-compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  content-visibility: auto;
  contain-intrinsic-size: 180px;
  transform: translateY(10px);
  animation: rise 0.6s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 70%), rgba(255, 42, 43, 0.34), transparent 62%);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
  pointer-events: none;
}
.tile:hover::before, .tile:focus-visible::before { opacity: 1; }
.tile:hover { border-color: rgba(255, 42, 43, 0.7); transform: translateY(-6px); }
.tile:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.tile-meta, .tile-shade { z-index: 3; }
.finder.is-busy { opacity: 0.62; pointer-events: none; }
.chip { transition: transform 0.15s ease, background 0.15s ease; }
.chip:active { transform: scale(0.96); }
.tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.tile:hover .tile-img { transform: scale(1.06); }
.tile-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.45) 28%, rgba(0, 0, 0, 0.88));
}
.tile-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tile-name {
  font-weight: 650;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.tile-count { color: rgba(255, 255, 255, 0.86); font-size: 0.8rem; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.tile-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 750;
  font-size: 2.4rem;
  color: var(--red);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 42, 43, 0.28), transparent 45%),
    #141416;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 22px;
  border: 1px solid transparent;
  font-weight: 650;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 30px rgba(255, 42, 43, 0.28); }
.btn-red:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); }
.btn-block { width: 100%; }
.page-safe .btn-ghost { color: inherit; }

.pack-hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 34px;
  align-items: center;
  padding: 28px 0 10px;
}
.pack-preview {
  background: var(--card);
  border-radius: 28px;
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 1;
}
.pack-preview img { width: 100%; height: 100%; object-fit: cover; }
.pack-meta { color: var(--muted); margin: 8px 0 12px; }
.pack-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hint { color: var(--muted); font-size: 0.92rem; max-width: 38rem; }

.section-bar { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-top: 36px; }
.section-bar p { margin: 0; color: var(--muted); }
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.sticker {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(110deg, #141416 8%, #242428 18%, #141416 33%);
  background-size: 200% 100%;
  overflow: hidden;
  cursor: zoom-in;
  animation: shimmer 1.3s linear infinite;
}
.sticker.is-ready { animation: none; background: #121214; }
.sticker-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
.sticker.is-ready .sticker-img { opacity: 1; }
.sticker:hover { border-color: rgba(255, 42, 43, 0.8); }

.suggest { margin-top: 48px; padding-top: 10px; }
.more-wrap { display: flex; justify-content: center; margin: 26px 0 8px; }
.pager { display: flex; justify-content: center; gap: 8px; margin: 18px 0 10px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 38px;
  text-align: center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.pager .is-current { color: #fff; border-color: var(--red); background: rgba(255, 42, 43, 0.15); }
.pager-gap { border: 0 !important; }

.empty, .empty-card {
  margin-top: 28px;
  color: var(--muted);
}
.empty-card {
  padding: 28px;
  border-radius: 24px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.empty-card h2 { font-size: 1.8rem; color: inherit; }
.page-safe .empty-card h2 { color: #1a1614; }
.page-safe .empty-card p { color: #5c534c; }

body.has-gate { overflow: hidden; }
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: start;
  justify-items: center;
  overflow: auto;
  padding: 36px 20px;
  background: #000;
}
.gate-overlay .gate { margin: auto; width: min(560px, 100%); }
.gate {
  max-width: 560px;
  margin: 24px auto;
  padding: 12px 8px 28px;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.gate-logo { height: 72px; width: auto; margin: 0 auto 28px; }
.gate h1, .gate h2 {
  font-size: clamp(1.85rem, 4.5vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 26px;
}
.gate-chip {
  display: inline-flex;
  align-items: center;
  margin: 0 auto 18px;
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 650;
}
.gate-copy {
  color: #e8e4e1;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 auto 8px;
  max-width: 38rem;
}
.gate-callout {
  display: inline-block;
  margin: 14px 0 8px;
  color: var(--red);
  font-weight: 800;
  font-size: 1.05rem;
}
.gate-callout:hover { text-decoration: underline; text-underline-offset: 3px; }
.gate-form {
  display: grid;
  gap: 12px;
  width: min(300px, 100%);
  margin: 22px auto 0;
}
.gate-choice {
  min-height: 48px;
  padding: 12px 18px;
  white-space: normal;
  line-height: 1.25;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
  font-weight: 650;
  box-shadow: none;
}
.gate-choice:hover { border-color: #fff; background: rgba(255, 255, 255, 0.05); filter: none; }
.gate-extra { margin-top: 34px; }
.gate-extra h3 {
  margin: 22px 0 6px;
  color: var(--red);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.gate-extra p {
  margin: 0 auto;
  max-width: 34rem;
  color: #e8e4e1;
  font-size: 0.98rem;
  line-height: 1.5;
}
.gate-extra a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.prose { max-width: 680px; padding-top: 36px; }
.prose p { color: #d9d1cb; font-size: 1.05rem; margin: 0 0 14px; }
.prose h2 { margin-top: 28px; }
.prose h3 { margin-top: 22px; font-size: 1.25rem; }
.prose a { color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.prose a.btn { margin-top: 8px; text-decoration: none; }
.seo-guide { margin-top: 56px; max-width: 42rem; }
.seo-guide p { margin: 0 0 14px; color: var(--muted); font-size: 1.05rem; }
.seo-guide h2 { margin-bottom: 12px; }
.seo-guide h3 { margin: 22px 0 8px; font-size: 1.25rem; }
.seo-guide a { color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.seo-guide > img { width: 84px; height: 84px; object-fit: cover; border-radius: 20px; margin: 0 0 14px; }
.page-safe .seo-guide p { color: #6a615b; }
.page-safe .seo-guide a { color: #1a1614; }

.import-guide { margin-top: 28px; max-width: 46rem; }
.import-guide h2 { margin-bottom: 12px; }
.import-guide p { margin: 0 0 14px; color: var(--muted); font-size: 1.05rem; }
.import-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.import-links .btn { text-decoration: none; }
.import-steps { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 22px; }
.import-steps h3 { margin: 0 0 8px; font-size: 1.2rem; }
.import-steps .file-name { font-weight: 700; color: var(--text); }
.page-safe .import-guide p { color: #6a615b; }
.page-safe .import-steps .file-name { color: #1a1614; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.footer-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-row p { margin: 0; }
.footer-links { display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap; }
.exit-form { display: inline; }
.exit-form button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--red);
  cursor: pointer;
  font-weight: 600;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(8, 8, 9, 0.46);
  backdrop-filter: blur(10px);
}
.loader[hidden] { display: none; }
.loader-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 148px;
  padding: 28px 32px 24px;
  border-radius: 28px;
  background: rgba(16, 16, 18, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}
.loader-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--red);
  animation: spin 0.7s linear infinite;
}
.loader-label {
  margin: 0;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
}
body.is-loading { cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #fff;
  color: #161311;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 70;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.sheet, .lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  padding: 24px;
}
.sheet[hidden], .lightbox[hidden] { display: none; }
.sheet-card {
  width: min(460px, 100%);
  background: #141416;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  position: relative;
}
.sheet-close, .lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 1.3rem;
}
.sheet-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.lightbox { grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img {
  width: min(72vh, 520px);
  height: min(72vh, 520px);
  object-fit: contain;
  margin: 0 auto;
  background: #101012;
  border-radius: 24px;
}
.lightbox figcaption { margin-top: 10px; color: var(--muted); }
.lightbox-nav, .lightbox-send { position: relative; }
.lightbox-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(20, 20, 22, 0.8);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}
.lightbox-send { position: absolute; bottom: 28px; }

.pack-dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(9, 9, 9, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.pack-dock .btn { flex: 1; }

.page-safe {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(255, 42, 43, 0.08), transparent 50%),
    #f6f1ec;
  color: #1a1614;
}
.page-safe .nav { background: rgba(9, 9, 9, 0.92); color: #f6f3f0; }
.page-safe .nav-links a { color: #a39b96; }
.page-safe .nav-links a.is-on, .page-safe .nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.page-safe .nav-links a.is-on { color: var(--red); }
.page-safe .nav-search { background: rgba(255, 255, 255, 0.04); color: #fff; }
.page-safe .nav-search input { color: #fff; }
.page-safe .lede, .page-safe .crumb, .page-safe .hint, .page-safe .section-bar p { color: #6a615b; }
.page-safe .crumb a { color: #1a1614; }
.page-safe .site-footer, .page-safe .tile, .page-safe .empty-card, .page-safe .sticker { border-color: rgba(0, 0, 0, 0.08); }
.page-safe .tile-name { color: #fff; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}
@view-transition { navigation: auto; }

@media (max-width: 860px) {
  .branch-grid, .steps ol, .pack-hero { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; }
  .nav-search { order: 3; flex: 1 1 100%; }
  .nav-search input { width: 100%; }
  .footer-row { flex-direction: column; }
  .section-bar { flex-direction: column; align-items: start; }
  .page-pack { padding-bottom: 96px; }
  .pack-dock { display: flex; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .loader-ring { animation: spin 0.8s linear infinite !important; }
  .rail-set[aria-hidden="true"] { display: none; }
  .rail { mask-image: none; cursor: default; }
  .rail-track { flex-wrap: wrap; width: auto; }
}

.stage { position: relative; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.orb-a {
  width: 280px;
  height: 280px;
  right: 8%;
  top: 10px;
  background: rgba(255, 42, 43, 0.28);
  animation: drift 9s ease-in-out infinite;
}
.orb-b {
  width: 180px;
  height: 180px;
  left: -40px;
  bottom: 40px;
  background: rgba(255, 42, 43, 0.12);
  animation: drift 12s ease-in-out infinite reverse;
}
.stage > *:not(.orb) { position: relative; z-index: 1; }
.card-watermark {
  position: absolute;
  right: 18px;
  top: -18px;
  font-family: var(--serif);
  font-size: 7rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.branch-card.is-safe .card-watermark { color: rgba(22, 19, 17, 0.06); }

.finder { margin: 22px 0 6px; }
.finder-search input, .chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.finder-search input {
  width: min(420px, 100%);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
  font-size: 16px;
}
.finder-search input:focus { border-color: rgba(255, 42, 43, 0.7); }
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chip {
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
}
.chip.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.chip-gap { width: 8px; }
.finder-count { color: var(--muted); font-size: 0.88rem; margin: 10px 0 0; }
.page-safe .finder-search input, .page-safe .chip { color: #1a1614; background: #fff; }
.page-safe .chip.is-on { color: #fff; }

.nav-search { position: relative; }
.palette {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(440px, 86vw);
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(16, 16, 18, 0.96);
  box-shadow: var(--shadow);
  z-index: 40;
}
.palette-label {
  margin: 8px 10px 4px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.palette-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.palette-row img, .palette-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  background: #222;
  flex: none;
}
.palette-mark { display: grid; place-items: center; font-family: var(--serif); color: var(--red); }
.palette-row strong, .palette-row small { display: block; }
.palette-row small { color: var(--muted); font-size: 0.78rem; }
.palette-row.is-active, .palette-row:hover { background: rgba(255, 42, 43, 0.14); }
.palette-more, .palette-empty { display: block; padding: 10px; color: var(--muted); }
.palette-more { color: var(--red); font-weight: 700; }

.pack-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.pack-side { position: sticky; top: 92px; }
.ad {
  position: relative;
  display: grid;
  place-items: center;
  margin: 18px auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 42, 43, 0.08), rgba(255, 255, 255, 0.02));
  overflow: hidden;
}
.ad-tag {
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.ad-wait { display: block; margin: 0; color: rgba(255, 255, 255, 0.35); font-size: 0.85rem; }
.ad-native { min-height: 110px; }
.ad-leaderboard { min-height: 90px; max-width: 728px; }
.ad-mrec { min-height: 250px; width: min(300px, 100%); }
.ad-mobile { display: none; min-height: 50px; max-width: 320px; }
.ad-social { min-height: 72px; }
.ad.has-code {
  overflow: visible;
  border: 0;
  background: transparent;
  min-height: 0;
}
.ad.has-code .ad-tag { display: none; }
.ad-live { width: 100%; }
.adsterra-desktop { display: none; }
.adsterra-mobile { display: block; }
@media (min-width: 768px) {
  .adsterra-desktop { display: block; }
  .adsterra-mobile { display: none; }
}

@keyframes drift {
  50% { transform: translate3d(18px, -12px, 0) scale(1.06); }
}
@keyframes step-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.stage-status {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  min-height: 1.4em;
}
.stage-status kbd {
  display: inline-block;
  margin: 0 2px;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--text);
}
.card-line b { font-weight: 800; }
.rail-block { margin-top: 22px; }
.rail-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hint-coarse { display: none; }
.rail {
  overflow: hidden;
  cursor: grab;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  touch-action: pan-y;
}
.rail:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.rail.is-dragging { cursor: grabbing; }
.rail-track { display: flex; gap: 10px; width: max-content; will-change: transform; }
.rail-set { display: flex; gap: 10px; }
.rail-still { cursor: default; mask-image: none; }
#hero-em, #hero-lede, #stage-line, .card-line { position: relative; }
#hero-em { display: inline-block; }
.fade-host > .line {
  transition: opacity 0.55s ease;
}
.fade-host > .line.is-on { opacity: 1; }
.fade-host > .line:not(.is-on) {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}
.mood img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: rgba(255, 255, 255, 0.08);
}
.mood {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  font-weight: 650;
  transition: border-color 0.4s ease, background 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}
.mood small {
  min-width: 1.4rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 42, 43, 0.16);
  color: #ffd0d0;
  font-size: 0.75rem;
  text-align: center;
}
.mood.is-md { padding: 10px 14px; font-size: 1rem; }
.mood.is-lg { padding: 12px 16px; font-size: 1.08rem; font-weight: 750; }
.mood.is-soon { opacity: 0.62; }
.mood.is-on,
.mood:hover {
  border-color: rgba(255, 42, 43, 0.7);
  background: rgba(255, 42, 43, 0.12);
  opacity: 1;
}
.rail-safe .mood small { background: rgba(255, 255, 255, 0.1); color: var(--text); }
@media (max-width: 860px) {
  .pack-board { grid-template-columns: 1fr; }
  .pack-side { position: static; }
  .ad-mobile { display: grid; }
  .ad-mrec { width: 100%; }
}

@media (max-width: 860px) {
  .nav { padding: 10px 16px; gap: 10px; }
  .brand img { height: 42px; }
  main { padding: 8px 16px 72px; }
  .hero { padding-top: 22px; }
  .stage-top, .stage-top .branch-grid, .branch-grid, .steps ol, .pack-hero, .vibe-grid, .home-why { grid-template-columns: 1fr; }
  .home-copy { margin-top: 48px; gap: 40px; }
  .home-mission { padding: 22px; border-radius: 24px; }
  .steps ol,
  .steps ol:has(li:nth-child(1) .step.is-on),
  .steps ol:has(li:nth-child(2) .step.is-on),
  .steps ol:has(li:nth-child(3) .step.is-on) { grid-template-columns: 1fr; }
  .stage-top { gap: 8px; }
  .stage-keys { display: none; }
  .branch-card { min-height: 220px; padding: 22px; border-radius: 24px; }
  .rail { mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent); }
  .card-watermark { font-size: 4.5rem; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pack-preview { max-width: 280px; }
  .pack-actions .btn, .gate-form .btn { min-height: 48px; }
  .finder {
    position: sticky;
    top: var(--nav-h, 112px);
    z-index: 8;
    margin-left: -16px;
    margin-right: -16px;
    padding: 10px 16px 8px;
    background: rgba(9, 9, 9, 0.94);
    backdrop-filter: blur(16px);
  }
  .page-safe .finder { background: rgba(246, 241, 236, 0.94); }
  .chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin-right: -16px;
    padding-right: 16px;
    padding-bottom: 4px;
  }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; min-height: 40px; }
  .palette { left: 0; right: 0; width: auto; }
  .lightbox figure img { max-height: 58vh; }
  .lightbox-send { position: static; margin: 8px auto 0; }
  .sheet-card { width: min(440px, 100%); padding: 22px 18px; }
  .gate { padding: 24px 18px; }
}

@media (max-width: 420px) {
  h1 { font-size: 2rem; }
  .branch-card h2 { font-size: 2rem; }
  .nav-links a { padding: 8px 10px; }
  .tile-name { font-size: 0.92rem; }
  .pack-dock .btn { padding: 12px 10px; font-size: 0.92rem; }
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .nav-links a, .chip, .btn, .tile, .sticker { transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease; }
}
@media (hover: none) {
  .tile:hover { transform: none; border-color: var(--line); }
  .tile:hover .tile-img { transform: none; }
  .tile:hover::before { opacity: 0; }
  .btn:hover { transform: none; filter: none; }
  .branch-card:hover,
  .branch-card.is-hot { --lift: 0px; box-shadow: none; }
  .branch-card:hover::before,
  .branch-card.is-hot::before { opacity: 0; }
  .tile:active, .btn:active, .branch-card:active, .sticker:active, .mood:active, .step:active { transform: scale(0.98); }
}

@media (max-width: 860px) {
  .nav {
    gap: 8px 10px;
    padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  }
  .brand { flex: none; }
  .brand img { height: 36px; }
  .nav-links { flex: none; }
  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
  }
  .nav-search { min-width: 0; min-height: 44px; }
  .nav-search button { width: 40px; height: 40px; }
  main { padding: 8px 16px calc(64px + env(safe-area-inset-bottom)); }
  .page-pack main { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  h1 { font-size: clamp(1.7rem, 8.2vw, 2.45rem); line-height: 1.05; }
  .lede, .hint, .import-guide p, .seo-guide p { font-size: 1rem; }
  .hero-break { display: none; }
  .pack-preview { margin-inline: auto; }
  .footer-row {
    padding: 22px 16px calc(28px + env(safe-area-inset-bottom));
  }
  .exit-form button { min-height: 44px; }
  .ad, .ad-live { max-width: 100%; }
  .ad.has-code { overflow: hidden; }
  .ad-live { overflow-x: auto; }
  .ad-live iframe { max-width: 100%; }
  .toast { bottom: calc(16px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); text-align: center; }
  .page-pack .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .sheet, .lightbox {
    align-items: end;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  }
  .sheet-card {
    width: 100%;
    max-height: min(88dvh, 100%);
    overflow: auto;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }
  .sheet-close, .lightbox-close { width: 44px; height: 44px; }
  .sheet-actions { flex-direction: column; }
  .sheet-actions .btn, .lightbox-send { width: 100%; min-height: 48px; }
  .lightbox { align-items: center; overflow: auto; }
  .lightbox-nav {
    display: grid;
    place-items: center;
    position: absolute;
    top: 46%;
    z-index: 2;
    width: 44px;
    height: 44px;
  }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .lightbox img {
    width: min(88vw, 520px);
    height: auto;
    max-height: 58dvh;
  }
  .pack-dock .btn { min-height: 48px; white-space: normal; line-height: 1.15; }
  .pack-dock .btn-red { flex: 1.45; }
  .chip { min-height: 44px; }
  .gate-overlay { padding: calc(20px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)); }
  .gate-logo { height: 56px; margin-bottom: 18px; }
  .pager a, .pager span { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 640px) {
  .pack-actions, .mission-actions, .import-links { flex-direction: column; align-items: stretch; }
  .pack-actions .btn, .mission-actions .btn, .import-links .btn { width: 100%; min-height: 48px; }
  .home-mission, .pullquote, .vibe-grid li, .reasons li, .step { padding: 18px; }
  .branch-card { min-height: 0; }
  .orb-a { width: 160px; height: 160px; right: -20px; }
  .orb-b { width: 120px; height: 120px; }
}

@media (max-width: 860px) {
  .hint-fine { display: none; }
  .hint-coarse { display: inline; }
  .rail {
    overflow-x: auto;
    overflow-y: hidden;
    cursor: auto;
    mask-image: none;
    touch-action: pan-x pan-y;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail-native .rail-set[aria-hidden="true"] { display: none; }
  .rail-native .rail-track { width: max-content; transform: none !important; }
  .rail-native .mood { scroll-snap-align: start; }
}

@media (max-width: 380px) {
  .brand img { height: 32px; }
  .nav-links a { padding: 8px 8px; font-size: 0.92rem; }
  .sticker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tile-meta { left: 8px; right: 8px; bottom: 8px; }
}
