/* AION2 Guide — AION 2 guides
   Dark-first "aether" theme with a light variant. Tokens on :root; components below in page order. */

/* ---- tokens ------------------------------------------------------------------------------------- */
/* OpenAI-style: monochrome black / white, Inter throughout, pill buttons, no ornament. Dark by default; light only via the toggle. */
:root {
  --bg: #000000;
  --bg-2: #0a0a0a;
  --surface: #111111;
  --surface-2: #181818;
  --surface-3: #222222;
  --glass: rgba(0, 0, 0, .72);
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --hair: none;
  --text: #ffffff;
  --text-dim: #d4d4d4;
  --muted: #a3a3a3;
  --faint: #737373;
  --gold: #ffffff;
  --gold-2: #a3a3a3;
  --aether: #ffffff;
  --aether-2: #e5e5e5;
  --violet: #9b78b8;
  --good: #8fbf7f;
  --bad: #ff6b5e;
  --warn: #e3a54a;
  --on-accent: #000000;
  --shadow: none;
  --shadow-sm: none;
  --grain-o: 0;
  --vignette: none;
  color-scheme: dark;
  --accent: var(--aether);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --font-ui: Inter, "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Inter, "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: var(--font-ui);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --topbar-h: 68px;
  --wrap: 1180px;
  --wrap-wide: 1440px;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #fafafa;
  --surface: #f5f5f5;
  --surface-2: #efefef;
  --surface-3: #e7e7e7;
  --glass: rgba(255, 255, 255, .8);
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .16);
  --hair: none;
  --text: #0d0d0d;
  --text-dim: #2f2f2f;
  --muted: #5d5d5d;
  --faint: #8f8f8f;
  --gold: #0d0d0d;
  --gold-2: #5d5d5d;
  --aether: #0d0d0d;
  --aether-2: #2f2f2f;
  --violet: #634a8a;
  --good: #3c6e2f;
  --bad: #b3261e;
  --warn: #94600f;
  --on-accent: #ffffff;
  --shadow: none;
  --shadow-sm: none;
  --grain-o: 0;
  --vignette: none;
  color-scheme: light;
}

