/* ==========================================================================
   FomoMe — styles
   Palette: ink (deep navy page), pupil (true black video stage), sclera (pale),
   iris (brand/action), gold (up votes, pot, winners), vein (down votes, live, danger).
   Type: Anybody (width axis 50–150) for numbers & display, Instrument Sans for UI.
   ========================================================================== */

@font-face {
  font-family: "Anybody";
  src: url("/assets/fonts/anybody.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  src: url("/assets/fonts/instrument-sans-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --ink: #0b091f;
  --pupil: #000000;
  --sclera: #eaedff;
  --iris: #2f47ff;
  --iris-hi: #4a5fff;
  --iris-pale: #9aa8ff;
  --gold: #ffc21a;
  --gold-deep: #e0a400;
  --vein: #ff3b5c;
  --ash: #8c93a3;
  --ash-2: #5d6474;
  --line: rgba(234, 237, 255, 0.14);
  --line-2: rgba(234, 237, 255, 0.08);
  --sheet: #14122e;
  --sheet-2: #1c1a3c;
  --sheet-3: #27244c;

  --f-display: "Anybody", "Arial Narrow", system-ui, sans-serif;
  --f-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-12: 0.75rem;
  --t-13: 0.8125rem;
  --t-14: 0.875rem;
  --t-16: 1rem;
  --t-20: 1.25rem;
  --t-25: 1.5625rem;
  --t-31: 1.953rem;
  --t-39: 2.441rem;
  --t-49: 3.052rem;
  --t-61: 3.815rem;
  --t-76: 4.768rem;

  --r-s: 10px;
  --r-m: 14px;
  --r-l: 22px;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 0px;
  --tabbar-h: calc(58px + env(safe-area-inset-bottom));
  --gutter: 16px;
  color-scheme: dark;
}

@media (min-width: 900px) {
  :root {
    --header-h: 64px;
    --tabbar-h: 0px;
    --gutter: 32px;
  }
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--ink); }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--sclera);
  font-family: var(--f-text);
  font-size: var(--t-16);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--iris-pale);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--iris); color: #fff; }

.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--iris);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--r-s);
  font-weight: 600;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.noscript { padding: 40px var(--gutter); color: var(--ash); }

#main { outline: none; min-height: calc(100dvh - var(--header-h) - var(--tabbar-h)); padding-bottom: var(--tabbar-h); }
body[data-page="feed"] #main { padding-bottom: 0; }

.num {
  font-family: var(--f-display);
  font-stretch: 62%;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.ico { width: 1.25em; height: 1.25em; flex: none; }
[data-eye-slot] { display: block; }
[data-eye-slot] canvas, [data-eye-slot] svg { display: block; width: 100%; height: 100%; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--t-14);
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.15s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--iris); color: #fff; }
.btn-primary:hover:not([disabled]) { background: var(--iris-hi); }
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover:not([disabled]) { background: #ffcf4d; }
.btn-quiet { border: 1px solid var(--line); color: var(--sclera); }
.btn-quiet:hover:not([disabled]) { border-color: rgba(234, 237, 255, 0.4); }
.btn-danger { background: transparent; border: 1px solid rgba(255, 59, 92, 0.5); color: var(--vein); }
.btn-lg { height: 54px; padding: 0 26px; font-size: var(--t-16); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg svg { width: 20px; height: 20px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--t-13);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: border-color 0.18s;
}
.chip:hover { border-color: rgba(234, 237, 255, 0.35); }
.chip .ico { width: 15px; height: 15px; }
.chip-pot { color: var(--gold); border-color: rgba(255, 194, 26, 0.35); }
.chip-pot:hover { border-color: var(--gold); }
.chip-pot .dot, .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.live-dot { background: var(--vein); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: 0.35; } }

.link { color: var(--iris-pale); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: #fff; }

/* ---------- top bar (desktop) ---------- */
.topbar { display: none; }

@media (min-width: 900px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 28px;
    height: var(--header-h);
    padding: 0 20px 0 14px;
    background: var(--pupil);
    border-bottom: 1px solid var(--line-2);
  }
}

.brand { display: flex; align-items: center; gap: 8px; }
.brand-eye { width: 40px; height: 40px; flex: none; display: block; position: relative; }
.brand-eye canvas, .brand-eye svg { width: 100%; height: 100%; }
.brand-word {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 150%;
  font-size: 1.28rem;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  line-height: 1;
}

.topnav { display: flex; gap: 4px; }
.topnav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ash);
  font-weight: 500;
  font-size: var(--t-14);
  transition: color 0.15s;
}
.topnav a:hover { color: var(--sclera); }
.topnav a[aria-current="page"] { color: var(--sclera); }
.topnav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--iris);
}

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top-actions .btn { height: 38px; }
.btn-wallet .avatar { width: 18px; height: 18px; border-radius: 50%; }
@media (max-width: 1240px) { .chip-ca { display: none; } }

/* ---------- mobile top line for non-feed pages ---------- */
.mhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
  padding: env(safe-area-inset-top) var(--gutter) 0;
  box-sizing: content-box;
}
.mhead .brand-eye { width: 34px; height: 34px; }
.mhead .brand-word { font-size: 1.05rem; }
@media (min-width: 900px) { .mhead { display: none; } }

