/* ╔══════════════════════════════════════════════╗
   ║   MAKETHEFISHRICH — styles.css               ║
   ║   Bloomberg / Luxury Finance aesthetic       ║
   ╚══════════════════════════════════════════════╝ */

/* ── DESIGN TOKENS ─────────────────────────── */
:root {
  --bg:        #060606;
  --surface:   #0A0A0A;
  --surface2:  #0F0F0F;
  --border:    rgba(212,168,67,.16);
  --border2:   rgba(212,168,67,.38);
  --gold:      #D4A843;
  --gold-hi:   #ECC057;
  --gold-lo:   #7A5E20;
  --gold-fill: rgba(212,168,67,.09);
  --cream:     #EEE7D8;
  --cream-60:  rgba(238,231,216,.6);
  --cream-30:  rgba(238,231,216,.3);
  --cream-12:  rgba(238,231,216,.12);
  --red:       #F03535;
  --green:     #3DD68C;
  --green-dim: rgba(61,214,140,.1);
  --hh:        50px;
  --gap:       10px;
}

/* ── RESET ─────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--cream);
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fine grid — Bloomberg terminal feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(212,168,67,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,168,67,.018) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Ambient top glow */
body::after {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(212,168,67,.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── HEADER ────────────────────────────────── */
.hd {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--hh);
  background: rgba(6,6,6,.97);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
}

.hd-logo {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .2px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
}
.hd-fish { font-size: 17px; line-height: 1; }

.hd-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
}

/* Live / offline pill */
.hd-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid;
  flex-shrink: 0;
  transition: all .4s;
}
.hd-indicator.offline {
  border-color: rgba(238,231,216,.1);
  background: rgba(238,231,216,.03);
}
.hd-indicator.live {
  border-color: rgba(240,53,53,.35);
  background: rgba(240,53,53,.08);
}
.hd-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.offline .hd-dot { background: var(--cream-30); }
.live .hd-dot {
  background: var(--red);
  animation: pulseDot 1.6s ease-in-out infinite;
}
.hd-status-txt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.offline .hd-status-txt { color: var(--cream-30); }
.live    .hd-status-txt { color: #f07070; }

/* Scrolling ticker — desktop only */
.hd-ticker {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: none;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}
.hd-ticker-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: tickerRoll 26s linear infinite;
}
.hd-ticker-track:hover { animation-play-state: paused; }
.t {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--cream-30);
  padding: 0 20px;
}
.t .tv { color: var(--gold); }

.hd-viewers {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--cream-30);
  white-space: nowrap;
  flex-shrink: 0;
  display: none;
}

/* CTA button */
.hd-cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 3px;
  padding: 8px 14px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background .18s, transform .1s;
}
.hd-cta:hover  { background: var(--gold-hi); }
.hd-cta:active { transform: scale(.97); }

/* ── DASHBOARD GRID ────────────────────────── */
.dash {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: var(--gap);
}

/* ── STREAM ────────────────────────────────── */
.stream-wrap {
  width: 100%;
  background: #040407;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
}
@supports not (aspect-ratio: 16/9) {
  .stream-wrap::before {
    content: '';
    display: block;
    padding-top: 56.25%;
  }
}
.stream-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Offline placeholder */
.stream-off {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  text-align: center;
  padding: 24px 20px;
  background: radial-gradient(ellipse 80% 60% at 50% 45%, #0B0F18 0%, #060606 70%);
}
.so-fish {
  font-size: 50px;
  line-height: 1;
  display: block;
  animation: fishFloat 4.5s ease-in-out infinite;
}
.so-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--cream-30);
}
.so-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--cream-60);
  line-height: 1.3;
}
.so-title .so-zero {
  display: block;
  font-weight: 900;
  letter-spacing: .5px;
  color: var(--cream);
}
.so-title .so-sub {
  display: block;
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  color: var(--cream-30);
  margin-top: 4px;
}
.so-next {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(212,168,67,.07);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 20px;
  gap: 2px;
}
.so-next-lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-lo);
}
.so-next-time {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--gold);
}
.so-platforms {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}
.so-plat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  color: var(--cream-30);
  background: var(--cream-12);
  border-radius: 3px;
  padding: 2px 7px;
}
/* Reset anchor defaults so linked badges look identical to the originals */
a.so-plat {
  text-decoration: none;
  cursor: pointer;
}
a.so-plat:hover {
  color: var(--cream-60);
}

