/* =========================================================
   PHANTOM: neon sunset editorial. Mobile first.
   ========================================================= */
:root {
  --ink: #07040d;
  --bg: #0d0818;
  --bg-2: #130b24;
  --panel: #170f2b;
  --panel-2: #1f1538;
  --line: rgba(255,255,255,.09);
  --text: #f7f2ff;
  --muted: #a99cc9;
  --dim: #7a6d9c;
  --pink: #ff2e88;
  --orange: #ff8a3d;
  --yellow: #ffd23f;
  --purple: #8b3dff;
  --cyan: #19e3d4;
  --lime: #b6ff3b;
  --sunset: linear-gradient(120deg, #ffd23f 0%, #ff8a3d 28%, #ff2e88 58%, #8b3dff 100%);

  --f-head: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --f-tag: "Sedgwick Ave Display", "Permanent Marker", cursive;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --g: 16px;
  --r: 16px;
  --dock-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(255,46,136,.16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(139,61,255,.14), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
  padding-bottom: calc(var(--dock-h) + 28px + var(--safe-b));
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(8px + env(safe-area-inset-top, 0px)) var(--g) 8px;
  background: rgba(13,8,24,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.logo {
  font-family: var(--f-tag);
  font-size: 30px;
  line-height: 1.1;
  background: var(--sunset);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(2px 2px 0 var(--ink));
  padding-right: 4px;
}
.topbar-right { display: flex; align-items: center; gap: 10px; }
.live-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--muted);
}
.live-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 0 rgba(182,255,59,.6);
  animation: ping 2s infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(182,255,59,0); } 100% { box-shadow: 0 0 0 0 rgba(182,255,59,0); } }