/* ---------- tab bar (mobile) ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: var(--tabbar-h);
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: var(--pupil);
  border-top: 1px solid var(--line-2);
}
@media (min-width: 900px) { .tabbar { display: none; } }
.tabbar > a, .tabbar > button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--ash);
  -webkit-tap-highlight-color: transparent;
}
.tabbar [data-icon] { width: 22px; height: 22px; }
.tabbar [data-icon] svg { width: 100%; height: 100%; }
.tabbar a[aria-current="page"], .tabbar button[aria-current="page"] { color: var(--sclera); }
.tabbar .tab-plus .plus {
  width: 50px;
  height: 34px;
  border-radius: 11px;
  background: var(--iris);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease-spring);
}
.tabbar .tab-plus .plus svg { width: 22px; height: 22px; }
.tabbar .tab-plus:active .plus { transform: scale(0.92); }
.tabbar .tab-plus[aria-current="page"] .plus { background: var(--sclera); color: #000; }

/* ---------- modal / sheet ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  animation: fade-in 0.2s ease;
}
.modal-panel {
  position: relative;
  width: 100%;
  max-height: 88dvh;
  overflow: auto;
  background: var(--sheet);
  border: 1px solid var(--line-2);
  border-radius: var(--r-l) var(--r-l) 0 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  animation: sheet-up 0.32s var(--ease-out);
}
@media (min-width: 640px) {
  .modal { align-items: center; padding: 24px; }
  .modal-panel { max-width: 440px; border-radius: var(--r-l); padding: 26px; animation: pop-in 0.26s var(--ease-out); }
}
.modal-panel.wide { max-width: 560px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.modal-title { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: var(--t-25); line-height: 1.1; letter-spacing: -0.01em; }
.modal-sub { color: var(--ash); font-size: var(--t-14); margin-top: 6px; }
.modal-x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ash); flex: none; margin: -6px -6px 0 0; }
.modal-x:hover { color: var(--sclera); background: var(--sheet-2); }
.modal-x svg { width: 18px; height: 18px; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(40%); opacity: 0; } }
@keyframes pop-in { from { transform: translateY(12px) scale(0.98); opacity: 0; } }

.wallet-list { display: grid; gap: 8px; }
.wallet-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-m);
  background: var(--sheet-2);
  border: 1px solid transparent;
  text-align: left;
  font-weight: 600;
  transition: border-color 0.15s, background-color 0.15s;
}
.wallet-opt:hover { border-color: var(--line); background: var(--sheet-3); }
.wallet-opt img, .wallet-opt .wallet-fallback { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.wallet-opt .wallet-fallback { display: grid; place-items: center; background: var(--iris); color: #fff; }
.wallet-opt .wallet-fallback svg { width: 18px; height: 18px; }
.wallet-opt small { display: block; color: var(--ash); font-weight: 500; font-size: var(--t-12); }
.wallet-opt .go { margin-left: auto; color: var(--ash); width: 16px; height: 16px; }
.modal-note { margin-top: 16px; font-size: var(--t-13); color: var(--ash); }

.steps-live { display: grid; gap: 12px; margin: 8px 0 4px; }
.step-live { display: flex; align-items: center; gap: 12px; color: var(--ash); font-weight: 500; }
.step-live .mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.step-live .mark svg { width: 14px; height: 14px; }
.step-live[data-state="active"] { color: var(--sclera); }
.step-live[data-state="active"] .mark { border-color: var(--iris-pale); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.step-live[data-state="done"] { color: var(--sclera); }
.step-live[data-state="done"] .mark { border-color: var(--iris); background: var(--iris); color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* profile sheet */
.me-head { display: flex; align-items: center; gap: 14px; }
.me-avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.me-addr { font-weight: 700; font-size: var(--t-20); font-variant-numeric: tabular-nums; }
.me-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.me-stat { background: var(--sheet-2); border-radius: var(--r-m); padding: 12px 14px; }
.me-stat .k { font-size: var(--t-12); color: var(--ash); }
.me-stat .v { font-family: var(--f-display); font-weight: 800; font-stretch: 70%; font-size: var(--t-25); line-height: 1.15; font-variant-numeric: tabular-nums; }
.me-stat .v.gold { color: var(--gold); }
.me-sec { margin-top: 18px; }
.me-sec h3 { font-size: var(--t-14); font-weight: 600; color: var(--ash); margin-bottom: 8px; }
.me-entry { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.me-entry img, .me-entry .ph { width: 36px; height: 54px; object-fit: cover; border-radius: 6px; background: var(--sheet-2); flex: none; }
.me-entry .t { flex: 1; min-width: 0; font-size: var(--t-14); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-entry .s { font-size: var(--t-13); color: var(--ash); white-space: nowrap; }
.me-actions { display: flex; gap: 10px; margin-top: 20px; }

/* action sheet (share / more) */
.actions { display: grid; gap: 6px; }
.action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--r-m);
  background: var(--sheet-2);
  font-weight: 600;
  text-align: left;
}
.action:hover { background: var(--sheet-3); }
.action svg { width: 20px; height: 20px; color: var(--ash); flex: none; }
.action.danger { color: var(--vein); }
.action.danger svg { color: var(--vein); }

/* ---------- toasts ---------- */
#toasts {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 16px);
  transform: translateX(-50%);
  z-index: 90;
  display: grid;
  gap: 8px;
  justify-items: center;
  width: min(92vw, 440px);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--sheet-2);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: var(--t-14);
  font-weight: 500;
  pointer-events: auto;
  animation: toast-in 0.3s var(--ease-out);
}
.toast.out { animation: toast-out 0.25s ease forwards; }
.toast .ico { width: 18px; height: 18px; }
.toast.ok .ico { color: var(--gold); }
.toast.error .ico { color: var(--vein); }
.toast button { color: var(--iris-pale); font-weight: 600; margin-left: 4px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

#fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 70; }

/* ==========================================================================
   FEED
   ========================================================================== */
body[data-page="feed"] { overflow: hidden; }
body[data-page="feed"] .skip:focus { top: 70px; }

.feed {
  position: relative;
  height: calc(100dvh - var(--header-h) - var(--tabbar-h));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.stage { position: relative; height: 100%; min-width: 0; }

.scroller {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }

.slide {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.backdrop {
  position: absolute;
  inset: -60px;
  background-position: center;
  background-size: cover;
  filter: blur(38px) brightness(0.42) saturate(1.3);
  transform: scale(1.05);
  z-index: 0;
}
.media { position: absolute; inset: 0; z-index: 1; }
.media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}
.media.is-vertical video { object-fit: cover; }
.media iframe { position: absolute; border: 0; }
.media.yt iframe { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100%; height: auto; aspect-ratio: 16 / 9; }
.media.yt.is-vertical iframe { width: auto; height: 100%; aspect-ratio: 9 / 16; min-width: 100%; }
.media.xe iframe { inset: 0; width: 100%; height: 100%; background: #000; }
.media .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.4s;
}
.media.is-vertical .poster { object-fit: cover; }
.media.playing .poster { opacity: 0; }

.scrim { position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; }
.scrim.top { top: 0; height: 22%; background: linear-gradient(rgba(0, 0, 0, 0.55), transparent); }
.scrim.bottom { bottom: 0; height: 46%; background: linear-gradient(transparent, rgba(0, 0, 0, 0.72)); }

.tap { position: absolute; inset: 0; z-index: 3; -webkit-tap-highlight-color: transparent; }
.tap.interact { pointer-events: none; }

.paused-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.25s var(--ease-spring);
  pointer-events: none;
}
.paused-mark svg { width: 34px; height: 34px; margin-left: 4px; }
.slide.is-paused .paused-mark { opacity: 1; transform: scale(1); }

.spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  opacity: 0;
  transition: opacity 0.2s 0.4s;
  pointer-events: none;
}
.slide.is-buffering .spinner { opacity: 1; }

.media-error {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(0, 0, 0, 0.78);
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: var(--sclera);
}
.media-error p { max-width: 26ch; color: var(--ash); }