/* Stream live overlays */
.s-overlay-live {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(240,53,53,.92);
  backdrop-filter: blur(8px);
  border-radius: 3px;
  padding: 4px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #fff;
}
.s-overlay-viewers {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  border-radius: 3px;
  padding: 4px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  color: var(--cream-60);
  letter-spacing: .3px;
}

/* ── WIDGETS COLUMN ────────────────────────── */
.widgets {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* ── CARD BASE ─────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  transition: border-color .25s;
}
.card:hover { border-color: rgba(212,168,67,.28); }

.clbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.clbl::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--gold-lo);
  flex-shrink: 0;
}

/* ── NET WORTH CARD ────────────────────────── */
.nw-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
}
.nw-number {
  font-family: 'Playfair Display', serif;
  font-size: 50px;
  font-weight: 900;
  color: var(--cream);
  line-height: .95;
  letter-spacing: -1px;
  transition: color .3s;
}
.nw-mini-chart {
  width: 66px;
  height: 32px;
  flex-shrink: 0;
  margin-top: 6px;
}
.nw-delta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--green);
  margin-bottom: 14px;
  letter-spacing: .3px;
}
/* Pre-launch / zero state */
.nw-delta.muted {
  color: var(--cream-30);
  font-style: italic;
}
.nw-rule {
  height: 1px;
  background: var(--border);
  margin-bottom: 12px;
}
.nw-assets {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nw-row-label {
  font-size: 11.5px;
  color: var(--cream-60);
  display: flex;
  align-items: center;
  gap: 7px;
}
.nw-pip {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-lo);
  flex-shrink: 0;
}
.nw-row-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--cream-30);
}

/* ── NAME SUBMISSION (Vote section) ────────── */
.vote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

/* Badge: pre-launch / collecting */
.vote-badge-pre {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(212,168,67,.1);
  border: 1px solid rgba(212,168,67,.3);
  color: var(--gold);
  padding: 3px 8px;
  border-radius: 3px;
}

.vote-q {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 10px;
  line-height: 1.2;
}

.name-desc {
  font-size: 12px;
  color: var(--cream-60);
  line-height: 1.6;
  margin-bottom: 14px;
  font-style: italic;
}

.name-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.name-input {
  width: 100%;
  background: rgba(238,231,216,.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 11px 12px;
  color: var(--cream);
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 400;
  outline: none;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
  caret-color: var(--gold);
}
.name-input:focus {
  border-color: var(--gold);
  background: rgba(212,168,67,.04);
}
.name-input::placeholder {
  color: var(--cream-30);
  font-style: italic;
  font-weight: 300;
}
.name-input:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.name-submit {
  width: 100%;
  background: var(--gold);
  color: #000;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  padding: 12px;
  cursor: pointer;
  transition: background .18s, transform .1s, color .2s;
}
.name-submit:hover:not(:disabled) { background: var(--gold-hi); }
.name-submit:active:not(:disabled) { transform: scale(.98); }
.name-submit:disabled {
  cursor: default;
}

.name-foot {
  margin-top: 10px;
}
.name-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--cream-30);
  letter-spacing: .3px;
}

/* ── GOAL CARD ─────────────────────────────── */
.goal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 16px 15px;
  transition: border-color .25s;
}
.goal-card:hover { border-color: rgba(212,168,67,.28); }

