:root {
  --bg: #0a0612;
  --bg-2: #120a1e;
  --surface: #170f26;
  --surface-2: #1f1533;
  --border: #3a2a52;
  --border-soft: #241a38;
  --text: #ece6f7;
  --text-dim: #b3a3ca;
  --text-faint: #7c6c94;
  --violet: #8b4fd6;
  --violet-bright: #b47bf0;
  --violet-deep: #4a2a72;
  --emerald: #3ddc9a;
  --emerald-bright: #7bf5c4;
  --emerald-dim: #1f8f61;
  --emerald-ink: #04160e;
  --shadow: rgba(3,2,8,0.6);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f2eef9; --bg-2: #ebe4f7; --surface: #ffffff; --surface-2: #f4eefc;
  --border: #d9cdf0; --border-soft: #e6dcf7;
  --text: #201631; --text-dim: #5c4d78; --text-faint: #8d7ba8;
  --violet: #7b3fc4; --violet-bright: #6529a8; --violet-deep: #b998ea;
  --emerald: #0f9d64; --emerald-bright: #0b7c4f; --emerald-dim: #3ddc9a; --emerald-ink: #ffffff;
  --shadow: rgba(120,90,170,0.18);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f2eef9; --bg-2: #ebe4f7; --surface: #ffffff; --surface-2: #f4eefc;
    --border: #d9cdf0; --border-soft: #e6dcf7;
    --text: #201631; --text-dim: #5c4d78; --text-faint: #8d7ba8;
    --violet: #7b3fc4; --violet-bright: #6529a8; --violet-deep: #b998ea;
    --emerald: #0f9d64; --emerald-bright: #0b7c4f; --emerald-dim: #3ddc9a; --emerald-ink: #ffffff;
    --shadow: rgba(120,90,170,0.18);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
  overflow-x: hidden;
}
#embers {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.55;
}
header.nav, main, footer { position: relative; z-index: 1; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Cinzel', serif; text-wrap: balance; margin: 0; }
.gothic { font-family: 'Eagle Lake', 'Cinzel', serif; }
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--emerald-bright);
  text-shadow: 0 0 12px color-mix(in srgb, var(--emerald) 55%, transparent);
}
.wrap { max-width: 1180px; margin: 0 auto; }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.wordmark {
  font-family: 'Eagle Lake', 'Cinzel', serif; font-size: 24px; letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  text-shadow: 0 0 18px color-mix(in srgb, var(--emerald) 35%, transparent);
}
.wordmark .rune { width: 22px; height: 22px; color: var(--emerald-bright); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--emerald) 70%, transparent)); }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14.5px; color: var(--text-dim); }
.nav-links a { text-decoration: none; transition: color .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--emerald-bright); }
/* The one button/pill language for the whole site - reused as-is for "Read More" buttons and (via
   the .chip modifier below) tag/filter pills, not just the header's own Play Now link. Works as
   either <a> or <button> (appearance reset + explicit cursor cover the button case). */
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 3px; background: var(--emerald-ink); border: 1px solid var(--emerald-dim);
  color: var(--emerald-bright); text-decoration: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2) inset, 0 0 16px -4px color-mix(in srgb, var(--emerald) 70%, transparent);
  transition: box-shadow .2s ease, transform .2s ease;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.nav-cta:hover { box-shadow: 0 0 0 1px rgba(0,0,0,0.2) inset, 0 0 24px -2px color-mix(in srgb, var(--emerald) 90%, transparent); transform: translateY(-1px); }

/* ---------- Page hero (secondary pages - no photo, atmosphere only) ---------- */
.page-hero {
  padding: 70px 0 44px; border-bottom: 1px solid var(--border-soft);
  background: radial-gradient(ellipse 900px 400px at 20% 0%, color-mix(in srgb, var(--violet) 20%, transparent), transparent 70%);
  margin: 0 calc(-1 * max(20px, env(safe-area-inset-left, 0px))) 0 calc(-1 * max(20px, env(safe-area-inset-right, 0px)));
  padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
}
.page-hero .wrap h1 { font-family: 'Eagle Lake', 'Cinzel', serif; font-weight: 400; font-size: clamp(32px, 5vw, 48px); margin-top: 14px; text-shadow: 0 0 24px color-mix(in srgb, var(--violet) 50%, transparent); }
.page-hero .wrap p { font-size: 16px; color: var(--text-dim); max-width: 56ch; margin-top: 16px; line-height: 1.6; }

