@font-face {
  font-family: "Press Start 2P";
  src: url("/assets/PressStart2P-Regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --font-ui: "Cormorant Garamond", Georgia, serif;
  --bg: #070301;
  --bg-2: #130702;
  --panel: rgba(18, 10, 4, 0.9);
  --panel-raised: rgba(28, 14, 6, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --text: #fdecc7;
  --muted: #d3b07b;
  --muted-soft: #c6b28b;
  --accent: #ffb347;
  --accent-deep: #ff7b21;
  --accent-green: #70f2a2;
  --accent-blue: #8eb8ff;
  --border: rgba(255, 177, 82, 0.18);
  --border-strong: rgba(255, 177, 82, 0.32);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.44);
  --shadow-soft: 0 20px 48px rgba(0, 0, 0, 0.28);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 127, 39, 0.18), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(255, 184, 83, 0.12), transparent 22%),
    linear-gradient(180deg, #160802 0%, #0a0401 42%, #040201 100%);
  font-family: "Press Start 2P", monospace;
}

a {
  color: inherit;
}

.site-noise,
.site-glow {
  position: fixed;
  pointer-events: none;
  inset: 0;
}

.site-noise {
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 140px 140px;
  mix-blend-mode: soft-light;
}

.site-glow {
  filter: blur(60px);
  opacity: 0.18;
}

.site-glow-left {
  inset: 20% auto auto -120px;
  width: 340px;
  height: 340px;
  background: rgba(255, 119, 29, 0.2);
}