/* meta (bottom left) */
.meta {
  position: absolute;
  left: 14px;
  right: 104px;
  bottom: 18px;
  z-index: 5;
  display: grid;
  gap: 6px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.meta a, .meta button { pointer-events: auto; }
.meta-author { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--t-16); }
.meta-author img { width: 26px; height: 26px; border-radius: 50%; }
.meta-author .src { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); }
.meta-author .src svg { width: 13px; height: 13px; }
.meta-caption {
  font-size: var(--t-14);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 46ch;
}
.meta-by { font-size: var(--t-12); color: rgba(234, 237, 255, 0.72); font-variant-numeric: tabular-nums; }
.meta-by b { color: var(--sclera); font-weight: 600; }

.phase-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--iris);
  color: #fff;
  font-size: var(--t-13);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.phase-tag.done { background: var(--sheet-3); }
.phase-tag svg { width: 16px; height: 16px; }

/* rail (right) */
.rail {
  position: absolute;
  right: 10px;
  bottom: 16px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.rail-gap { height: 6px; }

.vote {
  --size: 74px;
  position: relative;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--sclera);
  background: rgba(0, 0, 0, 0.38);
  border: 2.5px solid rgba(234, 237, 255, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.2s var(--ease-spring), background-color 0.2s, border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.vote svg { width: 46%; height: 46%; transition: transform 0.3s var(--ease-spring); }
.vote::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 3px solid currentColor;
  opacity: 0;
  pointer-events: none;
}
@media (hover: hover) {
  .vote.up:hover { border-color: var(--gold); }
  .vote.up:hover svg { transform: translateY(-3px); }
  .vote.down:hover { border-color: var(--vein); }
  .vote.down:hover svg { transform: translateY(3px); }
}
.vote:active { transform: scale(0.88); }
.vote.up[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #000; }
.vote.down[aria-pressed="true"] { background: var(--vein); border-color: var(--vein); color: #fff; }
.vote[aria-disabled="true"] { opacity: 0.4; }
.vote.pop::after { animation: shock 0.6s var(--ease-out); }
.vote.up.pop svg { animation: launch 0.6s var(--ease-out); }
.vote.down.pop { animation: flinch 0.42s ease; }
.vote.down.pop svg { animation: drop 0.6s var(--ease-out); }
@keyframes shock { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.8); } }
@keyframes launch {
  0% { transform: translateY(0); }
  30% { transform: translateY(-85%); opacity: 0; }
  31% { transform: translateY(85%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes drop {
  0% { transform: translateY(0); }
  30% { transform: translateY(85%); opacity: 0; }
  31% { transform: translateY(-85%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes flinch {
  0%, 100% { translate: 0; }
  20% { translate: -5px; }
  40% { translate: 5px; }
  60% { translate: -3px; }
  80% { translate: 2px; }
}

.score {
  min-width: 64px;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 60%;
  font-size: 1.9rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 16px rgba(0, 0, 0, 0.45);
  cursor: default;
}
.score.neg { color: #fff; }
.score-split { font-size: var(--t-12); color: rgba(234, 237, 255, 0.75); font-variant-numeric: tabular-nums; margin-top: -4px; white-space: nowrap; }

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--sclera);
  background: rgba(0, 0, 0, 0.34);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.15s, transform 0.15s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.14); }
.icon-btn:active { transform: scale(0.9); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.on { color: var(--gold); }

/* digit roller */
.roll { display: inline-flex; line-height: 1; height: 1em; overflow: hidden; vertical-align: top; }
.roll .d { display: inline-block; height: 1em; overflow: hidden; }
.roll .d > span { display: block; transition: transform 0.55s var(--ease-out); }
.roll .d > span > i { display: block; height: 1em; font-style: normal; text-align: center; }
.roll .c { display: inline-block; }

/* HUD (mobile + tablet) */
.hud {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: calc(env(safe-area-inset-top) + 10px) 12px 0;
  pointer-events: none;
}
.hud > * { pointer-events: auto; }
.hud-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hud-left .brand-eye { width: 34px; height: 34px; }
.hud-clock {
  display: flex;
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 64%;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.hud-tabs { display: flex; gap: 4px; justify-self: center; }
.hud-tabs button {
  position: relative;
  padding: 6px 10px;
  font-weight: 700;
  font-size: var(--t-16);
  color: rgba(234, 237, 255, 0.6);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.hud-tabs button[aria-pressed="true"] { color: #fff; }
.hud-tabs button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 3px;
  margin-left: -11px;
  border-radius: 2px;
  background: #fff;
}
.hud-right { justify-self: end; }
/* On a phone the clock, the tabs and the pot chip fight for one line: drop the
   decorative brand eye and tighten the type so nothing collides. */
@media (max-width: 430px) {
  .hud-left .brand-eye { display: none; }
  .hud-clock { font-size: 1.02rem; }
  .hud-tabs button { font-size: var(--t-14); padding: 6px 8px; }
  .hud-info { width: 30px; height: 30px; margin-right: 4px; }
  .hud .chip-pot { height: 30px; padding: 0 10px; font-size: var(--t-13); }
}
.hud .chip-pot { background: rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); height: 32px; }

.sound-hint {
  position: absolute;
  left: 50%;
  top: calc(env(safe-area-inset-top) + 62px);
  z-index: 9;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: var(--t-13);
  font-weight: 600;
  animation: toast-in 0.4s var(--ease-out) 0.8s both;
}
.sound-hint svg { width: 16px; height: 16px; }

.paused-banner {
  position: absolute;
  left: 50%;
  top: calc(env(safe-area-inset-top) + 58px);
  transform: translateX(-50%);
  z-index: 9;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--vein);
  color: #fff;
  font-size: var(--t-13);
  font-weight: 600;
  white-space: nowrap;
}

/* stepper (desktop) */
.stepper { display: none; }

/* board (desktop left column) */
.board { display: none; }

/* ---------- feed on wide screens ---------- */
@media (min-width: 900px) {
  .feed { grid-template-columns: minmax(0, 1fr) 88px; }
  .slide {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 20px 0;
    container-type: size;
  }
  .frame {
    position: relative;
    inset: auto;
    flex: none;
    --w: min(calc(100cqw - 150px), calc(100cqh * var(--ar, 0.5625)));
    width: var(--w);
    height: calc(var(--w) / var(--ar, 0.5625));
    border-radius: 18px;
    box-shadow: 0 0 0 1px var(--line-2);
  }
  .media.is-vertical video { object-fit: contain; }
  .media.yt.is-vertical iframe { width: 100%; height: 100%; min-width: 0; }
  .meta { right: 18px; left: 18px; bottom: 18px; }
  .rail {
    position: static;
    align-self: center;
    gap: 12px;
  }
  .vote { --size: 92px; background: transparent; border-color: rgba(234, 237, 255, 0.35); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .score { font-size: 2.6rem; min-width: 92px; }
  .icon-btn { background: var(--sheet-2); }
  .icon-btn:hover { background: var(--sheet-3); }
  .hud { padding-top: 16px; }
  .hud-left .brand-eye { display: none; }

  .stepper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .stepper button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--sheet-2);
    color: var(--sclera);
    transition: background-color 0.15s, opacity 0.15s;
  }
  .stepper button:hover { background: var(--sheet-3); }
  .stepper button[disabled] { opacity: 0.3; cursor: default; }
  .stepper svg { width: 22px; height: 22px; }
  .stepper .pos { font-size: var(--t-12); color: var(--ash); font-variant-numeric: tabular-nums; }
}

@media (min-width: 1180px) {
  .feed { grid-template-columns: 340px minmax(0, 1fr) 88px; }
  .hud { display: none; }
  .board {
    display: flex;
    flex-direction: column;
    gap: 26px;
    height: 100%;
    overflow-y: auto;
    padding: 28px 28px 32px;
    border-right: 1px solid var(--line-2);
    scrollbar-width: thin;
  }
}

.board-round { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--t-14); }
.board-round .muted { color: var(--ash); font-weight: 500; }
.board-clock {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 54%;
  font-size: 5.1rem;
  line-height: 0.86;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-top: 10px;
}
.board-clock .sep { opacity: 0.35; margin: 0 0.03em; }
.board-cap { color: var(--ash); font-size: var(--t-14); margin-top: 8px; }
.board-pot { padding-top: 22px; border-top: 1px solid var(--line-2); }
.board-pot .k { font-size: var(--t-14); color: var(--ash); }
.board-pot .v {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
  color: var(--gold);
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 62%;
  font-size: 3rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.board-pot .v small { font-size: 1.15rem; font-stretch: 100%; font-weight: 700; }
.board-pot .usd { color: var(--ash); font-size: var(--t-14); margin-top: 6px; font-variant-numeric: tabular-nums; }
.board-sec { padding-top: 22px; border-top: 1px solid var(--line-2); }
.board-sec h2 { font-size: var(--t-14); font-weight: 600; color: var(--ash); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.board-sec h2 a { color: var(--iris-pale); font-weight: 600; }

.lead-row {
  display: grid;
  grid-template-columns: 22px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-radius: 8px;
  cursor: pointer;
}
.lead-row:hover .t { color: #fff; }
.lead-row .r { font-family: var(--f-display); font-weight: 800; font-stretch: 60%; font-size: 1.35rem; color: var(--ash); text-align: center; }
.lead-row:first-child .r { color: var(--gold); }
.lead-row img, .lead-row .ph { width: 34px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--sheet-2); }
.lead-row .t { font-size: var(--t-14); font-weight: 500; color: rgba(234, 237, 255, 0.86); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-row .t small { display: block; font-size: var(--t-12); color: var(--ash); }
.lead-row .s { font-family: var(--f-display); font-weight: 800; font-stretch: 62%; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.lead-row.is-current { background: var(--sheet); box-shadow: -8px 0 0 var(--sheet), 8px 0 0 var(--sheet); }

.board-cta { display: grid; gap: 10px; }
.board-cta p { font-size: var(--t-13); color: var(--ash); }

.activity { display: grid; gap: 10px; }
.act { display: flex; gap: 10px; align-items: baseline; font-size: var(--t-13); color: var(--ash); animation: act-in 0.45s var(--ease-out); }
.act b { color: var(--sclera); font-weight: 600; }
.act .i { width: 14px; flex: none; text-align: center; font-weight: 800; }
.act .i.up { color: var(--gold); }
.act .i.down { color: var(--vein); }
.act .i.new { color: var(--iris-pale); }
.act .when { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: var(--t-12); color: var(--ash-2); }
.act .what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@keyframes act-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- test card (nothing on air) ---------- */
.standby {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 90px var(--gutter) 40px;
  overflow: hidden;
}
.standby-bars {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 66% 8% 26%;
  opacity: 0.2;
}
.standby-bars .row { display: grid; grid-template-columns: repeat(7, 1fr); }
.standby-bars .row span:nth-child(1) { background: var(--sclera); }
.standby-bars .row span:nth-child(2) { background: var(--gold); }
.standby-bars .row span:nth-child(3) { background: var(--iris-pale); }
.standby-bars .row span:nth-child(4) { background: var(--ash); }
.standby-bars .row span:nth-child(5) { background: #ff7a93; }
.standby-bars .row span:nth-child(6) { background: var(--vein); }
.standby-bars .row span:nth-child(7) { background: var(--iris); }
.standby-bars .row.rev { direction: rtl; }
.standby-bars .row.low span { opacity: 0.5; }
.standby-card {
  position: relative;
  width: min(100%, 460px);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding: 34px 26px 28px;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 0 0 1px var(--line);
}
.standby-eye { width: 168px; height: 168px; margin-top: -4px; }
.standby-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 138%;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.standby p { color: var(--ash); max-width: 34ch; }
.standby .num-big { font-family: var(--f-display); font-weight: 800; font-stretch: 56%; font-size: 3.6rem; line-height: 0.9; font-variant-numeric: tabular-nums; }
.standby-strip { display: flex; gap: 6px; margin-top: 4px; }
.standby-strip img, .standby-strip .ph { width: 38px; height: 58px; object-fit: cover; border-radius: 6px; background: var(--sheet-2); }
.standby .btn { margin-top: 6px; }


/* ---------- the premise, said plainly ---------- */
.board-explain h1 {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 122%;
  font-size: 1.42rem;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.ex-steps { list-style: none; display: grid; gap: 9px; counter-reset: ex; }
.ex-steps li {
  position: relative;
  padding-left: 26px;
  font-size: var(--t-14);
  color: var(--ash);
  counter-increment: ex;
}
.ex-steps li b { color: var(--sclera); font-weight: 600; }
.ex-steps li::before {
  content: counter(ex);
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--sclera);
}
.ex-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  font-size: var(--t-13);
  font-weight: 600;
  color: var(--iris-pale);
}
.ex-more:hover { color: var(--sclera); }
.ex-more svg { width: 15px; height: 15px; }

.hud-info {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--sclera);
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  margin-right: 6px;
}
.hud-right { display: flex; align-items: center; }
.hud-info svg { width: 17px; height: 17px; }
@media (min-width: 1180px) { .hud-info { display: none; } }

/* ---------- first-visit explainer ---------- */
.intro {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.22s var(--ease-out);
}
.intro.is-in { opacity: 1; }
.intro-card {
  width: min(100%, 470px);
  max-height: 100%;
  overflow-y: auto;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 13px;
  padding: 26px 24px 24px;
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: var(--sheet);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.28s var(--ease-spring);
}
.intro.is-in .intro-card { transform: none; }
.intro-eye { width: 96px; height: 96px; }
.intro-card .kicker { margin: 0; }
.intro-card h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 128%;
  font-size: 1.62rem;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 17ch;
}
.intro-steps { list-style: none; display: grid; gap: 12px; width: 100%; text-align: left; margin-top: 2px; }
.intro-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 12px; }
.intro-steps .i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sheet-2);
  color: var(--sclera);
}
.intro-steps .i.gold { background: var(--gold); color: #1a1200; }
.intro-steps .i svg { width: 18px; height: 18px; }
.intro-steps b { display: block; font-weight: 600; }
.intro-steps small { color: var(--ash); font-size: var(--t-13); line-height: 1.4; }
.intro-cta { display: grid; gap: 8px; width: 100%; margin-top: 6px; }
.intro-cta .btn { width: 100%; }
@media (min-width: 640px) {
  .intro-cta { grid-template-columns: 1fr auto; }
}
.standby-sub { font-size: var(--t-14); }

/* ==========================================================================
   PAGES (shared)
   ========================================================================== */
.page { max-width: 1240px; margin: 0 auto; padding: 8px var(--gutter) 64px; }
@media (min-width: 900px) { .page { padding-top: 44px; } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: 28px; }
.page-title {
  font-family: var(--f-display);
  font-weight: 850;
  font-stretch: 128%;
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.page-sub { color: var(--ash); margin-top: 12px; max-width: 58ch; }
.page-sub b { color: var(--sclera); font-weight: 600; font-variant-numeric: tabular-nums; }

.stat-row { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px; }
@media (max-width: 520px) {
  .stat-row { gap: 18px; }
  .stat .v { font-size: 1.7rem !important; }
}
.stat .k { font-size: var(--t-13); color: var(--ash); }
.stat .v { font-family: var(--f-display); font-weight: 800; font-stretch: 62%; font-size: 2.2rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat .v.gold { color: var(--gold); }
.stat .v small { font-size: 1rem; font-stretch: 100%; font-weight: 700; }

.empty {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 28px;
  border-radius: var(--r-l);
  border: 1px dashed var(--line);
  color: var(--ash);
}
.empty b { color: var(--sclera); }

.section-title { font-family: var(--f-display); font-weight: 800; font-stretch: 118%; font-size: var(--t-25); letter-spacing: -0.01em; margin-bottom: 16px; }

/* ==========================================================================
   SUBMIT
   ========================================================================== */
.submit-grid { display: grid; gap: 36px; }
@media (min-width: 980px) { .submit-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; } }

.steps { display: grid; gap: 26px; counter-reset: step; }
.step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; }
.step-n {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 80%;
  color: var(--ash);
  transition: all 0.2s;
}
.step.is-done .step-n { background: var(--iris); border-color: var(--iris); color: #fff; }
.step.is-current .step-n { border-color: var(--sclera); color: var(--sclera); }
.step h2 { font-weight: 700; font-size: var(--t-20); line-height: 1.3; margin-top: 3px; }
.step .hint { color: var(--ash); font-size: var(--t-14); margin-top: 4px; }

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 0 8px 0 16px;
  height: 58px;
  border-radius: 16px;
  background: var(--sheet);
  border: 1.5px solid var(--line);
  transition: border-color 0.15s;
}
.field:focus-within { border-color: var(--iris-pale); }
.field.is-error { border-color: var(--vein); }
.field.is-ok { border-color: rgba(154, 168, 255, 0.6); }
.field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: var(--t-16);
}
.field input::placeholder { color: var(--ash-2); }
.field .src { width: 22px; height: 22px; color: var(--ash); flex: none; }
.field .src svg { width: 100%; height: 100%; }
.field .btn { height: 42px; }
.field-msg { margin-top: 8px; font-size: var(--t-14); color: var(--ash); min-height: 1.5em; }
.field-msg.error { color: var(--vein); }
.field-msg.ok { color: var(--iris-pale); }

textarea.caption {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  min-height: 84px;
  resize: vertical;
  border-radius: 16px;
  background: var(--sheet);
  border: 1.5px solid var(--line);
  outline: 0;
  line-height: 1.45;
}
textarea.caption:focus { border-color: var(--iris-pale); }
.count { text-align: right; font-size: var(--t-12); color: var(--ash-2); margin-top: 6px; font-variant-numeric: tabular-nums; }

.cost {
  margin-top: 14px;
  padding: 20px;
  border-radius: 18px;
  background: var(--sheet);
  border: 1px solid var(--line-2);
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.cost-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.cost-amount .v { font-family: var(--f-display); font-weight: 800; font-stretch: 60%; font-size: 3.4rem; line-height: 0.95; font-variant-numeric: tabular-nums; }
.cost-amount .u { font-weight: 700; font-size: var(--t-16); }
.cost-amount .usd { color: var(--ash); font-size: var(--t-14); width: 100%; }
.cost-lines { display: grid; gap: 6px; font-size: var(--t-14); color: var(--ash); }
.cost-lines div { display: flex; justify-content: space-between; gap: 12px; }
.cost-lines b { color: var(--sclera); font-weight: 600; font-variant-numeric: tabular-nums; }
.cost-lines .bad { color: var(--vein); }
.cost .btn { width: 100%; }
.cost.burning .cost-amount .v { color: var(--gold); }

.manual { margin-top: 14px; font-size: var(--t-14); color: var(--ash); }
.manual summary { cursor: pointer; color: var(--iris-pale); font-weight: 600; list-style: none; }
.manual summary::-webkit-details-marker { display: none; }
.manual .field { height: 50px; }

.rules { display: grid; gap: 8px; margin-top: 8px; color: var(--ash); font-size: var(--t-14); }
.rules li { position: relative; padding-left: 16px; }
.rules li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--ash-2); }

.preview-col { display: grid; gap: 14px; }
@media (max-width: 979px) { .preview-col.is-empty { display: none; } }
.mini-preview { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--sheet); border: 1px solid var(--line-2); }
.mini-preview img, .mini-preview .ph { width: 40px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--sheet-2); flex: none; }
.mini-preview .t { flex: 1; min-width: 0; }
.mini-preview .t b { display: block; font-weight: 600; }
.mini-preview .t small { display: block; color: var(--ash); font-size: var(--t-13); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 980px) { .mini-preview { display: none !important; } }
@media (min-width: 980px) { .preview-col { position: sticky; top: calc(var(--header-h) + 28px); } }
.preview-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  overflow: hidden;
  background: var(--sheet);
  border: 1px solid var(--line-2);
  isolation: isolate;
}
.preview-frame .media { z-index: 1; }
.preview-frame .scrim.bottom { z-index: 2; }
.preview-frame .meta { right: 16px; z-index: 3; }
.preview-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
  color: var(--ash);
  font-size: var(--t-14);
}
.preview-empty .glyphs { display: flex; gap: 10px; color: var(--ash-2); }
.preview-empty .glyphs svg { width: 30px; height: 30px; }
.preview-cap { font-size: var(--t-13); color: var(--ash); max-width: 360px; }

