/* SwitchPoolProfit: one stylesheet for every page.
   One accent (cobalt), one neutral family tinted toward it, two radii:
   --r-lg for panels, --r-md for controls and tiles. Light and dark follow the system. */
:root {
  --bg: #F3F5FB;
  --surface: #FDFDFF;
  --surface-2: #E9EDF8;
  --ink: #0C1024;
  --muted: #4A5170;
  --line: #D6DCEE;
  --accent: #1D3DF5;
  --accent-text: #1D3DF5;
  --accent-deep: #0D2199;
  --accent-soft: #E2E7FF;
  --on-accent: #FFFFFF;
  --on-accent-muted: #D5DCFF;
  --warn: #8A3A00;
  --shadow: 0 0 0 1px var(--line);
  --r-lg: 24px;
  --r-md: 14px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --sans: Geist, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090B17;
    --surface: #11142A;
    --surface-2: #181C38;
    --ink: #EEF0FB;
    --muted: #A5ACCE;
    --line: #272C4E;
    --accent: #2646F7;
    --accent-text: #93A5FF;
    --accent-deep: #0D2199;
    --accent-soft: #1B2254;
    --warn: #FFB37A;
    --shadow: 0 0 0 1px var(--line);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 30;
  padding: 12px 16px; border-radius: var(--r-md);
  background: var(--ink); color: var(--bg); text-decoration: none;
  transition: transform 160ms var(--ease-out);
}
.skip:focus { transform: translateY(80px); }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* ---- navigation: a translucent layer, the page scrolls under it ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand svg { flex: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-md); text-decoration: none; font-size: 0.9375rem; color: var(--muted); transition: color 160ms ease, background-color 160ms ease; white-space: nowrap; }
.nav-links a[aria-current='page'] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--ink); background: var(--surface-2); }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-md);
  background: var(--accent); color: var(--on-accent);
  font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ink { background: var(--ink); color: var(--bg); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.dark { background: var(--ink); color: var(--bg); }
.nav-links a.btn { color: var(--bg); margin-left: 8px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-deep); }
  .btn.quiet:hover { background: var(--surface-2); }
  .btn.ink:hover, .nav-links a.btn:hover { background: var(--accent); color: var(--on-accent); }
}

/* ---- type ---- */
.display { font-size: clamp(2.125rem, 3.9vw, 2.875rem); line-height: 1.06; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.title { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.12; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.subtitle { font-size: 1.25rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.012em; }
.lead { font-size: 1.1875rem; line-height: 1.5; color: var(--muted); max-width: 44ch; text-wrap: pretty; }
.section { padding: 0 0 clamp(72px, 9vw, 120px); display: grid; gap: 28px; }
.section-head { display: grid; gap: 8px; }
.section-head p { color: var(--muted); max-width: 62ch; }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 9vw, 112px); }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.live { position: relative; margin-top: 132px; }
.live-panel {
  position: relative; display: grid; gap: 28px;
  padding: 32px; border-radius: var(--r-lg);
  background: var(--accent);
  color: var(--on-accent);
}
.live-label { font-size: 0.9375rem; color: var(--on-accent-muted); }
.live-coin { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.live-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.live-stats dt { font-size: 0.875rem; color: var(--on-accent-muted); }
.live-stats dd { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.1875rem; white-space: nowrap; }

/* ---- the robot ---- */
.mascot { display: block; position: absolute; right: 28px; top: -150px; width: 210px; height: auto; overflow: visible; pointer-events: none; }
.mascot .m-all { animation: m-float 3.4s var(--ease-in-out) infinite alternate; }
.mascot .m-arm { transform-box: fill-box; }
.mascot .m-arm-r { transform-origin: 50% 92%; animation: m-wave 1.9s var(--ease-in-out) 0.5s 1 both; }
.mascot .m-arm-l { transform-origin: 50% 8%; }
.mascot .m-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: m-blink 5.2s linear 2s infinite; }
.mascot.cheer .m-all { animation: m-jump 0.9s var(--ease-out) 2; }
.mascot.cheer .m-arm-r { animation: m-wave 0.9s var(--ease-in-out) 2; }
.mascot.cheer .m-arm-l { animation: m-wave-l 0.9s var(--ease-in-out) 2; }
.mascot.small { position: static; width: 64px; flex: none; }
@keyframes m-float { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@keyframes m-wave { 0%, 100% { transform: rotate(0deg); } 20%, 60% { transform: rotate(24deg); } 40%, 80% { transform: rotate(-14deg); } }
@keyframes m-wave-l { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(150deg); } }
@keyframes m-jump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-16px); } }
@keyframes m-blink { 0%, 96%, 100% { transform: scaleY(1); } 98% { transform: scaleY(0.12); } }

