/* Veil Points (veilit.xyz/points). The site pages' frame (tokens, top bar, hero, lit totals, how-it-works, wallet
   row) in Veil's violet with the Points badge's gold, and the homepage's Season 1 countdown card (/points.js, digits from
   /xc-digits.js) in the hero until the season starts. Dark only, like the rest of veilit.xyz. */
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #05040b; --ink-2: #0c0a18; --ink-3: #131026; --ink-4: #1c1734;
  --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.14);
  --fg: #f6f4ff; --fg-2: rgba(246, 244, 255, 0.68); --fg-3: rgba(246, 244, 255, 0.44);
  --veil: #a08bff; --veil-hi: #ddd3ff; --veil-deep: #6b4ff0;
  --gold: #ffd68c; --gold-hi: #ffeccb; --ok: #7ee2b8; --page-acc: var(--gold);
  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r-2: 14px; --r-3: 22px; --wrap: 1180px; --ease: cubic-bezier(.22, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--ink); color: var(--fg); font-family: var(--f-sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--ink); }
a { color: var(--veil-hi); }
:focus-visible { outline: 2px solid var(--veil); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--f-mono); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.hl { background: linear-gradient(180deg, #fff 10%, var(--veil-hi) 50%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- top bar: /top-nav.css ---- */
.btn { display: inline-flex; align-items: center; gap: .45em; padding: .6em 1.05em; border-radius: 999px; background: var(--fg); color: #0b0918; font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; transition: background-color .2s, box-shadow .2s; }
.btn:hover { background: var(--veil-hi); box-shadow: 0 0 0 4px rgba(160, 139, 255, 0.18); }

/* ---- hero ---- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(36px, 6vw, 72px) clamp(36px, 5vw, 64px);
  background: radial-gradient(900px 420px at 50% 115%, rgba(255, 214, 140, 0.12), transparent 70%), radial-gradient(1200px 600px at 50% -200px, rgba(107, 79, 240, 0.26), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent, var(--ink)); }
.hero-in { display: grid; justify-items: center; text-align: center; gap: 18px; }
h1 { margin: 4px 0 0; max-width: 18ch; font-size: clamp(2rem, 5.4vw, 3.9rem); line-height: 1.04; font-weight: 640; letter-spacing: -0.04em; text-wrap: balance; }
.lede { margin: 0; max-width: 58ch; color: var(--fg-2); font-size: clamp(1rem, 1.6vw, 1.12rem); text-wrap: pretty; }
.state { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(160, 139, 255, .32); background: rgba(160, 139, 255, .1); font: 500 .74rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--veil-hi); }
.state i { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-3); }
.is-live .state i { background: var(--ok); animation: dot 2s ease-out infinite; }
@keyframes dot { 0% { box-shadow: 0 0 0 0 rgba(126, 226, 184, .6); } 100% { box-shadow: 0 0 0 9px rgba(126, 226, 184, 0); } }

.totals { width: 100%; margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; text-align: left; }
.total { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 6px; align-content: start; padding: 24px 24px 22px; border-radius: var(--r-3); min-width: 0;
  border: 1px solid var(--line-2); background: linear-gradient(165deg, rgba(34, 26, 72, .86), rgba(10, 8, 20, .9)); box-shadow: 0 30px 80px -40px rgba(107, 79, 240, .8), inset 0 1px 0 rgba(255, 255, 255, .06); }
.total::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .9; background: radial-gradient(120% 90% at 100% 0%, var(--glow), transparent 60%); }
.t-pool { --glow: rgba(255, 214, 140, .16); --ring: rgba(255, 220, 160, .7); border-color: rgba(255, 214, 140, .32); }
.t-pts { --glow: rgba(160, 139, 255, .26); --ring: rgba(200, 185, 255, .7); }
.total .ring { position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--ring) 82%, #fff 86%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 7s linear infinite; opacity: .8; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.k { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.t-pool .k { color: var(--gold-hi); } .t-pts .k { color: var(--veil-hi); }
.big { display: block; margin-top: 4px; font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 650; line-height: 1.02; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-pool .big { background: linear-gradient(180deg, #fff 18%, var(--gold-hi) 62%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-pts .big { background: linear-gradient(180deg, #fff 18%, var(--veil-hi) 62%, var(--veil) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.line { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 1.02rem; font-weight: 500; }
.small { margin: 0; font-size: .8rem; color: var(--fg-3); font-variant-numeric: tabular-nums; }

.minis { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; }
.mini { min-width: 0; display: grid; gap: 2px; align-content: start; padding: 16px 18px; border-radius: var(--r-2); border: 1px solid var(--line); background: rgba(12, 10, 24, .7); }
.mk { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.mini b { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mini small { font-size: .78rem; color: var(--fg-3); }
.src-line { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; font-size: .8rem; color: var(--fg-3); }
.src-line .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-3); }
.src-line .dot.on { background: var(--ok); }

/* ---- the Season 1 card: the homepage's (site/index.html, .xc / .xc-pts), driven by /points.js ---- */
.xc { --gone: 0; --tile: 44px; position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; row-gap: 16px;
  width: 100%; max-width: 440px; padding: 16px 16px 18px; border-radius: var(--r-3); text-decoration: none; color: var(--fg); text-align: left;
  background: linear-gradient(160deg, rgba(34, 26, 72, .85), rgba(12, 10, 24, .82)); border: 1px solid rgba(160, 139, 255, .34);
  box-shadow: 0 20px 60px -20px rgba(107, 79, 240, .55), inset 0 1px 0 rgba(255, 255, 255, .07); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.xc:hover { border-color: rgba(221, 211, 255, .6); transform: translateY(-1px); }
.xc-ring { position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--xa, 0deg), transparent 0 68%, rgba(160, 139, 255, .5) 78%, #fff 84%, rgba(221, 211, 255, .7) 87%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: xcRing 6s linear infinite; }
@property --xa { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes xcRing { to { --xa: 360deg; } }
.xc-lock { position: relative; z-index: 1; display: flex; align-items: center; }
.xc-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; position: relative; z-index: 1; }
.xc-h { font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; }
.xc-s { font-size: 0.84rem; color: var(--fg-2); }
.xc-go { grid-column: 1 / -1; justify-content: center; position: relative; z-index: 1; display: inline-flex; }
.xc-d { position: relative; width: calc(var(--tile) * .86); height: calc(var(--tile) * 1.22); }
.xc-d svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.xc-d path { fill: none; stroke-linejoin: miter; stroke-miterlimit: 2.2; stroke-linecap: square; }
.xc-d .eo, .xc-d .ei { transform: translate(2.2px, 3.6px); }
.xc-d .eo { stroke: #cfc6ff; stroke-width: 6.2; opacity: .5; }
.xc-d .ei { stroke: #18122f; stroke-width: 3.8; }
.xc-d .fo { stroke: #e2dbff; stroke-width: 6.2; }
.xc-d .fi { stroke: #6b56d2; stroke-width: 3.8; }
.xc-d g { filter: drop-shadow(0 0 8px rgba(124, 99, 240, .4)); }
.xc-d .in path { stroke-dasharray: 1 2; animation: xcDraw .7s cubic-bezier(.55, 0, .2, 1) both; }
.xc-d .in .eo, .xc-d .in .ei { animation-delay: .22s; animation-duration: .55s; }
.xc-d .out path { stroke-dasharray: 1 2; animation: xcRub .32s cubic-bezier(.5, 0, .8, .4) both; }
@keyframes xcDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes xcRub { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1; } }
.pts-badge { position: relative; width: 64px; height: 64px; flex: none; display: grid; place-items: center; }
.pts-badge img { width: 64px; height: 64px; display: block; position: relative; z-index: 1; animation: ptsBreath 4.2s ease-in-out infinite; }
.pts-badge::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 140, .38), rgba(160, 139, 255, .22) 45%, transparent 70%); animation: ptsGlow 4.2s ease-in-out infinite; }
@keyframes ptsBreath { 0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 214, 140, .25)); } 50% { filter: drop-shadow(0 0 12px rgba(255, 214, 140, .6)); } }
@keyframes ptsGlow { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.12); } }
.pts-stage { grid-column: 1 / -1; display: grid; position: relative; z-index: 1; }
.pts-stage > * { grid-area: 1 / 1; }
.pts-clock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.pts-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 10px 6px 8px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)), rgba(12, 10, 24, .5); border: 1px solid rgba(160, 139, 255, .26); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.pts-n { display: flex; gap: 2px; }
.pts-u { font: 500 .6rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); }
.pts-live { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 1.05rem; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .6s var(--ease) .2s, transform .6s var(--ease) .2s; }
.pts-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: dot 2s ease-out infinite; }
.xc-pts.is-live .pts-clock { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.xc-pts.is-live .pts-live { opacity: 1; transform: none; }
.pts-line { grid-column: 1 / -1; position: relative; z-index: 1; height: 2px; margin-top: -6px; border-radius: 2px; background: rgba(160, 139, 255, .16); overflow: hidden; }
.pts-line i { position: absolute; inset: 0 auto 0 0; width: calc(var(--gone) * 100%); background: linear-gradient(90deg, rgba(107, 79, 240, .7), var(--gold)); box-shadow: 0 0 10px rgba(255, 214, 140, .7); transition: width 1.1s var(--ease); }
.xc-pts.pts-paused *, .xc-pts.pts-paused *::before { animation-play-state: paused !important; }

/* ---- how it works, privacy, the pool's address ---- */
.body-sec { padding-block: clamp(28px, 4vw, 44px) 64px; display: grid; gap: 28px; }
.sec-h { margin: 0 0 -12px; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how-item { min-width: 0; padding: 18px 20px; border-radius: var(--r-2); border: 1px solid var(--line); background: rgba(12, 10, 24, .5); display: grid; gap: 6px; align-content: start; }
.how-item .n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 600 .78rem var(--f-mono); color: var(--gold-hi); background: rgba(255, 214, 140, .1); border: 1px solid rgba(255, 214, 140, .3); }
.how-item h3 { margin: 4px 0 0; font-size: 1rem; font-weight: 600; }
.how-item p { margin: 0; color: var(--fg-2); font-size: .9rem; }
.pp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pp-col { min-width: 0; padding: 18px 20px; border-radius: var(--r-2); border: 1px solid var(--line); background: rgba(12, 10, 24, .5); }
.pp-col.priv { border-color: rgba(160, 139, 255, .3); background: rgba(160, 139, 255, .06); }
.pp-col h3 { margin: 0 0 8px; font: 500 .74rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.pp-col.priv h3 { color: var(--veil-hi); }
.pp-col ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--fg-2); font-size: .9rem; }
.note { margin: 0; color: var(--fg-3); font-size: .86rem; max-width: 80ch; }
.wallet { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--fg-3); font-size: .86rem; }
.addr { cursor: pointer; font-size: .82rem; color: var(--fg); padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); }
.addr:hover { border-color: rgba(160, 139, 255, .5); }
.wallet a { text-decoration: none; }

.foot { border-top: 1px solid var(--line); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; color: var(--fg-3); font-size: .82rem; }

@media (max-width: 860px) { .totals, .how, .pp, .minis { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .total { padding: 18px; } }
@media (max-width: 480px) { .xc { --tile: clamp(34px, 10.6vw, 44px); padding: 14px 14px 17px; } .pts-clock { gap: 7px; } .pts-tile { padding: 8px 4px 7px; } .pts-badge, .pts-badge img { width: 56px; height: 56px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .xc-d .out { display: none; }
}
