
:root {
  color-scheme: dark;
  --bg: #050914;
  --bg-soft: #090f1e;
  --panel: rgba(13, 24, 39, .88);
  --panel-solid: #0d1827;
  --panel-soft: rgba(22, 38, 58, .82);
  --line: rgba(123, 188, 222, .2);
  --line-bright: rgba(90, 239, 195, .42);
  --text: #f4f8ff;
  --muted: #a8b9ce;
  --dim: #72879f;
  --cyan: #68dcff;
  --emerald: #4df1a6;
  --gold: #f4c96a;
  --red: #ff7d7a;
  --purple: #b89cff;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 78% 8%, rgba(77, 241, 166, .08), transparent 27rem),
    radial-gradient(circle at 45% 2%, rgba(100, 93, 255, .1), transparent 34rem),
    linear-gradient(145deg, var(--bg), #07101c 52%, #040812);
  color: var(--text);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .2;
  background-image: radial-gradient(rgba(142, 224, 255, .45) .6px, transparent .6px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}
a { color: var(--cyan); text-decoration: none; transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
a:hover { color: #c8f5ff; }
p { margin: .55rem 0 1rem; }
.skip-link { position: fixed; left: 14px; top: -80px; z-index: 20; padding: 10px 14px; border-radius: 10px; color: #02150e; background: var(--emerald); font-weight: 800; }
.skip-link:focus { top: 14px; }
.site-shell { display: grid; grid-template-columns: 276px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow: auto;
  padding: 22px 16px 28px;
  background: linear-gradient(180deg, rgba(6, 13, 25, .98), rgba(8, 18, 31, .95));
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 70px rgba(0, 0, 0, .18);
  backdrop-filter: blur(18px);
}
.brand { display: grid; justify-items: center; gap: 2px; margin-bottom: 18px; color: var(--text); font-weight: 800; text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; }
.brand img { width: 100%; height: 68px; object-fit: cover; object-position: center; mix-blend-mode: screen; }
.brand:hover { color: var(--emerald); }
.spoiler-toggle { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; padding: 10px 12px; border: 1px solid rgba(244, 201, 106, .34); border-radius: 12px; color: var(--gold); background: rgba(49, 35, 13, .44); font-size: .88rem; }
.spoiler-toggle input { accent-color: var(--gold); }
.search-box { position: relative; margin-bottom: 18px; }
.search-box label { display: block; color: var(--muted); margin: 0 0 6px 3px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.search-box input { width: 100%; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line); outline: none; background: rgba(2, 9, 18, .78); color: var(--text); }
.search-box input:focus { border-color: var(--line-bright); box-shadow: 0 0 0 3px rgba(77, 241, 166, .08); }
.search-results { position: relative; z-index: 3; margin-top: 8px; display: grid; gap: 6px; }
.search-result { display: block; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-solid); color: var(--text); }
.search-result small { display: block; color: var(--dim); line-height: 1.35; }
.nav-link { position: relative; display: block; margin: 2px 0; padding: 7px 10px 7px 13px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); font-size: .9rem; }
.nav-link::before { content: ""; position: absolute; left: 2px; top: 50%; width: 3px; height: 0; border-radius: 99px; background: var(--emerald); transform: translateY(-50%); transition: height .18s ease; }
.nav-link.active, .nav-link:hover { border-color: var(--line); background: linear-gradient(90deg, rgba(77, 241, 166, .1), rgba(104, 220, 255, .04)); color: var(--text); }
.nav-link.active::before, .nav-link:hover::before { height: 55%; }
.content { width: 100%; min-width: 0; padding: 38px clamp(20px, 4.5vw, 72px) 30px; }
.page-content, .breadcrumbs, .spoiler-gate, .site-footer { width: min(1180px, 100%); margin-left: auto; margin-right: auto; }
.home-page .page-content { width: min(1320px, 100%); }
.breadcrumbs { display: flex; gap: 9px; flex-wrap: wrap; color: var(--dim); margin-bottom: 24px; font-size: .9rem; }
.page-content > h1, .spoiler-gate h1 { margin: 0 0 12px; max-width: 900px; font-size: clamp(2.35rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.045em; }
.page-summary { margin: 0 0 34px; color: var(--muted); max-width: 850px; font-size: clamp(1.02rem, 1.6vw, 1.2rem); }
.eyebrow, .hero-kicker { color: var(--gold); text-transform: uppercase; font-weight: 800; font-size: .75rem; letter-spacing: .16em; }
.page-section { margin: 42px 0; }
.page-section > h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; color: var(--text); font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -.02em; }
.page-section > h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-bright), transparent); }
.home-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  margin: 0 0 30px;
  padding: clamp(28px, 6vw, 74px);
  border: 1px solid rgba(112, 214, 255, .26);
  border-radius: 24px;
  box-shadow: var(--shadow), inset 0 0 70px rgba(3, 8, 18, .2);
}
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3, 8, 20, .96) 0%, rgba(3, 8, 20, .78) 38%, rgba(3, 8, 20, .08) 75%), linear-gradient(0deg, rgba(3, 8, 20, .7), transparent 48%); }
.home-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: linear-gradient(90deg, transparent, var(--emerald), var(--cyan), transparent); box-shadow: 0 0 24px var(--emerald); }
.home-hero-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-hero-copy { max-width: 610px; }
.home-logo { display: block; width: min(520px, 100%); height: 150px; margin: -18px 0 -22px; object-fit: cover; object-position: center; mix-blend-mode: screen; }
.home-hero h1 { margin: 6px 0 14px; font-size: clamp(2.2rem, 5vw, 5.2rem); line-height: .95; letter-spacing: -.055em; text-wrap: balance; }
.home-hero-copy > p:not(.hero-kicker) { max-width: 570px; color: #c5d5e7; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.primary-link, .secondary-link, .primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 11px; font-weight: 800; }
.primary-link, .primary-button { border: 1px solid rgba(111, 255, 201, .55); color: #03150e; background: linear-gradient(135deg, #78ffc6, var(--emerald)); box-shadow: 0 10px 32px rgba(77, 241, 166, .2); }
.primary-link:hover, .primary-button:hover { color: #02110b; transform: translateY(-1px); }
.secondary-link { border: 1px solid var(--line); color: var(--text); background: rgba(8, 19, 33, .62); }
.secondary-link:hover { border-color: rgba(104, 220, 255, .46); background: rgba(20, 42, 62, .72); }
.hero-row { display: grid; grid-template-columns: minmax(190px, 290px) minmax(0, 1fr); gap: clamp(22px, 4vw, 42px); align-items: center; margin: 22px 0 38px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, rgba(17, 32, 50, .82), rgba(8, 17, 29, .78)); box-shadow: var(--shadow); }
.hero-row > div:last-child > p:first-child { color: #c8d7e7; font-size: 1.08rem; }
.hero-art, .item-art { width: 100%; object-fit: contain; background: radial-gradient(circle at 50% 42%, rgba(77, 241, 166, .11), transparent 60%), rgba(2, 9, 17, .52); border: 1px solid var(--line); border-radius: 13px; padding: 12px; }
.hero-art { height: 270px; }
.item-art { height: 118px; }
.skin-card .item-art { height: 160px; }
.image-placeholder { min-height: 108px; border: 1px dashed var(--line); border-radius: 13px; background: var(--panel); }
.image-placeholder.large { min-height: 240px; }
.entity-emblem { display: grid; place-items: center; width: 100%; height: 270px; border: 1px solid var(--line-bright); border-radius: 18px; background: radial-gradient(circle, rgba(77, 241, 166, .25), rgba(104, 220, 255, .08) 38%, rgba(6, 14, 25, .9) 70%); box-shadow: inset 0 0 60px rgba(77, 241, 166, .12); }
.entity-emblem span { display: grid; place-items: center; width: 104px; aspect-ratio: 1; border: 1px solid rgba(179, 255, 225, .54); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); color: var(--emerald); background: rgba(5, 24, 24, .78); font-size: 3rem; font-weight: 900; box-shadow: 0 0 40px rgba(77, 241, 166, .2); }
.entity-emblem.small { height: 118px; border-radius: 13px; }
.entity-emblem.small span { width: 54px; font-size: 1.55rem; }
.metric-grid, .card-grid, .feature-grid, .stat-grid, .guide-grid, .role-grid, .threat-grid { display: grid; gap: 14px; }
.metric-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.card-grid { grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); }
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.guide-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.role-grid, .threat-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.metric-card, .catalog-card, .feature-card, .stat-card, .guide-card, .callout, .spoiler-gate { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(18, 34, 53, .9), rgba(8, 17, 29, .9)); box-shadow: 0 14px 46px rgba(0, 0, 0, .16); }
.metric-card, .catalog-card, .feature-card, .callout, .spoiler-gate { padding: 18px; }
.metric-card::before, .stat-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: linear-gradient(var(--emerald), var(--cyan)); }
.metric-card:hover, .catalog-card:hover, .feature-card:hover { border-color: rgba(104, 220, 255, .38); transform: translateY(-2px); }
.metric-card span { display: block; color: var(--emerald); font-size: 2.1rem; line-height: 1; font-weight: 900; }
.metric-card h3, .catalog-card h3, .feature-card h3 { margin: 10px 0 6px; line-height: 1.25; }
.catalog-card > p, .feature-card p, .muted { color: var(--muted); }
.catalog-card .guide-card { background: rgba(6, 15, 27, .52); box-shadow: none; }
.catalog-card .guide-grid { margin-top: 13px; }
.catalog-card .guide-card h3 { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--gold); }
.stat-card { min-height: 104px; display: flex; flex-direction: column; justify-content: center; padding: 16px 17px; }
.stat-card span { color: var(--dim); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.stat-card strong { margin-top: 6px; color: var(--text); font-size: 1.15rem; line-height: 1.28; }
.guide-card { padding: 16px; }
.guide-card h3 { margin: 0 0 7px; color: var(--emerald); font-size: .95rem; }
.guide-card p { margin: 0; color: var(--muted); }
.effect-line, .unlock-line, .detail-link { color: #cfdeec !important; }
.detail-link { margin-top: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips span { display: inline-block; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: #b9c9da; background: rgba(3, 11, 20, .42); font-size: .78rem; }
.timeline-list { display: grid; gap: 12px; padding: 0; list-style: none; counter-reset: steps; }
.timeline-list li { position: relative; display: grid; gap: 2px; padding: 15px 16px 15px 56px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); counter-increment: steps; }
.timeline-list li::before { content: counter(steps); position: absolute; left: 15px; top: 15px; display: grid; place-items: center; width: 27px; aspect-ratio: 1; border-radius: 50%; color: #03150e; background: var(--emerald); font-weight: 900; }
.timeline-list span { color: var(--muted); }
.mini-stat-list { display: grid; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.mini-stat-list li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid rgba(123, 188, 222, .12); }
.mini-stat-list li:last-child { border-bottom: 0; }
.mini-stat-list span { color: var(--dim); }
.mini-stat-list strong { color: var(--text); text-align: right; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 46px rgba(0, 0, 0, .14); }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; background: rgba(8, 18, 31, .82); }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid rgba(123, 188, 222, .13); vertical-align: top; text-align: left; }
.data-table th { position: sticky; top: 0; color: var(--gold); background: #101e30; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.data-table tbody tr:nth-child(even) { background: rgba(104, 220, 255, .025); }
.data-table tbody tr:hover { background: rgba(77, 241, 166, .045); }
.data-table tr:last-child td { border-bottom: 0; }
.compact td { font-size: .92rem; }
.link-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; padding: 0; list-style: none; }
.link-list li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel); }
.callout { border-color: rgba(104, 220, 255, .42); }
.callout strong { color: var(--cyan); }
.callout p { margin-bottom: 0; color: var(--muted); }
.callout.spoiler, .spoiler-card { border-color: rgba(244, 201, 106, .34); background: linear-gradient(145deg, rgba(48, 34, 13, .78), rgba(20, 20, 24, .9)); }
.callout.spoiler strong, .spoiler-card h3 a { color: var(--gold); }
.spoiler-gate { width: min(720px, 100%); margin-top: 7vh; padding: clamp(24px, 5vw, 52px); text-align: center; border-color: rgba(244, 201, 106, .38); }
.spoiler-gate .primary-button { margin: 12px auto; cursor: pointer; }
.site-footer { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 70px; padding: 24px 0 6px; border-top: 1px solid var(--line); color: var(--dim); font-size: .82rem; }
.site-footer img { width: 118px; height: 44px; object-fit: contain; }
.spoiler-content { display: none !important; }
html.spoilers-enabled .spoiler-content { display: block !important; }
html.spoilers-enabled span.spoiler-content { display: inline !important; }
html.spoilers-enabled .chips.spoiler-content { display: flex !important; }
html.spoilers-enabled .spoiler-safe-content { display: none !important; }
.spoiler-page .page-content { display: none; }
.spoiler-page.page-spoiler-revealed .page-content { display: block; }
.spoiler-page.page-spoiler-revealed .spoiler-gate { display: none; }
.primary-button { font: inherit; }
@media (max-width: 980px) {
  .site-shell { grid-template-columns: 238px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .content { padding-inline: 24px; }
  .home-hero { min-height: 450px; }
}
@media (max-width: 800px) {
  .site-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; max-height: none; padding: 12px 16px 16px; }
  .brand { grid-template-columns: 160px auto; justify-content: start; align-items: center; }
  .brand img { height: 48px; }
  .sidebar nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .nav-link { flex: 0 0 auto; white-space: nowrap; }
  .spoiler-toggle { display: inline-flex; margin-right: 8px; }
  .search-box { display: inline-block; width: min(320px, 100%); vertical-align: top; }
  .content { padding-top: 24px; }
  .hero-row { grid-template-columns: 1fr; }
  .hero-art, .entity-emblem { height: 230px; }
  .home-hero { min-height: 440px; padding: 28px; background-position: 62% center; }
  .home-hero::before { background: linear-gradient(90deg, rgba(3, 8, 20, .96), rgba(3, 8, 20, .75) 58%, rgba(3, 8, 20, .18)); }
}
@media (max-width: 590px) {
  .content { padding-inline: 14px; }
  .feature-grid, .role-grid, .threat-grid { grid-template-columns: 1fr; }
  .home-hero { min-height: 490px; border-radius: 18px; background-position: 68% center; }
  .home-logo { height: 110px; }
  .home-hero h1 { font-size: 2.75rem; }
  .hero-actions a { width: 100%; }
  .metric-grid, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card, .stat-card { min-width: 0; }
  .metric-card span { font-size: 1.65rem; }
  .stat-card strong { font-size: 1rem; overflow-wrap: anywhere; }
  .page-section { margin: 34px 0; }
  .page-section > h2::after { display: none; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
