/* Play The Bitcoin Lottery - site styles (2026 redesign) */

/* Self-hosted fonts (SIL OFL 1.1, see fonts/LICENSE-OFL.txt). Loading them from
   our own server keeps visitor IPs away from Google and avoids a consent banner. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0b0b0d;
  --surface: #141418;
  --surface-2: #1b1b21;
  --line: #2a2a32;
  --line-strong: #3a3a44;
  --text: #f5f2ea;
  --text-2: #c2bdb1;
  --muted: #8d887d;
  --orange: #f7931a;
  --orange-hover: #ffa53d;
  --orange-ink: #1a0f00;
  --chart-bar: #d9760b;   /* validated for the dark chart surface */
  --green: #35e08a;
  --paper: #f6efe0;
  --paper-ink: #1b1408;
  --paper-accent: #9a4d00;
  --paper-line: #d9cdb4;

  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 85% -120px, rgba(247, 147, 26, 0.16), transparent 70%),
    radial-gradient(700px 480px at -10% 30%, rgba(53, 224, 138, 0.05), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
  background-repeat: no-repeat, no-repeat, repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange-hover); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  color: var(--text);
  overflow-wrap: anywhere;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--orange-ink);
  padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); }
h1 em { font-style: normal; color: var(--orange); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.h-mid { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.h-small { font-size: 1rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-2); font-weight: 500; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.7rem;
}

.section { padding-top: clamp(64px, 9vw, 112px); }
.section-lede { color: var(--text-2); max-width: 68ch; margin-bottom: 2rem; }
.fine { color: var(--muted); font-size: 0.86rem; margin-top: 1rem; }
.fine a { color: var(--text-2); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--orange); color: var(--orange-ink); }
.btn-primary:hover { background: var(--orange-hover); color: var(--orange-ink); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--orange); color: var(--text); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: clamp(12px, 2.4vw, 28px); }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(40px, 7vw, 88px);
}
.lede { font-size: 1.15rem; color: var(--text-2); margin: 1.2rem 0 1.8rem; max-width: 56ch; }

.jackpot {
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px 22px;
  border: 1px solid rgba(247, 147, 26, 0.35);
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.12), rgba(247, 147, 26, 0.02));
  border-radius: var(--radius);
  max-width: 460px;
}
.jackpot-label { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.jackpot-usd { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1.05; color: var(--orange); letter-spacing: -0.02em; }
.jackpot-btc { color: var(--text-2); font-size: 0.92rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

.hero-art { position: relative; }
.hero-art img {
  border-radius: 22px;
  border: 1px solid rgba(247, 147, 26, 0.4);
  box-shadow: 0 30px 80px -30px rgba(247, 147, 26, 0.35), 0 0 0 6px rgba(247, 147, 26, 0.06);
  aspect-ratio: 1;
  object-fit: cover;
}
.ticket-stub {
  position: absolute; left: -18px; bottom: 28px;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--paper-ink);
  padding: 10px 18px 10px 22px;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transform: rotate(-4deg);
  -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left / 100% 100% no-repeat;
  mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left / 100% 100% no-repeat;
}
.ticket-stub > span { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-accent); }
.ticket-stub strong { font-family: var(--font-display); font-size: 1.15rem; }

/* ---------- Live stats ---------- */

.stats-band {
  margin-top: clamp(56px, 8vw, 96px);
  background: rgba(20, 20, 24, 0.8);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 22px;
}
.stats-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.stats-status { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stats-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.stats-status.is-live::before { background: var(--green); box-shadow: 0 0 0 4px rgba(53, 224, 138, 0.18); }

.stats-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.stat {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  min-width: 0;
}
.stat dt { font-size: 0.8rem; color: var(--muted); margin-bottom: 4px; }
.stat dd { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; overflow-wrap: anywhere; }
.stat dd small { font-family: var(--font-body); font-weight: 400; font-size: 0.78rem; color: var(--text-2); }
.source-note { color: var(--muted); font-size: 0.8rem; margin-top: 14px; }
.source-note a { color: var(--text-2); }

/* ---------- Solo vs pool ---------- */

.versus { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: stretch; }
.vs-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.vs-card p { color: var(--text-2); }
.vs-card strong { color: var(--text); }
.vs-tag { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 4px 0 12px; }
.vs-card-win { border-color: rgba(247, 147, 26, 0.5); background: linear-gradient(160deg, rgba(247, 147, 26, 0.1), var(--surface) 60%); }
.vs-card-win .vs-tag { color: var(--orange); }
.vs-divider {
  align-self: center;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: var(--muted);
  border: 1px solid var(--line-strong);
}

/* ---------- Calculator ---------- */

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.calc-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 20px; }