/* ---- blocks ---- */
.block-latest {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px 40px; align-items: end;
  padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow);
}
.block-latest.is-new { animation: b-arrive 700ms var(--ease-out); }
.block-kicker { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.movers { display: flex; gap: 8px; }
.mover { width: 48px; height: 48px; border: 0; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 1.25rem; line-height: 1; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease, opacity 160ms ease; }
.mover:active { transform: scale(0.95); }
.mover:disabled { opacity: 0.4; cursor: default; }
@media (hover: hover) and (pointer: fine) { .mover:not(:disabled):hover { background: var(--accent); color: var(--on-accent); box-shadow: none; } }
.block-height { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: clamp(2.75rem, 7vw, 4.75rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin-top: 12px; }
.block-chain { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.block-facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; }
.block-facts dt { color: var(--muted); }
.block-facts dd { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.maturity { grid-column: 1 / -1; display: grid; gap: 8px; }
.maturity-line { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.maturity-line i { display: block; height: 100%; width: 100%; border-radius: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform 600ms var(--ease-out); }
.block-link { justify-self: start; color: var(--accent-text); font-weight: 500; text-underline-offset: 4px; }
.block-empty { display: flex; align-items: center; gap: 24px; padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); color: var(--muted); }
.block-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 4px 16px; margin: 0 -4px; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; }
.block-row::-webkit-scrollbar { display: none; }
.block-row.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.block-row.dragging a { pointer-events: none; }
.block-tile {
  flex: 0 0 188px; scroll-snap-align: start; display: grid; gap: 4px; -webkit-user-drag: none;
  padding: 16px 18px; border-radius: var(--r-md); background: var(--surface-2);
  text-decoration: none; transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.block-tile b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; font-size: 1.1875rem; letter-spacing: -0.02em; }
.block-tile span { font-size: 0.875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-tile .block-chain { font-size: 0.875rem; color: var(--ink); }
.block-tile[data-status='orphan'] { opacity: 0.6; }
a.block-tile:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { a.block-tile:hover { background: var(--accent-soft); } }
@keyframes b-arrive { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }

/* ---- connect a miner ---- */
.choices { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; }
.choice {
  display: grid; gap: 6px; align-content: start; text-align: left; cursor: pointer;
  padding: 20px; border: 0; border-radius: var(--r-md);
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease;
}
.choice strong { display: flex; align-items: center; gap: 10px; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.012em; }
.choice span { font-size: 0.9375rem; color: var(--muted); }
.choice:active, .seg button:active { transform: scale(0.98); }
.choice[aria-pressed='true'] { background: var(--ink); color: var(--bg); box-shadow: none; }
.choice[aria-pressed='true'] span { color: color-mix(in srgb, var(--bg) 72%, var(--ink)); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--surface-2); justify-self: start; flex-wrap: wrap; }
.seg button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent; font-weight: 500; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease; }
.seg button[aria-pressed='true'] { background: var(--accent); color: var(--on-accent); }
.brand-region { font-weight: 400; color: var(--muted); }
.servers { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; color: var(--muted); }
.servers li { display: flex; align-items: center; gap: 8px; }
.servers i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.servers li[data-state='ok'] i { background: #2FB37A; }
.servers li[data-state='down'] i { background: var(--warn); }
.servers li[data-state='wait'] i { background: transparent; box-shadow: inset 0 0 0 2px var(--muted); }
.servers b { font-weight: 500; color: var(--ink); }
.seg button[aria-disabled='true'] { opacity: 0.45; cursor: not-allowed; }
.seg button[aria-disabled='true']:active { transform: none; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field label { font-weight: 500; font-size: 0.9375rem; }
.field small { font-size: 0.875rem; color: var(--muted); }
.input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: var(--r-md);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--mono); font-size: 1rem; transition: box-shadow 160ms ease;
}
.input:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent-text); }
.copy-list { border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); padding: 8px clamp(16px, 2.4vw, 28px); }
.copy-line { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; padding: 14px 0; }
.copy-line + .copy-line { box-shadow: 0 -1px 0 var(--line); }
.copy-line dt { color: var(--muted); }
.copy-line dd { overflow-wrap: anywhere; }
.copy-btn { min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--surface-2); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.copy-btn:active { transform: scale(0.97); }
.copy-btn[data-done] { background: var(--accent); color: var(--on-accent); }
.note { font-size: 0.9375rem; color: var(--muted); max-width: 70ch; }

