/* ═══════════════════════════════════════════════════════════════
   TWO NOT THREE — Retro Arcade Aesthetic
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg-deep:     #0a0015;
  --bg-mid:      #1a0030;
  --bg-panel:    rgba(26, 0, 48, 0.75);

  --pink:        #ff2975;
  --pink-glow:   #ff71ce;
  --cyan:        #00f0ff;
  --cyan-glow:   #4dffff;
  --yellow:      #ffd700;
  --green:       #00ff9f;
  --red:         #ff3e3e;
  --purple:      #b967ff;

  --text:        #f5f5ff;
  --dim:         #8080a0;

  --font-display: 'Press Start 2P', monospace;
  --font-body:    'VT323', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: none; /* pixel crispness */
  image-rendering: pixelated;
}

body {
  background:
    radial-gradient(ellipse at top, #2a0055 0%, transparent 60%),
    radial-gradient(ellipse at bottom, #550033 0%, transparent 60%),
    linear-gradient(180deg, #0a0015 0%, #1a0030 50%, #0a0015 100%);
  background-attachment: fixed;
  position: relative;
}

/* ─── Grid floor backdrop ─── */
body::before {
  content: "";
  position: fixed;
  inset: 50% 0 0 0;
  background-image:
    linear-gradient(var(--pink) 1px, transparent 1px),
    linear-gradient(90deg, var(--pink) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center bottom;
  transform: perspective(300px) rotateX(60deg);
  transform-origin: center top;
  opacity: 0.15;
  mask-image: linear-gradient(to bottom, transparent 0%, black 50%, transparent 100%);
  pointer-events: none;
  animation: grid-move 20s linear infinite;
  z-index: 0;
}

@keyframes grid-move {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 40px, 40px 0; }
}

/* ─── CRT effects ─── */
.crt-scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: multiply;
}

.crt-vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center,
    transparent 40%,
    rgba(0, 0, 0, 0.4) 85%,
    rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
  z-index: 9997;
}

.crt-flicker {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  z-index: 9996;
  animation: flicker 0.15s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 0.02; }
  50%      { opacity: 0.04; }
}

/* ─── Screens ─── */
#app {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  z-index: 1;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  overflow-y: auto;
  padding: 24px 20px;
  animation: screen-in 0.4s ease-out;
}

.screen.active { display: flex; }
.screen.exiting { animation: screen-out 0.3s ease-in forwards; }

