/* xprhub.com/faucet (version 2, 2026-11-08; redesign 2026-11-08: the claim box and the faucet's balance side by side,
   then recent claims and donations, then the rules; the donate pop-up is a native <dialog>). The hub's purple look
   (hub/page/hub.css tokens, Inter only), copied here so this page stands on its own like talks/ and burns/. Phones:
   everything stacks and the pop-up is a full-screen sheet. */
:root {
  --bg: #0d0a17; --panel: #17112a; --panel2: #1e1636; --line: #2e2350; --well: #0f0b1c;
  --white: #f6f4ff; --muted: #a9a0c9; --purple: #7543e3; --purple-hi: #9b7bff; --live: #4ade80; --bad: #ff8f8f; --warn: #fbbf24;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 85% -10%, rgba(117, 67, 227, .28), transparent 60%), var(--bg);
  color: var(--white); font: 16px/1.6 var(--font); min-height: 100vh; overflow-x: hidden;
  display: flex; flex-direction: column;
}
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 32px 20px 48px; }

.tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--purple-hi); border: 1px solid var(--line); }
.tag.net { color: #2b1a00; background: var(--warn); border-color: var(--warn); font-size: 11px; }
.intro h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; }
.intro p { margin: 0; font-size: 17px; color: var(--muted); max-width: 40em; }
.test-wallet { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; padding: 10px 14px; font-size: 14px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.test-wallet #who { color: var(--white); font-weight: 700; }

.btn { display: inline-block; font: 700 15px var(--font); background: var(--purple); color: #fff; text-decoration: none; padding: 11px 22px; border-radius: 12px; border: 0; cursor: pointer; }
.btn:hover { background: #8455f0; }
.btn.big { font-size: 16px; padding: 13px 26px; min-width: 12em; font-variant-numeric: tabular-nums; }
.btn.small { font-size: 13px; padding: 7px 14px; border-radius: 10px; }
.btn.ghost { background: transparent; color: var(--white); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--purple-hi); background: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { background: var(--purple); }
.btn.ghost:disabled:hover { background: transparent; border-color: var(--line); }
.link { color: var(--purple-hi); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.link:hover { color: var(--white); }
.btn:focus-visible, .link:focus-visible, .rows a:focus-visible, .pick:focus-visible { outline: 3px solid var(--purple-hi); outline-offset: 3px; }
.hint { margin: 0; font-size: 14px; color: var(--muted); }

.card { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; min-width: 0; }
.card h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; }

/* the top: the claim box and the faucet's balance */
.top-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; margin-top: 28px; }
.claim-card { border-color: rgba(117, 67, 227, .55); }
.claim-card .lead { margin: 0 0 18px; color: var(--muted); }
.claim-card .btn { align-self: flex-start; }
.note { margin: 0 0 16px; padding: 10px 14px; font-size: 15px; color: var(--white); background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .45); border-radius: 12px; overflow-wrap: anywhere; }
.captcha { margin-bottom: 14px; }
.status { min-height: 1.6em; margin: 12px 0 14px; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.status.good { color: var(--live); }
.status.bad { color: var(--bad); }
.status a { color: var(--purple-hi); }
.me { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.me .next { margin: 0; font-size: 15px; color: var(--white); font-variant-numeric: tabular-nums; }
.me .hint { margin-top: 4px; }
.me .hint:empty { display: none; }

.bank-card .label { font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--purple-hi); margin: 0 0 2px; }
.bank { margin: 0 0 14px; font-weight: 800; font-size: clamp(34px, 6vw, 46px); line-height: 1.15; letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bank .unit { font-size: .45em; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.bank .off { font-size: 18px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.bank-card .btn.ghost { align-self: flex-start; }
.today { margin-top: 20px; }
.today-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin: 0 0 8px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.today-line .k { color: var(--white); font-weight: 700; }
.today-line span span { color: var(--white); font-weight: 600; }
progress { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; border: 0; border-radius: 999px; background: var(--well); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--well); border-radius: 999px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--purple), var(--purple-hi)); border-radius: 999px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--purple), var(--purple-hi)); border-radius: 999px; }
.stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.stats div { min-width: 0; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 0; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stats dd .of { font-size: 13px; font-weight: 500; color: var(--muted); }

/* recent claims and donations */
.lists { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.list-card h2 { margin-bottom: 6px; }
.list-card .sub { margin-bottom: 6px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.row:first-child { border-top: 0; }
.row .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--white); font-weight: 600; text-decoration: none; }
.row .who:hover { color: var(--purple-hi); }
.row .amt { font-weight: 700; color: var(--live); white-space: nowrap; }
.row .when { min-width: 5.6em; text-align: right; font-size: 13px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; white-space: nowrap; }
.row .when:hover { color: var(--white); text-decoration-color: var(--purple-hi); }
.list-card .hint:empty { display: none; }
.rows:not(:empty) + .hint { margin-top: 8px; }
#claims-more { align-self: flex-start; margin-top: 12px; }

/* the rules */
.rules-card { margin-top: 16px; }
.rules { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; max-width: 46em; }
.rules li + li { margin-top: 8px; }
.contract { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* the donate pop-up: a native <dialog> sheet in the hub look (as the talks page's) */
dialog.sheet {
  width: 480px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 48px); margin: auto; padding: 0;
  color: var(--white); background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); overflow: auto; overscroll-behavior: contain;
}
dialog.sheet::backdrop { background: rgba(8, 6, 16, .74); backdrop-filter: blur(3px); }
body:has(dialog.sheet[open]) { overflow: hidden; } /* the page behind does not scroll */
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px 12px; background: var(--panel2); border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.sheet-close { flex: none; font: 700 14px var(--font); color: var(--white); background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 7px 14px; cursor: pointer; }
.sheet-close:hover { border-color: var(--purple-hi); }
.sheet-close:focus-visible { outline: 3px solid var(--purple-hi); outline-offset: 2px; }
.donate { display: flex; flex-direction: column; min-width: 0; padding: 18px 22px 22px; }
.donate .lead { margin: 0 0 16px; color: var(--muted); }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.pick { font: 700 15px var(--font); color: var(--white); background: var(--well); border: 1px solid var(--line); border-radius: 12px; padding: 11px 6px; cursor: pointer; font-variant-numeric: tabular-nums; }
.pick:hover { border-color: var(--purple-hi); }
.pick[aria-pressed="true"] { background: rgba(117, 67, 227, .28); border-color: var(--purple-hi); }
.field-label { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.amount { display: flex; align-items: center; background: var(--well); border: 1px solid var(--line); border-radius: 12px; }
.amount:focus-within { border-color: var(--purple-hi); box-shadow: 0 0 0 3px rgba(155, 123, 255, .25); }
.amount input { flex: 1; min-width: 0; font: 600 20px var(--font); color: var(--white); background: transparent; border: 0; padding: 12px 14px; outline: none; font-variant-numeric: tabular-nums; }
.amount input::placeholder { color: #6f6693; }
.amount .unit { padding: 0 14px; font-weight: 700; color: var(--muted); }
#donate-have { margin-top: 8px; }
#donate-have:empty { display: none; }
.donate .btn.big { align-self: stretch; margin-top: 16px; }
#donate-status:empty { display: none; }
.donate .fine { margin-top: 14px; font-size: 13px; }

@media (max-width: 760px) {
  .top-grid, .lists { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  main { padding: 24px 16px 40px; }
  .intro p { font-size: 16px; }
  .card { padding: 18px; }
  .claim-card .btn.big, .bank-card .btn.ghost { align-self: stretch; text-align: center; }
  /* a phone: the pop-up is a full-width, full-height sheet */
  dialog.sheet { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border: 0; border-radius: 0; }
  .sheet-head { padding: 14px 16px 10px; }
  .donate { padding: 16px 16px 24px; }
}