.goal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.goal-name {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--cream);
  line-height: .95;
  letter-spacing: -.3px;
}
.goal-name-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-lo);
  margin-bottom: 5px;
}
.goal-locked {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--cream-30);
  text-align: right;
  flex-shrink: 0;
  line-height: 1.6;
}
.goal-locked strong { color: var(--cream-30); }

/* Progress bar */
.goal-track {
  height: 14px;
  background: rgba(238,231,216,.05);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
}
.goal-fill {
  height: 100%;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--gold-lo) 0%, var(--gold) 55%, var(--gold-hi) 100%);
  width: 0;
  transition: width 2.2s cubic-bezier(.22,1,.36,1);
  position: relative;
  overflow: hidden;
}
/* Shimmer — only runs once goal has some width */
.goal-fill::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  animation: shimmer 3s ease-in-out infinite 2.4s;
}
.goal-nums {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.goal-raised {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--gold);
  font-weight: 500;
}
.goal-pct {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--cream-30);
}
.goal-target {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--cream-30);
}

/* ── TOAST ─────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--gold);
  color: #000;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px 20px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  white-space: nowrap;
  z-index: 999;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── ANIMATIONS ────────────────────────────── */
@keyframes pulseDot {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(240,53,53,.5); }
  50%      { opacity: .4; box-shadow: 0 0 0 5px rgba(240,53,53,0); }
}
@keyframes fishFloat {
  0%,100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-10px) rotate(4deg); }
}
@keyframes tickerRoll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes shimmer {
  0%   { transform: translateX(-70px); }
  100% { transform: translateX(500px); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Entrance animations */
.stream-wrap            { animation: riseIn .38s ease both; }
.card:nth-child(1)      { animation: riseIn .38s ease both .07s; }
.card:nth-child(2)      { animation: riseIn .38s ease both .13s; }
.goal-card              { animation: riseIn .38s ease both .18s; }

/* ── DESKTOP (≥ 900px) ─────────────────────── */
@media (min-width: 900px) {
  .hd-ticker  { display: block; }
  .hd-viewers { display: block; }

  .dash {
    display: grid;
    grid-template-columns: 1fr 308px;
    grid-template-rows: 1fr auto;
    height: calc(100vh - var(--hh));
    padding: var(--gap);
    gap: var(--gap);
  }
  .stream-wrap {
    grid-row: 1;
    grid-column: 1;
    aspect-ratio: unset;
    height: 100%;
  }
  .widgets {
    grid-row: 1;
    grid-column: 2;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .widgets::-webkit-scrollbar { display: none; }
  .goal-card {
    grid-row: 2;
    grid-column: 1 / 3;
  }

  /* Compact goal strip on desktop */
  .goal-top   { margin-bottom: 11px; }
  .goal-name  { font-size: 21px; }
  .goal-track { height: 12px; }
}

@media (min-width: 1100px) {
  .dash { grid-template-columns: 1fr 330px; }
  .nw-number { font-size: 54px; }
}
@media (min-width: 1400px) {
  .dash { grid-template-columns: 1fr 360px; gap: 12px; padding: 12px; }
}

/* ── SMALL MOBILE (≤ 380px) ────────────────── */
@media (max-width: 380px) {
  .nw-number { font-size: 42px; }
  .vote-q    { font-size: 16px; }
  .goal-name { font-size: 22px; }
  .hd-logo   { font-size: 14px; }
}

/* ╔══════════════════════════════════════════════╗
   ║   ADMIN PANEL                                ║
   ║   Access: index.html?admin                   ║
   ╚══════════════════════════════════════════════╝ */

.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(6,6,6,.95);
  backdrop-filter: blur(18px) saturate(140%);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-overlay.open { display: flex; }

.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  width: 100%;
  max-width: 420px;
  flex-shrink: 0;
  margin: auto;
}

.admin-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px 8px 0 0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-logo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.admin-close-btn,
.admin-logout-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--cream-30);
  padding: 5px 11px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.admin-close-btn:hover,
.admin-logout-btn:hover {
  border-color: var(--border2);
  color: var(--cream);
}

.admin-body {
  padding: 22px 18px 26px;
}

.admin-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 3px;
}