@keyframes screen-in {
  from { opacity: 0; transform: translateY(20px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes screen-out {
  from { opacity: 1; transform: translateY(0);     filter: blur(0); }
  to   { opacity: 0; transform: translateY(-20px); filter: blur(4px); }
}

/* ─── Glow text helpers ─── */
.glow-pink {
  color: var(--pink);
  text-shadow:
    0 0 4px var(--pink),
    0 0 12px var(--pink-glow),
    0 0 24px rgba(255, 41, 117, 0.5);
}
.glow-cyan {
  color: var(--cyan);
  text-shadow:
    0 0 4px var(--cyan),
    0 0 12px var(--cyan-glow),
    0 0 24px rgba(0, 240, 255, 0.5);
}
.glow-yellow {
  color: var(--yellow);
  text-shadow:
    0 0 4px var(--yellow),
    0 0 12px var(--yellow),
    0 0 24px rgba(255, 215, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   SCREEN 1 — ATTRACT
   ═══════════════════════════════════════════════════════════════ */

.attract-wrap {
  margin: auto;
  width: 100%;
  max-width: 480px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 20px 0;
}

.logo-stack { display: flex; flex-direction: column; gap: 8px; align-items: center; }

.logo-sub {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--yellow);
  letter-spacing: 2px;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(28px, 10vw, 44px);
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.logo-small {
  font-family: var(--font-body);
  font-size: 0.5em;
  color: var(--text);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.logo-tag {
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--purple);
  letter-spacing: 2px;
  margin-top: 8px;
}

.code-prompt {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.code-prompt .blink {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 2px;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  0%, 50%  { opacity: 1; }
  51%,100% { opacity: 0.2; }
}

.blink-slow { animation: blink 2s steps(2) infinite; }

#code-input {
  font-family: var(--font-display);
  font-size: 16px;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  color: var(--yellow);
  border: 2px solid var(--cyan);
  padding: 16px 12px;
  letter-spacing: 4px;
  width: 100%;
  max-width: 320px;
  outline: none;
  text-transform: uppercase;
  box-shadow:
    0 0 8px rgba(0, 240, 255, 0.4),
    inset 0 0 12px rgba(0, 240, 255, 0.1);
  caret-color: var(--yellow);
}

#code-input:focus {
  border-color: var(--pink);
  box-shadow:
    0 0 16px rgba(255, 41, 117, 0.6),
    inset 0 0 12px rgba(255, 41, 117, 0.15);
}

#code-input::placeholder {
  color: var(--dim);
  opacity: 0.4;
}

.error-line {
  min-height: 20px;
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--red);
  letter-spacing: 1px;
}

.error-line.active { animation: shake 0.4s; }

@keyframes shake {
  10%, 90%  { transform: translateX(-2px); }
  20%, 80%  { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60%  { transform: translateX(6px); }
}

.attract-footer {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 8px;
  color: var(--dim);
  letter-spacing: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   Arcade button — used everywhere
   ═══════════════════════════════════════════════════════════════ */

.arcade-btn {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  padding: 16px 28px;
  background: linear-gradient(180deg, var(--pink) 0%, #c01860 100%);
  color: white;
  border: none;
  border-top:    3px solid #ff71ce;
  border-left:   3px solid #ff71ce;
  border-right:  3px solid #800040;
  border-bottom: 3px solid #800040;
  cursor: pointer;
  text-shadow: 2px 2px 0 #800040;
  box-shadow:
    0 0 20px rgba(255, 41, 117, 0.5),
    0 4px 0 #600030;
  transition: transform 0.05s, box-shadow 0.05s;
  text-transform: uppercase;
}

.arcade-btn:active {
  transform: translateY(4px);
  box-shadow:
    0 0 10px rgba(255, 41, 117, 0.5),
    0 0 0 #600030;
}

.arcade-btn.pulse {
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 41, 117, 0.5), 0 4px 0 #600030; }
  50%      { box-shadow: 0 0 40px rgba(255, 41, 117, 0.9), 0 4px 0 #600030; }
}

.arcade-btn.cyan {
  background: linear-gradient(180deg, var(--cyan) 0%, #0090a0 100%);
  border-top:    3px solid #80ffff;
  border-left:   3px solid #80ffff;
  border-right:  3px solid #005060;
  border-bottom: 3px solid #005060;
  color: #002030;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5), 0 4px 0 #003040;
}

/* ═══════════════════════════════════════════════════════════════
   SCREEN 2 — STORY
   ═══════════════════════════════════════════════════════════════ */

.story-wrap {
  margin: auto;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 20px 0;
  align-items: center;
}

.screen-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 6vw, 28px);
  text-align: center;
  line-height: 1.4;
}

.screen-title .subtitle {
  display: block;
  font-size: 10px;
  color: var(--purple);
  margin-top: 12px;
  letter-spacing: 2px;
}

.story-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.story-card {
  background: var(--bg-panel);
  border: 2px solid var(--cyan);
  padding: 16px;
  position: relative;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
  animation: slide-in 0.5s ease-out backwards;
}

.story-card:nth-child(1) { animation-delay: 0.1s; }
.story-card:nth-child(2) { animation-delay: 0.3s; }
.story-card:nth-child(3) { animation-delay: 0.5s; }

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.story-number {
  position: absolute;
  top: -14px;
  left: 12px;
  background: var(--bg-deep);
  padding: 2px 10px;
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--yellow);
  letter-spacing: 2px;
  border: 2px solid var(--yellow);
}

.story-title {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--pink);
  letter-spacing: 1px;
  margin-bottom: 8px;
  margin-top: 4px;
}

.story-line {
  font-size: 20px;
  color: var(--text);
  line-height: 1.3;
}

.story-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 8px;
  color: var(--green);
  margin-top: 8px;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════════
   SCREEN 3 — MODE SELECT
   ═══════════════════════════════════════════════════════════════ */

.mode-wrap {
  margin: auto;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 20px 0;
  align-items: center;
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.mode-card {
  background: var(--bg-panel);
  border: 3px solid var(--cyan);
  padding: 24px 16px;
  font-family: var(--font-display);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

.mode-card:hover,
.mode-card:active {
  border-color: var(--pink);
  transform: translateY(-4px);
  box-shadow: 0 0 24px rgba(255, 41, 117, 0.5);
}

.mode-label {
  font-size: 12px;
  color: var(--yellow);
  letter-spacing: 2px;
}

.mode-desc {
  font-size: 11px;
  color: var(--cyan);
  line-height: 1.6;
  letter-spacing: 1px;
}

.mode-meta {
  font-size: 8px;
  color: var(--dim);
  font-family: var(--font-body);
  letter-spacing: 1px;
  margin-top: 4px;
}

.weather-strip {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px dashed var(--yellow);
  padding: 12px 16px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--yellow);
  letter-spacing: 1px;
}

.loading-dots::after {
  content: "";
  animation: dots 1.2s steps(4) infinite;
}

@keyframes dots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
}

/* ═══════════════════════════════════════════════════════════════
   SCREEN 4 — ROUND
   ═══════════════════════════════════════════════════════════════ */

.round-wrap {
  margin: auto;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
}

.round-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.round-label {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--yellow);
  letter-spacing: 2px;
}

.round-instruction {
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--cyan);
  letter-spacing: 2px;
  animation: blink 1.5s steps(2) infinite;
}

