/* Vamplify (was COVEN) blood/black layer on top of the themed template CSS (coven.css).
   Role vars: bgc = surfaces, fgc = ink, lnc = lines, shc = shadows. Motion: one ease-in-out curve everywhere. */
:root {
  --font-stencil: "Unbounded", "Space Grotesk", system-ui, sans-serif;
  --font-silk: "Space Grotesk", system-ui, sans-serif;

  --blood: #e30613; --blood-2: #ff4753; --blood-deep: #a3040d; --blood-wash: #e306131c;
  --night: #0a0808; --night-2: #0e0b0b; --card: #131010; --raise: #1a1516; --raise-2: #221b1c;
  --line: #2a2123; --line-2: #3d2f32; --bone: #f1ebe2; --bone-2: #fffaf3; --muted: #a79d95; --dim: #71675f; --amber: #f0b23a;
  --ease: cubic-bezier(.45, 0, .15, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --bgc-bg: var(--night); --bgc-bg2: var(--night-2); --bgc-card: var(--card); --bgc-white: var(--card); --bgc-accent: var(--blood);
  --bgc-accent-dim: var(--blood-wash); --bgc-forest: var(--raise-2); --bgc-line: var(--line);
  --fgc-fg: var(--bone); --fgc-forest: var(--bone-2); --fgc-muted: var(--muted); --fgc-dim: var(--dim); --fgc-accent: var(--blood-2);
  --fgc-accent2: var(--blood-2); --fgc-sky: var(--blood-2); --fgc-white: #fff; --fgc-ok: var(--blood-2); --fgc-gold: var(--amber);
  --fgc-khaki: var(--amber); --fgc-heart: var(--blood-2); --fgc-warn: var(--amber);
  --lnc-line: var(--line); --lnc-accent: var(--blood); --lnc-forest: var(--line-2); --lnc-heart: var(--blood);
  --shc-line: #000;
  --color-bg: var(--night); --color-bg2: var(--night-2); --color-card: var(--card); --color-white: var(--card); --color-fg: var(--bone);
  --color-forest: var(--bone-2); --color-muted: var(--muted); --color-dim: var(--dim); --color-line: var(--line);
  --color-accent: var(--blood-2); --color-sky: var(--blood-2); --color-accent-dim: var(--blood-wash);
  color-scheme: dark;
}
html { background: var(--night); scrollbar-color: #3d2f32 #0a0808; }
body { background: var(--night); color: var(--bone); }
::selection { background: var(--blood); color: #fff; }
:focus-visible { outline: 2px solid var(--blood-2); outline-offset: 3px; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
footer { margin-top: 112px; background: var(--night-2) !important; }

/* ------------------------------------------------------------ type */
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em; color: var(--bone-2); }
h1.display, h2.display { line-height: 1.03; }
.ink-shadow { text-shadow: none; }
main section h1.display { font-size: clamp(34px, 5.9vw, 86px) !important; }
main section h2.display { font-size: clamp(26px, 3.1vw, 42px) !important; letter-spacing: -.03em; }
html[data-page="hunt"] main section h1.display { font-size: clamp(32px, 4vw, 54px) !important; }
html[data-page="covens"] main section h1.display, html[data-page="launch"] main section h1.display { font-size: clamp(30px, 3.6vw, 50px) !important; }
.label { color: var(--dim); letter-spacing: .14em; font-size: 12px; }
.text-white { color: #fff; }
main p b, main p strong { font-weight: 600; }

/* the highlight pill: a block of blood that wipes in, then drips */
.hl { position: relative; background: var(--blood); color: #fff; border-radius: .13em; padding: .03em .2em .09em; box-shadow: none; }
.js .hl { animation: cv-wipe .95s var(--ease) .5s both; }
@keyframes cv-wipe { from { clip-path: inset(0 100% -1em 0) } to { clip-path: inset(0 0 -1em 0) } }
.cv-drip { position: absolute; top: calc(100% - .06em); left: var(--x); width: .105em; height: var(--l); background: var(--blood);
  border-radius: 0 0 .06em .06em; transform-origin: top; }
.cv-drip::after { content: ""; position: absolute; left: 50%; bottom: -.05em; width: .14em; height: .17em; margin-left: -.07em; border-radius: 45% 45% 50% 50%; background: inherit; }
.js .cv-drip { animation: cv-drip 1.5s var(--ease) calc(1.25s + var(--d)) both; }
@keyframes cv-drip { from { transform: scaleY(0) } to { transform: scaleY(1) } }

/* ------------------------------------------------------------ chrome */
.marquee-wrap { background: var(--night-2) !important; border-bottom: 1px solid var(--line); box-shadow: none !important; color: var(--muted);
  font-weight: 500 !important; font-size: 13.5px !important; }
.marquee { animation-duration: 90s; transition: opacity .35s var(--ease); }
.marquee.swap { opacity: 0; }
.marquee span > span:first-child { background: var(--blood) !important; }
.marquee span > span:last-child, .marquee a { color: var(--muted) !important; transition: color .25s var(--ease); }
.marquee a:hover, .marquee a:hover span { color: var(--bone-2) !important; }
.marquee b { color: var(--bone); font-weight: 600; }

aside { background: var(--night-2) !important; border-color: var(--line) !important; }
header { background: #0a0808f2 !important; border-color: var(--line) !important; }
.cv-mark { color: var(--blood); display: block; background: currentColor; flex: none;
  -webkit-mask: url(/a/mark.png) center / contain no-repeat; mask: url(/a/mark.png) center / contain no-repeat; }
.cv-mark.cv-mark-img { background: none; -webkit-mask: none; mask: none; object-fit: contain; transition: transform .5s var(--ease); }
.group:hover .cv-mark-img { transform: translateY(-1px) scale(1.06); }
.cv-logo { transition: transform .5s var(--ease); }
.cv-fangs { transition: transform .5s var(--ease); transform-box: fill-box; transform-origin: top; }
.group:hover .cv-fangs, a:hover > span > .cv-mark .cv-fangs { transform: scaleY(1.14); }
aside .display, header .display, footer .display { letter-spacing: .01em !important; font-size: 21px !important; }
aside > div.font-pixel { color: var(--dim) !important; font-weight: 500; font-size: 13px; }
aside nav a:not(.btn) { position: relative; border-radius: 10px; color: var(--muted); border-color: transparent; background: transparent; box-shadow: none;
  transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease); font-size: 16px; }
aside nav a:not(.btn) svg { color: var(--dim); transition: color .3s var(--ease), transform .45s var(--ease) !important; }
aside nav a:not(.btn):hover { background: var(--card); color: var(--bone-2); }
aside nav a:not(.btn):hover svg { color: var(--bone); transform: translateY(-2px) !important; }
aside nav a[aria-current] { background: var(--raise) !important; border-color: var(--line-2) !important; color: var(--bone-2) !important; }
aside nav a[aria-current] svg, aside nav a[aria-current] .cv-mark { color: var(--blood) !important; }
aside nav a[aria-current]::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--blood); }
aside nav a .cv-mark { color: var(--dim); transition: color .3s var(--ease); }
aside nav a:hover .cv-mark { color: var(--bone); }
.hop svg { transition: transform .45s var(--ease); }
.hop:hover svg { transform: translateY(-2px); }
.cv-top { position: absolute; right: 40px; top: 64px; z-index: 30; }
.cv-top[hidden], [data-c="ca"][hidden], [data-c="x"][hidden] { display: none !important; }
.cv-wallet { justify-content: flex-start; gap: 10px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0; }
.cv-wallet-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.cv-wallet.on .cv-wallet-dot { background: var(--blood); box-shadow: 0 0 0 4px var(--blood-wash); }

/* ------------------------------------------------------------ buttons, chips, inputs */
.btn { background: var(--raise); border-color: var(--line-2); color: var(--bone); border-radius: 10px; box-shadow: none;
  transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.btn:after { background: linear-gradient(90deg, #0000, #ffffff14, #0000); transition: left .8s var(--ease); }
.btn:hover { background: var(--raise-2); border-color: #58454a; transform: translateY(-2px); box-shadow: 0 14px 24px -18px #000; }
.btn:active { transform: translateY(0) scale(.985); box-shadow: none; transition-duration: .12s; }
.btn:disabled { opacity: .4; }
.btn-primary, .btn-primary:hover { background: var(--blood); border-color: var(--blood); color: #fff; }
.btn-primary { box-shadow: none; }
.btn-primary:hover { background: #f4151f; border-color: #f4151f; box-shadow: 0 16px 28px -18px #e30613cc; }
.btn-sm { border-radius: 9px; }
.cv-arrow { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .cv-arrow { transform: translateX(4px); }
.chip { background: var(--card); border-color: var(--line); color: var(--bone); border-radius: 8px; height: 32px; padding: 0 12px; font-size: 13.5px; font-weight: 500; }
.chip-dark { background: var(--raise) !important; color: var(--bone) !important; border-color: var(--line-2) !important; cursor: pointer; }
.chip-live { background: var(--blood-wash); color: var(--blood-2); border-color: #e3061344; }
.chip-wait { background: var(--raise); color: var(--muted); border-color: var(--line-2); }
.live-dot { background: var(--blood); animation: cv-pulse 2.2s var(--ease-io) infinite; }
@keyframes cv-pulse { 0%, 100% { box-shadow: 0 0 0 0 #e3061366 } 50% { box-shadow: 0 0 0 6px #e3061300 } }
.input { background: var(--night-2); border-color: var(--line-2); color: var(--bone-2); border-radius: 10px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease); }
.input::placeholder { color: var(--dim); }
.input:hover { border-color: #58454a; }
.input:focus { border-color: var(--blood); box-shadow: 0 0 0 3px #e3061326; background: #0c0909; }
.cv-select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23a79d95' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.cv-select option { background: #131010; color: var(--bone); }
.tab { border-radius: 8px; color: var(--muted); border-color: transparent; transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.tab:hover { background: var(--raise); color: var(--bone-2); }
.tab[data-on="true"] { background: var(--raise-2); color: var(--bone-2); border-color: var(--line-2) !important; }
.tab:active { transform: scale(.97); }
.link { color: var(--muted); transition: color .3s var(--ease); }
.link:hover { color: var(--blood-2); }
.step-tag { background: var(--blood-wash); color: var(--blood-2); border-radius: 6px; font-family: var(--font-mono); font-weight: 600; font-size: 12px; }
.px-rule { height: 1px; background: linear-gradient(90deg, var(--line-2), #3d2f3200 85%); }
.bar { background: var(--raise-2); box-shadow: none; height: 6px; }
.bar > i { background: var(--blood); transition: width 1.1s var(--ease); }
.notice { background: var(--card) !important; border: 1px solid var(--line) !important; border-left: 2px solid var(--blood) !important; border-radius: 10px; color: var(--muted) !important; }
.notice b { color: var(--bone-2); }
.table th { color: var(--dim); border-color: var(--line); }
.table td { border-color: #1f1819; }
.table tr:hover td { background: #171314; }

/* long names must truncate inside the template's grids instead of widening the page */
main .grid > *, footer .grid > * { min-width: 0; }

/* ------------------------------------------------------------ cards */
.card, .panel, .box { background: var(--card); border-color: var(--line); border-radius: 14px; box-shadow: inset 0 1px #fff4e608; }
.card:before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), #e3061312, transparent 60%); transition: opacity .5s var(--ease); }
.lift { transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.lift:hover { border-color: #5a3238; transform: translateY(-4px); box-shadow: inset 0 1px #fff4e60a, 0 26px 40px -30px #000; }
.snowcap:after { content: none; }
.trim-earth { border-top-color: var(--line); }
main .card .hop.bg-white, main .card > .grid > .hop { background: var(--card); transition: background .35s var(--ease); }
main .card > .grid > .hop:hover { background: var(--raise); }
main .card > .grid.bg-line { background: var(--line); border-color: var(--line); }
main ol > li.hop { border-radius: 10px; transition: background .3s var(--ease), border-color .3s var(--ease); }
main ol > li.hop:hover { background: var(--raise); border-color: var(--line); }
main ol > li.hop svg, main .card > .grid > .hop svg, .cv-mini-ico, main .card.lift svg { color: var(--blood-2); }
main section .card.hop { transition: border-color .4s var(--ease), background .4s var(--ease); }
main section .card.hop:hover { border-color: var(--line-2); }
.cv-list li { position: relative; padding-left: 18px; }
.cv-list li::before { content: ""; position: absolute; left: 2px; top: .52em; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 8px solid var(--blood); }
.cv-big { font-size: 40px; line-height: 1.1; }

/* ------------------------------------------------------------ motion: load reveals, staggers */
@keyframes cv-up { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: none } }
@keyframes cv-in { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
@keyframes cv-pop { from { opacity: 0; transform: scale(.94) } to { opacity: 1; transform: none } }
@keyframes cv-sheen { from { background-position: 100% 0 } to { background-position: -100% 0 } }
.fade-up { animation: cv-up .85s var(--ease) both; }
.js .reveal { opacity: 1; transform: none; transition: none; }
.js .reveal:not(.in) > * { opacity: 0; }
.js .reveal.in .cv-st { animation: cv-up .8s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.js.cv-safe .reveal:not(.in) > * { opacity: 1; }
.cv-enter { animation: cv-in .6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 65ms); }
.cv-skel { display: block; border-radius: 8px; background: linear-gradient(90deg, #171314 30%, #241c1e 50%, #171314 70%); background-size: 220% 100%; animation: cv-sheen 1.7s var(--ease-io) infinite; }
.cv-skel-row { height: 54px; margin: 8px 0; }
.cv-skel-t { width: 220px; height: 30px; margin-top: 6px; }
.cv-skel-card { min-height: 236px; display: flex; flex-direction: column; gap: 14px; }
.cv-skel-a { height: 44px; width: 70%; } .cv-skel-b { height: 70px; } .cv-skel-c { height: 14px; width: 45%; margin-top: auto; }
.cv-empty { padding: 26px 8px; text-align: center; color: var(--muted); font-size: 15px; grid-column: 1 / -1; }
.cv-empty a { color: var(--blood-2); }
.cv-flash { animation: cv-flash .9s var(--ease); }
@keyframes cv-flash { 0% { color: var(--blood-2) } 100% { color: inherit } }

/* ------------------------------------------------------------ hunt form */
.cv-hunt { display: flex; gap: 10px; width: 100%; max-width: 640px; }
.cv-hunt .input { flex: 1; min-width: 0; height: 54px; font-size: 15.5px; }
.cv-hunt .btn { height: 54px; padding: 0 26px; flex: none; }
.cv-hunt-wide { max-width: 760px; }
.cv-hunt-sm { max-width: 420px; }
.cv-hunt-sm .input, .cv-hunt-sm .btn { height: 44px; }
.cv-hunt-sm .btn { padding: 0 18px; font-size: 15px; }
.cv-hunt.shake { animation: cv-shake .5s var(--ease-io); }
@keyframes cv-shake { 0%, 100% { transform: none } 25% { transform: translateX(-6px) } 75% { transform: translateX(6px) } }

/* ------------------------------------------------------------ home */
.cv-picks-row { align-items: center; min-height: 32px; }
.cv-x-btn { gap: 8px; padding: 0 14px; font-weight: 600; }
.cv-x-btn svg { flex: none; }
.cv-picks-row .cv-x-btn { height: 38px; }
.cv-ca-x { display: inline-flex; align-items: center; gap: inherit; flex-wrap: nowrap; }
.cv-picks { display: contents; }
.cv-picks .chip { transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease); }
.cv-picks .chip:hover { border-color: #5a3238; transform: translateY(-2px); background: var(--raise); }
.cv-picks .chip img { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; }
.cv-picks .chip i { font-style: normal; color: var(--blood-2); font-family: var(--font-mono); font-size: 12px; }
.cv-stat { border-radius: 16px !important; background: var(--card) !important; border-color: var(--line) !important; box-shadow: inset 0 1px #fff4e608 !important; }
.cv-stat-mark { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 12px; background: var(--raise); border: 1px solid var(--line-2); }
.cv-stat .font-pixel { color: var(--muted) !important; font-weight: 500; }
.cv-stat .display.num { font-family: var(--font-display); letter-spacing: -.03em; min-width: 2ch; }

.cv-prev { padding: 22px 22px 18px; min-height: 380px; display: flex; flex-direction: column; }
.cv-prev-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cv-prev-title { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(22px, 2.4vw, 30px); color: var(--bone-2); margin-top: 6px; line-height: 1.1; }
.cv-prev-rows { flex: 1; }
.cv-prow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #1f1819; }
.cv-prow:last-child { border-bottom: 0; }
.cv-prev-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }

/* the split diagram (the template's loop ring) */
.cv-ring-track { stroke: var(--line); stroke-width: .5; }
.cv-ring-dash { stroke: var(--blood); stroke-width: .7; }
.sl-ring { animation-duration: 3.2s !important; }
.cv-ring-spoke { stroke: var(--line-2); stroke-width: .5; fill: none; }
.cv-ring-core { fill: var(--card); stroke: var(--line-2); stroke-width: .4; }
.cv-ring > .hop { background: var(--raise) !important; border-color: var(--line-2) !important; border-radius: 10px; box-shadow: none; transition: border-color .4s var(--ease), transform .4s var(--ease); }
.cv-ring > .hop:hover { border-color: #5a3238 !important; }
.cv-ring > .hop svg { color: var(--blood-2); }
.cv-ring-mark .cv-mark { margin: 0 auto; }

/* ------------------------------------------------------------ token rows (bloodline, preview, lists) */
.cv-ico { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--raise); border: 1px solid var(--line-2); flex: none; display: block; }
.cv-ico-sm { width: 36px; height: 36px; border-radius: 7px; }
.cv-ico-xs { width: 22px; height: 22px; border-radius: 5px; }
.cv-noimg { background: var(--raise) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-180 -105 1360 1360' fill='%2371675f'%3E%3Cpath d='M60 300Q500 420 940 300L940 430Q500 560 60 430Z'/%3E%3Cpath d='M262 466L398 494L338 850Z'/%3E%3Cpath d='M738 466L602 494L662 850Z'/%3E%3Cpath d='M418 492L484 500L452 612Z'/%3E%3Cpath d='M516 500L582 492L548 612Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.cv-role { font-style: normal; display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 7px; border-radius: 5px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; background: var(--bone); color: #0a0808; position: relative; top: -1px; }
.cv-role.is-vamp { background: var(--blood-wash); color: var(--blood-2); box-shadow: inset 0 0 0 1px #e3061355; }
.cv-line { margin: 0 -8px; container: line / inline-size; }
.cv-row { display: grid; grid-template-columns: 26px 44px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 13px 8px; border-radius: 10px;
  border-bottom: 1px solid #1f1819; transition: background .35s var(--ease), opacity .45s var(--ease); }
.cv-row:last-child { border-bottom-color: transparent; }
.cv-row:hover { background: #171314; }
.cv-row.is-off .cv-ico, .cv-row.is-off .cv-name, .cv-row.is-off .cv-stats { opacity: .36; }
.cv-row .cv-ico, .cv-row .cv-name, .cv-row .cv-stats { transition: opacity .45s var(--ease); }
.cv-stats { display: flex; gap: 22px; }
.cv-name { min-width: 0; }
.cv-name > div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-stat-cell { text-align: right; min-width: 74px; }
.cv-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-family: var(--font-mono); font-size: 12.5px; min-width: 96px; }
.cv-copy { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); transition: color .3s var(--ease); white-space: nowrap; }
.cv-copy:hover { color: var(--bone-2); }
.cv-copy.done { color: var(--blood-2); }
.cv-check { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid #58454a; background: transparent; display: grid; place-items: center;
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); }
.cv-check:hover { border-color: var(--blood-2); transform: scale(1.08); }
.cv-check svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .4s var(--ease); }
.cv-check[aria-pressed="true"] { background: var(--blood); border-color: var(--blood); }
.cv-check[aria-pressed="true"] svg { stroke-dashoffset: 0; }
a.cv-row { grid-template-columns: 44px minmax(0, 1fr) auto; color: inherit; }
a.cv-row .cv-go-hint { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); transition: color .3s var(--ease), transform .4s var(--ease); }
a.cv-row:hover .cv-go-hint { color: var(--blood-2); transform: translateX(3px); }
.cv-swapin { height: 32px; padding: 0 12px; font-size: 13px; }
#cv-rest td { vertical-align: middle; }
.cv-td-coin { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.cv-td-coin b { font-weight: 600; }

@container line (max-width: 640px) {
  .cv-row { grid-template-columns: 26px 40px minmax(0, 1fr); gap: 12px; row-gap: 10px; padding: 14px 8px; }
  .cv-row .cv-ico { width: 40px; height: 40px; }
  .cv-row .cv-stats { grid-row: 2; grid-column: 2 / span 2; gap: 20px; }
  .cv-row .cv-stat-cell { text-align: left; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
  .cv-row .cv-stat-cell .num { margin-top: 0; font-size: 14.5px; }
  .cv-row .cv-acts { grid-row: 3; grid-column: 2 / span 2; flex-direction: row; justify-content: flex-start; gap: 18px; min-width: 0; }
  .cv-name > div:first-child { white-space: normal; }
}

/* ------------------------------------------------------------ buy / sell box */
.cv-line-card { align-self: start; }
.cv-box { align-self: start; }
@media (min-width: 1024px) { .cv-box { position: sticky; top: 60px; } }
.cv-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 11px; background: var(--night-2); border: 1px solid var(--line); }
.cv-tabs .tab { position: relative; z-index: 1; height: 38px; background: transparent !important; border-color: transparent !important; }
.cv-tabs .tab[data-on="true"] { color: #fff; }
.cv-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 8px; background: var(--blood); transition: transform .5s var(--ease), background .5s var(--ease); }
.cv-tabs[data-side="sell"] .cv-thumb { transform: translateX(100%); background: var(--raise-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.cv-amt { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; border-bottom: 1px solid var(--line-2); transition: border-color .3s var(--ease); }
.cv-amt:focus-within { border-color: var(--blood); }
.cv-amt input { flex: 1; width: 0; min-width: 0; background: none; border: 0; outline: 0; color: var(--bone-2); font-size: 44px; font-weight: 500; line-height: 1.25; padding: 0; letter-spacing: -.03em; }
.cv-amt span { color: var(--muted); font-size: 15px; }
.cv-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.cv-chips-3 { grid-template-columns: repeat(3, 1fr); }
.cv-chips .tab { height: 36px; padding: 0; font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; border-color: var(--line) !important; }
.cv-chips .tab[data-on="true"] { border-color: var(--blood) !important; color: #fff; background: var(--blood-wash); }
#cv-split > div { border-color: #1f1819; }
#cv-split dd { color: var(--bone-2); }
.cv-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.cv-opt .cv-select { width: auto; height: 36px; font-size: 14px; padding-left: 12px; }
#cv-wallet { color: var(--bone); }
#cv-wallet:hover { color: var(--blood-2); }
.cv-go { margin-top: 18px; }
.cv-go.busy { pointer-events: none; }
.cv-box.done { animation: cv-done 1.4s var(--ease); }
@keyframes cv-done { 0% { border-color: var(--line) } 35% { border-color: var(--blood) } 100% { border-color: var(--line) } }
.cv-legs:not(:empty) { margin-top: 14px; }
.cv-msg { padding: 10px 12px; border-radius: 9px; background: #1d1608; border: 1px solid #5a4718; color: #f6dfa2; font-size: 14px; animation: cv-in .5s var(--ease) backwards; }
.cv-leg { position: relative; display: grid; grid-template-columns: 22px minmax(0, auto) 1fr; align-items: center; gap: 10px; padding: 10px 0 12px; font-family: var(--font-mono); font-size: 13.5px;
  animation: cv-in .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.cv-leg-sym { color: var(--bone-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-leg-msg { text-align: right; color: var(--muted); transition: color .4s var(--ease); min-width: 0; }
.cv-leg-msg a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #ffffff40; }
.cv-leg-msg a:hover { color: #fff; }
.cv-leg-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--raise-2); overflow: hidden; }
.cv-leg-bar::after { content: ""; position: absolute; inset: 0; background: var(--blood); transform-origin: left; transform: scaleX(var(--p, .08)); transition: transform .9s var(--ease), background .5s var(--ease); }
.cv-leg[data-st="quote"] { --p: .22; } .cv-leg[data-st="ready"] { --p: .5; } .cv-leg[data-st="sending"] { --p: .82; } .cv-leg[data-st="done"] { --p: 1; } .cv-leg[data-st="error"] { --p: 1; }
.cv-leg[data-st="done"] .cv-leg-msg { color: var(--bone-2); }
.cv-leg[data-st="error"] .cv-leg-msg { color: var(--amber); }
.cv-leg[data-st="error"] .cv-leg-bar::after { background: var(--amber); }
.cv-leg-ico { width: 20px; height: 20px; }
.cv-leg-ico svg { width: 20px; height: 20px; display: block; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cv-leg-ico .ring { stroke: #58454a; stroke-width: 1.6; transition: stroke .5s var(--ease), fill .5s var(--ease); }
.cv-leg-ico .arc { stroke: var(--blood-2); stroke-width: 1.6; stroke-dasharray: 14 60; transform-origin: 10px 10px; animation: cv-spin 1.1s var(--ease-io) infinite; transition: opacity .3s var(--ease); }
.cv-leg-ico .tick, .cv-leg-ico .bang { stroke: #fff; stroke-width: 1.9; stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .5s var(--ease) .15s; }
.cv-leg-ico .bang { stroke: #0a0808; }
@keyframes cv-spin { to { transform: rotate(360deg) } }
.cv-leg[data-st="done"] .cv-leg-ico .ring { stroke: var(--blood); fill: var(--blood); }
.cv-leg[data-st="done"] .cv-leg-ico .tick { stroke-dashoffset: 0; }
.cv-leg[data-st="done"] .cv-leg-ico { animation: cv-tick .6s var(--ease); }
@keyframes cv-tick { 0% { transform: scale(1) } 45% { transform: scale(1.22) } 100% { transform: scale(1) } }
.cv-leg[data-st="error"] .cv-leg-ico .ring { stroke: var(--amber); fill: var(--amber); }
.cv-leg[data-st="error"] .cv-leg-ico .bang { stroke-dashoffset: 0; }
.cv-leg[data-st="done"] .cv-leg-ico .arc, .cv-leg[data-st="error"] .cv-leg-ico .arc { opacity: 0; animation: none; }
.cv-sum { font-family: var(--font-mono); font-size: 13px; color: var(--muted); padding-top: 10px; animation: cv-in .5s var(--ease) backwards; }
.cv-sum b { color: var(--bone-2); font-weight: 600; }
.cv-h-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: var(--raise); border: 1px solid var(--line-2); flex: none; overflow: hidden; }
.cv-h-ico img { width: 100%; height: 100%; object-fit: cover; animation: cv-pop .5s var(--ease) backwards; }
html:not(.has-q) [data-q] { display: none !important; }

/* ------------------------------------------------------------ covens */
.cv-card { display: block; }
.cv-card.swap { animation: cv-pop .55s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 50ms); }
[data-c="grid"] > [hidden] { display: none !important; }
.cv-card .cv-cta { transition: transform .4s var(--ease); display: inline-block; }
.cv-card:hover .cv-cta { transform: translateX(4px); }
.cv-avatars { display: flex; }
.cv-face { width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--card); margin-left: -7px; object-fit: cover; background: var(--raise-2); display: block; }
.cv-avatars .cv-face:first-child { margin-left: 0; }
.cv-pick-ico { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; background: var(--raise-2); display: block; }

/* ------------------------------------------------------------ launch */
.cv-inline { display: flex; gap: 10px; align-items: center; }
.cv-inline .input { flex: 1; min-width: 0; }
.cv-inline .btn { height: 44px; flex: none; }
#lv-pick { border-radius: 12px; border-color: var(--line-2) !important; background: var(--night-2) !important; position: relative; transition: border-color .35s var(--ease), background .35s var(--ease); cursor: pointer; }
#lv-pick:hover { border-color: var(--blood) !important; background: #120d0d !important; }
.cv-logo-prev { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: cv-pop .5s var(--ease) backwards; }
#cv-launch dl { border-color: var(--line) !important; background: var(--night-2) !important; border-radius: 10px; }
#cv-launch dl dt, #cv-launch dl dd { border-color: var(--line) !important; }
.cv-launch-out:not(:empty) { margin-top: 2px; padding: 12px 14px; border-radius: 10px; background: var(--night-2); border: 1px solid var(--line); color: var(--bone); font-size: 14.5px; animation: cv-in .5s var(--ease) backwards;
  display: flex; flex-wrap: wrap; gap: 6px 16px; }
.cv-launch-out.err { border-color: #5a4718; background: #1d1608; color: #f6dfa2; }
.cv-launch-out a { color: var(--blood-2); text-decoration: underline; text-underline-offset: 3px; }
.cv-launch-out.busy::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid #58454a; border-top-color: var(--blood-2); animation: cv-spin .9s var(--ease-io) infinite; align-self: center; }

/* ------------------------------------------------------------ toasts (the template's rail, bottom right) */
[data-c="toasts"] { gap: 0 !important; width: min(320px, calc(100vw - 24px)); align-items: stretch !important; }
.cv-toast-slot { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); pointer-events: none; }
.cv-toast-slot.in { grid-template-rows: 1fr; }
.cv-toast-slot > div { overflow: hidden; min-height: 0; }
.cv-toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 11px 14px; border-radius: 12px; background: #161213f2; border: 1px solid var(--line-2);
  box-shadow: 0 18px 34px -22px #000; color: inherit; opacity: 0; transform: translateX(36px); transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .3s var(--ease); }
.cv-toast-slot.in .cv-toast { opacity: 1; transform: none; }
.cv-toast-slot:not(.in) .cv-toast { pointer-events: none; }
a.cv-toast:hover { border-color: #5a3238; }
.cv-toast img, .cv-toast .cv-toast-ico { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; flex: none; background: var(--raise-2); display: grid; place-items: center; }
.cv-toast b { display: block; font-family: var(--font-pixel); font-weight: 600; font-size: 14.5px; color: var(--bone-2); line-height: 1.25; }
.cv-toast i { display: block; font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.cv-toast span { min-width: 0; }
@media (max-width: 640px) { [data-c="toasts"] { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: calc(100vw - 24px); } }

/* ------------------------------------------------------------ mobile drawer */
.cv-drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; transition: visibility 0s .5s; }
.cv-drawer.open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.cv-scrim { position: absolute; inset: 0; background: #050404d9; opacity: 0; transition: opacity .45s var(--ease); }
.cv-drawer.open .cv-scrim { opacity: 1; }
.cv-drawer nav { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 320px); background: var(--night-2); border-left: 1px solid var(--line); padding: 18px 14px 22px;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto; transform: translateX(102%); transition: transform .5s var(--ease); }
.cv-drawer.open nav { transform: none; }
.cv-drawer nav > * { opacity: 0; transform: translateX(16px); transition: opacity .45s var(--ease), transform .45s var(--ease), background .3s var(--ease), color .3s var(--ease); }
.cv-drawer.open nav > * { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 45ms + 120ms), calc(var(--i, 0) * 45ms + 120ms), 0s, 0s; }
.cv-drawer nav a:not(.btn) { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 10px; font-family: var(--font-pixel); font-size: 17px; font-weight: 600; color: var(--muted); }
.cv-drawer nav a:not(.btn) svg { color: var(--dim); }
.cv-drawer nav a[aria-current] { background: var(--raise); color: var(--bone-2); }
.cv-drawer nav a[aria-current] svg { color: var(--blood); }
.cv-drawer nav .btn { width: 100%; margin-top: 10px; }
.cv-drawer-x { align-self: flex-end; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); border: 1px solid var(--line); margin-bottom: 6px; }

/* ------------------------------------------------------------ page-to-page: the content eases out, the next page's rises in; the sidebar never moves */
main, footer { transition: opacity .18s var(--ease-io), transform .18s var(--ease-io); }
.cv-leave main, .cv-leave footer { opacity: 0; transform: translateY(-8px); }

/* ------------------------------------------------------------ small screens */
@media (max-width: 1023px) {
  footer { margin-top: 72px; }
}
@media (max-width: 640px) {
  footer > div { padding-bottom: 96px; }   /* the last links stay clear of a toast */
  /* header with a CA set: logo, short CA, X and the menu button all fit on a phone */
  header > div { gap: 8px !important; }
  header .display { font-size: 18px !important; }
  header [data-c="ca"] { padding: 0 9px; font-size: 12px; gap: 0; }
  header [data-c="ca"] .opacity-70 { display: none; }
  header [data-c="menu"], header [data-c="x"] { flex: none; }
  #lv-pick { width: 132px; }
}
@media (max-width: 640px) {
  .cv-hunt .btn { padding: 0 18px; }
  .cv-prev { padding: 18px 16px 16px; min-height: 0; }
  .cv-prow { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; }
  .cv-prow .cv-stat-cell:last-child { display: none; }
  a.cv-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .cv-amt input { font-size: 38px; }
  .cv-stat { width: 100%; }
  .cv-stat-mark { width: 64px; height: 64px; }
  main .card .num.leading-none { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .marquee { animation: none !important; }
  .js .reveal .cv-st { opacity: 1; }
  .cv-skel { animation: none; }
  .cv-drip { transform: none; }
}
