/* MIGORY — shared design system for migory.com.
   Same tokens as The Arena (play.migory.com): near-black ground, highlighter green as the one accent,
   Unbounded for display, DM Sans for reading, JetBrains Mono for labels. */
:root {
  --bg: #030403; --panel: #0d100d; --panel2: #151a15; --line: #243024;
  --fg: #ffffff; --muted: #93a093; --soft: #c9d3c9;
  --accent: #3ef113; --on-accent: #030403; --focus: #33d6ff;
  --display: "Unbounded", "Arial Black", Impact, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1180px; --gutter: max(16px, env(safe-area-inset-left, 0px));
  --r: 14px; --r-lg: 22px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--fg); background: var(--bg); font-family: var(--body); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
p { margin: 0; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: .005em; text-wrap: balance; }
h1 em, h2 em { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* labels */
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.eyebrow b { color: var(--accent); font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: var(--soft); white-space: nowrap; }
.chip b { color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(62,241,19,.18); flex: none; }

/* buttons: same shape and type as The Arena */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .02em; line-height: 1.2; text-decoration: none; border: 1px solid transparent; border-radius: 12px; padding: 14px 20px; cursor: pointer; background: var(--accent); color: var(--on-accent); transition: transform .15s ease, background-color .15s ease, border-color .15s ease; text-align: center; }
.btn:hover { transform: translateY(-1px); background: #5cff36; }
.btn.ghost { background: rgba(3,4,3,.35); color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); background: rgba(62,241,19,.08); }
.btn.sm { padding: 10px 14px; font-size: 13px; border-radius: 10px; }
.btn[aria-disabled="true"] { background: var(--panel2); color: var(--muted); border-color: var(--line); cursor: not-allowed; transform: none; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.textlink { color: var(--fg); text-decoration: underline; text-decoration-color: rgba(62,241,19,.55); text-underline-offset: 4px; text-decoration-thickness: 2px; font-weight: 500; }
.textlink:hover { color: var(--accent); }

/* announcement strip */
.strip { display: block; background: var(--accent); color: var(--on-accent); text-decoration: none; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.strip .wrap { display: flex; gap: 10px 16px; align-items: center; justify-content: center; flex-wrap: wrap; padding-block: 9px; text-align: center; }
.strip .live { display: inline-flex; align-items: center; gap: 8px; }
.strip .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--on-accent); animation: pulse 1.6s ease-in-out infinite; }
.strip u { text-underline-offset: 3px; }
.strip:hover u { text-decoration-thickness: 2px; }
@keyframes pulse { 50% { opacity: .25; } }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(3,4,3,.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid rgba(36,48,36,.7); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: .14em; flex: none; }
.brand img { width: 46px; height: auto; }
.brand:hover { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { position: relative; color: var(--muted); text-decoration: none; font-family: var(--display); font-size: 13px; font-weight: 600; padding: 9px 10px; border-radius: 9px; white-space: nowrap; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--panel2); }
.new { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; background: var(--accent); color: var(--on-accent); border-radius: 5px; padding: 2px 5px; margin-left: 6px; vertical-align: 2px; }
.tools { display: flex; align-items: center; gap: 10px; flex: none; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: var(--panel); }
.lang a { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-decoration: none; padding: 6px 9px; border-radius: 7px; }
.lang a[aria-current="true"] { background: var(--accent); color: var(--on-accent); }
.lang a:not([aria-current="true"]):hover { color: var(--fg); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.top.open .menu-btn span { background: transparent; }
.top.open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.top.open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1240px) {
  .tools .buy { display: none; }
}
@media (max-width: 1040px) {
  .menu-btn { display: inline-flex; }
  .tools { margin-left: auto; }
  .nav { position: fixed; inset: 72px 0 auto 0; margin: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px var(--gutter) 22px; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s; max-height: calc(100dvh - 72px); overflow-y: auto; }
  .top.open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { font-size: 18px; padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 10px; }
  .nav .buy-m { display: flex !important; margin-top: 12px; font-size: 15px; border: 0; color: var(--on-accent); }
  .nav .buy-m:hover { color: var(--on-accent); }
}
.nav .buy-m { display: none; }
@media (max-width: 350px) { .brand span { display: none; } }

/* sections */
main { display: block; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section + .section { padding-top: 0; }
main > .section:last-child { padding-bottom: 0; }
.sec-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 18px; }
.sec-head .num { font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 12px; letter-spacing: .16em; }
.h-xl { font-size: clamp(36px, 6vw, 80px); line-height: .98; font-weight: 800; letter-spacing: -.01em; }
.h-lg { font-size: clamp(32px, 5vw, 60px); line-height: 1.02; font-weight: 800; }
.h-md { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; font-weight: 600; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--soft); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.stack > * + * { margin-top: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split.flip > :first-child { order: 0; } }
.panel { background: rgba(13,16,13,.92); border: 1px solid var(--line); border-radius: var(--r-lg); }