.cards-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.option-card {
  background: var(--bg-panel);
  border: 3px solid var(--cyan);
  padding: 16px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.3s;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
  animation: card-in 0.5s ease-out backwards;
}

.option-card:nth-child(1) { animation-delay: 0.0s; }
.option-card:nth-child(2) { animation-delay: 0.15s; }
.option-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.option-card:hover,
.option-card:active {
  border-color: var(--pink);
  box-shadow: 0 0 20px rgba(255, 41, 117, 0.5);
  transform: translateX(4px);
}

.option-card.pick-mode {
  border-color: var(--green);
  box-shadow: 0 0 20px rgba(0, 255, 159, 0.4);
}

.option-card.pick-mode:hover,
.option-card.pick-mode:active {
  border-color: var(--yellow);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
}

.option-card.eliminating {
  animation: glitch-out 0.6s forwards;
  pointer-events: none;
}

@keyframes glitch-out {
  0%   { opacity: 1; transform: translateX(0); filter: none; }
  20%  { transform: translateX(-8px); filter: hue-rotate(90deg) contrast(2); }
  40%  { transform: translateX(10px); filter: hue-rotate(-90deg) contrast(1.5); }
  60%  { transform: translateX(-6px); filter: hue-rotate(180deg); }
  80%  { transform: translateX(4px); opacity: 0.3; }
  100% { transform: scaleY(0); opacity: 0; filter: blur(8px); }
}

.option-card.winner {
  animation: winner-flash 0.8s ease-out;
  border-color: var(--yellow);
  box-shadow:
    0 0 30px rgba(255, 215, 0, 0.8),
    0 0 60px rgba(255, 215, 0, 0.4);
}

@keyframes winner-flash {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

.option-name {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--pink);
  letter-spacing: 1px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.option-location {
  font-family: var(--font-display);
  font-size: 8px;
  color: var(--yellow);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.option-blurb {
  font-size: 19px;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
}

.option-why {
  font-size: 17px;
  color: var(--cyan);
  font-style: italic;
  line-height: 1.3;
  padding-top: 10px;
  border-top: 1px dashed var(--purple);
}

.option-why::before {
  content: "▸ ";
  color: var(--pink);
}

.option-weather-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 20px;
}

.round-status {
  text-align: center;
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 1px;
  min-height: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   SCREEN 5 — FINAL
   ═══════════════════════════════════════════════════════════════ */

.final-wrap {
  margin: auto;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 0;
  align-items: center;
  text-align: center;
}

.victory-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.victory-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 7vw, 32px);
  line-height: 1.3;
  animation: rainbow-glow 3s ease-in-out infinite;
}

@keyframes rainbow-glow {
  0%, 100% { filter: hue-rotate(0deg); }
  50%      { filter: hue-rotate(60deg); }
}

.fireworks {
  font-size: 20px;
  color: var(--yellow);
  letter-spacing: 8px;
  animation: pulse 1.5s ease-in-out infinite;
}

.final-picks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.final-pick-card {
  background: var(--bg-panel);
  border: 3px solid var(--yellow);
  padding: 16px;
  text-align: left;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  animation: slide-in 0.6s ease-out backwards;
}

.final-pick-card:nth-child(2) { animation-delay: 0.3s; }

.final-pick-label {
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--green);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.final-pick-name {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--pink);
  line-height: 1.4;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.final-pick-location {
  font-size: 18px;
  color: var(--cyan);
  margin-bottom: 8px;
}

.final-pick-location a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.final-pick-blurb {
  font-size: 18px;
  color: var(--text);
  line-height: 1.3;
}

.final-weather {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--yellow);
  letter-spacing: 1px;
  border: 2px dashed var(--yellow);
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.4);
}

/* ─── Narrow-phone breathing room ─── */
@media (max-width: 360px) {
  body { font-size: 20px; }
  .logo { font-size: 24px; }
  .arcade-btn { font-size: 10px; padding: 14px 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   v2 additions: plan parts, rain warnings, empty states
   ═══════════════════════════════════════════════════════════════ */

.plan-parts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
}

.plan-part {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid var(--cyan);
}

.plan-part-n {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--yellow);
  flex-shrink: 0;
  padding-top: 2px;
}

.plan-part-body {
  flex: 1;
  min-width: 0;
}

.plan-part-name {
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--text);
  line-height: 1.2;
}

.plan-part-location {
  font-family: var(--font-display);
  font-size: 8px;
  color: var(--dim);
  margin-top: 4px;
  letter-spacing: 1px;
}

.rain-warn {
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--red);
  background: rgba(255, 62, 62, 0.15);
  border: 1px solid var(--red);
  padding: 6px 8px;
  margin-bottom: 10px;
  letter-spacing: 1px;
  animation: blink 1.5s steps(2) infinite;
}