/* ---------- Hero (home only) ---------- */
.hero {
  position: relative; padding: 0;
  margin: 0 calc(-1 * max(20px, env(safe-area-inset-left, 0px))) 0 calc(-1 * max(20px, env(safe-area-inset-right, 0px)));
  min-height: 640px; display: flex; align-items: flex-end; overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.hero-bg { position: absolute; inset: 0; background-image: url("launcher-bg.png"); background-size: cover; background-position: center 30%; }
.hero-fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,4,16,0.15) 0%, rgba(8,4,16,0.35) 55%, var(--bg) 96%),
    linear-gradient(90deg, rgba(8,4,16,0.55) 0%, rgba(8,4,16,0.05) 38%, rgba(8,4,16,0.05) 62%, rgba(8,4,16,0.55) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; width: 100%; padding: 160px 0 64px; }
.hero-inner { max-width: 640px; }
.hero h1 {
  font-family: 'Eagle Lake', 'Cinzel', serif; font-weight: 400;
  font-size: clamp(38px, 6vw, 64px); line-height: 1.08; margin-top: 16px; color: var(--text);
  text-shadow: 0 0 30px color-mix(in srgb, var(--violet) 55%, transparent), 0 2px 0 rgba(0,0,0,0.6);
}
.hero h1 em { font-style: normal; color: var(--emerald-bright); text-shadow: 0 0 24px color-mix(in srgb, var(--emerald) 75%, transparent); }
.hero p.lede { font-size: 17px; line-height: 1.65; color: var(--text-dim); max-width: 50ch; margin-top: 20px; text-shadow: 0 1px 8px rgba(0,0,0,0.8); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 3px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease; border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--emerald-ink); border: 1px solid var(--emerald-dim); color: var(--emerald-bright); box-shadow: 0 0 22px -4px color-mix(in srgb, var(--emerald) 75%, transparent); }
.btn-primary:hover { box-shadow: 0 0 30px -2px color-mix(in srgb, var(--emerald) 95%, transparent); }
.btn-ghost { background: rgba(20,12,32,0.55); border: 1px solid var(--border); color: var(--text); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: var(--violet-bright); }
.hero-stats { display: flex; gap: 30px; margin-top: 44px; flex-wrap: wrap; }
.stat .num { font-family: 'Cinzel', serif; font-weight: 700; font-size: 25px; color: var(--emerald-bright); text-shadow: 0 0 16px color-mix(in srgb, var(--emerald) 60%, transparent); }
.stat .lbl { font-size: 12px; color: var(--text-faint); margin-top: 2px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.03em; }

/* ---------- Sections ---------- */
section { padding: 86px 0; position: relative; }
.section-head { max-width: 620px; margin-bottom: 46px; }
.section-head h2 { font-family: 'Eagle Lake', 'Cinzel', serif; font-weight: 400; font-size: clamp(26px, 3.4vw, 36px); margin-top: 10px; }
.section-head p { color: var(--text-dim); font-size: 15.5px; margin-top: 12px; line-height: 1.6; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: 4px; overflow: hidden; }
.feature-card { background: var(--surface); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; position: relative; transition: background .2s ease; }
.feature-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: transparent; transition: background .2s ease, box-shadow .2s ease; }
.feature-card:hover { background: var(--surface-2); }
.feature-card:hover::before { background: var(--emerald); box-shadow: 0 0 14px 1px color-mix(in srgb, var(--emerald) 80%, transparent); }
.feature-card.featured { grid-column: span 2; background: linear-gradient(155deg, var(--surface-2), var(--surface)); }
.feature-card.featured::before { background: var(--violet-bright); box-shadow: 0 0 14px 1px color-mix(in srgb, var(--violet) 70%, transparent); }
.feature-card.featured:hover::before { background: var(--emerald); box-shadow: 0 0 14px 1px color-mix(in srgb, var(--emerald) 80%, transparent); }
.feature-card.featured .feature-icon { width: 44px; height: 44px; }
.feature-card.featured h3 { font-size: 21px; }
.feature-card.featured p { font-size: 14.5px; max-width: 46ch; }
.feature-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: var(--emerald-bright); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--emerald) 55%, transparent)); }
.feature-card h3 { font-size: 18px; color: var(--text); font-weight: 700; letter-spacing: 0.01em; }
.feature-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-dim); }
.feature-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.feature-tags span { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.04em; padding: 4px 9px; border-radius: 3px; border: 1px solid var(--border); color: var(--text-faint); }
.feature-card.featured .feature-tags span { color: var(--emerald-dim); border-color: color-mix(in srgb, var(--emerald) 30%, var(--border)); }