/* framed images */
.frame { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame .tag { position: absolute; left: 14px; bottom: 14px; }
.frame .tag.r { left: auto; right: 14px; }
.frame.glow::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(62,241,19,.12), inset 0 -120px 120px -60px rgba(3,4,3,.75); }

/* home: hero — the art carries the page; copy sits over the sky, the characters stay clear below */
.hero { position: relative; min-height: min(84vh, 820px); display: flex; align-items: flex-start; overflow: hidden; isolation: isolate; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3,4,3,.82) 0%, rgba(3,4,3,.45) 38%, rgba(3,4,3,0) 62%, rgba(3,4,3,.35) 86%, var(--bg) 100%), linear-gradient(90deg, rgba(3,4,3,.6) 0%, rgba(3,4,3,0) 55%); }
.hero .wrap { padding-block: clamp(36px, 4.5vw, 64px) 220px; display: grid; gap: 16px; align-content: start; }
.hero .h-xl { font-size: clamp(36px, 5vw, 68px); }
.hero .lead { max-width: 30ch; }
.hero-band { position: relative; z-index: 2; margin-top: -64px; }
.hero-foot { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { background: rgba(13,16,13,.86); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; min-width: 120px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stat strong { display: block; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.stat span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cue { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); align-items: center; justify-content: center; color: var(--fg); text-decoration: none; font-size: 18px; background: rgba(3,4,3,.6); }
.cue:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 600px) {
  .hero { min-height: 640px; }
  .hero > img { object-position: 44% 100%; }
  .hero .wrap { padding-block: 36px 200px; }
  .hero .btns .btn { flex: 1 1 100%; }
  .hero-band { margin-top: -40px; }
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .stat { min-width: 0; padding: 10px 12px; }
  .stat strong { font-size: 20px; }
  .stat span { font-size: 10px; letter-spacing: .1em; }
  .cue { display: none; }
  .h-xl br, .h-lg br { display: none; }
}

/* families */
.families { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.families li { flex: 1 1 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 10px; font-family: var(--display); font-weight: 600; font-size: 13px; line-height: 1.25; }
.families li::before { content: attr(data-n); display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--accent); margin-bottom: 6px; }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.lookup { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(62,241,19,.4); background: rgba(62,241,19,.04); color: var(--fg); text-decoration: none; font-weight: 500; }
.lookup:hover { border-style: solid; background: rgba(62,241,19,.08); }
.lookup .ic { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; }

/* eggs */
.fl-frame { aspect-ratio: 4 / 3; }
.fl-frame img { object-position: 74% 50%; }
.egg-frame { aspect-ratio: 1; max-width: 560px; justify-self: center; width: 100%; box-shadow: 0 0 0 1px rgba(62,241,19,.25), 0 30px 90px -30px rgba(62,241,19,.35); }
.soon { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* arena banner: the full lineup on top, the call to action underneath */
.arena-card { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.arena-card .art { position: relative; aspect-ratio: 16 / 9; max-height: 640px; width: 100%; }
.arena-card .art img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.arena-card .art::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(180deg, transparent, var(--panel)); }
.arena-card .label { position: absolute; top: 18px; right: 18px; z-index: 1; }
.arena-card .inner { padding: clamp(22px, 4vw, 48px); padding-top: 8px; display: grid; gap: 16px; max-width: 760px; }
@media (max-width: 600px) { .arena-card .art { aspect-ratio: 4 / 3; } }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: var(--fg); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(62,241,19,.5); }
.card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel2); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .body { padding: 16px 18px 20px; display: grid; gap: 8px; }
.card h3 { font-size: 17px; line-height: 1.25; font-weight: 600; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.meta b { color: var(--accent); font-weight: 700; }

/* call to action */
.cta { text-align: center; padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 48px); background: radial-gradient(ellipse at 50% 0%, rgba(62,241,19,.14), transparent 60%), var(--panel); border: 1px solid var(--line); border-radius: 28px; display: grid; gap: 16px; justify-items: center; }
.cta .lead { max-width: 46ch; }
.cta img.eyes { width: 72px; }

