:root {
  --bg: #08111f;
  --panel: rgba(17, 28, 47, 0.82);
  --panel-strong: #121f34;
  --line: #263955;
  --text: #e8edf6;
  --muted: #8ea3bf;
  --cyan: #00c8ff;
  --gold: #ffd369;
  --green: #4ade80;
  --red: #f87171;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    linear-gradient(115deg, rgba(118,42,210,.34), transparent 34%),
    repeating-linear-gradient(60deg, rgba(255,255,255,.045) 0 1px, transparent 1px 34px),
    radial-gradient(ellipse at 50% 0%, rgba(196,83,255,.42), transparent 56%),
    linear-gradient(135deg, #170a30, #32125f 48%, #11081f);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px;
  background: rgba(8,17,31,.78); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; letter-spacing: .02em; }
.site-header nav { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.home-hero, .smash-page, .analysis-page { width: min(1320px, calc(100% - 36px)); margin: 0 auto; }
.fighter-page { width: min(1480px, calc(100% - 36px)); margin: 0 auto; }
.home-landing { min-height: calc(100vh - 65px); display: grid; place-items: center; overflow: hidden; }
.home-stage { width: min(1360px, calc(100% - 36px)); min-height: 720px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 42px; align-items: center; }
.home-copy { position: relative; z-index: 1; }
.home-copy h1 { max-width: 620px; font-size: clamp(62px, 9vw, 132px); line-height: .86; letter-spacing: 0; text-wrap: balance; }
.home-signature { margin: 24px 0 0; font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; font-size: clamp(24px, 3vw, 46px); font-style: italic; color: #e9d7ff; }
.hex-map { position: relative; width: min(760px, 96vw); aspect-ratio: 1; margin: 0 auto; }
.hex-frame { position: absolute; inset: 8%; clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); background: linear-gradient(135deg, rgba(210,154,255,.26), rgba(82,18,156,.32)); border: 1px solid rgba(238,218,255,.4); box-shadow: inset 0 0 90px rgba(250,225,255,.18), 0 34px 120px rgba(19,6,44,.52); }
.hex-frame::after { content: ""; position: absolute; inset: 9%; clip-path: inherit; border: 1px solid rgba(255,255,255,.26); background: repeating-linear-gradient(120deg, rgba(255,255,255,.08) 0 1px, transparent 1px 22px); }
.hex-node { position: absolute; width: 172px; min-height: 150px; display: grid; place-items: center; align-content: center; gap: 10px; padding: 16px; clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%); background: linear-gradient(160deg, rgba(31,12,63,.96), rgba(17,6,36,.88)); border: 1px solid rgba(238,218,255,.42); text-align: center; box-shadow: 0 22px 52px rgba(0,0,0,.36), inset 0 0 34px rgba(213,154,255,.12); }
.hex-node span { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: radial-gradient(circle, rgba(218,166,255,.42), rgba(93,31,151,.26)); color: #f1dcff; font-family: Georgia, serif; font-size: 32px; font-weight: 900; box-shadow: inset 0 0 18px rgba(255,255,255,.08); }
.hex-node strong { font-size: 16px; color: #f8efff; }
.node-gaming { left: 50%; top: 2%; transform: translateX(-50%); }
.node-economics { right: 5%; top: 24%; }
.node-business { right: 5%; bottom: 24%; }
.node-physics { left: 50%; bottom: 2%; transform: translateX(-50%); }
.node-language { left: 5%; bottom: 24%; }
.node-miscellaneous { left: 5%; top: 24%; }
.placeholder-page { min-height: calc(100vh - 65px); display: grid; place-items: center; }
.placeholder-page p { margin: 0; font-size: clamp(28px, 5vw, 68px); font-weight: 900; text-align: center; color: #f2e7ff; }
.category-page { width: min(1180px, calc(100% - 36px)); min-height: calc(100vh - 65px); margin: 0 auto; display: grid; align-items: center; justify-items: center; padding: 54px 0; }
.category-panel { width: min(760px, 100%); text-align: center; }
.category-panel h1 { font-size: clamp(48px, 7vw, 96px); }
.analysis-directory { margin-top: 34px; display: grid; justify-content: center; gap: 18px; }
.game-analysis-card { width: min(380px, calc(100vw - 54px)); min-height: 316px; display: grid; place-items: center; align-content: center; gap: 20px; padding: 30px; border: 1px solid rgba(238,218,255,.34); border-radius: 8px; background: linear-gradient(155deg, rgba(20,7,42,.86), rgba(15,5,32,.72)); box-shadow: 0 26px 78px rgba(16,5,38,.36), inset 0 0 36px rgba(255,255,255,.04); }
.game-analysis-card strong { font-size: 30px; color: #f4ecff; text-align: center; text-shadow: 0 3px 0 rgba(0,0,0,.34); }
.smash-orb { width: 178px; height: 178px; border-radius: 50%; clip-path: circle(50%); display: grid; place-items: center; cursor: pointer; transition: transform .18s ease, filter .18s ease; }
.smash-orb:hover { transform: translateY(-4px) scale(1.03); filter: drop-shadow(0 20px 28px rgba(0,0,0,.34)); }
.smash-mark { position: relative; width: 164px; height: 164px; border-radius: 50%; background: #f8f3ff; box-shadow: 0 0 0 12px rgba(255,255,255,.08), 0 18px 44px rgba(0,0,0,.34); overflow: hidden; }
.smash-mark::before { content: ""; position: absolute; left: 44%; top: 0; width: 12%; height: 100%; background: #130b24; }
.smash-mark::after { content: ""; position: absolute; left: 0; top: 47%; width: 100%; height: 10%; background: #130b24; }
.home-panel, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 20px 80px rgba(0,0,0,.32); }
.home-panel { padding: 48px; width: min(760px, 100%); }
.eyebrow { margin: 0 0 10px; color: var(--cyan); text-transform: uppercase; font-size: 12px; letter-spacing: .14em; font-weight: 800; }
h1, h2 { margin: 0; line-height: 1; }
h1 { font-size: clamp(48px, 8vw, 96px); }
h2 { font-size: 28px; }
.lede { color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 760px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 6px; border: 1px solid var(--line); font-weight: 800; }
.button.primary { background: var(--cyan); color: #06101b; border-color: transparent; }
.button.ghost { color: var(--text); background: rgba(255,255,255,.04); }
.home-actions, .profile-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.smash-hero, .fighter-hero { display: grid; grid-template-columns: 1.4fr .9fr; gap: 24px; align-items: stretch; padding: 42px 0 26px; }
.fighter-card-page { position: relative; min-height: calc(100vh - 65px); isolation: isolate; }
.fighter-card-page::before { content: ""; position: fixed; inset: 65px 0 0; z-index: -3; background: linear-gradient(90deg, rgba(8,17,31,.99) 0%, rgba(8,17,31,.96) 44%, rgba(8,17,31,.62) 68%, rgba(8,17,31,.28) 100%); pointer-events: none; }
.fighter-card-page::after { content: ""; position: fixed; inset: 65px 0 0; z-index: -2; background: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 1px, transparent 1px 12px); opacity: .28; pointer-events: none; }
.fighter-bg { position: fixed; inset: 65px 0 0; z-index: -4; pointer-events: none; display: flex; align-items: flex-end; justify-content: flex-end; overflow: hidden; }
.fighter-model-img { flex: 0 0 auto; height: min(100vh, 1100px); width: auto; max-width: min(92vw, 1800px); object-fit: contain; object-position: right bottom; opacity: .70; filter: drop-shadow(-28px -6px 44px rgba(0,0,0,.56)) saturate(1.12) contrast(1.05); }
.fighter-watermark { position: fixed; right: 10vw; top: 20vh; z-index: -4; font-size: min(40vw, 540px); font-weight: 900; color: rgba(232,237,246,.08); pointer-events: none; }
.stat-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-wall div, .hero-metrics div { background: rgba(18,31,52,.74); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.stat-wall strong, .hero-metrics strong { display: block; font-size: 28px; color: var(--gold); }
.stat-wall span, .hero-metrics span { color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 800; }
.overview-grid { display: grid; grid-template-columns: minmax(380px, .78fr) minmax(640px, 1.42fr); gap: 18px; align-items: stretch; }
.leaderboard-panel { max-height: 460px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(0,200,255,.55) rgba(8,17,31,.42); }
.overview-grid .chart-panel { min-height: 420px; overflow: visible; }
.leaderboard-panel::-webkit-scrollbar { width: 10px; }
.leaderboard-panel::-webkit-scrollbar-thumb { background: rgba(0,200,255,.55); border-radius: 999px; }
.leaderboard-panel::-webkit-scrollbar-track { background: rgba(8,17,31,.42); }
.round-selector-bar { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; flex-wrap: wrap; }
.round-selector-bar .eyebrow { margin: 0; white-space: nowrap; }
.round-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.round-pill { padding: 7px 16px; border-radius: 6px; border: 1px solid var(--line); background: rgba(18,31,52,.74); color: var(--muted); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background .14s, color .14s; }
.round-pill:hover { background: rgba(18,31,52,1); color: var(--text); }
.round-pill.active { background: var(--cyan); color: #06101b; border-color: transparent; }
.analysis-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 6px; }
.analysis-card { display: block; padding: 22px; background: rgba(18,31,52,.76); border: 1px solid var(--line); border-radius: 8px; }
.analysis-card span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 800; letter-spacing: .12em; }
.analysis-card strong { display: block; margin-top: 8px; font-size: 30px; color: var(--text); }
.panel { padding: 20px; }
.leader-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.leader-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(142,163,191,.18); }
.leader-list span { color: var(--gold); font-weight: 800; }
.select-section { padding: 32px 0 56px; }
.section-title { margin-bottom: 18px; }
.character-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 12px; }
.fighter-tile { position: relative; min-height: 190px; overflow: hidden; background: #101b2d; border: 1px solid var(--line); border-radius: 8px; }
.tile-art { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(150deg, rgba(0,200,255,.15), rgba(255,211,105,.10)); }
.tile-art img { width: 130%; height: 130%; object-fit: cover; opacity: .72; transform: translateY(-3%); }
.tile-art img.tile-icon { width: 92px; height: 92px; object-fit: contain; opacity: 1; transform: none; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
.initial, .profile-initial { font-size: 76px; font-weight: 900; color: rgba(232,237,246,.28); }
.tile-info { position: absolute; inset: auto 0 0; padding: 42px 12px 12px; background: linear-gradient(transparent, rgba(8,17,31,.96)); }
.tile-info span { color: var(--gold); font-weight: 900; }
.tile-info strong { display: block; font-size: 17px; }
.fighter-hero { min-height: 330px; grid-template-columns: minmax(520px, 880px) 1fr; padding: 46px 0 24px; }
.fighter-copy { padding: 22px 0; }
.fighter-copy h1 { max-width: 680px; font-size: clamp(58px, 7vw, 112px); line-height: .9; text-shadow: 0 4px 0 rgba(0,0,0,.45); }
.fighter-title-row { display: flex; align-items: center; gap: 22px; }
.profile-icon { flex: 0 0 auto; width: 118px; height: 118px; object-fit: contain; border-radius: 50%; background: rgba(8,17,31,.58); border: 1px solid rgba(238,218,255,.32); box-shadow: 0 18px 42px rgba(0,0,0,.34); }
.profile-icon.initial { display: grid; place-items: center; font-size: 58px; }
.crumb { color: var(--muted); font-size: 13px; }
.hero-metrics { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 10px; margin-top: 26px; max-width: 740px; }
.fighter-card-page .hero-metrics div { background: rgba(18,31,52,.84); }
.fighter-art { position: relative; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: rgba(18,31,52,.65); min-height: 360px; display: grid; place-items: center; }
.profile-model { width: 100%; height: 100%; object-fit: cover; opacity: .86; }
.profile-chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 56px; max-width: 1380px; }
.fighter-card-page .chart-panel { background: rgba(17,28,47,.88); backdrop-filter: blur(6px); }
.profile-chart-grid .wide { grid-column: 1 / -1; }
.profile-chart-grid .chart-panel { overflow-x: visible; }
.profile-chart-grid canvas { min-width: unset; }
.profile-chart-grid .wide canvas { min-width: unset; }
.opponent-section h2 { color: #c084fc; }
.opp-kpis { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.opp-kpi { background: rgba(18,31,52,.74); border: 1px solid rgba(192,132,252,.28); border-radius: 8px; padding: 12px 18px; }
.opp-kpi strong { display: block; font-size: 22px; color: #c084fc; }
.opp-kpi span { font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 800; letter-spacing: .1em; }
.opp-log { display: grid; gap: 6px; max-height: 360px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(192,132,252,.45) rgba(8,17,31,.42); }
.opp-row { display: grid; grid-template-columns: 72px 28px 1fr auto; gap: 8px; align-items: center; padding: 7px 10px; background: rgba(8,17,31,.42); border: 1px solid rgba(142,163,191,.14); border-radius: 6px; font-size: 13px; }
.opp-row .opp-round { color: var(--muted); font-size: 11px; }
.opp-row .opp-win { color: #4ade80; font-weight: 900; }
.opp-row .opp-loss { color: #f87171; font-weight: 900; }
.opp-row .opp-nt { color: #c084fc; font-weight: 800; }
.analysis-hero { padding: 42px 0 26px; }
.atlas-panel, .pareto-panel { margin-bottom: 56px; }
.split-heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; }
.control-label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; }
select { min-width: 220px; min-height: 38px; border: 1px solid var(--line); border-radius: 6px; background: #101b2d; color: var(--text); padding: 0 12px; font: inherit; }
select[multiple] { min-width: 250px; min-height: 240px; padding: 8px 0; }
select[multiple] option { padding: 6px 14px; }
.wide-canvas-wrap { width: 100%; overflow-x: auto; border-radius: 8px; }
.wide-canvas-wrap canvas { min-width: 1100px; }
.pareto-table { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pareto-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; background: rgba(8,17,31,.42); border: 1px solid rgba(142,163,191,.16); border-radius: 6px; }
.pareto-row span { color: var(--gold); font-weight: 900; }
.pareto-row a { color: var(--text); }
.pareto-row strong { color: var(--cyan); }
.pdf-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 56px; }
.pdf-row { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; min-height: 52px; padding: 12px; background: rgba(8,17,31,.42); border: 1px solid rgba(142,163,191,.16); border-radius: 6px; }
.pdf-row span { color: var(--gold); font-weight: 900; }
.pdf-row strong { color: var(--text); }
canvas { width: 100%; height: auto; display: block; }
.page-toggle-bar { display: inline-flex; gap: 0; margin-bottom: 30px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.toggle-pill { display: inline-flex; align-items: center; gap: 8px; padding: 16px 38px; font-size: 20px; font-weight: 900; letter-spacing: .03em; }
.toggle-pill.active { background: var(--cyan); color: #06101b; }
.toggle-pill:not(.active) { background: rgba(18,31,52,.74); color: var(--muted); transition: background .14s, color .14s; }
.toggle-pill:not(.active):hover { background: rgba(18,31,52,.95); color: var(--text); }
.panel-heading { margin-bottom: 0; }
.opp-nt-label { display: block; font-size: 13px; color: #c084fc; font-weight: 800; margin-top: 3px; font-style: normal; }
.opp-page-badge { margin: 6px 0 18px; font-size: 18px; font-weight: 900; color: #c084fc; letter-spacing: .04em; }
.opp-hero-metrics strong { color: #c084fc; }
.opp-card-page .fighter-card-page::before { background: linear-gradient(90deg, rgba(8,6,28,.99) 0%, rgba(8,6,28,.96) 44%, rgba(8,6,28,.62) 68%, rgba(8,6,28,.28) 100%); }
@media (max-width: 820px) {
  .smash-hero, .fighter-hero, .overview-grid, .profile-chart-grid, .analysis-links { grid-template-columns: 1fr; }
  .home-stage { grid-template-columns: 1fr; min-height: auto; padding: 44px 0; }
  .hex-node { width: 112px; min-height: 98px; }
  .hex-node span { width: 44px; height: 44px; font-size: 22px; }
  .hex-node strong { font-size: 12px; }
  .stat-wall, .hero-metrics { grid-template-columns: 1fr 1fr; }
  .split-heading { align-items: start; flex-direction: column; }
  h1 { font-size: 48px; }
}