/* Class accents (dark / light): saturated heraldic tones */
.accent-crimson  { --accent: #ef5a52; } .accent-emerald { --accent: #6cc58a; } .accent-sapphire { --accent: #6e9cf0; }
.accent-frost    { --accent: #7ccbe6; } .accent-sunlight { --accent: #e8b956; } .accent-spirit { --accent: #b58ce8; }
.accent-amber    { --accent: #ee9a52; } .accent-violet { --accent: #a08be0; }
:root[data-theme="light"] .accent-crimson { --accent: #a8261f; } :root[data-theme="light"] .accent-emerald { --accent: #2a6e43; }
:root[data-theme="light"] .accent-sapphire { --accent: #2f4f9c; } :root[data-theme="light"] .accent-frost { --accent: #1b6378; }
:root[data-theme="light"] .accent-sunlight { --accent: #85570f; } :root[data-theme="light"] .accent-spirit { --accent: #63409e; }
:root[data-theme="light"] .accent-amber { --accent: #8f4a12; } :root[data-theme="light"] .accent-violet { --accent: #4f3f94; }

/* Language-specific type: CJK sans for text, CJK serif for headings. */
:root[data-lang="zh-cn"] { --font-ui: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; --font-display: Inter, "Noto Sans SC", system-ui, sans-serif; }
:root[data-lang="zh-tw"] { --font-ui: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; --font-display: Inter, "Noto Sans TC", system-ui, sans-serif; }
:root[data-lang="ja"]    { --font-ui: Inter, "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif; --font-display: Inter, "Noto Sans JP", system-ui, sans-serif; }
:root[data-lang="ko"]    { --font-ui: Inter, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; --font-display: Inter, "Noto Sans KR", system-ui, sans-serif; }

/* ---- base ---------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 72px); }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 16px/1.65 var(--font-ui);
  color: var(--text);
  background: var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:root[data-lang="ko"] body { word-break: keep-all; }  /* line breaking only — type matches English */
:root:is([data-lang^="zh"], [data-lang="ja"], [data-lang="ko"]) { --font-label: var(--font-ui); }
body::after { content: ""; position: fixed; inset: 0; z-index: 199; pointer-events: none; background: var(--vignette); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: var(--grain-o);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, .hcard-name, .tile-title, .lead { text-wrap: balance; }
:root[data-lang="ja"] :is(h1, h2, h3, .lead, .tile-title), :root[data-lang^="zh"] :is(h1, h2, h3) { word-break: auto-phrase; line-break: strict; }
img, svg { max-width: 100%; }
a { color: var(--aether); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
strong, b { font-weight: 650; color: var(--text); }
em { color: var(--text-dim); }
ul, ol { padding-left: 1.25em; }
code, kbd { font-family: var(--font-mono); }
::selection { background: color-mix(in srgb, var(--aether) 35%, transparent); }
:focus-visible { outline: 2px solid var(--aether); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; 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: 100; padding: 8px 14px; border-radius: 8px; background: var(--aether); color: var(--on-accent); font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-wide { width: 100%; max-width: var(--wrap-wide); margin: 0 auto; padding: 0 24px; }
.ico { width: 18px; height: 18px; flex: none; }
.arr { width: .9em; height: .6em; vertical-align: .05em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---- buttons, chips, tags ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line-2)); background: color-mix(in srgb, var(--surface-2) 75%, transparent); color: var(--text);
  font: 600 .92rem/1.2 var(--font-ui); letter-spacing: 0;
  cursor: pointer; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; text-decoration: none !important; white-space: nowrap;
}
.btn:hover { border-color: color-mix(in srgb, var(--aether) 55%, var(--line-2)); transform: translateY(-1px); }
.btn .ico { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--aether) 88%, #fff 12%), var(--aether-2) 92%);
  border-color: color-mix(in srgb, var(--gold) 70%, transparent); color: var(--on-accent); text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  box-shadow: inset 0 1px 0 rgba(255, 210, 180, .35), inset 0 0 0 1px rgba(0, 0, 0, .25), 0 14px 30px -14px color-mix(in srgb, var(--aether) 75%, transparent);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 210, 180, .4), inset 0 0 0 1px rgba(0, 0, 0, .25), 0 18px 36px -14px color-mix(in srgb, var(--aether) 90%, transparent); }
.btn-ghost { background: transparent; }
.btn-glass { background: var(--glass); backdrop-filter: blur(10px); }
.btn-sm { padding: 7px 13px; font-size: .82rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--text-dim); cursor: pointer; transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2);
  font: 600 .72rem/1.6 var(--font-ui); color: var(--text-dim); background: var(--surface-2); letter-spacing: .02em;
}
.chips { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.wip-tag {
  display: inline-block; padding: 1px 7px; border-radius: 6px; font: 700 .64rem/1.6 var(--font-label); letter-spacing: .06em;
  color: #241a05; background: var(--warn); vertical-align: .15em; text-transform: uppercase;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 .76rem/1.4 var(--font-label);
  letter-spacing: .14em; text-transform: uppercase; color: var(--aether);
}
.eyebrow { font-size: .72rem; letter-spacing: .24em; color: var(--gold); }
.eyebrow .pulse { width: 7px; height: 7px; border-radius: 0; transform: rotate(45deg); background: var(--aether); box-shadow: 0 0 10px var(--aether); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--aether) 70%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.lead { font-size: 1.12rem; color: var(--text-dim); max-width: 62ch; }
.note { font-size: .88rem; color: var(--muted); }
.key {
  display: inline-block; min-width: 1.6em; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px;
  font: 600 .78rem/1.5 var(--font-mono); color: var(--text); background: var(--surface-3); text-align: center; white-space: nowrap;
}
kbd { display: inline-block; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); font-size: .72rem; color: var(--muted); background: var(--surface-2); }
.diff { display: inline-flex; align-items: center; gap: 4px; }
.diff i { width: 16px; height: 6px; border-radius: 3px; background: var(--line-2); }
.diff i.on { background: var(--accent); box-shadow: 0 0 10px -2px var(--accent); }
.diff span { margin-left: 4px; font-size: .84rem; color: var(--text-dim); }

/* ---- top bar ------------------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--topbar-h);
  background: transparent; border-bottom: 1px solid transparent;
  backdrop-filter: blur(0) saturate(100%); -webkit-backdrop-filter: blur(0) saturate(100%);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease, -webkit-backdrop-filter .3s ease;
}
/* Frosted glass once the page scrolls: see-through tint, strong blur, a hairline and a soft shadow. */
.topbar.is-scrolled {
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .55), inset 0 -1px 0 rgba(255, 255, 255, .04);
}
:root[data-theme="light"] .topbar.is-scrolled {
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .25), inset 0 -1px 0 rgba(255, 255, 255, .5);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar.is-scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); }
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--hair); opacity: 0; transition: opacity .3s; }
.topbar.is-scrolled::after { opacity: .5; }
.topbar-in { height: 100%; max-width: var(--wrap-wide); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; flex: none; }
.brand-mark { width: 34px; height: 34px; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--aether) 45%, transparent)); }
.brand-text { display: grid; line-height: 1.1; }
.brand-text b { font: 600 1.18rem/1.1 var(--font-display); letter-spacing: -.01em;
  background: linear-gradient(180deg, var(--text), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { font: 500 .62rem/1.5 var(--font-ui); color: var(--muted); letter-spacing: .2em; text-transform: uppercase; }
.mainnav { display: flex; gap: 4px; margin-left: 10px; }
.menu { position: relative; }
.menu-btn, .lang-switch {
  list-style: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 10px;
  color: var(--text-dim); font-weight: 550; font-size: .9rem; cursor: pointer; user-select: none; white-space: nowrap; border: 1px solid transparent;
}
.menu-btn::-webkit-details-marker, .lang-switch::-webkit-details-marker { display: none; }
.menu-btn:hover, .lang-switch:hover, details[open] > .menu-btn, details[open] > .lang-switch { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.menu-btn.is-here { color: var(--text); }
.menu-btn img { border-radius: 6px; }
.menu-btn .chev { width: 14px; height: 14px; opacity: .6; transition: transform .2s; }
details[open] > .menu-btn .chev { transform: rotate(180deg); }
.menu-panel, .lang-panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(18px); box-shadow: var(--shadow);
  animation: drop .18s ease-out;
}
details.is-closing > .menu-panel, details.is-closing > .lang-panel { animation: lift .15s ease-in forwards; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes lift { to { opacity: 0; transform: translateY(-6px) scale(.98); } }
.menu-label { margin: 0 0 8px; font: 600 .68rem/1.4 var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.menu-classes { width: 560px; }
.cm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.cm-item {
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 8px 10px;
  border-radius: 12px; color: var(--text); text-decoration: none !important; border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.cm-item img { grid-row: span 2; border-radius: 10px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); }
.cm-item:hover, .cm-item[aria-current] { background: color-mix(in srgb, var(--accent) 10%, var(--surface-2)); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.cm-name { font-weight: 650; font-size: .92rem; }
.cm-role { font-size: .76rem; color: var(--muted); }
.menu-guides { width: 760px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nm-item {
  display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; padding: 8px; border-radius: 10px; color: var(--text); text-decoration: none !important;
  transition: background .15s;
}
.nm-ico { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--surface-3); color: var(--aether); }
.nm-name { font-weight: 600; font-size: .9rem; }
.nm-desc { font-size: .76rem; color: var(--muted); line-height: 1.4; }
.nm-item:hover, .nm-item[aria-current] { background: var(--surface-2); }
.nm-item[aria-current] .nm-ico { background: var(--aether); color: var(--on-accent); }
.topbar-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.chip-timer {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-dim); font-size: .78rem; white-space: nowrap; text-decoration: none !important; transition: opacity .2s, transform .2s;
}
.chip-timer .ico { width: 15px; height: 15px; color: var(--violet); }
.chip-timer b { font: 700 .78rem var(--font-mono); color: var(--text); font-variant-numeric: tabular-nums; }
.chip-timer.is-away { opacity: 0; pointer-events: none; transform: translateY(-4px); }
.rift-timer.is-open { border-color: color-mix(in srgb, var(--good) 60%, transparent); color: var(--good); }
.rift-timer.is-open .ico { color: var(--good); }
.rift-timer.is-soon { border-color: color-mix(in srgb, var(--warn) 60%, transparent); }
.wr-chip .ico { color: var(--gold); }
.search-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); cursor: pointer; font: 500 .86rem var(--font-ui); min-width: 170px;
}
.search-btn:hover { border-color: var(--line-2); color: var(--text); }
.search-btn kbd { margin-left: auto; }
.lang-menu { position: relative; }
.lang-switch b, .lang-switch span { font: 700 .78rem var(--font-mono); }
.lang-panel { left: auto; right: 0; width: 250px; padding: 8px; }
.lang-panel a { display: grid; grid-template-columns: 34px 1fr 18px; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none !important; }
.lang-panel a b { font: 700 .74rem var(--font-mono); color: var(--muted); }
.lang-panel a:hover { background: var(--surface-2); }
.lang-panel a[aria-current] { background: color-mix(in srgb, var(--aether) 12%, var(--surface-2)); }
.lang-panel a .ico { width: 16px; height: 16px; color: var(--aether); }
.lang-note { margin: 6px 8px 4px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--muted); line-height: 1.5; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
.nav-toggle { display: none; }

/* phone drawer */
.drawer {
  margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(380px, 92vw); padding: 0; border: 0; border-left: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
.drawer[open] { animation: slidein .22s ease-out; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.drawer::backdrop { background: rgba(3, 6, 12, .55); backdrop-filter: blur(4px); }
.drawer-in { padding: 16px 18px 28px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer .menu-label { margin-top: 18px; }
.drawer-classes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.drawer-classes a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); font-size: .88rem; font-weight: 600; }
.drawer-classes a[aria-current] { border-color: var(--accent); }
.drawer-links { display: grid; gap: 2px; }
.drawer-links a { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; color: var(--text); }
.drawer-links a .ico { color: var(--aether); }
.drawer-links a[aria-current], .drawer-links a:hover, .drawer-classes a:hover { background: var(--surface-2); text-decoration: none; }
.drawer-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer-langs a { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-dim); font-size: .84rem; }
.drawer-langs a[aria-current] { border-color: var(--aether); color: var(--aether); }

/* ---- footer --------------------------------------------------------------------------------------- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-2) 70%, transparent)); }
.footer-in { display: grid; grid-template-columns: 1.1fr 1.6fr; gap: 48px; padding-top: 48px; padding-bottom: 32px; }
.footer-brand p { margin: 14px 0 0; color: var(--text-dim); font-size: .9rem; max-width: 44ch; }
.footer-brand .foot-muted { color: var(--faint); font-size: .8rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-cols a { color: var(--text-dim); font-size: .88rem; }
.footer-cols a:hover { color: var(--text); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--faint); }
.foot-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot-langs a { color: var(--muted); }
.foot-langs a[aria-current] { color: var(--aether); }
.foot-link { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.foot-link:hover { color: var(--text); }

/* Analytics consent (only rendered when config.json sets "ga") */
.consent {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; margin-inline: auto; max-width: 640px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 18px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  font-size: .88rem; line-height: 1.5; color: var(--muted);
}
.consent[hidden] { display: none; }
.consent p { flex: 1 1 320px; margin: 0; }
.consent strong { color: var(--text); }
.consent-actions { display: flex; gap: 8px; margin-left: auto; }

/* ---- search ---------------------------------------------------------------------------------------- */
.search-dlg {
  width: min(640px, calc(100vw - 24px)); margin: 12vh auto auto; padding: 0; border: 1px solid var(--line-2); border-radius: 18px;
  background: var(--surface); color: var(--text); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.search-dlg[open] { animation: drop .16s ease-out; }
.search-dlg::backdrop { background: rgba(3, 6, 12, .6); backdrop-filter: blur(6px); }
.search-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search-bar .ico { color: var(--aether); }
.search-q { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 1.05rem var(--font-ui); }
.search-q::-webkit-search-cancel-button { display: none; }
.search-res { list-style: none; margin: 0; padding: 8px; max-height: min(60vh, 460px); overflow-y: auto; }
.search-res li a { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.search-res li img { border-radius: 7px; }
.search-res li[aria-selected="true"] a { background: color-mix(in srgb, var(--aether) 12%, var(--surface-2)); }
.search-t { display: grid; font-weight: 550; }
.search-t small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.search-k { font: 600 .66rem var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.search-ico { width: 28px; height: 28px; border-radius: 7px; background: var(--surface-3); }
.search-empty { padding: 20px; text-align: center; color: var(--muted); }
.search-foot { display: flex; gap: 16px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--faint); }
.search-foot kbd { margin-right: 2px; }

/* ---- tooltips -------------------------------------------------------------------------------------- */
.sk-tip {
  position: fixed; z-index: 90; width: min(340px, calc(100vw - 16px)); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--surface) 97%, transparent); backdrop-filter: blur(14px); box-shadow: var(--shadow); pointer-events: none; font-size: .84rem;
}
.sk-tip p { margin: 0; }
.sk-tip-name { font-weight: 700; font-size: .95rem; color: var(--gold); }
.sk-tip-name.is-item.g11 { color: var(--text-dim); } .sk-tip-name.is-item.g21 { color: #5fd08d; } .sk-tip-name.is-item.g31 { color: #6aa5ff; }
.sk-tip-name.is-item.g41 { color: #f0a24a; } .sk-tip-name.is-item.g51, .sk-tip-name.is-item.g61 { color: #c99bff; } .sk-tip-name.is-item.g71 { color: #ff7b7b; }
.sk-tip-meta { margin-top: 2px !important; font: 600 .7rem var(--font-label); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.sk-tip-desc { margin-top: 8px !important; color: var(--text-dim); line-height: 1.55; }
.sk-tip ul { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.sk-tip li { display: grid; grid-template-columns: 26px 1fr; gap: 6px; color: var(--text-dim); line-height: 1.45; }
.sk-tip li b { font: 700 .72rem/1.6 var(--font-mono); color: var(--aether); }

/* ---- home: hero ------------------------------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(-1 * var(--topbar-h)); padding: calc(var(--topbar-h) + 72px) 0 84px; min-height: 640px; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: .6; animation: drift 38s ease-in-out infinite alternate; filter: sepia(.65) saturate(1.5) hue-rotate(-28deg) contrast(1.08) brightness(.8); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 8%, color-mix(in srgb, var(--bg) 70%, transparent) 46%, color-mix(in srgb, var(--bg) 35%, transparent)),
              linear-gradient(0deg, var(--bg), transparent 45%);
}
:root[data-theme="light"] .hero-bg img { opacity: .3; }
@keyframes drift { to { transform: scale(1.06) translate(-1%, 1%); } }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 48px; align-items: center; }
.hero h1 {
  font: 600 clamp(2.5rem, 5.2vw, 4.4rem)/1.04 var(--font-display); letter-spacing: -.012em; margin-bottom: 22px;
  background: linear-gradient(180deg, var(--text) 30%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, .55));
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 560px; }
.hero-points li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; font-size: .9rem; color: var(--muted); }
.hero-points .ico { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--glass); border: 1px solid var(--line); color: var(--aether); }
.hero-points b { display: block; color: var(--text); font-size: .94rem; }
.glass { position: relative; background: var(--glass); backdrop-filter: blur(18px) saturate(120%); -webkit-backdrop-filter: blur(18px) saturate(120%); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.glass::before { content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px; background: var(--hair); }
.glass::after { content: ""; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; transform: translateX(-50%) rotate(45deg); background: var(--aether); box-shadow: 0 0 10px var(--aether); }

/* timers panel */
.events { padding: 20px; }
.events-title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 .74rem var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.events-title .ico { color: var(--gold); width: 16px; height: 16px; }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev { position: relative; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.ev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.ev-name { font-weight: 650; }
.ev-name a { color: var(--text); }
.ev-acc { font-size: .74rem; color: var(--muted); text-align: right; }
.ev-timer { display: flex; gap: 6px; }
.ev-timer span { flex: 1; display: grid; justify-items: center; padding: 6px 0 4px; border-radius: 10px; background: var(--surface-3); }
.ev-timer b { font: 700 1.3rem/1.1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); }
.ev-timer i { font: 600 .62rem var(--font-mono); font-style: normal; text-transform: uppercase; color: var(--faint); }
.ev-when { margin: 8px 0 0; font-size: .76rem; color: var(--muted); }
.ev-local { color: var(--faint); }
.ev-done, .ev-open-msg { display: none; font-weight: 650; color: var(--good); }
.ev.is-done .ev-timer { display: none; }
.ev.is-done .ev-done { display: block; }
.ev.is-done.is-ongoing { border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
.ev-cycle.is-open .ev-open-msg { display: block; margin-top: 6px; }
.ev-cycle.is-open { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.ev-rift .ev-timer span:first-child, .ev-reset .ev-timer span:last-child { display: none; }
.ev.is-next { border-color: color-mix(in srgb, var(--aether) 40%, var(--line)); }

/* ---- home: sections -------------------------------------------------------------------------------- */
.section { margin-top: 88px; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head h2 { font: 600 clamp(1.8rem, 3.2vw, 2.6rem)/1.12 var(--font-display); letter-spacing: -.012em; margin-bottom: 12px; }
.section-head::before { content: ""; display: block; width: 132px; height: 12px; margin-bottom: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='12' viewBox='0 0 132 12'%3E%3Cdefs%3E%3ClinearGradient id='l' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23c48c52' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23c48c52'/%3E%3C/linearGradient%3E%3ClinearGradient id='r' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23c48c52'/%3E%3Cstop offset='1' stop-color='%23c48c52' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0' y='5.5' width='54' height='1' fill='url(%23l)'/%3E%3Crect x='78' y='5.5' width='54' height='1' fill='url(%23r)'/%3E%3Cpath d='M66 1l5 5-5 5-5-5z' fill='%23c8323c'/%3E%3Cpath d='M57 6l2.5-2.5L62 6l-2.5 2.5zM70 6l2.5-2.5L75 6l-2.5 2.5z' fill='%23c48c52'/%3E%3C/svg%3E") no-repeat; }
.section-head p:last-child { color: var(--muted); margin: 0; }

/* class roster */
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hcard { position: relative; }
.hcard-link {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 400px; padding: 16px; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none !important;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s, box-shadow .25s;
}
.hcard-link::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--surface) 70%, transparent) 55%, var(--surface) 82%),
              radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
.hcard-art { position: absolute; inset: 0 0 30% 0; z-index: -2; }
.hcard-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.hcard-link:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent); }
.hcard-link:hover .hcard-art img { transform: scale(1.05); }
.hcard-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; }
.hcard-emblem { width: 44px; height: 44px; border-radius: 12px; padding: 4px; background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line-2); }
.hcard-body { display: grid; gap: 4px; }
.hcard-role { font: 600 .7rem var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.hcard-name { font: 600 1.45rem/1.1 var(--font-display); letter-spacing: -.012em; }
.hcard-pitch { font-size: .84rem; color: var(--text-dim); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hcard-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }

/* tools bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto); gap: 16px; }
.tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface-2), var(--surface)); color: var(--text); text-decoration: none !important;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--aether) 45%, transparent); box-shadow: var(--shadow), 0 0 30px -12px color-mix(in srgb, var(--aether) 60%, transparent); }
.tile-xl { grid-column: span 2; grid-row: span 2; justify-content: flex-end; min-height: 400px; }
.tile-tall { grid-row: span 2; }
.tile-bg { position: absolute; inset: 0; z-index: -2; }
.tile-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .6s; filter: sepia(.55) saturate(1.3) hue-rotate(-25deg) brightness(.85); }
.tile.has-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--surface) 15%, color-mix(in srgb, var(--surface) 50%, transparent) 60%, transparent); }
.tile.has-art:hover .tile-bg img { transform: scale(1.04); }
.tile-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--aether) 14%, var(--surface-3)); color: var(--aether); margin-bottom: auto; }
.tile-xl .tile-ico, .tile-tall .tile-ico { position: absolute; top: 20px; left: 20px; }
.tile-tall .tile-kicker { margin-top: 52px; }
.tile { padding-bottom: 58px; }
.tile-kicker { font: 600 .68rem var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.tile-title { font: 600 1.18rem/1.2 var(--font-display); letter-spacing: -.012em; }
.tile-xl .tile-title { font: 600 2rem/1.15 var(--font-display); }
.tile-text { font-size: .84rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile-xl .tile-text { font-size: .95rem; color: var(--text-dim); max-width: 46ch; }
.tile-go { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); transition: transform .2s, color .2s, background .2s; }
.tile:hover .tile-go { color: var(--on-accent); background: var(--aether); border-color: transparent; transform: translateX(2px); }
.tile-diagram { display: block; margin: 12px 0 30px; opacity: .9; }
.tile-diagram svg { width: 100%; height: auto; max-height: 220px; }
.tile-emblems { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; margin-right: 36px; }
.tile-emblems img { border-radius: 8px; background: var(--surface-3); padding: 2px; }

.credit-band {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 24px 28px; border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line)); background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 8%, var(--surface)), var(--surface));
}
.credit-band h2 { font: 650 1.1rem var(--font-ui); margin-bottom: 4px; }
.credit-band p { margin: 0; color: var(--text-dim); font-size: .9rem; }
.credit-ico .ico { width: 44px; height: 44px; padding: 10px; border-radius: 14px; color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.credit-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- class page: hero -------------------------------------------------------------------------------- */
.chero { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(-1 * var(--topbar-h)); padding: calc(var(--topbar-h) + 34px) 0 40px; min-height: 520px; border-bottom: 1px solid var(--line); }
.chero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(70% 90% at 78% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), var(--bg-2);
}
.chero-art {
  position: absolute; z-index: -1; right: max(0px, calc((100vw - var(--wrap)) / 2 - 80px)); top: 0; height: 100%; width: auto; max-width: 62%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 78%, transparent), linear-gradient(180deg, #000 55%, transparent 92%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 78%, transparent), linear-gradient(180deg, #000 55%, transparent 92%);
  mask-composite: intersect;
  opacity: .92; animation: breathe 11s ease-in-out infinite alternate;
}
@keyframes breathe { to { transform: translateY(-8px) scale(1.015); } }
.chero-glow { position: absolute; inset: auto 0 0 0; height: 40%; z-index: -1; background: linear-gradient(0deg, var(--bg), transparent); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; font-size: .82rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.chero-id { display: flex; align-items: center; gap: 18px; }
.chero-emblem { width: 88px; height: 88px; padding: 8px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line-2)); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--accent) 28%, transparent), color-mix(in srgb, var(--bg) 60%, transparent)); box-shadow: 0 0 40px -10px var(--accent); }
.chero .eyebrow { color: var(--accent); margin-bottom: 6px; }
.chero .eyebrow [data-only] { display: none; }
html[data-mode="pve"] .chero .eyebrow [data-only="pve"], html[data-mode="pvp"] .chero .eyebrow [data-only="pvp"], html[data-mode="lvl"] .chero .eyebrow [data-only="lvl"] { display: inline; }
.chero h1 { font: 600 clamp(2.6rem, 6vw, 4.4rem)/1 var(--font-display); margin: 0; letter-spacing: -.012em; text-shadow: 0 4px 40px color-mix(in srgb, var(--accent) 40%, transparent); }
.chero-pitch { max-width: 52ch; margin: 18px 0 22px; font-size: 1.08rem; color: var(--text-dim); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; max-width: 720px; }
.facts > div { padding: 8px 14px; border-radius: 12px; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--line); }
.facts dt { font: 600 .64rem var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: .9rem; }
.guide-src, .guide-watch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 8px; font-size: .84rem; color: var(--muted); max-width: 720px; }
.guide-src [data-only] { display: none; align-items: center; gap: 6px; }
html[data-mode="pve"] .guide-src [data-only="pve"], html[data-mode="pvp"] .guide-src [data-only="pvp"], html[data-mode="lvl"] .guide-src [data-only="lvl"] { display: inline-flex; }
.guide-src .ico { width: 15px; height: 15px; color: var(--accent); }
.guide-watch a { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); color: var(--text); font-weight: 600; font-size: .8rem; }
.guide-watch a svg { width: 15px; height: 15px; }
.guide-watch .gw-twitch svg { color: #a970ff; } .guide-watch .gw-youtube svg { color: #ff4d4d; }
.guide-watch a.guide-watch-all { border: 0; background: none; color: var(--aether); font-weight: 500; }

/* sticky mode bar */
.guidebar { position: sticky; top: var(--topbar-h); z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.guidebar-in { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.pl-open { margin-left: auto; }
.mode-switch { position: relative; display: inline-flex; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.mode-switch button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border: 0; border-radius: 10px; background: none;
  color: var(--muted); font: 650 .9rem var(--font-ui); cursor: pointer; transition: color .2s;
}
.mode-switch button .ico { width: 16px; height: 16px; }
.mode-switch button[aria-checked="true"] { color: var(--on-accent); }
.mode-switch button:hover:not([aria-checked="true"]):not(.is-off) { color: var(--text); }
.mode-switch button.is-off { opacity: .35; cursor: not-allowed; }
.ms-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 10px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--violet))); box-shadow: 0 6px 20px -8px var(--accent); }
html.anim .ms-ind { transition: transform .3s cubic-bezier(.3, .8, .3, 1), width .3s; }
.toc-mobile { display: none; }