/* page header (inner pages) */
.page-head { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(32px, 4vw, 56px); overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(ellipse at 50% 0%, rgba(62,241,19,.12), transparent 60%); z-index: -1; }
.page-head .wrap { display: grid; gap: 18px; }
.page-head .lead { max-width: 44ch; }

/* long-form reading */
.prose { font-size: 17.5px; line-height: 1.75; color: #e7ece7; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; font-weight: 600; margin-top: 2.2em; color: var(--fg); }
.prose h3 { font-size: 16px; line-height: 1.35; font-weight: 600; margin-top: 2em; color: var(--accent); letter-spacing: .01em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose strong { color: var(--fg); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--accent); font-family: var(--mono); font-weight: 700; }
.prose img { border-radius: var(--r); border: 1px solid var(--line); width: 100%; }
.prose .btn { text-decoration: none; margin-top: 1.6em; }
.prose .label { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3em; }
.prose .label b { color: var(--accent); }
.prose .label + h2 { margin-top: .5em; }
.prose .video { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.prose .video iframe { width: 100%; height: 100%; border: 0; display: block; }
.callout { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: grid; gap: 10px; }
.callout .btn { margin-top: 4px !important; justify-self: start; }
.goals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 1.6em !important; }
@media (max-width: 640px) { .goals { grid-template-columns: minmax(0, 1fr); } }
.goal { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.goal h3 { margin: 0 !important; color: var(--fg); font-size: 17px; }
.goal p { font-size: 15.5px; line-height: 1.6; color: var(--soft); }
.sign { font-family: var(--display); font-weight: 600; color: var(--fg); }

/* why: side index */
.with-toc { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 56px; justify-content: center; }
.toc { position: sticky; top: 104px; align-self: start; display: grid; gap: 2px; }
.toc a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 7px 12px; border-left: 2px solid var(--line); }
.toc a:hover, .toc a.on { color: var(--fg); border-left-color: var(--accent); }
.toc .eyebrow { margin-bottom: 10px; }
@media (max-width: 980px) { .with-toc { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }

/* lore */
.scene { padding-block: clamp(40px, 6vw, 80px); }
.scene .frame { aspect-ratio: 16 / 9; margin-bottom: clamp(28px, 4vw, 48px); }
.scene .trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: clamp(28px, 4vw, 48px); }
.scene .trio .frame { aspect-ratio: 3 / 4; margin: 0; }
@media (max-width: 640px) { .scene .trio { grid-template-columns: minmax(0, 1fr); } .scene .trio .frame { aspect-ratio: 4 / 3; } }
.scene-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.scene-head .n { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 72px); line-height: 1; color: var(--accent); }
.beats p { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.7; color: #e7ece7; }
.beats p + p { margin-top: .85em; }
.beats p.boom { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 56px); color: var(--accent); letter-spacing: .04em; margin-block: .6em; }
.chapter-end { text-align: center; display: grid; gap: 18px; justify-items: center; }

/* awakened */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; }
.subnav a { color: var(--fg); text-decoration: none; font-size: 14px; font-weight: 500; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.subnav a:hover { border-color: var(--accent); }
.count { display: inline-flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 12px 18px 12px 12px; justify-self: start; }
.count img { width: 52px; }
.count strong { font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1; display: block; }
.grid-chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 28px; }
#transcendent .grid-chars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { #transcendent .grid-chars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.char { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 6px; display: grid; gap: 4px; transition: border-color .2s ease, transform .2s ease; }
.char:hover { border-color: rgba(62,241,19,.5); transform: translateY(-2px); }
.char img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 11px; background: var(--bg); }
.char .who { padding: 6px 8px 8px; display: grid; gap: 2px; }
.char .who span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.char h3 { font-size: 15px; font-weight: 600; }
.char small { font-size: 12.5px; color: var(--accent); }
.group + .group { margin-top: clamp(56px, 8vw, 104px); }
.group-head { display: grid; gap: 10px; max-width: 760px; }

