:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #eef2f3;
  background: #0b1114;
  --canvas: #0b1114;
  --surface: #111a1f;
  --border: #2b3942;
  --muted: #a5b0b5;
  --gold: #c5a052;
  --gold-hover: #d3b06a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 2rem; }
body { margin: 0; line-height: 1.65; background: radial-gradient(ellipse at 0 20rem, #c5a05208, transparent 38rem), var(--canvas); }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible, input:focus-visible, main:focus-visible { outline: 2px solid var(--gold-hover); outline-offset: 5px; }
svg { display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; }
p, output, dd { overflow-wrap: anywhere; }
.shell { width: min(80rem, calc(100% - 4rem)); margin-inline: auto; }
.skip-link { position: fixed; top: .75rem; left: 1rem; z-index: 10; transform: translateY(-180%); padding: .75rem 1rem; border-radius: .5rem; background: var(--gold); color: var(--canvas); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.topbar { display: flex; align-items: center; gap: 2rem; min-height: 7.5rem; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; min-width: 0; align-items: center; gap: .85rem; text-decoration: none; }
.brand-symbol { flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem; }
.brand strong { display: block; font-size: 1.2rem; letter-spacing: -.025em; }
.brand strong span { margin-left: .3rem; color: var(--muted); font-weight: 450; }
.brand small { display: block; margin-top: .15rem; color: var(--muted); font-size: .75rem; }
.topbar nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; margin-left: auto; }
.topbar nav a { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; color: var(--muted); text-decoration: none; font-size: .875rem; }
.topbar nav a:hover { color: var(--gold-hover); }
.environment { padding: .2rem .65rem; border: 1px solid #66542f; border-radius: .35rem; color: var(--gold-hover); font-size: .75rem; white-space: nowrap; }
.faucet-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.45fr); align-items: start; gap: clamp(2rem, 5vw, 5rem); padding-block: 4rem 5rem; }
.faucet-layout > *, .method-grid > * { min-width: 0; }
.intro { padding-top: .5rem; }
.eyebrow { margin-bottom: 1.1rem; color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
h1 { margin-bottom: 1.5rem; font-size: clamp(2.3rem, 4.1vw, 3.8rem); font-weight: 600; letter-spacing: -.055em; }
h1 span { color: var(--gold-hover); }
.lead { max-width: 25rem; margin-bottom: 2rem; color: #bcc6cc; font-size: 1.05rem; }
.allocation { padding-block: 1.25rem; border-top: 1px solid #66542f; border-bottom: 1px solid var(--border); }
.allocation p { display: flex; align-items: baseline; gap: .65rem; margin: 0; }
.allocation strong { color: #e5ca92; font-size: clamp(3rem, 4.9vw, 4.5rem); font-weight: 500; letter-spacing: -.06em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.allocation p > span { color: var(--gold-hover); font-size: 1rem; }
.allocation-caption { display: block; margin-top: .35rem; color: var(--muted); font-size: .8125rem; }
.testnet-note { margin-block: 1.2rem 2rem; color: var(--muted); font-size: .8125rem; }
.limits h2 { margin-bottom: 1rem; font-size: 1rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.5; }
.limits dl { margin: 0; }
.limits dl > div { padding-block: .7rem; border-bottom: 1px solid var(--border); }
.limits dt { color: var(--muted); font-size: .75rem; }
.limits dd { margin: .15rem 0 0; font-size: .875rem; }
.text-link { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; margin-top: 1rem; color: var(--gold-hover); font-size: .875rem; }
.request-panel { padding: clamp(1.35rem, 2.8vw, 2.5rem); border: 1px solid var(--border); border-top-color: #8e7542; border-radius: 1rem; background: linear-gradient(145deg, #182126, var(--surface) 45%); box-shadow: 0 1.5rem 3rem #0002; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel-heading > div { min-width: 0; }
.panel-heading .eyebrow { margin-bottom: .6rem; }
.panel-heading h2 { margin: 0; font-size: clamp(1.6rem, 2.1vw, 2rem); font-weight: 550; letter-spacing: -.04em; }
.panel-mark { display: grid; flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; place-items: center; border: 1px solid #66542f; border-radius: 50%; color: var(--gold); font-size: 1.1rem; font-weight: 700; }
.network-note { margin: 1.2rem 0 1.8rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .75rem; }
.address-label, .verification-section legend { color: #e0e6e9; font-size: .875rem; font-weight: 600; }
.step-number { display: inline-block; margin-right: .65rem; color: var(--gold); font-size: .75rem; font-weight: 500; font-variant-numeric: tabular-nums; }
input[type="text"] { display: block; width: 100%; min-width: 0; margin-top: .75rem; padding: .9rem 1rem; border: 1px solid #4a5961; border-radius: .55rem; background: #0b1419; color: #eef2f3; font: .875rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
input[type="text"]::placeholder { color: #87969f; opacity: 1; }
input[type="text"]:focus-visible { border-color: var(--gold); outline-offset: 2px; }
.field-help { margin: .65rem 0 0; color: var(--muted); font-size: .75rem; line-height: 1.7; }
.verification-section { min-width: 0; margin: 1.8rem 0 0; padding: 0; border: 0; }
.verification-section legend { max-width: 100%; padding: 0; }
.verification-section > .field-help { margin-top: .45rem; }
.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: 1.1rem; }
.method { display: flex; flex-direction: column; align-items: flex-start; padding: 1.15rem; border: 1px solid var(--border); border-radius: .65rem; background: #0e171c; }
.method-pow { border-color: #66542f; }
.method .method-label { margin-bottom: .75rem; color: var(--gold-hover); font-size: .6875rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.method h3 { margin: 0 0 .65rem; font-size: 1.125rem; font-weight: 550; letter-spacing: -.025em; line-height: 1.35; }
.method > p:not(.method-label) { margin-bottom: .85rem; color: var(--muted); font-size: .75rem; }
.consent { display: flex; align-items: flex-start; gap: .65rem; margin-block: .25rem 1rem; color: #d5dce1; font-size: .75rem; line-height: 1.65; }
.consent input { flex: 0 0 1.05rem; width: 1.05rem; height: 1.05rem; margin: .2rem 0 0; accent-color: var(--gold); }
.method > .wait-note { padding-top: .75rem; border-top: 1px solid var(--border); }
button { max-width: 100%; font: inherit; cursor: pointer; touch-action: manipulation; }
.button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 3rem; margin-top: auto; padding: .75rem .8rem; border: 1px solid var(--gold); border-radius: .5rem; font-size: .75rem; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.primary { background: var(--gold); color: #101519; }
.primary:hover:not(:disabled) { border-color: var(--gold-hover); background: var(--gold-hover); }
.secondary { border-color: #687c87; background: #1a282f; color: #e0e7eb; }
.secondary:hover:not(:disabled) { border-color: var(--gold-hover); background: #23343c; }
button:disabled { opacity: .5; cursor: not-allowed; }
.request-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; margin-top: .85rem; }
.control-button { min-height: 2.75rem; padding: .5rem 0; border: 0; background: transparent; color: #c2cdd3; font-size: .75rem; text-align: left; }
.control-button:hover:not(:disabled) { color: var(--gold-hover); text-decoration: underline; text-underline-offset: .25em; }
.alternative-note { margin: 0; color: var(--gold-hover); font-size: .8125rem; }
.alternative-note a:not([hidden]) { display: inline-block; padding-block: .65rem; }
.result-section { margin-top: 1.25rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.result-heading { display: flex; align-items: baseline; gap: .1rem; margin-bottom: .8rem; }
.result-heading h3 { margin: 0; font-size: .875rem; font-weight: 600; line-height: 1.5; }
output { display: block; min-width: 0; padding: 1rem; border: 1px solid #33434c; border-radius: .55rem; background: #0b1419; color: #d3dce2; font: .75rem/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1.75rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .8125rem; }
.footer p { margin: 0; }
.footer strong { margin-right: .6rem; color: #eef2f3; }
.footer p > span { margin-left: .5rem; }
.footer > a { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; }

@media (max-width: 67rem) {
  .faucet-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 2rem; }
  .method-grid { grid-template-columns: minmax(0, 1fr); }
  .method { padding: 1.15rem; }
  .button { min-height: 2.8rem; }
}
@media (max-width: 48rem) {
  .shell { width: min(100% - 2.5rem, 38rem); }
  .topbar { flex-wrap: wrap; justify-content: space-between; gap: .75rem 1rem; padding-block: 1.25rem .65rem; }
  .brand { gap: .6rem; }
  .brand-symbol { flex-basis: 2.25rem; width: 2.25rem; height: 2.25rem; }
  .brand strong { font-size: 1.05rem; }
  .brand small { font-size: .6875rem; }
  .environment { padding: .15rem .5rem; font-size: .6875rem; }
  .topbar nav { order: 3; flex-basis: 100%; margin: 0; gap: 1.5rem; }
  .faucet-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 2.5rem 3rem; }
  h1 { font-size: clamp(2.4rem, 8vw, 3.35rem); }
  .lead { max-width: 31rem; margin-bottom: 1.5rem; font-size: 1rem; }
  .allocation { padding-block: 1rem; }
  .allocation strong { font-size: 3.2rem; }
  .testnet-note { margin-bottom: 1.5rem; }
  .limits dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
  .limits dd { text-align: right; font-size: .8125rem; }
  .request-panel { padding: 1.4rem; }
  .method { padding: 1.2rem; }
  .method h3 { font-size: 1.2rem; }
  .method > p:not(.method-label), .consent, .button { font-size: .8125rem; }
  .footer { align-items: flex-start; flex-direction: column; gap: .5rem; padding-block: 1.5rem; }
  .footer p > span { display: block; margin: .25rem 0 0; }
}
@media (max-width: 24rem) {
  .shell { width: calc(100% - 2rem); }
  .topbar { gap: .65rem .5rem; }
  .brand { flex-basis: 100%; }
  .environment { order: 3; margin-left: auto; }
  .topbar nav { flex-basis: auto; gap: 1rem; }
  .request-panel { padding: 1.05rem; }
  .panel-heading { gap: .5rem; }
  .panel-heading h2 { font-size: 1.45rem; }
  .panel-mark { flex-basis: 2rem; width: 2rem; height: 2rem; }
  .method { padding: 1rem; }
  .limits dl > div { display: block; }
  .limits dd { text-align: left; }
  .request-controls { align-items: stretch; flex-direction: column; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