.site-glow-right {
  inset: auto -120px 8% auto;
  width: 320px;
  height: 320px;
  background: rgba(255, 180, 89, 0.11);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.page-shell-guide {
  width: min(1080px, calc(100% - 28px));
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.topbar-home {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 180, 89, 0.08);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.brand-lockup-guide {
  align-items: flex-start;
}

.brand-icon {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.brand-icon-guide {
  width: 72px;
  height: 72px;
}

.brand-copy h1,
.hero-copy h2,
.feature-list h3,
.cta-label,
.meta-card strong,
.world-card h3,
.guide-section h2,
.system-grid h3,
.footer p {
  margin: 0;
}

.eyebrow,
.section-kicker,
.cta-meta,
.cta-eyebrow,
.meta-title,
.lede,
.feature-list p,
.world-kicker,
.world-card p,
.footer-note,
.guide-kicker,
.guide-section p,
.guide-list,
.system-grid p,
.platform-pill,
.beta-pill,
.version-stamp span {
  font-family: var(--font-ui);
}

.eyebrow {
  display: block;
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.brand-copy h1 {
  font-size: clamp(1.4rem, 3.4vw, 2.8rem);
  line-height: 1.02;
  color: var(--accent);
  text-shadow: 0 0 22px rgba(255, 123, 33, 0.18);
}

.brand-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.beta-pill,
.platform-pill,
.media-link,
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
}

.beta-pill,
.platform-pill {
  padding: 8px 12px;
  font-size: 0.82rem;
  line-height: 1;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.beta-pill {
  color: #fff1d7;
  background: linear-gradient(135deg, rgba(255, 126, 34, 0.3), rgba(255, 196, 97, 0.16));
}

.platform-pill {
  color: var(--accent-green);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.media-link,
.nav-link {
  color: var(--muted);
  font-size: 0.82rem;
  padding: 11px 14px;
  border: 1px solid rgba(255, 180, 89, 0.16);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.media-link:hover,
.nav-link:hover {
  color: var(--text);
  border-color: rgba(255, 180, 89, 0.28);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  gap: 22px;
}

.hero-home {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 169, 67, 0.06) 0%, rgba(255, 169, 67, 0) 28%),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 222, 167, 0.04),
    var(--shadow);
}

.hero-copy {
  padding: 34px;
}

.hero-copy-home {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.section-kicker {
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  margin: 0 0 18px;
}

.hero-copy h2 {
  font-size: clamp(1.5rem, 3.6vw, 3rem);
  line-height: 1.14;
  margin-bottom: 18px;
  max-width: 10ch;
  color: var(--accent);
}

.lede {
  color: #f4debb;
  font-size: 1.06rem;
  line-height: 1.68;
  max-width: 35rem;
  margin: 0 0 22px;
}

.founder-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 180, 89, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 180, 89, 0.12);
}

.founder-line-mark {
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb347, #ff7b21);
  box-shadow: 0 0 18px rgba(255, 140, 40, 0.34);
}

.founder-line p {
  margin: 0;
  color: #f3d6ad;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.62;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 22px;
}

.launch-support {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.quick-link {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 180, 89, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-soft);
  text-decoration: none;
  font-size: 0.84rem;
  font-family: var(--font-ui);
}

.quick-link-button,
.media-link-button,
.launch-button {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.quick-link:hover {
  color: var(--text);
  border-color: rgba(255, 180, 89, 0.3);
}

.launch-cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.cta {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  border: 1px solid rgba(255, 180, 89, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.launch-button {
  text-align: left;
  color: inherit;
}

.cta-primary {
  background: linear-gradient(135deg, rgba(91, 242, 156, 0.2), rgba(255, 168, 64, 0.2));
}

.cta-guide {
  margin-top: 10px;
  align-self: flex-start;
}

.cta-giant {
  width: min(100%, 430px);
  padding: 24px 24px 22px;
  box-shadow:
    0 0 0 1px rgba(255, 192, 102, 0.12) inset,
    0 18px 42px rgba(0, 0, 0, 0.32);
}

.cta-eyebrow {
  color: #d8ffb2;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cta-label {
  font-size: clamp(1rem, 2.1vw, 1.55rem);
  line-height: 1.1;
}

.cta-meta {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  font-family: var(--font-ui);
  letter-spacing: 0.01em;
}

.text-link-bright {
  color: var(--accent-green);
}

.meta-strip {
  display: grid;
  gap: 14px;
}

.meta-strip-home {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.meta-card {
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 180, 89, 0.12);
}

.meta-title {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.meta-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

.indie-note {
  margin-top: 20px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 126, 34, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 180, 89, 0.12);
}

.home-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.home-pillars article {
  padding: 16px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 168, 64, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 180, 89, 0.12);
}

.home-pillars span {
  display: block;
  color: var(--accent);
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.home-pillars p {
  margin: 0;
  color: var(--muted-soft);
  font-family: var(--font-ui);
  font-size: 0.96rem;
  line-height: 1.52;
}

.indie-note p {
  margin: 0;
  color: var(--muted-soft);
  font-family: var(--font-ui);
  font-size: 0.96rem;
  line-height: 1.64;
}

.hero-preview {
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 146, 38, 0.18), transparent 28%),
    var(--panel-raised);
}

.preview-frame {
  position: relative;
  display: grid;
  place-items: center;
}

.preview-frame-home {
  min-height: 430px;
  padding: 32px 24px 18px;
}

.forge-glow {
  position: absolute;
  inset: auto 18% 10% 18%;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 123, 28, 0.36), transparent 68%);
  filter: blur(24px);
}

.preview-art {
  position: relative;
  width: min(84%, 430px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 30px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
}

.version-stamp {
  position: absolute;
  right: 26px;
  bottom: 22px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(18, 10, 5, 0.78);
  border: 1px solid rgba(255, 180, 89, 0.18);
  text-align: right;
}

.version-stamp span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  margin-bottom: 7px;
}

.version-stamp strong {
  font-size: 0.92rem;
}

.feature-list {
  display: grid;
}

.feature-list-home {
  gap: 14px;
  padding: 8px 24px 24px;
}

.feature-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(255, 177, 82, 0.02));
  border: 1px solid rgba(255, 180, 89, 0.12);
}

.feature-list span {
  color: var(--accent);
  font-size: 0.95rem;
}