.story-empty,
.round-loading,
.round-error {
  text-align: center;
  padding: 40px 20px;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 2px;
  line-height: 1.6;
}

.round-error { color: var(--red); }

.final-plan-title {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--yellow);
  text-align: center;
  letter-spacing: 2px;
  padding: 12px 16px;
  border-top: 2px dashed var(--yellow);
  border-bottom: 2px dashed var(--yellow);
  background: rgba(255, 215, 0, 0.08);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
   v3: celebration screen (idea accepted)
   ═══════════════════════════════════════════════════════════════ */

.celebration-wrap {
  margin: auto;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px 0;
  align-items: center;
  text-align: center;
}

.celebration-wrap h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 8vw, 36px);
  line-height: 1.2;
  animation: rainbow-glow 3s ease-in-out infinite;
}

.celebration-sub {
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--cyan);
  letter-spacing: 3px;
  margin-top: 8px;
  animation: blink 2s steps(2) infinite;
}

.celebration-ideas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.celebration-idea-card {
  background: var(--bg-panel);
  border: 3px solid var(--yellow);
  padding: 16px;
  text-align: left;
  box-shadow:
    0 0 20px rgba(255, 215, 0, 0.35),
    inset 0 0 30px rgba(255, 215, 0, 0.05);
  animation: idea-in 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) backwards;
  position: relative;
}

.celebration-idea-card:nth-child(2) { animation-delay: 0.3s; }
.celebration-idea-card:nth-child(3) { animation-delay: 0.6s; }
.celebration-idea-card:nth-child(4) { animation-delay: 0.9s; }

@keyframes idea-in {
  from { opacity: 0; transform: scale(0.7) rotate(-2deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}

.celebration-idea-label {
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--green);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.celebration-idea-name {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--pink);
  line-height: 1.4;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════════
   v4: WOULD YOU RATHER side quest
   ═══════════════════════════════════════════════════════════════ */

.arcade-btn-secondary {
  background: linear-gradient(180deg, var(--cyan) 0%, #0090a0 100%);
  border-top:    3px solid #80ffff;
  border-left:   3px solid #80ffff;
  border-right:  3px solid #005060;
  border-bottom: 3px solid #005060;
  color: #002030;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
  box-shadow:
    0 0 16px rgba(0, 240, 255, 0.4),
    0 4px 0 #003040;
  margin-top: 12px;
  font-size: 11px;
}

.arcade-btn-secondary:active {
  transform: translateY(4px);
  box-shadow:
    0 0 8px rgba(0, 240, 255, 0.4),
    0 0 0 #003040;
}

.arcade-btn-small {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 2px;
  padding: 10px 18px;
  background: transparent;
  color: var(--dim);
  border: 2px solid var(--dim);
  cursor: pointer;
  text-transform: uppercase;
  transition: color 0.15s, border-color 0.15s;
}

.arcade-btn-small:hover,
.arcade-btn-small:active {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ─── WYR screen layout ─── */
.wyr-wrap {
  margin: auto;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0 40px;
}

.wyr-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wyr-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 5.5vw, 24px);
  line-height: 1.3;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.wyr-or {
  font-family: var(--font-body);
  font-size: 0.6em;
  color: var(--yellow);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.wyr-progress {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 3px;
}

/* ─── stage: holds question cards or reaction ─── */
.wyr-stage {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

/* The A/B cards */
.wyr-card {
  flex: 1;
  background: var(--bg-panel);
  border: 3px solid var(--cyan);
  padding: 24px 20px;
  cursor: pointer;
  text-align: center;
  font-size: 20px;
  color: var(--text);
  line-height: 1.35;
  position: relative;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 140px;
  animation: wyr-card-in 0.4s ease-out backwards;
}

.wyr-card:nth-child(1) { animation-delay: 0.0s; }
.wyr-card:nth-child(3) { animation-delay: 0.15s; } /* :nth-child(2) is the OR divider */

@keyframes wyr-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.wyr-card:hover,
.wyr-card:active {
  border-color: var(--pink);
  box-shadow: 0 0 24px rgba(255, 41, 117, 0.55);
  transform: translateY(-3px);
}

.wyr-card.picked {
  border-color: var(--yellow);
  box-shadow:
    0 0 30px rgba(255, 215, 0, 0.8),
    0 0 60px rgba(255, 215, 0, 0.3);
  animation: wyr-pick-flash 0.5s ease-out;
}

.wyr-card.fading {
  animation: wyr-fade-out 0.4s ease-in forwards;
  pointer-events: none;
}

@keyframes wyr-pick-flash {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

@keyframes wyr-fade-out {
  from { opacity: 1; }
  to   { opacity: 0.25; transform: scale(0.97); }
}

.wyr-card-label {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--yellow);
  letter-spacing: 3px;
  margin-bottom: 2px;
}

.wyr-card-text {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--text);
  line-height: 1.35;
  font-weight: normal;
}

/* ─── The "OR" divider between cards ─── */
.wyr-or-divider {
  text-align: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--pink);
  padding: 4px 0;
  letter-spacing: 4px;
  text-shadow: 0 0 8px rgba(255, 41, 117, 0.6);
  animation: blink 1.5s steps(2) infinite;
}

/* ─── reaction overlay ─── */
.wyr-reaction {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 0, 21, 0.92);
  animation: wyr-reaction-in 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
  z-index: 5;
}

@keyframes wyr-reaction-in {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

.wyr-reaction-text {
  font-family: var(--font-display);
  font-size: clamp(24px, 8vw, 40px);
  letter-spacing: 3px;
  text-align: center;
  line-height: 1.3;
  padding: 20px;
}

.wyr-reaction-sub {
  display: block;
  font-size: 0.45em;
  color: var(--yellow);
  margin-top: 12px;
  letter-spacing: 4px;
  animation: blink 1s steps(2) infinite;
}

/* ─── footer ─── */
.wyr-footer {
  text-align: center;
  margin-top: 10px;
}

/* ─── loading/empty state ─── */
.wyr-empty {
  text-align: center;
  padding: 80px 20px;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 2px;
  line-height: 1.8;
}

.wyr-empty .wyr-empty-big {
  display: block;
  font-size: 14px;
  color: var(--yellow);
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   v5: DEEPER LEVEL (conversation starters)
   ═══════════════════════════════════════════════════════════════ */

.glow-purple {
  color: var(--purple);
  text-shadow:
    0 0 4px var(--purple),
    0 0 12px rgba(185, 103, 255, 0.7),
    0 0 24px rgba(185, 103, 255, 0.4);
}

.arcade-btn-tertiary {
  background: linear-gradient(180deg, var(--purple) 0%, #7040b0 100%);
  border-top:    3px solid #d8a5ff;
  border-left:   3px solid #d8a5ff;
  border-right:  3px solid #4a2080;
  border-bottom: 3px solid #4a2080;
  color: #ffffff;
  text-shadow: 1px 1px 0 rgba(74, 32, 128, 0.7);
  box-shadow:
    0 0 16px rgba(185, 103, 255, 0.5),
    0 4px 0 #3a1868;
  margin-top: 10px;
  font-size: 11px;
}

.arcade-btn-tertiary:active {
  transform: translateY(4px);
  box-shadow:
    0 0 8px rgba(185, 103, 255, 0.4),
    0 0 0 #3a1868;
}

/* ─── layout ─── */
.conv-wrap {
  margin: auto;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px 0 40px;
}

.conv-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.conv-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 6vw, 32px);
  letter-spacing: 3px;
  line-height: 1.2;
}

.conv-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dim);
  font-style: italic;
  line-height: 1.4;
  max-width: 360px;
  margin: 0 auto;
}

/* ─── saved chip ─── */
.conv-saved-chip {
  align-self: center;
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--yellow);
  background: rgba(255, 215, 0, 0.08);
  border: 2px solid var(--yellow);
  padding: 8px 14px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
}