.hq {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,210,63,.55);
  color: var(--yellow);
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.hq svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* ---------- Ticker ---------- */
.ticker {
  position: sticky; top: calc(52px + env(safe-area-inset-top, 0px)); z-index: 55;
  overflow: hidden;
  background: #0a0614;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ticker::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--sunset); opacity: .9; }
.ticker-track { display: inline-flex; align-items: center; gap: 22px; padding: 8px 0 9px; animation: marquee 45s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tk img { width: 18px; height: 18px; border-radius: 50%; }
.tk .sym { color: var(--muted); font-weight: 800; letter-spacing: .04em; }
.tk .up { color: var(--lime); }
.tk .down { color: #ff5d8f; }
.tk.muted { color: var(--muted); padding-left: var(--g); }

/* ---------- Cover mosaic ---------- */
.cover {
  position: relative;
  padding: 14px 10px 0;
  overflow: hidden;
  isolation: isolate;
}
.cover::before {
  /* sunset glow behind the tiles (shows in the gutters) */
  content: "";
  position: absolute; inset: 0 0 18% 0;
  z-index: -1;
  background: linear-gradient(180deg, #2a0f52 0%, #6a1f8f 35%, #e2337f 70%, #ff8a3d 100%);
  opacity: .9;
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(96px, 15svh, 150px);
  gap: 8px;
  transform: rotate(-2.5deg) scale(1.04);
  transform-origin: center;
}
.tile {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
}
.tile:nth-child(1) { grid-column: 1 / 5; grid-row: 1 / 3; }
.tile:nth-child(2) { grid-column: 5 / 7; grid-row: 1 / 2; }
.tile:nth-child(3) { grid-column: 5 / 7; grid-row: 2 / 3; }
.tile:nth-child(4) { grid-column: 1 / 3; grid-row: 3 / 4; }
.tile:nth-child(5) { grid-column: 3 / 7; grid-row: 3 / 4; }
.tile:nth-child(6) { grid-column: 1 / 4; grid-row: 4 / 5; }
.tile:nth-child(7) { grid-column: 4 / 7; grid-row: 4 / 5; }
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 6s ease;
  animation: kenburns 18s ease-in-out infinite alternate;
}
.tile:nth-child(even) img { animation-delay: -6s; }
@keyframes kenburns { to { transform: scale(1.16) translate(-2%, -2%); } }
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7,4,13,.75));
  pointer-events: none;
}
.tile-tag {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  padding: 3px 9px 4px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--tag, var(--pink));
  color: var(--ink);
  font-family: var(--f-head);
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  box-shadow: 2px 2px 0 var(--ink);
}
.cover-brand {
  position: relative;
  margin-top: -64px;
  padding: 0 var(--g) 6px;
  text-align: center;
  z-index: 3;
}
.cover-logo {
  position: relative;
  display: inline-block;
  margin: 0;
  font-family: var(--f-tag);
  font-weight: 400;
  font-size: clamp(72px, 23vw, 190px);
  line-height: .95;
  color: transparent;
  transform: rotate(-5deg);
  animation: logoIn .9s cubic-bezier(.2,1.3,.4,1) both;
}
.cover-logo::before, .cover-logo::after { content: attr(data-text); position: absolute; inset: 0; }
.cover-logo::before {
  color: var(--ink);
  -webkit-text-stroke: 14px var(--ink);
  text-shadow: 4px 4px 0 var(--ink), 8px 8px 0 var(--ink), 11px 11px 0 var(--purple), 13px 13px 0 var(--purple);
}
.cover-logo::after {
  background: linear-gradient(180deg, #fff27a 0%, #ffd23f 25%, #ff8a3d 52%, #ff2e88 78%, #c22bff 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@keyframes logoIn { from { opacity: 0; transform: rotate(-5deg) scale(.7); filter: blur(8px); } }
.cover-sub {
  margin: 4px 0 0;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Just In ---------- */
.justin { padding: 26px 0 8px; }
.justin-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 var(--g) 12px; }
.justin-head h2 {
  display: flex; align-items: center; gap: 10px;
  margin: 0;
  font-family: var(--f-head); font-weight: 400; font-size: 28px; letter-spacing: .02em; text-transform: uppercase;
}
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(255,46,136,.7); animation: ping2 1.6s infinite; }
@keyframes ping2 { 70% { box-shadow: 0 0 0 10px rgba(255,46,136,0); } 100% { box-shadow: 0 0 0 0 rgba(255,46,136,0); } }
.justin-note { font-size: 12px; color: var(--dim); }

/* ---------- Rails ---------- */
.rail {
  display: flex; gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--g);
  padding: 2px var(--g) 14px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }

.jcard { width: 230px; }
.jcard .ph { aspect-ratio: 1 / 1; border-radius: 14px; }
.jcard h3 { margin: 10px 0 4px; font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* photo wrapper */
.ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
}
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .4s ease; opacity: 0; }
.ph img.ok { opacity: 1; }
.ph.broken { background: linear-gradient(135deg, var(--a, var(--pink)), var(--b, var(--purple))); }
.ph.broken img { display: none; }
@media (hover: hover) { a:hover .ph img { transform: scale(1.05); } }
.badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(7,4,13,.72);
  backdrop-filter: blur(6px);
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c, var(--yellow));
}
.meta { font-size: 12px; color: var(--dim); font-weight: 600; }
.meta b { color: var(--muted); font-weight: 700; }

