/* LuxxPool public site. No external fonts, no images, no inline styles (strict CSP). */

:root {
  --bg: #0a0a0b;
  --bg-2: #0f0f11;
  --surface: #141417;
  --surface-2: #1b1b1f;
  --line: #26262b;
  --line-2: #3a3a41;
  --text: #f2f1ee;
  --muted: #a6a6ae;
  --gold: #5b8bd6;
  --ltc: #345d9d;
  --ltc-hi: #4a7bc8;
  --glow: 0 0 0 1px rgba(74, 123, 200, 0.35), 0 6px 22px rgba(52, 93, 157, 0.35);
  --gold-hi: #8db2ec;
  --gold-dim: rgba(52, 93, 157, 0.18);
  --ok: #58c994;
  --warn: #e5b04a;
  --bad: #f07a7a;
  --radius: 10px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: 1.3rem; margin-top: 2.25rem; }
h3 { font-size: 1.05rem; margin-top: 1.5rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.35em; }

code, kbd, pre, .mono { font-family: var(--mono); font-size: 0.92em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 0.1em 0.35em; overflow-wrap: anywhere; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.break { overflow-wrap: anywhere; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ltc); color: #fff; padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 8px; color: #111; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 11, 0.92); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(10, 10, 11, 0.78); backdrop-filter: blur(10px); } }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); padding: 6px 0; }
.wordmark { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.02em; }
.wordmark b { color: var(--gold); font-weight: 700; }

.nav-toggle { display: none; }
.site-nav { width: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 10px; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: 8px 10px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--gold); background: var(--gold-dim); }

.js .nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 12px; font: inherit; font-size: 0.9rem; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.js .site-nav { display: none; }
.js .site-nav.open { display: block; }
.js .site-nav ul { flex-direction: column; }
.js .site-nav a { padding: 11px 10px; }

@media (min-width: 940px) {
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; width: auto; }
  .site-nav ul, .js .site-nav ul { flex-direction: row; padding: 0; }
  .js .site-nav a { padding: 8px 10px; }
}

.mock-banner { background: var(--gold-dim); border-bottom: 1px solid rgba(74, 123, 200, 0.3); color: var(--gold-hi); font-size: 0.875rem; padding: 7px 0; text-align: center; }