.conv-saved-icon {
  font-size: 14px;
  animation: pulse-star 1.5s ease-in-out infinite;
}

@keyframes pulse-star {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.15); }
}

/* ─── stage: holds the current question card ─── */
.conv-stage {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  position: relative;
}

/* ─── the question card ─── */
.conv-card {
  background: var(--bg-panel);
  border: 3px solid var(--purple);
  padding: 36px 28px;
  text-align: center;
  box-shadow:
    0 0 20px rgba(185, 103, 255, 0.25),
    inset 0 0 40px rgba(185, 103, 255, 0.05);
  position: relative;
  animation: conv-card-in 0.5s cubic-bezier(0.2, 1, 0.4, 1);
}

.conv-card.fading-out {
  animation: conv-card-out 0.3s ease-in forwards;
}

@keyframes conv-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes conv-card-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}

.conv-question {
  font-family: var(--font-body);
  font-size: clamp(20px, 5.5vw, 26px);
  color: var(--text);
  line-height: 1.4;
  font-weight: normal;
}

.conv-question::before {
  content: "";
  display: block;
  margin: 0 auto 16px;
  width: 40px;
  height: 2px;
  background: var(--purple);
  opacity: 0.6;
}

.conv-question::after {
  content: "";
  display: block;
  margin: 16px auto 0;
  width: 40px;
  height: 2px;
  background: var(--purple);
  opacity: 0.6;
}

/* ─── already-saved indicator ─── */
.conv-already-saved {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 8px;
  color: var(--yellow);
  letter-spacing: 1px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid var(--yellow);
  padding: 3px 8px;
}

/* ─── action row ─── */
.conv-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: conv-card-in 0.6s cubic-bezier(0.2, 1, 0.4, 1) 0.15s backwards;
}

