/* Self-hosted so no visitor data goes to Google. Hanken Grotesk, SIL Open Font License 1.1. */
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --porcelain: #E9E9EE;
  --ink: #17121A;
  --slate: #68636E;
  --hairline: rgba(23, 18, 26, .13);
  --hairline-strong: rgba(23, 18, 26, .26);
  --blood: #8E0F2B;
  --blood-hover: #A3132F;
  --rose: #BE4A63;
  --plasma: #D9B65C;
  --serum: #C9C8D0;
  --error: #8E0F2B;
  --ok: #1D6B45;
  --out: cubic-bezier(.23, 1, .32, 1);
  --text: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --display: var(--text);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--porcelain); scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); font: 400 16px/1.55 var(--text); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
::selection { background: var(--blood); color: #fff; }
:focus-visible { outline: 2px solid var(--blood); outline-offset: 2px; }
main:focus { outline: 0; }
.muted { color: var(--slate); }
.defs { position: absolute; width: 0; height: 0; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 40; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 8px; }

/* header: the only glass that is always on, content really passes behind it */
.banner { padding: 7px 20px; font-size: 14px; text-align: center; color: var(--porcelain); background: var(--ink); }
.top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--hairline); background: rgba(233, 233, 238, .68); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); }
.top-in { display: flex; align-items: center; gap: 28px; max-width: 1180px; margin: 0 auto; padding: 10px 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font: 700 21px/1 var(--display); letter-spacing: -.03em; text-decoration: none; }
.brand img { border-radius: 6px; }
#nav { display: flex; gap: 4px; margin-right: auto; }
#nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; color: var(--slate); text-decoration: none; transition: color 150ms ease; }
#nav a[aria-current] { color: var(--ink); font-weight: 500; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; color: #fff; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; background: var(--blood); border: 1px solid var(--blood); border-radius: 8px; transition: transform 160ms var(--out), background-color 150ms ease; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { cursor: progress; opacity: .7; }
.btn.quiet { color: var(--ink); background: transparent; border-color: var(--hairline-strong); }
.text-btn { display: inline-flex; align-items: center; min-height: 28px; padding: 0 6px; color: var(--slate); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; background: none; border: 0; border-radius: 4px; }