/* ---- the two chains ---- */
.chains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.chain { display: grid; gap: 18px; align-content: start; }
.chain-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; box-shadow: 0 2px 0 var(--ink); }
.chain-head h3 { display: flex; align-items: center; gap: 10px; }
.chain-head h3 small { font-family: var(--mono); font-size: 0.9375rem; font-weight: 400; color: var(--muted); }
.state { font-size: 0.9375rem; font-weight: 500; color: var(--warn); }
.state[data-state='ok'] { color: var(--accent-text); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; }
.facts dt { color: var(--muted); }
.facts dd { text-align: right; }

/* ---- my stats ---- */
.lookup { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px clamp(32px, 5vw, 72px); align-items: end; }
.lookup-row { display: flex; gap: 8px; flex-wrap: wrap; }
.lookup-row .input { flex: 1 1 220px; width: auto; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0 40px; box-shadow: 0 -1px 0 var(--line); font-size: 0.9375rem; color: var(--muted); }

/* ---- inner pages: head, tiles, panels, tables, chart ---- */
.nav-links a[aria-current='page'] { font-weight: 600; }
.page-head { display: grid; gap: 20px; padding: clamp(32px, 5vw, 56px) 0 clamp(32px, 4vw, 48px); }
.page-head .lead { max-width: 58ch; }
.narrow { max-width: 860px; }
.tiles { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 28px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.tile.accent { background: var(--accent); color: var(--on-accent); }
.tile .label, .tile .sub { font-size: 0.9375rem; color: var(--muted); }
.tile.accent .label, .tile.accent .sub { color: var(--on-accent-muted); }
.tile .figure { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; overflow-wrap: anywhere; }
.tile .figure.mid { font-size: 1.875rem; }
.tile .figure.text { font-family: var(--sans); letter-spacing: -0.015em; }
.panel { padding: clamp(20px, 2.6vw, 28px); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chart-picks { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack { display: grid; gap: 16px; }
.table-wrap { overflow-x: auto; }
.data { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9375rem; }
.data th { text-align: left; font-weight: 500; color: var(--muted); padding: 0 12px 12px 0; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.data td { padding: 14px 12px 14px 0; vertical-align: top; }
.data tr + tr td { border-top: 1px solid var(--line); }
.data .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.data th.num { font-family: var(--sans); }
.data th:last-child, .data td:last-child { padding-right: 0; }
.chart { display: block; width: 100%; height: auto; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { stroke: var(--muted); stroke-width: 1; }
.chart text { fill: var(--muted); font-family: var(--mono); font-size: 14px; }
.chart .raw { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 6 6; }
.chart .main { fill: none; stroke: var(--accent-text); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--accent-text); stroke: var(--surface); stroke-width: 3; }
.legend { display: flex; gap: 8px 28px; flex-wrap: wrap; padding-top: 8px; font-size: 0.9375rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 28px; height: 0; border-top: 3px solid var(--accent-text); }
.legend i.raw { border-top: 2px dashed var(--muted); }
.field small[data-state='warn'], .warn { color: var(--warn); }
.kicker { font-size: 0.9375rem; font-weight: 600; color: var(--accent-text); }
/* two columns when both fit, one under the other otherwise: a value never leaves the card */
.solo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px 48px; align-items: center; }
.solo .facts { grid-template-columns: auto minmax(0, 1fr); }
.solo .facts dd { overflow-wrap: anywhere; }
.solo-name { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.hash { font-family: var(--mono); font-size: 0.875rem; color: var(--muted); overflow-wrap: anywhere; }

.seg button { display: inline-flex; align-items: center; gap: 8px; }
.controls { display: flex; gap: 20px 28px; flex-wrap: wrap; align-items: flex-end; }
.input.big { min-height: 52px; font-size: 1.25rem; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 32px; font-size: 0.9375rem; }
.figures dt { color: var(--muted); }
.callout { padding: 14px 18px; border-radius: var(--r-md); background: var(--surface-2); font-size: 0.9375rem; color: var(--muted); }
.facts.on-accent dt { color: var(--on-accent-muted); }
.tile .subtitle + .sub { display: block; margin-top: 4px; }

/* ---- account page: its own markup, skinned with the same tokens ---- */
.account main > section, .account main > div > section { padding: 0 0 56px; display: flex; flex-direction: column; gap: 16px; }
.account h2 { font-size: 1.75rem; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.account h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.012em; }
.account .row { display: flex; gap: 16px 24px; flex-wrap: wrap; align-items: flex-end; }
.account .field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; min-width: 0; }
.account form > .field, .account .card > .field { flex: 0 0 auto; }
.account .field label { font-size: 0.875rem; font-weight: 500; }
.account .field small { font-size: 0.875rem; color: var(--muted); min-height: 21px; }
.account input[type=text], .account input[type=email], .account input[type=password], .account input[type=number] {
  width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: var(--r-md);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 1rem; transition: box-shadow 160ms ease;
}
.account .card input[type=text], .account .card input[type=email], .account .card input[type=password], .account .card input[type=number],
.account .rig input[type=text] { background: var(--bg); }
.account input:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent-text); }
.account input.mono { font-family: var(--mono); }
.account .btn.dark { background: var(--ink); color: var(--bg); }
.account .btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.account .btn[disabled] { opacity: 0.55; cursor: default; }
.account .card { background: var(--surface); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.account .msg { margin: 0; min-height: 24px; font-weight: 500; }
.account .msg.err { color: var(--warn); }
.account .msg.ok { color: var(--accent-text); }
.account .tile { display: flex; flex-direction: column; gap: 6px; flex: 2 1 320px; padding: 28px; background: var(--accent); color: var(--on-accent); }
.account .tile .label { color: var(--on-accent-muted); }
.account .tile .big { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.account .kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 0; }
.account .kv dt { color: var(--muted); }
.account .kv dd { text-align: right; overflow-wrap: anywhere; }
.account .rig { background: var(--surface); border-radius: var(--r-lg); padding: 20px 24px; display: flex; gap: 16px 28px; flex-wrap: wrap; align-items: flex-end; box-shadow: var(--shadow); }
.account .rig .who { flex: 2 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.account .rig .num { flex: 1 1 120px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.account .rig .num span:first-child, .account .rig .who span:last-child { font-size: 0.875rem; color: var(--muted); }
.account .rig .set { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.account .check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; }
.account .check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.account ul.alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.account ul.alerts li { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
@media (hover: hover) and (pointer: fine) {
  .account .btn.dark:hover { background: var(--accent); color: var(--on-accent); }
  .account .btn.ghost:hover { background: var(--surface-2); }
}

/* ---- stats page: the robot. Bare while it waits at the top; with its hard hat, lamp and bag
   once the account is found and it mines in the solo section. One pick, two on SwitchPool,
   each pick and its ore in the colour of the chain it mines. ---- */
.mine-head { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 24px clamp(24px, 5vw, 64px); }
.mine-head.alone { grid-template-columns: minmax(0, 1fr); }
.mine-head.alone .stack { max-width: 860px; }
.mine-slot:empty { display: none; }
.dig { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 24px clamp(24px, 5vw, 64px); align-items: center; }
.mine { --ore-a: var(--muted); --ore-b: var(--muted); display: grid; gap: 10px; }
.mine svg { display: block; width: 100%; height: auto; overflow: visible; }
.mine figcaption { color: var(--muted); font-size: 0.9375rem; text-wrap: pretty; }
.mine .m-ground { fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.mine .rock-base { fill: var(--surface-2); stroke: var(--line); stroke-width: 2; stroke-linejoin: round; }
.mine .rock-light { fill: var(--surface); opacity: 0.75; }
.mine .rock-dark { fill: var(--line); opacity: 0.6; }
.mine .ore { stroke: var(--surface); stroke-width: 1.5; stroke-linejoin: round; }
.mine .ore-a, .mine .chip { fill: var(--ore-a); }
.mine .ore-b { fill: var(--ore-b); display: none; }
.mine[data-pool='switch'] .ore-b { display: inline; }
.mine .crack { fill: none; stroke: var(--muted); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.mine .chip { opacity: 0; transform-box: fill-box; }
.mine .arm-back { fill: #0A1C8C; }
.mine .pick-handle { fill: #8B93B8; }
.mine .pick-grip { fill: #3A4166; }
.mine .pick-collar { fill: #3A4166; }
.mine .head-a { fill: var(--ore-a); }
.mine .head-b { fill: var(--ore-b); }
.mine .m-gear { display: none; }
.mine.geared .m-gear { display: inline; }
.mine.geared .m-rest { display: none; }
.mine .bag-flap { fill: #5B69CC; }
.mine .bag-buckle { fill: #FFC83D; }
.mine .bag-badge { fill: #FDFDFF; }
.mine #bag-count { fill: #0C1024; font-family: var(--mono); font-size: 15px; font-weight: 500; }
.mine .helm-ridge { fill: #FFE48F; }
.mine .helm-shine { fill: none; stroke: #FFFFFF; stroke-width: 5; stroke-linecap: round; opacity: 0.45; }
.mine .helm-brim { fill: #E9A413; }
.mine .helm-strap { fill: none; stroke: #3A4166; stroke-width: 6; }
.mine .helm-lamp { fill: #2A3052; stroke: #141A45; stroke-width: 2; }
.mine .helm-glow { fill: #FFF6CF; }
.mine .m-beam { opacity: 0; }
.mine.geared[data-state='mining'] .m-beam { opacity: 1; }
.mine .m-prize { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.mine.right svg { transform: scaleX(-1); }
.mine.right image, .mine.right #bag-count { transform-box: fill-box; transform-origin: 50% 50%; transform: scaleX(-1); }
.mine .m-swing, .mine .m-swing2 { transform-box: view-box; transform-origin: 344px 204px; transform: rotate(16deg); }
.mine .m-swing2 { transform-origin: 354px 174px; display: none; }
.mine[data-pool='switch'] .m-swing2 { display: inline; }
.mine .m-rock-body { transform-box: fill-box; transform-origin: 50% 100%; }
.mine .m-miner { transform-box: fill-box; transform-origin: 20% 100%; }
.mine .m-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: m-blink 5.2s linear 2s infinite; }
.mine[data-state='idle'] .m-miner { animation: m-float 3.4s var(--ease-in-out) infinite alternate; }
.mine[data-state='mining'] .m-miner { animation: m-lean 1.15s infinite; }
.mine[data-state='mining'] .m-swing { animation: m-strike 1.15s infinite; }
.mine[data-state='mining'] .m-swing2 { animation: m-strike 1.15s -0.575s infinite; }
.mine[data-state='mining'] .m-rock-body { animation: m-shake 1.15s infinite; }
.mine[data-state='mining'][data-pool='switch'] .m-rock-body, .mine[data-state='mining'][data-pool='switch'] .m-miner { animation-duration: 0.575s; }
.mine[data-state='mining'] .chip { animation: m-chip 1.15s infinite; }
.mine[data-state='mining'] .k2 { animation-name: m-chip2; }
.mine[data-state='mining'] .k3 { animation-name: m-chip3; }
.mine[data-state='mining'] .c1 { animation: m-crack1 9.2s infinite; }
.mine[data-state='mining'] .c2 { animation: m-crack2 9.2s infinite; }
.mine[data-state='mining'] .c3 { animation: m-crack3 9.2s infinite; }
.mine.got .m-rock-body { animation: m-burst 700ms var(--ease-out) both; }
.mine.got .m-prize { animation: m-prize 1500ms var(--ease-in-out) 300ms both; }
.mine.got .bag-badge { animation: m-bump 500ms var(--ease-out) 1700ms both; transform-box: fill-box; transform-origin: 50% 50%; }
.mine.got .m-miner { animation: m-jump 0.8s var(--ease-out) 3; }
.mine.got .m-swing, .mine.got .m-swing2 { animation: none; transform: rotate(40deg); }
.mine.leaving { animation: m-leave 340ms cubic-bezier(0.5, 0, 0.9, 0.5) both; }
.mine.arriving { animation: m-land 560ms var(--ease-out) both; }
@keyframes m-strike {
  0% { transform: rotate(22deg); }
  38% { transform: rotate(32deg); animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.4); }
  52% { transform: rotate(-55deg); animation-timing-function: var(--ease-out); }
  62% { transform: rotate(-46deg); }
  100% { transform: rotate(22deg); }
}
@keyframes m-lean { 0%, 38%, 100% { transform: none; } 52% { transform: rotate(-2.5deg) translateY(2px); } 66% { transform: rotate(-1deg); } }
@keyframes m-shake { 0%, 50%, 66%, 100% { transform: none; } 54% { transform: translateX(-3px) rotate(-1deg); } 60% { transform: translateX(1px); } }
@keyframes m-chip { 0%, 51% { opacity: 0; transform: none; } 54% { opacity: 1; } 90%, 100% { opacity: 0; transform: translate(34px, -30px) rotate(140deg); } }
@keyframes m-chip2 { 0%, 51% { opacity: 0; transform: none; } 54% { opacity: 1; } 90%, 100% { opacity: 0; transform: translate(44px, 6px) rotate(-120deg); } }
@keyframes m-chip3 { 0%, 51% { opacity: 0; transform: none; } 54% { opacity: 1; } 90%, 100% { opacity: 0; transform: translate(16px, -46px) rotate(90deg); } }
@keyframes m-crack1 { 0%, 24% { opacity: 0; } 25%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes m-crack2 { 0%, 49% { opacity: 0; } 50%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes m-crack3 { 0%, 74% { opacity: 0; } 75%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes m-burst { 0% { transform: none; opacity: 1; } 40% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(0.9); opacity: 0.25; } }
@keyframes m-prize {
  0% { opacity: 0; transform: scale(0.5); }
  14% { opacity: 1; transform: translate(0, -24px) scale(1); }
  55% { opacity: 1; transform: translate(150px, -120px) scale(1) rotate(160deg); }
  88% { opacity: 1; transform: translate(296px, -14px) scale(0.7) rotate(330deg); }
  100% { opacity: 0; transform: translate(296px, 8px) scale(0.3) rotate(360deg); }
}
@keyframes m-bump { 0%, 100% { transform: none; } 40% { transform: scale(1.35); } }
@keyframes m-leave { to { opacity: 0; transform: translateY(120px); } }
@keyframes m-land { from { opacity: 0; transform: translateY(-90px); } 60% { opacity: 1; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- entry: the hero settles once, then the page stays still ---- */
.rise { animation: rise 620ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---- small screens: one column, nothing scrolls sideways except the block row ---- */
@media (max-width: 880px) {
  .hero, .block-latest, .lookup, .chains, .tiles, .tiles.two, .solo, .mine-head, .dig { grid-template-columns: minmax(0, 1fr); }
  .choices { grid-template-columns: minmax(0, 1fr); }
  .live { margin-top: 124px; }
  .copy-line { grid-template-columns: minmax(0, 1fr) auto; }
  .copy-line dt { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .wrap { width: min(1180px, 100% - 32px); }
  .nav-links a.inpage { display: none; }
  .nav-links a { padding: 0 10px; }
  .live-panel { padding: 24px; }
  .live-stats dd { font-size: 1rem; }
  .mascot { width: 150px; top: -107px; right: 16px; }
}
@media (max-width: 420px) {
  .nav-links a.optional { display: none; }
  .nav-in { gap: 8px; }
  .brand { gap: 8px; font-size: 0.9375rem; }
  .nav-links a { padding: 0 8px; font-size: 0.875rem; }
  .nav-links a[data-lang-switch] { padding: 0 6px; }
  .nav-links a.btn { padding: 0 12px; margin-left: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .block-latest.is-new { animation: fade 200ms ease both; }
  .mine, .mine *, .mine.got * { animation: none !important; }
  .mascot .m-all, .mascot .m-arm-r, .mascot .m-arm-l, .mascot .m-eyes,
  .mascot.cheer .m-all, .mascot.cheer .m-arm-r, .mascot.cheer .m-arm-l { animation: none; }
  .btn:active, .choice:active, .seg button:active, .copy-btn:active, a.block-tile:active { transform: none; }
  .maturity-line i { transition: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