.conv-action-btn {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  padding: 14px 22px;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.05s, box-shadow 0.15s;
  flex: 1;
  min-width: 140px;
  max-width: 220px;
}

.conv-action-btn:active { transform: translateY(3px); }

.conv-save-btn {
  background: linear-gradient(180deg, var(--yellow) 0%, #c8a40c 100%);
  color: var(--bg-deep);
  border-top:    3px solid #ffe566;
  border-left:   3px solid #ffe566;
  border-right:  3px solid #7e6408;
  border-bottom: 3px solid #7e6408;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
  box-shadow:
    0 0 14px rgba(255, 215, 0, 0.5),
    0 4px 0 #5e4a06;
}

.conv-save-btn:active {
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5), 0 0 0 #5e4a06;
}

.conv-save-btn.saved {
  background: linear-gradient(180deg, var(--green) 0%, #007050 100%);
  border-top:    3px solid #90ffc5;
  border-left:   3px solid #90ffc5;
  border-right:  3px solid #004028;
  border-bottom: 3px solid #004028;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 14px rgba(0, 255, 159, 0.5), 0 4px 0 #002818;
}

.conv-skip-btn {
  background: transparent;
  color: var(--dim);
  border: 3px solid var(--dim);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.conv-skip-btn:hover,
.conv-skip-btn:active {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ─── save confirmation flash ─── */
.conv-flash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
  animation: conv-flash 0.8s ease-out forwards;
}

.conv-flash-text {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--yellow);
  letter-spacing: 4px;
  text-shadow:
    0 0 8px var(--yellow),
    0 0 24px rgba(255, 215, 0, 0.8);
}

@keyframes conv-flash {
  0%   { opacity: 0; transform: scale(0.5); }
  30%  { opacity: 1; transform: scale(1.1); }
  70%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.2); }
}

/* ─── end-of-pool state ─── */
.conv-end {
  text-align: center;
  padding: 60px 20px;
}

.conv-end-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--yellow);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.conv-end-sub {
  font-size: 15px;
  color: var(--dim);
  line-height: 1.5;
  margin-bottom: 20px;
}

.conv-end-count {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--green);
  letter-spacing: 2px;
  margin-top: 16px;
}

.conv-end-restart {
  margin-top: 24px;
}

/* ─── footer ─── */
.conv-footer {
  text-align: center;
  margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   v6: SPICE DIAL (lightbulb)
   ═══════════════════════════════════════════════════════════════ */

.spice-dial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.35);
  border: 2px dashed rgba(255, 215, 0, 0.25);
  border-radius: 4px;
  margin: 4px 0 18px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: border-color 0.2s;
}

.spice-dial:active {
  border-color: rgba(255, 215, 0, 0.6);
}

/* ─── the bulb itself ─── */
.spice-bulb {
  position: relative;
  width: 56px;
  height: 80px;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.spice-dial:active .spice-bulb {
  transform: scale(0.95);
}

/* bulb base (screw / metal) */
.bulb-base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 18px;
  background: linear-gradient(180deg, #707080 0%, #404050 100%);
  border-radius: 2px 2px 4px 4px;
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.bulb-base::before,
.bulb-base::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.35);
}
.bulb-base::before { top: 4px; }
.bulb-base::after  { top: 9px; }

/* bulb glass (teardrop shape) */
.bulb-glass {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 54px;
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: radial-gradient(
    ellipse at 30% 30%,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(100, 100, 120, 0.5) 40%,
    rgba(40, 40, 60, 0.7) 100%
  );
  border: 1.5px solid rgba(150, 150, 170, 0.35);
  overflow: visible;
  transition: all 0.4s ease;
}

/* filament inside the bulb */
.bulb-filament {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 16px;
  border: 1.5px solid #888;
  border-top: none;
  border-radius: 0 0 100% 100% / 0 0 50% 50%;
  opacity: 0.7;
  transition: all 0.4s ease;
}

/* outer glow halo */
.bulb-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

/* ─── level 1: OFF / SAFE ─── */
.spice-bulb[data-level="1"] .bulb-glass {
  background: radial-gradient(
    ellipse at 30% 30%,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(80, 80, 100, 0.4) 40%,
    rgba(30, 30, 50, 0.7) 100%
  );
  border-color: rgba(150, 150, 170, 0.35);
}

.spice-bulb[data-level="1"] .bulb-filament {
  border-color: #999;
  box-shadow: 0 0 2px rgba(255, 240, 180, 0.3);
  opacity: 0.6;
}

.spice-bulb[data-level="1"] .bulb-glow {
  background: radial-gradient(circle, rgba(255, 240, 180, 0.15), transparent 60%);
  opacity: 0.4;
}

