/* SEANCE: a candlelit séance room. Mobile first; 360 px wide works with 16 px gutters. */
:root {
  --bg: #0b0710;
  --bg-2: #120b1a;
  --panel: rgba(24, 15, 34, 0.78);
  --panel-2: rgba(34, 22, 48, 0.82);
  --line: rgba(233, 226, 208, 0.11);
  --line-2: rgba(233, 226, 208, 0.2);
  --bone: #e9e2d0;
  --text: #ddd5c4;
  --muted: #a198ad;
  --dim: #7d748a;
  --teal: #8ff5d2;
  --teal-d: #4fbf9e;
  --amber: #ffb347;
  --amber-d: #c9822a;
  --violet: #8b6cc7;
  --violet-l: #b9a2ee;
  --blood: #b3261e;
  --blood-l: #e0574d;
  --r: 14px;
  --r-sm: 9px;
  --f-display: 'Cinzel', 'Times New Roman', serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --gutter: 16px;
  --glow-teal: 0 0 18px rgba(143, 245, 210, 0.28);
  --glow-amber: 0 0 22px rgba(255, 179, 71, 0.3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.modal-open { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--f-body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a > svg { width: 0.95em; height: 0.95em; vertical-align: -0.1em; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); color: var(--bone); font-weight: 700; letter-spacing: 0.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-feature-settings: 'zero' 0; letter-spacing: -0.01em; }
.dim { color: var(--dim); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.teal { color: var(--teal); }
.amber { color: var(--amber); }
.blood { color: var(--blood-l); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--amber); color: #1a0f05; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
main { position: relative; z-index: 1; flex: 1 0 auto; }

/* ---------- atmosphere ---------- */
.fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx .glow { position: absolute; border-radius: 50%; filter: blur(30px); opacity: 0.5; animation: flicker 4.2s infinite steps(1, end); }
.fx .g1 { width: 46vmax; height: 46vmax; left: -18vmax; bottom: -22vmax; background: radial-gradient(circle, rgba(255, 179, 71, 0.28), rgba(255, 140, 40, 0) 65%); }
.fx .g2 { width: 34vmax; height: 34vmax; right: -14vmax; top: 30vh; background: radial-gradient(circle, rgba(255, 179, 71, 0.16), rgba(255, 140, 40, 0) 65%); animation-duration: 5.3s; animation-delay: -1.7s; }
.fx .vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 35%, transparent 40%, rgba(5, 2, 8, 0.75) 100%); }
@keyframes flicker {
  0% { opacity: 0.5; } 7% { opacity: 0.44; } 9% { opacity: 0.56; } 21% { opacity: 0.48; } 33% { opacity: 0.53; }
  41% { opacity: 0.42; } 44% { opacity: 0.55; } 58% { opacity: 0.49; } 71% { opacity: 0.57; } 83% { opacity: 0.45; } 92% { opacity: 0.52; }
}

/* ---------- strips (announce / offline) + simulated banner ---------- */
.strips { position: relative; z-index: 3; }
.strip { font-size: 13.5px; padding: 8px 0; text-align: center; border-bottom: 1px solid var(--line); }
.strip.announce { background: linear-gradient(90deg, rgba(255, 179, 71, 0.08), rgba(255, 179, 71, 0.18), rgba(255, 179, 71, 0.08)); color: var(--amber); }
.strip.offline { background: rgba(179, 38, 30, 0.2); color: #f3c6c1; }
.strip.offline b { color: #fff; }
.sim-banner {
  pointer-events: none;
  position: fixed; left: 12px; bottom: 12px; z-index: 60; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap;
  max-width: calc(100vw - 24px); padding: 7px 12px; border-radius: 999px; font-size: 12px; color: var(--bone);
  background: rgba(60, 20, 70, 0.92); border: 1px solid var(--violet); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.sim-banner b { color: var(--amber); letter-spacing: 0.12em; font-family: var(--f-mono); }
.sim-banner span { color: var(--muted); }
@media (max-width: 480px) { .sim-banner span { display: none; } }
.sim-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; }
.sim-note b { color: var(--amber); font-family: var(--f-mono); letter-spacing: 0.1em; margin-right: 6px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 7, 16, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--bone); text-decoration: none !important; }
.brand .candle { width: 18px; height: 26px; flex: none; }
.candle .flame { fill: var(--amber); transform-origin: 12px 12px; animation: flame 2.6s infinite ease-in-out; filter: drop-shadow(0 0 4px rgba(255, 179, 71, 0.9)); }
@keyframes flame { 0%, 100% { transform: scale(1, 1) rotate(0); } 30% { transform: scale(0.94, 1.06) rotate(-3deg); } 60% { transform: scale(1.04, 0.95) rotate(2deg); } }
.brand-t { font-family: var(--f-display); font-weight: 700; font-size: 21px; letter-spacing: 0.22em; text-shadow: 0 0 18px rgba(143, 245, 210, 0.25); }
.top-nav { display: flex; gap: 4px; justify-content: center; }
.top-nav a { color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.top-nav a:hover, .top-nav a[aria-current] { color: var(--bone); background: rgba(233, 226, 208, 0.06); text-decoration: none; }
.top-act { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
@media (max-width: 719px) {
  .top-in { grid-template-columns: 1fr auto; row-gap: 0; padding-top: 8px; }
  .top-nav { grid-column: 1 / -1; order: 3; justify-content: flex-start; margin: 2px -10px 4px; }
  .top-nav a { font-size: 13.5px; padding: 6px 10px; }
}

.ribbon { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: rgba(18, 11, 26, 0.7); }
.ribbon-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-top: 8px; padding-bottom: 8px; }
.ca { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; font-size: 13px; }
.ca-tag { font-family: var(--f-mono); font-weight: 700; color: var(--amber); }
.ca-addr { color: var(--bone); }
.ca-none { color: var(--muted); font-style: italic; }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 22px; margin: 0; flex: 1; justify-content: end; }
.stats div { display: flex; gap: 7px; align-items: baseline; white-space: nowrap; }
.stats dt { font-size: 12px; color: var(--muted); order: 2; }
.stats dd { margin: 0; color: var(--bone); font-size: 13.5px; font-weight: 600; }
@media (max-width: 899px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); justify-content: stretch; width: 100%; flex: none; gap: 8px; }
  .stats div { flex-direction: column; gap: 0; white-space: normal; min-width: 0; }
  .stats dt { font-size: 11px; line-height: 1.3; }
  .stats dd { font-size: 15px; }
}
@media (max-width: 479px) { .stats { grid-template-columns: 1fr 1fr; gap: 8px 12px; } }