.presets { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.presets legend { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; padding: 0; }
.presets button {
  font: inherit; font-size: 0.9rem; font-weight: 500;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 14px; min-height: 40px; cursor: pointer;
}
.presets button:hover { border-color: var(--orange); }
.presets button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); }

.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.9rem; color: var(--text-2); font-weight: 500; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.input-group {
  display: flex; align-items: center;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  min-height: 48px; overflow: hidden;
}
.input-group:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.2); }
.input-group input, .input-group select {
  font: inherit; color: var(--text); background: transparent; border: 0; outline: 0;
  min-width: 0; height: 46px; padding: 0 12px;
}
.input-group input { flex: 1; font-family: var(--font-mono); font-size: 1.05rem; }
.input-group select { border-left: 1px solid var(--line-strong); cursor: pointer; padding-right: 8px; }
.input-group select option { background: var(--surface); }
.prefix, .suffix { color: var(--muted); font-family: var(--font-mono); font-size: 0.9rem; padding: 0 10px; }
.prefix { padding-right: 0; }

/* The ticket */
.ticket {
  display: block;
  position: relative;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 12px;
  padding: 24px 26px 22px;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8);
  background-image:
    repeating-linear-gradient(90deg, rgba(154, 77, 0, 0.05) 0 2px, transparent 2px 10px);
}
.ticket-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-accent); border-bottom: 1px solid var(--paper-line); padding-bottom: 12px; }
.ticket-main { display: grid; gap: 2px; padding: 18px 0 16px; }
.ticket-label { font-size: 0.9rem; font-weight: 500; }
.ticket-odds { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.4vw, 2.8rem); letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere; }
.ticket-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 18px; }
.ticket-grid dt { font-size: 0.78rem; color: #6b5d45; }
.ticket-grid dd { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; overflow-wrap: anywhere; }
.ticket-perf { position: relative; border-top: 2px dashed var(--paper-line); margin: 20px -26px 0; height: 18px; }
.ticket-perf::before, .ticket-perf::after {
  content: ""; position: absolute; top: -12px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg);
}
.ticket-perf::before { left: -11px; }
.ticket-perf::after { right: -11px; }
.ticket-compare { font-size: 0.95rem; min-height: 46px; }
.ticket-compare strong { color: var(--paper-accent); }

/* ---------- Chart ---------- */

