:root {
  --bg:#07090d;
  --panel:#101722;
  --panel-2:#171f2d;
  --text:#f4f7fb;
  --muted:#98a6ba;
  --line:#263348;
  --blue:#1685ff;
  --blue-2:#52b7ff;
  --gold:#e6b85c;
  --green:#57d49b;
  --amber:#ffca68;
  --radius:18px;
  --shadow:0 18px 50px rgba(0,0,0,.25);
}
* { box-sizing:border-box; }
html { color-scheme:dark; scroll-behavior:smooth; }
body { margin:0; background:radial-gradient(circle at 50% -10%,#14233c 0,#07090d 36%); color:var(--text); font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; line-height:1.55; }
a { color:var(--blue-2); text-decoration:none; }
a:hover { color:#8fd1ff; }
img { max-width:100%; }
h1,h2,h3 { margin:0 0 .45em; line-height:1.05; letter-spacing:-.035em; }
h1 { font-size:clamp(3rem,7vw,6.4rem); }
h2 { font-size:clamp(2rem,4vw,3.6rem); }
h3 { font-size:1.35rem; }
p { margin:0 0 1em; }
button,input,select { font:inherit; }
.wrap { width:min(1160px,calc(100% - 40px)); margin-inline:auto; }
.skip-link { position:absolute; left:-999px; top:8px; z-index:999; padding:10px 14px; background:#fff; color:#000; }
.skip-link:focus { left:8px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.site-header { position:sticky; top:0; z-index:30; border-bottom:1px solid rgba(38,51,72,.85); background:rgba(7,9,13,.88); backdrop-filter:blur(16px); }
.header-inner { min-height:74px; display:flex; align-items:center; gap:18px; }
.brand { display:inline-flex; align-items:center; gap:10px; color:#fff; font-size:1.08rem; font-weight:850; white-space:nowrap; }
.brand img { width:42px; height:42px; border-radius:50%; object-fit:cover; }
.nav { display:flex; gap:4px; align-items:center; margin-left:auto; }
.nav a { color:#b8c4d4; padding:8px 9px; border-radius:9px; font-size:.86rem; font-weight:700; }
.nav a:hover,.nav a[aria-current="page"] { color:#fff; background:#161f2d; }
.global-search { position:relative; width:210px; flex:0 0 auto; }
.global-search input { width:100%; min-height:39px; border:1px solid var(--line); border-radius:11px; padding:0 12px; color:#fff; background:#0d131d; outline:none; }
.global-search input:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(22,133,255,.13); }
.global-results { position:absolute; right:0; top:47px; width:min(430px,90vw); max-height:420px; overflow:auto; border:1px solid #354661; border-radius:14px; background:rgba(8,12,18,.98); box-shadow:0 20px 50px rgba(0,0,0,.45); padding:7px; }
.global-result { display:block; padding:11px 12px; border-radius:10px; color:#e8eef7; }
.global-result:hover,.global-result:focus { background:#172234; color:#fff; }
.global-result strong { display:block; }
.global-result span { display:block; color:var(--muted); font-size:.78rem; }
.global-no-results { padding:16px; color:var(--muted); text-align:center; }
.hero { padding:92px 0 70px; }
.hero-grid { display:grid; grid-template-columns:1.12fr .88fr; align-items:center; gap:48px; }
.hero-mark { width:min(43vw,480px); justify-self:end; border-radius:28px; box-shadow:0 25px 75px rgba(0,0,0,.4); }
.kicker { color:var(--gold); font-size:.77rem; font-weight:850; text-transform:uppercase; letter-spacing:.12em; margin-bottom:13px; }
.lede { color:#bdc8d8; font-size:1.17rem; max-width:760px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:25px; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 16px; border:1px solid var(--line); border-radius:12px; color:#f2f6fb; background:#121a27; font-weight:800; }
.btn:hover { color:#fff; border-color:#456086; background:#172235; }
.btn-primary { background:linear-gradient(135deg,#157ce8,#0c5fb9); border-color:#2c91ff; }
.status-strip { border-block:1px solid var(--line); background:rgba(13,18,27,.74); }
.status-grid { display:grid; grid-template-columns:repeat(4,1fr); }
.status-item { padding:23px; border-right:1px solid var(--line); }
.status-item:last-child { border-right:0; }
.status-item strong { display:block; font-size:1.07rem; }
.status-item span { color:var(--muted); font-size:.84rem; }
.status-line { display:flex; align-items:center; gap:8px; margin-bottom:3px; }
.section { padding:76px 0; }
.section-muted { background:linear-gradient(180deg,rgba(17,23,33,.55),rgba(7,9,13,0)); }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:26px; margin-bottom:28px; }
.section-head p { margin:0; color:var(--muted); max-width:650px; }
.grid-2,.grid-3,.grid-4,.process-grid { display:grid; gap:18px; }
.grid-2 { grid-template-columns:repeat(2,1fr); }
.grid-3,.process-grid { grid-template-columns:repeat(3,1fr); }
.grid-4 { grid-template-columns:repeat(4,1fr); }
.card { background:linear-gradient(180deg,rgba(23,31,45,.88),rgba(15,20,29,.94)); border:1px solid var(--line); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow); }
.card p:last-child { margin-bottom:0; }
.card-wide { grid-column:1/-1; }
.card-number { font-size:2.4rem; font-weight:850; letter-spacing:-.05em; }
.card-link { display:inline-flex; margin-top:15px; font-weight:750; }
.inline-links { display:flex; gap:18px; flex-wrap:wrap; }
.process-number { color:var(--gold); font-size:.8rem; font-weight:850; letter-spacing:.1em; margin-bottom:24px; }
.record-list { display:grid; gap:14px; }
.record { display:grid; grid-template-columns:1.2fr repeat(3,.6fr) .85fr; gap:14px; align-items:center; padding:18px 20px; background:rgba(17,23,34,.85); border:1px solid var(--line); border-radius:15px; }
.record-head { color:var(--muted); background:transparent; border-style:dashed; padding-top:10px; padding-bottom:10px; font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; }
.record-name strong { display:block; }
.record-name span { color:var(--muted); font-size:.83rem; }
.metric strong { display:block; font-size:1.13rem; }
.metric span { color:var(--muted); font-size:.76rem; }
.badge { display:inline-flex; align-items:center; width:max-content; padding:5px 9px; border:1px solid rgba(87,212,155,.33); background:rgba(87,212,155,.09); color:#8cedbe; border-radius:999px; font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.badge.pending { color:#ffd17d; border-color:rgba(255,202,104,.35); background:rgba(255,202,104,.08); }
.badge.neutral { color:#b9c7d9; border-color:#3b4b62; background:#151e2b; }
.notice { border-left:3px solid var(--gold); background:rgba(230,184,92,.07); padding:16px 18px; border-radius:0 12px 12px 0; color:#d8deea; }
.page-hero { padding:70px 0 34px; }
.page-hero h1 { font-size:clamp(2.4rem,5vw,4.7rem); }
.page-hero p { color:#b7c3d4; font-size:1.12rem; max-width:790px; }
.toolbar { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin:26px 0; }
.search { flex:1 1 320px; min-height:48px; border:1px solid var(--line); border-radius:13px; padding:0 15px; color:#fff; background:#0f151f; outline:none; }
.search:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(22,133,255,.14); }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:16px; background:rgba(14,19,28,.82); }
table { width:100%; border-collapse:collapse; min-width:760px; }
th,td { text-align:left; padding:15px 17px; border-bottom:1px solid var(--line); vertical-align:top; }
th { font-size:.76rem; text-transform:uppercase; letter-spacing:.08em; color:#aeb9c9; background:#111824; }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover { background:rgba(37,53,76,.25); }
.num { font-variant-numeric:tabular-nums; font-weight:800; }
.detail-grid { display:grid; grid-template-columns:1fr .75fr; gap:22px; align-items:start; }
.meta-list { display:grid; gap:0; margin:0; }
.meta-row { display:grid; grid-template-columns:170px 1fr; gap:18px; padding:13px 0; border-bottom:1px solid var(--line); }
.meta-row dt { color:var(--muted); }
.meta-row dd { margin:0; font-weight:650; }
.timeline { display:grid; gap:16px; }
.timeline-item { display:grid; grid-template-columns:120px 1fr; gap:20px; padding:22px; border:1px solid var(--line); border-radius:15px; background:rgba(16,22,32,.82); }
.timeline-item .date { color:var(--gold); font-weight:800; }
.timeline-item ul { margin:8px 0 0; padding-left:20px; color:#c2ccda; }
.prose { max-width:840px; }
.prose h2 { margin-top:54px; }
.prose h3 { margin-top:34px; }
.prose p,.prose li { color:#c2ccda; }
.code-block { overflow:auto; background:#0b0f16; border:1px solid var(--line); border-radius:13px; padding:17px; color:#d8e2ef; }
.small { font-size:.86rem; color:var(--muted); }
.hidden { display:none !important; }
.empty { padding:32px; text-align:center; color:var(--muted); }
.compact-cards { margin-top:20px; }
.compact-table { min-width:820px; }
.record-link { color:var(--text); }
.record-link:hover { color:var(--blue-2); }

/* Cloud population digest */
.cloud-summary-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.cloud-stat { border:1px solid var(--line); border-radius:16px; padding:20px; background:linear-gradient(180deg,#151e2c,#0e141e); }
.cloud-stat strong { display:block; font-size:2rem; letter-spacing:-.04em; }
.cloud-stat span { display:block; color:var(--muted); font-size:.82rem; }
.cloud-stat.featured { border-color:rgba(230,184,92,.48); box-shadow:inset 0 0 0 1px rgba(230,184,92,.1); }
.population-breakdowns { margin-top:18px; }
.mini-bars { display:grid; gap:10px; }
.mini-bar { display:grid; grid-template-columns:85px 1fr 42px; gap:10px; align-items:center; }
.mini-bar-label,.mini-bar-value { font-size:.82rem; color:#c6d0de; }
.mini-bar-value { text-align:right; font-weight:800; }
.mini-bar-track { height:9px; overflow:hidden; border-radius:999px; background:#0a0f16; border:1px solid #27344a; }
.mini-bar-fill { height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--blue),var(--blue-2)); }
.population-note { margin-top:18px; }
.population-note ul { margin:0; padding-left:20px; }

/* Market chart */
.chart-card { background:linear-gradient(180deg,rgba(23,31,45,.9),rgba(12,17,25,.96)); border:1px solid var(--line); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow); }
.chart-head { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:18px; }
.chart-head p { color:var(--muted); margin:0; max-width:620px; }
.chart-controls { display:grid; gap:10px; min-width:310px; }
.control-group { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.control-label { width:100%; color:var(--muted); font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.series-toggle,.grade-toggle,.range-control,.chart-reset { display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:0 11px; border:1px solid var(--line); border-radius:10px; background:#0f151f; color:#dce5f1; font-size:.82rem; font-weight:700; }
.series-toggle input,.grade-toggle input { accent-color:var(--blue); }
.series-toggle span { width:10px; height:10px; border-radius:50%; display:inline-block; }
.series-toggle.true-wave span { background:var(--gold); }
.series-toggle.wave-two span { background:var(--blue-2); }
.grade-toggle small { color:var(--muted); }
.grade-toggle.disabled { opacity:.45; }
.chart-reset { cursor:pointer; }
.chart-reset:hover { border-color:#456086; }
.range-control select { color:#fff; background:#0f151f; border:0; outline:none; }
.chart-frame { position:relative; width:100%; overflow:hidden; border:1px solid var(--line); border-radius:15px; background:radial-gradient(circle at 50% 0,rgba(22,133,255,.08),transparent 45%),#0a0f17; }
.market-chart { display:block; width:100%; height:auto; min-height:340px; touch-action:manipulation; }
.chart-grid { stroke:#263348; stroke-width:1; }
.chart-grid-vertical { stroke-dasharray:4 7; opacity:.55; }
.chart-axis-label { fill:#8f9db1; font-size:15px; font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.chart-axis-title { fill:#aeb9c9; font-size:15px; font-weight:700; font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.chart-hit { cursor:pointer; }
.chart-hit:focus { outline:none; stroke:#fff; stroke-width:2; }
.chart-tooltip { position:absolute; z-index:5; width:218px; display:grid; gap:2px; padding:12px 13px; border:1px solid #435675; border-radius:12px; background:rgba(7,9,13,.96); box-shadow:0 14px 30px rgba(0,0,0,.35); pointer-events:none; }
.chart-tooltip strong { font-size:1.12rem; color:#fff; }
.chart-tooltip span { font-size:.77rem; color:#b8c4d4; }
.chart-note { margin-top:16px; color:#acb8c8; font-size:.88rem; }
.market-links { margin-top:20px; }
.data-details { margin-top:20px; border:1px solid var(--line); border-radius:15px; background:rgba(14,19,28,.82); overflow:hidden; }
.data-details summary { cursor:pointer; padding:17px 20px; font-weight:800; color:#fff; }
.data-details[open] summary { border-bottom:1px solid var(--line); }
.data-details .table-wrap { border:0; border-radius:0; }
.market-status .status-item strong { font-size:1.35rem; }

/* Hidden coin */
.site-footer { margin-top:70px; border-top:1px solid var(--line); padding:38px 0 50px; color:var(--muted); }
.footer-grid { display:grid; grid-template-columns:1fr auto; gap:26px; align-items:start; }
.footer-side { display:flex; align-items:center; gap:16px; }
.footer-links { display:flex; flex-wrap:wrap; gap:14px; justify-content:flex-end; }
.hidden-coin {
  position:relative;
  width:54px;
  height:54px;
  flex:0 0 54px;
  display:grid;
  place-items:center;
  border-radius:50%;
  opacity:.78;
  transition:transform .22s ease,filter .22s ease,opacity .22s ease;
  isolation:isolate;
  -webkit-tap-highlight-color:transparent;
}
.hidden-coin::before {
  content:"";
  position:absolute;
  inset:-10%;
  z-index:0;
  border-radius:50%;
  background:radial-gradient(circle,rgba(86,142,255,.55),transparent 68%);
  opacity:0;
  transform:scale(.85);
  transition:opacity .22s ease,transform .22s ease;
  filter:blur(10px);
}
.hidden-coin svg { width:100%; height:100%; display:block; overflow:visible; position:relative; z-index:1; }
.hidden-coin:hover,.hidden-coin:focus-visible {
  opacity:1;
  transform:translateY(-2px) scale(1.04);
  filter:brightness(1.10);
  outline:none;
}
.hidden-coin:hover::before,.hidden-coin:focus-visible::before { opacity:.85; transform:scale(1.02); }

@media (max-width:1050px) {
  .header-inner { flex-wrap:wrap; padding:10px 0; }
  .nav { order:3; width:100%; margin-left:0; overflow-x:auto; flex-wrap:nowrap; scrollbar-width:none; }
  .nav::-webkit-scrollbar { display:none; }
  .nav a { white-space:nowrap; }
  .global-search { margin-left:auto; }
}
@media (max-width:900px) {
  .hero-grid,.detail-grid { grid-template-columns:1fr; }
  .hero-mark { width:min(72vw,390px); justify-self:center; order:-1; }
  .status-grid { grid-template-columns:repeat(2,1fr); }
  .status-item:nth-child(2) { border-right:0; }
  .status-item:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .grid-4,.cloud-summary-grid { grid-template-columns:1fr 1fr; }
  .grid-3,.process-grid { grid-template-columns:1fr; }
  .chart-head { flex-direction:column; }
  .chart-controls { min-width:0; width:100%; }
  .record { grid-template-columns:1.2fr repeat(3,.55fr); }
  .record > :last-child { grid-column:1/-1; }
}
@media (max-width:650px) {
  .wrap { width:min(100% - 24px,1160px); }
  .brand img { width:38px; height:38px; }
  .global-search { width:100%; order:2; }
  .global-results { left:0; right:auto; width:100%; }
  .nav { order:3; }
  .hero { padding-top:46px; }
  h1 { font-size:2.7rem; }
  .hero-mark { width:min(86vw,350px); }
  .status-grid,.grid-2,.grid-4,.cloud-summary-grid { grid-template-columns:1fr; }
  .status-item { border-right:0; border-bottom:1px solid var(--line); }
  .status-item:last-child { border-bottom:0; }
  .record,.record-head { grid-template-columns:1fr 1fr; }
  .record-name { grid-column:1/-1; }
  .record-head { display:none; }
  .meta-row { grid-template-columns:1fr; gap:2px; }
  .timeline-item { grid-template-columns:1fr; gap:8px; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-side { justify-content:space-between; }
  .footer-links { justify-content:flex-start; }
  .hidden-coin { width:48px; height:48px; flex-basis:48px; }
  .chart-card { padding:14px; }
  .series-toggle,.grade-toggle,.range-control,.chart-reset { flex:1 1 auto; justify-content:flex-start; }
  .market-chart { min-width:700px; }
  .chart-frame { overflow-x:auto; }
}