.feature-list h3 {
  font-size: 0.96rem;
  margin-bottom: 9px;
  line-height: 1.35;
}

.feature-list p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.62;
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.ritual-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.world-card,
.guide-panel,
.guide-section,
.ritual-card {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(12, 7, 3, 0.88);
  box-shadow: var(--shadow-soft);
}

.guide-section {
  background:
    linear-gradient(180deg, rgba(255, 180, 89, 0.04), rgba(255, 180, 89, 0)),
    rgba(12, 7, 3, 0.88);
}

.world-card {
  padding: 22px;
}

.ritual-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 180, 89, 0.05), rgba(255, 180, 89, 0)),
    rgba(12, 7, 3, 0.88);
}

.world-kicker,
.guide-kicker {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.world-card h3,
.guide-section h2 {
  font-size: 1.02rem;
  line-height: 1.5;
  margin-bottom: 14px;
  color: var(--accent);
}

.world-card p,
.guide-section p,
.system-grid p,
.guide-list,
.ritual-card p {
  margin: 0;
  color: var(--muted-soft);
  font-size: 0.98rem;
  line-height: 1.74;
}

.ritual-index {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  color: var(--accent);
  border: 1px solid rgba(255, 180, 89, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.ritual-card h3,
.guide-summary-grid h3 {
  margin: 0 0 10px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 0 8px;
}

.footer p {
  font-size: 0.8rem;
  line-height: 1.56;
}

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

.footer-note {
  color: var(--muted);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 20px;
}

.guide-panel {
  padding: 22px;
}

.guide-nav {
  position: sticky;
  top: 18px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-nav a {
  color: #f5ddb7;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 180, 89, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.2;
}

.guide-nav a:hover {
  background: rgba(255, 177, 82, 0.08);
  transform: translateX(2px);
}

.guide-content {
  display: grid;
  gap: 18px;
}

.manual-lede {
  margin: 0 0 18px !important;
  color: #f4debb !important;
  font-size: 1.04rem !important;
}

.guide-intro {
  background:
    linear-gradient(180deg, rgba(112, 242, 162, 0.07) 0%, rgba(112, 242, 162, 0) 26%),
    rgba(14, 8, 4, 0.86);
}

.guide-section {
  padding: 24px;
}

.guide-list {
  padding-left: 1.25rem;
}

.guide-list li + li {
  margin-top: 10px;
}

.loop-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 180, 89, 0.12);
}

.loop-flow span {
  font-size: 0.88rem;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.system-grid div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 180, 89, 0.12);
}

.system-grid h3 {
  font-size: 0.92rem;
  margin-bottom: 10px;
}

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

.guide-summary-grid div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 180, 89, 0.12);
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.glossary-card {
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 180, 89, 0.05), rgba(255, 180, 89, 0)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 180, 89, 0.12);
}

.glossary-card h3 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--accent);
}

.shot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.shot-card {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 180, 89, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 180, 89, 0.04), rgba(255, 180, 89, 0)),
    rgba(255, 255, 255, 0.025);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  align-items: stretch;
}

.shot-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at top, rgba(255, 160, 55, 0.09), transparent 42%),
    linear-gradient(180deg, rgba(255, 177, 82, 0.04), rgba(255, 177, 82, 0)),
    #120701;
  min-height: 260px;
}

.shot-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  object-position: center center;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.shot-card figcaption {
  padding: 22px 22px 22px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shot-card h3 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.shot-card p {
  margin: 0;
}

.forge-launch-overlay,
.forge-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.forge-launch-overlay[hidden],
.forge-lightbox[hidden] {
  display: none;
}

.forge-launch-overlay {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 150, 42, 0.16), transparent 28%),
    rgba(5, 2, 1, 0.88);
  backdrop-filter: blur(10px);
}