.admin-subtitle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cream-30);
  margin-bottom: 22px;
}

.admin-section-lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cream-30);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-section-lbl::before {
  content: '';
  display: block;
  width: 12px;
  height: 1px;
  background: var(--cream-30);
  flex-shrink: 0;
}

.admin-field { margin-bottom: 14px; }

.admin-lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}

.admin-input {
  width: 100%;
  background: rgba(238,231,216,.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--cream);
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 400;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
  caret-color: var(--gold);
}
.admin-input:focus { border-color: var(--gold); }
.admin-input::placeholder { color: var(--cream-30); font-style: italic; }
.admin-input option { background: #0a0a0a; color: var(--cream); }

.admin-rule {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.admin-save-btn {
  width: 100%;
  background: var(--gold);
  color: #000;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  padding: 13px;
  cursor: pointer;
  transition: background .18s, transform .1s;
  margin-top: 4px;
}
.admin-save-btn:hover  { background: var(--gold-hi); }
.admin-save-btn:active { transform: scale(.98); }

.admin-feedback {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-align: center;
  margin-top: 10px;
  min-height: 18px;
  letter-spacing: .5px;
}
.admin-feedback.error   { color: var(--red); }
.admin-feedback.success { color: var(--green); }

/* Stream live container */
#streamLive {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #040407;
}
.stream-live-placeholder {
  text-align: center;
  padding: 24px;
}
.slp-icon  { font-size: 40px; margin-bottom: 12px; display: block; }
.slp-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream-30);
  margin-bottom: 6px;
}
.slp-text {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--cream-60);
  line-height: 1.4;
}

/* ── LOGO IMAGE IN HEADER ──────────────────── */
.hd-fish-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  flex-shrink: 0;
}

/* ── SO-PLATFORMS: wrap on tiny screens ─────── */
.so-platforms { flex-wrap: wrap; }

/* ── ADMIN: export config section ───────────── */
.admin-export-btn {
  width: 100%;
  background: transparent;
  color: var(--cream-30);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  margin-top: 12px;
}
.admin-export-btn:hover {
  border-color: var(--border2);
  color: var(--cream-60);
}
.admin-export-wrap {
  margin-top: 12px;
  display: none;
}
.admin-export-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  color: var(--cream-30);
  letter-spacing: .5px;
  line-height: 1.6;
  margin-bottom: 8px;
}
.admin-export-textarea {
  width: 100%;
  background: rgba(238,231,216,.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--cream-60);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  min-height: 180px;
}
.admin-copy-btn {
  width: 100%;
  background: rgba(212,168,67,.15);
  color: var(--gold);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 9px;
  cursor: pointer;
  transition: background .2s;
  margin-top: 6px;
}
.admin-copy-btn:hover { background: rgba(212,168,67,.25); }

/* ── ACCESSIBILITY: reduced motion ──────────── */
@media (prefers-reduced-motion: reduce) {
  .so-fish,
  .hd-dot,
  .goal-fill::after,
  .hd-ticker-track {
    animation: none !important;
  }
  .stream-wrap,
  .card,
  .goal-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ╔══════════════════════════════════════════════╗
   ║   NAMING SYSTEM — styles                     ║
   ╚══════════════════════════════════════════════╝ */

/* ── "Let the Fish Decide" secondary button ─── */
.name-fish-btn {
  width: 100%;
  background: transparent;
  color: var(--cream-60);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 11px;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.name-fish-btn:hover {
  border-color: var(--gold-lo);
  color: var(--gold);
  background: rgba(212,168,67,.05);
}
.name-fish-btn:active { transform: scale(.98); }

/* ── Homepage leaderboard ──────────────────── */
.name-leaderboard {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.nlb-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nlb-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
  padding: 0;
}
.nlb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nlb-rank {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--cream-30);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}
.nlb-name {
  flex: 1;
  font-size: 12.5px;
  color: var(--cream-60);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nlb-votes {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--cream-30);
  flex-shrink: 0;
}
.nlb-item.first .nlb-votes { color: var(--gold); }
.nlb-item.first .nlb-name  { color: var(--cream); font-weight: 500; }
.nlb-empty {
  font-size: 11px;
  color: var(--cream-30);
  font-style: italic;
}
.nlb-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  color: var(--cream-30);
  text-decoration: none;
  letter-spacing: .3px;
  transition: color .2s;
  display: inline-block;
}
.nlb-link:hover { color: var(--gold); }