.done-card {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 22px;
  background: var(--iris);
  color: #fff;
  animation: pop-in 0.4s var(--ease-out);
}
.done-card .big { font-family: var(--f-display); font-weight: 900; font-stretch: 120%; font-size: clamp(2rem, 5vw, 3rem); line-height: 0.95; letter-spacing: -0.02em; }
.done-card p { max-width: 46ch; color: rgba(255, 255, 255, 0.86); }
.done-card .pos { font-family: var(--f-display); font-weight: 800; font-stretch: 58%; font-size: 5.4rem; line-height: 0.85; font-variant-numeric: tabular-nums; }
.done-card .row { display: flex; flex-wrap: wrap; gap: 10px; }
.done-card .btn-quiet { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.done-card .btn-light { background: #fff; color: #000; }
.empty .btn { margin-top: 4px; }

.queue-sec { margin-top: 64px; }
.queue-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.queue-head p { color: var(--ash); font-size: var(--t-14); }
.queue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.qcard {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sheet);
  display: block;
}
.qcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.82)); }
.qcard .pos { position: absolute; left: 10px; top: 8px; z-index: 1; font-family: var(--f-display); font-weight: 800; font-stretch: 60%; font-size: 1.5rem; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.qcard .t { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; font-size: var(--t-12); font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qcard .t small { display: block; font-weight: 500; color: rgba(234, 237, 255, 0.7); }
.qcard.mine { box-shadow: 0 0 0 2px var(--gold); }
.qcard.mine .pos { color: var(--gold); }
.qcard.fresh { animation: drop-in 0.7s var(--ease-spring); }
@keyframes drop-in { from { transform: translateY(-30px) scale(0.9); opacity: 0; } }

/* ==========================================================================
   RANKING
   ========================================================================== */
.counting {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 26px;
  border-radius: var(--r-m);
  background: var(--sheet);
  border: 1px solid var(--line-2);
  font-size: var(--t-14);
  color: var(--ash);
}
.counting b { color: var(--sclera); }
.counting .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--iris-pale); animation: spin 0.9s linear infinite; flex: none; }