/* Badges */
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; padding: 5px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.badge-beta { color: #fff; background: var(--ltc); border-color: var(--ltc-hi); }
.badge-ok { color: var(--ok); border-color: rgba(88, 201, 148, 0.45); background: rgba(88, 201, 148, 0.08); }
.badge-warn { color: var(--warn); border-color: rgba(229, 176, 74, 0.45); background: rgba(229, 176, 74, 0.08); }
.badge-bad { color: var(--bad); border-color: rgba(240, 122, 122, 0.45); background: rgba(240, 122, 122, 0.08); }

mark.oc { background: transparent; color: var(--gold-hi); border: 1px dashed rgba(74, 123, 200, 0.6); border-radius: 5px; padding: 0 5px; font-size: 0.85em; font-family: var(--mono); }

/* Hero and page heads */
.hero { position: relative; padding: 44px 0 28px; border-bottom: 1px solid var(--line); background: radial-gradient(900px 380px at 15% -10%, rgba(74, 123, 200, 0.16), transparent 70%), var(--bg-2); }
.hero h1 { font-size: clamp(1.9rem, 6.2vw, 3.1rem); max-width: 18em; letter-spacing: -0.02em; text-wrap: balance; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 40em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }

.page-head { padding: 34px 0 22px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-head h1 { margin-bottom: 0.3em; }
.page-head p { color: var(--muted); max-width: 46em; margin: 0; }
.section { padding: 26px 0 48px; }
.section > .wrap > h2:first-child { margin-top: 0.5rem; }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--gold); color: var(--text); }
.btn-primary { background: var(--ltc); border-color: var(--ltc-hi); color: #fff; box-shadow: 0 2px 10px rgba(52, 93, 157, 0.3); }
.btn-primary:hover { background: var(--ltc-hi); border-color: var(--gold-hi); color: #fff; box-shadow: var(--glow); }
.btn-small { min-height: 32px; padding: 4px 10px; font-size: 0.82rem; font-weight: 600; }
.btn-link { background: none; border: 0; padding: 0; min-height: 0; color: var(--gold); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="password"], input[type="email"], select { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; }
input.addr-input { font-family: var(--mono); font-size: 0.95rem; }
input:focus, select:focus { border-color: var(--gold); }
input[aria-invalid="true"] { border-color: var(--bad); }
input::placeholder { color: #85858d; }
button:disabled { opacity: 0.6; cursor: default; }
.field { margin-bottom: 16px; }
.field .hint { margin-top: 6px; }
.field-error { color: #ffc9c9; font-size: 0.875rem; margin: 6px 0 0; }
.form-narrow { max-width: 480px; }
.form-narrow > .card { margin-bottom: 16px; }
.btn-block { width: 100%; }
form.card > .btn { margin-top: 4px; }
form.card > .msg { margin: 0 0 14px; }
.msg-ok { border-color: rgba(88, 201, 148, 0.5); color: #c9f2dd; }
.account-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.account-bar dl.kv { margin: 0; }
h2 .badge { vertical-align: middle; margin-left: 6px; }
.lookup { display: flex; flex-wrap: wrap; gap: 10px; }
.lookup input { flex: 1 1 260px; }
.hint { color: var(--muted); font-size: 0.875rem; margin: 8px 0 0; }
.msg { margin: 14px 0 0; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); }
.msg-error { border-color: rgba(240, 122, 122, 0.5); color: #ffc9c9; }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.filter label { margin: 0; }
.filter select { width: auto; min-width: 170px; }

/* Cards and stats */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card > :last-child { margin-bottom: 0; }
.card h2, .card h3 { margin-top: 0; }
.grid { display: grid; gap: 12px; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
.stats { grid-template-columns: 1fr 1fr; margin-top: 28px; }
@media (min-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4, .stats { grid-template-columns: repeat(4, 1fr); } }

.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.stat-label { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase; margin: 0 0 6px; }
.stat-value { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: clamp(1.25rem, 4.6vw, 1.75rem); font-weight: 600; margin: 0; line-height: 1.2; overflow-wrap: anywhere; }
.stat-lead .stat-value { color: var(--gold); }
.stat-sub { color: var(--muted); font-size: 0.82rem; margin: 6px 0 0; }

.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.9rem; }
.facts li { margin: 0; }
.facts strong { color: var(--text); font-weight: 600; }

.refresh { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; margin: 14px 0 0; }
.refresh .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.refresh.is-loading .dot { background: var(--line-2); }
.refresh.is-error { color: #ffc9c9; }
.refresh.is-error .dot { background: var(--bad); }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 2.25rem 0 0.75rem; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 0.92rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
caption { text-align: left; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
thead th { color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; background: var(--surface-2); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
td.r, th.r { text-align: right; }
@media (max-width: 480px) { th, td { padding: 10px 10px; } }
td.wrapcell { white-space: normal; min-width: 220px; }
td.empty { color: var(--muted); text-align: center; padding: 22px 14px; white-space: normal; }
.coin-name { color: var(--muted); font-weight: 400; margin-left: 6px; }
.sub { color: var(--muted); font-size: 0.85em; margin-left: 6px; }

/* Code blocks */
.codebox { position: relative; background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; margin: 0 0 1em; }
.codebox pre { margin: 0; padding: 14px; overflow-x: auto; line-height: 1.7; }
.codebox .btn { position: absolute; top: 8px; right: 8px; }
.codebox.has-copy pre { padding-right: 76px; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 26px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: var(--mono); }
.steps h2 { margin-top: 0; padding-top: 3px; }

dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 1em; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }

details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 600; border-radius: var(--radius); }
summary:hover { color: var(--gold-hi); }
details[open] summary { border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
details .answer { padding: 14px 16px 2px; color: #dcdbd7; }

.notice { border: 1px solid rgba(74, 123, 200, 0.35); background: var(--gold-dim); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 1.25em; }
.notice > :last-child { margin-bottom: 0; }
.notice-bad { border-color: rgba(240, 122, 122, 0.55); background: rgba(240, 122, 122, 0.09); }
.notice-ok { border-color: rgba(88, 201, 148, 0.45); background: rgba(88, 201, 148, 0.08); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 24px 0 30px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; }
.site-footer li { margin: 0; }
.site-footer a { color: var(--muted); display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--gold-hi); }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .site-nav a, summary { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
}

/* Litecoin-blue polish */
.btn, a, .card, .stat, input, select, summary { transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .2s ease, transform .15s ease; }
.btn-primary:hover { transform: translateY(-1px); }
.btn:focus-visible, input:focus, select:focus { box-shadow: 0 0 0 3px rgba(74, 123, 200, 0.25); }
.card:hover, .stat:hover { border-color: rgba(74, 123, 200, 0.45); box-shadow: 0 4px 18px rgba(52, 93, 157, 0.18); }
.wordmark b { text-shadow: 0 0 18px rgba(74, 123, 200, 0.45); }
.site-header { box-shadow: 0 1px 0 rgba(74, 123, 200, 0.18); }
.codebox pre { border-left: 3px solid var(--ltc); }
::selection { background: rgba(74, 123, 200, 0.45); color: #fff; }