/* secret garden */
.garden-cover { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: #f4f1e8; border: 1px solid var(--line); overflow: hidden; padding: 16px; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; color: #111; }
.garden-cover img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.garden-cover .gt { font-family: var(--display); font-weight: 800; letter-spacing: .14em; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.garden-cover .gt span { font-family: var(--mono); font-weight: 500; letter-spacing: .08em; font-size: 11px; text-transform: uppercase; }
.garden-cover .gb { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.garden-cover .gb strong { background: #111; color: #fff; border-radius: 10px; padding: 6px 10px; font-family: var(--display); }
.paper { background: #f4f1e8; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.paper img { aspect-ratio: 4 / 5; object-fit: contain; width: 100%; padding: 10px; }
.paper figcaption { background: var(--panel); color: var(--fg); padding: 12px 16px; font-family: var(--display); font-size: 14px; font-weight: 600; border-top: 1px solid var(--line); }
figure { margin: 0; }

/* blog */
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; color: var(--fg); text-decoration: none; transition: border-color .2s ease; }
.feature:hover { border-color: rgba(62,241,19,.5); }
.feature .thumb { min-height: 320px; background: var(--panel2); }
.feature .thumb img { width: 100%; height: 100%; object-fit: cover; }
.feature .body { padding: clamp(22px, 3vw, 40px); display: grid; gap: 14px; align-content: center; }
.feature h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.1; font-weight: 800; }
.feature p { color: var(--soft); }
@media (max-width: 820px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature .thumb { min-height: 0; aspect-ratio: 16 / 10; } }
.post-head { display: grid; gap: 16px; padding-block: clamp(40px, 6vw, 72px) 28px; }
.post-head h1 { font-size: clamp(30px, 4.8vw, 56px); line-height: 1.05; font-weight: 800; }
.back { color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.back:hover { color: var(--accent); }
.post-cover { margin-bottom: clamp(28px, 4vw, 48px); }
.post-cover img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); }
.post-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 56px; }
.post-nav a { display: grid; gap: 6px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 14px; line-height: 1.3; }
.post-nav a:hover { border-color: var(--accent); }
.post-nav a.next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .post-nav { grid-template-columns: minmax(0, 1fr); } .post-nav a.next { grid-column: 1; } }

/* footer: same pattern as The Arena's */
.foot { border-top: 1px solid var(--line); margin-top: clamp(56px, 7vw, 96px); padding-block: 40px calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot .wrap { display: grid; gap: 28px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.foot-brand { display: grid; gap: 10px; }
.foot-brand a { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-family: var(--display); font-weight: 800; letter-spacing: .14em; font-size: 16px; }
.foot-brand img { width: 38px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 28px 56px; }
.foot-cols nav { display: grid; gap: 8px; align-content: start; }
.foot-cols nav a { color: var(--soft); text-decoration: none; font-size: 14.5px; }
.foot-cols nav a:hover { color: var(--accent); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 20px; }

/* gentle reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .top, .strip, .foot { display: none; } }

/* rookie league: example profile, steps and questions */
.rk-card { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: clamp(16px, 2.4vw, 24px); display: grid; gap: 16px; box-shadow: 0 30px 90px -40px rgba(62,241,19,.35); }
.rk-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rk-user { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.rk-user .av { width: 32px; height: 32px; border-radius: 50%; background: var(--panel2); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.rk-twin { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; }
.rk-twin img { width: 132px; height: 132px; image-rendering: pixelated; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); }
.rk-twin h3 { font-size: 17px; font-weight: 600; }
.rk-stats { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; font-family: var(--mono); font-size: 12px; margin-top: 10px; }
.rk-bar { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.rk-bar i { display: block; height: 100%; border-radius: 4px; }
.lbl-P { color: #ff4d3d; } .lbl-S { color: #33d6ff; } .lbl-G { color: #a9bdd6; }
.rk-week { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rk-week div { background: var(--panel2); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.rk-week b { font-family: var(--display); font-size: 20px; line-height: 1.1; }
.rk-week span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rk-prog { display: grid; gap: 6px; }
.rk-prog .rk-bar { height: 10px; }
.rk-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.stance { font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); }
.rk-fight { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13.5px; padding: 8px 10px; border-radius: 10px; background: var(--panel2); }
.rk-fight .w { font-family: var(--mono); font-weight: 700; font-size: 11px; color: var(--accent); }
.rk-fight .l { font-family: var(--mono); font-weight: 700; font-size: 11px; color: #ff4d3d; }
@media (max-width: 520px) { .rk-twin { grid-template-columns: 96px minmax(0, 1fr); } .rk-twin img { width: 96px; height: 96px; } .rk-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 8px; align-content: start; counter-increment: step; }
.steps li::before { content: "0" counter(step); font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .16em; color: var(--accent); }
.steps h3 { font-size: 17px; font-weight: 600; }
.steps p { color: var(--soft); font-size: 15px; line-height: 1.55; }
.triangle { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--mono); font-size: 12.5px; font-weight: 700; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq details[open] { border-color: rgba(62,241,19,.4); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--display); font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--accent); flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 18px; color: var(--soft); display: grid; gap: 10px; font-size: 16px; line-height: 1.65; }
.faq .ans ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.faq .ans li::marker { color: var(--accent); }
.faq .ans strong { color: var(--fg); }