.podium { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 30px; perspective: 1200px; }
.podium > :first-child { grid-column: 1 / -1; }
.podium > :first-child .pcard { aspect-ratio: 4 / 3.3; }
@media (min-width: 760px) {
  .podium { grid-template-columns: 1fr 1.22fr 1fr; align-items: end; gap: 18px; }
  .podium > :first-child { grid-column: 2; grid-row: 1; }
  .podium > :nth-child(2) { grid-column: 1; grid-row: 1; }
  .podium > :nth-child(3) { grid-column: 3; grid-row: 1; }
}
.pcard {
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 30%;
  position: relative;
  display: block;
  aspect-ratio: 3 / 3.9;
  border-radius: 20px;
  overflow: hidden;
  background: var(--sheet);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out), box-shadow 0.3s;
  box-shadow: 0 0 0 1px var(--line-2);
}
.pcard.is-tilting { transition: transform 0.08s linear; }
.podium > :first-child .pcard { box-shadow: 0 0 0 2px var(--gold), 0 30px 80px -30px rgba(255, 194, 26, 0.35); }
@media (min-width: 760px) {
  .pcard { aspect-ratio: 3 / 3.3; }
  .podium > :first-child .pcard { aspect-ratio: 3 / 3.75; }
}
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.pcard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.88));
}
.pcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.22), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.pcard:hover::after { opacity: 1; }
.pcard .rank {
  position: absolute;
  left: 14px;
  top: 6px;
  z-index: 3;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 55%;
  font-size: 5.6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(234, 237, 255, 0.9);
  transform: translateZ(40px);
}
.podium > :first-child .rank { -webkit-text-stroke: 0; color: var(--gold); }
.pcard .info { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 3; display: grid; gap: 6px; transform: translateZ(30px); }
.pcard .t { font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .by { font-size: var(--t-12); color: rgba(234, 237, 255, 0.72); font-variant-numeric: tabular-nums; }
.pcard .sc { display: flex; align-items: baseline; gap: 10px; }
.pcard .sc .n { font-family: var(--f-display); font-weight: 800; font-stretch: 60%; font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.pcard .sc .ud { font-size: var(--t-12); color: rgba(234, 237, 255, 0.72); font-variant-numeric: tabular-nums; }
.podium > :first-child .sc .n { color: var(--gold); }
@media (max-width: 759px) {
  .pcard .rank { font-size: 4rem; }
  .pcard .sc .n { font-size: 1.9rem; }
  .podium > :not(:first-child) .pcard .t { font-size: var(--t-14); }
}

.table { display: grid; }
.trow {
  display: grid;
  grid-template-columns: 36px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 6px;
  border-top: 1px solid var(--line-2);
  position: relative;
}
.trow:hover { background: var(--sheet); border-radius: 12px; }
.trow .r { font-family: var(--f-display); font-weight: 800; font-stretch: 60%; font-size: 1.6rem; color: var(--ash); text-align: center; font-variant-numeric: tabular-nums; }
.trow img, .trow .ph { width: 40px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--sheet-2); }
.trow .t { min-width: 0; }
.trow .t b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .t small { color: var(--ash); font-size: var(--t-12); font-variant-numeric: tabular-nums; }
.trow .s { text-align: right; }
.trow .s .n { font-family: var(--f-display); font-weight: 800; font-stretch: 60%; font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.trow .s small { display: block; font-size: var(--t-12); color: var(--ash); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trow .bar { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--iris); border-radius: 2px; transition: width 0.6s var(--ease-out); }
.trow.mine .t b::after { content: " · yours"; color: var(--gold); font-weight: 600; }

.fame { margin-top: 64px; }
.frow {
  display: grid;
  grid-template-columns: 64px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 6px;
  border-top: 1px solid var(--line-2);
}
.frow .rd { font-family: var(--f-display); font-weight: 800; font-stretch: 70%; font-size: 1.15rem; line-height: 1.1; }
.frow .rd small { display: block; font-family: var(--f-text); font-weight: 500; font-stretch: 100%; font-size: var(--t-12); color: var(--ash); }
.frow img, .frow .ph { width: 44px; height: 60px; object-fit: cover; border-radius: 8px; background: var(--sheet-2); }
.frow .t { min-width: 0; }
.frow .t b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow .t small { color: var(--ash); font-size: var(--t-12); }
.frow .p { text-align: right; }
.frow .p .n { font-family: var(--f-display); font-weight: 800; font-stretch: 62%; font-size: 1.5rem; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.1; }
.frow .p a, .frow .p span { font-size: var(--t-12); }
.frow .p a { color: var(--iris-pale); }
.frow .p span { color: var(--ash); }
.frow.rollover .p .n { color: var(--ash); }
@media (max-width: 560px) {
  .frow { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .frow .rd { display: none; }
}

/* ==========================================================================
   WHITEPAPER
   ========================================================================== */
.paper-hero {
  position: relative;
  background: var(--iris);
  color: #fff;
  overflow: hidden;
}
.paper-hero-in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px var(--gutter) 44px;
  display: grid;
  gap: 8px;
  align-items: center;
}
@media (min-width: 900px) {
  .paper-hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); min-height: min(72vh, 680px); padding-top: 40px; padding-bottom: 40px; }
}
.paper-hero .kicker { font-weight: 600; font-size: var(--t-14); color: rgba(255, 255, 255, 0.78); margin-bottom: 18px; }
.paper-hero h1 {
  font-family: var(--f-display);
  font-weight: 850;
  font-stretch: 112%;
  font-size: clamp(2.35rem, 6.2vw, 5.3rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  max-width: 14ch;
  text-wrap: balance;
}
.paper-hero .lede { margin-top: 22px; font-size: var(--t-20); line-height: 1.45; max-width: 40ch; color: rgba(255, 255, 255, 0.88); }
.paper-hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.paper-hero .btn-light { background: #fff; color: #000; }
.paper-hero .btn-quiet { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.paper-eye { width: 100%; max-width: 480px; aspect-ratio: 1; justify-self: center; order: -1; }
@media (min-width: 900px) { .paper-eye { order: 0; } }
@media (max-width: 899px) {
  .paper-hero-in { padding-top: 12px; }
  .paper-eye { max-width: 210px; margin: 0 auto 4px; }
}

.paper-facts {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-2);
}
@media (min-width: 760px) { .paper-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.paper-facts .f { padding: 20px 16px 22px 0; }
.paper-facts .f + .f { padding-left: 16px; border-left: 1px solid var(--line-2); }
@media (max-width: 759px) {
  .paper-facts .f:nth-child(3) { border-left: 0; padding-left: 0; }
  .paper-facts .f:nth-child(n + 3) { border-top: 1px solid var(--line-2); }
}
.paper-facts .v { font-family: var(--f-display); font-weight: 800; font-stretch: 62%; font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.paper-facts .v.gold { color: var(--gold); }
.paper-facts .k { color: var(--ash); font-size: var(--t-13); margin-top: 6px; }

.paper-body {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px var(--gutter) 90px;
  display: grid;
  gap: 40px;
}
@media (min-width: 980px) { .paper-body { grid-template-columns: 220px minmax(0, 1fr); gap: 72px; } }
.toc { display: none; }
@media (min-width: 980px) {
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  .toc ol { display: grid; gap: 2px; counter-reset: toc; }
  .toc a {
    display: flex;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--ash);
    font-size: var(--t-14);
    font-weight: 500;
    transition: color 0.15s, background-color 0.15s;
  }
  .toc a span { font-variant-numeric: tabular-nums; color: var(--ash-2); min-width: 1.2em; }
  .toc a:hover { color: var(--sclera); }
  .toc a.is-active { color: var(--sclera); background: var(--sheet); }
  .toc a.is-active span { color: var(--iris-pale); }
  .toc .meta-small { margin-top: 18px; padding: 0 10px; font-size: var(--t-12); color: var(--ash-2); }
}

.prose { max-width: 68ch; }
.psec { padding-top: 12px; scroll-margin-top: calc(var(--header-h) + 24px); }
.psec + .psec { margin-top: 56px; }
.psec h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.psec h2 .n { font-stretch: 60%; color: var(--iris-pale); font-size: 0.8em; }
.psec h3 { font-weight: 700; font-size: var(--t-20); margin: 26px 0 8px; }
.psec p, .psec li { font-size: 1.0625rem; line-height: 1.65; color: rgba(234, 237, 255, 0.86); }
.psec p + p { margin-top: 14px; }
.psec strong { color: #fff; font-weight: 600; }
.psec em { font-style: italic; }
.psec ul.dots { display: grid; gap: 10px; margin-top: 14px; }
.psec ul.dots li { position: relative; padding-left: 22px; }
.psec ul.dots li::before { content: ""; position: absolute; left: 3px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--iris); }
.psec .note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--r-m);
  background: var(--sheet);
  border-left: 3px solid var(--gold);
  font-size: var(--t-16);
  color: rgba(234, 237, 255, 0.86);
}

.facts { margin-top: 18px; border-top: 1px solid var(--line-2); }
.facts .row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: var(--t-14); }
.facts .row .k { color: var(--ash); }
.facts .row .v { min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.facts .row .v button { color: var(--iris-pale); font-weight: 600; font-size: var(--t-13); }
@media (max-width: 520px) { .facts .row { grid-template-columns: 1fr; gap: 2px; } }

.diagram { margin: 26px 0 8px; padding: 20px; border-radius: 20px; background: var(--sheet); border: 1px solid var(--line-2); }
.diagram svg { width: 100%; height: auto; overflow: visible; }
.diagram figcaption { margin-top: 12px; font-size: var(--t-13); color: var(--ash); }
.flow-dash { stroke-dasharray: 3 9; animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -48; } }

