:root {
  color-scheme: dark;
  --bg: #0b0e14;
  --sidebar: #0f141d;
  --panel: #121823;
  --line: #202b3a;
  --text: #eef2f8;
  --muted: #94a0b3;
  --faint: #68768a;
  --accent: #86ddb1;
  --accent-dark: #20382f;
  --warning: #f0c684;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--text); background: radial-gradient(ellipse at 80% -12%, rgba(59, 109, 87, .19), transparent 34rem), var(--bg); }
button, select { font: inherit; color: inherit; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button { -webkit-tap-highlight-color: transparent; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 22px 17px 18px; background: rgba(15, 20, 29, .96); border-right: 1px solid #1d2632; z-index: 4; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 7px 32px; color: inherit; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 1px #30503f; }
.brand-copy { display: grid; gap: 3px; }
.brand-name { font-size: 14px; font-weight: 800; letter-spacing: .12em; }
.brand-sub { color: #8390a3; font-size: 9px; letter-spacing: .17em; }
.nav-label, .section-caption { margin: 0 10px 9px; color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.nav { display: grid; gap: 4px; }
.nav button { display: flex; align-items: center; gap: 12px; border: 0; border-radius: 10px; padding: 12px 13px; background: transparent; color: #aab5c6; font-size: 13px; text-align: left; cursor: pointer; transition: background .18s, color .18s; }
.nav button:hover { background: #19222e; color: #fff; }
.nav button.active { background: #1a2a25; color: #a6ebc5; }
.nav-icon { width: 18px; flex: 0 0 18px; font-size: 16px; text-align: center; }
.sidebar-footer { margin-top: auto; }
.privacy-card { padding: 13px; border: 1px solid #202a37; border-radius: 13px; background: #151d28; }
.privacy-card strong { font-size: 9px; letter-spacing: .12em; }
.privacy-card p { margin: 7px 0 0; color: #8794a7; font-size: 10px; line-height: 1.55; }
.version { padding: 13px 4px 0; color: #667285; font-size: 10px; }
.main-content { width: 100%; max-width: 1320px; min-width: 0; margin: 0 auto; padding: 26px 30px 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.page-heading h1 { margin: 0; font-size: 25px; font-weight: 730; letter-spacing: -.035em; line-height: 1.1; }
.page-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.demo-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #574625; border-radius: 999px; background: #241f15; color: #f2cc82; font-size: 9px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.demo-dot { width: 6px; height: 6px; border-radius: 99px; background: #f2cc82; box-shadow: 0 0 10px #f2cc8280; }
.refresh-button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #293647; border-radius: 10px; padding: 9px 12px; background: #18212d; font-size: 11px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.refresh-button:hover, .secondary-button:hover { background: #243142; }
.simulation-notice { position: sticky; top: 0; z-index: 3; margin: 0 0 14px; padding: 11px 14px; border: 1px solid #55452b; border-radius: 13px; background: rgba(32, 27, 20, .96); color: #e9c880; box-shadow: 0 6px 20px #0003; font-size: 10px; line-height: 1.55; backdrop-filter: blur(14px); }
.simulation-notice strong { color: #f3d89f; }
.page { animation: arrive .24s ease; }
.page[hidden] { display: none; }
@keyframes arrive { from { opacity: .65; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, rgba(21, 29, 41, .92), rgba(17, 23, 33, .98)); box-shadow: 0 8px 24px #00000012; }
.hero-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; overflow: hidden; margin-bottom: 14px; padding: 22px; border: 1px solid #294639; border-radius: var(--radius); background: radial-gradient(ellipse at 91% 50%, rgba(80, 139, 105, .16), transparent 48%), linear-gradient(120deg, #15221c, #142019 60%, #111922); }
.hero-card::after { position: absolute; top: -70px; right: -35px; width: 200px; height: 200px; border: 1px solid #5a99743a; border-radius: 50%; box-shadow: 0 0 0 22px #5a99740c, 0 0 0 46px #5a997408; content: ""; pointer-events: none; }
.hero-copy, .hero-chip { position: relative; z-index: 1; }
.eyebrow { margin: 0; color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.hero-copy h2 { margin: 8px 0 5px; font-size: 22px; letter-spacing: -.04em; line-height: 1.2; }
.hero-copy > p:last-child { margin: 0; color: #a2b0c2; font-size: 11px; line-height: 1.5; }
.hero-chip { padding: 8px 10px; border-radius: 10px; background: #1d3027; color: #a8eac4; font-size: 9px; font-weight: 800; white-space: nowrap; }
.section-caption { margin: 17px 2px 9px; color: #8794a7; }
.section-caption span { color: var(--accent); }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.metric-card { min-height: 112px; padding: 14px; }
.metric-name { margin: 0; color: #8492a6; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.metric-value { overflow: hidden; margin: 9px 0 0; font-size: 22px; font-weight: 750; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.metric-caption { margin: 3px 0 0; color: #8996a8; font-size: 9px; line-height: 1.4; }
.progress-track { height: 5px; overflow: hidden; margin-top: 9px; border-radius: 99px; background: #263140; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #69ba8e, #a0ecc1); transition: width .4s; }
.lower-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 12px; }
.card-title { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .025em; }
.insight { margin: 10px 0 0; color: #a0adbf; font-size: 11px; line-height: 1.65; }
.process-list { margin: 10px 0 0; color: #9daabd; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; line-height: 1.9; white-space: pre-wrap; }
.fineprint { margin: 11px 2px; color: #748196; font-size: 9px; line-height: 1.55; }
.section-title { margin: 3px 0 5px; font-size: 19px; font-weight: 750; letter-spacing: -.035em; }
.section-intro { margin: 0 0 15px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.stack { display: grid; gap: 12px; }
.panel-copy { margin: 8px 0 0; color: #97a4b6; font-size: 11px; line-height: 1.65; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.primary-button, .secondary-button { border: 0; border-radius: 10px; padding: 10px 12px; font-size: 10px; font-weight: 750; cursor: pointer; transition: background .16s, transform .16s; }
.primary-button { background: #22362f; color: #bdf4d8; }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); background: #2d4a3f; }
.secondary-button { background: #202938; color: #d6deea; }
.secondary-button:disabled, .primary-button:disabled { opacity: .45; cursor: not-allowed; }
.status-line { min-height: 16px; margin: 11px 0 0; color: #8ed8ad; font-size: 10px; }
.game-title { margin-top: 8px; }
.game-select { display: block; width: 100%; margin-top: 10px; padding: 12px; border: 1px solid #2a3647; border-radius: 10px; background: #101722; color: #e5edf6; font-size: 11px; }
.game-select:disabled { opacity: .65; }
.list { display: grid; gap: 8px; margin-top: 13px; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 11px 12px; border: 1px solid #202a38; border-radius: 12px; background: #101722; }
.list .list-item { margin-top: 0; }
.list-item strong { font-size: 11px; }
.list-item span:not(.tag) { display: block; margin-top: 4px; color: #8592a4; font-size: 9px; line-height: 1.5; }
.tag { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; background: #1e3027; color: #a8eac4; font-size: 8px; font-weight: 800; white-space: nowrap; }
.tag-warning { background: #33291a; color: #f0c684; }
.health-row { display: flex; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid #222c3a; }
.health-row:last-of-type { border-bottom: 0; }
.health-name { color: #8794a7; font-size: 10px; }
.health-value { max-width: 60%; color: #d8e0eb; font-size: 10px; line-height: 1.5; text-align: right; }
.spaced-card { margin-top: 12px; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 14px 2px 0; border-top: 1px solid #202b3a; color: #748196; font-size: 9px; line-height: 1.5; }
.site-footer span { text-align: right; }
.mobile-nav { display: none; }
.toast { position: fixed; z-index: 10; bottom: 26px; left: 50%; max-width: min(90vw, 440px); padding: 11px 15px; transform: translate(-50%, 18px); border-radius: 12px; background: #e4f5eb; box-shadow: 0 10px 40px #0008; color: #10251a; font-size: 11px; font-weight: 750; opacity: 0; pointer-events: none; text-align: center; transition: .22s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 800px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-content { padding: 18px 16px calc(92px + env(safe-area-inset-bottom)); }
  .topbar { align-items: flex-start; margin-bottom: 13px; }
  .page-heading h1 { font-size: 22px; }
  .page-heading p { max-width: 260px; font-size: 10px; line-height: 1.5; }
  .demo-pill { gap: 5px; padding: 7px 8px; font-size: 8px; }
  .refresh-button { padding: 8px 9px; }
  .hero-card { padding: 18px; }
  .hero-copy h2 { font-size: 19px; }
  .hero-chip { font-size: 8px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric-card { min-height: 100px; padding: 13px; }
  .metric-value { font-size: 20px; }
  .metric-card:last-child { grid-column: 1 / -1; min-height: auto; }
  .lower-grid { grid-template-columns: 1fr; }
  .card { padding: 15px; }
  .section-caption { margin-top: 14px; }
  .mobile-nav { position: fixed; z-index: 5; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(6, 1fr); padding: 8px 7px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #263140; background: rgba(13, 17, 24, .94); backdrop-filter: blur(18px); }
  .mobile-nav button { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; border-radius: 10px; padding: 5px 1px 4px; background: transparent; color: #79869a; font-size: 7px; cursor: pointer; }
  .mobile-nav button.active { background: #1a2a25; color: #a6ebc5; }
  .mobile-nav .nav-icon { font-size: 16px; }
  .simulation-notice { padding: 10px 11px; font-size: 9px; }
  .button-row { gap: 7px; }
  .primary-button, .secondary-button { padding: 10px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (min-width: 801px) and (max-width: 1060px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .main-content { padding-right: 22px; padding-left: 22px; }
  .metric-value { font-size: 20px; }
}

@media (max-width: 390px) {
  .topbar { gap: 8px; }
  .top-actions { gap: 6px; }
  .refresh-label { display: none; }
  .demo-pill { font-size: 7px; }
  .health-row { gap: 8px; }
  .site-footer { flex-direction: column; }
  .site-footer span { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


.download-card { display: flex; align-items: flex-start; gap: 15px; margin: 0 0 14px; border-color: #294639; background: linear-gradient(125deg, rgba(24, 39, 31, .96), rgba(17, 23, 33, .98)); }
.download-symbol { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border: 1px solid #30503f; border-radius: 13px; background: #20382f; color: var(--accent); font-size: 25px; font-weight: 800; }
.download-content { min-width: 0; }
.download-title { margin: 7px 0 0; font-size: 17px; font-weight: 760; letter-spacing: -.025em; line-height: 1.3; }
.download-meta { margin: 10px 0 0; color: #8794a7; font-size: 10px; line-height: 1.5; }
.download-button { display: inline-flex; align-items: center; gap: 9px; color: #bdf4d8; font-size: 11px; text-decoration: none; }
.download-button span { font-size: 15px; }
.download-details { margin-top: 13px; color: #8794a7; font-size: 10px; line-height: 1.6; }
.download-details summary { width: fit-content; color: #a6ebc5; cursor: pointer; }
.download-details p { margin: 8px 0 0; }
.download-details code { color: #d9e8df; }
.download-content code { padding: 1px 4px; border-radius: 4px; background: #101722; color: #d9e8df; }

@media (max-width: 800px) {
  .download-card { gap: 11px; padding: 14px; }
  .download-symbol { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; font-size: 21px; }
  .download-title { font-size: 15px; }
  .download-button { width: 100%; justify-content: center; }
}
