/* ══════════════════════════════════════════════════════════════════════
   THE 9LV FLYWHEEL (#4528). Drawn by public/js/token-flywheel.js on the
   Store's $9LV tab and on public/token.html. The panel brings its own dark
   ground, so it reads the same on the world's slate window and on the
   token page's night background.
   ══════════════════════════════════════════════════════════════════════ */
@font-face {
  font-family: 'New Rocker';
  src: url('/assets/fonts/NewRocker-Regular.ttf?v=2026-10-04a') format('truetype');
  font-display: swap;
}

.tfw {
  --tfw-ink: #0b0f15;
  --tfw-card: #1a2130;
  --tfw-card-hi: #232c3f;
  --tfw-gold: #dda52c;
  --tfw-gold-lt: #f3d79a;
  --tfw-red: #e0535c;
  --tfw-text: #d9dee8;
  --tfw-dim: #97a2b6;
  --tfw-title: 'New Rocker', 'Cinzel', serif;
  --tfw-px: 'Press Start 2P', monospace;
  --tfw-body: 'VT323', 'Courier New', monospace;
  container-type: inline-size;
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  color: var(--tfw-text);
  background:
    radial-gradient(ellipse at 50% 46%, rgba(221, 165, 44, 0.10), transparent 62%),
    #121824;
  border: 2px solid var(--tfw-ink);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(243, 215, 154, 0.22), 0 3px 0 rgba(0, 0, 0, 0.35);
  padding: 16px 18px 18px;
  text-align: left;
}
.tfw *, .tfw *::before, .tfw *::after { box-sizing: border-box; }
.tfw p { margin: 0; }

/* ── head ─────────────────────────────────────────────────────────── */
.tfw-head { display: grid; gap: 5px; margin-bottom: 12px; }
.tfw-kicker { font-family: var(--tfw-px); font-size: 8px; letter-spacing: 2px; color: var(--tfw-gold); }
.tfw-title {
  margin: 0;
  font-family: var(--tfw-title);
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  color: var(--tfw-gold-lt);
  text-shadow: 0 2px 0 var(--tfw-ink);
  letter-spacing: 0.5px;
}
.tfw-idea { font-family: var(--tfw-body); font-size: 19px; line-height: 1.12; color: var(--tfw-text); max-width: 64em; }
.tfw-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 2px; }
.tfw-legend-i { display: inline-flex; align-items: center; gap: 7px; }
.tfw-legend-i i { font-style: normal; font-family: var(--tfw-body); font-size: 17px; color: var(--tfw-dim); }

/* ── chips ────────────────────────────────────────────────────────── */
.tfw-chip {
  flex: 0 0 auto;
  font-family: var(--tfw-px);
  font-size: 7px;
  line-height: 1;
  letter-spacing: 1px;
  padding: 4px 6px 3px;
  border-radius: 4px;
  border: 1px solid var(--tfw-ink);
  white-space: nowrap;
}
.tfw-chip.is-live { background: var(--tfw-gold); color: var(--tfw-ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2); }
.tfw-chip.is-coming { background: transparent; color: var(--tfw-red); border-color: var(--tfw-red); }

/* ── the wheel ────────────────────────────────────────────────────── */
.tfw-wheel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr) minmax(0, 1fr);
  grid-template-areas:
    'comm  comm  comm'
    'play  .     standing'
    '.     hub   .'
    'spend .     prizes';
  column-gap: 28px;
  row-gap: 26px;
}
.tfw-band-community { grid-area: comm; margin-bottom: 8px; }
.tfw-play { grid-area: play; }
.tfw-standing { grid-area: standing; }
.tfw-hub { grid-area: hub; }
.tfw-spend { grid-area: spend; }
.tfw-prizes { grid-area: prizes; }
.tfw-step { display: none; }

.tfw-arrows { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 0; }
.tfw-track { fill: none; stroke: rgba(221, 165, 44, 0.10); stroke-width: 22; stroke-linejoin: round; }
.tfw-ring, .tfw-spoke, .tfw-feed { fill: none; stroke-linecap: round; }
.tfw-ring { stroke: var(--tfw-gold); stroke-width: 3; stroke-dasharray: 9 7; animation: tfw-run 1.1s linear infinite; }
.tfw-spoke { stroke: var(--tfw-gold-lt); stroke-width: 2; stroke-dasharray: 5 6; animation: tfw-run 1.4s linear infinite; }
.tfw-spoke.is-coming { stroke: var(--tfw-red); }
.tfw-feed { stroke: var(--tfw-gold-lt); stroke-width: 2; stroke-dasharray: 2 6; animation: tfw-run 1.6s linear infinite; }
.tfw-ah { fill: var(--tfw-gold); }
.tfw-ah-s { fill: var(--tfw-gold-lt); }
.tfw-al { font-family: var(--tfw-px); font-size: 7px; letter-spacing: 1px; fill: var(--tfw-dim); text-transform: uppercase; }
@keyframes tfw-run { to { stroke-dashoffset: -32; } }
@media (prefers-reduced-motion: reduce) {
  .tfw-ring, .tfw-spoke, .tfw-feed { animation: none; }
}