/* ---------- Teaser strip (home -> other pages) ---------- */
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.teaser-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px;
  padding: 26px; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .18s ease, transform .18s ease;
}
.teaser-card:hover { transform: translateY(-3px); border-color: var(--violet-bright); }
.teaser-card .eyebrow { display: block; }
.teaser-card h3 { font-size: 19px; margin-top: 6px; }
.teaser-card p { margin: 0; font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }
.teaser-card .go { margin-top: auto; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--emerald-dim); padding-top: 10px; }
.teaser-card:hover .go { color: var(--emerald-bright); }

/* ---------- How to play ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: 4px; overflow: hidden; }
.step { position: relative; padding: 26px 24px; background: var(--surface); }
.step .step-num { font-family: 'Cinzel', serif; font-size: 32px; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--violet-bright); opacity: 0.85; }
.step h3 { font-size: 16.5px; margin-top: 10px; font-weight: 700; }
.step p { color: var(--text-dim); font-size: 14px; line-height: 1.6; margin-top: 8px; }
.download-panel {
  margin-top: 1px; background: var(--surface-2); border: 1px solid var(--border-soft); border-top: none; border-radius: 0 0 4px 4px;
  padding: 30px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.download-panel .dl-text .eyebrow { margin-bottom: 8px; display: block; }
.download-panel h3 { font-family: 'Cinzel', serif; font-size: 19px; }
.download-panel .dl-note { color: var(--text-faint); font-size: 13px; margin-top: 8px; }
.dl-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.sys-req { margin-top: 40px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px; padding: 26px 30px; }
.sys-req h3 { font-family: 'Cinzel', serif; font-size: 17px; margin-bottom: 16px; }
.sys-req dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 20px; margin: 0; font-size: 14px; }
.sys-req dt { color: var(--text-faint); font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; align-self: start; padding-top: 2px; }
.sys-req dd { margin: 0; color: var(--text-dim); }

/* ---------- Community ---------- */
.community-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: 4px; overflow: hidden; }
.comm-card { background: var(--surface); text-decoration: none; color: var(--text); padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: background .2s ease; }
.comm-card:hover { background: var(--surface-2); }
.comm-card h3 { font-size: 16.5px; display: flex; align-items: center; gap: 10px; font-family: 'Inter'; font-weight: 700; }
.comm-card p { margin: 0; font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }
.comm-card .go { margin-top: auto; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--emerald-dim); padding-top: 8px; }
.comm-card:hover .go { color: var(--emerald-bright); }
.comm-card.is-disabled { cursor: default; opacity: 0.5; filter: grayscale(0.6); }
.comm-card.is-disabled:hover { background: var(--surface); }
.comm-card.is-disabled .go { color: var(--text-faint); font-style: italic; text-transform: none; letter-spacing: 0; }

/* ---------- Guides / Updates: shared boxed-row list + "Read More" pattern ---------- */
.content-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.content-count { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-faint); letter-spacing: 0.03em; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Every list row (one guide or one update) is its own clearly boxed section - icon/tag/title/
   summary on the left, a single primary-action button pinned to the right and vertically centered. */
.content-list { display: flex; flex-direction: column; gap: 16px; }
.content-row {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 24px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px;
  padding: 26px 30px; transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.content-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--emerald); box-shadow: 0 0 12px 0 color-mix(in srgb, var(--emerald) 55%, transparent); }