.chart-sub { color: var(--text-2); margin-bottom: 22px; max-width: 70ch; }
.chart {
  --label-w: 132px;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px clamp(14px, 3vw, 28px) 14px;
}
.chart-plot { position: relative; }
.chart-grid { position: absolute; inset: 0 0 0 var(--label-w); pointer-events: none; }
.chart-grid span { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.chart-row {
  display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr);
  align-items: center; gap: 0;
  min-height: 52px;
  position: relative;
  cursor: default;
}
.chart-label { font-size: 0.92rem; color: var(--text); padding-right: 12px; line-height: 1.25; }
.chart-label small { display: block; color: var(--muted); font-size: 0.78rem; }
.chart-track { position: relative; height: 24px; }
.chart-bar {
  position: absolute; left: 0; top: 0; height: 24px;
  background: var(--chart-bar);
  border-radius: 0 4px 4px 0;
  transition: width 0.5s ease;
}
.chart-row:hover .chart-bar, .chart-row:focus-visible .chart-bar { filter: brightness(1.15); }
.chart-value {
  position: absolute; top: 50%; transform: translateY(-50%);
  padding-left: 10px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--text);
}
.chart-value.is-inside { padding-left: 0; padding-right: 10px; transform: translate(-100%, -50%); color: var(--orange-ink); font-weight: 700; }
.chart-axis { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); margin-top: 6px; }
.chart-axis-ticks { position: relative; height: 18px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-axis-ticks span { position: absolute; transform: translateX(-50%); }
.chart-axis-ticks span:first-child { transform: none; }
.chart-axis-title { grid-column: 2; font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

.chart-tip {
  position: fixed; z-index: 60; pointer-events: none;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 0.85rem; line-height: 1.45;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  max-width: 260px;
}
.chart-tip strong { display: block; font-family: var(--font-display); }
.chart-tip span { color: var(--text-2); font-family: var(--font-mono); font-size: 0.8rem; }

.chart-table { margin-top: 14px; }
.chart-table summary { cursor: pointer; color: var(--text-2); font-size: 0.9rem; }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.9rem; }
.chart-table th, .chart-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.chart-table th { color: var(--muted); font-weight: 500; }
.chart-table td { font-variant-numeric: tabular-nums; }
.chart-table { overflow-x: auto; }

/* ---------- Wins ---------- */

.wins-band {
  margin-top: clamp(64px, 9vw, 112px);
  padding: clamp(56px, 8vw, 96px) 0;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(53, 224, 138, 0.08), transparent 70%),
    var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.wins { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.win a {
  display: grid; gap: 4px;
  height: 100%;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text); text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.win a:hover { border-color: var(--green); transform: translateY(-2px); color: var(--text); }
.win-hot a { border-color: rgba(53, 224, 138, 0.45); }
.win-ball { font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; color: var(--green); }
.win-date { font-size: 0.82rem; color: var(--muted); }
.win-who { font-weight: 500; margin: 6px 0 8px; }
.win-btc { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
.win-usd { font-size: 0.85rem; color: var(--text-2); min-height: 1.4em; }

/* ---------- Steps ---------- */

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps h3 { margin: 16px 0 8px; }
.steps p { color: var(--text-2); margin-bottom: 12px; }
.steps a { font-weight: 600; text-decoration: none; }
.steps a::after { content: " \2192"; }
.ball {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #121212;
  background: radial-gradient(circle at 35% 30%, #ffffff 0 30%, #e9e4d8 60%, #b9b2a2 100%);
  box-shadow: inset -4px -6px 10px rgba(0, 0, 0, 0.18), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.setup {
  margin-top: 16px;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.setup-copy { padding: 28px; }
.setup-copy h3 { margin-bottom: 14px; }
.setup-list { padding-left: 1.3em; display: grid; gap: 10px; color: var(--text-2); }
.setup-list li::marker { color: var(--orange); font-family: var(--font-mono); font-weight: 700; }
.setup-list strong { color: var(--text); font-weight: 600; }
.setup-art { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }

/* ---------- Cards (miners, pools, wallets) ---------- */

.cards { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: rgba(247, 147, 26, 0.55); }

.miner img { aspect-ratio: 1; object-fit: contain; width: 100%; background: #f4f2ed; padding: 18px; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.tag { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.specs { list-style: none; padding: 0; margin: 14px 0 16px; display: grid; gap: 0; }
.specs li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.specs span { color: var(--muted); }
.specs strong { font-family: var(--font-mono); font-weight: 500; text-align: right; }
.miner .btn { margin-top: auto; }

.pool, .wallet { padding: 22px; gap: 10px; }
.pool p, .wallet p { color: var(--text-2); font-size: 0.95rem; }
.pool .btn, .wallet .btn { margin-top: auto; }
.pool-logo {
  width: 56px; height: 56px; border-radius: 12px;
  background: #fefefe; display: grid; place-items: center; padding: 8px; margin-bottom: 4px;
}
.pool-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pool-logo-text { font-family: var(--font-mono); font-weight: 700; font-size: 1.2rem; color: #111; }
.pool-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 0.75rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); white-space: nowrap; }
.pill-good { border-color: rgba(53, 224, 138, 0.5); color: var(--green); }
.pool-conn { margin-bottom: 6px; }

/* ---------- Real talk ---------- */

.realtalk-card {
  border: 1px dashed rgba(247, 147, 26, 0.55);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.07), transparent 60%);
}
.realtalk-card p { color: var(--text-2); max-width: 70ch; }
.realtalk-card p + p { margin-top: 12px; }
.realtalk-card strong { color: var(--text); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 52px 18px 20px; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); color: var(--orange); font-size: 1.3rem;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 18px; color: var(--text-2); max-width: 72ch; }

/* ---------- Footer ---------- */

.site-footer { margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 0.9rem; }
.footer-grid { display: grid; gap: 10px; text-align: center; }
.site-footer a { color: var(--text-2); }

/* ---------- Disclaimer page ---------- */

.legal { max-width: 820px; padding-top: clamp(40px, 6vw, 72px); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.4rem; }
.legal h2 { font-size: 1.15rem; margin: 2rem 0 0.6rem; letter-spacing: 0.02em; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 1rem; }
.legal ul { margin: 0.8rem 0 1rem; padding-left: 1.3em; }
.legal .updated { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 440px; margin: 0 auto; padding-left: 12px; }
  .ticket-stub { left: -4px; }
  .versus { grid-template-columns: minmax(0, 1fr); }
  .vs-divider { justify-self: center; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .steps, .cards-2, .cards-3 { grid-template-columns: minmax(0, 1fr); }
  .miner { flex-direction: row; }
  .miner img { width: 38%; align-self: stretch; }
  .setup { grid-template-columns: minmax(0, 1fr); }
  .setup-art { max-height: 260px; }
}

@media (max-width: 640px) {
  .header-row { flex-wrap: wrap; gap: 4px 16px; padding-top: 10px; }
  .nav { width: 100%; overflow-x: auto; gap: 20px; padding-bottom: 10px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 0.9rem; white-space: nowrap; }
  .brand img { height: 36px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat dd { font-size: 1.15rem; }
  .cards-4, .wins { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .miner { flex-direction: column; }
  .miner img { width: 100%; max-height: 300px; }
  .chart { --label-w: 0px; }
  .chart-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 8px 0; }
  .chart-label small { display: inline; margin-left: 6px; }
  .chart-axis-title { grid-column: 1 / -1; }
  .ticket { padding: 20px 18px 18px; }
  .ticket-grid dd { font-size: 0.88rem; }
  .ticket-perf { margin: 18px -18px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* WalletScrutiny verification badge on wallet cards */
.ws-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 500;
  color: var(--green); text-decoration: none;
}
.ws-badge:hover { color: var(--green); text-decoration: underline; }

/* Deals: coupon and referral codes with a copy button */
.deal { padding: 22px; gap: 10px; }
.deal p { color: var(--text-2); font-size: 0.95rem; }
.deal .tag { margin-bottom: 0; }
.deal .btn { margin-top: auto; }
.code-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px;
  border: 1px dashed rgba(247, 147, 26, 0.6); border-radius: var(--radius-sm);
  background: rgba(247, 147, 26, 0.06);
  padding: 8px 8px 8px 14px; margin: 4px 0 8px;
}
.code-box code { flex: 1 1 auto; background: none; border: 0; padding: 0; font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; color: var(--text); overflow-wrap: anywhere; }
.copy-btn {
  font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  color: var(--orange-ink); background: var(--orange); border: 0; border-radius: 999px;
  padding: 8px 14px; min-height: 36px; flex-shrink: 0;
}
.copy-btn:hover { background: var(--orange-hover); }
.deal-list { padding-left: 1.1em; display: grid; gap: 8px; color: var(--text-2); font-size: 0.95rem; }
.deal-list li::marker { color: var(--orange); }
.deal-note { font-size: 0.82rem !important; color: var(--muted) !important; }

/* Featured miner: a full-width card under the three miner cards */
.miner-feature {
  margin-top: 16px;
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  border-color: rgba(247, 147, 26, 0.45);
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.08), var(--surface) 55%);
}
.miner-feature:hover { border-color: rgba(247, 147, 26, 0.7); }
.miner-feature img { width: 100%; height: 100%; object-fit: contain; background: #09090b; }
.feature-body { padding: 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.feature-body h3 { font-size: 1.7rem; margin-top: -8px; }
.feature-lede { color: var(--text-2); max-width: 62ch; }
.mode-table-wrap { overflow-x: auto; }
.mode-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.mode-table caption { text-align: left; color: var(--muted); font-size: 0.8rem; margin-bottom: 6px; }
.mode-table th, .mode-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mode-table thead th { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.mode-table tbody th { font-family: var(--font-display); font-weight: 700; }
.mode-table td { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.feature-facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 0 24px; }
.feature-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.feature-facts span { color: var(--muted); }
.feature-facts strong { font-weight: 500; text-align: right; white-space: nowrap; }
.feature-body .btn { align-self: flex-start; min-width: 240px; margin-top: 4px; }

@media (max-width: 860px) {
  .miner-feature { grid-template-columns: minmax(0, 1fr); }
  .miner-feature img { max-height: 340px; }
}
@media (max-width: 640px) {
  .feature-body { padding: 20px; }
  .feature-facts { grid-template-columns: minmax(0, 1fr); }
  .feature-facts strong { white-space: normal; }
  /* Each power mode becomes a small labelled block on phones */
  .mode-table thead { display: none; }
  .mode-table, .mode-table tbody { display: block; }
  .mode-table caption { display: block; }
  .mode-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mode-table tbody th { grid-column: 1 / -1; border: 0; padding: 0; }
  .mode-table td { border: 0; padding: 0; display: flex; flex-direction: column; white-space: normal; font-size: 0.88rem; }
  .mode-table td::before { content: attr(data-label); font-family: var(--font-body); color: var(--muted); font-size: 0.72rem; }
  .feature-body .btn { align-self: stretch; }
}

/* Dogecoin & Litecoin page */
.hero-scrypt { align-items: center; }
.jackpot-pair { display: grid; gap: 14px; }
.jackpot-pair .jackpot { max-width: none; }
.coin {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; margin-right: 8px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0;
  vertical-align: -5px;
}
.coin-doge { background: #c2a633; color: #1a1500; }
.coin-ltc { background: #345d9d; color: #fff; }
.setup-mini { list-style: none; padding: 0; display: grid; gap: 8px; margin: 2px 0 6px; font-size: 0.88rem; }
.setup-mini li { display: grid; gap: 3px; }
.setup-mini span { color: var(--muted); font-size: 0.78rem; }
.wallet-wide { padding: 24px; gap: 14px; }
.wallet-wide p { color: var(--text-2); max-width: 75ch; }
.wallet-wide .btn { align-self: flex-start; }
.bundle-line { margin-top: 18px; color: var(--text-2); }

/* Homepage teaser for the Dogecoin & Litecoin page */
.teaser {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 24px; align-items: center;
  padding: 24px 28px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(194, 166, 51, 0.1), rgba(52, 93, 157, 0.12));
}
.teaser-coins { display: flex; }
.teaser-coins .coin { width: 44px; height: 44px; font-size: 1.4rem; margin: 0; border: 3px solid var(--bg); }
.teaser-coins .coin + .coin { margin-left: -10px; }
.teaser h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 4px; }
.teaser p { color: var(--text-2); }
@media (max-width: 860px) {
  .teaser { grid-template-columns: minmax(0, 1fr); }
  .teaser .btn { justify-self: start; }
}
.miner-feature.is-light img { background: #f4f2ed; padding: 24px; }
.specs strong { white-space: nowrap; }