.timeline { display: grid; gap: 0; margin: 22px 0 6px; }
@media (min-width: 700px) { .timeline { grid-template-columns: 1.4fr 1.4fr 1fr 1fr; } }
.tl {
  position: relative;
  padding: 16px 16px 18px;
  border-top: 3px solid var(--line);
}
.tl .when { font-size: var(--t-12); color: var(--ash); font-weight: 600; font-variant-numeric: tabular-nums; }
.tl .what { font-weight: 700; margin-top: 4px; }
.tl p { font-size: var(--t-14) !important; color: var(--ash) !important; margin-top: 4px; line-height: 1.5 !important; }
.tl.q { border-top-color: var(--iris-pale); }
.tl.l { border-top-color: var(--iris); }
.tl.c { border-top-color: var(--gold); }
.tl.p { border-top-color: var(--sclera); }
@media (max-width: 699px) {
  .tl { border-top: 0; border-left: 3px solid var(--line); padding: 10px 0 14px 16px; }
  .tl.q { border-left-color: var(--iris-pale); }
  .tl.l { border-left-color: var(--iris); }
  .tl.c { border-left-color: var(--gold); }
  .tl.p { border-left-color: var(--sclera); }
}

.paper-foot { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-2); color: var(--ash); font-size: var(--t-13); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.paper-foot a { color: var(--iris-pale); }