.content-row.fix::before { background: var(--violet-bright); box-shadow: 0 0 12px 0 color-mix(in srgb, var(--violet) 60%, transparent); }
.content-row.change::before { background: var(--text-faint); box-shadow: none; }
.content-row:hover { border-color: var(--border); background: var(--surface-2); transform: translateY(-2px); }
.content-row-icon {
  width: 46px; height: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: var(--emerald-bright); background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 8px;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--emerald) 45%, transparent));
}
.content-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.content-row-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.content-row h3 { font-size: 18.5px; margin: 0; }
.content-row p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-dim); max-width: 62ch; }
.content-row-date, .content-row-readtime { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.content-row-cta { flex-shrink: 0; }
@media (max-width: 700px) {
  .content-row { flex-direction: column; align-items: stretch; gap: 16px; padding: 22px 24px; }
  .content-row-cta { align-self: flex-start; }
}

/* .chip: a compact pill modifier of .nav-cta (see its own comment) so every tag/filter reads as a
   small button in the same visual language as "Read More" and "Play Now", not a plain label. */
.nav-cta.chip { padding: 5px 13px; font-size: 10px; border-radius: 999px; box-shadow: none; gap: 0; }
.nav-cta.chip:hover { transform: none; box-shadow: 0 0 12px -3px color-mix(in srgb, var(--emerald) 70%, transparent); }
.nav-cta.chip.fix { background: color-mix(in srgb, var(--violet) 14%, transparent); border-color: var(--violet-deep); color: var(--violet-bright); }
.nav-cta.chip.fix:hover { box-shadow: 0 0 12px -3px color-mix(in srgb, var(--violet) 70%, transparent); }
.nav-cta.chip.change { background: transparent; border-color: var(--border); color: var(--text-dim); }
.nav-cta.chip.change:hover { box-shadow: none; border-color: var(--text-faint); }
.nav-cta.chip.active { background: color-mix(in srgb, var(--emerald) 24%, var(--emerald-ink)); box-shadow: 0 0 14px -3px color-mix(in srgb, var(--emerald) 80%, transparent); }

/* ---------- Detail / article layout (guide or update "Read More" page) ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 26px; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--text-dim); text-decoration: none; transition: color .15s ease, gap .15s ease; }
.back-link:hover { color: var(--emerald-bright); gap: 9px; }
.detail-header h1 { font-family: 'Eagle Lake', 'Cinzel', serif; font-weight: 400; font-size: clamp(28px, 4vw, 40px); margin-top: 12px; }
.detail-meta { display: flex; align-items: center; gap: 16px; margin: 14px 0 0; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-faint); flex-wrap: wrap; }
.detail-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }
.detail-divider { height: 1px; background: linear-gradient(90deg, var(--border-soft), transparent 70%); margin: 32px 0 40px; }
.detail-layout { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: start; }
.detail-layout.no-facts { grid-template-columns: 1fr; }
.detail-body { max-width: 68ch; }
.detail-body > p:first-of-type { font-size: 17.5px; line-height: 1.7; color: var(--text); }
.detail-body p { font-size: 15.5px; line-height: 1.8; color: var(--text-dim); margin: 0 0 18px; }
.detail-body img { max-width: 100%; border-radius: 8px; margin: 22px 0; display: block; border: 1px solid var(--border-soft); }
.detail-body h1, .detail-body h2, .detail-body h3 { font-family: 'Cinzel', serif; font-size: 18px; margin: 34px 0 14px; padding-top: 24px; border-top: 1px solid var(--border-soft); }
.detail-body h1:first-child, .detail-body h2:first-child, .detail-body h3:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.detail-body ul, .detail-body ol { color: var(--text-dim); font-size: 15px; line-height: 1.85; padding-left: 4px; margin: 0 0 18px; list-style: none; }
.detail-body ul li, .detail-body ol li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.detail-body ul li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 1px; background: var(--emerald); transform: rotate(45deg); box-shadow: 0 0 6px color-mix(in srgb, var(--emerald) 70%, transparent); }
.detail-body strong { color: var(--text); }
.facts-panel { position: sticky; top: calc(90px + env(safe-area-inset-top, 0px)); background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px; padding: 22px 24px; }
.facts-panel .eyebrow { display: block; margin-bottom: 14px; }
.facts-panel dl { margin: 0; display: grid; gap: 14px; }
.facts-panel dt { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-faint); letter-spacing: 0.03em; text-transform: uppercase; }
.facts-panel dd { margin: 3px 0 0; font-size: 13.5px; color: var(--text); line-height: 1.5; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } .facts-panel { position: static; } }

footer {
  border-top: 1px solid var(--border-soft); padding: 34px 0 calc(34px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
footer .wordmark { font-size: 16px; }
footer .foot-links { display: flex; gap: 20px; font-size: 13px; color: var(--text-faint); }
footer .foot-links a { text-decoration: none; }
footer .foot-links a:hover { color: var(--emerald-bright); }

@media (max-width: 860px) {
  .feature-grid, .steps, .community-grid, .teaser-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.featured { grid-column: span 2; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .feature-grid, .steps, .community-grid, .teaser-grid { grid-template-columns: 1fr; }
  .feature-card.featured { grid-column: span 1; }
  .hero { min-height: 560px; }
  .hero-content { padding: 130px 0 48px; }
  .download-panel { flex-direction: column; align-items: flex-start; }
}

/* ---------- Account portal ---------- */
.account-panel {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px;
  padding: 30px 32px; margin-bottom: 20px; max-width: 420px;
}
.account-panel:has(.skill-grid),
.account-panel:has(.item-grid),
.account-panel:has(.lootbox-list),
.account-panel:has(.content-list) { max-width: 720px; }
.account-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.account-field label {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-faint);
}
.account-field input {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 5px;
  padding: 11px 14px; font-size: 14.5px; color: var(--text); font-family: 'Inter', sans-serif;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.account-field input:focus {
  outline: none; border-color: var(--emerald-dim);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--emerald) 18%, transparent);
}
.account-panel .btn { width: 100%; justify-content: center; margin-top: 4px; }
.account-error {
  margin-top: 14px; padding: 11px 14px; border-radius: 5px; font-size: 13px;
  background: color-mix(in srgb, #c0392b 14%, transparent); border: 1px solid color-mix(in srgb, #c0392b 40%, var(--border));
  color: #ff9d8a;
}
.account-summary-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.account-summary-head h2 { font-family: 'Eagle Lake', 'Cinzel', serif; font-weight: 400; font-size: 26px; }
.account-stat-strip { display: flex; gap: 28px; flex-wrap: wrap; }
.skill-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: 6px; overflow: hidden; margin-top: 16px; }
.skill-cell { background: var(--surface-2); padding: 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.skill-cell .skill-lvl { font-family: 'Cinzel', serif; font-weight: 700; font-size: 17px; color: var(--emerald-bright); }
.skill-cell .skill-name { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-faint); letter-spacing: 0.02em; text-transform: uppercase; }
@media (max-width: 560px) {
  .account-panel { padding: 24px 22px; }
  .skill-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Account portal: tabs, item grids, loot box shop ---------- */
.account-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 20px; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.item-cell {
  background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 6px;
  padding: 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
}
.item-cell .item-slot { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.03em; }
.item-cell .item-icon { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--emerald) 30%, transparent)); }
.item-cell .item-amount { font-family: 'Cinzel', serif; font-weight: 700; font-size: 13px; color: var(--emerald-bright); min-height: 16px; }
.item-cell .item-name { font-size: 12px; color: var(--text-dim); line-height: 1.3; }