/* ── name-the-fish.html — page layout ─────── */
.ntf-main {
  position: relative;
  z-index: 1;
  padding: 40px 5% 80px;
}
.ntf-inner {
  max-width: 640px;
  margin: 0 auto;
}
.ntf-back {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--cream-30);
  text-decoration: none;
  letter-spacing: .5px;
  margin-bottom: 28px;
  transition: color .2s;
}
.ntf-back:hover { color: var(--gold); }
.ntf-page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 6vw, 50px);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 8px;
}
.ntf-page-sub {
  font-size: 14px;
  color: var(--cream-60);
  line-height: 1.65;
  margin-bottom: 32px;
  font-style: italic;
}

/* Featured Moorgan Stanley card */
.ntf-featured {
  background: linear-gradient(135deg, rgba(212,168,67,.09), rgba(212,168,67,.04));
  border: 1px solid var(--gold-lo);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ntf-featured-info { flex: 1; min-width: 160px; }
.ntf-featured-lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-lo);
  margin-bottom: 5px;
}
.ntf-featured-name {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.ntf-featured-sub {
  font-size: 12px;
  color: var(--cream-30);
  font-style: italic;
}
.ntf-featured-votes {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--cream-30);
  margin-top: 5px;
}
.ntf-vote-featured-btn {
  background: var(--gold);
  color: #000;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  padding: 11px 20px;
  cursor: pointer;
  transition: background .18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.ntf-vote-featured-btn:hover:not(:disabled) { background: var(--gold-hi); }
.ntf-vote-featured-btn:disabled {
  background: rgba(212,168,67,.25);
  color: rgba(0,0,0,.5);
  cursor: default;
}

/* Section label inside ntf page */
.ntf-section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cream-30);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ntf-section-label::before {
  content: '';
  display: block;
  width: 14px;
  height: 1px;
  background: var(--cream-30);
  flex-shrink: 0;
}

/* Names list */
.ntf-names-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}
.ntf-name-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .2s;
}
.ntf-name-item:hover { border-color: rgba(212,168,67,.28); }
.ntf-name-item--first {
  border-color: var(--gold-lo);
  background: linear-gradient(90deg, rgba(212,168,67,.06), rgba(212,168,67,.02));
}
.ntf-name-info { flex: 1; min-width: 0; }
.ntf-name-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ntf-name-item--first .ntf-name-text { color: var(--gold); }
.ntf-crown { font-size: 13px; vertical-align: middle; }
.ntf-name-votes {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--cream-30);
}
.ntf-vote-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gold);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.ntf-vote-btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(212,168,67,.1);
}
.ntf-vote-btn.voted,
.ntf-vote-btn:disabled {
  border-color: rgba(238,231,216,.1);
  color: var(--cream-30);
  cursor: default;
}
.ntf-empty {
  font-size: 13px;
  color: var(--cream-30);
  font-style: italic;
  padding: 12px 0;
}

/* Submit section at bottom of full page */
.ntf-submit-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
.ntf-submit-heading {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 14px;
}
.ntf-submit-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.ntf-submit-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--cream-30);
  letter-spacing: .3px;
  min-height: 16px;
  transition: color .2s;
}
.ntf-char-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--cream-30);
  text-align: right;
  margin-top: -4px;
}
.ntf-char-count.warn { color: var(--gold); }