/* ==========================================================================
   ADMIN
   ========================================================================== */
.admin { display: grid; gap: 28px; }
.panel { padding: 20px; border-radius: 18px; background: var(--sheet); border: 1px solid var(--line-2); }
.panel h2 { font-weight: 700; font-size: var(--t-20); margin-bottom: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.panel h2 small { color: var(--ash); font-weight: 500; font-size: var(--t-13); }
.checks { display: grid; gap: 8px; }
.check { display: flex; gap: 10px; align-items: baseline; font-size: var(--t-14); }
.check .m { width: 18px; font-weight: 800; }
.check.ok .m { color: var(--gold); }
.check.no .m { color: var(--vein); }
.check small { color: var(--ash); }
.admin-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.admin label { display: grid; gap: 6px; font-size: var(--t-13); color: var(--ash); }
.admin input[type="text"], .admin input[type="number"] {
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--sheet-2);
  border: 1px solid var(--line);
  color: var(--sclera);
  outline: 0;
}
.admin input:focus { border-color: var(--iris-pale); }
.admin .toggle { display: flex; align-items: center; gap: 10px; color: var(--sclera); font-size: var(--t-14); }
.admin .row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.arow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.arow img, .arow .ph { width: 40px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--sheet-2); }
.arow .t b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow .t small { color: var(--ash); font-size: var(--t-12); display: block; }
.arow .t .flag { color: var(--vein); font-weight: 700; }
.arow.removed { opacity: 0.5; }
.arow .btn { height: 34px; padding: 0 12px; font-size: var(--t-13); }
.pay { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.pay .l { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: var(--t-14); }
.pay .l b { font-variant-numeric: tabular-nums; }
.pay .ctrl { display: flex; gap: 8px; flex-wrap: wrap; }
.pay .ctrl input { flex: 1; min-width: 220px; }
/* admin tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.tabs button {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: var(--t-14);
  font-weight: 600;
  color: var(--ash);
  background: var(--sheet);
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
.tabs button:hover { color: var(--sclera); }
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--sclera); border-color: var(--sclera); }
.tab-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--gold);
  color: #1a1200;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.tab-badge.warn { background: var(--vein); color: #fff; }

/* one big field + one button (token address) */
.one-field { display: flex; gap: 8px; flex-wrap: wrap; }
.one-field input { flex: 1; min-width: 260px; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }

/* house meme pool */
.pool-add { display: grid; gap: 8px; margin-bottom: 14px; }
.pool-add textarea {
  width: 100%;
  resize: vertical;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: var(--t-13);
  line-height: 1.5;
}
.pool-add .btn { justify-self: start; }
.pool { display: grid; max-height: 460px; overflow-y: auto; scrollbar-width: thin; }
.pool-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--line-2);
}
.pool-row .ic { color: var(--ash); }
.pool-row .ic svg { width: 16px; height: 16px; }
.pool-row .t { min-width: 0; }
.pool-row .t a { font-size: var(--t-13); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pool-row .t small { display: block; color: var(--ash); font-size: var(--t-12); }
.pool-row.is-done { opacity: 0.5; }
.pool-row .btn { height: 30px; padding: 0 10px; font-size: var(--t-12); }

.house-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(154, 168, 255, 0.16);
  color: var(--iris-pale);
  font-size: var(--t-12);
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.meta-by /* admin tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.tabs button {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: var(--t-14);
  font-weight: 600;
  color: var(--ash);
  background: var(--sheet);
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
.tabs button:hover { color: var(--sclera); }
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--sclera); border-color: var(--sclera); }
.tab-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--gold);
  color: #1a1200;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.tab-badge.warn { background: var(--vein); color: #fff; }

/* one big field + one button (token address) */
.one-field { display: flex; gap: 8px; flex-wrap: wrap; }
.one-field input { flex: 1; min-width: 260px; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }

/* house meme pool */
.pool-add { display: grid; gap: 8px; margin-bottom: 14px; }
.pool-add textarea {
  width: 100%;
  resize: vertical;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: var(--t-13);
  line-height: 1.5;
}
.pool-add .btn { justify-self: start; }
.pool { display: grid; max-height: 460px; overflow-y: auto; scrollbar-width: thin; }
.pool-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--line-2);
}
.pool-row .ic { color: var(--ash); }
.pool-row .ic svg { width: 16px; height: 16px; }
.pool-row .t { min-width: 0; }
.pool-row .t a { font-size: var(--t-13); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pool-row .t small { display: block; color: var(--ash); font-size: var(--t-12); }
.pool-row.is-done { opacity: 0.5; }
.pool-row .btn { height: 30px; padding: 0 10px; font-size: var(--t-12); }

.house-tag { background: rgba(234, 237, 255, 0.16); color: var(--sclera); }
.paywho { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--t-13); }
.paywho code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: var(--t-12);
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--sheet-2);
  word-break: break-all;
}
.wins { display: grid; }
.win {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line-2);
  font-size: var(--t-14);
}
.win .t small { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ash); font-size: var(--t-12); margin-top: 3px; }
.win .t code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  background: var(--sheet-2);
  padding: 2px 6px;
  border-radius: 6px;
  word-break: break-all;
}
.win .s { text-align: right; font-variant-numeric: tabular-nums; }
.win .s small { display: block; font-size: var(--t-12); }
.win .s .is-paid { color: var(--gold); }
.win .s .is-due { color: var(--vein); }
.panel h2 .btn { height: 32px; padding: 0 12px; font-size: var(--t-13); }