main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px 96px; }
.intro { padding: 58px 0 46px; }
.intro h1 { font-size: clamp(44px, 7.4vw, 94px); line-height: 1; letter-spacing: -.045em; }
.intro p { max-width: 34em; margin-top: 18px; font-size: 19px; line-height: 1.45; color: #3a3540; }
.intro .totals { margin-top: 10px; font-size: 15px; color: var(--slate); }
.enter { animation: enter 420ms var(--out) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* the rack */
.rack { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 8px; margin: 0 -24px; padding: 8px 24px 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; border-bottom: 1px solid var(--hairline-strong); }
.rack::-webkit-scrollbar { display: none; }
.slot { position: relative; display: flex; flex-direction: column; min-width: 0; padding-bottom: 18px; text-decoration: none; scroll-snap-align: start; border-radius: 10px; }
.slot .vial { display: block; width: 100%; max-width: 124px; height: auto; margin: 0 auto; transition: transform 200ms var(--out); }
.slot-name { margin-top: 6px; font: 600 17px/1.2 var(--display); letter-spacing: -.015em; text-align: center; overflow-wrap: break-word; }
.rack-wrap { position: relative; }
.drop-coin { position: absolute; left: 0; top: 0; z-index: 2; width: 28px; height: 28px; font-size: 12px; pointer-events: none; box-shadow: 0 4px 10px -3px rgba(23, 18, 26, .5); }
.slot-pot { margin-top: 3px; font-size: 14px; text-align: center; color: var(--slate); }
.slot.ghost { pointer-events: none; opacity: .5; }

/* the vial */
.vial { overflow: visible; }
.liquid { transition: transform 1100ms var(--out); will-change: transform; }
.stratum { transition: transform 280ms var(--out); }
.c-pot { fill: var(--blood); }
.c-sire { fill: var(--rose); }
.c-you { fill: var(--plasma); }
.c-plat { fill: var(--serum); }
.wave { animation: wave 5200ms linear infinite; }
.wave path:first-child { fill: var(--blood); }
.wave path:last-child { fill: none; stroke: #C42A4C; stroke-width: 1.5; }
@keyframes wave { to { transform: translateX(-120px); } }
.ripple { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.scrub .liquid { transition: none; }
@keyframes slosh { 0% { transform: rotate(0); } 25% { transform: rotate(-2.4deg); } 60% { transform: rotate(1.4deg); } 100% { transform: rotate(0); } }
.bubble { fill: rgba(255, 255, 255, .5); animation: bubble 2600ms linear infinite; animation-delay: calc(var(--b) * 820ms); }
@keyframes bubble { from { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } to { opacity: 0; transform: translateY(-72px); } }

/* table */
.bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 54px 0 8px; }
.bar h2 { font-size: 34px; line-height: 1.1; }
.search { display: flex; align-items: center; gap: 10px; color: var(--slate); font-size: 14px; }
.search input { width: 190px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 12px 10px 0; font-size: 14px; font-weight: 500; color: var(--slate); text-align: left; white-space: nowrap; border-bottom: 1px solid var(--hairline-strong); }
td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.n { text-align: right; padding-right: 0; padding-left: 12px; white-space: nowrap; }
th.n .sort { flex-direction: row-reverse; }
.sort { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0; color: inherit; font-weight: 500; cursor: pointer; background: none; border: 0; border-radius: 4px; }
th[aria-sort] .sort { color: var(--ink); }
.caret { width: 8px; height: 8px; opacity: 0; transition: transform 160ms var(--out), opacity 150ms ease; }
th[aria-sort] .caret { opacity: 1; }
th[aria-sort="ascending"] .caret { transform: rotate(180deg); }
tr.link { position: relative; transition: background-color 120ms ease; }
.row-link { font-size: 17px; font-weight: 500; text-decoration: none; overflow-wrap: break-word; }
.row-link::after { content: ""; position: absolute; inset: 0; }
.coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.coin b { font-weight: 500; overflow-wrap: anywhere; }
.coin small { display: block; font-size: 14px; color: var(--slate); line-height: 1.3; overflow-wrap: anywhere; }
.logo { flex: none; display: grid; place-items: center; width: 36px; height: 36px; font-weight: 600; font-size: 15px; color: #fff; object-fit: cover; background: var(--slate); border-radius: 50%; }
.logo.lg { width: 60px; height: 60px; font-size: 24px; }
.flag { display: inline-block; margin-left: 6px; padding: 0 7px; font-size: 13px; line-height: 21px; color: #fff; vertical-align: 1px; background: var(--ink); border-radius: 4px; }
.flag.sim { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.outlinks { display: flex; justify-content: flex-end; gap: 12px; font-size: 14px; color: var(--slate); white-space: nowrap; }

.empty { padding: 44px 0; max-width: 34em; }
.empty h3 { font: 600 26px/1.2 var(--display); letter-spacing: -.025em; }
.empty p { margin: 6px 0 16px; color: var(--slate); }

/* scroll story: a real sequence, so numbered steps are honest here */
.story { position: relative; height: 300vh; margin-top: 64px; }
.story-pin { position: sticky; top: 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; min-height: calc(100vh - 96px); }
.story h2 { margin-bottom: 26px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -.04em; }
.story ol { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.story li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; opacity: .3; transition: opacity 220ms ease; }
.story li.on { opacity: 1; }
.story li > span { font-weight: 600; color: var(--blood); }
.story li h3 { font-size: 19px; }
.story li p { margin-top: 2px; color: #3a3540; }
.scene { display: block; width: 100%; height: auto; max-height: calc(100vh - 130px); overflow: visible; }
.scene text { font: 600 15px var(--text); letter-spacing: -.01em; fill: var(--ink); }
.pipe { fill: none; stroke: var(--blood); stroke-width: 5; stroke-linecap: round; }
.pipe-back { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 11; stroke-linecap: round; }
.pipe-edge { fill: none; stroke: rgba(23, 18, 26, .22); stroke-width: 12.5; stroke-linecap: round; }
.ember { fill: #C8552F; }

/* coven */
.stage { position: relative; display: grid; grid-template-columns: 236px minmax(0, 1fr); align-items: start; padding-top: 22px; }
.stage .vial { display: block; width: 100%; height: auto; }
.sheet { position: relative; padding: 34px 36px 32px; background: rgba(255, 255, 255, .42); border: 1px solid rgba(255, 255, 255, .78); border-radius: 22px; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 30px 60px -36px rgba(23, 18, 26, .42); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
.stage .sheet { margin: 42px 0 0 -84px; }
.sheet h1 { font-size: clamp(44px, 6.6vw, 84px); line-height: 1; overflow-wrap: anywhere; }
.sheet .say { max-width: 36em; margin-top: 12px; font-size: 18px; line-height: 1.45; }
.sheet-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.lead { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.lead-name { font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
dl.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 24px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hairline); }
dt { font-size: 14px; color: var(--slate); }
dd { overflow-wrap: anywhere; }
.addr { display: inline-flex; align-items: center; gap: 2px; margin-left: -1px; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: var(--slate); }

/* launch */
.page-title { padding: 52px 0 6px; font-size: clamp(44px, 6.6vw, 76px); line-height: 1; }
.page-sub { max-width: 34em; font-size: 18px; color: #3a3540; }
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; margin-top: 34px; }
form { display: grid; gap: 22px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .as-label { font-weight: 500; }
.req { color: var(--blood); }
.opt { color: var(--slate); font-weight: 400; }
.hint { font-size: 14px; color: var(--slate); }
.err { font-size: 14px; font-weight: 500; color: var(--error); }
input[type="text"], input[type="url"], textarea { width: 100%; min-height: 46px; padding: 10px 12px; font: 400 16px/1.4 var(--text); color: var(--ink); background: rgba(255, 255, 255, .55); border: 1px solid var(--hairline-strong); border-radius: 8px; transition: border-color 150ms ease, background-color 150ms ease; }
input::placeholder, textarea::placeholder { color: #807b86; }
input[type="text"]:focus-visible, input[type="url"]:focus-visible, textarea:focus-visible { background: #fff; border-color: var(--blood); outline-width: 1px; outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--error) !important; }
textarea { min-height: 84px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dropzone { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px dashed var(--hairline-strong); border-radius: 8px; transition: border-color 150ms ease, background-color 150ms ease; }
.dropzone.over { background: rgba(255, 255, 255, .6); border-color: var(--blood); }
.dropzone:focus-within { outline: 2px solid var(--blood); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blood); }
.status { font-size: 15px; overflow-wrap: anywhere; }
.status.err { font-weight: 500; }
.status.good { color: var(--ok); font-weight: 500; }
.status a { color: inherit; }

.side { position: sticky; top: 92px; }
.preview { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 8px; align-items: center; padding: 22px 24px 22px 10px; }
.preview .vial { display: block; width: 100%; height: auto; }
.preview h3 { margin-bottom: 12px; }
.legend { display: grid; gap: 11px; }
.legend div { display: grid; grid-template-columns: 11px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; font-size: 15px; line-height: 1.3; }
.legend i { width: 11px; height: 11px; border-radius: 3px; transform: translateY(1px); }
.legend i.c-pot { background: var(--blood); } .legend i.c-sire { background: var(--rose); } .legend i.c-you { background: var(--plasma); } .legend i.c-plat { background: var(--serum); }
.side-note { margin-top: 14px; padding: 0 2px; font-size: 14px; color: var(--slate); }
.coin-preview { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 0 2px; min-height: 60px; }
.coin-preview b { display: block; font-size: 19px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }

/* rules */
.prose { max-width: 37em; margin-top: 30px; }
.prose h2 { margin: 36px 0 6px; font-size: 28px; line-height: 1.15; }
.prose p + p { margin-top: 10px; }
.split-table { margin-top: 10px; }
.split-table td, .split-table th { padding-top: 9px; padding-bottom: 9px; }
.split-table td:first-child { white-space: nowrap; }
.dropzone > div:empty { display: none; }

.legal-tabs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.legal-tabs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--slate); text-decoration: none; }
.legal-tabs a[aria-current] { color: var(--ink); font-weight: 600; }
.prose ul { margin: 12px 0; padding-left: 20px; }
.prose li + li { margin-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose .updated { margin-top: 32px; font-size: 14px; color: var(--slate); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 0 16px; max-width: 1132px; margin: 10px auto 0; }
.legal-nav a { display: inline-flex; align-items: center; min-height: 32px; }
.foot { padding: 26px 24px 32px; font-size: 14px; color: var(--slate); border-top: 1px solid var(--hairline); }
.foot p { max-width: 1132px; margin: 0 auto; }
#keeperMode:not(:empty) { margin-top: 5px; color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; padding: 9px 14px; font-size: 15px; color: #fff; background: var(--ink); border-radius: 8px; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity 150ms ease, transform 200ms var(--out); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (hover: hover) and (pointer: fine) {
  #nav a:hover { color: var(--ink); }
  .btn:hover:not(:disabled) { background: var(--blood-hover); }
  .btn.quiet:hover:not(:disabled) { background: rgba(255, 255, 255, .5); }
  .slot:hover .vial { animation: slosh 720ms var(--out); transform-origin: 50% 90%; }
  tr.link:hover { background: rgba(255, 255, 255, .42); }
  a:hover { text-decoration-thickness: 2px; }
  .text-btn:hover, .outlinks a:hover { color: var(--ink); }
  .sort:hover { color: var(--ink); }
}

@media (max-width: 980px) {
  .story-pin { grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: center; }
  .scene { max-height: 46vh; order: -1; }
  .story h2 { display: none; }
  .story ol { gap: 8px; }
  .story li:not(.on) { display: none; }
  .launch { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .side { position: static; order: -1; }
  .stage { grid-template-columns: 190px minmax(0, 1fr); }
  .stage .sheet { margin: 30px 0 0 -70px; padding: 26px 24px; }
}
@media (max-width: 680px) {
  .top-in { gap: 6px; padding: 6px 14px; }
  .brand { font-size: 22px; gap: 7px; }
  .brand img { width: 22px; height: 22px; }
  #nav a { padding: 0 7px; font-size: 15px; }
  .btn { padding: 0 13px; }
  .top .btn { font-size: 15px; }
  main { padding: 0 16px 72px; }
  .intro { padding: 36px 0 22px; }
  .intro p { font-size: 17px; }
  .rack { grid-auto-columns: 118px; margin: 0 -16px; padding: 4px 16px 0; }
  .slot-name { font-size: 16px; }
  .row-link { font-size: 16px; }
  .side .coin-preview, .side .side-note:last-child { display: none; }
  .side .sheet.preview .vial { max-height: 230px; }
  .hide-sm { display: none; }
  .search { width: 100%; }
  .search input { flex: 1; width: auto; }
  .stage { display: block; padding-top: 12px; }
  .stage > .vial { width: 170px; margin: 0 auto -150px; }
  .stage .sheet { margin: 0; padding: 22px 20px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .preview { grid-template-columns: 96px minmax(0, 1fr); padding: 18px 16px 18px 6px; }
  .outlinks { justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 440px) {
  .hide-xs { display: none; }
  .brand img { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .enter, .bubble, .wave, .slot:hover .vial { animation: none; }
  .bubble { opacity: 0; }
  .story { height: auto; }
  .story-pin { position: static; min-height: 0; }
  .story li { opacity: 1; display: grid !important; }
  .liquid, .stratum, .slot .vial, .btn, .caret, .toast { transition-duration: 1ms; }
}