/* ---------- buttons, inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1px solid rgba(255, 179, 71, 0.6); cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, #ffc46b, #f19a2c); color: #1d1006; font-weight: 700; letter-spacing: 0.01em;
  box-shadow: 0 0 0 rgba(255, 179, 71, 0), inset 0 1px 0 rgba(255, 255, 255, 0.35); transition: box-shadow 0.25s, transform 0.15s, background 0.25s;
  text-decoration: none !important;
}
.btn:hover { box-shadow: var(--glow-amber), inset 0 1px 0 rgba(255, 255, 255, 0.35); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 15px; height: 15px; }
.btn-big { min-height: 50px; padding: 0 26px; font-size: 16px; font-family: var(--f-display); letter-spacing: 0.06em; }
.btn-ghost { background: rgba(233, 226, 208, 0.04); color: var(--bone); border-color: var(--line-2); box-shadow: none; }
.btn-ghost:hover { border-color: rgba(143, 245, 210, 0.55); color: var(--teal); box-shadow: var(--glow-teal); }
.wallet-btn { min-height: 36px; padding: 0 14px; font-family: var(--f-mono); font-size: 13px; font-weight: 600; }
.wallet-btn.on { color: var(--teal); border-color: rgba(143, 245, 210, 0.4); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(233, 226, 208, 0.04); color: var(--bone); cursor: pointer; flex: none; padding: 0; transition: color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.icon-btn:hover { color: var(--teal); border-color: rgba(143, 245, 210, 0.5); box-shadow: var(--glow-teal); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn.sm svg { width: 14px; height: 14px; }
.mute[aria-pressed="true"] { color: var(--dim); }
input[type=text], input[type=number], input[type=search] {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(8, 4, 12, 0.75); color: var(--bone); font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder { color: var(--dim); }
input:focus { outline: none; border-color: rgba(143, 245, 210, 0.6); box-shadow: 0 0 0 3px rgba(143, 245, 210, 0.12), var(--glow-teal); }
input[type=number] { -moz-appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font: 700 10.5px/1.6 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--muted); margin-right: 6px; white-space: nowrap; }
.tag-dead { color: #ffb4ad; border-color: rgba(179, 38, 30, 0.6); background: rgba(179, 38, 30, 0.18); }
.tag-ghost { color: var(--teal); border-color: rgba(143, 245, 210, 0.45); background: rgba(143, 245, 210, 0.08); }
.tag-medium { color: var(--violet-l); border-color: rgba(139, 108, 199, 0.55); background: rgba(139, 108, 199, 0.14); }
.tag-ok { color: var(--teal); border-color: rgba(143, 245, 210, 0.4); }
.tag-sold { color: #ffb4ad; border-color: rgba(179, 38, 30, 0.55); }

/* ---------- avatars ---------- */
.av { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; background: radial-gradient(circle at 35% 30%, #3a2850, #160d20); border: 1px solid var(--line-2); }
.av::before { content: attr(data-l); font: 700 16px var(--f-display); color: var(--muted); }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av-md { width: 48px; height: 48px; }
.av-lg { width: 64px; height: 64px; border-radius: 14px; }
.av-xl { width: 160px; height: 160px; border-radius: 20px; }
.dead-img img { filter: grayscale(0.85) contrast(1.05) brightness(0.8); }

/* ---------- sections ---------- */
.sec { padding: 46px 0 8px; position: relative; }
.sec-h { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.sec-h h2 { font-size: clamp(24px, 6vw, 34px); }
.sec-h p { color: var(--muted); max-width: 640px; font-size: 14.5px; }
.eyebrow { font: 600 11.5px var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-art { position: relative; height: 210px; margin: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 30%; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 7, 16, 0.1) 30%, var(--bg) 100%); }
.hero-in { position: relative; padding-top: 4px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(40px, 11vw, 84px); line-height: 1.02; letter-spacing: 0.01em; text-shadow: 0 0 34px rgba(143, 245, 210, 0.22), 0 2px 0 rgba(0, 0, 0, 0.6); }
.hero h1 .ghosty { color: var(--teal); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { text-shadow: 0 0 22px rgba(143, 245, 210, 0.35); opacity: 1; } 50% { text-shadow: 0 0 40px rgba(143, 245, 210, 0.6); opacity: 0.86; } }
.lede { margin-top: 14px; font-size: clamp(15.5px, 4.2vw, 19px); color: var(--text); max-width: 560px; }
.lede b { color: var(--teal); font-weight: 600; }
.summon-form { margin-top: 22px; display: grid; gap: 10px; max-width: 600px; }
.summon-form .err-inline { grid-column: 1 / -1; }
.hero-meta { margin-top: 14px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hero-meta span::before { content: '✦'; color: var(--amber); margin-right: 6px; font-size: 10px; vertical-align: 1px; }
@media (min-width: 720px) {
  .summon-form { grid-template-columns: 1fr auto; }
}
@media (min-width: 900px) {
  .hero { min-height: 520px; display: flex; align-items: center; }
  .hero-art { position: absolute; inset: 0; height: auto; }
  .hero-art img { object-position: right center; }
  .hero-art::after { background: linear-gradient(90deg, var(--bg) 0%, rgba(11, 7, 16, 0.94) 30%, rgba(11, 7, 16, 0.35) 62%, rgba(11, 7, 16, 0.15) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 25%); }
  .hero-in { padding-top: 64px; padding-bottom: 72px; }
  .hero-copy { max-width: 600px; }
}
.err-inline { color: #ffb4ad; font-size: 13.5px; }

/* ---------- the Medium ---------- */
.medium-panel { display: grid; grid-template-columns: 1fr; gap: 0; overflow: hidden; position: relative; background: linear-gradient(135deg, rgba(60, 36, 92, 0.55), rgba(18, 11, 26, 0.85)); border: 1px solid rgba(139, 108, 199, 0.35); border-radius: 18px; }
.medium-fig { position: relative; display: grid; place-items: end center; height: 190px; overflow: hidden; background: radial-gradient(circle at 50% 70%, rgba(143, 245, 210, 0.18), transparent 60%); }
.medium-fig img { height: 220px; width: auto; transform: translateY(26px); filter: drop-shadow(0 0 24px rgba(143, 245, 210, 0.3)); animation: hover 7s ease-in-out infinite; }
@keyframes hover { 0%, 100% { transform: translateY(26px); } 50% { transform: translateY(18px); } }
.medium-body { padding: 20px; display: grid; gap: 14px; }
.medium-body h2 { font-size: 28px; }
.medium-body > p { color: var(--muted); }
.countdown { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.countdown .t { font: 700 clamp(40px, 12vw, 60px)/1 var(--f-mono); color: var(--teal); text-shadow: 0 0 26px rgba(143, 245, 210, 0.45); letter-spacing: -0.02em; }
.countdown small { color: var(--muted); font-size: 13px; }
.next-up { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(8, 4, 12, 0.5); border: 1px solid var(--line); flex-wrap: wrap; }
.next-up .who { flex: 1; min-width: 150px; }
.next-up .who b { color: var(--bone); }
.next-up .who p { font-size: 13px; color: var(--muted); }
@media (min-width: 760px) {
  .medium-panel { grid-template-columns: 260px 1fr; }
  .medium-fig { height: auto; min-height: 280px; }
  .medium-fig img { height: 300px; transform: translateY(30px); }
  @keyframes hover { 0%, 100% { transform: translateY(30px); } 50% { transform: translateY(20px); } }
  .medium-body { padding: 28px 28px 28px 8px; align-content: center; }
}

/* ---------- unraised board ---------- */
.board-group + .board-group { margin-top: 26px; }
.sec { scroll-margin-top: 110px; }
.board-group h3 small { display: none; font: 500 11px var(--f-body); letter-spacing: 0; text-transform: none; color: var(--dim); }
@media (max-width: 559px) {
  .grid.g4 { grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 10px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .grid.g4::-webkit-scrollbar { display: none; }
  .grid.g4 > * { scroll-snap-align: start; }
  .grid.g4 > .empty { grid-column: auto; width: calc(100vw - 2 * var(--gutter)); }
  .board-group h3 small { display: inline; }
}
.board-group h3 { font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.board-group h3::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid.g4 { grid-template-columns: repeat(3, 1fr); } .grid.g3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1140px) { .grid.g4 { grid-template-columns: repeat(4, 1fr); } }
.corpse { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; }
.corpse:hover { border-color: rgba(143, 245, 210, 0.35); box-shadow: 0 0 28px rgba(143, 245, 210, 0.08), inset 0 0 30px rgba(143, 245, 210, 0.04); transform: translateY(-2px); }
.corpse .av { width: 52px; height: 52px; border-radius: 12px; }
.corpse .av img { filter: grayscale(0.8) brightness(0.8); transition: filter 0.4s; }
.corpse:hover .av img { filter: grayscale(0.2) brightness(1) drop-shadow(0 0 6px rgba(143, 245, 210, 0.6)); }
.c-head { min-width: 0; }
.c-head b { color: var(--bone); font-family: var(--f-mono); font-size: 15px; }
.c-head p { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-nums { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-family: var(--f-mono); font-size: 13px; }
.c-nums .arrow { color: var(--dim); }
.c-nums .dd { color: var(--blood-l); font-weight: 700; margin-left: auto; }
.c-meta { grid-column: 1 / -1; font-size: 12.5px; color: var(--dim); }
.c-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); font-style: italic; }
.c-act { grid-column: 1 / -1; display: flex; gap: 8px; }
.c-act .btn { flex: 1; min-height: 38px; font-family: var(--f-display); letter-spacing: 0.14em; }
.raised-link { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; border-radius: 999px; border: 1px dashed rgba(143, 245, 210, 0.45); color: var(--teal); font: 700 13px var(--f-mono); letter-spacing: 0.14em; }
.corpse.is-raised { opacity: 0.78; }
.empty { padding: 22px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--muted); text-align: center; font-size: 14px; }

/* ---------- graveyard ---------- */
.ghost-card { position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 12px 14px; padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s; overflow: hidden; }
.ghost-card::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(143, 245, 210, 0.12), transparent 70%); opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.ghost-card:hover { border-color: rgba(143, 245, 210, 0.4); box-shadow: 0 0 34px rgba(143, 245, 210, 0.1); transform: translateY(-3px); }
.ghost-card:hover::before { opacity: 1; }
.ghost-card .portrait { width: 84px; height: 84px; border-radius: 14px; }
.ghost-card:hover .portrait img { animation: haunt 2.8s ease-in-out infinite; }
@keyframes haunt { 0%, 100% { transform: translateY(0) scale(1.02); } 50% { transform: translateY(-3px) scale(1.06); } }
.gc-head { min-width: 0; }
.gc-head h3 { font-size: 16.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
.gc-head .tag { margin: 4px 0 0; }
.last-words { grid-column: 1 / -1; font-style: italic; font-size: 14px; line-height: 1.5; color: var(--bone); margin: 0; padding-left: 12px; border-left: 2px solid rgba(143, 245, 210, 0.35); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gc-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.gc-stats dt { font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.gc-stats dd { margin: 0; font: 600 13px var(--f-mono); color: var(--bone); }
.more-row { margin-top: 14px; text-align: center; }

/* ---------- portraits ---------- */
.portrait { position: relative; overflow: hidden; background: radial-gradient(circle at 50% 40%, #2a1838, #0b0710); border: 1px solid rgba(143, 245, 210, 0.25); box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6); display: grid; place-items: center; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait::after { content: ''; position: absolute; inset: 0; background: url(/img/seance-512.png) center / cover; opacity: 0; }
.portrait:empty::after { opacity: 0.6; }
.portrait.pending { flex-direction: column; gap: 10px; padding: 14px; text-align: center; }
.portrait-note { font-size: 12.5px; color: var(--muted); }
.orb { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #e9fff7, var(--teal) 30%, rgba(139, 108, 199, 0.6) 65%, transparent 72%); box-shadow: 0 0 30px rgba(143, 245, 210, 0.55); animation: orb 1.8s ease-in-out infinite; flex: none; }
@keyframes orb { 0%, 100% { transform: scale(0.92); opacity: 0.8; } 50% { transform: scale(1.06); opacity: 1; } }

/* ---------- feed ---------- */
.feed-wrap { display: grid; gap: 18px; }
@media (min-width: 960px) { .feed-wrap { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.feed { list-style: none; margin: 0; padding: 6px; max-height: 640px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(139, 108, 199, 0.5) transparent; }
.ev { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 11px 10px; border-radius: 10px; }
.ev + .ev { border-top: 1px solid var(--line); }
.ev.new { animation: arrive 1.6s ease-out; }
@keyframes arrive { 0% { background: rgba(143, 245, 210, 0.16); } 100% { background: transparent; } }
.ev-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: rgba(233, 226, 208, 0.05); border: 1px solid var(--line); }
.ev-raise .ev-ic { color: var(--amber); border-color: rgba(255, 179, 71, 0.45); }
.ev-payout .ev-ic { color: var(--teal); border-color: rgba(143, 245, 210, 0.45); }
.ev-burn .ev-ic { color: var(--blood-l); border-color: rgba(179, 38, 30, 0.5); }
.ev-voice .ev-ic { color: var(--violet-l); border-color: rgba(139, 108, 199, 0.5); }
.ev-distribute .ev-ic { color: var(--muted); }
.ev-h { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 12.5px; color: var(--muted); }
.ev-h a { font-family: var(--f-mono); font-weight: 700; }
.ev-h time { color: var(--dim); font-family: var(--f-mono); font-size: 11.5px; }
.ev-t { margin-top: 3px; font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.ev-voice .ev-t { font-style: italic; color: var(--bone); }
.ev-sol { font-family: var(--f-mono); color: var(--teal); font-weight: 600; }
.ev-link { font-size: 12px; }
.ev-link svg, .tx-link svg { width: 11px; height: 11px; vertical-align: -1px; }
.side-card { padding: 18px; display: grid; gap: 12px; }
.side-card h3 { font-size: 17px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.kv dt { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.kv dd { margin: 2px 0 0; font: 600 15px var(--f-mono); color: var(--bone); overflow-wrap: anywhere; }
.kv dd.blood { color: var(--blood-l); }
.kv dd.teal { color: var(--teal); }
.kv dd.amber { color: var(--amber); }

/* kind badges (voice log) */
.kind { display: inline-block; padding: 1px 7px; border-radius: 6px; font: 700 10px/1.7 var(--f-mono); letter-spacing: 0.1em; border: 1px solid; }
.k-raised { color: var(--amber); border-color: rgba(255, 179, 71, 0.5); background: rgba(255, 179, 71, 0.08); }
.k-payout { color: var(--teal); border-color: rgba(143, 245, 210, 0.45); background: rgba(143, 245, 210, 0.07); }
.k-milestone { color: #ffe08a; border-color: rgba(255, 224, 138, 0.45); background: rgba(255, 224, 138, 0.07); }
.k-dev { color: #ffb4ad; border-color: rgba(179, 38, 30, 0.55); background: rgba(179, 38, 30, 0.12); }
.k-heartbeat { color: var(--violet-l); border-color: rgba(139, 108, 199, 0.5); background: rgba(139, 108, 199, 0.1); }

/* ---------- how it works / rules ---------- */
.how-grid { display: grid; gap: 18px; }
@media (min-width: 960px) { .how-grid { grid-template-columns: 1.25fr 1fr; } }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.steps-list li::before { content: counter(s, upper-roman); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 700 14px var(--f-display); color: var(--amber); border: 1px solid rgba(255, 179, 71, 0.4); background: rgba(255, 179, 71, 0.06); }
.steps-list b { color: var(--bone); display: block; margin-bottom: 2px; }
.steps-list p { font-size: 14px; color: var(--muted); }
.rules { padding: 20px; }
.rules h3 { font-size: 19px; margin-bottom: 12px; }
.rules ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rules li { position: relative; padding-left: 22px; font-size: 14px; color: var(--text); }
.rules li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.rules li b { color: var(--bone); }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 1; margin-top: 64px; border-top: 1px solid var(--line); background: rgba(8, 4, 12, 0.7); padding: 30px 0 70px; }
.foot-in { display: grid; gap: 16px; }
.foot-brand { display: flex; flex-direction: column; gap: 2px; }
.foot-brand .brand-t { font-size: 18px; color: var(--bone); }
.foot-brand small { color: var(--dim); font-family: var(--f-mono); font-size: 12px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-nav a { color: var(--muted); font-size: 14px; }
.foot-nav a:hover { color: var(--teal); }
.foot-note { font-size: 13px; color: var(--dim); max-width: 780px; line-height: 1.6; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 220px 1fr; } .foot-note { grid-column: 1 / -1; } }

/* ---------- toast / fatal ---------- */
.toasts { position: fixed; z-index: 90; right: 12px; bottom: 56px; display: grid; gap: 8px; justify-items: end; max-width: calc(100vw - 24px); }
.toast { padding: 10px 14px; border-radius: 10px; background: rgba(34, 22, 48, 0.96); border: 1px solid rgba(143, 245, 210, 0.4); color: var(--bone); font-size: 13.5px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); animation: tin 0.25s ease-out; }
.toast.bad { border-color: rgba(179, 38, 30, 0.7); }
.toast.out { opacity: 0; transform: translateY(6px); transition: 0.35s; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.fatal { margin-top: 20px; padding: 16px; border-radius: var(--r); background: rgba(179, 38, 30, 0.18); border: 1px solid rgba(179, 38, 30, 0.5); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

/* ---------- modal ---------- */
.modal { width: min(820px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.modal::backdrop { background: rgba(5, 2, 8, 0.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] .modal-box { animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.985); filter: blur(4px); } }
.modal-box { position: relative; max-height: calc(100dvh - 20px); overflow-y: auto; overscroll-behavior: contain; border-radius: 18px; background: linear-gradient(180deg, rgba(36, 22, 52, 0.98), rgba(14, 8, 20, 0.98)); border: 1px solid rgba(139, 108, 199, 0.4); box-shadow: 0 0 60px rgba(143, 245, 210, 0.08), 0 24px 80px rgba(0, 0, 0, 0.7); }
.modal-body { padding: 22px 16px 20px; }
@media (min-width: 640px) { .modal-body { padding: 28px 28px 24px; } }
.modal-x { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(11, 7, 16, 0.7); }
.modal-title { font-size: clamp(22px, 5.5vw, 28px); padding-right: 40px; }
.modal-sub { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.modal-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.modal-actions.center { justify-content: center; }
.summon { margin-top: 22px; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; background: rgba(8, 4, 12, 0.5); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.refusal { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(179, 38, 30, 0.14); border: 1px solid rgba(179, 38, 30, 0.45); color: #f6d3cf; }
.err-box { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(179, 38, 30, 0.16); border: 1px solid rgba(179, 38, 30, 0.55); color: #f6d3cf; font-size: 14px; overflow-wrap: anywhere; }
.mini-coin { margin-top: 16px; display: flex; gap: 12px; align-items: center; }
.pair { margin-top: 18px; display: grid; gap: 12px; }
@media (min-width: 640px) { .pair { grid-template-columns: 1fr 1fr; } }
.dead-card, .ghost-prev { padding: 14px; border-radius: 14px; background: rgba(8, 4, 12, 0.5); border: 1px solid var(--line); }
.dead-card { border-color: rgba(179, 38, 30, 0.3); }
.ghost-prev { border-color: rgba(143, 245, 210, 0.28); display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; }
.dead-top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.dead-card h3, .ghost-prev h3 { font-size: 17px; margin-top: 6px; overflow-wrap: anywhere; }
.ghost-prev .portrait { width: 110px; height: 110px; border-radius: 14px; }
.ghost-prev .obit { grid-column: 1 / -1; margin: 0; }
.obit { margin: 8px 0 0; font-style: italic; font-size: 13.5px; line-height: 1.5; color: var(--bone); padding-left: 10px; border-left: 2px solid rgba(143, 245, 210, 0.35); }
@media (max-width: 400px) { .ghost-prev { grid-template-columns: 84px 1fr; } .ghost-prev .portrait { width: 84px; height: 84px; } .ghost-prev .obit { grid-column: 1 / -1; } .portrait.pending .portrait-note { display: none; } }
.raise-form { margin-top: 18px; }
.field { display: grid; gap: 6px; }
.field-l { font-weight: 600; color: var(--bone); font-size: 14px; }
.field-l small { color: var(--dim); font-weight: 400; margin-left: 6px; }
.field-in { position: relative; display: block; max-width: 260px; }
.field-in input { padding-right: 52px; font-size: 18px; }
.field-in b { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 700 13px var(--f-mono); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { min-width: 46px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font: 600 13px var(--f-mono); color: var(--muted); }
.chip:hover { color: var(--bone); border-color: rgba(143, 245, 210, 0.4); }
.chip.on { color: #10261f; background: var(--teal); border-color: var(--teal); }
.hint { margin-top: 8px; font-size: 12.5px; color: var(--dim); }
.lines { list-style: none; margin: 16px 0 0; padding: 14px; display: grid; gap: 10px; border-radius: 12px; background: rgba(8, 4, 12, 0.45); border: 1px solid var(--line); font-size: 13.5px; }
.lines li { display: grid; grid-template-columns: 12px 1fr; gap: 10px; align-items: start; }
.lines b { color: var(--bone); }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; }
.dot.amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.dot.teal { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.dot.violet { background: var(--violet-l); box-shadow: 0 0 8px var(--violet); }
.wallet-note { flex: 1; min-width: 160px; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: grid; grid-template-columns: 22px 1fr; gap: 2px 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(8, 4, 12, 0.45); border: 1px solid var(--line); color: var(--dim); }
.steps li i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); justify-self: center; }
.steps li small { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.steps li small:empty { display: none; }
.steps li[data-s=active] { color: var(--bone); border-color: rgba(143, 245, 210, 0.4); }
.steps li[data-s=active] i { border-color: var(--teal); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.steps li[data-s=done] { color: var(--text); }
.steps li[data-s=done] i { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 10px var(--teal); }
.steps li[data-s=fail] { color: #ffb4ad; border-color: rgba(179, 38, 30, 0.55); }
.steps li[data-s=fail] i { background: var(--blood); border-color: var(--blood); }
@keyframes spin { to { transform: rotate(360deg); } }
.success { text-align: center; }
.success .portrait.big { width: 180px; height: 180px; margin: 4px auto 16px; border-radius: 24px; box-shadow: 0 0 50px rgba(143, 245, 210, 0.3); animation: haunt 4s ease-in-out infinite; }
.success .modal-title { padding: 0; }
.ca-line { margin: 14px auto 0; display: inline-flex; gap: 8px; align-items: center; max-width: 100%; padding: 6px 6px 6px 12px; border-radius: 999px; background: rgba(8, 4, 12, 0.6); border: 1px solid var(--line); font-size: 12px; }
.ca-line .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------- ghost page ---------- */
.g-hero { padding: 28px 0 8px; display: grid; gap: 22px; }
.g-hero > *, .g-main > *, .feed-wrap > *, .how-grid > *, .pair > * { min-width: 0; }
.g-portrait { width: min(250px, 100%); aspect-ratio: 1; border-radius: 22px; margin: 0 auto; box-shadow: 0 0 60px rgba(143, 245, 210, 0.18); }
.g-portrait img { animation: haunt 6s ease-in-out infinite; }
.g-id h1 { font-size: clamp(30px, 8vw, 50px); overflow-wrap: anywhere; }
.g-id .sym { font: 700 18px var(--f-mono); color: var(--teal); margin-top: 6px; }
.g-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.g-tags .tag { margin: 0; }
.g-ca { margin-top: 14px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(8, 4, 12, 0.55); max-width: 100%; width: fit-content; font-size: 12.5px; }
.g-ca .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.g-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.g-obit { margin: 18px 0 0; padding: 16px 18px; border-radius: var(--r); background: rgba(8, 4, 12, 0.5); border: 1px solid var(--line); }
.g-obit h2 { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.g-obit p { font-style: italic; font-size: 16.5px; line-height: 1.6; color: var(--bone); }
@media (min-width: 860px) {
  .g-hero { grid-template-columns: 340px 1fr; align-items: center; gap: 36px; padding-top: 40px; }
  .g-portrait { margin: 0; width: 340px; }
}
.g-stats { margin-top: 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.g-stats > div { padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.g-stats dt { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.g-stats dd { margin: 4px 0 0; font: 700 clamp(17px, 4.6vw, 22px) var(--f-mono); color: var(--bone); }
.g-stats dd small { font-size: 12px; color: var(--muted); font-weight: 500; }
@media (min-width: 700px) { .g-stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .g-stats { grid-template-columns: repeat(6, 1fr); } }
.g-main { margin-top: 26px; display: grid; gap: 18px; }
@media (min-width: 960px) { .g-main { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } }
.voice { padding: 0; overflow: hidden; }
.voice-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(8, 4, 12, 0.45); }
.voice-h h2 { font-size: 18px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--f-mono); letter-spacing: 0.14em; color: var(--teal); text-transform: uppercase; }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: orb 1.6s ease-in-out infinite; }
.voice-log { list-style: none; margin: 0; padding: 6px 0; max-height: 720px; overflow-y: auto; font-family: var(--f-mono); scrollbar-width: thin; scrollbar-color: rgba(139, 108, 199, 0.5) transparent; }
.voice-log li { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 12px 16px; position: relative; }
.voice-log li + li { border-top: 1px dashed rgba(233, 226, 208, 0.08); }
.voice-log li.new { animation: arrive 1.8s ease-out; }
.voice-log time { font-size: 11.5px; color: var(--dim); padding-top: 2px; white-space: nowrap; }
.voice-log .vl-b { min-width: 0; }
.voice-log .vl-t { margin-top: 5px; font-family: var(--f-body); font-size: 14.5px; color: var(--bone); line-height: 1.55; overflow-wrap: anywhere; }
.voice-log .vl-t::before { content: '› '; color: var(--teal); font-family: var(--f-mono); }
.voice-log li:first-child .vl-t::after { content: ''; display: inline-block; width: 8px; height: 15px; margin-left: 4px; vertical-align: -2px; background: var(--teal); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 520px) { .voice-log li { grid-template-columns: 1fr; } }
.dead-panel { padding: 16px; }
.dead-panel h2, .tbl-panel h2 { font-size: 18px; margin-bottom: 12px; }
.tbl-panel { padding: 16px; margin-top: 18px; }
.tbl-scroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font: 600 11px var(--f-body); color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td.num, th.num { text-align: right; font-family: var(--f-mono); white-space: nowrap; }
tr:hover td { background: rgba(143, 245, 210, 0.03); }
tr.sold td { color: var(--dim); }
@media (max-width: 560px) {
  .tbl-holders thead { display: none; }
  .tbl-holders tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tbl-holders td { padding: 0; border: 0; }
  .tbl-holders td.num { text-align: left; }
  .tbl-holders td[data-l]::before { content: attr(data-l) ' '; color: var(--dim); font-family: var(--f-body); font-size: 11px; }
  .tbl-holders td.st { grid-row: 1; grid-column: 2; text-align: right; }
}
.pay-list { list-style: none; margin: 0; padding: 0; }
.pay-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pay-list li .ev-sol { margin-right: auto; }
.not-found { padding: 80px 0; text-align: center; display: grid; gap: 14px; justify-items: center; }
.not-found h1 { font-size: 34px; }

/* ---------- me page ---------- */
.me-head { padding: 34px 0 6px; display: grid; gap: 12px; }
.me-head h1 { font-size: clamp(30px, 8vw, 48px); }
.me-head p { color: var(--muted); max-width: 640px; }
.me-form { display: grid; gap: 10px; max-width: 640px; margin-top: 8px; }
@media (min-width: 640px) { .me-form { grid-template-columns: 1fr auto auto; } }
.me-totals { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.me-totals > div { padding: 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.me-totals dt { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.me-totals dd { margin: 4px 0 0; font: 700 clamp(22px, 6vw, 32px) var(--f-mono); color: var(--teal); text-shadow: 0 0 20px rgba(143, 245, 210, 0.3); }
.me-totals .owed dd { color: var(--amber); text-shadow: 0 0 20px rgba(255, 179, 71, 0.3); }
.me-rows { margin-top: 18px; display: grid; gap: 10px; }
.me-row { display: grid; grid-template-columns: 56px 1fr; gap: 10px 14px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.me-row .portrait { width: 56px; height: 56px; border-radius: 12px; }
.me-row h3 { font-size: 16px; }
.me-row h3 a { color: var(--bone); }
.me-row .sub { font-size: 12.5px; color: var(--muted); }
.me-row dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 8px; margin: 0; align-items: center; }
.me-row dt { font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.me-row dd { margin: 0; font: 600 14px var(--f-mono); color: var(--bone); }
@media (min-width: 760px) { .me-row { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr); } .me-row dl { grid-column: 3; } }
.me-share { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 16px; border-radius: var(--r); border: 1px dashed rgba(143, 245, 210, 0.35); }
.me-share p { flex: 1; min-width: 220px; font-style: italic; color: var(--bone); }

/* ---------- docs ---------- */
.doc { padding-top: 34px; padding-bottom: 10px; display: grid; gap: 28px; }
@media (min-width: 980px) { .doc { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; } .toc { position: sticky; top: 130px; align-self: start; } }
.toc { display: none; }
@media (min-width: 980px) { .toc { display: grid; gap: 4px; } }
.toc a { color: var(--muted); font-size: 14px; padding: 5px 10px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--teal); border-color: var(--teal); text-decoration: none; }
.doc-body { min-width: 0; max-width: 780px; }
.doc-body h1 { font-size: clamp(32px, 8vw, 52px); }
.doc-body .lede { margin-bottom: 8px; }
.doc-body section { padding-top: 26px; scroll-margin-top: 120px; }
.doc-body h2 { font-size: clamp(21px, 5vw, 27px); margin-bottom: 12px; }
.doc-body p, .doc-body li { color: var(--text); font-size: 15px; }
.doc-body p + p { margin-top: 10px; }
.doc-body ol, .doc-body ul { padding-left: 22px; display: grid; gap: 8px; margin: 10px 0 0; }
.doc-body li::marker { color: var(--amber); }
.doc-body b, .doc-body strong { color: var(--bone); }
.wallets { display: grid; gap: 10px; margin-top: 12px; }
.wallet-row { display: grid; gap: 4px; padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.wallet-row b { color: var(--bone); }
.wallet-row p { font-size: 13.5px; color: var(--muted); }
.wallet-row .addr { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; }
.wallet-row .addr a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.callout { margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 179, 71, 0.35); background: rgba(255, 179, 71, 0.06); }
.callout.red { border-color: rgba(179, 38, 30, 0.5); background: rgba(179, 38, 30, 0.1); }
.split-bar { margin-top: 12px; display: flex; height: 34px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); font: 700 12.5px var(--f-mono); }
.split-bar span { display: grid; place-items: center; color: #10261f; }
.split-bar .v { background: linear-gradient(90deg, var(--teal-d), var(--teal)); }
.split-bar .b { background: linear-gradient(90deg, var(--violet), var(--violet-l)); color: #170d24; }

@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; }
  .fx .glow { animation: none; }
}
.g-side { display: grid; gap: 18px; min-width: 0; }
.g-side .tbl-panel { margin-top: 0; }
.wallet-row .addr > a:last-child svg { width: 14px; height: 14px; }

/* ---------- the Medium's schedule ---------- */
.medium-h { font-size: clamp(22px, 5.5vw, 28px); }
.next-up .who > span { color: var(--bone); }
.upcoming { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.upcoming li { display: grid; grid-template-columns: 48px 62px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: rgba(8, 4, 12, 0.4); border: 1px solid var(--line); font-size: 13px; }
.upcoming li.is-next { border-color: rgba(143, 245, 210, 0.4); background: rgba(143, 245, 210, 0.05); }
.upcoming time { font-family: var(--f-mono); color: var(--muted); font-size: 12px; }
.upcoming .kind { justify-self: start; }
.upcoming .up-t { color: var(--bone); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upcoming .up-in { color: var(--teal); font-size: 12.5px; }
.k-medium { color: var(--violet-l); border-color: rgba(139, 108, 199, 0.55); background: rgba(139, 108, 199, 0.12); }
@media (min-width: 1000px) { .upcoming { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.corpse.claiming { border-color: rgba(179, 38, 30, 0.6); box-shadow: 0 0 0 1px rgba(179, 38, 30, 0.25), 0 0 32px rgba(179, 38, 30, 0.18); }
.c-claim { grid-column: 1 / -1; display: block; line-height: 1.5; padding: 8px 10px; border-radius: 10px; background: rgba(179, 38, 30, 0.16); border: 1px solid rgba(179, 38, 30, 0.45); color: #ffc9c3; font-size: 13px; }
.c-claim b { color: #fff; font-size: 14px; }
.pulse-dot { display: inline-block; vertical-align: 1px; margin-right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--blood-l); box-shadow: 0 0 8px var(--blood-l); animation: orb 1.2s ease-in-out infinite; flex: none; }
.btn-claim { background: linear-gradient(180deg, #ff8a5c, #e0452f); border-color: rgba(255, 140, 100, 0.7); color: #1f0805; animation: claimglow 1.8s ease-in-out infinite; }
@keyframes claimglow { 0%, 100% { box-shadow: 0 0 0 rgba(224, 69, 47, 0), inset 0 1px 0 rgba(255, 255, 255, 0.3); } 50% { box-shadow: 0 0 22px rgba(224, 69, 47, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3); } }
.medium-list { color: var(--violet-l); }

.ev-medium { background: linear-gradient(90deg, rgba(139, 108, 199, 0.16), rgba(139, 108, 199, 0.02) 70%); border-left: 2px solid var(--violet); }
.ev + .ev-medium, .ev-medium + .ev { border-top-color: rgba(139, 108, 199, 0.25); }
.ev-medium-av { overflow: hidden; padding: 0; border-color: rgba(139, 108, 199, 0.7); background: radial-gradient(circle at 50% 30%, #3a2458, #140c1c); box-shadow: 0 0 10px rgba(139, 108, 199, 0.4); }
.ev-medium-av img { width: 100%; height: 140%; object-fit: cover; object-position: 50% 4%; }
.ev-medium .medium-name { color: var(--violet-l); font-family: var(--f-display); font-size: 13px; letter-spacing: 0.04em; }
.ev-medium .ev-t { font-style: italic; color: #e6dcff; }
.ev-medium.mk-pull { background: linear-gradient(90deg, rgba(143, 245, 210, 0.14), rgba(139, 108, 199, 0.04) 70%); border-left-color: var(--teal); }
.toast.veil { border-color: var(--violet); background: linear-gradient(90deg, rgba(60, 36, 92, 0.97), rgba(34, 22, 48, 0.97)); font-style: italic; box-shadow: 0 0 30px rgba(139, 108, 199, 0.4); }