/* ── a card on the wheel ──────────────────────────────────────────── */
.tfw-node {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--tfw-card-hi), var(--tfw-card));
  border: 2px solid var(--tfw-ink);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 3px 0 rgba(0, 0, 0, 0.4);
  padding: 10px 12px 11px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.tfw-node::before {
  content: '';
  position: absolute;
  left: 10px; right: 10px; top: -2px;
  height: 2px;
  background: var(--tfw-gold);
  border-radius: 2px;
}
.tfw-node.is-coming::before { background: var(--tfw-red); opacity: 0.8; }
.tfw-node-head { display: flex; align-items: center; gap: 8px; }
.tfw-node-name {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--tfw-title);
  font-weight: 400;
  font-size: 21px;
  line-height: 1;
  color: var(--tfw-gold-lt);
}
.tfw-node-name small {
  display: block;
  margin-top: 4px;
  font-family: var(--tfw-px);
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--tfw-dim);
  text-transform: uppercase;
}
.tfw-node-line { font-family: var(--tfw-body); font-size: 18px; line-height: 1.08; color: var(--tfw-text); }
.tfw-node-note {
  font-family: var(--tfw-body);
  font-size: 16px;
  line-height: 1.05;
  color: var(--tfw-gold-lt);
  border-top: 1px dashed rgba(243, 215, 154, 0.25);
  padding-top: 5px;
}
.tfw-ico { flex: 0 0 auto; width: 22px; height: 22px; fill: var(--tfw-gold); filter: drop-shadow(1px 1px 0 var(--tfw-ink)); }
.tfw-node.is-coming .tfw-ico { fill: var(--tfw-gold-lt); opacity: 0.8; }

/* the pool sits in the middle, round, and a little brighter */
.tfw-hub {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 250px;
  text-align: center;
  padding: 12px 14px 13px;
  border-radius: 18px;
  border-color: var(--tfw-ink);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(221, 165, 44, 0.28), transparent 70%),
    linear-gradient(180deg, #2a2a2a 0%, #20232b 100%);
  box-shadow: 0 0 0 2px rgba(221, 165, 44, 0.7), 0 0 24px rgba(221, 165, 44, 0.25), 0 3px 0 rgba(0, 0, 0, 0.4);
}
.tfw-hub::before { display: none; }
.tfw-hub .tfw-node-head { justify-content: center; flex-wrap: wrap; gap: 6px 8px; }
.tfw-hub .tfw-ico { width: 26px; height: 26px; }
.tfw-hub .tfw-node-name { flex: 0 1 auto; font-size: 22px; text-align: left; }
.tfw-hub .tfw-node-name small { margin-top: 3px; }

/* ── the two bands ────────────────────────────────────────────────── */
.tfw-band { position: relative; z-index: 1; }
.tfw-band-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--tfw-px);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--tfw-gold);
}
.tfw-band-head .tfw-ico { width: 16px; height: 16px; }
.tfw-band-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.tfw-item {
  background: rgba(26, 33, 48, 0.85);
  border: 2px solid var(--tfw-ink);
  border-radius: 9px;
  padding: 8px 10px 9px;
  display: grid;
  gap: 5px;
  align-content: start;
}
.tfw-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tfw-item-head b { font-family: var(--tfw-title); font-weight: 400; font-size: 17px; line-height: 1; color: var(--tfw-gold-lt); }
.tfw-item p { font-family: var(--tfw-body); font-size: 17px; line-height: 1.05; color: var(--tfw-text); }

.tfw-band-studio {
  margin-top: 18px;
  padding: 12px 12px 12px;
  border: 2px dashed rgba(151, 162, 182, 0.4);
  border-radius: 12px;
}
.tfw-band-studio .tfw-band-head { color: var(--tfw-dim); }
.tfw-band-studio .tfw-band-head .tfw-ico { fill: var(--tfw-dim); }
.tfw-band-studio .tfw-item { background: rgba(11, 15, 21, 0.5); }
.tfw-item-never { border-color: rgba(224, 83, 92, 0.65); }
.tfw-item-never .tfw-item-head b { color: #f2a3a8; }

/* ── a narrow host: the wheel unrolls into a column ───────────────── */
@container (max-width: 620px) {
  .tfw-idea { font-size: 18px; }
  .tfw-wheel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
    row-gap: 0;
  }
  .tfw-wheel > * { grid-area: auto; }
  .tfw-arrows { display: none; }
  .tfw-band-community { margin-bottom: 0; }
  .tfw-hub { max-width: none; }
  .tfw-step {
    display: block;
    position: relative;
    text-align: center;
    padding: 8px 0 18px;
    font-family: var(--tfw-px);
    font-size: 7px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--tfw-dim);
  }
  .tfw-step::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 5px;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top: 8px solid var(--tfw-gold);
    border-bottom: 0;
  }
  .tfw-band-community::after {
    content: '';
    display: block;
    width: 0;
    margin: 6px auto 4px;
    border: 6px solid transparent;
    border-top: 8px solid var(--tfw-gold);
    border-bottom: 0;
  }
  .tfw-step-spend::after { display: none; }
  .tfw-step-spend { padding-bottom: 4px; }
}

/* the Store's $9LV tab is a scrolling column: the slot keeps its height */
.ww-flywheel { flex: 0 0 auto; width: 100%; min-width: 0; margin-bottom: 4px; }
.tfw-nb { white-space: nowrap; }