/* ─── level 2: DIM / GETTING WARM ─── */
.spice-bulb[data-level="2"] .bulb-glass {
  background: radial-gradient(
    ellipse at 30% 30%,
    rgba(255, 240, 180, 0.4) 0%,
    rgba(255, 220, 130, 0.35) 40%,
    rgba(180, 140, 50, 0.4) 100%
  );
  border-color: rgba(255, 230, 150, 0.5);
  box-shadow: 0 0 12px rgba(255, 220, 130, 0.4);
}

.spice-bulb[data-level="2"] .bulb-filament {
  border-color: #ffcc33;
  box-shadow: 0 0 4px rgba(255, 220, 100, 0.7);
  opacity: 0.9;
}

.spice-bulb[data-level="2"] .bulb-glow {
  background: radial-gradient(circle, rgba(255, 220, 130, 0.45), transparent 60%);
  opacity: 1;
  width: 60px;
  height: 74px;
}

/* ─── level 3: GLOW / GETTING FLIRTY ─── */
.spice-bulb[data-level="3"] .bulb-glass {
  background: radial-gradient(
    ellipse at 30% 30%,
    rgba(255, 200, 100, 0.7) 0%,
    rgba(255, 160, 70, 0.6) 40%,
    rgba(220, 100, 40, 0.55) 100%
  );
  border-color: rgba(255, 180, 80, 0.7);
  box-shadow:
    0 0 20px rgba(255, 150, 60, 0.6),
    0 0 40px rgba(255, 120, 40, 0.3);
}

.spice-bulb[data-level="3"] .bulb-filament {
  border-color: #ff9933;
  box-shadow: 0 0 8px rgba(255, 180, 80, 0.9);
  opacity: 1;
}

.spice-bulb[data-level="3"] .bulb-glow {
  background: radial-gradient(circle, rgba(255, 160, 70, 0.55), transparent 60%);
  opacity: 1;
  width: 80px;
  height: 90px;
}

/* ─── level 4: BRIGHT / HEATING UP ─── */
.spice-bulb[data-level="4"] .bulb-glass {
  background: radial-gradient(
    ellipse at 30% 30%,
    rgba(255, 180, 80, 0.85) 0%,
    rgba(255, 120, 60, 0.75) 40%,
    rgba(220, 70, 40, 0.7) 100%
  );
  border-color: rgba(255, 140, 70, 0.85);
  box-shadow:
    0 0 28px rgba(255, 100, 50, 0.75),
    0 0 56px rgba(255, 80, 40, 0.45);
  animation: bulb-pulse 1.5s ease-in-out infinite;
}

.spice-bulb[data-level="4"] .bulb-filament {
  border-color: #ff6633;
  box-shadow:
    0 0 12px rgba(255, 120, 60, 1),
    0 0 24px rgba(255, 80, 40, 0.6);
  opacity: 1;
}

.spice-bulb[data-level="4"] .bulb-glow {
  background: radial-gradient(circle, rgba(255, 100, 50, 0.65), transparent 65%);
  opacity: 1;
  width: 100px;
  height: 108px;
}

@keyframes bulb-pulse {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.15); }
}

/* ─── level 5: BLAZING / SPICY MODE ─── */
.spice-bulb[data-level="5"] .bulb-glass {
  background: radial-gradient(
    ellipse at 30% 30%,
    rgba(255, 220, 150, 1) 0%,
    rgba(255, 100, 50, 0.9) 35%,
    rgba(200, 40, 30, 0.85) 100%
  );
  border-color: rgba(255, 100, 60, 1);
  box-shadow:
    0 0 36px rgba(255, 60, 40, 0.9),
    0 0 80px rgba(255, 40, 30, 0.5);
  animation: bulb-blaze 0.8s ease-in-out infinite;
}

.spice-bulb[data-level="5"] .bulb-filament {
  border-color: #ffcc66;
  box-shadow:
    0 0 16px rgba(255, 200, 100, 1),
    0 0 32px rgba(255, 100, 50, 0.8);
  opacity: 1;
}

.spice-bulb[data-level="5"] .bulb-glow {
  background: radial-gradient(circle, rgba(255, 80, 40, 0.75), rgba(255, 40, 20, 0.3) 50%, transparent 70%);
  opacity: 1;
  width: 120px;
  height: 124px;
  animation: bulb-blaze 0.8s ease-in-out infinite;
}

@keyframes bulb-blaze {
  0%, 100% { filter: brightness(1) hue-rotate(0deg); }
  50%      { filter: brightness(1.3) hue-rotate(-10deg); }
}

/* ─── flames at top of bulb (level 5 only) ─── */
.bulb-flames {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 18px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.spice-bulb[data-level="5"] .bulb-flames {
  opacity: 1;
}

.flame {
  position: absolute;
  bottom: 0;
  width: 8px;
  height: 16px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 200, 0.4) 20%,
    rgba(255, 160, 60, 0.9) 50%,
    rgba(255, 60, 30, 1) 100%
  );
  border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
  transform-origin: bottom center;
  animation: flame-dance 0.4s ease-in-out infinite alternate;
}

