/* CRYPT — candlelit darkness, brass, and one bright colour: blood. */
:root {
  --night: #0d0508;
  --vein: #1a0a0f;
  --oxblood: #4a0912;
  --arterial: #d4152d;
  --brass: #c19a5b;
  --brass-hi: #f1d9a0;
  --bone: #efe3cc;
  --ash: #a3938a;
  --line: rgba(193, 154, 91, .26);
  --line-soft: rgba(193, 154, 91, .13);
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1480px;
  --serif: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --black: 'Grenze Gotisch', 'UnifrakturMaguntia', 'Old English Text MT', serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --corner: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'><g fill='none' stroke='%23c19a5b'><path d='M2 58V24C2 12 12 2 24 2H58' stroke-width='1.2'/><path d='M8 58V28C8 17 17 8 28 8H58' stroke-width='.6' opacity='.6'/><path d='M14 14c6 0 10 4 10 10-4-2-8-4-10-10zM14 14c0 6 4 10 10 10' stroke-width='.9'/></g><circle cx='14' cy='14' r='2.2' fill='%23c19a5b'/></svg>");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(212, 21, 45, .55); color: #fff; }
input, textarea { caret-color: var(--arterial); }
html { scrollbar-color: #5a1220 #0d0508; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #0d0508; }
::-webkit-scrollbar-thumb { background: linear-gradient(#6e0c1c, #3a0610); border: 2px solid #0d0508; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 2px; }
.num { font-variant-numeric: lining-nums tabular-nums; }
h1, h2, h3 { margin: 0; font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color .2s, border-color .2s, background-color .2s;
}
.btn-lg { padding: 14px 26px; font-size: 19px; }
.btn-sm { padding: 5px 12px; font-size: 15px; }
.btn-blood {
  color: #fff4ec;
  background: linear-gradient(180deg, #a30d22, #6e0515);
  border-color: rgba(255, 90, 105, .35);
  box-shadow: inset 0 1px 0 rgba(255, 190, 190, .35), 0 10px 26px -12px rgba(212, 21, 45, .8);
}
/* hover: fresh blood rises inside the button */
.btn-blood::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  background:
    radial-gradient(14px 9px at 12% 0, #e0122f 98%, transparent) 0 0 / 38px 12px repeat-x,
    linear-gradient(#e0122f, #b30c24);
  background-position: 0 0, 0 9px;
  background-repeat: repeat-x, no-repeat;
  transform: translateY(100%);
  transition: transform .45s var(--ease);
}
.btn-blood:hover::before, .btn-blood:focus-visible::before { transform: translateY(0); animation: slosh 1.2s linear infinite; }
@keyframes slosh { to { background-position: 38px 0, 0 9px; } }
.btn-gold {
  color: #1a0c06;
  background: linear-gradient(135deg, #f6dea0, #c9a463 45%, #ecd08f 60%, #b58b45);
  border-color: rgba(255, 236, 190, .5);
  box-shadow: inset 0 1px 0 rgba(255, 250, 230, .6), 0 10px 26px -14px rgba(193, 154, 91, .8);
}
.btn-gold:hover { background: linear-gradient(135deg, #fff0c2, #d4ad6a 45%, #f3d999 60%, #ad843d); }
.btn-ghost { color: var(--bone); background: rgba(239, 227, 204, .03); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brass); background: rgba(193, 154, 91, .08); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  padding: 0 var(--gutter);
  transition: background-color .35s, border-color .35s, height .35s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  height: 64px;
  background: rgba(13, 5, 8, .84);
  border-bottom-color: var(--line-soft);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: block; flex: none; border-radius: 50%; transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); filter: drop-shadow(0 0 7px rgba(224, 16, 46, .55)); }
.brand-word { font-family: var(--black); font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: .01em; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--ash); text-decoration: none; font-size: 18px; transition: color .2s; }
.nav-links a:hover { color: var(--bone); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.count-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line-soft);
  border-radius: 40px;
  text-decoration: none;
  font-size: 16px;
  color: var(--ash);
}
.count-pill b { color: var(--bone); font-weight: 600; font-variant-numeric: tabular-nums; }
.count-pill-coin { width: 28px; height: 28px; display: block; border-radius: 50%; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 116px var(--gutter) 128px;
}
.hero-copy { position: relative; z-index: 4; }
.bleed {
  font-family: var(--black);
  font-weight: 800;
  color: #c8102e;
  text-shadow: 0 3px 0 #4a0010, 0 0 42px rgba(212, 21, 45, .35);
}
.bleed .ln { display: block; }
.bleed.fx { color: transparent; text-shadow: none; }
#hero-title { font-size: clamp(4.4rem, 10.6vw, 10.4rem); line-height: .86; margin: 0 0 30px -.04em; }
.bleed-canvas { position: absolute; pointer-events: none; z-index: 5; }
.hero-sub { max-width: 31em; margin: 0 0 34px; font-size: clamp(19px, 1.45vw, 22px); color: rgba(239, 227, 204, .86); }
.hero-sub b { color: var(--bone); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tally { margin: 38px 0 0; font-style: italic; color: var(--ash); font-size: 19px; }
.hero-tally b { font-style: normal; font-weight: 600; color: var(--bone); }

.altar { position: relative; width: min(100%, 660px); aspect-ratio: 1; justify-self: center; --beat: 1; --gulp: 0; }
.hero-veins { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.count-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 86%; aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(212, 21, 45, .5), rgba(212, 21, 45, .12) 42%, rgba(212, 21, 45, 0) 66%);
  opacity: .55;
  will-change: opacity, scale;
  pointer-events: none;
}
.altar .count-coin {
  position: absolute;
  left: 50%; top: 50%;
  width: 50%;
  translate: -50% -50%;
  z-index: 2;
}
.count-coin { aspect-ratio: 1; perspective: 1000px; will-change: scale; }
.count-coin .spin { position: relative; width: 100%; height: 100%; animation: wobble 11s ease-in-out infinite; }
.count-svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .65)); }
.count-eyes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.count-band { font-family: var(--black); font-weight: 700; }
/* moving parts sit outside the svg so the medal is rasterized once */
.coin-sheen { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; pointer-events: none; mix-blend-mode: soft-light; }
.coin-sheen::before {
  content: '';
  position: absolute;
  top: -25%; bottom: -25%; left: 0;
  width: 26%;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 230, .9), transparent);
  transform: rotate(24deg) translateX(-180%);
  animation: sheen 7s ease-in-out infinite;
}
.coin-drop {
  position: absolute;
  left: 54.3%; top: 65.6%;
  width: 1.5%; aspect-ratio: 3 / 4;
  border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
  background: radial-gradient(circle at 35% 60%, #ff8a96 0 12%, #e0102e 30%, #7a0016 100%);
  transform-origin: 50% 0;
  animation: fangdrop 4.2s ease-in infinite;
  pointer-events: none;
}
@keyframes wobble { 0%, 100% { transform: rotateY(-13deg) rotateX(3deg); } 50% { transform: rotateY(13deg) rotateX(-3deg); } }
@keyframes sheen { 0%, 55% { transform: rotate(24deg) translateX(-180%); } 85%, 100% { transform: rotate(24deg) translateX(560%); } }
@keyframes fangdrop {
  0% { transform: scale(.2); opacity: 0; }
  12% { opacity: 1; }
  70% { transform: scale(1) translateY(0); }
  82% { transform: scale(.9, 1.2) translateY(3px); opacity: 1; }
  100% { transform: scale(.7, 1.3) translateY(1600%); opacity: 0; }
}

.altar-victims { position: absolute; inset: 0; }
.seat {
  position: absolute;
  left: 0; top: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: none;
  will-change: transform;
  --tint: #c19a5b;
}
.seat img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(193, 154, 91, .4), 0 8px 18px rgba(0, 0, 0, .7), 0 0 20px -6px var(--tint); transition: box-shadow .3s; }
.seat span { font-size: 13px; font-weight: 600; color: var(--bone); opacity: .85; white-space: nowrap; text-shadow: 0 1px 6px #000; }
.seat-rune { position: absolute; top: 36px; right: -6px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #0b0709; box-shadow: 0 0 0 1px rgba(193, 154, 91, .45); }
.seat-rune:empty { display: none; }
.seat-rune .rune-svg { width: 100%; height: 100%; }
.seat:hover img, .seat:focus-visible img { box-shadow: 0 0 0 1px var(--tint), 0 0 30px -2px var(--tint); }
.altar-pops { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.pop {
  position: absolute;
  translate: -50% 0;
  font-style: italic;
  font-size: 15px;
  color: var(--brass-hi);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
  animation: pop 1.7s var(--ease) forwards;
  white-space: nowrap;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px); } 15% { opacity: 1; } to { opacity: 0; transform: translateY(-46px); } }

/* live feed of bites along the bottom of the hero */
.bites {
  position: absolute;
  inset: auto 0 0;
  z-index: 6;
  height: 54px;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(0deg, rgba(10, 4, 6, .94), rgba(10, 4, 6, .62));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.bites-track { display: flex; align-items: center; height: 100%; width: max-content; will-change: transform; }
.bite {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  font-size: 16px;
  color: var(--ash);
  white-space: nowrap;
  border-right: 1px solid var(--line-soft);
}
.bite img { width: 24px; height: 24px; border-radius: 50%; }
.bite b { color: var(--bone); font-weight: 600; }
.bite em { font-style: normal; color: #ff5a6d; font-variant-numeric: tabular-nums; }

/* ---------- section scaffolding ---------- */
section { position: relative; }
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: end;
  gap: 18px 56px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sec-head h2, .count-info h2, .raise-copy h2 {
  font-family: var(--black);
  font-weight: 700;
  font-size: clamp(3.2rem, 6.4vw, 6rem);
  line-height: .9;
  color: var(--bone);
}
.sec-head p { max-width: 34em; margin: 0 0 6px; color: var(--ash); font-size: 20px; }

/* ---------- graves (the board) ---------- */
.graves {
  padding: 150px 0 140px;
  background:
    radial-gradient(1100px 420px at 50% 0, rgba(74, 9, 18, .4), transparent 70%),
    var(--night);
}
.board-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 30px;
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 56px auto 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 1480px) { .board-bar { margin-left: var(--gutter); margin-right: var(--gutter); } }
.tabs { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.tabs button {
  padding: 12px 0;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ash);
  font-size: 20px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.tabs button:hover { color: var(--bone); }
.tabs button[aria-selected="true"] { color: var(--bone); border-bottom-color: var(--arterial); }
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ash);
}
.search svg { width: 18px; height: 18px; flex: none; }
.search input { width: 230px; border: 0; background: none; font-size: 17px; color: var(--bone); outline: none; }
.search:focus-within { border-color: var(--brass); }
.search input::placeholder, .raise-form ::placeholder { color: #9a8a82; }
.heaviest {
  max-width: var(--max);
  min-height: 1.6em;
  margin: 18px auto 34px;
  padding: 0 var(--gutter);
  color: var(--ash);
  font-style: italic;
  font-size: 18px;
}
.heaviest img { display: inline-block; width: 22px; height: 22px; border-radius: 50%; vertical-align: -5px; margin: 0 4px; }
.heaviest b { color: var(--bone); font-style: normal; font-weight: 600; }
.heaviest button { padding: 0; border: 0; background: none; color: var(--bone); font-weight: 600; font-style: normal; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 36px 22px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.grid-empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--ash); font-style: italic; }
.grid-more { display: flex; justify-content: center; margin-top: 48px; }

/* tombstones */
.grave {
  position: relative;
  padding: 24px 18px 18px;
  text-align: center;
  background: linear-gradient(180deg, #241917 0%, #171010 52%, #100a0b 100%);
  border-radius: 50% 50% 12px 12px / 100px 100px 12px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 235, 210, .07), inset 0 -24px 40px rgba(0, 0, 0, .4), 0 22px 34px -20px rgba(0, 0, 0, .95);
  cursor: pointer;
  isolation: isolate;
}
.grave::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(193, 154, 91, .15);
  border-radius: 50% 50% 7px 7px / 92px 92px 7px 7px;
  pointer-events: none;
}
.grave::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--noise);
  opacity: .1;
  pointer-events: none;
}
.grave.mine { box-shadow: inset 0 1px 0 rgba(255, 235, 210, .07), 0 0 0 1px rgba(241, 217, 160, .4), 0 0 40px -6px rgba(212, 21, 45, .45); }
.grave-hit { position: absolute; inset: 0; z-index: 2; border: 0; background: none; border-radius: inherit; }
.grave-sigil { position: relative; width: 88px; height: 88px; margin: 4px auto 12px; }
.grave-sigil img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(193, 154, 91, .4), 0 10px 20px rgba(0, 0, 0, .7); }
.grave-name { font-size: 22px; font-weight: 600; line-height: 1.15; text-shadow: 0 1px 0 #000; overflow-wrap: anywhere; }
.grave-tkr { margin: 3px 0 0; color: var(--brass); font-size: 16px; font-weight: 600; }
.grave-meta { margin: 1px 0 0; color: var(--ash); font-size: 14px; }
.grave-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.7em;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--ash);
  font-style: italic;
  font-size: 16px;
  line-height: 1.35;
}
.grave-mc { display: flex; align-items: baseline; justify-content: space-between; padding-top: 10px; border-top: 1px solid rgba(193, 154, 91, .13); text-align: left; }
.grave-mc span { color: var(--ash); font-size: 14px; }
.grave-mc b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; transition: color .6s; }
.grave-mc b.up { color: var(--brass-hi); transition: none; }
.grave-mc b.down { color: #ff4d62; transition: none; }
.grave-spark { display: block; width: 100%; height: 30px; margin: 4px 0 8px; overflow: visible; }
.grave-curve { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 8px; font-size: 14px; color: var(--ash); font-variant-numeric: tabular-nums; }
.grave-curve svg { width: 16px; height: 16px; }
.vial { position: relative; height: 6px; border-radius: 6px; background: rgba(255, 240, 220, .06); box-shadow: inset 0 0 0 1px rgba(193, 154, 91, .14); overflow: hidden; }
.vial i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #5c0313, #c8102e); box-shadow: inset 0 1px 0 rgba(255, 170, 170, .5); transition: width .6s var(--ease); }
.vial.full i { background: linear-gradient(90deg, #9a7232, #f1d9a0); }
.grave-bled { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: 14px; color: var(--ash); }
.grave-bled svg { width: 10px; height: 12px; fill: var(--arterial); }
.grave-bled b { color: var(--bone); font-weight: 600; font-variant-numeric: tabular-nums; }

/* the bite: two punctures and a run of blood, on hover */
.fangmarks { position: absolute; top: 14px; right: 18%; width: 30px; height: 40px; opacity: 0; pointer-events: none; z-index: 3; }
.fangmarks i { position: absolute; top: 0; width: 6px; height: 6px; border-radius: 50%; background: #2a0006; box-shadow: 0 0 0 1.5px #8a0a1c, 0 0 8px rgba(212, 21, 45, .7); }
.fangmarks i:first-child { left: 2px; }
.fangmarks i:last-child { left: 20px; top: 3px; }
.fangmarks i::after { content: ''; position: absolute; left: 1.5px; top: 4px; width: 3px; height: 0; border-radius: 0 0 3px 3px; background: linear-gradient(#a3001c, #e0102e); }
.grave:hover .fangmarks, .grave:focus-within .fangmarks { opacity: 1; animation: bite .3s var(--ease); }
.grave:hover .fangmarks i::after, .grave:focus-within .fangmarks i::after { animation: run 1.6s .2s ease-in forwards; }
.grave:hover .fangmarks i:last-child::after { animation-delay: .45s; }
@keyframes bite { from { transform: scale(1.8); opacity: 0; } }
@keyframes run { to { height: 26px; } }

.grave.rising { animation: rise 1.1s var(--ease) both; }
@keyframes rise {
  from { clip-path: inset(100% 0 0 0 round 50% 50% 12px 12px / 100px 100px 12px 12px); transform: translateY(46px); filter: brightness(2) sepia(1) hue-rotate(-30deg); }
  60% { filter: none; }
  to { clip-path: inset(0 0 0 0 round 50% 50% 12px 12px / 100px 100px 12px 12px); transform: none; }
}

/* ---------- feeding ---------- */
.feeding { padding: 150px 0 120px; background: linear-gradient(180deg, var(--night), #12060b 50%, var(--night)); }
.rite { position: relative; max-width: 1180px; margin: 90px auto 0; padding: 0 var(--gutter); }
.rite-tube, .rite-blood { position: absolute; left: 0; top: 0; pointer-events: none; }
.rite-tube { overflow: visible; }
.rite-steps { list-style: none; margin: 0; padding: 0; position: relative; z-index: 2; }
.rite-steps li { width: calc(50% - 90px); min-height: 230px; margin-bottom: 70px; }
.rite-steps li .rite-num, .rite-steps li h3 { opacity: .42; transition: opacity .8s; }
.rite-steps li.lit .rite-num, .rite-steps li.lit h3 { opacity: 1; }
.rite-steps li:nth-child(odd) { margin-right: auto; text-align: right; }
.rite-steps li:nth-child(even) { margin-left: auto; }
.rite-num { display: block; font-size: 60px; font-weight: 500; line-height: 1; letter-spacing: .05em; color: var(--brass); }
.rite-steps h3 { margin: 6px 0 10px; font-size: 32px; font-weight: 600; line-height: 1.15; }
.rite-steps p { margin: 0; color: var(--ash); font-size: 20px; }
.rite-steps li:nth-child(odd) p { margin-left: auto; }
.rite-steps p { max-width: 24em; }

/* ---------- the Count ---------- */
.count-sec {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  grid-template-areas: "portrait info" "vitals vitals";
  align-items: center;
  gap: 70px 80px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 150px var(--gutter);
}
.count-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(760px 620px at 26% 32%, rgba(122, 6, 24, .3), transparent 70%);
}
.count-portrait { grid-area: portrait; position: relative; }
.count-coin-lg { width: min(100%, 540px); margin: 0 auto; }
.count-info { grid-area: info; }
.lede { max-width: 30em; margin: 22px 0 36px; font-size: 22px; color: rgba(239, 227, 204, .86); }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; margin: 0 0 36px; }
.figures div { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.figures dt { color: var(--ash); font-size: 17px; }
.figures dd { margin: 2px 0 0; font-size: 36px; font-weight: 500; line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; }
.figures small { font-size: 17px; color: var(--ash); }
.ca { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 3px; background: rgba(239, 227, 204, .02); }
.ca-label { color: var(--ash); font-size: 16px; }
.ca code { flex: 1; min-width: 0; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 15px; color: var(--bone); overflow-wrap: anywhere; }
.vitals { grid-area: vitals; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; }
.vital {
  position: relative;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(30, 11, 17, .92), rgba(13, 5, 8, .92));
}
.vital::before, .vital::after { content: ''; position: absolute; width: 46px; height: 46px; background: var(--corner) no-repeat center / contain; opacity: .7; pointer-events: none; }
.vital::before { top: 6px; left: 6px; }
.vital::after { right: 6px; bottom: 6px; transform: rotate(180deg); }
#pulse { display: block; width: 100%; height: 210px; }
.vital-pulse figcaption { margin-top: 12px; color: var(--ash); font-size: 18px; }
.vital-pulse figcaption b { color: var(--bone); font-size: 30px; font-weight: 500; margin-right: 6px; }
.vital-flask { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 16px; }
#flask { display: block; width: 150px; height: 220px; }
.vital-flask figcaption { display: grid; gap: 4px; color: var(--ash); font-size: 18px; }
.vital-flask figcaption b { color: var(--bone); font-size: 34px; font-weight: 500; line-height: 1.1; }
.feast-in time { color: var(--brass-hi); font-variant-numeric: tabular-nums; }

/* ---------- raise ---------- */
.raise {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy circle" "form circle";
  align-content: center;
  gap: 40px 80px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 150px var(--gutter);
}
.raise::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(640px 640px at 75% 50%, rgba(122, 6, 24, .26), transparent 70%);
}
.raise-copy { grid-area: copy; align-self: end; }
.raise-copy p { max-width: 30em; margin: 22px 0 0; color: var(--ash); font-size: 20px; }
.raise-form { grid-area: form; display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 18px; align-self: start; }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field > label { color: var(--ash); font-size: 16px; }
.raise-form input:not([type="file"]), .raise-form textarea, .amt {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(239, 227, 204, .03);
  color: var(--bone);
  font-size: 19px;
  outline: none;
  transition: border-color .2s, background-color .2s;
}
.raise-form textarea { resize: vertical; min-height: 54px; line-height: 1.4; }
.raise-form input:focus, .raise-form textarea:focus { border-color: var(--brass); background: rgba(239, 227, 204, .05); }
.raise-form [aria-invalid="true"] { border-color: #ff4d62 !important; }
.ticker-wrap { position: relative; }
.ticker-wrap span { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--brass); pointer-events: none; }
.ticker-wrap input { padding-left: 28px !important; text-transform: uppercase; }
.drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 3px;
  color: var(--ash);
  font-size: 16px;
  font-style: italic;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.drop:hover, .drop.over { border-color: var(--brass); background: rgba(193, 154, 91, .05); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.drop:focus-within { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
.form-error { grid-column: 1 / -1; min-height: 1.4em; margin: -4px 0 0; color: #ff6b7d; font-size: 16px; }
.raise-form .btn { grid-column: 1 / -1; justify-self: start; }

.circle { grid-area: circle; position: relative; width: min(100%, 580px); aspect-ratio: 1; justify-self: center; }
.circle-runes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.circle-runes .ring-a { animation: spin 160s linear infinite; transform-origin: 0 0; }
.circle-runes .ring-b { animation: spin 110s linear infinite reverse; transform-origin: 0 0; }
.circle-runes .runes { font-family: var(--black); font-size: 17px; fill: var(--brass); letter-spacing: 2px; }
.circle-runes .blood-trace { stroke: #e0102e; stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); filter: drop-shadow(0 0 6px rgba(224, 16, 46, .9)); }
.circle.summoning .blood-trace { transition: stroke-dashoffset 1.6s cubic-bezier(.6, 0, .3, 1); stroke-dashoffset: 0; }
.circle.summoning .ring-a, .circle.summoning .ring-b { animation-duration: 6s; }
.circle-preview { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 46%; text-align: center; }
.circle-preview img { width: 62%; aspect-ratio: 1; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(193, 154, 91, .5), 0 0 60px -6px rgba(212, 21, 45, .6); }
.circle.summoning .circle-preview img { animation: summon 1.8s var(--ease); }
@keyframes summon { 40% { transform: translateY(-14px) scale(1.06); box-shadow: 0 0 0 2px #f1d9a0, 0 0 90px 10px rgba(224, 16, 46, .9); } }
.pv-name { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.pv-tkr { margin: 2px 0 0; color: var(--brass); font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- footer ---------- */
.foot { position: relative; background: linear-gradient(180deg, var(--night), #090305); }
.foot-hungry { position: relative; display: grid; place-items: center; min-height: 78vh; padding: 120px var(--gutter) 200px; overflow: hidden; }
#foot-title { font-size: clamp(3.6rem, 9.4vw, 9.2rem); line-height: .9; text-align: center; }
.foot-hungry::after { content: ''; position: absolute; inset: auto 0 0; height: 56px; z-index: 6; background: linear-gradient(180deg, rgba(9, 3, 5, 0), rgba(9, 3, 5, .9)); pointer-events: none; }
.foot-row {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "brand links" "note note";
  align-items: center;
  gap: 22px 40px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px var(--gutter) 44px;
  border-top: 1px solid var(--line-soft);
}
.foot-row .brand { grid-area: brand; }
.foot-links { grid-area: links; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 28px; }
.foot-links a { color: var(--ash); text-decoration: none; font-size: 18px; }
.foot-links a:hover { color: var(--bone); }
.foot-note { grid-area: note; margin: 0; max-width: 46em; color: rgba(163, 147, 138, .8); font-size: 15px; }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; }
.drawer.open { visibility: visible; pointer-events: auto; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(5, 1, 3, .66); opacity: 0; transition: opacity .4s; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(560px, 100%);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 30px 40px;
  background: linear-gradient(180deg, #1a0a10, #0f0609 40%);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px rgba(0, 0, 0, .7);
  transform: translateX(100%);
  transition: transform .5s var(--ease), visibility 0s .5s;
}
.drawer.open .drawer-panel { transform: none; transition: transform .5s var(--ease); }
.drawer-x { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--bone); }
.drawer-x svg { width: 16px; height: 16px; }
.dr-head { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 18px; padding-right: 50px; }
.dr-sigil { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(193, 154, 91, .45), 0 0 50px -10px rgba(212, 21, 45, .7); }
.dr-head h2 { font-family: var(--black); font-size: 46px; font-weight: 700; line-height: .95; overflow-wrap: anywhere; }
.dr-sub { margin: 6px 0 0; color: var(--ash); font-size: 16px; }
.dr-sub b { color: var(--brass); }
.dr-desc { margin: 18px 0 0; font-style: italic; color: rgba(239, 227, 204, .85); }
.dr-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 22px 0; }
.dr-figs div { border-top: 1px solid var(--line-soft); padding-top: 8px; }
.dr-figs dt { color: var(--ash); font-size: 15px; }
.dr-figs dd { margin: 0; font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
.dr-chart { display: block; width: 100%; height: 230px; border: 1px solid var(--line-soft); border-radius: 4px; background: #0b0407; }
.dr-curve { margin: 18px 0 22px; color: var(--ash); font-size: 16px; }
.dr-curve .vial { height: 8px; margin: 8px 0 0; }
.dr-curve b { color: var(--bone); font-weight: 600; }
.dr-trade { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 18px; border: 1px solid var(--line-soft); border-radius: 4px; background: rgba(239, 227, 204, .02); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.seg button { padding: 8px 16px; border: 0; background: none; color: var(--ash); font-weight: 600; }
.seg button.on[data-side="buy"] { background: rgba(193, 154, 91, .2); color: var(--brass-hi); }
.seg button.on[data-side="sell"] { background: rgba(212, 21, 45, .22); color: #ff8090; }
.amt { display: flex; align-items: center; gap: 8px; padding: 6px 12px; }
.amt input { width: 100%; min-width: 0; border: 0; background: none; outline: none; font-size: 20px; font-variant-numeric: tabular-nums; }
.amt span { color: var(--ash); }
.amt:focus-within { border-color: var(--brass); }
.quick { grid-column: 1 / -1; display: flex; gap: 8px; }
.quick button { flex: 1; padding: 6px 0; border: 1px solid var(--line-soft); border-radius: 3px; background: none; color: var(--ash); font-variant-numeric: tabular-nums; }
.quick button:hover { color: var(--bone); border-color: var(--line); }
.dr-tithe { grid-column: 1 / -1; margin: 0; color: var(--ash); font-size: 15px; font-style: italic; }
.dr-tithe b { color: #ff6b7d; font-style: normal; font-weight: 600; }
.dr-trade .btn { grid-column: 1 / -1; }
.dr-h { margin: 28px 0 8px; font-size: 20px; font-weight: 600; }
.dr-trades { list-style: none; margin: 0; padding: 0; font-size: 16px; font-variant-numeric: tabular-nums; }
.dr-trades li { display: grid; grid-template-columns: 52px 1fr 1fr 52px; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(193, 154, 91, .08); color: var(--ash); }
.dr-trades li.new { animation: flash 1.2s ease-out; }
.dr-trades .buy { color: var(--brass-hi); }
.dr-trades .sell { color: #ff6b7d; }
.dr-trades .you { color: var(--bone); font-weight: 600; }
.dr-trades li span:last-child { text-align: right; }
@keyframes flash { from { background: rgba(212, 21, 45, .18); } }

/* ---------- chalice, flights, toast, grain ---------- */
.chalice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 16px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: rgba(18, 7, 11, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .9);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s;
}
.chalice.show, html.moon-up:not(.count-view) .chalice { transform: none; opacity: 1; }
.chalice-moon { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: none; }
.chalice-moon .moon-dial { width: 44px; height: 44px; display: block; }
.chalice-vial { display: flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.chalice-vial canvas { width: 40px; height: 52px; display: block; }
.chalice-text { display: grid; line-height: 1.15; }
.chalice-text > span { color: var(--ash); font-size: 14px; }
.chalice-text b { font-size: 18px; font-weight: 600; }
html.moon-up #vial-label { color: #ff6b7d; }
.flights { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 56; pointer-events: none; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 32px);
  padding: 12px 14px 12px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(26, 10, 15, .96);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .9);
  font-size: 17px;
  visibility: hidden;
  transform: translate(-50%, calc(100% + 40px));
  transition: transform .45s var(--ease), visibility 0s .45s;
}
.toast.show { visibility: visible; transform: translate(-50%, 0); transition: transform .45s var(--ease); }
.grain {
  position: fixed;
  inset: -100px;
  z-index: 60;
  pointer-events: none;
  background: var(--noise);
  opacity: .055;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-30px, 20px); } 40% { transform: translate(20px, -40px); }
  60% { transform: translate(-40px, -10px); } 80% { transform: translate(30px, 30px); } 100% { transform: translate(0, 0); }
}

/* ---------- intro: the fangs come out, a drop falls, blood rises and drains away ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #070305;
  /* if the script never runs, the page still opens */
  animation: intro-fallback .4s 9s forwards;
}
.intro.run { animation: none; }
@keyframes intro-fallback { to { opacity: 0; visibility: hidden; } }
.intro-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: min(560px, 120vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 21, 45, .4), rgba(212, 21, 45, .08) 45%, transparent 70%);
  opacity: 0;
}
.intro-ring {
  position: absolute;
  left: 50%; top: 50%;
  width: min(260px, 54vw); height: auto; aspect-ratio: 1;
  translate: -50% -50%;
  border: 2px solid rgba(255, 70, 90, .75);
  border-radius: 50%;
  opacity: 0;
}
.intro-stage { position: relative; opacity: 0; will-change: transform, filter, opacity; }
/* the smile in the dark; its black melts into the screen through a soft round mask */
.intro-art {
  display: block;
  width: min(560px, 88vw);
  aspect-ratio: 1;
  -webkit-mask-image: radial-gradient(circle at 50% 54%, #000 50%, transparent 71%);
  mask-image: radial-gradient(circle at 50% 54%, #000 50%, transparent 71%);
  user-select: none;
}
/* the liquid drop that forms on his chin, falls and turns into light */
.intro-blood { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; }
/* a soft white bloom swelling out of the drop, then the flash that opens the page */
.intro-bloom {
  position: fixed;
  left: 0; top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0, #fff 30%, rgba(255, 245, 240, .85) 45%, rgba(255, 235, 230, 0) 70%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
}
.intro-flash {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), #fff 0, #fffaf6 30%, #ffece8 100%);
  opacity: 0;
  pointer-events: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 104px; gap: 0; }
  .altar { width: min(100%, 560px); order: -1; margin: -10px auto 30px; }
  .moon-btn { bottom: -4%; }
  .count-sec { grid-template-columns: 1fr; grid-template-areas: "portrait" "info" "vitals"; }
  .count-coin-lg { width: min(80%, 440px); }
  .raise { grid-template-columns: 1fr; grid-template-areas: "copy" "circle" "form"; }
  .circle { width: min(100%, 460px); }
}
@media (max-width: 820px) {
  body { font-size: 18px; }
  .sec-head { grid-template-columns: 1fr; }
  .vitals { grid-template-columns: 1fr; }
  .rite-steps li, .rite-steps li:nth-child(odd), .rite-steps li:nth-child(even) { width: auto; margin: 0 0 60px 64px; text-align: left; min-height: 0; }
  .rite-steps li:nth-child(odd) p { margin-left: 0; }
  .count-pill { display: none; }
  .search { width: 100%; }
  .search input { width: 100%; }
}
@media (max-width: 560px) {
  .nav { height: 64px; }
  .nav-right .btn-blood { display: none; }
  .brand-word { font-size: 30px; }
  .brand-mark { width: 34px; height: 34px; }
  .hero-cta .btn { flex: 1; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 24px 12px; }
  .grave { padding: 20px 12px 14px; border-radius: 50% 50% 10px 10px / 70px 70px 10px 10px; }
  .grave::before { border-radius: 50% 50% 6px 6px / 64px 64px 6px 6px; }
  .grave-sigil { width: 66px; height: 66px; }
  .grave-name { font-size: 19px; }
  .grave-desc { display: none; }
  .grave-meta { font-size: 13px; }
  .grave-mc { flex-direction: column; align-items: center; gap: 0; margin-top: 10px; }
  .grave-mc b { font-size: 18px; }
  .figures dd { font-size: 28px; }
  .vital-flask { grid-template-columns: 110px 1fr; }
  #flask { width: 110px; height: 170px; }
  .raise-form { grid-template-columns: 1fr; }
  .dr-trade { grid-template-columns: 1fr; }
  .drawer-panel { padding: 24px 18px 34px; }
  .dr-head { grid-template-columns: 70px minmax(0, 1fr); }
  .dr-sigil { width: 70px; height: 70px; }
  .dr-head h2 { font-size: 36px; }
  .chalice-text > span { display: none; }
  .victim img { width: 44px; height: 44px; }
  .victim span { font-size: 12px; }
  .grave-bled > span { display: none; }
  .graves, .feeding { padding-top: 100px; padding-bottom: 90px; }
  .count-sec, .raise { padding-top: 100px; padding-bottom: 100px; gap: 44px; }
  .rite { margin-top: 56px; }
  .foot-hungry { min-height: 62vh; padding-bottom: 170px; }
  .foot-row { grid-template-columns: 1fr; grid-template-areas: "brand" "links" "note"; }
  .foot-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { display: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}

/* ---------- runes ---------- */
.rune-svg { display: block; overflow: visible; }
.rune-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rune-groove { stroke: #050203; stroke-width: 11; }
.rune-glow { stroke: var(--tint); stroke-width: 7; filter: url(#f-rune-glow); opacity: .75; }
.rune-line { stroke: var(--tint); stroke-width: 4.6; }
.rune-core { stroke: #fff6ea; stroke-width: 1.5; opacity: .7; }

/* unclaimed rune tombstones */
.rune-grave { --tint: #c19a5b; padding-top: 30px; }
.rune-face { position: relative; display: grid; place-items: center; width: 100px; height: 100px; margin: 0 auto 12px; }
.rune-face::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tint) 34%, transparent), transparent 68%);
  opacity: .5;
  transition: opacity .8s, transform .5s var(--ease);
}
.rune-big { position: relative; width: 80px; height: 80px; transition: transform .5s var(--ease), filter .5s; }
.rune-grave .grave-name { font-family: var(--black); font-size: 30px; font-weight: 700; letter-spacing: .01em; }
.rune-motto { min-height: 2.7em; margin: 6px 0 10px; color: var(--ash); font-style: italic; font-size: 16px; line-height: 1.35; }
.rune-state { margin: 0; color: color-mix(in srgb, var(--tint) 75%, var(--bone)); font-size: 14px; }
.rune-cta { margin: 12px 0 0; padding-top: 11px; border-top: 1px solid rgba(193, 154, 91, .13); color: var(--bone); font-size: 15px; font-weight: 600; }
html.moon-up .rune-face::before { opacity: 1; }
.rune-grave:hover .rune-face::before, .rune-grave:focus-within .rune-face::before { opacity: 1; transform: scale(1.18); }
.rune-grave:hover .rune-big, .rune-grave:focus-within .rune-big { transform: translateY(-4px) scale(1.06); filter: brightness(1.3); }
.rune-grave.cracking { animation: crack .7s ease-in forwards; pointer-events: none; }
@keyframes crack {
  0% { filter: brightness(2.2); }
  25% { transform: translateX(-4px) rotate(-1.2deg); }
  45% { transform: translateX(4px) rotate(1deg); }
  100% { transform: translateY(40px) scale(.96); opacity: 0; filter: blur(5px); }
}
.graves.is-empty .board-bar { display: none; }
.graves.is-empty .heaviest { margin-top: 40px; }
.summon-src { animation: summon-src 1.1s ease-out; }
@keyframes summon-src { 0% { filter: brightness(2.6) saturate(1.4); transform: scale(1.12); } 100% { filter: none; transform: none; } }

/* the rune on a coin's medallion */
.sigil-rune {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 32px;
  height: 32px;
  padding: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #2a2024, #0b0709);
  box-shadow: 0 0 0 1px rgba(193, 154, 91, .45), 0 4px 10px rgba(0, 0, 0, .6);
}
.sigil-rune .rune-svg { width: 100%; height: 100%; }

/* ---------- blood moon ---------- */
.moon-btn {
  position: absolute;
  left: 50%;
  bottom: -1%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 20px 6px 6px;
  border: 1px solid rgba(255, 90, 105, .35);
  border-radius: 40px;
  background: rgba(20, 6, 10, .8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--bone);
  text-align: left;
  translate: -50% 0;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .9), 0 0 30px -12px rgba(212, 21, 45, .7);
  transition: border-color .3s, box-shadow .3s, scale .2s;
}
.moon-btn:hover { border-color: rgba(255, 130, 140, .75); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .9), 0 0 44px -6px rgba(212, 21, 45, .95); }
.moon-btn:active { scale: .97; }
.moon-btn .moon-dial { width: 46px; height: 46px; display: block; }
.moon-btn-text { display: grid; line-height: 1.2; }
.moon-btn-text b { font-size: 17px; font-weight: 600; white-space: nowrap; }
.moon-btn-text span { color: var(--ash); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
html.moon-up .moon-btn { border-color: #ff4d62; box-shadow: 0 0 60px -4px rgba(255, 40, 70, .95); }
html.moon-up .moon-btn-text span { color: #ff8a97; }
.moon-veil {
  position: fixed;
  inset: 0;
  z-index: 41;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(120, 0, 16, 0) 30%, rgba(110, 0, 14, .4) 72%, rgba(50, 0, 8, .78) 100%),
    rgba(120, 0, 16, .1);
}
.screen-blood { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 55; pointer-events: none; display: none; }
.screen-blood.on { display: block; }
.hero-inner.thump { animation: thump .32s ease-out; }
@keyframes thump { 30% { transform: translate(1.5px, -1px) scale(1.004); } 60% { transform: translate(-1px, 1px); } }

/* ---------- raise: rune picker, summoning circle reactions ---------- */
.raise { --tint: #c19a5b; }
.runes-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.runes-field legend { margin-bottom: 8px; padding: 0; color: var(--ash); font-size: 16px; }
.rune-picker { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.rune-chip {
  --tint: #c19a5b;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 2px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: rgba(239, 227, 204, .02);
  color: var(--ash);
  font-size: 14px;
  transition: border-color .2s, background-color .2s, color .2s, box-shadow .3s;
}
.rune-chip .rune-svg { width: 34px; height: 34px; }
.rune-chip .rune-glow { opacity: .3; }
.rune-chip:hover { border-color: var(--line); color: var(--bone); }
.rune-chip:hover .rune-glow { opacity: .7; }
.rune-chip[aria-checked="true"] { border-color: var(--tint); color: var(--bone); background: color-mix(in srgb, var(--tint) 12%, transparent); box-shadow: 0 0 26px -8px var(--tint); }
.rune-chip[aria-checked="true"] .rune-glow { opacity: 1; }
.rune-pick-line { min-height: 1.5em; margin: 10px 0 0; color: var(--ash); font-style: italic; font-size: 16px; }
.rune-pick-line b { color: var(--tint); font-style: normal; font-weight: 600; }
.raise-form .field.lit input, .raise-form .field.lit textarea, .raise-form .field.lit .drop { animation: field-lit 1.3s ease-out; }
@keyframes field-lit { 0% { border-color: var(--tint); box-shadow: 0 0 0 1px var(--tint), 0 0 28px -6px var(--tint); } }

.circle { --tint: #c19a5b; }
.circle-runes .wheel { transition: transform 1.35s cubic-bezier(.25, .9, .25, 1); }
.circle-runes .wheel-glyph { opacity: .32; transition: opacity .5s; }
.circle-runes .wheel-glyph .rune-glow { opacity: .2; }
.circle-runes .wheel-glyph.on { opacity: 1; }
.circle-runes .wheel-glyph.on .rune-glow { opacity: 1; }
.circle-flash {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tint) 60%, transparent), transparent 62%);
  opacity: 0;
  pointer-events: none;
}
.circle.impact .circle-flash { animation: flash-out 1.1s ease-out; }
.circle.impact { animation: circle-shake .55s ease-out; }
.circle.impact .blood-trace { stroke: var(--tint); transition: stroke-dashoffset 1s cubic-bezier(.6, 0, .3, 1); stroke-dashoffset: 0; }
@keyframes flash-out { 0% { opacity: 1; transform: scale(.55); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes circle-shake { 12% { transform: translate(-6px, 4px); } 28% { transform: translate(6px, -3px); } 44% { transform: translate(-3px, 2px); } 62% { transform: translate(2px, -1px); } 100% { transform: none; } }
.circle-preview img { box-shadow: 0 0 0 1px rgba(193, 154, 91, .5), 0 0 60px -6px var(--tint); transition: box-shadow .6s; }
.pv-rune { min-height: 1.4em; margin: 4px 0 0; color: var(--tint); font-style: italic; font-size: 15px; }

/* ---------- the pact ---------- */
.pact { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 16px; visibility: hidden; pointer-events: none; }
.pact.open { visibility: visible; pointer-events: auto; }
.pact-scrim { position: absolute; inset: 0; background: rgba(5, 1, 3, .74); opacity: 0; transition: opacity .4s; }
.pact.open .pact-scrim { opacity: 1; }
.pact-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 34px 32px 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, #1d0b12, #0f0609);
  box-shadow: 0 40px 90px -20px #000, 0 0 70px -24px var(--tint, #d4152d);
  opacity: 0;
  transform: translateY(30px) scale(.97);
  transition: transform .5s var(--ease), opacity .4s;
}
.pact.open .pact-card { opacity: 1; transform: none; }
.pact-card::before, .pact-card::after { content: ''; position: absolute; width: 46px; height: 46px; background: var(--corner) no-repeat center / contain; opacity: .7; pointer-events: none; }
.pact-card::before { top: 6px; left: 6px; }
.pact-card::after { right: 6px; bottom: 6px; transform: rotate(180deg); }
.pact h2 { font-family: var(--black); font-size: 54px; font-weight: 700; line-height: 1; }
.pact-coin { display: flex; align-items: center; gap: 16px; margin: 20px 0; padding: 14px; border: 1px solid var(--line-soft); border-radius: 4px; background: rgba(239, 227, 204, .02); }
.pact-coin img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(193, 154, 91, .5), 0 0 30px -8px var(--tint, #d4152d); }
.pact-name { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.pact-tkr { margin: 2px 0 0; color: var(--brass); font-weight: 600; }
.pact-terms { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.pact-terms li { position: relative; padding-left: 24px; color: rgba(239, 227, 204, .88); }
.pact-terms li::before { content: ''; position: absolute; left: 4px; top: .5em; width: 9px; height: 12px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: var(--arterial); }
.pact-terms b { color: var(--tint, var(--bone)); font-weight: 600; }
.pact .btn { width: 100%; }
.pact-note { margin: 14px 0 0; color: var(--ash); font-style: italic; font-size: 15px; }
.pact-note.bad { color: #ff6b7d; font-style: normal; }
.pact-note.good { color: var(--brass-hi); font-style: normal; }
.pact-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 6px; }
.pact-buy > span:first-child { color: var(--bone); font-size: 18px; }
.pact-buy .amt { width: 170px; flex: none; }
.pact-small { margin: 0 0 22px; color: var(--ash); font-size: 14px; font-style: italic; }

/* the launch, step by step: waiting, under way, done, failed */
.pact-steps { display: grid; gap: 9px; margin: 0 0 22px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 4px; list-style: none; background: rgba(239, 227, 204, .02); }
.pact-steps li { position: relative; padding-left: 28px; color: rgba(239, 227, 204, .42); transition: color .3s; }
.pact-steps li::before { content: ''; position: absolute; left: 3px; top: .42em; width: 13px; height: 13px; box-sizing: border-box; border: 1px solid currentColor; border-radius: 50%; }
.pact-steps li[data-state="active"] { color: var(--bone); }
.pact-steps li[data-state="active"]::before { border-color: var(--arterial); background: var(--arterial); box-shadow: 0 0 12px var(--arterial); animation: step-beat 1s ease-in-out infinite; }
.pact-steps li[data-state="done"] { color: rgba(239, 227, 204, .86); }
.pact-steps li[data-state="done"]::before { border-color: var(--brass); background: var(--brass); }
.pact-steps li[data-state="done"]::after { content: ''; position: absolute; left: 8px; top: calc(.42em + 2px); width: 3px; height: 6px; border: solid var(--vein); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pact-steps li[data-state="failed"] { color: #ff6b7d; }
.pact-steps li[data-state="failed"]::before { border-color: #ff6b7d; background: rgba(255, 107, 125, .18); }
@keyframes step-beat { 50% { transform: scale(.72); opacity: .7; } }

.wallets h2 { font-size: 46px; }
.wallet-list { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.wallet-row {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 4px; background: rgba(239, 227, 204, .03);
  color: var(--bone); font: inherit; font-size: 19px; text-align: left; text-decoration: none; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.wallet-row:hover, .wallet-row:focus-visible { border-color: var(--brass); background: rgba(193, 154, 91, .08); }
.wallet-row img { width: 30px; height: 30px; flex: none; border-radius: 7px; }
#connect.on { border-color: rgba(193, 154, 91, .55); color: var(--brass-hi); font-variant-numeric: tabular-nums; }
.dr-pump { display: flex; justify-content: center; margin-top: 18px; }

@media (max-width: 560px) {
  .rune-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .seat img { width: 40px; height: 40px; }
  .seat span { font-size: 11px; }
  .seat-rune { top: 26px; width: 18px; height: 18px; }
  .moon-btn { bottom: -6%; padding-right: 14px; }
  .moon-btn .moon-dial { width: 38px; height: 38px; }
  .moon-btn-text b { font-size: 15px; }
  .moon-btn-text span { font-size: 12px; }
  .rune-grave .grave-name { font-size: 24px; }
  .rune-face { width: 76px; height: 76px; }
  .rune-big { width: 60px; height: 60px; }
  .rune-motto { display: none; }
  .pact-card { padding: 28px 20px 22px; }
  .pact h2 { font-size: 44px; }
}
.circle-runes .ring-a, .circle-runes .ring-b, .circle-runes .wheel { transform-box: view-box; transform-origin: 0 0; }
.circle-runes .wg-inner { transform-box: fill-box; transform-origin: center; transition: transform .6s var(--ease); }
.circle-runes .wheel-glyph.on .wg-inner { transform: scale(1.45); }
.bite .rune-svg { width: 22px; height: 22px; flex: none; }
.bite-line span { color: var(--bone); }

.count-coin { cursor: pointer; }
