/* ==========================================================================
   techinox.dev — shared stylesheet
   One file, three themes: .t-hub (Techinox), .t-ss (Soul Savior), .t-ft (Farmer Toon)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

.t-hub {
  --bg: #e6e9ee;
  --surface: #f6f7f9;
  --text: #1a1c21;
  --muted: #545a65;
  --line: #c8cdd5;
  --accent: #1a1c21;
  --accent-ink: #f6f7f9;
  --link: #1a1c21;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
}

.t-ss {
  --bg: #0e1130;
  --surface: #161a43;
  --surface-2: #1d2256;
  --text: #ece5d3;
  --muted: #aaa7c6;
  --line: #2d3268;
  --accent: #f2b33d;
  --accent-ink: #1d1400;
  --link: #f2c46a;
  --soul: #4a86ff;
  --blood: #e2373f;
  --arcane: #9b6bff;
  --display: "Cinzel", Georgia, serif;
  --body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
}

.t-ft {
  --bg: #f3f9ec;
  --surface: #ffffff;
  --surface-2: #e7f3d9;
  --text: #2e2416;
  --muted: #6a5a44;
  --line: #d6e5c4;
  --accent: #f28c1b;
  --accent-ink: #2a1600;
  --link: #b85e00;
  --grass: #4fa82b;
  --grass-dark: #2f7a14;
  --sky: #8ed0f0;
  --barn: #c8452f;
  --radius: 14px;
  --radius-lg: 24px;
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.t-ss body, body.t-ss { font-size: 1.125rem; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.t-hub :focus-visible { outline-color: #3a6ff7; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .72em 1.2em; border-radius: var(--radius);
  font: 700 1rem/1.1 var(--body);
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s var(--ease), background-color .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.t-ss .brand { letter-spacing: .04em; font-weight: 800; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .98rem;
}
.nav a:not(.btn):hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
.nav .btn { margin-left: 8px; padding: .55em 1em; }
.nav-back { color: var(--muted) !important; font-weight: 500 !important; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 6px 10px; font: 700 .95rem var(--body); cursor: pointer;
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--muted); font-size: .95rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h2 { font-family: var(--body); font-size: .95rem; color: var(--text); margin-bottom: .6em; font-weight: 800; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-note { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .88rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Generic sections ---------- */
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.media-frame video, .media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   HUB
   ========================================================================== */
.hub-intro { padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 40px); }
.hub-intro h1 {
  font-size: clamp(2.6rem, 7.4vw, 6.2rem); font-weight: 800; letter-spacing: -.035em; line-height: .98;
  max-width: 14ch; margin-bottom: .35em;
}
.hub-intro p { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 40rem; margin: 0; }

.worlds { display: flex; gap: 14px; min-height: clamp(460px, 68vh, 640px); }
.world {
  position: relative; flex: 1 1 0; border-radius: 22px; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px, 3vw, 36px);
  color: #fff; text-decoration: none;
  transition: flex-grow .5s var(--ease);
}
.world-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.world::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.world-ft::after { background: linear-gradient(180deg, rgba(20,40,10,0) 30%, rgba(26,48,12,.78) 100%); }
.world-ss::after { background: linear-gradient(180deg, rgba(10,12,40,.1) 20%, rgba(10,12,40,.9) 100%); }
.world-logo { width: min(320px, 78%); margin-bottom: 14px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.world-ft .world-logo { width: min(240px, 70%); }
.world p { max-width: 30rem; font-size: 1.06rem; margin-bottom: 18px; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.world .status {
  align-self: flex-start; font-weight: 700; font-size: .85rem; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); margin-bottom: 12px;
  backdrop-filter: blur(6px);
}
.world .btn-primary { background: #fff; color: #15171c; }
.world .btn-ghost { color: #fff; }
@media (hover: hover) and (min-width: 821px) {
  .worlds:hover .world { flex-grow: .8; }
  .worlds .world:hover, .worlds .world:focus-within { flex-grow: 1.35; }
  .world:hover .world-art { transform: scale(1.04); }
}
@media (max-width: 820px) {
  .worlds { flex-direction: column; min-height: 0; }
  .world { min-height: 440px; }
}

.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.about-grid h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.02em; }
.about-text p { font-size: 1.12rem; max-width: 36rem; }
.facts { margin: 0; border-top: 2px solid var(--text); }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

.band {
  background: var(--text); color: var(--bg); border-radius: 22px;
  padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.02em; margin-bottom: .3em; }
.band p { margin: 0; opacity: .82; max-width: 38rem; }
.band .btn-primary { background: var(--bg); color: var(--text); }
.band .btn-ghost { color: var(--bg); }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; } }