.flame-1 { left: 4px; animation-delay: 0s; }
.flame-2 { left: 16px; height: 20px; animation-delay: 0.1s; }
.flame-3 { left: 28px; animation-delay: 0.2s; }

@keyframes flame-dance {
  0%   { transform: scaleY(1) scaleX(1) rotate(0deg); opacity: 0.85; }
  100% { transform: scaleY(1.3) scaleX(0.7) rotate(3deg); opacity: 1; }
}

/* ─── sparks around bulb (level 5) ─── */
.bulb-sparks {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.spice-bulb[data-level="5"] .bulb-sparks { opacity: 1; }

.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #ffdd66;
  border-radius: 50%;
  box-shadow: 0 0 6px #ff9933, 0 0 12px #ff6633;
  animation: spark-fly 1.4s ease-out infinite;
}

.spark-1 { top: 10%; left: 20%; animation-delay: 0s; }
.spark-2 { top: 30%; right: 10%; animation-delay: 0.35s; }
.spark-3 { bottom: 30%; left: 10%; animation-delay: 0.7s; }
.spark-4 { bottom: 20%; right: 20%; animation-delay: 1.05s; }

@keyframes spark-fly {
  0%   { transform: translate(0, 0) scale(0); opacity: 0; }
  15%  { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx, 10px), var(--dy, -30px)) scale(0); opacity: 0; }
}

.spark-1 { --dx: -15px; --dy: -25px; }
.spark-2 { --dx: 20px;  --dy: -20px; }
.spark-3 { --dx: -18px; --dy: 22px; }
.spark-4 { --dx: 15px;  --dy: 25px; }

/* ─── spice label ─── */
.spice-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.spice-label-text {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  line-height: 1.3;
  transition: color 0.3s;
  display: block;
}

.spice-label-hint {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dim);
  font-style: italic;
  line-height: 1.2;
}

/* Label colors by level */
.spice-bulb[data-level="1"] ~ .spice-label .spice-label-text { color: var(--cyan); }
.spice-bulb[data-level="2"] ~ .spice-label .spice-label-text { color: var(--yellow); }
.spice-bulb[data-level="3"] ~ .spice-label .spice-label-text { color: #ffa040; text-shadow: 0 0 6px rgba(255, 160, 60, 0.5); }
.spice-bulb[data-level="4"] ~ .spice-label .spice-label-text { color: #ff6040; text-shadow: 0 0 8px rgba(255, 100, 60, 0.6); }
.spice-bulb[data-level="5"] ~ .spice-label .spice-label-text {
  color: #ff3030;
  text-shadow: 0 0 10px rgba(255, 60, 40, 0.8), 0 0 18px rgba(255, 40, 20, 0.4);
  animation: blink 1s steps(2) infinite;
}

/* Tiny level tick indicators above bulb */
.spice-bulb::after {
  content: "● ● ● ● ●";
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  pointer-events: none;
}

.spice-bulb[data-level="1"]::after { color: rgba(255, 255, 255, 0.15); }
.spice-bulb[data-level="2"]::after { color: rgba(255, 220, 130, 0.3); }
.spice-bulb[data-level="3"]::after { color: rgba(255, 160, 70, 0.5); }
.spice-bulb[data-level="4"]::after { color: rgba(255, 100, 60, 0.7); }
.spice-bulb[data-level="5"]::after { color: rgba(255, 60, 40, 0.9); }

/* Level indicator as filled dots */
.spice-bulb[data-level="1"]::before { content: "● ○ ○ ○ ○"; }
.spice-bulb[data-level="2"]::before { content: "● ● ○ ○ ○"; }
.spice-bulb[data-level="3"]::before { content: "● ● ● ○ ○"; }
.spice-bulb[data-level="4"]::before { content: "● ● ● ● ○"; }
.spice-bulb[data-level="5"]::before { content: "● ● ● ● ●"; }

.spice-bulb::before {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7px;
  letter-spacing: 2px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.spice-bulb[data-level="1"]::before { color: var(--cyan); }
.spice-bulb[data-level="2"]::before { color: var(--yellow); text-shadow: 0 0 4px rgba(255, 215, 0, 0.5); }
.spice-bulb[data-level="3"]::before { color: #ffa040; text-shadow: 0 0 5px rgba(255, 160, 60, 0.6); }
.spice-bulb[data-level="4"]::before { color: #ff6040; text-shadow: 0 0 6px rgba(255, 100, 60, 0.7); }
.spice-bulb[data-level="5"]::before { color: #ff3030; text-shadow: 0 0 8px rgba(255, 60, 40, 0.9); }

/* Hide the "all five" tick reference row, we only want the dynamic one */
.spice-bulb::after { display: none; }

/* Level-change ripple */
.spice-bulb.level-changed {
  animation: bulb-pop 0.3s ease-out;
}

@keyframes bulb-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