/* ---- class page: layout ---------------------------------------------------------------------------------- */
.guide-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding-top: 32px; align-items: start; }
.guide-layout.has-rail { grid-template-columns: 220px minmax(0, 1fr) 320px; }
.guide-rail { display: none; }
.guide-layout.has-rail .guide-rail { display: block; position: sticky; top: calc(var(--topbar-h) + 80px); max-height: calc(100vh - var(--topbar-h) - 100px); overflow-y: auto; scrollbar-width: thin; }
.toc-side { position: sticky; top: calc(var(--topbar-h) + 80px); max-height: calc(100vh - var(--topbar-h) - 100px); overflow-y: auto; scrollbar-width: thin; }
.pg-layout .toc-side { top: calc(var(--topbar-h) + 24px); }
.toc-title { margin: 0 0 10px; font: 600 .68rem var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.toc-list { display: grid; gap: 1px; border-left: 1px solid var(--line); }
.toc-list a {
  display: flex; gap: 10px; align-items: baseline; padding: 6px 12px; margin-left: -1px; border-left: 2px solid transparent;
  color: var(--muted); font-size: .86rem; line-height: 1.4; transition: color .15s, border-color .15s;
}
.toc-list a b { font: 700 .72rem var(--font-mono); color: var(--gold); }
.toc-n { font: 600 .68rem var(--font-mono); color: var(--faint); }
.toc-list a:hover { color: var(--text); text-decoration: none; }
.toc-list a[aria-current] { color: var(--text); border-left-color: var(--accent); }
.toc-list a[aria-current] .toc-n { color: var(--accent); }
.toc-report { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: .8rem; color: var(--faint); }
.toc-report .ico { width: 14px; height: 14px; }
.guide { min-width: 0; transition: opacity .16s; }
.guide.is-switching { opacity: 0; }

/* mode visibility: [data-only] shows only in its modes */
html[data-mode="pve"] [data-only]:not([data-only~="pve"]),
html[data-mode="pvp"] [data-only]:not([data-only~="pvp"]),
html[data-mode="lvl"] [data-only]:not([data-only~="lvl"]) { display: none !important; }

/* glance card */
.glance { padding: 18px; border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface)); }
.guide > .glance { margin-bottom: 28px; }
.glance-title { display: grid; margin: 0 0 14px; font: 650 1.05rem var(--font-ui); }
.glance-mode { font: 600 .66rem var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.glance h3 { margin: 16px 0 8px; font: 600 .7rem var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.glance h3:first-of-type { margin-top: 0; }
.core-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.core-row li { display: grid; justify-items: center; gap: 4px; width: 72px; text-align: center; cursor: help; }
.core-ico { position: relative; display: block; }
.core-ico img { display: block; width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line-2); }
.core-lv { position: absolute; right: -6px; bottom: -6px; padding: 0 6px; border-radius: 7px; background: var(--accent); color: var(--on-accent); font: 700 .7rem/1.6 var(--font-mono); white-space: nowrap; }
.core-lv.is-range { right: 50%; transform: translateX(50%); }
.core-name { font-size: .72rem; line-height: 1.3; color: var(--text-dim); }
.loadout { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.slot { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); cursor: help; }
.slot img { grid-row: span 2; width: 40px; height: 40px; border-radius: 9px; }
.slot-name { font-size: .78rem; font-weight: 600; line-height: 1.25; }
.slot-lv { font: 700 .68rem var(--font-mono); color: var(--gold); }
.slot-empty { grid-template-columns: 1fr; place-items: center; min-height: 58px; border-style: dashed; color: var(--faint); }
.passive-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.passive-row li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .78rem; cursor: help; }
.passive-row img { width: 22px; height: 22px; border-radius: 50%; }