.lootbox-list { display: flex; flex-direction: column; gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: 6px; overflow: hidden; margin-top: 14px; }
.lootbox-row { background: var(--surface-2); padding: 14px 18px; display: flex; align-items: center; gap: 16px; }
.lootbox-row .lootbox-name { flex: 1; font-size: 14.5px; color: var(--text); }
.lootbox-row .lootbox-price { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--text-faint); white-space: nowrap; }
.nav-cta[disabled] { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.nav-cta[disabled]:hover { transform: none; box-shadow: none; }

@media (max-width: 560px) {
  .lootbox-row { flex-wrap: wrap; }
}

/* ---------- Guide / update pages, styled like the Tides of the Deep preview (2026-10-08) ---------- */
.detail-body h2, .detail-body h3 { font-family: 'Cinzel', serif; font-weight: 700; font-size: 23px; line-height: 1.25;
  color: var(--emerald-bright); margin: 40px 0 16px; padding-top: 28px; border-top: 1px solid var(--border-soft);
  scroll-margin-top: 100px; text-wrap: balance; }
.detail-body h4 { font-family: 'Cinzel', serif; font-weight: 500; font-size: 16px; letter-spacing: .04em;
  color: var(--violet-bright); margin: 26px 0 10px; }
.detail-body code { font: 600 13px/1 'JetBrains Mono', ui-monospace, Consolas, monospace; background: var(--surface-2);
  border: 1px solid var(--border-soft); border-radius: 4px; padding: 2px 6px; color: var(--emerald-bright); white-space: nowrap; }
.detail-body .tbl { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: 8px; margin: 4px 0 22px; }
.detail-body table { border-collapse: collapse; width: 100%; font-size: 14px; }
.detail-body th, .detail-body td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.detail-body th { font: 600 11.5px/1.2 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-faint); background: var(--surface); }
.detail-body td { color: var(--text-dim); line-height: 1.6; }
.detail-body td:first-child { color: var(--text); }
.detail-body tr:last-child td { border-bottom: 0; }
.detail-body ul ul { margin: 8px 0 0; }
.facts-panel .guide-toc { display: flex; flex-direction: column; gap: 2px; margin-bottom: 22px; }
.facts-panel .guide-toc .eyebrow { margin-bottom: 10px; }
.facts-panel .guide-toc a { color: var(--text-dim); text-decoration: none; font-size: 13.5px; line-height: 1.35;
  padding: 5px 0 5px 10px; border-left: 2px solid var(--border-soft); }
.facts-panel .guide-toc a:hover, .facts-panel .guide-toc a:focus-visible { color: var(--emerald-bright); border-left-color: var(--emerald); outline: none; }
.facts-panel { max-height: calc(100vh - 120px); overflow-y: auto; }
@media (max-width: 900px) { .facts-panel { max-height: none; } }
@media (prefers-reduced-motion: no-preference) { .facts-panel .guide-toc a { transition: color .15s, border-color .15s; } }