.community-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   SOUL SAVIOR
   ========================================================================== */
.ss-hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(86vh, 820px); display: grid; align-items: end; }
.ss-hero picture, .ss-hero-art { position: absolute; inset: 0; z-index: -2; }
.ss-hero-art { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.ss-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,17,48,.92) 0%, rgba(14,17,48,.55) 45%, rgba(14,17,48,0) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(14,17,48,0) 35%);
}
.ss-hero .wrap { padding: 120px 0 clamp(48px, 8vw, 96px); }
.ss-hero h1 { margin: 0; }
.ss-hero h1 img { width: min(520px, 88vw); filter: drop-shadow(0 8px 30px rgba(0,0,0,.6)); margin-left: -2%; }
.ss-tagline { font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.25; max-width: 30rem; margin: 10px 0 12px; }
.ss-lede { color: var(--muted); max-width: 32rem; font-size: 1.15rem; }
.ss-release { display: inline-block; font-weight: 700; color: var(--accent); margin-bottom: 22px; }
@media (max-width: 820px) {
  .ss-hero { min-height: 0; }
  .ss-hero::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(14,17,48,.7) 55%, rgba(14,17,48,.35) 100%); }
  .ss-hero .wrap { padding-top: 38vw; }
}

/* Save / Sacrifice split — the signature section */
.fate { padding: 0; }
.fate-title { text-align: center; padding: clamp(56px, 8vw, 96px) var(--gutter) 28px; }
.fate-title h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: .2em; }
.fate-title p { color: var(--muted); max-width: 36rem; margin: 0 auto; }
.fate-split { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.fate-side { padding: clamp(36px, 6vw, 80px) clamp(24px, 6vw, 88px); position: relative; overflow: hidden; }
.fate-side h3 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .25em; }
.fate-side p { max-width: 28rem; font-size: 1.15rem; }
.fate-side ul { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: 10px; max-width: 28rem; }
.fate-side li { padding-left: 1.6em; position: relative; }
.fate-side li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7em; height: .7em; border-radius: 50%; }
.fate-save { background: radial-gradient(120% 90% at 0% 0%, rgba(74,134,255,.38), transparent 60%), #111a4a; }
.fate-save h3 { color: #9cc0ff; }
.fate-save li::before { background: var(--soul); box-shadow: 0 0 12px var(--soul); }
.fate-sacrifice { background: radial-gradient(120% 90% at 100% 0%, rgba(226,55,63,.38), transparent 60%), #2a0f22; text-align: right; }
.fate-sacrifice h3 { color: #ff8f8f; }
.fate-sacrifice p, .fate-sacrifice ul { margin-left: auto; }
.fate-sacrifice li { padding-left: 0; padding-right: 1.6em; }
.fate-sacrifice li::before { left: auto; right: 0; background: var(--blood); box-shadow: 0 0 12px var(--blood); }
.fate-orb {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6d6, var(--accent) 45%, #7a3cff 100%);
  box-shadow: 0 0 40px rgba(242,179,61,.55), 0 0 90px rgba(155,107,255,.45);
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #1d1400; font-size: .95rem;
}
@media (max-width: 820px) {
  .fate-split { grid-template-columns: 1fr; }
  .fate-sacrifice { text-align: left; }
  .fate-sacrifice p, .fate-sacrifice ul { margin-left: 0; }
  .fate-sacrifice li { padding-left: 1.6em; padding-right: 0; }
  .fate-sacrifice li::before { left: 0; right: auto; }
  .fate-orb { display: none; }
}

.pillars { display: grid; gap: clamp(40px, 6vw, 72px); }
.pillar { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.pillar:nth-child(even) .media-frame { order: 2; }
.pillar h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--accent); }
.pillar p { color: var(--text); max-width: 30rem; }
.pillar .media-frame { border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
@media (max-width: 820px) { .pillar { grid-template-columns: 1fr; } .pillar:nth-child(even) .media-frame { order: 0; } }

.ss-trailer { background: var(--surface); }
.ss-trailer .media-frame { border: 1px solid var(--line); }
.trailer-video { width: 100%; height: 100%; background: #000; }

.ss-cta { text-align: center; }
.ss-cta h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.ss-cta p { color: var(--muted); max-width: 34rem; margin: 0 auto 1.6em; }
.ss-cta .btn-row { justify-content: center; }

/* ==========================================================================
   FARMER TOON
   ========================================================================== */
.ft-hero { background: linear-gradient(180deg, #bfe6f7 0%, var(--bg) 100%); padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); }
.ft-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.ft-hero-art { border-radius: var(--radius-lg); overflow: hidden; border: 4px solid #fff; box-shadow: 0 24px 50px -24px rgba(46,36,22,.45); rotate: -1.2deg; }
.ft-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.ft-hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 32rem; }
.ft-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.ft-badges li { background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .9rem; }
.t-ft .btn { font-family: var(--display); font-weight: 600; font-size: 1.08rem; border-radius: 999px; }
.t-ft .btn-primary { box-shadow: 0 4px 0 #b55f00; }
.t-ft .btn-primary:hover { box-shadow: 0 5px 0 #b55f00; }
.t-ft .btn-primary:active { box-shadow: 0 2px 0 #b55f00; transform: translateY(2px); }
@media (max-width: 820px) { .ft-hero-grid { grid-template-columns: 1fr; } .ft-hero-art { order: -1; rotate: 0deg; } }

/* Activity switcher — the signature section */
.activities { display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.activity-tabs { display: grid; gap: 8px; }
.activity-tab {
  text-align: left; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px; cursor: pointer; color: var(--text); font: inherit;
  transition: border-color .15s, background-color .15s, transform .15s var(--ease);
}
.activity-tab:hover { border-color: var(--grass); }
.activity-tab[aria-selected="true"] { background: var(--grass); border-color: var(--grass-dark); color: #fff; transform: translateX(6px); }
.activity-tab .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.4rem; }
.activity-tab[aria-selected="true"] .icon { background: rgba(255,255,255,.22); }
.activity-tab strong { font-family: var(--display); font-weight: 600; font-size: 1.2rem; display: block; line-height: 1.1; }
.activity-tab small { font-size: .88rem; opacity: .8; }
.activity-panel { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 12px; }
.activity-panel .media-frame { border-radius: calc(var(--radius-lg) - 8px); }
.activity-panel h3 { font-size: 1.6rem; margin: 18px 10px 6px; }
.activity-panel p { margin: 0 10px 10px; max-width: 40rem; }
@media (max-width: 820px) {
  .activities { grid-template-columns: 1fr; }
  .activity-tabs { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .activity-tab { grid-template-columns: 1fr; justify-items: center; text-align: center; scroll-snap-align: start; }
  .activity-tab small { display: none; }
  .activity-tab[aria-selected="true"] { transform: none; }
}

.ft-video { background: var(--grass-dark); color: #fff; }
.ft-video .section-head p { color: rgba(255,255,255,.82); }
.yt {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer;
  border-radius: var(--radius-lg); overflow: hidden; background: #000; color: #fff; font: inherit;
}
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; padding: 14px 22px; font-family: var(--display); font-weight: 600; font-size: 1.15rem;
  box-shadow: 0 4px 0 #b55f00;
}
.yt-note { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; font-size: .85rem; background: rgba(0,0,0,.6); text-align: left; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ft-community .community-card {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px);
}
.ft-community h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
@media (max-width: 820px) { .ft-community .community-card { grid-template-columns: 1fr; } }

/* Payment result pages */
.result { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.result-card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); max-width: 560px; }
.result-card img { width: 96px; margin: 0 auto 16px; }
.result-card h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.result-card p { color: var(--muted); }
.result-card .btn-row { justify-content: center; margin-top: 20px; }

/* ==========================================================================
   DOCUMENT PAGES (legal, creators, press kit)
   ========================================================================== */
.doc-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.doc-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); letter-spacing: -.02em; max-width: 18ch; }
.t-ss .doc-hero h1 { letter-spacing: 0; }
.doc-hero p { color: var(--muted); font-size: 1.15rem; max-width: 42rem; margin-bottom: .5em; }
.doc-meta { font-size: .95rem; color: var(--muted); }

.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.toc { position: sticky; top: 88px; align-self: start; font-size: .95rem; }
.toc h2 { font-family: var(--body); font-size: .95rem; font-weight: 800; margin-bottom: .6em; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 4px 0 4px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); border-left-color: var(--text); }
.toc a.is-active { color: var(--text); border-left-color: var(--accent); font-weight: 700; }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } .toc ol { grid-template-columns: 1fr 1fr; border-left: 0; } .toc a { padding-left: 0; border-left: 0; } }

.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 2.2em; scroll-margin-top: 88px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; font-family: var(--body); font-weight: 800; }
.prose li { margin-bottom: .4em; }
.prose address { font-style: normal; }
.prose .callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 20px; margin: 1.4em 0; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0 1.6em; font-size: .97rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 800; }
.table-scroll { overflow-x: auto; }

/* Creators: yes / no lists */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.4em 0 2em; }
.rule-box { border-radius: var(--radius-lg); padding: 22px 24px; border: 2px solid; }
.rule-box h3 { margin-top: 0; font-size: 1.25rem; }
.rule-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rule-box li { padding-left: 1.9em; position: relative; margin: 0; }
.rule-box li::before { position: absolute; left: 0; top: 0; font-weight: 800; width: 1.4em; height: 1.4em; border-radius: 50%; display: grid; place-items: center; font-size: .85em; }
.rule-yes { border-color: #3d9a5b; background: color-mix(in srgb, #3d9a5b 10%, var(--surface)); }
.rule-yes li::before { content: "\2713"; background: #3d9a5b; color: #fff; }
.rule-no { border-color: #c4413b; background: color-mix(in srgb, #c4413b 9%, var(--surface)); }
.rule-no li::before { content: "\2715"; background: #c4413b; color: #fff; }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

/* Press kit */
.facts-table { display: grid; grid-template-columns: 11rem 1fr; margin: 0 0 2em; border-top: 2px solid var(--text); }
.facts-table dt, .facts-table dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts-table dt { color: var(--muted); }
@media (max-width: 560px) { .facts-table { grid-template-columns: 1fr; } .facts-table dt { border-bottom: 0; padding-bottom: 0; } }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 1em 0 2em; }
.asset { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.asset:hover { border-color: var(--accent); }
.asset-thumb { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 10px;
  background: repeating-conic-gradient(color-mix(in srgb, var(--text) 7%, transparent) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.asset-thumb { overflow: hidden; min-height: 0; }
.asset-thumb img { width: 100%; height: 100%; object-fit: contain; }
.asset-info { padding: 10px 12px; font-size: .9rem; display: flex; justify-content: space-between; gap: 8px; }
.asset-info span:last-child { color: var(--muted); white-space: nowrap; }
.download-all { margin: 0 0 2em; }

/* Art framing inside the hub panels */
.world-ft .world-art { object-position: 82% 60%; }
.world-ss .world-art { object-position: 96% 50%; }
.fate-orb { z-index: 2; }
@media (min-width: 821px) { .pillar:nth-child(even) { grid-template-columns: 1fr 1.25fr; } }
.yt-play { top: 70%; }
.world-ft::after { background: linear-gradient(180deg, rgba(20,40,10,0) 15%, rgba(26,48,12,.55) 50%, rgba(22,40,10,.9) 100%); }
.yt-play { white-space: nowrap; }
@media (max-width: 820px) { .yt-play { top: 42%; padding: 10px 16px; font-size: 1rem; } .yt-note { font-size: .75rem; padding: 6px 10px; } }