/* sections */
.g-section { margin-bottom: 52px; counter-increment: sec; }
.guide { counter-reset: sec; }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sec-num::before { content: counter(sec, decimal-leading-zero); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font: 700 .82rem var(--font-mono); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.sec-head h2 { margin: 0; font: 600 1.45rem/1.25 var(--font-display); letter-spacing: -.012em; }
.g-section h3 { font-size: 1.05rem; margin: 22px 0 10px; }
.g-section > p, .g-section li { color: var(--text-dim); }
.g-section > p strong, .g-section li strong { color: var(--text); }
.guide-origin { margin-top: 14px; font-size: .82rem; color: var(--faint) !important; }
.guide-origin b { color: var(--muted); }

/* inline skill / item chips */
.sk, .it { display: inline-flex; align-items: center; gap: 5px; padding: 0 6px 0 2px; border-radius: 7px; background: color-mix(in srgb, var(--accent) 9%, var(--surface-2)); color: var(--text); font-weight: 600; cursor: help; white-space: nowrap; line-height: 1.55; vertical-align: baseline; }
.sk img, .it img { width: 18px; height: 18px; border-radius: 5px; vertical-align: -3px; }
.it { background: var(--surface-2); }
.sk:not(:has(img)) { padding: 0; background: none; border-radius: 0; border-bottom: 1px dotted color-mix(in srgb, var(--accent) 60%, transparent); white-space: normal; }
.it.g11 { color: var(--text-dim); } .it.g21 { color: #5fd08d; } .it.g31 { color: #6aa5ff; } .it.g41 { color: #f0a24a; } .it.g51, .it.g61 { color: #c99bff; } .it.g71 { color: #ff7b7b; }
:root[data-theme="light"] .it.g21 { color: #188a4b; } :root[data-theme="light"] .it.g31 { color: #2459d8; } :root[data-theme="light"] .it.g41 { color: #b85a07; } :root[data-theme="light"] .it.g51, :root[data-theme="light"] .it.g61 { color: #8a3fd9; }

/* callouts, tables */
.callout { margin: 18px 0; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.callout > :last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0 !important; }
.callout ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.callout.accent { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface)); box-shadow: inset 3px 0 0 var(--accent); }
.wip-note { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); background: color-mix(in srgb, var(--warn) 6%, var(--surface)); }
.tr-pending { display: flex; gap: 14px; align-items: flex-start; border-color: color-mix(in srgb, var(--violet) 40%, var(--line)); background: color-mix(in srgb, var(--violet) 7%, var(--surface)); }
.tr-pending > .ico { width: 26px; height: 26px; color: var(--violet); margin-top: 2px; }
.tr-pending h3 { margin: 0 0 4px !important; font-size: 1rem; }
.tr-pending p { margin: 0; font-size: .9rem; color: var(--text-dim); }
.table-wrap { margin: 16px 0; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table-wrap th, .table-wrap td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { font: 600 .68rem var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table-wrap td { color: var(--text-dim); }
.table-wrap tbody th { font-weight: 600; color: var(--text); }

/* skill cards */
.skill-grid { list-style: none; margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.skill { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.skill.is-must { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 6%, var(--surface)), var(--surface) 60%); }
.skill.is-skip { opacity: .78; }
.skill.is-found { box-shadow: 0 0 0 2px var(--aether), 0 0 30px -6px var(--aether); }
.skill-top { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; }
.skill-icon { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); cursor: help; }
.skill-title { display: grid; min-width: 0; }
.skill-name { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.skill-kind { font: 600 .64rem var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.is-must .skill-kind { color: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: 8px; font: 700 .76rem var(--font-mono); white-space: nowrap; border: 1px solid var(--line-2); color: var(--text-dim); background: var(--surface-2); }
.badge.must { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.badge.skip { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: transparent; }
.skill-desc { font-size: .9rem; color: var(--text-dim); line-height: 1.6; }
.spec-chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.spec-chips li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; padding: 6px 10px 6px 6px; border-radius: 9px; font-size: .82rem; line-height: 1.45; background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.spec-chips li.is-next { background: transparent; border-style: dashed; color: var(--muted); }
.spec-lv { display: grid; place-items: center; height: 20px; border-radius: 6px; font: 700 .7rem var(--font-mono); background: var(--surface-3); color: var(--accent); }
.spec-all summary { cursor: pointer; font-size: .78rem; color: var(--muted); list-style: none; }
.spec-all summary::-webkit-details-marker { display: none; }
.spec-all summary::after { content: " ▾"; }
.spec-all[open] summary::after { content: " ▴"; }
.spec-all ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.spec-all li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; font-size: .8rem; color: var(--faint); line-height: 1.45; }
.spec-all li.on { color: var(--text); }
.spec-all li.next { color: var(--text-dim); }

/* hotbar lines, macro, presses, combos */
.hotlines { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 16px 0; }
.hotline { padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.hotline-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hotline-head .key { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.hotline-name { font-weight: 650; font-size: .92rem; }
.hotline-skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hotline-skills li { display: grid; grid-template-columns: 22px 36px 1fr; gap: 8px; align-items: center; padding: 4px 8px 4px 4px; border-radius: 9px; background: var(--surface-2); cursor: help; }
.hotline-skills li.is-first { background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.hotline-skills li.is-opt { opacity: .65; border: 1px dashed var(--line-2); background: transparent; }
.hotline-skills img { width: 36px; height: 36px; border-radius: 8px; }
.hl-n { font: 700 .72rem var(--font-mono); color: var(--faint); text-align: center; }
.is-first .hl-n { color: var(--accent); }
.hl-name { font-size: .84rem; font-weight: 600; }
.hotline-order { margin: 8px 0 0; font-size: .72rem; color: var(--faint); }
.hotline-note { margin: 8px 0 0; font-size: .82rem; color: var(--text-dim); }
.macroseq { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: none; }
.macroseq li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.ms-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--accent); color: var(--on-accent); font: 700 .74rem var(--font-mono); }
.ms-label { font-weight: 600; font-size: .86rem; }
.ms-detail { font-size: .78rem; color: var(--muted); }
.presslist { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.presslist li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: baseline; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.press-how { font: 700 .72rem var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.press-what { color: var(--text-dim); font-size: .9rem; }
.combo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin: 8px 0 12px; font-weight: 600; }
.combo .arrow { color: var(--accent); margin: 0 4px; font-weight: 700; }

/* leveling checklist */
.tracker-bar { display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: center; padding: 18px; margin-bottom: 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.ring svg { width: 76px; height: 76px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.4; }
.ring-bg { stroke: var(--surface-3); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dasharray .4s; }
.tracker-text .note { margin: 6px 0 0; }
.progress-text { font-size: .9rem; color: var(--muted); }
.progress-text b { font: 700 1.4rem var(--font-mono); color: var(--text); }
.progress { height: 6px; margin-top: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--violet)); transition: width .35s; }
.tracker-reset .ico { width: 14px; height: 14px; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 8px; }
.step label { display: grid; grid-template-columns: 26px 92px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: background .15s, border-color .15s, opacity .2s; }
.step label:hover { border-color: var(--line-2); }
.step input { position: absolute; opacity: 0; pointer-events: none; }
.step-box { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-2); background: var(--surface-2); color: transparent; transition: background .15s, border-color .15s, color .15s; }
.step-box .ico { width: 16px; height: 16px; }
.step input:focus-visible + .step-box { outline: 2px solid var(--aether); outline-offset: 2px; }
.step input:checked + .step-box { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.step-when { font: 700 .74rem/1.9 var(--font-mono); color: var(--accent); }
.step-text { font-size: .9rem; color: var(--text-dim); line-height: 1.6; }
.step-text img { width: 22px; height: 22px; border-radius: 6px; vertical-align: -6px; margin-right: 3px; cursor: help; }
.step-tag { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 6px; font: 700 .62rem/1.7 var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-3); vertical-align: 1px; }
.step-class .step-tag { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.step.done label { opacity: .5; }
.step.done .step-text { text-decoration: line-through; text-decoration-color: var(--faint); }

/* Daevanion boards */
.dvb { margin: 16px 0 20px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.dvb-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 6px 6px 0; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dvb-tabs::-webkit-scrollbar { display: none; }
.dvb-tab { flex: 1 0 auto; display: grid; justify-items: center; gap: 1px; padding: 8px 12px 7px; border: 0; border-bottom: 2px solid transparent; border-radius: 10px 10px 0 0; background: none; cursor: pointer; font: inherit; white-space: nowrap; color: var(--text); }
.dvb-tab b { font-size: .86rem; color: var(--text-dim); }
.dvb-tab span { font: 600 .64rem var(--font-mono); color: var(--faint); }
.dvb-tab i { font-style: normal; font-weight: 700; color: var(--gold); }
.dvb-tab[aria-selected="true"] { border-bottom-color: var(--accent); background: var(--surface); }
.dvb-tab[aria-selected="true"] b { color: var(--text); }
.dvb-panel { padding: 14px; }
.dvb-frame { max-width: 680px; margin: 0 auto; padding: 4.5%; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent); background: radial-gradient(circle at 50% 45%, #1a1a1a, #000 75%); box-shadow: inset 0 0 60px rgba(0, 0, 0, .55); }
.dvb-stage { position: relative; width: 100%; }
.dvb-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dvb-svg line { stroke: rgba(255, 255, 255, .13); stroke-width: .06; }
.dvb-svg line.on { stroke: #e8c27a; stroke-width: .14; filter: drop-shadow(0 0 .12px rgba(255, 210, 130, .9)); }
.dvb-n { position: absolute; transform: translate(-50%, -50%); width: 5.4%; aspect-ratio: 1; min-width: 12px; border-radius: 4px; border: 1.5px solid; background: #151a24; display: grid; place-items: center; overflow: hidden; opacity: .5; cursor: help; background-color: #111111; }
.dvb-n.on { opacity: 1; box-shadow: 0 0 8px -1px currentColor; }
.dvb-n img { width: 100%; height: 100%; object-fit: cover; }
.dvb-n.g11 { color: #9aa0ab; border-color: #5b616c; width: 3.6%; border-radius: 50%; }
.dvb-n.g21 { color: #56c878; border-color: #3b8a53; width: 6.4%; }
.dvb-n.g31 { color: #5aa2ff; border-color: #3d70b8; width: 7.2%; }
.dvb-n.g41 { color: #f0a24a; border-color: #b8752c; width: 5.2%; transform: translate(-50%, -50%) rotate(45deg); }
.dvb-n.on.g11 { background: #c9ccd2; border-color: #e3e5e9; } .dvb-n.on.g21 { border-color: #7fe39c; } .dvb-n.on.g31 { border-color: #9cc8ff; } .dvb-n.on.g41 { background: #f0a24a; border-color: #ffd08a; }
.dvb-n.st.g21, .dvb-n.st.g31 { border-radius: 50%; background: radial-gradient(circle, currentColor 0 26%, #111111 30%); }
.dvb-n.st.g21 { width: 4.6%; } .dvb-n.st.g31 { width: 5.4%; }
.dvb-n.on.st.g21 { background: #56c878; } .dvb-n.on.st.g31 { background: #5aa2ff; }
.dvb-n.start { width: 7.6%; border-radius: 50%; border-color: #e8c27a; background: radial-gradient(circle, #ffe2a3, #e8c27a 45%, #6d5424); opacity: 1; box-shadow: 0 0 18px rgba(232, 194, 122, .6); }
.dvb-sum { border-top: 1px solid var(--line); font-size: .86rem; color: var(--text-dim); }
.dvb-sum summary { list-style: none; cursor: pointer; padding: 11px 16px; display: flex; align-items: baseline; gap: 6px; }
.dvb-sum summary::-webkit-details-marker { display: none; }
.dvb-sum summary b { color: var(--gold); font-family: var(--font-mono); }
.dvb-sum summary span { margin-left: auto; font-size: .76rem; color: var(--faint); }
.dvb-sum summary span::after { content: " ▾"; }
.dvb-sum[open] summary span::after { content: " ▴"; }
.dvb-sum p { margin: 0; padding: 0 16px 10px; }
.dvb-lvs { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.dvb-lv { font-size: .84rem; color: var(--text); cursor: help; }
.dvb-lv b { color: var(--gold); }
.dvb-other, .dvb-other .dvb-lv { font-size: .76rem; color: var(--faint); }
.dvb-legend { margin: 0; padding: 9px 16px 13px; border-top: 1px solid var(--line); font-size: .72rem; color: var(--faint); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.dvb-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid; margin-left: 6px; }
.dvb-key.g11 { border-color: #9aa0ab; border-radius: 50%; } .dvb-key.g21 { border-color: #56c878; } .dvb-key.g31 { border-color: #5aa2ff; }
.dvb-key.g41 { border-color: #f0a24a; transform: rotate(45deg); } .dvb-key.st { border-radius: 50%; } .dvb-key.on { border-color: #e8c27a; background: #e8c27a; }

/* sources block at the end of a guide, suggest box */
.sources { margin: 48px 0 24px; padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.sources h2 { font: 600 .74rem var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sources ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: .88rem; color: var(--text-dim); }
.sources-all { font-size: .86rem; margin: 12px 0 0; }
.suggest-box { display: flex; align-items: center; gap: 14px; margin: 32px 0; padding: 16px 18px; border-radius: var(--radius); border: 1px dashed var(--line-2); }
.sg-ico { width: 22px; height: 22px; color: var(--aether); }
.sg-text { flex: 1; font-size: .88rem; color: var(--text-dim); }
.sg-text p { margin: 0; }
.sg-extra { margin-top: 4px !important; color: var(--muted); }

/* ---- page hero (guide pages, trackers) ------------------------------------------------------------- */
.phero { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(-1 * var(--topbar-h)); padding: calc(var(--topbar-h) + 34px) 0 48px; border-bottom: 1px solid var(--line); }
.phero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 10%, color-mix(in srgb, var(--bg) 70%, transparent) 55%, color-mix(in srgb, var(--bg) 40%, transparent)), linear-gradient(0deg, var(--bg), transparent 60%); }
:root[data-theme="light"] .phero-bg { opacity: .28; }
.phero-in.has-aside { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.phero-ico { margin: 0 0 12px; }
.phero-ico .ico { width: 46px; height: 46px; padding: 11px; border-radius: 14px; color: var(--aether); background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.phero h1 { font: 600 clamp(2rem, 4.4vw, 3.2rem)/1.1 var(--font-display); }
.phero .lead { margin: 0; }

/* guide pages */
.pg-layout { padding-top: 36px; grid-template-columns: 240px minmax(0, 1fr); }
.pg-page { min-width: 0; max-width: 880px; }
.pg-note { padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.w1-src, .pg-at { display: inline-flex; align-items: center; gap: 4px; margin: 2px 4px 2px 0; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 .72rem/1.7 var(--font-ui); color: var(--text-dim); white-space: nowrap; vertical-align: 1px; }
.w1-src:hover, .pg-at:hover { color: var(--aether); border-color: var(--aether); text-decoration: none; }
.pg-toc { list-style: none; margin: 18px 0 36px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; counter-reset: pgt; }
.pg-toc li { counter-increment: pgt; }
.pg-toc a { display: flex; align-items: center; gap: 10px; height: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .86rem; font-weight: 550; line-height: 1.35; }
.pg-toc a::before { content: counter(pgt, decimal-leading-zero); font: 700 .7rem var(--font-mono); color: var(--aether); }
.pg-toc a b { font: 700 .72rem var(--font-mono); color: var(--gold); }
.pg-toc a:hover { border-color: var(--aether); text-decoration: none; }
.pg-sec { position: relative; margin-bottom: 48px; }
.pg-sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pg-sec-head h2 { margin: 0; font: 650 1.45rem/1.25 var(--font-ui); }
.pg-gs { flex: none; padding: 4px 10px; border-radius: 9px; font: 700 .78rem var(--font-mono); color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.pg-sec-src { font-size: .82rem; color: var(--muted); }
.pg-lead { font-size: 1rem; color: var(--text-dim); }
.pg-h { font-size: 1.05rem; margin: 26px 0 10px; }
.pg-p { color: var(--text-dim); }
.pg-list { display: grid; gap: 6px; color: var(--text-dim); }
.pg-tip { border-color: color-mix(in srgb, var(--aether) 30%, var(--line)); background: color-mix(in srgb, var(--aether) 5%, var(--surface)); box-shadow: inset 3px 0 0 var(--aether); }
.pg-table-at { font-size: .8rem; color: var(--faint); margin-top: -6px; }
.section-title { font: 650 1.45rem/1.25 var(--font-ui); }

/* settings page */
.st-label { margin: 20px 0 8px; font: 600 .7rem var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.st-opts { display: grid; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.st-row { display: grid; grid-template-columns: minmax(160px, 34%) 1fr; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.st-row:last-child { border-bottom: 0; }
.st-name { margin: 0; font-weight: 600; font-size: .9rem; }
.st-body p { margin: 0; }
.st-val { font-size: .9rem; }
.st-why { font-size: .82rem; color: var(--muted); margin-top: 3px !important; }
.sv { display: inline-block; padding: 0 8px; border-radius: 6px; font: 700 .76rem/1.7 var(--font-mono); background: var(--surface-3); color: var(--text); }
.sv-on { background: color-mix(in srgb, var(--good) 20%, transparent); color: var(--good); }
.sv-off { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }

/* crafting blocks */
.ct-tree { display: grid; grid-template-columns: 240px 1fr; gap: 20px; margin: 18px 0; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.ct-common { position: relative; display: grid; gap: 10px; align-content: center; }
.ct-ring { display: none; }
.ct-skill { display: grid; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); cursor: help; }
.ct-skill.is-hi { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, var(--surface-2)); }
.ct-lvl { font: 700 .7rem var(--font-mono); color: var(--gold); }
.ct-sname { font-weight: 650; font-size: .9rem; }
.ct-snote { font-size: .76rem; color: var(--muted); }
.ct-branches { display: grid; gap: 10px; }
.ct-branch { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); opacity: .7; }
.ct-branch.is-on { opacity: 1; border-color: color-mix(in srgb, var(--aether) 40%, var(--line)); background: color-mix(in srgb, var(--aether) 5%, transparent); }
.ct-bname { margin: 0 0 8px; font-weight: 650; font-size: .88rem; }
.ct-bname span { color: var(--aether); }
.ct-bname em { font-style: normal; margin-left: 6px; padding: 0 7px; border-radius: 6px; font-size: .7rem; background: var(--aether); color: var(--on-accent); }
.ct-nodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ct-node { display: grid; justify-items: center; gap: 4px; text-align: center; cursor: help; }
.ct-ico { position: relative; display: block; }
.ct-ico img { display: block; border-radius: 9px; background: var(--surface-3); }
.ct-ico b { position: absolute; left: -6px; top: -6px; padding: 0 4px; border-radius: 5px; font: 700 .64rem/1.5 var(--font-mono); background: var(--gold); color: #1c1405; }
.ct-ico i { position: absolute; right: -6px; bottom: -6px; padding: 0 5px; border-radius: 5px; font: 700 .64rem/1.5 var(--font-mono); font-style: normal; background: var(--surface-3); color: var(--text); border: 1px solid var(--line-2); }
.ct-nlabel { font-size: .72rem; color: var(--muted); line-height: 1.3; }
.ct-legend { margin: 0; font-size: .76rem; color: var(--faint); }
.ct-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 16px 0; }
.ct-card { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.ct-card.is-hi { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.ct-card img { border-radius: 9px; }
.ct-sym { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: var(--surface-3); font-weight: 700; color: var(--gold); }
.ct-ctitle { margin: 0; font-weight: 650; font-size: .88rem; }
.ct-ctext { margin: 2px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.ct-chain, .ct-morph { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; }
.ct-tile { padding: 10px 14px; border-radius: 10px; font-weight: 650; font-size: .86rem; border: 1px solid; }
.ct-tile.g11 { color: var(--text-dim); border-color: var(--line-2); } .ct-tile.g21 { color: #5fd08d; border-color: #5fd08d66; } .ct-tile.g31 { color: #6aa5ff; border-color: #6aa5ff66; }
.ct-tile.g41 { color: #f0a24a; border-color: #f0a24a66; } .ct-tile.g51 { color: #c99bff; border-color: #c99bff66; }
.ct-arrow { display: grid; justify-items: center; font-size: .7rem; color: var(--muted); }
.ct-arrow svg { width: 34px; height: 12px; fill: none; stroke: var(--muted); stroke-width: 1.5; }
.ct-cnote { font-size: .82rem; color: var(--muted); }
.ct-from, .ct-to { display: flex; align-items: center; gap: 8px; font-size: .84rem; }
.ct-from img, .ct-to img { border-radius: 9px; }

/* page tabs */
.page-tabs-wrap { position: sticky; top: var(--topbar-h); z-index: 30; margin: 0 -8px 24px; padding: 10px 8px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); }
.page-tabs { position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.page-tabs::-webkit-scrollbar { display: none; }
.pt-tab { position: relative; z-index: 1; flex: none; padding: 8px 16px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: 600 .88rem var(--font-ui); cursor: pointer; white-space: nowrap; transition: color .2s; }
.pt-tab[aria-selected="true"] { color: var(--on-accent); }
.pt-tab:hover:not([aria-selected="true"]) { color: var(--text); }
.pt-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 10px; background: linear-gradient(135deg, var(--aether), color-mix(in srgb, var(--aether) 55%, var(--violet))); }
.page-tabs.is-ready .pt-ind { transition: transform .3s cubic-bezier(.3, .8, .3, 1), width .3s; }

/* ---- trackers (week 1, weekly) ------------------------------------------------------------------- */
.tracker-page { padding-top: 32px; }
.reset-box { padding: 16px 18px; border-radius: var(--radius-lg); background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line-2); min-width: 280px; }
.reset-label { display: block; margin-bottom: 8px; font: 600 .7rem var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.reset-timer { display: flex; gap: 6px; }
.reset-timer span { flex: 1; display: grid; justify-items: center; padding: 6px 4px 4px; border-radius: 10px; background: var(--surface-3); }
.reset-timer b { font: 700 1.3rem/1.1 var(--font-mono); font-variant-numeric: tabular-nums; }
.reset-timer i { font: 600 .6rem var(--font-mono); font-style: normal; text-transform: uppercase; color: var(--faint); }
.reset-when { display: block; margin-top: 8px; font-size: .76rem; color: var(--muted); }
.reset-note { margin: 6px 0 0; font-size: .74rem; color: var(--warn); }
.charbar { margin-bottom: 28px; padding: 14px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.char-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.char-tab { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-dim); font: 600 .86rem var(--font-ui); cursor: pointer; }
.char-tab img { width: 24px; height: 24px; border-radius: 50%; }
.char-tab[aria-selected="true"] { border-color: var(--aether); color: var(--text); background: color-mix(in srgb, var(--aether) 12%, var(--surface-2)); }
.char-manage { margin-top: 12px; }
.char-manage summary { cursor: pointer; font-size: .82rem; color: var(--muted); }
.char-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.char-form input, .char-form select, .energy-form input, .energy-charged input {
  height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 500 .88rem var(--font-ui);
}
.local-note { margin: 10px 0 0; }
.wk-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.energy-card { position: sticky; top: calc(var(--topbar-h) + 20px); padding: 20px; border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--violet) 30%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--violet) 8%, var(--surface)), var(--surface)); }
.card-title { margin: 0 0 12px; font: 650 1.05rem var(--font-ui); }
.energy-main { display: flex; align-items: baseline; gap: 6px; }
.energy-value { font: 700 2.4rem/1 var(--font-mono); color: var(--violet); }
.energy-cap { font: 600 1rem var(--font-mono); color: var(--muted); }
.energy-bar { margin: 12px 0; }
.energy-bar span { background: linear-gradient(90deg, var(--violet), var(--aether)); }
.energy-card.is-capped .energy-value { color: var(--warn); }
.energy-status { font-size: .88rem; font-weight: 600; margin: 0 0 4px; }
.energy-rate { font-size: .78rem; color: var(--muted); }
.energy-actions { display: grid; gap: 10px; margin: 14px 0; }
.energy-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.energy-form label, .energy-charged label { display: grid; gap: 3px; font-size: .74rem; color: var(--muted); }
.energy-form input { width: 90px; }
.energy-charged { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.energy-charged input { width: 110px; }
.notify-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0; }
.notify-toggle .ico, .notify-toggle svg { width: 15px; height: 15px; }
.notify-toggle[aria-pressed="true"] { border-color: var(--good); color: var(--good); }
.notify-note { font-size: .76rem; color: var(--faint); }
.wk-summary { margin: 0 0 14px; font-size: .9rem; color: var(--muted); }
.wk-summary b { font: 700 1.2rem var(--font-mono); color: var(--text); }
.wk-group { margin-bottom: 20px; padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.wk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wk-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); transition: opacity .2s; }
.wk-item.is-done { opacity: .55; }
.wk-text { flex: 1; display: grid; min-width: 0; }
.wk-name { font-weight: 600; font-size: .9rem; }
.wk-note { font-size: .78rem; color: var(--muted); }
.wk-ctrl { display: flex; align-items: center; gap: 6px; }
.wk-btn { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 1.1rem; cursor: pointer; }
.wk-btn:hover { border-color: var(--aether); }
.wk-count { min-width: 52px; text-align: center; font: 600 .86rem var(--font-mono); color: var(--muted); }
.wk-count b { color: var(--text); }
.wk-check { width: 32px; height: 32px; border-radius: 9px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; }
.wk-check[aria-pressed="true"] { background: var(--aether) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306110f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat; border-color: transparent; }
.w1-group { margin-bottom: 36px; }
.w1-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.w1-head .section-title { margin: 0; }
.w1-progress { font-size: .86rem; color: var(--muted); }
.w1-progress b { font: 700 1.1rem var(--font-mono); color: var(--aether); }
.w1-lead { color: var(--text-dim); }
.w1-list .step label { grid-template-columns: 26px 1fr; }
.w1-route-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin: 36px 0 20px; padding: 18px 20px; border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line)); background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 8%, var(--surface)), var(--surface)); color: var(--text); }
.w1-route-card:hover { text-decoration: none; border-color: var(--gold); }
.w1-route-card-gs { font: 700 1.2rem var(--font-mono); color: var(--gold); }
.w1-route-card b { display: block; }
.w1-route-card span span { font-size: .86rem; color: var(--muted); }
.w1-cta { margin: 28px 0; }

/* ---- bosses ----------------------------------------------------------------------------------------- */
.bs-page { padding-top: 28px; }
.bs-group-title { display: flex; align-items: baseline; gap: 10px; font: 650 1.35rem var(--font-ui); }
.bs-group-title small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.bs-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.bs-item { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, background .2s; }
.bs-main { flex: 1; display: grid; min-width: 0; gap: 2px; }
.bs-name { font-weight: 650; }
.bs-meta { font-size: .78rem; color: var(--muted); }
.bs-kr { color: var(--faint); }
.bs-status { font: 600 .8rem var(--font-mono); color: var(--aether); }
.bs-ctrl { display: flex; gap: 6px; flex: none; }
.bs-bell svg { width: 15px; height: 15px; }
.bs-bell .off { display: none; }
.bs-bell[aria-pressed="false"] .on { display: none; }
.bs-bell[aria-pressed="false"] .off { display: block; }
.bs-item.is-dead { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.bs-item.is-dead .bs-status { color: var(--warn); }
.bs-item.is-up { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); background: color-mix(in srgb, var(--good) 5%, var(--surface)); }
.bs-item.is-up .bs-status { color: var(--good); }

/* ---- dungeons ----------------------------------------------------------------------------------------- */
.dg-gtitle { font: 600 1.6rem var(--font-display); margin-top: 8px; }
.dg-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.dg-meta > span { padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .76rem; color: var(--text-dim); }
.dg-meta .dg-tier { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.dg-boss { margin: 16px 0; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.dg-boss.is-final { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--bad) 6%, var(--surface)), var(--surface) 50%); }
.dg-bhead { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.dg-bhead h3 { margin: 0; font-size: 1.1rem; }
.dg-portrait { width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--line-2); object-fit: cover; background: var(--surface-3); flex: none; }
.dg-noimg { display: grid; place-items: center; font: 700 1.2rem var(--font-mono); color: var(--faint); }
.dg-brole { margin: 2px 0 0; font-size: .82rem; color: var(--muted); }
.dg-btext { color: var(--text-dim); font-size: .92rem; }
.dg-mechs { display: grid; gap: 10px; }
.dg-mech { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.dg-mech.has-diagram { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.dg-mech.is-danger { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.dg-diagram { margin: 0; }
.dg-diagram svg { width: 100%; height: auto; display: block; border-radius: 10px; }
.dg-diagram figcaption { margin-top: 6px; font-size: .72rem; color: var(--faint); line-height: 1.4; }
.dg-mname { margin: 0 0 4px; font-weight: 650; font-size: .92rem; }
.dg-mtext p:last-child { margin: 0; font-size: .88rem; color: var(--text-dim); }
.dg-wipe { display: inline-block; padding: 0 7px; border-radius: 6px; font: 700 .64rem/1.7 var(--font-label); letter-spacing: .08em; text-transform: uppercase; background: var(--bad); color: #fff; vertical-align: 1px; }
.dg-after { margin-top: 10px; }
/* arena diagram colours (templates/diagrams/*.svg) */
.dz-floor { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 2; }
.dz-floor-clean { fill: var(--bg-2); stroke: var(--good); stroke-width: 1.5; stroke-dasharray: 4 3; }
.dz-boss { fill: #c2414b; stroke: #ffb4b8; stroke-width: 1.5; } .dz-boss-in { fill: #ffe1e3; }
.dz-p { fill: var(--gold); stroke: var(--bg); stroke-width: 1.5; } .dz-mark { fill: #5aa9ff; stroke: var(--bg); stroke-width: 1.5; }
.dz-safe { fill: rgba(95, 208, 141, .32); stroke: var(--good); stroke-width: 1.2; }
.dz-bad { fill: rgba(229, 72, 77, .28); stroke: #e5484d; stroke-width: 1; } .dz-bad-soft { fill: rgba(229, 72, 77, .08); }
.dz-rock { fill: #8a8f99; stroke: #4a4f58; stroke-width: 1.2; } .dz-rock-red { fill: #d4574f; stroke: #ffb4b8; stroke-width: 1.5; }
.dz-beam { stroke: rgba(229, 72, 77, .6); stroke-width: 4; stroke-linecap: round; } .dz-beam-thin { stroke-width: 2; stroke-dasharray: 6 4; }
.dz-ray-a { stroke: rgba(229, 72, 77, .85); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 4; }
.dz-wave { fill: none; stroke: #58b6e6; stroke-width: 3; stroke-dasharray: 10 5; }
.dz-arrow { fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; } .dz-ah { fill: var(--text); }
.dz-t { font: 700 12px var(--font-mono); fill: #58b6e6; }
.dz-share { fill: rgba(90, 169, 255, .18); stroke: #5aa9ff; stroke-width: 1.5; stroke-dasharray: 5 3; }
.dz-poison { fill: rgba(150, 90, 200, .28); } .dz-flower { fill: #e86fb0; stroke: #fff; stroke-width: 1; } .dz-puddle { fill: rgba(150, 90, 200, .55); }
.dz-fire { fill: #e8663a; stroke: #ffc29e; stroke-width: 1; } .dz-orb { fill: rgba(90, 120, 255, .35); stroke: #7d8cff; stroke-width: 2; }
.dz-bar { stroke: rgba(229, 72, 77, .55); stroke-width: 7; stroke-linecap: round; } .dz-ring { fill: none; stroke: #58d6e6; stroke-width: 3; }
.dz-hit { fill: #ffd36b; stroke: #fff; stroke-width: .8; } .dz-hint { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 3; }
.dz-dome-w { fill: rgba(235, 240, 255, .22); stroke: #e8ecff; stroke-width: 1.5; } .dz-dome-p { fill: rgba(160, 90, 230, .22); stroke: #b58cff; stroke-width: 1.5; }
.dz-o-w { fill: #e8ecff; } .dz-o-p { fill: #b58cff; } .dz-purple { fill: rgba(160, 90, 230, .18); }
.dz-lane { stroke: rgba(95, 208, 141, .45); stroke-width: 26; stroke-linecap: round; } .dz-lane-2 { stroke: rgba(95, 208, 141, .25); }
.dz-ghost { fill: none; stroke: #c2414b; stroke-width: 2; stroke-dasharray: 3 2; }

/* ---- tier list ------------------------------------------------------------------------------------------ */
.tl-page { padding-top: 28px; }
.tl-warn { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); background: color-mix(in srgb, var(--warn) 6%, var(--surface)); }
.tl-srcs { margin: 8px 0 0 !important; }
.tl-grid { display: grid; gap: 6px; margin: 16px 0 24px; }
.tl-row { display: grid; grid-template-columns: 64px 1fr; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.tl-letter { display: grid; place-items: center; font: 700 1.6rem var(--font-display); color: #10131a; }
.tl-s .tl-letter { background: linear-gradient(135deg, #ffd166, #ff9f5a); } .tl-a .tl-letter { background: linear-gradient(135deg, #a3e48f, #5fd08d); }
.tl-b .tl-letter { background: linear-gradient(135deg, #8fd3ff, #6aa5ff); } .tl-c .tl-letter { background: linear-gradient(135deg, #c6b8ff, #a594ff); }
.tl-d .tl-letter { background: linear-gradient(135deg, #c8ccd6, #8c97ae); }
.tl-good .tl-letter { background: linear-gradient(135deg, #a3e48f, #5fd08d); } .tl-mid .tl-letter { background: linear-gradient(135deg, #ffd166, #ffb35c); } .tl-bad .tl-letter { background: linear-gradient(135deg, #ff9a9a, #ff6b6b); }
.tl-ping .tl-letter { font-size: .8rem; padding: 4px; text-align: center; font-family: var(--font-ui); }
.tl-cells { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; min-height: 76px; align-items: center; }
.tl-cls { display: grid; justify-items: center; gap: 2px; width: 84px; padding: 6px 4px; border-radius: 12px; color: var(--text); font-size: .76rem; font-weight: 600; text-align: center; }
.tl-cls:hover { background: var(--surface-2); text-decoration: none; }
.tl-cls img { border-radius: 10px; }
.tl-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; font: 700 .8rem var(--font-mono); color: #10131a; }
.tl-mark.tl-s { background: #ffc35e; } .tl-mark.tl-a { background: #7fdc8e; } .tl-mark.tl-b { background: #7ebcff; } .tl-mark.tl-c { background: #b5a8ff; } .tl-mark.tl-d { background: #aab2c2; }
.tl-name { white-space: nowrap; font-weight: 600; color: var(--text) !important; }
.tl-name img { vertical-align: -5px; border-radius: 5px; }
.tl-avgv { font: 700 .86rem var(--font-mono); color: var(--gold) !important; }

/* ---- sources ------------------------------------------------------------------------------------------- */
.src-page { padding-top: 32px; }
.src-group { margin-bottom: 44px; }
.src-lead { color: var(--muted); }
.src-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.src-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.src-card h3 { margin: 0; font-size: 1rem; }
.src-card p { margin: 0; font-size: .86rem; color: var(--text-dim); }
.src-used { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .78rem !important; color: var(--muted) !important; }
.src-used .chip { font-size: .7rem; }
.src-used a.chip { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.src-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.src-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .78rem; font-weight: 600; color: var(--text-dim); }
.src-link svg { width: 15px; height: 15px; }
.src-youtube svg, .src-video svg { color: #ff4d4d; } .src-twitch svg { color: #a970ff; } .src-discord svg { color: #7289ff; } .src-telegram svg { color: #3fa9f5; }
.src-link:hover { color: var(--text); border-color: var(--aether); text-decoration: none; }
.src-about { padding: 22px; border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--violet) 30%, var(--line)); background: color-mix(in srgb, var(--violet) 5%, var(--surface)); }
.src-about h2 { font-size: 1.15rem; }
.src-about p { color: var(--text-dim); font-size: .92rem; }

/* ---- motion ------------------------------------------------------------------------------------------------ */
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; opacity: .85; mix-blend-mode: screen; }
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.rv.rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- responsive -------------------------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .guide-layout.has-rail { grid-template-columns: 200px minmax(0, 1fr); grid-template-areas: "toc rail" "toc main"; }
  .guide-layout.has-rail .toc-side { grid-area: toc; grid-row: span 2; }
  .guide-layout.has-rail .guide-rail { grid-area: rail; position: static; max-height: none; overflow: visible; }
  .guide-layout.has-rail .guide { grid-area: main; }
  .guide-rail .glance { margin-bottom: 8px; }
  .guide-rail .loadout { grid-template-columns: repeat(4, 1fr); }
  .search-btn { min-width: 0; }
  .search-btn .sb-text, .search-btn kbd { display: none; }
  .menu-guides { width: 640px; }
}
@media (max-width: 1080px) {
  .chip-timer .rt-name, .chip-timer .wr-name { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .hero-in { grid-template-columns: 1fr; }
  .events { max-width: 560px; }
  .footer-in { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 960px) {
  :root { --topbar-h: 58px; }
  .mainnav { display: none; }
  .nav-toggle { display: inline-grid; }
  .guide-layout, .guide-layout.has-rail, .pg-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: 20px; }
  .guide-layout.has-rail .toc-side, .toc-side { display: none; }
  .guide-layout.has-rail .guide-rail, .guide-layout.has-rail .guide { grid-area: auto; }
  .toc-mobile { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
  .toc-mobile::-webkit-scrollbar { display: none; }
  .toc-mobile a { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .8rem; color: var(--muted); white-space: nowrap; }
  .toc-mobile a .toc-n { margin-right: 6px; }
  .toc-mobile a[aria-current] { color: var(--text); border-color: var(--accent); }
  .chero-art { max-width: 80%; opacity: .45; right: -10%; }
  .wk-layout { grid-template-columns: 1fr; }
  .energy-card { position: static; }
  .phero-in.has-aside { grid-template-columns: 1fr; }
  .ct-tree { grid-template-columns: 1fr; }
  .dg-mech.has-diagram { grid-template-columns: 1fr; }
  .dg-diagram { max-width: 320px; }
}
@media (max-width: 720px) {
  .wrap, .wrap-wide { padding: 0 16px; }
  .topbar-in { padding: 0 12px; gap: 8px; }
  .brand-text small { display: none; }
  .chip-timer { padding: 0 8px; }
  .rift-timer { display: none; }
  .hero { padding-top: calc(var(--topbar-h) + 40px); min-height: 0; }
  .hcard-link { min-height: 320px; padding: 12px; }
  .hcard-pitch { display: none; }
  .hcard-name { font-size: 1.2rem; }
  .bento { grid-template-columns: 1fr; }
  .tile-xl, .tile-tall { grid-column: auto; grid-row: auto; min-height: 260px; }
  .credit-band { grid-template-columns: 1fr; }
  .menu-classes, .menu-guides { width: auto; }
  .chero { min-height: 0; padding-bottom: 28px; }
  .chero-emblem { width: 64px; height: 64px; border-radius: 16px; }
  .facts > div { padding: 6px 10px; }
  .guidebar-in { flex-direction: column; align-items: stretch; gap: 8px; }
  .mode-switch { width: 100%; }
  .mode-switch button { flex: 1; justify-content: center; padding: 8px 6px; }
  .skill-grid { grid-template-columns: 1fr; }
  .tracker-bar { grid-template-columns: 56px 1fr; }
  .ring svg { width: 56px; height: 56px; }
  .tracker-reset { grid-column: span 2; justify-self: start; }
  .step label { grid-template-columns: 24px 1fr; }
  .step-when { grid-column: 2; }
  .step-text { grid-column: 2; }
  .presslist li { grid-template-columns: 1fr; gap: 2px; }
  .st-row { grid-template-columns: 1fr; gap: 4px; }
  .bs-list { grid-template-columns: 1fr; }
  .bs-item { flex-wrap: wrap; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .w1-route-card { grid-template-columns: 1fr; }
  .search-dlg { margin-top: 8vh; }
}
@media (max-width: 420px) {
  .hcard-link { min-height: 300px; }
  .hcard-pitch { display: -webkit-box; }
  .chip-timer.wr-chip { display: none; }
}

/* ---- build planner (/<lang>/planner/) --------------------------------------------------------------- */
.pl-hero { padding: 64px 0 28px; }
.pl-hero h1 { font: 600 clamp(2.3rem, 4.4vw, 3.6rem)/1.08 var(--font-display); letter-spacing: -.012em; margin-bottom: 14px; }
.pl-hero .lead { margin: 0; }
.pl-picker { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0 22px; border-bottom: 1px solid var(--line); }
.pl-classes { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-cls {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-dim); font: 600 .86rem var(--font-ui); cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.pl-cls img { width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%); }
.pl-cls:hover { color: var(--text); border-color: var(--line-2); }
.pl-cls[aria-checked="true"] { color: var(--text); border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.pl-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.pl-presets-label { padding: 0 8px 0 6px; font: 600 .66rem var(--font-label); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.pl-preset { padding: 7px 12px; border: 0; border-radius: 7px; background: none; color: var(--text-dim); font: 600 .82rem var(--font-ui); cursor: pointer; }
.pl-preset:hover { color: var(--text); background: var(--surface-2); }
.pl-preset[aria-pressed="true"] { color: var(--on-accent); background: linear-gradient(180deg, color-mix(in srgb, var(--aether) 88%, #fff 12%), var(--aether-2)); }
.pl-preset:disabled { opacity: .35; cursor: not-allowed; background: none; color: var(--faint); }

.pl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; margin-top: 26px; }
.pl-tabs { position: sticky; top: var(--topbar-h); z-index: 5; display: flex; gap: 2px; margin-bottom: 18px; padding: 8px 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pl-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 600 .9rem var(--font-ui); cursor: pointer; }
.pl-tab .ico { width: 16px; height: 16px; }
.pl-tab:hover { color: var(--text); background: var(--surface-2); }
.pl-tab[aria-selected="true"] { color: var(--text); }
.pl-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -9px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--aether), var(--gold)); }
.pl-tab-n { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--surface-3); font: 600 .7rem/1.6 var(--font-mono); color: var(--text-dim); text-align: center; }
.pl-tab-n:empty { display: none; }
.pl-hint { margin: 0 0 16px; font-size: .86rem; color: var(--muted); }

.pl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.pl-list-compact { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.pl-item { padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.pl-item.is-set { border-color: color-mix(in srgb, var(--gold) 26%, var(--line)); box-shadow: var(--shadow-sm); }
.pl-item-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.pl-item-head img { border-radius: 9px; border: 1px solid var(--line-2); }
.pl-item:not(.is-set) .pl-item-head img { filter: grayscale(.7) brightness(.8); }
.pl-item-title { display: grid; min-width: 0; line-height: 1.3; }
.pl-item-title b { font-size: .95rem; }
.pl-item-title small { font-size: .74rem; color: var(--faint); }
.pl-passive .pl-item-title small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; color: var(--muted); }
.pl-lv { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); }
.pl-lv-k { padding: 0 4px 0 6px; font: 600 .62rem var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.pl-lv-v { min-width: 2ch; text-align: center; font: 700 1.05rem var(--font-mono); color: var(--gold); font-variant-numeric: tabular-nums; }
.pl-step { width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--text-dim); font: 600 1rem/1 var(--font-ui); cursor: pointer; }
.pl-step:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
.pl-step:disabled { opacity: .3; cursor: default; }
.pl-range { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; margin: 12px 0 2px; background: transparent; cursor: pointer; --p: 0%; }
.pl-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--gold) var(--p), var(--surface-3) var(--p)); }
.pl-range::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--gold) var(--p), var(--surface-3) var(--p)); }
.pl-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.pl-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold); }
.pl-range:disabled { opacity: .35; cursor: default; }
.pl-break { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; margin: 4px 0 0; }
.pl-break:empty { display: none; }
.pl-tag { padding: 1px 8px; border-radius: 999px; font: 600 .7rem/1.7 var(--font-ui); border: 1px solid var(--line-2); color: var(--text-dim); }
.pl-tag.is-dv { color: #7fb2ff; border-color: color-mix(in srgb, #5aa2ff 40%, transparent); }
.pl-tag.is-gear { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.pl-tag.is-bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.pl-spec-wrap { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.pl-specs-h { margin: 0 0 8px; font: 600 .66rem var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.pl-specs-h b { margin-left: 4px; font-family: var(--font-mono); letter-spacing: 0; color: var(--gold); }
.pl-specs { display: grid; gap: 5px; }
.pl-spec {
  display: grid; grid-template-columns: 26px 1fr; align-items: start; gap: 8px; width: 100%; padding: 6px 9px; border-radius: 8px; text-align: left;
  border: 1px solid var(--line); background: transparent; color: var(--text-dim); font: 500 .82rem/1.45 var(--font-ui); cursor: pointer; transition: border-color .15s, background .15s;
}
.pl-spec:hover:not(:disabled) { border-color: var(--line-2); color: var(--text); }
.pl-spec[aria-pressed="true"] { border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: color-mix(in srgb, var(--gold) 9%, transparent); color: var(--text); }
.pl-spec.is-locked { opacity: .4; cursor: not-allowed; }
.pl-spec-lv { display: inline-grid; place-items: center; height: 20px; border-radius: 5px; background: var(--surface-3); font: 700 .68rem var(--font-mono); color: var(--muted); }
.pl-spec[aria-pressed="true"] .pl-spec-lv { background: var(--gold); color: var(--on-accent); }
.pl-desc { margin-top: 8px; font-size: .8rem; color: var(--muted); }
.pl-desc summary { width: max-content; list-style: none; cursor: pointer; padding: 0 8px; border-radius: 6px; color: var(--faint); letter-spacing: .1em; }
.pl-desc summary::-webkit-details-marker { display: none; }
.pl-desc summary:hover { background: var(--surface-2); color: var(--text); }
.pl-desc p { margin: 6px 0 0; white-space: pre-line; line-height: 1.55; }
.pl-st-lv { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; margin-top: 10px; }
.pl-st-lv .pl-range { margin: 0; }
.pl-st-specs { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: .8rem; color: var(--faint); }
.pl-st-specs li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; line-height: 1.45; }
.pl-st-specs li.on { color: var(--text-dim); }
.pl-st-specs li.on .pl-spec-lv { background: var(--gold); color: var(--on-accent); }
.pl-equip { padding: 6px 12px; }
.pl-star {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--faint);
  font: 700 .95rem var(--font-mono); cursor: pointer;
}
.pl-star:hover { color: var(--gold); border-color: var(--gold); }
.pl-star[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-accent); }

.pl-board .dvb { margin: 0; }
.pl-board .dvb-tabs { border-radius: var(--radius) var(--radius) 0 0; border: 1px solid var(--line); border-bottom: 0; }
.pl-board .dvb-panel { border: 1px solid var(--line); border-top: 0; background: var(--surface); }
.pl-board .dvb-n { cursor: pointer; opacity: .55; padding: 0; transition: opacity .15s, box-shadow .15s, transform .15s; }
.pl-board .dvb-n:hover { opacity: 1; box-shadow: 0 0 0 2px var(--gold); }
.pl-board .dvb-n.on { opacity: 1; }
.pl-board .dvb-n.start { cursor: default; }
.pl-board .dvb-n:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pl-node-info { min-height: 1.6em; margin: 12px 0 0; text-align: center; font-size: .86rem; color: var(--text-dim); }
.pl-node-info b { color: var(--text); }
.pl-node-info span { color: var(--faint); }
.pl-board-tools { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.pl-board-foot { margin-top: 16px; display: grid; gap: 12px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.pl-board-sum { font-size: .88rem; color: var(--muted); }
.pl-board-sum b { font: 500 1.8rem/1 var(--font-display); color: var(--gold); }
.pl-board-lvs, .pl-board-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pl-board-lvs li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--line); font-size: .8rem; color: var(--text-dim); }
.pl-board-lvs img { border-radius: 50%; }
.pl-board-lvs b { color: #7fb2ff; }
.pl-board-stats li { display: inline-flex; gap: 6px; padding: 3px 10px; border-radius: 6px; background: var(--surface-2); font-size: .78rem; color: var(--muted); }
.pl-board-stats b { color: var(--text); font-family: var(--font-mono); font-size: .76rem; }

.pl-side { position: sticky; top: calc(var(--topbar-h) + 16px); display: grid; gap: 14px; }
.pl-card { padding: 18px; border-radius: var(--radius-lg); }
.pl-card:not(.glass) { border: 1px solid var(--line); background: var(--surface); }
.pl-name input { width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--text); font: 600 1.1rem var(--font-display); letter-spacing: -.012em; }
.pl-name input:hover, .pl-name input:focus { border-color: var(--line-2); background: var(--surface-2); outline: 0; }
.pl-sum { display: grid; gap: 14px; margin: 10px 0 16px; }
.pl-sum-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pl-sum-head img { border-radius: 12px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); }
.pl-sum-head div { display: grid; line-height: 1.3; }
.pl-sum-head b { font: 600 1.15rem var(--font-display); letter-spacing: -.012em; }
.pl-sum-head small { font-size: .76rem; color: var(--muted); }
.pl-sum-block .menu-label { margin-bottom: 6px; }
.pl-sum-icons, .pl-sum-slots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pl-sum-icons li, .pl-sum-slots li { position: relative; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line-2); overflow: visible; }
.pl-sum-icons img, .pl-sum-slots img { display: block; border-radius: 8px; }
.pl-sum-icons span, .pl-sum-slots span {
  position: absolute; right: -5px; bottom: -5px; min-width: 18px; padding: 0 4px; border-radius: 6px; background: var(--bg); border: 1px solid var(--gold-2);
  font: 700 .62rem/1.5 var(--font-mono); color: var(--gold); text-align: center;
}
.pl-sum-slots li.is-empty { border-style: dashed; }
.pl-sum-dv { margin: 0; font-size: .86rem; color: var(--muted); }
.pl-sum-dv b { font: 500 1.6rem/1 var(--font-display); color: var(--gold); }
.pl-sum-gear { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .82rem; color: var(--text-dim); }
.pl-sum-gear li { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; }
.pl-sum-gear img { border-radius: 4px; }
.pl-sum-gear b { color: var(--gold); font-family: var(--font-mono); font-size: .78rem; }
.pl-sum-gear li.is-bad b { color: var(--bad); }
.pl-muted { margin: 0; font-size: .8rem; color: var(--faint); }
.pl-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pl-actions .btn { justify-content: center; }
.pl-saved ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pl-saved li { display: flex; align-items: center; gap: 4px; }
.pl-saved-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.pl-saved-open:hover { background: var(--surface-2); }
.pl-saved-open img { border-radius: 50%; }
.pl-saved-open span { display: grid; min-width: 0; line-height: 1.3; }
.pl-saved-open b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-saved-open small { font-size: .72rem; color: var(--faint); }
.pl-saved-del { width: 30px; height: 30px; font-size: 1.1rem; }
.pl-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font-size: .88rem; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 10px);
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.pl-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1080px) {
  .pl-layout { grid-template-columns: 1fr; }
  .pl-side { position: static; grid-row: 1; }
}
@media (max-width: 720px) {
  .pl-hero { padding-top: 36px; }
  .pl-list, .pl-list-compact { grid-template-columns: 1fr; }
  .pl-tab span { display: none; }
  .pl-tab[aria-selected="true"] span { display: inline; }
  .pl-cls span { display: none; }
  .pl-cls { padding: 4px; }
  .pl-cls[aria-checked="true"] span { display: inline; padding-right: 8px; }
}

/* Dark fantasy: page-hero art gets the same warm, ember-lit grade as the home hero */
.phero-bg img { filter: sepia(.55) saturate(1.3) hue-rotate(-25deg) brightness(.85); }

/* Logo image from config.json "logo" (replaces the drawn mark) */
.brand-logo { display: block; width: 38px; height: 38px; object-fit: contain; }
.brand.has-logo { gap: 10px; }


/* ==== OpenAI-style layer: monochrome, flat, sans, pill buttons ===================================== */
h1, h2, h3, .hcard-name, .tile-title, .sec-head h2, .section-head h2, .pl-hero h1, .chero h1, .phero h1 { font-family: var(--font-display); letter-spacing: -.025em !important; }
.hero h1 { font-weight: 600; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.04; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); filter: none; }
.section-head h2 { font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.sec-head h2 { font-weight: 600; font-size: 1.5rem; }
.hcard-name { font-weight: 600; font-size: 1.4rem; }
.tile-title { font-weight: 600; font-size: 1.2rem; }
.chero h1 { text-shadow: none; }
/* labels: quiet sentence case */
.eyebrow, .menu-label, .tile-kicker, .hcard-role, .events-title, .pl-presets-label, .pl-specs-h, .pl-lv-k, .search-k, .sk-tip-meta, .glance-title, .toc-title {
  text-transform: none !important; letter-spacing: 0 !important; font-family: var(--font-ui) !important; font-weight: 500 !important;
}
.eyebrow { font-size: .9rem; color: var(--muted); }
.eyebrow .pulse, .section-head::before, .glass::before, .glass::after, .topbar::after { display: none !important; }
.menu-label, .tile-kicker, .pl-specs-h { font-size: .8rem; color: var(--muted); }
/* buttons: pills, solid primary, no gradient or shadow */
.btn { border-radius: 999px; font: 500 .94rem/1.2 var(--font-ui); letter-spacing: 0; padding: 11px 20px; border-color: transparent; background: var(--surface-2); text-shadow: none; }
.btn:hover { transform: none; background: var(--surface-3); border-color: transparent; }
.btn-primary { background: var(--text); color: var(--bg); border-color: transparent; box-shadow: none; text-shadow: none; }
.btn-primary:hover { background: color-mix(in srgb, var(--text) 82%, var(--bg)); filter: none; box-shadow: none; }
.btn-ghost, .btn-glass { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover, .btn-glass:hover { background: var(--surface-2); }
.pl-preset[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.pl-tab[aria-selected="true"]::after { background: var(--text); }
/* surfaces: flat, borderless cards on a light grey */
.glass { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; box-shadow: none; }
.tile, .hcard-link, .pl-item, .pl-card:not(.glass), .pl-board-foot, .ev { border-color: transparent; box-shadow: none; }
.tile { background: var(--surface); }
.tile:hover, .hcard-link:hover { transform: none; box-shadow: none; border-color: transparent; }
.tile:hover { background: var(--surface-2); }
.pl-item.is-set { border-color: transparent; box-shadow: none; background: var(--surface-2); }
.brand-mark { filter: none; }
.brand-text b { font: 600 1.12rem/1.1 var(--font-ui); letter-spacing: -.02em; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); }
.brand-text small { letter-spacing: 0; text-transform: none; font-size: .72rem; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
.btn, .brand, .tile, .hcard-link, .cm-item, .nm-item, .menu-panel a, .lang-panel a, .drawer a, .foot-langs a, .footer-cols a, .search-res a, .toc-list a, .chip-timer, .pl-saved-open { text-decoration: none !important; }
/* imagery: natural colour, calmer */
.hero-bg img, .tile-bg img, .phero-bg img { filter: grayscale(.15) brightness(.92); }
:root[data-theme="light"] .hero-bg img { opacity: .22; }
.fx-canvas { display: none; }
/* monochrome emblem: black file, inverted on the dark theme */
.brand-mark { filter: invert(1); }
:root[data-theme="light"] .brand-mark { filter: none; }

/* Home header without the timers panel: one column */
.hero-in { grid-template-columns: minmax(0, 860px); }

/* ---- class showcase carousel (home) --------------------------------------------------------------- */
/* The centred card is large and lit; the others scale down, dim and drift (--d / --ad set per frame by site.js). */
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 8px; }
.carousel-head .section-head { margin-bottom: 0; }
.carousel-nav { display: flex; gap: 8px; flex: none; }
.carousel-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); cursor: pointer; transition: background .25s, border-color .25s, transform .25s;
}
.carousel-btn:hover { background: var(--surface-2); border-color: var(--text); }
.carousel-btn:active { transform: scale(.94); }
.carousel-btn .ico-prev { transform: scaleX(-1); }
.carousel-play .i-play { display: none; }
.carousel-play[aria-pressed="true"] .i-play { display: block; }
.carousel-play[aria-pressed="true"] .i-pause { display: none; }

.carousel { position: relative; --card-w: clamp(320px, 34vw, 540px); margin-inline: calc(50% - 50vw); }   /* full-bleed */
html, body { overflow-x: clip; }
.carousel::before, .carousel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 14vw; z-index: 2; pointer-events: none; }
.carousel::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.carousel::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.roster.carousel-track {
  position: relative; display: flex; gap: 28px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 40px 0 36px; outline: none; cursor: grab;
}
.roster.carousel-track::-webkit-scrollbar { display: none; }
.roster.carousel-track:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; border-radius: var(--radius-lg); }
.roster.carousel-track > .hcard {
  flex: 0 0 var(--card-w); scroll-snap-align: center;
  transform: scale(calc(1 - .13 * min(var(--ad, 1), 1.5))); opacity: calc(1 - .42 * min(var(--ad, 1), 1.5));
  will-change: transform, opacity;
}
.carousel-show .hcard-link { min-height: clamp(460px, 44vw, 660px); padding: 26px; border-radius: 22px; transition: box-shadow .5s ease, border-color .5s ease; }
.carousel-show .hcard-art { inset: 0 0 26% 0; }
.carousel-show .hcard-art img { transform: translateX(calc(var(--d, 0) * -34px)) scale(1.14); transition: filter .6s ease; filter: saturate(.55) brightness(.62); }
.carousel-show .hcard.is-active .hcard-art img { filter: none; }
.carousel-show .hcard.is-active .hcard-link { box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.carousel-show .hcard:hover .hcard-art img { transform: translateX(calc(var(--d, 0) * -34px)) scale(1.18); }
.carousel-show .hcard-link:hover { transform: none; }
/* content that only the centred card shows: fades and rises in */
.carousel-show .hcard-pitch, .carousel-show .hcard-meta, .carousel-show .hcard-cta {
  opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
}
.carousel-show .hcard.is-active :is(.hcard-pitch, .hcard-meta, .hcard-cta) { opacity: 1; transform: none; }
.carousel-show .hcard.is-active .hcard-meta { transition-delay: .06s; }
.carousel-show .hcard.is-active .hcard-cta { transition-delay: .12s; }
.carousel-show .hcard-name { font-size: clamp(1.8rem, 2.6vw, 2.6rem); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.carousel-show .hcard-role { font-size: .8rem; }
.carousel-show .hcard-pitch { font-size: .98rem; max-width: 46ch; -webkit-line-clamp: 3; }
.carousel-show .hcard-emblem { width: 54px; height: 54px; }
.carousel-show .hcard-top { top: 22px; left: 22px; right: 22px; }
.hcard-cta {
  display: inline-flex; align-items: center; gap: 6px; width: max-content; margin-top: 10px; padding: 8px 14px; border-radius: 999px;
  background: var(--text); color: var(--bg); font: 500 .86rem var(--font-ui);
}
.hcard-cta .ico { width: 14px; height: 14px; }
.roster.carousel-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.roster.carousel-track.is-dragging a { pointer-events: none; }
.roster.carousel-track img { -webkit-user-drag: none; }

/* progress dots: the active one stretches and fills while autoplay counts down */
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.carousel-dot { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line-2); cursor: pointer; overflow: hidden; transition: width .45s cubic-bezier(.2, .7, .2, 1), background .3s; }
.carousel-dot:hover { background: var(--muted); }
.carousel-dot[aria-current="true"] { width: 40px; background: var(--surface-3); }
.carousel-dot span { position: absolute; inset: 0; border-radius: inherit; background: var(--text); transform: scaleX(0); transform-origin: left; }
.carousel-dot[aria-current="true"] span { transform: scaleX(1); }
.carousel-show.is-playing ~ .carousel-dots .carousel-dot[aria-current="true"] span { animation: dot-fill var(--autoplay, 5.5s) linear both; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 720px) {
  .carousel { --card-w: 80vw; }
  .roster.carousel-track { gap: 14px; padding-top: 22px; padding-bottom: 22px; }
  .carousel-show .hcard-link { min-height: 480px; padding: 18px; }
  .carousel-nav .carousel-btn[data-dir] { display: none; }
  .carousel::before, .carousel::after { width: 6%; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-show .hcard-art img { transform: scale(1.1); }
  .carousel-show :is(.hcard-pitch, .hcard-meta, .hcard-cta) { transition: none; }
}

/* Navigation icons (templates/icons.html): line art in the text colour, gold accents */
:root { --icon-gold: #c9a066; }
:root[data-theme="light"] { --icon-gold: #a57a3e; }
.ico .fill { fill: currentColor; stroke: none; }
.ico .acc { fill: var(--icon-gold); stroke: none; }
.ico .acc-line { fill: none; stroke: var(--icon-gold); }
.ico .knob { fill: var(--icon-gold); stroke: currentColor; stroke-width: 1.4; }
.nm-item[aria-current] .nm-ico .acc, .nm-item[aria-current] .nm-ico .knob { fill: var(--icon-gold); }