.forge-launch-status {
  width: min(92vw, 520px);
  padding: 30px 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 180, 89, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 168, 64, 0.12) 0%, rgba(255, 168, 64, 0) 42%),
    rgba(16, 9, 4, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: forgeWarmRise 320ms ease-out;
}

.forge-launch-kicker {
  margin: 0 0 10px;
  color: var(--accent-green);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.forge-launch-status h2 {
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 4vw, 2.2rem);
  line-height: 1.15;
}

.forge-launch-status p:last-child {
  margin: 0;
  color: var(--muted-soft);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
}

.forge-launch-meter {
  margin-top: 18px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 180, 89, 0.12);
}

.forge-launch-meter-fill {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7b21 0%, #ffb347 50%, #fff0c8 100%);
  box-shadow: 0 0 18px rgba(255, 160, 55, 0.36);
  animation: forgeWarmFill 1100ms ease-in-out forwards;
}

.forge-lightbox {
  display: grid;
  place-items: center;
  padding: 18px;
}

.forge-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 1, 0.82);
  backdrop-filter: blur(8px);
}

.forge-lightbox-shell {
  position: relative;
  z-index: 1;
  width: min(96vw, 1440px);
  height: min(96dvh, 1000px);
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 180, 89, 0.24);
  background: rgba(14, 8, 4, 0.98);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.54);
  animation: forgeLightboxIn 260ms ease-out;
}

.forge-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 180, 89, 0.12);
  background: linear-gradient(180deg, rgba(255, 168, 64, 0.08), rgba(255, 168, 64, 0));
}

.forge-lightbox-bar h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--accent);
}

.forge-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.forge-lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 180, 89, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.forge-lightbox-close {
  background: linear-gradient(135deg, rgba(255, 126, 34, 0.18), rgba(255, 196, 97, 0.1));
}

.forge-lightbox-frame-wrap {
  min-height: 0;
  background: #050201;
  position: relative;
  padding-bottom: 12px;
  box-sizing: border-box;
}

.forge-lightbox-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #050201;
}

body.modal-open {
  overflow: hidden;
}

@keyframes forgeWarmRise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes forgeWarmFill {
  from {
    width: 10%;
    opacity: 0.7;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}

@keyframes forgeLightboxIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1080px) {
  .hero-home,
  .guide-layout,
  .world-grid,
  .ritual-strip {
    grid-template-columns: 1fr;
  }

  .guide-nav {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-shell,
  .page-shell-guide {
    width: min(100% - 18px, 100%);
    padding-top: 18px;
    padding-bottom: 28px;
  }

  .topbar,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .brand-lockup {
    gap: 14px;
    align-items: flex-start;
  }

  .brand-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }

  .brand-meta-row {
    gap: 8px;
  }

  .hero-copy,
  .guide-panel,
  .guide-section {
    padding: 20px;
  }

  .guide-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-bottom: 0;
  }

  .preview-frame-home {
    min-height: 300px;
    padding: 24px 18px 18px;
  }

  .meta-strip-home,
  .system-grid,
  .guide-summary-grid,
  .glossary-grid,
  .home-pillars {
    grid-template-columns: 1fr;
  }

  .shot-card {
    grid-template-columns: 1fr;
  }

  .shot-media {
    padding: 14px;
    min-height: 0;
  }

  .shot-card img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .cta-giant {
    width: 100%;
  }

  .hero-copy h2 {
    max-width: none;
    font-size: clamp(1.25rem, 10vw, 2.2rem);
  }

  .feature-list-home,
  .footer {
    padding-left: 0;
    padding-right: 0;
  }

  .world-card {
    padding: 18px;
  }

  .ritual-card {
    padding: 18px;
  }

  .forge-lightbox {
    padding: 0;
    align-items: stretch;
  }

  .forge-lightbox-shell {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .forge-lightbox-bar {
    padding: max(12px, env(safe-area-inset-top)) 12px 10px;
  }

}