/* ==========================================================================
   Page transition: an iris opening from where you clicked
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: 300ms var(--ease-in-out) both vt-dim; }
  ::view-transition-new(root) { animation: 560ms var(--ease-in-out) both vt-iris; }
}
@keyframes vt-iris {
  from { clip-path: circle(0% at var(--vt-x, 50%) var(--vt-y, 50%)); }
  to { clip-path: circle(150% at var(--vt-x, 50%) var(--vt-y, 50%)); }
}
@keyframes vt-dim { to { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* flywheel: SVG on wide screens, list on phones */
.fly-svg { display: none; }
.fly-list { display: grid; gap: 0; counter-reset: fly; }
.fly-list li { position: relative; display: grid; gap: 2px; padding: 10px 0 10px 34px; border-left: 2px solid var(--iris); margin-left: 9px; }
.fly-list li::before {
  counter-increment: fly;
  content: counter(fly);
  position: absolute;
  left: -12px;
  top: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #000;
  border: 2px solid var(--iris-pale);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.fly-list li:nth-child(5)::before { border-color: var(--gold); }
.fly-list b { font-weight: 700; }
.fly-list span { color: var(--ash); font-size: var(--t-14); }
@media (min-width: 640px) {
  .fly-svg { display: block; }
  .fly-list { display: none; }
}
.check.opt .m { color: var(--ash); }
.tabbar .tab-avatar { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 2px var(--pupil), 0 0 0 3.5px var(--line); }
.admin label.wide { grid-column: 1 / -1; }
.panel-note { color: var(--ash); font-size: var(--t-14); margin: -4px 0 16px; max-width: 70ch; }
.launch-panel { border-color: rgba(255, 194, 26, 0.35); }
.launch-panel h2 small { color: var(--vein); }
.launch-panel h2 small.is-live { color: var(--gold); }