/* ---------- Topic sections ---------- */
.topic { position: relative; padding: 44px 0 18px; }
.topic + .topic::before {
  content: ""; position: absolute; top: 0; left: var(--g); right: var(--g); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.topic-head { padding: 0 var(--g); margin-bottom: 16px; }
.topic-title { position: relative; display: flex; align-items: flex-end; gap: 10px; }
.topic-num {
  font-family: var(--f-head); font-size: 15px; letter-spacing: .1em;
  color: var(--a);
  padding-bottom: 12px;
}
.topic-title h2 {
  margin: 0;
  font-family: var(--f-head); font-weight: 400;
  font-size: clamp(64px, 20vw, 136px);
  line-height: .86;
  letter-spacing: -.005em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, #fff 40%, var(--a) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.topic-script {
  position: absolute;
  right: 0; top: -6px;
  font-family: var(--f-tag);
  font-size: clamp(30px, 9vw, 64px);
  line-height: 1;
  color: var(--a);
  transform: rotate(-8deg);
  text-shadow: 2px 2px 0 var(--ink), 4px 4px 0 rgba(0,0,0,.35);
  white-space: nowrap;
  pointer-events: none;
}
.topic-src { margin: 10px 0 0; font-size: 12px; color: var(--dim); font-weight: 600; }

.chips {
  display: flex; gap: 8px;
  overflow-x: auto;
  margin: 14px calc(var(--g) * -1) 0;
  padding: 0 var(--g) 2px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 13px; font-weight: 700;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.chip i { font-style: normal; font-size: 11px; color: var(--dim); font-weight: 700; }
.chip[aria-pressed="true"] {
  background: linear-gradient(120deg, var(--a), var(--b));
  border-color: transparent;
  color: var(--ink);
}
.chip[aria-pressed="true"] i { color: rgba(7,4,13,.65); }

.topic-body { display: grid; gap: 14px; }

/* feature card */
.feature { display: block; margin: 0 var(--g); position: relative; }
.feature .ph {
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 40px rgba(0,0,0,.45);
}
.feature .ph::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,4,13,0) 30%, rgba(7,4,13,.55) 60%, rgba(7,4,13,.96) 100%);
}
.feature-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 16px 18px; }
.feature-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  background: linear-gradient(120deg, var(--a), var(--b));
  color: var(--ink);
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.feature h3 {
  margin: 0 0 8px;
  font-family: var(--f-head); font-weight: 400;
  font-size: clamp(28px, 8vw, 44px);
  line-height: 1.02;
  letter-spacing: .005em;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.feature p { margin: 0 0 10px; font-size: 14px; color: #d9cff1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feature .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 3; background: linear-gradient(90deg, var(--a), var(--b)); }

/* rail card */
.card { width: 76vw; max-width: 300px; }
.card .ph { aspect-ratio: 4 / 3; border-radius: 14px; }
.card h3 { margin: 10px 0 5px; font-size: 15px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* list rows */
.list { display: grid; gap: 2px; margin: 0 var(--g); }
.row {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.row .ph { width: 96px; height: 96px; border-radius: 12px; }
.row h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: calc(100% - var(--g) * 2);
  height: 48px;
  margin: 14px var(--g) 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--a);
}
.more[hidden] { display: none; }
.empty { margin: 0 var(--g); padding: 28px 16px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); text-align: center; font-size: 14px; }

/* skeletons */
.sk { position: relative; overflow: hidden; background: var(--panel); }
.sk::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.06) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-feature { margin: 0 var(--g); aspect-ratio: 4 / 5; border-radius: var(--r); }

