:root{--p-bg:#03141a;--p-bg2:#072330;--p-bg3:#0a2f3d;--p-card:#06202a;--p-card-top:#082a36;--p-line:#0f3a47;--p-line2:#1c5868;--p-ink:#e2fbff;--p-ink2:#f1ffff;--p-muted:#86b3bd;--p-dim:#5a8792;--p-acc:#3fe0d0;--p-acc2:#a5fff2;--p-acc-deep:#0fa8a0;--p-on-acc:#01201f;--p-acc-b:#ffb199;--p-glow:63,224,208;--p-nav-on:#0b3340;--p-sel:#0fa8a055;--font-stencil:'Fraunces', Georgia, serif;--font-silk:"Space Grotesk", system-ui, sans-serif;--bgc-bg:#03141a;--bgc-bg2:#072330;--bgc-card:#06202a;--bgc-white:#06202a;--bgc-accent:#0fa8a0;--bgc-accent2:#3fe0d0;--bgc-forest:#0a2f3d;--bgc-fg:#0a2f3d;--bgc-line:#0f3a47;--bgc-sky:#0fa8a0;--bgc-ok:#1f8a5b;--bgc-gold:#d99a1e;--bgc-khaki:#d99a1e;--bgc-heart:#d2475a;--bgc-muted:#1c5868;--bgc-dim:#0f3a47;--bgc-warn:#9a6a08;--fgc-fg:#e2fbff;--fgc-forest:#f1ffff;--fgc-muted:#86b3bd;--fgc-dim:#5a8792;--fgc-accent:#3fe0d0;--fgc-accent2:#a5fff2;--fgc-sky:#3fe0d0;--fgc-white:#ffffff;--fgc-ok:#3ddc97;--fgc-gold:#f2c14e;--fgc-khaki:#f2c14e;--fgc-heart:#ff6b7d;--fgc-warn:#f0b23a;--fgc-line:#1c5868;--fgc-bg:#03141a;--fgc-card:#06202a;--lnc-line:#0f3a47;--lnc-accent:#0fa8a0;--lnc-white:#0f3a47;--lnc-fg:#1c5868;--lnc-forest:#1c5868;--lnc-sky:#0fa8a0;--lnc-card:#0f3a47;--lnc-ok:#1f8a5b;--lnc-muted:#1c5868;--lnc-dim:#0f3a47;--lnc-bg:#0f3a47;--lnc-gold:#d99a1e;--shc-accent:#0fa8a055;--shc-forest:#00000099;--shc-fg:#00000099;--shc-line:#00000099;--color-bg:#03141a;--color-bg2:#072330;--color-card:#06202a;--color-white:#06202a;--color-fg:#e2fbff;--color-forest:#f1ffff;--color-muted:#86b3bd;--color-dim:#5a8792;--color-line:#0f3a47;--color-accent:#3fe0d0;--color-sky:#3fe0d0;--color-accent2:#a5fff2;--bgc-accent-dim:#0fa8a01f;--fgc-accent-dim:#3fe0d0;--color-accent-dim:#0fa8a01f;color-scheme:dark}
/* Pad layer on top of the themed template CSS (pad.css). build.py writes the :root block above this file: --p-* are the
   pad's own tokens, --bgc/--fgc/--lnc/--shc/--color are the template's colour roles. html[data-pad] picks the pad's
   type, shapes and art; everything else is shared. */
html, body { background: var(--p-bg); color: var(--p-ink); }
::selection { background: var(--p-sel); color: #fff; }
[hidden] { display: none !important; }
body { overflow-x: hidden; }

/* ---------------------------------------------------------------- atmosphere per pad */
html[data-pad="tidepool"] { background:
  radial-gradient(1100px 620px at 78% -60px, #0c4a5699 0%, transparent 62%) no-repeat,
  radial-gradient(900px 600px at -12% 300px, #0a3b4a66 0%, transparent 58%) no-repeat,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='64' viewBox='0 0 240 64'%3E%3Cpath d='M0 20c30-12 30 12 60 0s30 12 60 0 30 12 60 0 30 12 60 0' fill='none' stroke='%230d3440' stroke-width='1.2'/%3E%3Cpath d='M0 52c30-8 30 8 60 0s30 8 60 0 30 8 60 0 30 8 60 0' fill='none' stroke='%230a2a35' stroke-width='1.2'/%3E%3C/svg%3E") 0 0 / 240px 64px,
  #03141a; }
html[data-pad="tidepool"] body { background: transparent; }

html[data-pad="relay"] body { position: relative; background: #080613; }
html[data-pad="relay"] body::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 760px; z-index: 0; pointer-events: none;
  background: radial-gradient(58% 46% at 30% -6%, rgba(92,242,165,.20), transparent 70%), radial-gradient(48% 40% at 76% -2%, rgba(124,108,255,.28), transparent 70%),
    radial-gradient(40% 30% at 54% 12%, rgba(63,230,192,.10), transparent 70%); animation: p-aurora 16s ease-in-out infinite alternate; }
@keyframes p-aurora { from { transform: scaleY(1); opacity: .85 } to { transform: scaleY(1.12); opacity: 1 } }

html[data-pad="drip"] body { background: linear-gradient(180deg, #10141a 0%, #0d1014 420px, #0d1014 100%); }
html[data-pad="drip"] body::before { content: ""; position: fixed; left: 0; right: 0; top: 40px; height: 26px; z-index: 45; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='26' viewBox='0 0 220 26'%3E%3Cg fill='%23dbe9fb'%3E%3Cpath d='M6 0h16L15 18q-1 2-2 0z' opacity='.75'/%3E%3Cpath d='M34 0h12L41 10q-1 2-2 0z' opacity='.5'/%3E%3Cpath d='M64 0h20L75.500 24q-1.500 2-3 0z' opacity='.85'/%3E%3Cpath d='M98 0h12l-5 8q-1 2-2 0z' opacity='.45'/%3E%3Cpath d='M124 0h16l-7 15q-1 2-2 0z' opacity='.7'/%3E%3Cpath d='M156 0h10l-4 7q-1 2-2 0z' opacity='.4'/%3E%3Cpath d='M180 0h18l-8 20q-1 2-2 0z' opacity='.8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 220px 26px repeat-x; }
@media (max-width: 1023px) { html[data-pad="drip"] body::before { height: 14px; background-size: 120px 14px; opacity: .8; } }
@media (prefers-reduced-motion: reduce) { html[data-pad="relay"] body::before { animation: none } }
#p-sky { opacity: .9; }

/* ---------------------------------------------------------------- type */
.display { font-family: var(--font-display); color: var(--p-ink2); }
h1.display, h2.display { line-height: 1.02; }
.ink-shadow { text-shadow: 0 10px 34px rgba(var(--p-glow), .22); }
.text-white { color: #fff; }

html[data-pad="tidepool"] .display { font-weight: 700; letter-spacing: -.022em; font-variation-settings: "opsz" 144; }
html[data-pad="tidepool"] main section h1.display { font-size: clamp(42px, 5.2vw, 78px) !important; font-weight: 800; }
html[data-pad="tidepool"] h2.display { font-weight: 700; }
html[data-pad="tidepool"] .hl { font-style: italic; border-radius: 999px; padding: .02em .3em .1em; background: linear-gradient(120deg, #a5fff2 0%, #3fe0d0 45%, #0fa8a0 100%); color: var(--p-on-acc); box-shadow: 0 18px 50px -16px rgba(var(--p-glow), .7); }

html[data-pad="relay"] .display { font-weight: 900; text-transform: uppercase; letter-spacing: .004em; line-height: .92; }
html[data-pad="relay"] main section h1.display { font-size: clamp(54px, 8.4vw, 128px) !important; line-height: .9; }
html[data-pad="relay"] h2.display { font-size: clamp(40px, 4.4vw, 62px) !important; line-height: .95; }
html[data-pad="relay"] .hl { border-radius: 4px; padding: 0 .16em .02em; background: linear-gradient(100deg, #5cf2a5 0%, #3fe6c0 40%, #9d8bff 100%); color: #07101a; transform: skewX(-7deg); box-shadow: 0 18px 54px -16px rgba(124,108,255,.8); }
html[data-pad="relay"] .pixel, html[data-pad="relay"] .btn, html[data-pad="relay"] .tab, html[data-pad="relay"] aside nav a, html[data-pad="relay"] .box-head > span:first-child {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .045em; font-weight: 800; }
html[data-pad="relay"] .pixel { font-size: 1.08em; }
html[data-pad="relay"] aside nav a { font-size: 19px; }
html[data-pad="relay"] .btn { font-size: 18px; }
html[data-pad="relay"] .btn-sm { font-size: 16px; }
html[data-pad="relay"] .tab { font-size: 17px; }

html[data-pad="drip"] .display { font-weight: 800; letter-spacing: -.04em; font-variation-settings: "opsz" 96; }
html[data-pad="drip"] main section h1.display { font-size: clamp(42px, 5.6vw, 84px) !important; line-height: .98; }
html[data-pad="drip"] .hl { position: relative; border-radius: 10px 10px 4px 4px; padding: 0 .2em .06em; background: linear-gradient(180deg, #ffffff, #dbe9fb); color: #0d1014; box-shadow: 0 18px 50px -18px rgba(207,227,251,.55); }
html[data-pad="drip"] .hl::before, html[data-pad="drip"] .hl::after { content: ""; position: absolute; top: 100%; width: .16em; background: linear-gradient(180deg, #dbe9fb, #dbe9fb00); border-radius: 0 0 .2em .2em; clip-path: polygon(0 0, 100% 0, 60% 100%, 40% 100%); }
html[data-pad="drip"] .hl::before { left: 16%; height: .34em; }
html[data-pad="drip"] .hl::after { left: 68%; height: .2em; width: .12em; }

/* ---------------------------------------------------------------- shared components */
.btn { background: var(--p-bg2); border-color: var(--p-line2); color: var(--p-ink); box-shadow: inset 0 1px #ffffff10, 0 10px 22px -14px #000; }
.btn:hover { border-color: var(--p-acc-deep); box-shadow: inset 0 1px #ffffff18, 0 14px 26px -14px #000; }
.btn-primary, .btn-primary:hover { background: linear-gradient(180deg, var(--p-acc), var(--p-acc-deep)) !important; border-color: var(--p-acc-deep) !important; color: var(--p-on-acc) !important; box-shadow: inset 0 1px #ffffff66, 0 12px 28px -10px rgba(var(--p-glow), .55) !important; }
.btn-primary:hover { filter: brightness(1.07); }
.btn:after { background: linear-gradient(90deg, #0000, #ffffff30, #0000); }
.btn:disabled { opacity: .5; }
.chip { background: var(--p-bg2); border-color: var(--p-line); color: var(--p-ink); }
.chip-dark { background: linear-gradient(180deg, var(--p-bg3), var(--p-bg2)) !important; color: var(--p-ink) !important; border-color: var(--p-line2) !important; }
.chip-live { background: rgba(var(--p-glow), .10); color: var(--p-acc); border-color: rgba(var(--p-glow), .35); }
.chip-wait { background: #2a2210; color: #f2c14e; border-color: #5a4718; }
.live-dot { background: var(--p-acc); }
.input { background: var(--p-bg); border-color: var(--p-line2); color: var(--p-ink); }
.input::placeholder { color: var(--p-dim); }
.input:focus { border-color: var(--p-acc); box-shadow: 0 0 0 4px rgba(var(--p-glow), .16); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--p-muted) 50%), linear-gradient(135deg, var(--p-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select.input option { background: var(--p-bg2); color: var(--p-ink); }
.tab { color: var(--p-muted); }
.tab:hover, .tab[data-on="true"], .tab.on { background: var(--p-nav-on); color: var(--p-ink2); }
.tab[data-on="true"], .tab.on { border-color: var(--p-line2) !important; }
.bar { background: var(--p-bg3); box-shadow: inset 0 1px 2px #000a; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--p-acc-deep), var(--p-acc2)); border-radius: 99px; }
.card, .box { background: linear-gradient(180deg, var(--p-card-top), var(--p-card)); border-color: var(--p-line); box-shadow: inset 0 1px #ffffff0d, 0 18px 40px -26px #000; }
.card:before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--p-glow), .07), transparent 55%); }
.box-head { background: linear-gradient(180deg, var(--p-bg3), var(--p-bg2)); color: var(--p-ink2); border-color: var(--p-line); }
.lift:hover { border-color: var(--p-line2); box-shadow: inset 0 1px #ffffff18, 0 24px 50px -24px rgba(var(--p-glow), .35); }
.step-tag { background: rgba(var(--p-glow), .12); color: var(--p-acc); }
.px-rule { background: linear-gradient(90deg, var(--p-line2), transparent); }
.notice { background: var(--p-bg2) !important; border-color: var(--p-line2) !important; color: var(--p-muted) !important; }
.notice b { color: var(--p-ink2); }
.table th { color: var(--p-dim); border-color: var(--p-line); }
.table td { border-color: var(--p-line); }
.table tr:hover td { background: var(--p-bg2); }
.link:hover { color: var(--p-acc); }
.marquee-wrap { background: linear-gradient(90deg, var(--p-bg2), var(--p-bg3) 50%, var(--p-bg2)) !important; border-bottom: 1px solid var(--p-line2); }
.marquee-wrap span.rounded-full { background: var(--p-acc) !important; }
.marquee-wrap span span + span, .marquee-wrap .p-tick { color: var(--p-ink) !important; opacity: .86; }
aside, header { background: color-mix(in srgb, var(--p-bg) 82%, transparent) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--p-line) !important; }
aside nav a[aria-current="page"] { background: var(--p-nav-on) !important; border-color: var(--p-line2) !important; color: var(--p-ink2) !important; box-shadow: none !important; }
aside nav a:not(.btn):hover { background: var(--p-bg2) !important; color: var(--p-ink2) !important; }
aside nav a svg { color: var(--p-acc); }
footer { background: var(--p-bg) !important; border-color: var(--p-line) !important; position: relative; z-index: 1; }
.snowcap:after { height: 2px; top: -1px; border-radius: 2px; box-shadow: none !important; background: linear-gradient(90deg, transparent, var(--p-acc), transparent) !important; opacity: .55; }
.trim-earth { border-top-color: var(--p-line); }
.p-logo { display: inline-grid; place-items: center; }
.p-mark { display: block; }
.p-venue { display: flex; flex-direction: column; gap: 4px; padding: 0 8px; font-size: 14.5px; }
.p-cax > * { flex: none; }
.p-stat-mark { display: grid; place-items: center; filter: drop-shadow(0 6px 18px rgba(var(--p-glow), .35)); }
.p-mini { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--p-acc); background: rgba(var(--p-glow), .10); border: 1px solid rgba(var(--p-glow), .25); }
.p-ring-mark { filter: drop-shadow(0 0 26px rgba(var(--p-glow), .45)); animation: p-bob 5s ease-in-out infinite; }
@keyframes p-bob { 50% { transform: translateY(-6px) } }
.p-skel { border-radius: 14px; background: linear-gradient(90deg, var(--p-bg2), var(--p-bg3), var(--p-bg2)); background-size: 200% 100%; animation: p-skel 1.4s linear infinite; }
@keyframes p-skel { to { background-position: -200% 0 } }
.p-kv { display: grid; grid-template-columns: 1fr auto; gap: 9px 18px; font-size: 15px; }
.p-kv dt { color: var(--p-muted); } .p-kv dd { font-family: var(--font-mono); color: var(--p-ink); text-align: right; }

/* shapes per pad */
html[data-pad="tidepool"] .card { border-radius: 28px; }
html[data-pad="tidepool"] .box { border-radius: 26px; }
html[data-pad="relay"] .card, html[data-pad="relay"] .box { border-radius: 10px; }
html[data-pad="relay"] .btn, html[data-pad="relay"] .tab, html[data-pad="relay"] .input, html[data-pad="relay"] aside nav a { border-radius: 6px; }
html[data-pad="relay"] .btn-primary { background: linear-gradient(100deg, #5cf2a5, #3fe6c0 60%, #7fe0d0) !important; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); border: 0 !important; }
html[data-pad="relay"] .chip, html[data-pad="relay"] .step-tag { border-radius: 5px; }
html[data-pad="relay"] .card.lift::after, html[data-pad="relay"] .p-mech::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 10px 10px 0 0; background: linear-gradient(90deg, #5cf2a5, #9d8bff); opacity: .7; }
html[data-pad="relay"] .snowcap:after { background: linear-gradient(90deg, #5cf2a5, #9d8bff) !important; left: 0; right: 0; opacity: .8; }
html[data-pad="drip"] .card, html[data-pad="drip"] .box { border-radius: 16px; }
html[data-pad="drip"] .btn, html[data-pad="drip"] .tab { border-radius: 12px; }
html[data-pad="drip"] .snowcap { border-top-color: #dbe9fb; }
html[data-pad="drip"] .snowcap:after { height: 14px; top: 0; left: 14px; right: 14px; opacity: .8; border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='14' viewBox='0 0 96 14'%3E%3Cg fill='%23dbe9fb'%3E%3Cpath d='M4 0h10L10 11q-1 2-2 0z'/%3E%3Cpath d='M30 0h8l-3 6q-1 2-2 0z' opacity='.6'/%3E%3Cpath d='M52 0h12L59 13q-1 2-2 0z' opacity='.85'/%3E%3Cpath d='M78 0h8l-3 5q-1 2-2 0z' opacity='.5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 96px 14px repeat-x !important; }

/* ---------------------------------------------------------------- hero */
main section h1.display > .hl { text-shadow: none; }
@media (min-width: 1280px) {
  html[data-pad="tidepool"] .p-hero, html[data-pad="drip"] .p-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); align-items: start; }
  html[data-pad="tidepool"] .p-hero .p-steps, html[data-pad="drip"] .p-hero .p-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-pad="tidepool"] .p-hero .p-scene, html[data-pad="drip"] .p-hero .p-scene { height: 420px; }
}
@media (min-width: 1536px) { html[data-pad="relay"] .p-hero { grid-template-columns: minmax(0, 1fr); } }
html[data-pad="relay"] .p-hero .p-scene { height: 400px; }
html[data-pad="relay"] .p-hero p.max-w-xl { max-width: 46rem; }

.p-scene { height: 380px; background: var(--p-bg); }
@media (max-width: 640px) { .p-scene, html[data-pad="relay"] .p-hero .p-scene { height: 300px; } }
.s-pills { position: absolute; left: 12px; right: 12px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.s-top { top: 12px; } .s-bot { bottom: 10px; padding-right: 150px; }
.s-pill { padding: 5px 11px; border-radius: 99px; font-family: var(--font-pixel); font-size: 13px; font-weight: 600; line-height: 1.25; letter-spacing: 0 !important; text-transform: none !important;
  color: var(--p-ink); background: color-mix(in srgb, var(--p-bg) 80%, transparent); border: 1px solid var(--p-line2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.s-pill b { color: var(--p-acc); margin-right: 6px; font-weight: 700; }
.s-note { position: absolute; right: 12px; bottom: 12px; z-index: 5; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--p-dim); }
.p-scene-drip .s-bot { padding-right: 0; }
@media (max-width: 640px) { .s-pill { font-size: 11.5px; padding: 4px 9px; } .s-note { display: none; } .s-bot { padding-right: 0; } }
.s-day { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; fill: #55606f; font-weight: 600; }
/* tidepool: tide lines sway, the pair drops into open water, the ripple spreads */
.s-tide { animation: s-sway 9s ease-in-out infinite alternate; }
.s-tide1 { animation-duration: 11s; animation-direction: alternate-reverse; } .s-tide2 { animation-duration: 13s; } .s-tide3 { animation-duration: 15s; animation-direction: alternate-reverse; }
@keyframes s-sway { from { transform: translateX(-100px) } to { transform: translateX(-20px) } }
.s-pair { animation: s-fall 4.2s cubic-bezier(.5, 0, .9, .6) infinite; }
@keyframes s-fall { 0% { transform: translateY(-20px); opacity: 0 } 12% { opacity: 1 } 46% { transform: translateY(98px); opacity: 1 } 54%, 100% { transform: translateY(150px); opacity: 0 } }
.s-ripple { transform-origin: 502px 100px; animation: s-ripple 4.2s ease-out infinite; opacity: 0; }
@keyframes s-ripple { 0%, 45% { transform: scale(1); opacity: 0 } 50% { opacity: .9 } 100% { transform: scale(9, 5); opacity: 0 } }
/* relay: stars, aurora drift, nodes pulse as the baton reaches them */
.s-star { animation: s-twinkle 4s ease-in-out infinite; }
@keyframes s-twinkle { 50% { opacity: .1 } }
.s-aurora1 { animation: s-au 12s ease-in-out infinite alternate; } .s-aurora2 { animation: s-au 16s ease-in-out infinite alternate-reverse; }
@keyframes s-au { from { transform: translate(-30px, -6px) } to { transform: translate(30px, 10px) } }
.s-node { transform-box: fill-box; transform-origin: center; animation: s-node 8s ease-in-out infinite; }
@keyframes s-node { 0%, 6%, 100% { transform: scale(1) } 3% { transform: scale(1.12) } }
.s-baton { filter: drop-shadow(0 0 8px #ffb648); }
/* drip: seven icicles on a ledge; a drop falls from each in turn and the wallet's slices fill left to right, then it starts over */
.p-scene-drip { background: linear-gradient(180deg, #171c24, #0d1014 70%); }
.s-ledge { position: absolute; left: 0; right: 0; top: 0; height: 40px; background: linear-gradient(180deg, #ffffff, #c7d6ea);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 94% 100%, 86% 82%, 78% 100%, 70% 80%, 61% 100%, 52% 84%, 43% 100%, 34% 80%, 25% 100%, 16% 82%, 8% 100%, 0 80%); }
.s-cols { position: absolute; left: 5%; right: 5%; top: 0; bottom: 136px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.s-col { position: relative; display: flex; flex-direction: column; align-items: center; }
.s-dayl { position: relative; z-index: 2; height: 30px; display: flex; align-items: center; justify-content: center; gap: .4em; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #3d4a5c; white-space: nowrap; }
.s-dayl em { font-style: normal; }
.s-ice { display: block; width: min(44px, 62%); height: calc(var(--h) - 30px); margin-top: -2px; background: linear-gradient(180deg, #f3f8ff 0%, #b9cbe3 55%, #7f93ad88 100%); clip-path: polygon(0 0, 100% 0, 58% 96%, 50% 100%, 42% 96%); }
.s-drop { position: absolute; left: 50%; top: var(--h); width: 11px; height: 11px; margin-left: -5.5px; background: #f0cf7a; border-radius: 0 60% 60% 60%; transform: rotate(45deg) scale(.3); opacity: 0;
  animation: s-drop 7.7s cubic-bezier(.6, 0, 1, .7) infinite; animation-delay: calc(var(--i) * 1.1s); box-shadow: 0 0 10px #f0cf7a88; }
@keyframes s-drop { 0% { top: var(--h); transform: rotate(45deg) scale(.3); opacity: 0 } 4% { top: var(--h); transform: rotate(45deg) scale(1); opacity: 1 } 11% { top: 100%; transform: rotate(45deg) scale(1); opacity: 1 } 13%, 100% { top: 104%; transform: rotate(45deg) scale(.5); opacity: 0 } }
.s-wallet { position: absolute; left: 5%; right: 5%; bottom: 86px; }
.s-wallet > span { position: absolute; left: 0; top: -17px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #6b7686; }
.s-cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.s-cells i { display: block; height: 22px; border-radius: 5px; border: 1.5px solid #3a4352; position: relative; overflow: hidden; }
.s-cells i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #fff0c2, #f0cf7a 60%, #c99a2e); opacity: 0; animation: s-cell 7.7s linear infinite; animation-delay: calc(var(--i) * 1.1s + .7s); }
@keyframes s-cell { 0%, 2% { opacity: 0 } 5%, 100% { opacity: 1 } }
.s-cells { animation: s-reset 7.7s linear infinite; }
@keyframes s-reset { 0%, 96% { opacity: 1 } 99%, 100% { opacity: 0 } }
@media (max-width: 640px) { .s-dayl em { display: none; } .s-cols { bottom: 132px; } .s-wallet { bottom: 84px; } .s-cells { gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .s-tide, .s-pair, .s-ripple, .s-star, .s-aurora, .s-node, .s-drop, .s-cells, .p-ring-mark { animation: none } .s-cells i::after { animation: none; opacity: 1 } .s-drop { opacity: 1; transform: rotate(45deg) } }

.p-band { display: block; width: 100%; height: 120px; margin-top: 96px; position: relative; z-index: 1; }
.p-band-top { height: 90px; opacity: .55; }

/* ring diagram */
.p-ring > svg circle, .p-ring > svg path { stroke: var(--p-line2); }
.p-ring > .hop { background: var(--p-card) !important; border-color: var(--p-line2) !important; }

/* ---------------------------------------------------------------- live bits */
.f-empty { padding: 30px 12px; text-align: center; color: var(--p-dim); font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.7; }
.f-empty a { color: var(--p-acc); }
.f-pop { animation: f-pop .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes f-pop { 0% { transform: scale(1) } 40% { transform: scale(1.06); color: var(--p-acc2) } 100% { transform: scale(1) } }
.f-kind { width: 62px; flex: none; font-family: var(--font-pixel); font-weight: 700; font-size: 11px; letter-spacing: .06em; color: var(--p-acc); }
.f-kind[data-k="forfeit"] { color: #ff8a98; } .f-kind[data-k="lp"], .f-kind[data-k="pass"], .f-kind[data-k="slice"] { color: var(--p-acc2); }

.f-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 10px; width: 300px; pointer-events: none; }
.f-toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--p-bg2) 94%, transparent); border: 1px solid var(--p-line2);
  box-shadow: 0 18px 40px -18px #000, inset 0 1px #ffffff14; animation: f-in .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.f-toast.out { animation: f-out .4s ease forwards; }
.f-toast img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; flex: none; }
.f-toast b { display: block; font-family: var(--font-pixel); font-size: 15px; color: var(--p-ink2); }
.f-toast span { font-family: var(--font-mono); font-size: 12.5px; color: var(--p-muted); }
@keyframes f-in { from { opacity: 0; transform: translateX(30px) } to { opacity: 1; transform: none } }
@keyframes f-out { to { opacity: 0; transform: translateX(30px) } }
@media (max-width: 640px) { .f-toasts { left: 12px; right: 12px; width: auto; bottom: 12px } .f-toast:nth-child(n+2) { display: none } }

.f-drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.f-drawer.open { display: block; }
.f-drawer .f-scrim { position: absolute; inset: 0; background: #000000b8; }
.f-drawer nav { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 320px); background: var(--p-bg); border-left: 1px solid var(--p-line); padding: 22px 18px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; animation: f-in .3s ease both; }
.f-drawer nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; font-family: var(--font-pixel); font-size: 17px; font-weight: 600; color: var(--p-ink); }
.f-drawer nav a.on, .f-drawer nav a:hover { background: var(--p-nav-on); color: var(--p-ink2); }
.f-drawer nav .btn { justify-content: center; margin-top: 10px; }
.f-drawer nav .f-close { align-self: flex-end; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--p-line2); color: var(--p-ink); font-size: 20px; line-height: 1; }

.f-res { width: 100%; }
.f-res .row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--p-line); }
.f-res .row:last-child { border-bottom: 0; }
.f-res img { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; flex: none; }
.f-res .grow { flex: 1; min-width: 0; }
.f-res .x { font-family: var(--font-mono); font-size: 16px; color: var(--p-acc); white-space: nowrap; }
.f-msg { margin-top: 14px; font-size: 15px; color: var(--p-muted); }
.f-msg.err { color: #ff8a98; } .f-msg.ok { color: #3ddc97; }
.f-steps { margin: 14px 0 0; padding-left: 20px; color: var(--p-muted); font-size: 15.5px; line-height: 1.7; list-style: decimal; }
.f-steps b { color: var(--p-ink2); }
.f-copy { cursor: pointer; }
.f-coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.f-coin img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; flex: none; border: 1px solid var(--p-line); background: var(--p-bg2); }
.f-coin b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.f-coin span { font-family: var(--font-mono); font-size: 14px; color: var(--p-muted); }
.f-flag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; font-family: var(--font-mono); font-size: 12px; border: 1px solid var(--p-line2); background: var(--p-bg2); color: var(--p-acc2); white-space: nowrap; }
.f-flag.baton { color: #ffb648; border-color: #6b4a16; background: #2a1c06; }
.f-flag.bad { color: #ff8a98; border-color: #5c2530; background: #2a1014; }
.f-flag.done { color: var(--p-muted); }

/* ---------------------------------------------------------------- mechanic panels */
.p-mech { min-height: 320px; }
.p-mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
@media (min-width: 640px) { .p-mgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.p-mgrid .k { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--p-dim); }
.p-mgrid .v { font-family: var(--font-mono); font-size: 20px; margin-top: 4px; color: var(--p-ink2); letter-spacing: -.02em; word-break: break-word; }
.p-mgrid .v.acc { color: var(--p-acc); }
.p-mgrid .n { font-size: 12.5px; color: var(--p-dim); margin-top: 2px; }
.p-mnote { margin-top: 16px; font-size: 14.5px; line-height: 1.6; color: var(--p-muted); }
.p-mnote a { color: var(--p-acc); }
.p-mhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.p-mhead .t { font-family: var(--font-pixel); font-weight: 600; font-size: 17px; color: var(--p-ink2); }

/* tidepool: the pool as a tank; our burned share is the bright layer on the floor */
.p-tank { position: relative; height: 190px; border-radius: 18px; overflow: hidden; border: 1px solid var(--p-line2); background: linear-gradient(180deg, #0c4a56 0%, #062832 55%, #021318 100%); margin-bottom: 18px; }
.p-tank .ours { position: absolute; left: 0; right: 0; bottom: 0; min-height: 3px; background: linear-gradient(180deg, #8ff5e6, #3fe0d0 40%, #0fa8a0); box-shadow: 0 -8px 30px -4px rgba(63, 224, 208, .6); transition: height 1s cubic-bezier(.2, .7, .2, 1); }
.p-tank .ours::before { content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 6px; background: radial-gradient(8px 5px at 8px 6px, #8ff5e6 98%, transparent) 0 0 / 16px 6px repeat-x; }
.p-tank .lines { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 29px, #c9fff622 29px 30px); }
.p-tank .cap { position: absolute; left: 14px; top: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #c9fff6cc; }
.p-tank .cap b { display: block; font-size: 22px; letter-spacing: -.02em; color: #fff; margin-top: 2px; text-transform: none; }
.p-tank .tag { position: absolute; right: 14px; bottom: 10px; font-family: var(--font-mono); font-size: 12px; color: #021318; background: #8ff5e6; border-radius: 99px; padding: 2px 10px; }
.p-tank.dry { background: repeating-linear-gradient(135deg, #072330 0 12px, #06202a 12px 24px); }
.p-tank.dry .tag { background: #ffb199; }

/* relay: this coin in the middle, the coins it shares holders with around it */
.p-links { display: grid; gap: 10px; }
.p-links .row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) auto; gap: 12px; align-items: center; }
.p-links .row a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-links .row a:hover { color: var(--p-acc); }
.p-links .row .n { font-family: var(--font-mono); font-size: 14px; color: var(--p-muted); white-space: nowrap; }
.p-graph { position: relative; min-height: 240px; display: flex; align-items: center; background: radial-gradient(70% 60% at 50% 40%, rgba(124, 108, 255, .14), transparent 70%); }
.p-graph svg { display: block; width: 100%; height: auto; }
.p-net .edge { stroke: #7c6cff; opacity: .55; fill: none; }
.p-net .node circle.ring { fill: #0e0b1e; stroke: #5cf2a5; stroke-width: 3; }
.p-net .node:nth-child(even) circle.ring { stroke: #b69cff; }
.p-net .node.baton circle.ring { stroke: #ffb648; filter: drop-shadow(0 0 10px #ffb648); }
.p-net .node text { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: .04em; fill: #f0ecff; text-anchor: middle; }
.p-net .node text.h { font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0; fill: #a59cc9; }
.p-net .node { cursor: pointer; }
.p-net .node:hover circle.ring { stroke-width: 5; }
.p-net .track { fill: none; stroke: #251d47; stroke-width: 1.5; stroke-dasharray: 3 9; }
.p-graph .f-empty { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
.p-minigraph { display: block; width: 100%; margin: 0 auto 18px; max-width: 460px; }
.p-minigraph .node text { font-size: 13px; }

/* drip: the stream as slices */
.p-slices { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin: 12px 0 6px; }
.p-slices i { position: relative; display: block; height: 34px; border-radius: 7px 7px 3px 3px; border: 1px solid var(--p-line2); background: var(--p-bg); clip-path: polygon(0 0, 100% 0, 100% 62%, 58% 100%, 42% 100%, 0 62%); }
.p-slices i.paid { background: linear-gradient(180deg, #fff0c2, #f0cf7a 60%, #c99a2e); border-color: #f0cf7a; }
.p-slices i.next { background: linear-gradient(180deg, #ffffff, #cfe3fb); border-color: #fff; animation: p-next 1.8s ease-in-out infinite; }
.p-slices i.lost { background: repeating-linear-gradient(135deg, #3a1a20 0 6px, #25121a 6px 12px); border-color: #5c2530; }
@keyframes p-next { 50% { opacity: .55 } }
.p-slices.sm i { height: 20px; }
.p-stream { padding: 18px 20px; }
.p-stream + .p-stream { margin-top: 14px; }
.p-stream .top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.p-stream .cd { margin-left: auto; font-family: var(--font-mono); font-size: 15px; color: var(--p-acc); white-space: nowrap; }
.p-legend { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--p-dim); }
.p-legend .a { color: #f0cf7a; } .p-legend .c { color: #ff8a98; }
.p-split { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--p-bg3); margin: 4px 0 16px; }
.p-split i { display: block; height: 100%; }
.p-split .a { background: linear-gradient(90deg, #c99a2e, #f0cf7a); } .p-split .b { background: #cfe3fb; opacity: .55; } .p-split .c { background: repeating-linear-gradient(135deg, #7a2f3c 0 5px, #4a1c26 5px 10px); }
.p-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0 18px; }
@media (min-width: 640px) { .p-sum { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.p-sum > div { padding: 14px 16px; border: 1px solid var(--p-line); border-radius: 14px; background: var(--p-bg2); }

/* ---------------------------------------------------------------- phone */
@media (max-width: 519px) {
  header.lg\:hidden [data-f="ca"] { padding-left: 9px; padding-right: 9px; gap: 4px; }
  header.lg\:hidden [data-f="ca"] > span:first-child, header.lg\:hidden [data-f="ca"] > span:last-child { display: none; }
  html[data-page="index"] header.lg\:hidden [data-f="ca"] { display: none; }
  .p-links .row { grid-template-columns: minmax(0, 1fr) auto; } .p-links .row .bar { display: none; }
}
@media (max-width: 420px) { .p-cax > * { padding-left: 12px; padding-right: 12px; } }
@media (prefers-reduced-motion: reduce) { .f-toast, .p-skel, .p-slices i.next { animation: none } }

.p-wide { max-width: 980px; }

[data-f="feed"] > .f-empty, [data-f="c:feed"] > .f-empty, [data-f="passes"] > .f-empty { padding: 72px 12px; }

main .grid > * { min-width: 0; }
.p-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (min-width: 640px) { .p-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
.p-tiles .num { font-size: clamp(20px, 1.9vw, 27.5px); overflow-wrap: anywhere; }

html[data-page="index"] .p-top { display: none !important; }

html[data-page="coin"] main section h1.display { font-size: clamp(32px, 4vw, 56px) !important; line-height: 1; }
html[data-page="register"] main section h1.display, html[data-page="drips"] main section h1.display { font-size: clamp(38px, 5vw, 68px) !important; }
