@font-face { font-family:"Barlow Condensed"; src:url("assets/barlow-700.woff2") format("woff2"); font-weight:700; font-display:swap; }
@font-face { font-family:"Barlow Condensed"; src:url("assets/barlow-800.woff2") format("woff2"); font-weight:800; font-display:swap; }
@font-face { font-family:"DM Sans"; src:url("assets/dm-sans.woff2") format("woff2"); font-weight:400 700; font-display:swap; }
:root {
  color-scheme: dark;
  --base:#101116; --side:#131419; --surface:#191a22; --line:#2b2c37;
  --text:#f6f3f7; --muted:#adacbb; --quiet:#9392a4;
  --accent:#ff80b0; --accent-ink:#21121d;
  --display:"Barlow Condensed","Arial Narrow",sans-serif;
  --sans:"DM Sans",system-ui,sans-serif;
}
* { box-sizing:border-box; }
body { margin:0; min-width:300px; background:var(--base); color:var(--text); font: 15px/1.5 var(--sans); }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button { color:inherit; cursor:pointer; }
a { color:inherit; text-decoration:none; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
button { border:0; }
svg.lucide { width:19px; height:19px; flex:none; vertical-align:middle; }
h1,h2,h3,p { margin:0; }
.skip { position:fixed; z-index:10; left:12px; top:12px; transform:translateY(-170%); background:var(--accent); color:var(--accent-ink); padding:10px 16px; border-radius:8px; }
.skip:focus { transform:none; }
.sidebar { background:var(--side); border-right:1px solid var(--line); position:fixed; inset:0 auto 0 0; width:224px; display:flex; flex-direction:column; padding:28px 17px 18px; z-index:2; }
.brand { display:inline-flex; align-items:center; gap:10px; width:fit-content; margin:0 6px; }
.brand-icon { background:var(--accent); color:var(--accent-ink); border-radius:10px; width:37px; height:37px; display:grid; place-items:center; flex:none; }
.brand-icon svg { width:22px; height:22px; }
.brand strong { display:block; font:800 27px/.96 var(--display); letter-spacing:.025em; }
.brand strong span { color:var(--accent); }
.brand small { display:block; color:var(--quiet); font-size:9px; font-weight:700; letter-spacing:.16em; margin-top:5px; }
#desktop-nav { margin-top:39px; overflow:auto; }
.nav-group + .nav-group { margin-top:29px; }
.nav-group p { color:var(--quiet); font-size:10px; font-weight:700; letter-spacing:.15em; margin:0 12px 9px; }
.nav-group a { display:flex; align-items:center; gap:11px; min-height:44px; padding:8px 11px; margin:3px 0; border-radius:8px; color:var(--muted); font-size:14px; font-weight:600; }
.nav-group a:hover { background:#1e1e28; color:var(--text); }
.nav-group a[aria-current] { color:#ff9cc2; background:#30202d; }
.device { margin-top:auto; padding:13px 4px 1px; border-top:1px solid var(--line); background:none; display:flex; align-items:center; gap:9px; text-align:left; }
.device-icon { background:#262733; width:35px; height:35px; border-radius:8px; display:grid; place-items:center; color:var(--muted); }
.device > span:nth-child(2) { min-width:0; flex:1; }
.device strong,.device small { display:block; text-overflow:ellipsis; overflow:hidden; white-space:nowrap; }
.device strong { font-size:12px; }
.device small { font-size:11px; color:var(--muted); }
.device > svg { width:15px; color:var(--muted); }
.workspace { margin-left:224px; }
.topbar { min-height:74px; border-bottom:1px solid var(--line); display:flex; align-items:center; gap:14px; justify-content:space-between; padding:10px clamp(22px,3.1vw,50px); }
.search { display:flex; align-items:center; gap:10px; min-height:42px; padding:0 11px; max-width:420px; width:100%; background:#191a22; border:1px solid var(--line); border-radius:9px; color:var(--quiet); }
.search:focus-within { border-color:var(--accent); }
.search input { width:100%; min-width:0; color:var(--text); background:none; border:0; outline:none; font-size:14px; min-height:40px; }
.search input:focus-visible { outline:none; }
.search input::placeholder { color:var(--quiet); }
kbd { font-size:12px; line-height:1.25; border:1px solid #414150; border-radius:4px; padding:2px 6px; }
.mobile-brand,#mobile-nav { display:none; }
.action { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:43px; border-radius:8px; padding:8px 15px; font-size:13px; font-weight:700; background:transparent; border:1px solid transparent; white-space:nowrap; }
.action svg { width:16px; height:16px; }
.action.outline { border-color:#373745; background:#1b1c24; }
.action.outline:hover { background:#282935; }
.action.primary { background:var(--accent); color:var(--accent-ink); }
.action.primary:hover { background:#ffa7ca; }
.action.hero-secondary { background:#1a1422d9; border-color:#a3869d; }
.action.hero-secondary:hover { background:#372536; }
main,footer { width:min(100%, 1450px); margin-inline:auto; padding-inline:clamp(22px,3.1vw,50px); }
main { padding-top:27px; }
main:focus { outline:none; }
.hero { isolation:isolate; position:relative; min-height:340px; border-radius:14px; overflow:hidden; border:1px solid #463444; display:flex; align-items:center; background:#351c31 url("assets/leonida.webp") center 52% / cover no-repeat; }
.hero::before { content:""; inset:0; position:absolute; z-index:-1; background:linear-gradient(90deg,#17121ff5 0%,#211425d6 27%,#21142565 56%,#18121a1a 100%), linear-gradient(0deg,#160e1a70,transparent 35%); }
.hero-copy { padding:30px clamp(22px,4vw,62px); position:relative; }
.hero h1 { font:800 clamp(62px,6.3vw,102px)/.85 var(--display); letter-spacing:-.025em; }
.hero h1 em { color:#ff8eb6; font-style:normal; }
.hero-copy p { max-width:315px; color:#e6d8e4; margin:17px 0 20px; font-size:15px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:9px; }
.hero-caption { position:absolute; right:17px; bottom:14px; color:#fff2f4; font-size:10px; font-weight:700; letter-spacing:.1em; display:flex; gap:6px; align-items:center; }
.hero-caption svg { width:13px; height:13px; }
.dashboard-section { margin-top:28px; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:14px; margin-bottom:12px; }
.section-head h2,.panel h2,.empty h2 { font:700 34px/.98 var(--display); letter-spacing:-.012em; }
.section-head p { color:var(--muted); margin-top:6px; font-size:13px; }
.text-link,.plain-link { color:#ffa1c5; display:inline-flex; gap:7px; align-items:center; justify-content:flex-start; background:none; padding:0; width:fit-content; font-size:13px; font-weight:700; min-height:36px; }
.text-link:hover,.plain-link:hover { color:#fed0e2; }
.text-link svg,.plain-link svg { width:14px; height:14px; }
.stats,.cards,.account-layout { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.stat,.guide-card,.panel { border:1px solid var(--line); background:var(--surface); border-radius:12px; }
.stat { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:8px 10px; padding:13px 14px; --bar:#ff80b0; }
.stat:hover,.guide-card:focus-within { border-color:#525163; }
.stat:nth-child(1) { --bar:#b6a1ff; }
.stat:nth-child(3) { --bar:#ffc080; }
.category-icon { width:36px; height:36px; display:grid; place-items:center; border-radius:9px; flex:none; }
.category-icon.violet { color:#c3afff; background:#32294c; }
.category-icon.pink { color:#ff9cc3; background:#422638; }
.category-icon.amber { color:#ffcc95; background:#3e3027; }
.category-icon.mint { color:#98e5c6; background:#253e37; }
.category-icon.blue { color:#a9cbff; background:#283548; }
.stat-name { font-size:13px; font-weight:700; }
.stat strong { font:700 25px/1 var(--display); white-space:nowrap; }
.stat small { color:var(--quiet); font-size:.69em; }
progress { grid-column:1/-1; appearance:none; width:100%; height:5px; border:0; border-radius:4px; overflow:hidden; background:#30313d; color:var(--bar); }
progress::-webkit-progress-bar { background:#30313d; }
progress::-webkit-progress-value { background:var(--bar); border-radius:4px; }
progress::-moz-progress-bar { background:var(--bar); }
.guide-card { display:flex; flex-direction:column; min-width:0; padding:13px 15px 8px; }
.card-top,.card-bottom,.sheet-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.icon-button { background:none; min-width:41px; height:41px; display:grid; place-items:center; border-radius:8px; color:var(--quiet); padding:0; }
.icon-button:hover { color:var(--text); background:#282934; }
.icon-button.selected { color:var(--accent); }
.bookmark.selected svg { fill:#ff80b052; }
.card-meta { text-transform:uppercase; font-size:10px; letter-spacing:.075em; color:var(--muted); font-weight:700; margin-top:11px; }
.card-meta span { padding:0 3px; color:var(--accent); }
.guide-card h3 { font:700 27px/1 var(--display); margin:4px 0 6px; }
.guide-card h3 button { text-align:left; background:none; font:inherit; padding:0; }
.guide-card h3 button:hover { color:#ffacd0; }
.card-summary { font-size:13px; color:var(--muted); min-height:2.9em; margin-bottom:6px; }
.card-bottom { border-top:1px solid var(--line); margin-top:auto; min-height:43px; }
.done-button.selected { color:#a1e4c9; }
footer { color:var(--quiet); margin-top:30px; padding-block:18px 26px; font-size:12px; }
footer span { margin:0 4px; color:var(--accent); }
.page { min-height:58vh; }
.page-title { margin-bottom:17px; }
.page h1 { font:800 clamp(48px,6vw,76px)/.92 var(--display); letter-spacing:-.019em; }
.scope { color:var(--muted); font-size:13px; margin-bottom:15px; }
.category-links { display:flex; flex-wrap:wrap; gap:8px; }
.category-links a { color:var(--text); display:inline-flex; align-items:center; gap:7px; min-height:43px; padding:8px 13px; background:var(--surface); border:1px solid var(--line); border-radius:8px; }
.category-links a:hover { border-color:var(--accent); }
.filters { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:15px 0; }
.segmented { border:1px solid var(--line); background:var(--surface); border-radius:8px; padding:3px; display:flex; gap:2px; }
.segmented button { background:none; color:var(--muted); padding:7px 12px; min-height:38px; border-radius:5px; }
.segmented button[aria-pressed="true"] { color:var(--text); background:#32323e; }
.area { display:flex; gap:8px; align-items:center; color:var(--muted); font-size:13px; }
select { cursor:pointer; }
.area select { width:auto; padding-block:7px; min-height:44px; }
.result-count { color:var(--muted); margin-left:auto; font-size:13px; }
.empty { padding:33px 15px; text-align:center; background:var(--surface); border:1px dashed #444452; border-radius:12px; }
.empty > svg { color:var(--accent); }
.empty h2 { margin:9px 0; }
.empty p { color:var(--muted); margin-bottom:12px; }
.account-layout { grid-template-columns:repeat(2,minmax(0,1fr)); }
.panel { min-width:0; padding:20px; }
.panel h2 { margin:11px 0; }
.panel p { color:var(--muted); margin:10px 0 13px; }
.panel .text-link { display:flex; }
.panel-actions,.sheet-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.panel .notice { border-top:1px solid var(--line); padding-top:13px; margin-bottom:0; font-size:13px; }
.notice svg { width:15px; margin-right:4px; color:var(--accent); }
form:not(.search,.sheet-actions) { display:grid; gap:12px; justify-items:start; }
form label:not(.checkbox) { width:100%; display:grid; gap:5px; }
form input:not([type=checkbox], [type=search]),select,textarea { display:block; color:var(--text); background:#121319; border:1px solid #414150; border-radius:7px; padding:9px 10px; width:100%; }
.checkbox { display:flex; align-items:center; gap:8px; font-size:13px; min-height:42px; }
.checkbox input { width:18px; height:18px; accent-color:var(--accent); }
textarea { resize:vertical; }
dialog { width:min(560px,calc(100% - 24px)); max-height:calc(100dvh - 24px); overflow:auto; color:var(--text); background:#1b1c24; border:1px solid #454554; border-radius:16px; padding:21px; overscroll-behavior:contain; }
dialog::backdrop { background:#090910b5; }
body:has(dialog[open]) { overflow:hidden; }
dialog h2 { margin:8px 0 3px; font:800 clamp(36px,6vw,55px)/.96 var(--display); }
dialog h3 { margin-top:16px; }
.detail-label { color:var(--accent); font-size:13px; }
.detail-summary { margin:12px 0; color:var(--muted); white-space:pre-wrap; overflow-wrap:anywhere; }
.steps { margin:7px 0; padding-left:22px; }
.steps li { padding:4px 0 4px 5px; }
.steps li::marker { color:var(--accent); font-weight:700; }
#toast:not(:empty) { position:fixed; z-index:4; right:20px; bottom:20px; max-width:min(340px,calc(100% - 40px)); padding:11px 15px; border-radius:9px; border:1px solid #535264; background:#282935; font-size:14px; }
@media (max-width:1100px) {
  .sidebar { width:190px; padding-inline:13px; }
  .workspace { margin-left:190px; }
  .stat { padding-inline:10px; }
}
@media (max-width:840px) {
  .sidebar { display:none; }
  .workspace { margin-left:0; }
  .topbar { flex-wrap:wrap; padding:12px 16px; gap:10px; }
  .mobile-brand { display:inline-flex; margin:0; }
  .mobile-brand .brand-icon { width:32px; height:32px; }
  .mobile-brand strong { font-size:25px; }
  .search { order:3; max-width:none; }
  .account-button { margin-left:auto; }
  main,footer { padding-inline:16px; }
  main { padding-top:16px; }
  #mobile-nav { display:grid; grid-template-columns:repeat(4,1fr); position:fixed; z-index:2; inset:auto 0 0; padding-bottom:env(safe-area-inset-bottom); border-top:1px solid var(--line); background:#171820; }
  #mobile-nav a { display:grid; gap:3px; justify-items:center; align-content:center; min-height:57px; font-size:11px; color:var(--muted); }
  #mobile-nav a[aria-current] { color:var(--accent); }
  footer { padding-bottom:calc(77px + env(safe-area-inset-bottom)); }
  #toast:not(:empty) { bottom:calc(69px + env(safe-area-inset-bottom)); }
}
@media (max-width:560px) {
  .hero { min-height:330px; background-position:59% center; }
  .hero::before { background:linear-gradient(90deg,#1b1023f2,#21142594 61%,#20132350),linear-gradient(0deg,#160e1ab9,transparent 35%); }
  .hero-copy { padding:23px 18px 32px; }
  .hero h1 { font-size:clamp(49px,13vw,71px); }
  .hero-copy p { max-width:245px; font-size:14px; }
  .hero-caption { font-size:9px; right:10px; bottom:8px; }
  .dashboard-section { margin-top:22px; }
  .section-head h2 { font-size:30px; }
  .section-head .text-link { flex-shrink:0; font-size:11px; gap:4px; }
  .stat { grid-template-columns:1fr; gap:4px; align-content:start; padding:10px 8px; }
  .stat .category-icon { width:31px; height:31px; }
  .stat-name { font-size:11px; }
  .stat strong { font-size:23px; }
  .stats,.cards,.account-layout { gap:8px; }
  .cards,.account-layout { grid-template-columns:1fr; }
  .card-summary { min-height:0; }
  dialog { padding:16px; }
  kbd { display:none; }
}
@media (max-width:365px) {
  .hero-actions .action { font-size:12px; padding-inline:8px; }
  .hero-actions { gap:6px; }
  main,footer { padding-inline:12px; }
}
.detail-map-link { display:flex; }
.map-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(235px,290px); gap:12px; align-items:start; }
.map-controls { grid-column:2; grid-row:1; display:grid; gap:9px; min-width:0; border:1px solid var(--line); border-radius:12px; background:var(--surface); padding:12px; }
.map-input { display:flex; align-items:center; gap:8px; min-height:43px; padding:0 9px; border:1px solid #414150; background:#121319; border-radius:7px; color:var(--muted); }
.map-input:focus-within { border-color:var(--accent); }
.map-input input { border:0; color:var(--text); background:none; width:100%; min-width:0; min-height:41px; outline:none; }
.map-input input:focus-visible { outline:none; }
.map-filters { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.map-filters select { min-width:0; padding-inline:6px; min-height:44px; font-size:12px; text-overflow:ellipsis; }
.map-feed { display:flex; justify-content:space-between; gap:4px; align-items:center; color:var(--muted); font-size:12px; }
.map-feed .icon-button { width:34px; height:34px; min-width:34px; }
.map-feed button:disabled { opacity:.55; cursor:wait; }
.map-count { color:#f1c4d6; font-size:12px; }
.map-results { display:flex; flex-direction:column; overflow:auto; max-height:420px; overscroll-behavior:contain; }
.map-results button { display:flex; gap:8px; align-items:center; width:100%; min-height:46px; padding:6px 4px; text-align:left; background:none; border-radius:0; border-top:1px solid var(--line); }
.map-results button:hover,.map-results button[aria-current] { background:#2b2a37; }
.map-results button:focus-visible { outline-offset:-2px; }
.map-results strong,.map-results small { display:block; }
.map-results strong { font-size:13px; line-height:1.25; }
.map-results small,.map-results p { color:var(--muted); font-size:12px; }
.map-results .map-found { margin-left:auto; color:#c7fbdc; font-size:11px; }
.map-stage { grid-row:1; grid-column:1; min-width:0; border:1px solid #3e4050; border-radius:13px; contain:layout; overflow:hidden; }
#leonida-map { background:#151f31; height:clamp(440px,63dvh,720px); font-family:var(--sans); }
#leonida-map:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.map-legend { display:flex; align-items:center; flex-wrap:wrap; gap:7px 17px; padding:9px 12px; color:var(--muted); font-size:11px; background:#1b1d27; }
.map-legend span { display:flex; align-items:center; gap:5px; }
.map-legend i,.map-results button i { display:inline-block; width:8px; height:8px; background:var(--pin); border-radius:50%; flex:none; }
.map-credit { margin-top:12px; color:var(--muted); font-size:12px; }
.map-credit a { text-decoration:underline; text-underline-offset:2px; }
.map-stage .leaflet-bar { border:1px solid #62647a; border-radius:8px; overflow:hidden; }
.map-stage .leaflet-bar a { background:#242736; color:#fff1f8; border-color:#49495d; width:38px; height:38px; line-height:38px; }
.map-stage .leaflet-bar a:hover { background:#33374d; }
.map-stage .leaflet-popup-content-wrapper,.map-stage .leaflet-popup-tip,.map-stage .leaflet-tooltip { background:#262a3a; color:#fff3f9; }
.map-stage .leaflet-tooltip { border-color:#62647a; }
.map-stage .leaflet-popup-content { margin:11px 21px 11px 12px; }
.map-pin-popup strong { display:block; max-width:220px; }
.map-pin-popup button { color:#ffb2d0; display:block; background:none; padding:8px 0 0; text-align:left; font-weight:700; }
.map-cluster { display:grid; place-items:center; border:1px solid #dcbbef; border-radius:50%; background:#36294ee8; color:#fbeafa; font-size:10px; font-weight:700; }
.map-cluster:hover { background:#573e71; }
@media (max-width:840px) {
  #mobile-nav { grid-template-columns:repeat(5,1fr); }
}
@media (max-width:660px) {
  .map-layout { display:flex; flex-direction:column; align-items:stretch; gap:9px; }
  .map-controls { display:contents; }
  .map-stage { order:2; }
  .map-count { order:3; }
  .map-results { order:4; max-height:none; background:var(--surface); border-radius:9px; padding:0 9px; }
  #leonida-map { height:clamp(320px,56dvh,475px); }
  .map-feed { margin-top:-7px; }
  .map-legend { gap:4px 9px; padding:6px 9px; }
  .map-reset { padding-inline:10px; }
}
.progress-readings { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.game-stat { display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:6px; padding:13px; }
.game-stat strong { font-size:32px; color:#ffc1d8; }
.older-reading,.snapshot-date { font-size:12px; color:var(--muted); }
.snapshot-date { margin:7px 0 0; }
.progress-layout { display:grid; grid-template-columns:1.1fr .9fr; gap:12px; margin-top:16px; align-items:start; }
.snapshot-list { list-style:none; margin:0; padding:0; }
.snapshot-list li { padding:12px 0; border-top:1px solid var(--line); }
.snapshot-list time { font-weight:700; }
.snapshot-list li > span { display:block; color:var(--muted); font-size:12px; }
.snapshot-list dl { margin:7px 0 0; }
.snapshot-list dl div { display:flex; justify-content:space-between; gap:12px; }
.snapshot-list dt { color:var(--muted); }
.snapshot-list dd { margin:0; }
@media (max-width:660px) {
  .progress-readings { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .progress-layout { grid-template-columns:1fr; }
}
.progress-preview { margin:0 0 13px; font-size:13px; color:#ffa1c5; }
.progress-preview summary { cursor:pointer; padding-block:5px; }
.progress-preview img { display:block; width:100%; margin-top:4px; border-radius:7px; }
.xbox-panel { margin-bottom:22px; }
.xbox-panel .section-head { align-items:center; margin-bottom:8px; }
.xbox-panel .section-head h2 { margin:0; }
.xbox-panel .section-head p { margin:5px 0 0; }
.xbox-actions { margin-top:0; }
.xbox-panel button:disabled { cursor:wait; opacity:.58; }
.xbox-readings { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:14px; }
.xbox-readings div { border-radius:8px; background:#242531; padding:8px 11px; }
.xbox-readings small,.xbox-readings strong { display:block; }
.xbox-readings small { color:var(--muted); font-size:11px; }
.xbox-readings strong { color:#ffc1d8; font:700 26px/1.2 var(--display); }
.xbox-setup,.xbox-unlocked { margin-top:10px; }
.xbox-setup summary,.xbox-unlocked summary { color:#ffa1c5; font-weight:700; cursor:pointer; padding:6px 0; }
.xbox-setup .text-link { display:inline-flex; min-height:0; }
.xbox-setup form { max-width:340px; }
.xbox-panel .xbox-message { margin:8px 0 0; color:#eec8d8; }
.xbox-panel .xbox-message:empty { display:none; }
.progress-subheading { font:700 25px/1.1 var(--display); margin-bottom:8px; }
@media (max-width:560px) {
  .xbox-panel .section-head { display:block; }
  .xbox-actions { margin-top:8px; }
  .xbox-readings div { padding-inline:7px; }
  .xbox-readings strong { font-size:23px; }
}