@media (max-width: 560px) {
  .page-shell,
  .page-shell-guide {
    width: min(100% - 14px, 100%);
    padding-top: 14px;
    padding-bottom: 22px;
  }

  .topbar {
    gap: 14px;
    margin-bottom: 18px;
  }

  .brand-lockup {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
  }

  .brand-icon,
  .brand-icon-guide {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .brand-copy h1 {
    font-size: clamp(1.2rem, 10vw, 2rem);
    line-height: 1.06;
  }

  .eyebrow,
  .section-kicker,
  .world-kicker,
  .guide-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.13em;
  }

  .hero-panel,
  .world-card,
  .guide-panel,
  .guide-section,
  .ritual-card {
    border-radius: 20px;
  }

  .hero-copy,
  .guide-panel,
  .guide-section {
    padding: 16px;
  }

  .hero-copy h2 {
    font-size: clamp(1.05rem, 8vw, 1.75rem);
    line-height: 1.18;
    margin-bottom: 14px;
  }

  .lede {
    max-width: none;
  }

  .founder-line {
    gap: 12px;
    padding: 14px;
    margin-bottom: 18px;
  }

  .lede,
  .world-card p,
  .guide-section p,
  .system-grid p,
  .guide-list,
  .ritual-card p,
  .indie-note p,
  .feature-list p,
  .cta-meta {
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .quick-links {
    gap: 8px;
    margin-bottom: 18px;
  }

  .quick-link,
  .media-link,
  .nav-link {
    font-size: 0.78rem;
    padding: 9px 11px;
  }

  .launch-cluster {
    gap: 12px;
  }

  .cta {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .cta-label {
    font-size: clamp(0.9rem, 6vw, 1.2rem);
  }

  .meta-strip-home {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .meta-card {
    padding: 14px;
  }

  .preview-frame-home {
    min-height: 240px;
    padding: 18px 14px 10px;
  }

  .preview-art {
    width: min(88%, 300px);
    border-radius: 22px;
  }

  .version-stamp {
    right: 14px;
    bottom: 12px;
    padding: 8px 10px;
    border-radius: 12px;
  }

  .version-stamp span {
    font-size: 0.68rem;
    margin-bottom: 5px;
  }

  .version-stamp strong {
    font-size: 0.82rem;
  }

  .feature-list-home {
    gap: 10px;
    padding: 6px 14px 14px;
  }

  .feature-list article {
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .feature-list span {
    font-size: 0.82rem;
  }

  .feature-list h3,
  .world-card h3,
  .guide-section h2,
  .ritual-card h3,
  .guide-summary-grid h3,
  .system-grid h3 {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .world-grid,
  .guide-content {
    gap: 14px;
  }

  .guide-nav {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
  }

  .guide-nav a {
    padding: 10px;
    border-radius: 12px;
    font-size: 0.92rem;
  }

  .shot-media {
    padding: 10px;
  }

  .shot-card figcaption {
    padding: 14px 14px 16px;
  }

  .shot-card h3 {
    font-size: 0.84rem;
  }

  .glossary-card {
    padding: 14px;
    border-radius: 16px;
  }

  .glossary-card h3 {
    font-size: 0.84rem;
  }

  .guide-summary-grid div,
  .system-grid div {
    padding: 14px;
    border-radius: 16px;
  }

  .loop-flow {
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
  }

  .loop-flow span {
    font-size: 0.8rem;
  }

  .footer {
    gap: 10px;
    margin-top: 18px;
  }

  .footer p {
    font-size: 0.74rem;
    line-height: 1.5;
  }

  .forge-launch-status {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .forge-lightbox-shell {
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .forge-lightbox-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .forge-lightbox-actions {
    width: 100%;
    justify-content: stretch;
  }

  .forge-lightbox-close {
    flex: 1 1 0;
  }

  .forge-lightbox-frame-wrap {
    min-height: 0;
    height: 100%;
  }

  .launch-support {
    gap: 10px 14px;
  }

  .home-pillars article {
    padding: 14px 12px;
  }
}
