/*
 * PONZINC app styles (css/app.css): /mine, /stake, /history, /about, /privacy, /terms, /brand, 404.
 * Neutrals as measured on the reference app; the accent is our green (SPEC 3.1).
 * Oxanium comes from /css/fonts.css (self-hosted); the stack falls back to the system font.
 */

:root {
  color-scheme: dark;
  --bg: #090d0f;
  --bg: oklch(15.6% .008 229.3);
  --card: #0e1315;
  --card: oklch(17.7% .011 229.8);
  --fg: #fafafa;
  --fg: oklch(98.5% 0 0);
  --muted: #a1a1a1;
  --muted: oklch(70.8% 0 0);
  --border: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .08);
  --input: rgba(255, 255, 255, .15);
  --chip: rgba(255, 255, 255, .025);
  --chip-hover: rgba(255, 255, 255, .06);
  --radius: .625rem;
  --radius-sm: 6px;
  --primary: #1FDB63;
  --primary-hover: #3BE67A;
  --primary-press: #17B852;
  --primary-fg: #04150A;
  --primary-dim: rgba(31, 219, 99, .38);
  --primary-soft: rgba(31, 219, 99, .1);
  --bz-border: rgba(31, 219, 99, .55);
  --bz-fill: rgba(10, 58, 28, .45);
  --bz-text: #7CF5A6;
  --bz-label: rgba(124, 245, 166, .62);
  --pos: #4ADE80;
  --neg: #F87171;
  --tile-bg: #111617;
  --font: 'Oxanium', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --hdr-h: 80px;
  --tab-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: rgba(255, 255, 255, .14) transparent; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(31, 219, 99, .3); }

.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; }
.skip {
  position: fixed; left: 16px; top: 16px; z-index: 100; min-height: 44px; min-width: 44px; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: var(--fg); font-size: 14px; font-weight: 500;
  transform: translateY(-200%);
}
.skip:focus, .skip:focus-visible { transform: none; }

/* The placeholder for an unknown value: a short bar, never a dash character. */
.nil { display: inline-block; width: .78em; height: 2px; border-radius: 1px; background: currentColor; vertical-align: middle; opacity: .9; }

.ico, .eth { flex: none; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.muted { color: var(--muted); }
.green { color: var(--primary); }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 24px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background-color .15s, color .15s, opacity .15s, transform .1s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-primary:active:not(:disabled) { background: var(--primary-press); }
.btn-primary:disabled { background: var(--primary-dim); color: rgba(4, 21, 10, .6); }
.btn-secondary { background: rgba(255, 255, 255, .045); color: var(--primary); border: 1px solid var(--line); }
.btn-secondary:hover:not(:disabled) { background: rgba(255, 255, 255, .07); }
.btn-secondary:disabled { color: rgba(31, 219, 99, .45); }
.btn-ghost { background: rgba(255, 255, 255, .045); color: var(--fg); }
.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .08); }
.btn-account { background: rgba(255, 255, 255, .06); border: 1px solid var(--border); color: var(--fg); font-family: var(--mono); font-size: 13px; }
.btn-account:hover { background: rgba(255, 255, 255, .09); }
.btn-sm { height: 28px; padding: 0 12px; font-size: 12.8px; gap: 6px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--radius-sm); color: var(--muted);
  transition: background-color .15s, color .15s;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { color: var(--fg); background: var(--card); }

.soon {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px;
  background: var(--primary-soft); color: var(--primary); font-size: 10px; font-weight: 600; letter-spacing: .12em;
}

/* ------------------------------------------------------------------ header */

.hdr {
  position: sticky; top: 0; z-index: 40;
  height: var(--hdr-h); padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.hdr-left { display: flex; align-items: center; gap: 32px; min-width: 0; }
.hdr-right { display: flex; align-items: center; gap: 20px; }
.brand { position: relative; display: block; width: 32px; height: 32px; flex: none; border-radius: 6px; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
.brand-fallback { display: none; }
.brand.no-img img { display: none; }
.brand.no-img .brand-fallback {
  display: block; position: absolute; inset: 4px 2px;
  border-radius: 46% 54% 48% 52% / 55% 50% 50% 45%;
  background: radial-gradient(circle at 58% 38%, #7CF5A6 0 12%, #1FDB63 38%, #0E7A3A 78%);
  box-shadow: 0 0 12px rgba(31, 219, 99, .35);
}
.nav { display: flex; align-items: center; gap: 12px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--muted); transition: color .15s;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--fg); }
.nav-ico { display: inline-flex; }
.hdr-connect { min-width: 104px; }
.hdr-connect.is-wide { padding: 0 16px; }
.hdr-mute, .hdr-wallet { display: none; }
.hdr-wallet {
  width: 40px; height: 40px; border-radius: var(--radius-sm); align-items: center; justify-content: center;
  background: var(--primary); color: var(--primary-fg); position: relative;
}
.hdr-wallet:hover { background: var(--primary-hover); }
.hdr-wallet.is-connected { background: rgba(255, 255, 255, .06); color: var(--primary); border: 1px solid var(--border); }
.hdr-wallet.is-connected::after, .hdr-wallet.is-wrong::after {
  content: ''; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
}
.hdr-wallet.is-wrong::after { background: var(--neg); }

/* popovers */
.popover {
  position: fixed; z-index: 60; top: var(--pop-top, 64px); right: var(--pop-right, 148px);
  width: 288px; max-height: min(78vh, 38rem); overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: 0 28px 90px -42px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .3);
  animation: popIn .12s ease-out;
}
.acct-pop { width: 220px; }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 8px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--fg); text-align: left;
  transition: background-color .15s;
}
.menu-item:hover:not(:disabled) { background: rgba(255, 255, 255, .05); }
.menu-item.is-soon { color: var(--muted); }
.menu-ico { display: inline-flex; color: var(--muted); }
.menu-label { flex: 1; min-width: 0; }
.menu-aside { font-size: 12px; color: var(--muted); }
.menu-chev { display: inline-flex; color: var(--muted); }
.acct-addr { padding: 6px 8px 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }

.switch {
  position: relative; display: inline-block; width: 34px; height: 20px; border-radius: 999px; flex: none;
  background: rgba(255, 255, 255, .12); transition: background-color .15s;
}
.switch-knob { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--fg); transition: transform .15s; }
[aria-checked="true"] > .switch, .switch.is-on { background: var(--primary); }
[aria-checked="true"] > .switch .switch-knob, .switch.is-on .switch-knob { transform: translateX(14px); background: var(--primary-fg); }

/* wallet picker */
.picker {
  width: min(400px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--fg); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .95);
}
.picker::backdrop { background: rgba(3, 6, 7, .72); backdrop-filter: blur(2px); }
.picker-head { display: flex; align-items: center; justify-content: space-between; }
.picker-title { font-size: 18px; font-weight: 600; }
.picker-sub { margin-top: 6px; font-size: 13px; color: var(--muted); }
.picker-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.picker-item {
  display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 12px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--line); font-size: 15px; font-weight: 600; text-align: left;
}
.picker-item:hover { border-color: rgba(31, 219, 99, .5); }
.picker-ico { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; flex: none; }
.picker-ico.is-blank { display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .06); color: var(--primary); }
.picker-name { flex: 1; }
.picker-go { display: inline-flex; color: var(--muted); }
.picker-empty { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* footer */
.ftr { display: flex; justify-content: center; padding: 16px 16px 0; }
.ftr-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 12px; }
.ftr-nav a { display: inline-flex; align-items: center; height: 24px; font-size: 12px; color: rgba(161, 161, 161, .75); transition: color .15s; }
.ftr-nav a:hover { color: var(--fg); }
.ftr-sep { width: 1px; height: 12px; background: rgba(255, 255, 255, .15); }

/* phone tab bar */
.tabbar { display: none; }

/* toasts */
.toasts {
  position: fixed; right: 16px; bottom: 16px; z-index: 80; display: flex; flex-direction: column; gap: 8px;
  width: min(360px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 10px 10px 14px; pointer-events: auto;
  background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--muted); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--fg); box-shadow: 0 20px 60px -30px rgba(0, 0, 0, .9);
  animation: toastIn .18s ease-out; transition: opacity .2s, transform .2s;
}
.toast.is-ok { border-left-color: var(--primary); }
.toast.is-error { border-left-color: var(--neg); }
.toast.is-pending { border-left-color: var(--bz-text); }
.toast.is-out { opacity: 0; transform: translateY(6px); }
.toast-msg { flex: 1; min-width: 0; }
.toast-link { color: var(--primary); font-weight: 600; }
.toast-link:hover { text-decoration: underline; }
.toast-x { display: inline-flex; color: var(--muted); padding: 4px; border-radius: 4px; }
.toast-x:hover { color: var(--fg); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ shared bits */

.page { min-height: calc(100vh - var(--hdr-h)); display: flex; flex-direction: column; }
.page > .ftr { margin-top: auto; padding-top: 40px; padding-bottom: 24px; }

.label { font-size: 11.52px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.cap { font-size: 10.88px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.chip {
  display: inline-flex; align-items: center; justify-content: center; height: 28px; min-width: 0; border-radius: var(--radius-sm);
  background: var(--chip); color: rgba(250, 250, 250, .7); font-size: 10.88px; font-weight: 600;
  transition: background-color .15s, color .15s;
}
.chip:hover:not(:disabled) { background: var(--chip-hover); color: #fff; }
.chip[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary); }
.chip:disabled { opacity: .5; }
.chip.is-x { width: 28px; justify-self: center; }

.tabs2 { display: grid; grid-template-columns: 1fr 1fr; height: 40px; border-bottom: 1px solid var(--line); }
.tab2 {
  position: relative; display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 6px;
  font-size: 11.52px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(250, 250, 250, .6);
  transition: color .15s;
}
.tab2::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--primary); opacity: 0; transition: opacity .15s; }
.tab2:hover { color: var(--fg); }
.tab2[aria-selected="true"] { color: var(--primary); }
.tab2[aria-selected="true"]::after { opacity: 1; }

.info-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
  color: var(--muted); transition: color .15s;
}
.info-btn:hover, .info-btn[aria-expanded="true"] { color: var(--fg); }
.tip {
  margin-top: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line);
  font-size: 12px; line-height: 1.5; color: var(--muted);
}

/* A horizontal strip that scrolls (history tabs, handbook contents on small screens) fades at the edge that
   has more to show, so a cut-off label reads as "scroll for more". js/app/dom.js scrollFade sets the classes. */
.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.fade-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }

/* ------------------------------------------------------------------ /mine */

.mine-grid {
  display: grid; grid-template-columns: minmax(340px, 448px) minmax(560px, 640px) minmax(280px, 1fr);
  grid-template-areas: 'left board right';
  width: 100%; max-width: 1536px; margin: 0 auto; min-height: calc(100vh - var(--hdr-h));
}
.mine-left { grid-area: left; padding: 24px 16px; min-width: 0; }
.mine-board { grid-area: board; display: flex; flex-direction: column; align-items: center; min-width: 0; padding-top: 4px; }
.mine-right { grid-area: right; padding: 12px 16px 24px 12px; min-width: 0; }
.mine-board > .ftr { margin-top: auto; padding-top: 24px; padding-bottom: 0; }