/* ---------- Market (in The Bag) ---------- */
.coins { padding-top: 2px; }
.coin {
  width: 168px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
}
.coin-top { display: flex; align-items: center; gap: 8px; }
.coin-top img { width: 26px; height: 26px; border-radius: 50%; }
.coin-top b { font-size: 13px; letter-spacing: .04em; }
.coin-top small { display: block; font-size: 11px; color: var(--dim); font-weight: 600; }
.coin-price { margin-top: 10px; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.coin-chg { font-size: 12px; font-weight: 800; }
.coin-chg.up { color: var(--lime); }
.coin-chg.down { color: #ff5d8f; }
.coin svg { display: block; width: 100%; height: 36px; margin-top: 8px; }

/* ---------- Instagram embeds ---------- */
.ig-wrap { margin: 18px var(--g) 0; }
.ig-wrap h4 { margin: 0 0 10px; font-family: var(--f-head); font-weight: 400; font-size: 22px; text-transform: uppercase; letter-spacing: .03em; }
.ig-grid { display: grid; gap: 14px; }
.ig-grid .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; border-radius: 14px !important; }

/* ---------- Footer ---------- */
.footer { padding: 40px var(--g) 16px; text-align: center; color: var(--dim); font-size: 12px; }
.footer-logo {
  font-family: var(--f-tag); font-size: 56px; line-height: 1;
  background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: rotate(-5deg);
  filter: drop-shadow(3px 3px 0 var(--ink));
}
.footer p { max-width: 36ch; margin: 14px auto 0; }

/* ---------- Dock ---------- */
.dock {
  position: fixed; left: 50%; bottom: calc(10px + var(--safe-b)); z-index: 70;
  display: flex; gap: 2px;
  width: min(calc(100% - 20px), 460px);
  height: var(--dock-h);
  padding: 5px;
  transform: translateX(-50%);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(16,10,30,.86);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 12px 30px rgba(0,0,0,.55);
}
.dock a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 15px;
  color: var(--muted);
  transition: background .25s, color .25s;
  -webkit-tap-highlight-color: transparent;
}
.dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dock small { font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.dock a.active { color: var(--ink); background: var(--sunset); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-h) + 24px + var(--safe-b)); z-index: 80;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--yellow); color: var(--ink);
  font-size: 14px; font-weight: 800;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .3s cubic-bezier(.2,1.4,.4,1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  :root { --g: 28px; }
  .mosaic { grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(140px, 25vh, 250px); gap: 10px; transform: rotate(-2deg) scale(1.03); }
  .tile:nth-child(1) { grid-column: 1 / 6;  grid-row: 1 / 3; }
  .tile:nth-child(2) { grid-column: 6 / 9;  grid-row: 1 / 2; }
  .tile:nth-child(3) { grid-column: 9 / 13; grid-row: 1 / 2; }
  .tile:nth-child(4) { grid-column: 6 / 10; grid-row: 2 / 3; }
  .tile:nth-child(5) { grid-column: 10 / 13; grid-row: 2 / 3; }
  .tile:nth-child(6) { grid-column: 1 / 7;  grid-row: 3 / 4; }
  .tile:nth-child(7) { grid-column: 7 / 13; grid-row: 3 / 4; }
  .tile-tag { font-size: 18px; left: 12px; bottom: 12px; }
  .cover-brand { margin-top: -96px; }
  .topic-body { grid-template-columns: 1.35fr 1fr; align-items: start; column-gap: 24px; padding: 0 var(--g); }
  .topic-body .feature, .topic-body .list, .topic-body .sk-feature { margin: 0; }
  .feature .ph, .sk-feature { aspect-ratio: 16 / 11; }
  .topic-body .rail { grid-column: 1 / -1; order: 3; margin: 0 calc(var(--g) * -1); }
  .card { width: 280px; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  main, .footer { max-width: 1280px; margin: 0 auto; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Splash: tag on a wall + loading bar ---------- */
html.splashing, html.splashing body { overflow: hidden; }
html.splashing .cover-logo { animation-play-state: paused; }
.splash {
  position: fixed; inset: 0; z-index: 190;
  display: grid; place-items: center;
  padding: 16px;
  background:
    radial-gradient(55% 40% at 50% 40%, rgba(255,46,136,.17), transparent 70%),
    radial-gradient(45% 35% at 28% 68%, rgba(139,61,255,.15), transparent 70%),
    radial-gradient(130% 95% at 50% 45%, transparent 50%, rgba(0,0,0,.75)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48'%3E%3Cpath d='M0 1H96M0 25H96M1 1V25M49 25V49' fill='none' stroke='%23fff' stroke-opacity='.045' stroke-width='2'/%3E%3C/svg%3E"),
    var(--ink);
  clip-path: inset(0 0 0 0);
  transition: clip-path .8s cubic-bezier(.76,0,.24,1);
  animation: splashKill .4s 12s forwards;      /* failsafe if JS never runs */
  -webkit-user-select: none; user-select: none;
  touch-action: none;
  cursor: default;
}
.splash.out { clip-path: inset(0 0 100% 0); }
@keyframes splashKill { to { opacity: 0; visibility: hidden; } }
.splash-stage {
  width: min(100%, 860px);
  display: flex; flex-direction: column; align-items: center;
  transition: transform .8s cubic-bezier(.76,0,.24,1), opacity .5s;
}
.splash.out .splash-stage { transform: translateY(-6%) scale(.96); opacity: 0; }
.splash-tag { display: block; width: 100%; aspect-ratio: 5 / 3; }
.splash-stage.tagged .splash-tag { animation: tagPop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes tagPop { 35% { transform: scale(1.035) rotate(-.5deg); } }
.splash-sub {
  margin: -4% 0 0;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  opacity: 0; transform: translateY(8px);
  transition: opacity .6s, transform .6s;
}
.splash-stage.tagged .splash-sub { opacity: 1; transform: none; }

.splash-load { width: min(100%, 420px); margin-top: 30px; }
.splash-meta { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; }
.splash-msg {
  font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.splash-msg::after { content: "_"; margin-left: 2px; color: var(--pink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.splash-pct {
  min-width: 3.4ch; text-align: right;
  font-family: var(--f-head); font-size: 34px; line-height: .9;
  font-variant-numeric: tabular-nums;
  background: var(--sunset);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.splash-pct b { font-weight: 400; }
.splash-pct small { font-size: 16px; margin-left: 2px; }

.splash-glow { filter: drop-shadow(0 0 10px rgba(255,46,136,.55)) drop-shadow(0 0 22px rgba(139,61,255,.35)); }
.splash-bar {
  --p: 0;
  position: relative;
  height: 14px;
  transform: skewX(-14deg);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.09) 0 1px, transparent 1px 10%),
    rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.splash-fill {
  position: absolute; inset: 0;
  background:
    linear-gradient(-45deg, rgba(7,4,13,.22) 25%, transparent 25% 50%, rgba(7,4,13,.22) 50% 75%, transparent 75%),
    linear-gradient(180deg, rgba(255,255,255,.35), transparent 45%),
    var(--sunset);
  background-size: 18px 18px, 100% 100%, 100% 100%;
  clip-path: inset(0 calc(100% - var(--p) * 1%) 0 0);
  animation: stripes .5s linear infinite;
}
@keyframes stripes { to { background-position: 18px 0, 0 0, 0 0; } }
.splash-spark {
  position: absolute; top: 50%; left: calc(var(--p) * 1%);
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 16%, #fff27a 30%, rgba(255,138,61,.6) 48%, rgba(255,46,136,0) 70%);
  transform: skewX(14deg);
  animation: flicker .14s steps(2) infinite alternate;
  transition: opacity .4s, scale .4s;
}
.splash-spark::before {             /* ember trail */
  content: ""; position: absolute; right: 60%; top: 50%;
  width: 46px; height: 2px; margin-top: -1px;
  background: linear-gradient(90deg, transparent, rgba(255,242,122,.9));
  border-radius: 2px;
}
@keyframes flicker { from { scale: .82; opacity: .85; } to { scale: 1.15; opacity: 1; } }
.splash-bar.full .splash-spark { opacity: 0; scale: 2.6; animation: none; }
.splash-bar.full .splash-fill { animation: stripes .5s linear infinite, barFlash .6s ease-out; }
@keyframes barFlash { 0% { filter: brightness(2.2) saturate(1.4); } }
.splash-drips { position: relative; height: 0; }
.bdrip {
  position: absolute; top: -1px;
  width: 4px; height: 0; margin-left: -2px;
  background: var(--c);
  border-radius: 0 0 3px 3px;
  transition: height 1.4s cubic-bezier(.2,.8,.2,1);
}
.bdrip::after {
  content: ""; position: absolute; left: 50%; bottom: -4px;
  width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%;
  background: var(--c);
  opacity: 0; transition: opacity .3s;
}
.bdrip.on { height: var(--h); }
.bdrip.on::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
}