.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-l { font-size: 10.88px; font-weight: 600; text-transform: uppercase; color: var(--muted); line-height: 16px; }
.stat-v { margin-top: 4px; font-size: 16.8px; font-weight: 600; line-height: 17px; min-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-s { margin-top: 4px; min-height: 12px; font-size: 10.88px; font-weight: 600; line-height: 12px; color: var(--muted); }
.mine-left .tabs2 { margin-top: 16px; }
.pane { padding: 16px 0 8px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.row2 + .row2 { margin-top: 16px; }
.row-label { min-width: 0; line-height: 20px; font-size: 11.52px; font-weight: 600; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-label .count { font-size: 14px; text-transform: none; color: var(--fg); }
.row-label .min { font-size: 10.88px; }
.chips4 { display: grid; grid-template-columns: repeat(4, 40px); gap: 6px; }
.amount-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; height: 48px; }
.amount-row .eth { width: 22px; height: 22px; color: #cfd8dc; }
.amount-input {
  flex: 1; min-width: 0; height: 48px; padding: 0; border: 0; background: transparent; outline: none;
  font-size: 24px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums;
}
.amount-input::placeholder { color: rgba(161, 161, 161, .55); }
.amount-input:focus-visible { outline: none; }
.amount-row:focus-within { box-shadow: inset 0 -1px 0 var(--primary); }
.amount-help { margin-top: 4px; min-height: 16px; font-size: 12px; line-height: 16px; color: var(--muted); }
.amount-help.is-warn { color: var(--neg); }
.cta { width: 100%; height: 56px; margin-top: 12px; font-size: 14px; font-weight: 500; text-transform: uppercase; }
.apr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.apr-l { font-size: 10.4px; font-weight: 600; text-transform: uppercase; color: var(--muted); line-height: 16px; }
.apr-v { margin-top: 4px; font-size: 14px; font-weight: 600; line-height: 20px; color: #fff; }
.apr-s { margin-top: 2px; font-size: 10.88px; font-weight: 600; line-height: 16px; color: var(--muted); }

.auto-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 20px; }
.auto-line + .auto-line { margin-top: 2px; }
.auto-line .k { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; line-height: 20px; color: var(--muted); }
.auto-line .v { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; line-height: 20px; color: var(--fg); }
.auto-line .v .eth { width: 14px; height: 14px; color: #cfd8dc; }
.auto-rounds { margin-top: 10px; }
/* Rounds: a number field with a step either side. The steps are always visible: they are the only way to
   set the rounds, and an automation cannot be armed until they are above zero. */
.stepper {
  position: relative; display: inline-flex; align-items: center; width: 124px; height: 40px;
  border: 1px solid var(--input); border-radius: var(--radius-sm); background: var(--chip);
}
.stepper input {
  width: 100%; height: 38px; padding: 0 30px; border: 0; background: transparent; text-align: center; font-size: 15px; font-weight: 600; color: #fff;
  outline: none; -moz-appearance: textfield; appearance: textfield; font-variant-numeric: tabular-nums;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper:focus-within { border-color: var(--primary); }
.stepper button {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 26px; height: 26px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center; color: var(--fg); background: rgba(255, 255, 255, .07);
  transition: color .15s, background-color .15s, opacity .15s;
}
.stepper .step-dec { left: 5px; }
.stepper .step-inc { right: 5px; }
.stepper button:hover:not(:disabled) { color: var(--primary-fg); background: var(--primary); }
.stepper button:disabled { opacity: .3; pointer-events: none; }
.toggle { display: inline-flex; align-items: center; }
.toggle[aria-checked="true"] .switch { background: var(--primary); }
.toggle[aria-checked="true"] .switch-knob { transform: translateX(14px); background: var(--primary-fg); }
.auto-apr { margin-top: 24px; }
.auto-totals { margin-top: 16px; }
.auto-totals .auto-line ~ .auto-line { margin-top: 11px; }
.cta-auto { height: 48px; margin-top: 17px; }
.quiet { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.auto-active { margin-top: 4px; padding: 12px; border: 1px solid rgba(31, 219, 99, .35); border-radius: var(--radius-sm); background: rgba(10, 58, 28, .25); }
.auto-active-h { display: flex; align-items: center; gap: 8px; font-size: 11.52px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bz-text); }
.auto-active-h::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.auto-active dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 12px 0 0; font-size: 13px; }
.auto-active dt { color: var(--muted); }
.auto-active dd { margin: 0; text-align: right; font-weight: 600; }
.cta-stop { width: 100%; height: 48px; margin-top: 12px; text-transform: uppercase; background: rgba(248, 113, 113, .1); color: #fca5a5; border: 1px solid rgba(248, 113, 113, .35); }
.cta-stop:hover:not(:disabled) { background: rgba(248, 113, 113, .16); }

/* board column */
.bz-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 4px;
  color: rgba(161, 161, 161, .35); transition: color .15s, transform .15s;
}
.bz-toggle:hover { color: var(--muted); }
.bz-toggle[aria-expanded="false"] { transform: rotate(180deg); }
.bz {
  width: 100%; margin-top: 8px; padding: 6px 8px; border: 1px solid var(--bz-border); border-radius: var(--radius-sm);
  background: var(--bz-fill); color: var(--bz-text); box-shadow: 0 0 14px rgba(31, 219, 99, .08);
  transition: filter .15s;
}
.bz:hover { filter: brightness(1.1); }
.bz-head { display: flex; align-items: center; gap: 6px; height: 20px; }
.bz-title { flex: 1; min-width: 0; font-size: 10.88px; font-weight: 600; }
.bz-info {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid rgba(124, 245, 166, .2); background: rgba(9, 13, 15, .45); color: rgba(124, 245, 166, .7);
}
.bz-info:hover, .bz-info[aria-expanded="true"] { color: var(--bz-text); background: rgba(9, 13, 15, .7); }
.bz-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; margin: 4px 0 0; font-size: 11.52px; line-height: 16px; }
.bz-grid dt { color: var(--bz-label); }
.bz-grid dd { margin: 0; justify-self: end; text-align: right; color: rgba(124, 245, 166, .85); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-grid dd.total { color: var(--fg); font-weight: 600; }
.bz-grid a { text-decoration: underline; text-decoration-color: rgba(124, 245, 166, .35); text-underline-offset: 2px; }
.bz-grid a:hover { color: var(--fg); }
.bz-note { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(124, 245, 166, .15); font-size: 11.52px; line-height: 16px; color: var(--bz-label); }
.bz-wrap { width: 100%; }
.bz-wrap.is-collapsed .bz { display: none; }

.ring-wrap { position: relative; width: calc(100% - 16px); max-width: 608px; aspect-ratio: 1; margin-top: 8px; }
.ring-wrap::before {
  content: ''; position: absolute; inset: 7%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(148, 163, 184, .05), rgba(15, 23, 42, .02) 56%, transparent 72%);
}
.ring { position: relative; width: 100%; height: 100%; overflow: visible; user-select: none; -webkit-user-select: none; }
.tile { outline: none; transition: opacity .5s ease-out; }
.tile-shape {
  fill: color-mix(in srgb, var(--primary) calc(var(--heat, 0) * 42%), var(--tile-bg));
  stroke: rgba(255, 255, 255, .09); stroke-width: 1.2;
  transition: fill .18s, stroke .18s, stroke-width .18s, filter .18s;
}
.tile.has-eth .tile-shape { stroke: rgba(124, 245, 166, calc(.1 + var(--heat, 0) * .3)); }
.tile-num { font-family: var(--mono); font-size: 12px; fill: rgba(255, 255, 255, .45); pointer-events: none; transition: fill .18s; }
.tile.has-eth .tile-num { fill: rgba(255, 255, 255, .7); }
.tile-dot { fill: var(--primary); opacity: 0; pointer-events: none; transition: opacity .2s; filter: drop-shadow(0 0 3px rgba(31, 219, 99, .9)); }
.tile.is-mine .tile-dot { opacity: 1; }
.ring.is-interactive .tile { cursor: url('/img/cursor-pick.svg') 10 4, pointer; }
.ring.is-interactive .tile:hover .tile-shape { fill: color-mix(in srgb, var(--primary) calc(8% + var(--heat, 0) * 42%), #1a2123); stroke: rgba(255, 255, 255, .22); }
.ring.is-interactive .tile:hover .tile-num { fill: rgba(255, 255, 255, .85); }
.tile.is-selected .tile-shape { fill: color-mix(in srgb, var(--primary) calc(22% + var(--heat, 0) * 36%), #10191a); stroke: var(--primary); stroke-width: 2; }
.tile.is-selected .tile-num { fill: #fff; }
.tile:focus-visible .tile-shape { stroke: #fff; stroke-width: 2; stroke-dasharray: 5 4; }
.ring.is-closing .tile-shape, .ring.is-settling .tile-shape { animation: tilePulse 1.6s ease-in-out infinite; }
@keyframes tilePulse { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
.ring.has-winner .tile:not(.is-winner) .tile-shape, .ring.has-winner .tile:not(.is-winner) .tile-dot { opacity: .28; }
/* the shapes fade, the numbers stay readable: text under a group opacity fails the contrast floor */
.ring.has-winner .tile:not(.is-winner) .tile-num { fill: rgba(255, 255, 255, .62); }
.tile.is-winner .tile-shape {
  fill: rgba(31, 219, 99, .5); stroke: #7CF5A6; stroke-width: 2.4; animation: none;
  filter: drop-shadow(0 0 10px rgba(31, 219, 99, .85)) drop-shadow(0 0 22px rgba(31, 219, 99, .45));
}
/* dark on the bright winner fill, like text on the green buttons: white on that green misses AA */
.tile.is-winner .tile-num { fill: var(--primary-fg); font-weight: 700; }
.ring-center { font-family: var(--mono); pointer-events: none; }
.ring-center .rc-values { pointer-events: auto; outline: none; }
.rc-top { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; fill: rgba(255, 255, 255, .68); opacity: .8; text-transform: uppercase; }
.rc-big { font-size: 36px; font-weight: 600; letter-spacing: .08em; fill: rgba(255, 255, 255, .92); opacity: .86; font-variant-numeric: tabular-nums; filter: drop-shadow(0 0 18px rgba(124, 245, 166, .12)); }
.rc-sub { font-size: 9.3px; letter-spacing: .26em; fill: rgba(255, 255, 255, .68); opacity: .8; text-transform: uppercase; }
.ring.is-closing .rc-sub, .ring.is-settling .rc-sub { fill: var(--bz-text); opacity: .9; }
.ring.has-winner .rc-big { fill: var(--bz-text); }
.rc-rule { stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.rc-val { font-size: 15.7px; font-weight: 500; letter-spacing: .08em; fill: rgba(255, 255, 255, .82); font-variant-numeric: tabular-nums; }
.rc-glyph { color: #cfd8dc; }
.ring-center .rc-values { filter: drop-shadow(0 0 18px rgba(124, 245, 166, .12)); }
/* The small static rings (round detail, 404) draw at about half size: keep only the big line and the note,
   set large enough to read, and larger tile numbers. */
.ring.is-compact .rc-top, .ring.is-compact .rc-rule, .ring.is-compact .rc-values { display: none; }
.ring.is-compact .rc-big { font-size: 60px; letter-spacing: .04em; }
.ring.is-compact .rc-sub { font-size: 24px; letter-spacing: .14em; opacity: .9; }
.ring.is-compact .tile-num { font-size: 22px; }
.rc-eth, .rc-usd { transition: opacity .15s; }
.rc-usd { opacity: 0; }
.rc-values:not(.no-usd):hover .rc-eth, .rc-values:not(.no-usd):focus .rc-eth { opacity: 0; }
.rc-values:not(.no-usd):hover .rc-usd, .rc-values:not(.no-usd):focus .rc-usd { opacity: 1; }
.settle-now {
  position: absolute; left: 50%; top: 61.5%; z-index: 2; transform: translateX(-50%); white-space: nowrap;
  font-size: 12px; font-weight: 600; color: var(--bz-text); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(124, 245, 166, .4); padding: 4px 8px; border-radius: 4px;
}
.settle-now:hover { color: var(--fg); }
.settle-now:disabled { opacity: .6; }

/* right panel */
.rounds-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rounds-title { font-size: 20px; font-weight: 600; line-height: 28px; }
.rounds-sub { margin-top: 2px; font-size: 12px; font-weight: 500; line-height: 16px; color: var(--muted); }
.rounds-count { display: inline-flex; align-items: center; gap: 4px; height: 16px; font-size: 12px; font-weight: 600; color: var(--fg); }
.rounds-count .ico { color: var(--muted); }
.rounds-empty { padding: 20px 0 21px; font-size: 14px; line-height: 20px; color: var(--muted); }
.rewards { margin-top: 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.rewards-h { font-size: 11.52px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.rw-k { font-size: 10.88px; font-weight: 600; text-transform: uppercase; color: var(--muted); line-height: 16px; }
.rw-v { margin-top: 2px; font-size: 16px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.rw-v small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.rw-note { margin-top: 6px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.rw-sub { margin-top: 4px; font-size: 11.5px; line-height: 1.45; color: var(--bz-text); }
.rw-row .btn-sm { min-width: 72px; }
.rounds-list { list-style: none; margin: 8px 0 0; padding: 0; }
.rounds-list a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px;
  padding: 10px 4px; border-bottom: 1px solid var(--line); border-radius: 0; transition: background-color .15s;
}
.rounds-list a:hover { background: rgba(255, 255, 255, .025); }
.rl-id { font-size: 14px; font-weight: 600; }
.rl-tiles { grid-column: 2; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: center; }
.rl-amt { font-size: 13px; font-weight: 600; text-align: right; }
.rl-when { grid-column: 1 / 3; font-size: 11px; color: var(--muted); }
.rl-res { grid-column: 3; font-size: 12px; font-weight: 600; text-align: right; color: var(--muted); }
.rl-res.is-won { color: var(--pos); }
.rl-res.is-live { color: var(--bz-text); }
.rounds-more { margin-top: 10px; font-size: 12px; color: var(--muted); }
.rounds-more a { color: var(--primary); }

/* ------------------------------------------------------------------ /stake */

.stake-col { width: min(672px, calc(100% - 32px)); margin: 0 auto; padding-top: 24px; }
.stake-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-bottom: 1px solid var(--line); }
.stake-tabs .tab2 { height: 30px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 20px; }
.kv-k { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; line-height: 16px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .48); }
.stake-amt .kv-k { font-size: 11.52px; letter-spacing: .2em; }
a.kv-k:hover { color: rgba(255, 255, 255, .7); }
.kv-v { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .78); white-space: nowrap; }
.kv-v .mark, .amount-row .mark { width: 12px; height: 12px; border-radius: 3px; object-fit: contain; }
.kv-v .eth { width: 14px; height: 14px; color: #cfd8dc; }
.stake-bal { margin-top: 34px; }
.stake-amt { margin-top: 38px; }
.stake-avail { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; line-height: 16px; color: rgba(255, 255, 255, .48); }
.stake-max { height: 28px; padding: 0 12px; border-radius: var(--radius-sm); font-size: 12.8px; font-weight: 500; color: rgba(255, 255, 255, .66); }
.stake-max:hover:not(:disabled) { color: var(--fg); background: rgba(255, 255, 255, .05); }
.stake-max:disabled { opacity: .5; }
.stake-col .amount-row { margin-top: 8px; gap: 16px; }
.stake-col .amount-row .mark { width: 16px; height: 16px; }
.mark-fallback { display: inline-block; width: 16px; height: 16px; border-radius: 45% 55% 50% 50%; background: radial-gradient(circle at 58% 38%, #7CF5A6, #1FDB63 40%, #0E7A3A 80%); flex: none; }
.kv-v .mark-fallback { width: 12px; height: 12px; }
.stake-help { margin-top: 8px; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .56); }
.stake-cta { width: 100%; margin-top: 20px; }
.stake-staked { margin-top: 44px; }
.stake-yield { margin-top: 27px; }
.stake-claim { width: 100%; margin-top: 27px; }
.sum-h { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; }
.sum-title { font-size: 20px; font-weight: 600; line-height: 28px; letter-spacing: .02em; color: #fff; }
.sum-info { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .045); color: var(--fg); }
.sum-info:hover, .sum-info[aria-expanded="true"] { background: rgba(255, 255, 255, .08); }
.sum-row1 { margin-top: 30px; }
.sum-row2 { margin-top: 27px; }
.apr-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 48px; margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.apr-toggle .chev { display: inline-flex; color: rgba(255, 255, 255, .42); transition: transform .15s; }
.apr-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.apr-toggle .kv-v { gap: 8px; }
.apr-body { padding: 12px 0 4px; font-size: 13px; line-height: 1.6; color: var(--muted); border-bottom: 1px solid var(--line); }
.apr-body p + p { margin-top: 8px; }
.stake-note { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ /history */

.hist { width: min(1152px, calc(100% - 32px)); margin: 0 auto; }
.hist-sec { border-left: 1px solid var(--line); padding-left: 24px; }
.hist-top { padding-top: 24px; }
.hist-title { font-size: 30px; font-weight: 600; line-height: 36px; letter-spacing: -.025em; }
.hist-stats { display: grid; grid-template-columns: 360px 344px minmax(0, 360px); column-gap: 32px; margin-top: 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hs-l { font-size: 10.88px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); line-height: 16px; }
.hs-v { position: relative; margin-top: 8px; height: 25px; font-size: 20px; font-weight: 700; letter-spacing: -.025em; line-height: 25px; white-space: nowrap; }
.hs-v .usd { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .15s; }
.hs-v .amt { transition: opacity .15s; }
.hs-v.has-usd:hover .amt, .hs-v.has-usd:focus .amt { opacity: 0; }
.hs-v.has-usd:hover .usd, .hs-v.has-usd:focus .usd { opacity: 1; }
.hs-s { margin-top: 7px; font-size: 12px; color: var(--muted); line-height: 16px; }
.hist-main { margin-top: 24px; padding-top: 3px; padding-bottom: 24px; }
.hist-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hist-tabs { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
/* text-width tabs: the underline spans the label only */
.htab { position: relative; flex: none; height: 22px; padding: 0; font-size: 14px; font-weight: 600; line-height: 22px; color: var(--muted); white-space: nowrap; }
.htab:hover { color: var(--fg); }
.htab[aria-selected="true"] { color: var(--primary); }
.htab[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--primary); }
#h-refresh { padding: 0 11px 0 10px; }
.hist-filters { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
#h-filter-wrap { display: inline-flex; align-items: center; gap: 8px; }
.hf-l { font-size: 12px; font-weight: 500; line-height: 16px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.select { position: relative; display: inline-flex; }
.select select {
  appearance: none; -webkit-appearance: none; width: 96px; height: 32px; padding: 0 28px 0 9px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #10171a; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
}
.select select:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.select .ico { position: absolute; right: 9px; top: 9px; pointer-events: none; color: rgba(255, 255, 255, .56); }
.tbl-wrap { margin-top: 13px; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tbl th {
  height: 40px; padding: 0 8px; border-top: 1px solid var(--line); text-align: left;
  font-size: 10.88px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.tbl td { height: 45px; padding: 0 8px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl .r { text-align: right; }
.tbl tbody tr { cursor: pointer; transition: background-color .15s; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, .025); }
.tbl tbody tr.no-link { cursor: default; }
.tbl td a { display: inline-flex; align-items: center; }
.tbl .t-round { letter-spacing: -.025em; }
.tbl .t-state { font-size: 12px; font-weight: 500; color: var(--muted); }
.tbl .t-state.is-live { color: var(--bz-text); }
.tbl .t-state.is-bonanza { color: var(--primary); }
.tbl .t-tile { font-size: 12px; }
.tbl .t-post { color: var(--pos); }
.tbl-empty td { height: 88px; text-align: center; font-weight: 500; color: var(--muted); cursor: default; }
.tbl-empty:hover { background: none !important; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.tbl .t-state.is-redrawn::after { content: ' · redrawn'; color: var(--muted); }
/* Column widths are shares of the reference layout (the 1127px rounds table at 1440), per view, so every table
   fits its wrap from 768px up; phones switch to the auto layout further down. */
@media (min-width: 768px) {
  #h-table[data-view="rounds"] col:nth-child(1), #h-table[data-view="rounds"] col:nth-child(2) { width: 12.245%; }
  #h-table[data-view="rounds"] col:nth-child(3) { width: 10.204%; }
  #h-table[data-view="rounds"] col:nth-child(4) { width: 16.327%; }
  #h-table[data-view="rounds"] col:nth-child(5) { width: 10.204%; }
  #h-table[data-view="rounds"] col:nth-child(6), #h-table[data-view="rounds"] col:nth-child(7) { width: 12.245%; }
  #h-table[data-view="rounds"] col:nth-child(8) { width: 14.285%; }
  #h-table[data-view="mine"] col:nth-child(1), #h-table[data-view="mine"] col:nth-child(2), #h-table[data-view="mine"] col:nth-child(4) { width: 15.385%; }
  #h-table[data-view="mine"] col:nth-child(3), #h-table[data-view="mine"] col:nth-child(6) { width: 20.51%; }
  #h-table[data-view="mine"] col:nth-child(5) { width: 12.82%; }
  #h-table[data-view="claims"] col:nth-child(1), #h-table[data-view="claims"] col:nth-child(4) { width: 21.43%; }
  #h-table[data-view="claims"] col:nth-child(2), #h-table[data-view="claims"] col:nth-child(3) { width: 28.57%; }
  #h-table[data-view="burns"] col { width: 23.077%; }
  #h-table[data-view="burns"] col:nth-child(2) { width: 30.769%; }
}
/* Narrower than the reference table: headers may wrap to two lines instead of running into the next column. */
@media (min-width: 768px) and (max-width: 1279.98px) {
  .tbl th { white-space: normal; line-height: 1.3; }
}
/* Tablet width: the rounds table drops Winners and Settled (the round page has both), as phones do. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  #h-table[data-view="rounds"] col:nth-child(1), #h-table[data-view="rounds"] col:nth-child(2), #h-table[data-view="rounds"] col:nth-child(7) { width: 15.79%; }
  #h-table[data-view="rounds"] col:nth-child(3) { width: 13.16%; }
  #h-table[data-view="rounds"] col:nth-child(4) { width: 21.05%; }
  #h-table[data-view="rounds"] col:nth-child(5), #h-table[data-view="rounds"] col:nth-child(6) { width: 0; }
  #h-table[data-view="rounds"] col:nth-child(8) { width: 18.42%; }
  #h-table[data-view="rounds"] th:nth-child(5), #h-table[data-view="rounds"] td:nth-child(5),
  #h-table[data-view="rounds"] th:nth-child(6), #h-table[data-view="rounds"] td:nth-child(6) { display: none; }
}

.rd { margin-top: 24px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.rd-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.rd-back:hover { color: var(--fg); }
.rd-title { margin-top: 12px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.rd-ring { width: 100%; max-width: 300px; aspect-ratio: 1; }
.rd-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 24px; margin-top: 16px; }
.rd-facts .hs-v { font-size: 16px; height: 22px; line-height: 22px; margin-top: 4px; }
.rd-miners { margin-top: 24px; }
.rd-miners .tbl { min-width: 560px; }
.rd-miners .tbl tbody tr { cursor: default; }
.mono { font-family: var(--mono); font-size: 13px; font-weight: 500; }

/* ------------------------------------------------------------------ /about */

.hb { width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding-top: 24px; }
.hb-title { font-size: 36px; font-weight: 600; line-height: 40px; letter-spacing: .04em; color: #fff; }
.hb-lead { margin-top: 12px; max-width: 800px; font-size: 16px; line-height: 28px; color: rgba(255, 255, 255, .66); text-wrap: pretty; }
.hb-grid { display: grid; grid-template-columns: minmax(0, 940px) 288px; justify-content: space-between; gap: 52px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.hb-main { border-left: 1px solid var(--line); padding-left: 24px; min-width: 0; }
.hb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.hb-kicker { display: flex; align-items: center; gap: 12px; font-size: 10.88px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; line-height: 16px; }
.hb-kicker .k1 { color: var(--primary); }
.hb-kicker .k2 { color: rgba(255, 255, 255, .5); }
.hb-kicker .dash { width: 44px; height: 1px; background: rgba(255, 255, 255, .16); }
.hb-h2 { margin-top: 12px; font-size: 36px; font-weight: 600; line-height: 40px; letter-spacing: .04em; color: #fff; }
.hb-sub { margin-top: 12px; font-size: 16px; line-height: 28px; color: rgba(255, 255, 255, .68); text-wrap: pretty; }
.hb-chip { display: flex; align-items: center; gap: 12px; padding-left: 16px; border-left: 1px solid var(--line); flex: none; }
.hb-chip-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: rgba(31, 219, 99, .1); color: var(--primary); }
.hb-chip-k { font-size: 10.24px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .5); line-height: 15px; }
.hb-chip-v { margin-top: 5px; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; line-height: 20px; }
.hb-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 44px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.hb-step-k { font-size: 10.4px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .45); line-height: 16px; }
.hb-step-t { margin-top: 8px; font-size: 24px; font-weight: 600; line-height: 32px; letter-spacing: .06em; color: #fff; }
.hb-step-p { margin-top: 8px; font-size: 14px; line-height: 24px; color: rgba(255, 255, 255, .62); text-wrap: pretty; }
.hb-body { max-width: 768px; margin-top: 28px; }
.hb-body p { font-size: 15.68px; line-height: 28px; color: rgba(255, 255, 255, .74); text-wrap: pretty; }
.hb-body p + p { margin-top: 20px; }
.hb-body strong { color: #fff; font-weight: 600; }
.hb-note { max-width: 768px; margin-top: 28px; padding: 16px 20px; border-left: 2px solid var(--primary); background: rgba(31, 219, 99, .05); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.hb-note p { font-size: 14px; line-height: 24px; color: rgba(255, 255, 255, .72); }
.hb-note p + p { margin-top: 8px; }
.hb-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; }
.hb-nav a, .hb-nav span.hb-nav-blank {
  display: flex; align-items: center; gap: 12px; width: 240px; min-height: 63px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); transition: border-color .15s, background-color .15s;
}
.hb-nav span.hb-nav-blank { visibility: hidden; }
.hb-nav a:hover { border-color: rgba(31, 219, 99, .45); background: rgba(31, 219, 99, .04); }
.hb-nav .next { justify-content: space-between; text-align: left; }
.hb-nav .nk { font-size: 9.92px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .45); line-height: 15px; }
.hb-nav .next .nk { color: var(--primary); }
.hb-nav .nt { margin-top: 4px; font-size: 14px; font-weight: 600; color: #fff; line-height: 20px; }
.hb-nav .ico { color: var(--muted); }
.hb-nav .next .ico { color: var(--primary); }
.hb-aside { border-left: 1px solid var(--line); padding-left: 12px; align-self: start; position: sticky; top: calc(var(--hdr-h) + 16px); }
.hb-toc-k { padding: 0 0 7px; font-size: 10.24px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .5); line-height: 16px; }
.hb-toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.hb-toc a { position: relative; display: block; padding: 12px 23px; border-radius: var(--radius-sm); transition: background-color .15s; }
.hb-toc a::before { content: ''; position: absolute; left: 11px; top: 16px; bottom: 16px; width: 1px; background: rgba(255, 255, 255, .12); }
.hb-toc a:hover { background: rgba(255, 255, 255, .03); }
.hb-toc a[aria-current="true"] { background: rgba(31, 219, 99, .1); }
.hb-toc a[aria-current="true"]::before { background: var(--primary); }
.hb-toc .tn { font-size: 10.24px; font-weight: 500; letter-spacing: .18em; color: rgba(255, 255, 255, .5); line-height: 15px; }
.hb-toc a[aria-current="true"] .tn { color: var(--primary); }
.hb-toc .tt { margin-top: 5px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .84); line-height: 20px; }
.hb-toc a[aria-current="true"] .tt { color: var(--fg); }
.hb-toc .td { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, .52); line-height: 20px; }
.hb-toc a[aria-current="true"] .td { color: rgba(255, 255, 255, .64); }
.chapter + .chapter { margin-top: 64px; }
.js .chapter:not(.is-active) { display: none; }
.js .chapter + .chapter { margin-top: 0; }

/* prose pages: privacy, terms, brand */
.prose { width: min(768px, calc(100% - 32px)); margin: 0 auto; padding-top: 24px; }
.prose h1 { font-size: 36px; font-weight: 600; line-height: 40px; letter-spacing: .04em; color: #fff; }
.prose .lead { margin-top: 12px; font-size: 16px; line-height: 28px; color: rgba(255, 255, 255, .66); }
.prose .updated { margin-top: 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.prose h2 { margin-top: 36px; font-size: 18px; font-weight: 600; letter-spacing: .02em; color: #fff; }
.prose p, .prose li { font-size: 15.68px; line-height: 28px; color: rgba(255, 255, 255, .74); text-wrap: pretty; }
.prose p { margin-top: 12px; }
.prose ul { margin: 12px 0 0; padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(31, 219, 99, .4); }
.prose hr { margin: 32px 0 0; border: 0; border-top: 1px solid var(--line); }

.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.brand-tile { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; border-radius: var(--radius); border: 1px solid var(--line); }
.brand-tile.is-dark { background: #0B0F0D; }
.brand-tile.is-light { background: #F4F6F2; }
.brand-tile img { width: 36%; height: auto; }
.brand-cap { margin-top: 8px; font-size: 12px; color: var(--muted); text-wrap: pretty; }
.brand-dl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.brand-dl a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .045); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--fg); text-decoration: none; }
.brand-dl a:hover { border-color: rgba(31, 219, 99, .5); }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 479.98px) { .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.swatch { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--card); }
.swatch-chip { height: 72px; }
.swatch-meta { padding: 8px 10px; font-size: 12px; }
.swatch-meta b { display: block; font-size: 13px; color: #fff; }
.swatch-meta span { font-family: var(--mono); color: var(--muted); }
.sw-1 { background: #1FDB63; } .sw-2 { background: #0E7A3A; } .sw-3 { background: #7CF5A6; }
.sw-4 { background: #04150A; } .sw-5 { background: #090D0F; } .sw-6 { background: #FAFAFA; }
.wordmark-demo { margin-top: 16px; padding: 40px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #0B0F0D; text-align: center; }
.wordmark { font-family: 'Archivo', var(--font); font-weight: 800; font-stretch: 125%; letter-spacing: .02em; font-size: clamp(32px, 7vw, 64px); line-height: 1; color: #fff; }
.wordmark-demo .wm-row { display: flex; align-items: center; justify-content: center; gap: 16px; }
.wordmark-demo img { width: clamp(36px, 7vw, 64px); height: auto; }

/* 404 */
.nf { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 16px 0; }
.nf-ring { width: 240px; height: 240px; }
.nf h1 { margin-top: 24px; font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.nf p { margin-top: 8px; max-width: 420px; font-size: 15px; line-height: 24px; color: var(--muted); }
.nf .btn { margin-top: 24px; }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1279.98px) {
  .mine-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: 'board board' 'left right';
    max-width: 960px;
  }
  .mine-board { padding: 4px 16px 0; }
  .mine-board > .ftr { display: none; }
  .mine-left { padding-top: 16px; }
  .mine-right { padding: 16px 16px 24px; }
  .mine-grid > .ftr-wide { display: flex; grid-column: 1 / -1; }
  .bz-wrap { max-width: 640px; }
  .ring-wrap { width: 100%; max-width: 608px; }
  .hist-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hb-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; }
}
@media (min-width: 1280px) {
  .mine-grid > .ftr-wide { display: none; }
}
.mine-grid > .ftr-wide { padding: 24px 16px; }

/* Small laptops and tablets in landscape: the deploy panel beside the board, My Rounds under the panel, so the
   controls start above the fold. The ring shrinks with a short viewport so the whole board fits too. */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .mine-grid {
    grid-template-columns: minmax(340px, 380px) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: 'left board' 'right board';
    max-width: 1280px;
  }
  .mine-left { padding: 24px 16px 8px; }
  .mine-right { padding: 8px 16px 24px; }
  .mine-board { padding: 4px 16px 24px; }
  .ring-wrap { max-width: clamp(440px, calc(100vh - 220px), 608px); }
}

@media (max-width: 1023.98px) {
  .hb-grid { grid-template-columns: minmax(0, 1fr); }
  .hb-aside { position: static; order: -1; border-left: 0; padding-left: 0; }
  .hb-toc { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .hb-toc li { flex: none; width: 220px; }
  .rd { grid-template-columns: minmax(0, 1fr); }
  .rd-ring { margin: 0 auto; }
}

@media (max-width: 767.98px) {
  :root { --hdr-h: 80px; }
  body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .hdr { padding: 0 16px; }
  .brand { width: 28px; height: 28px; }
  .nav { display: none; }
  .hdr-right { gap: 8px; }
  .hdr-mute, .hdr-menu { display: inline-flex; width: 44px; height: 44px; color: var(--fg); }
  .hdr-menu .ico { width: 18px; height: 18px; }
  .hdr-connect { display: none; }
  .hdr-wallet { display: inline-flex; }

  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(3, 1fr);
    height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--bg);
  }
  .tab-link { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 19px; gap: 6px; color: var(--muted); font-size: 10.88px; font-weight: 600; line-height: 11px; }
  .tab-link[aria-current="page"] { color: var(--primary); }
  .tab-link[aria-current="page"]::before { content: ''; position: absolute; top: 11px; left: 50%; width: 32px; height: 2px; margin-left: -16px; border-radius: 1px; background: var(--primary); }
  .tab-ico { display: inline-flex; }
  /* phones: toasts dock under the header, clear of the Rewards card and the tab bar */
  .toasts { left: 16px; right: 16px; width: auto; top: calc(var(--hdr-h) + 8px); bottom: auto; flex-direction: column-reverse; }
  /* docked over the page's first controls (the Stake / Unstake tabs): taps pass through all but the link and close */
  .toast { pointer-events: none; }
  .toast-link, .toast-x { pointer-events: auto; }

  .mine-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'board' 'left' 'right'; min-height: 0; }
  .mine-left { padding: 16px 16px 8px; }
  .mine-right { padding: 4px 16px 8px; }
  .ring-wrap { margin-top: 8px; }
  .chips4 { grid-template-columns: repeat(4, 44px); }
  .chip { height: 32px; background: rgba(255, 255, 255, .035); }
  .chip.is-x { width: 32px; }
  .apr { gap: 12px; }
  .settle-now { top: 62%; }

  .stake-col { padding-top: 16px; }
  .hist-stats { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .hist-sec { padding-left: 16px; }
  .hist-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hist-tabs { gap: 14px; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .hist-tabs::-webkit-scrollbar { display: none; }
  .htab { font-size: 13px; }
  .tbl-wrap { overflow-x: visible; }
  .tbl, .rd-miners .tbl { min-width: 0; table-layout: auto; }
  .tbl col { width: auto; }
  .tbl th { padding: 0 5px; font-size: 9.5px; letter-spacing: .1em; white-space: normal; line-height: 1.3; }
  .tbl { width: 100%; max-width: 100%; }
  .tbl td { padding: 0 5px; font-size: 12.5px; white-space: normal; }
  .tbl th:first-child, .tbl td:first-child { padding-left: 0; }
  .tbl th:last-child, .tbl td:last-child { padding-right: 0; }
  .tbl-empty td { white-space: normal; padding: 0 8px !important; }
  #h-table[data-view="rounds"] th:nth-child(n+5):nth-child(-n+7), #h-table[data-view="rounds"] td:nth-child(n+5):nth-child(-n+7) { display: none; }
  #h-table[data-view="mine"] th:nth-child(3), #h-table[data-view="mine"] td:nth-child(3), #h-table[data-view="mine"] th:nth-child(5), #h-table[data-view="mine"] td:nth-child(5) { display: none; }
  #h-table[data-view="claims"] th:nth-child(3), #h-table[data-view="claims"] td:nth-child(3) { display: none; }
  #h-table[data-view="burns"] th:nth-child(3), #h-table[data-view="burns"] td:nth-child(3) { display: none; }
  .tbl-empty td { display: table-cell !important; }
  .hb-title, .prose h1 { font-size: 30px; line-height: 36px; }
  .hb-h2 { font-size: 30px; line-height: 36px; }
  .hb-head { flex-direction: column; }
  .hb-chip { padding-left: 0; border-left: 0; }
  .hb-steps { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px; }
  .hb-main { padding-left: 16px; }
  .hb-nav a, .hb-nav span.hb-nav-blank { width: auto; flex: 1; min-width: 0; }
  .brand-grid { grid-template-columns: 1fr; }
  .page > .ftr { padding-bottom: 16px; }
}

@media (max-width: 379.98px) {
  .chips4 { grid-template-columns: repeat(4, 38px); gap: 4px; }
  .chip.is-x { width: 30px; }
  .row2 { gap: 8px; }
  .hdr-right { gap: 4px; }
  .hdr-mute, .hdr-menu { width: 40px; }
  .stats3 { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.hb-chip-k, .hb-chip-v, .hb-nav .nk, .hb-nav .nt { display: block; }
.hb-h2:focus { outline: none; }
.cta-ico { display: inline-flex; }
