/* Pump-friendly 16:9 stream board — full loop energy */
:root {
  --bg: #07040f;
  --panel: rgba(22, 12, 36, 0.82);
  --border: rgba(168, 85, 247, 0.35);
  --text: #f3eefc;
  --muted: #a89bb8;
  --beige: #c4a574;
  --purple: #a855f7;
  --pink: #e879f9;
  --font: "Space Grotesk", system-ui, sans-serif;
  --pixel: "Press Start 2P", monospace;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ticker {
  position: relative;
  z-index: 5;
  overflow: hidden;
  background: linear-gradient(90deg, #1a0b2e, #4c1d95, #1a0b2e);
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 0;
  flex-shrink: 0;
}

.ticker-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: tick 40s linear infinite;
  font-family: var(--pixel);
  font-size: 0.48rem;
  letter-spacing: 0.06em;
  color: #e9d5ff;
  text-transform: uppercase;
}

.ticker-track span { white-space: nowrap; }
.ticker-track .hi { color: var(--beige); }

@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.stream-top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.1rem;
  flex-shrink: 0;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--pixel);
  font-size: 0.48rem;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.45);
  border: 1px solid rgba(248, 113, 113, 0.5);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: pulse 1s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.brand {
  font-family: var(--pixel);
  font-size: 0.7rem;
  color: var(--beige);
  letter-spacing: 0.04em;
}

.handle {
  font-size: 0.85rem;
  color: var(--muted);
}

.stage {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 1.05fr;
  gap: 0.75rem;
  padding: 0.5rem 0.85rem 0.35rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.panel-title {
  font-family: var(--pixel);
  font-size: 0.45rem;
  color: var(--pink);
  letter-spacing: 0.04em;
  padding: 0.75rem 0.85rem 0.4rem;
  line-height: 1.5;
}

/* feed */
.feed {
  flex: 1;
  overflow: hidden;
  padding: 0.35rem 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent);
}

.mock {
  background: rgba(10, 6, 18, 0.55);
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 12px;
  padding: 0.5rem 0.65rem;
  animation: slideIn 0.35s ease;
  flex-shrink: 0;
}

.mock.hot {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.15);
}

.mock .who {
  font-size: 0.72rem;
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.mock .txt {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.35;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.feed-panel {
  position: relative;
  z-index: 6;
}

.mock-form {
  display: flex;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem 0.35rem;
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  position: relative;
  z-index: 8;
  pointer-events: auto;
}

.mock-form input {
  flex: 1;
  min-width: 0;
  background: rgba(10, 6, 18, 0.95);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.95rem;
  pointer-events: auto;
}

.mock-form input:focus {
  outline: 2px solid rgba(192, 132, 252, 0.65);
  border-color: var(--pink);
}

.mock-form button {
  border: none;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
  color: #0a0612;
  white-space: nowrap;
  pointer-events: auto;
  flex-shrink: 0;
}

.mock-form button:hover {
  filter: brightness(1.08);
}

.mock-status {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0 0.75rem 0.65rem;
  min-height: 1.1rem;
}

#fx {
  pointer-events: none !important;
}

.noise {
  pointer-events: none !important;
}

/* hero potato */
.hero-panel {
  position: relative;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(107, 33, 168, 0.35), transparent 70%),
    var(--panel);
  padding: 1rem;
}

.aura-ring {
  position: absolute;
  width: min(70%, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(192, 132, 252, 0.25);
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.35), inset 0 0 40px rgba(168, 85, 247, 0.15);
  animation: ringPulse 3.5s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.06); opacity: 1; }
}

.mog-wrap {
  position: relative;
  z-index: 2;
  width: min(72%, 360px);
  transition: transform 0.15s ease;
}

.mog-wrap.shake {
  animation: shake 0.45s ease;
}

.mog-wrap.bounce {
  animation: bounce 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px) rotate(-2deg); }
  75% { transform: translateX(8px) rotate(2deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-18px); }
  70% { transform: translateY(-6px); }
}

.mog-img {
  width: 100%;
  display: block;
  border-radius: 20px;
  border: 2px solid rgba(192, 132, 252, 0.35);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
  background: #0d0814;
  animation: floaty 4.5s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.mog-shadow {
  height: 18px;
  margin: 0.4rem auto 0;
  width: 55%;
  background: radial-gradient(ellipse, rgba(0,0,0,0.45), transparent 70%);
  border-radius: 50%;
}

.speech {
  position: relative;
  z-index: 3;
  margin-top: 0.75rem;
  max-width: 90%;
  padding: 0.7rem 1rem;
  background: rgba(10, 6, 18, 0.88);
  border: 1px solid rgba(196, 165, 116, 0.45);
  border-radius: 16px;
  color: var(--beige);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(196, 165, 116, 0.12);
}

.subtitle {
  margin-top: 0.55rem;
  font-family: var(--pixel);
  font-size: clamp(0.45rem, 1.1vw, 0.58rem);
  color: var(--pink);
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 0 18px rgba(232, 121, 249, 0.5);
  line-height: 1.6;
  min-height: 2rem;
}

.wave-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--beige), var(--purple), transparent);
  background-size: 200% 100%;
  animation: waveMove 2s linear infinite;
  opacity: 0.7;
}

@keyframes waveMove {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

/* info */
.info-panel {
  padding: 0.9rem;
  gap: 0.75rem;
}

.big-line {
  font-family: var(--pixel);
  font-size: clamp(0.55rem, 1.3vw, 0.72rem);
  line-height: 1.55;
  color: #fff;
  text-align: center;
  padding: 0.85rem 0.6rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(107, 33, 168, 0.5), rgba(196, 165, 116, 0.15));
  border: 1px solid var(--border);
  min-height: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.big-line.pop {
  transform: scale(1.04);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.35);
}

.loop-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.loop-list li {
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.loop-list li.active {
  color: var(--text);
  border-color: rgba(192, 132, 252, 0.4);
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.15);
}

.ca-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.65rem;
  border-radius: 12px;
  background: rgba(10, 6, 18, 0.65);
  border: 1px solid rgba(196, 165, 116, 0.3);
}

.ca-label {
  font-family: var(--pixel);
  font-size: 0.4rem;
  color: var(--beige);
}

.ca-card code {
  font-size: 0.65rem;
  color: var(--beige);
  word-break: break-all;
  line-height: 1.3;
}

.ca-card button {
  border: 1px solid var(--border);
  background: rgba(168, 85, 247, 0.2);
  color: var(--text);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.links a {
  text-decoration: none;
  color: #0a0612;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #c4a574, #e8d5b0);
}

.links a:nth-child(1) {
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
  color: #0a0612;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.stats div {
  text-align: center;
  padding: 0.5rem 0.25rem;
  border-radius: 10px;
  background: rgba(10, 6, 18, 0.45);
  border: 1px solid rgba(168, 85, 247, 0.15);
}

.stats strong {
  display: block;
  font-size: 1.15rem;
  color: var(--beige);
}

.stats span {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stream-bot {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem 0.7rem;
  border-top: 1px solid var(--border);
  background: rgba(7, 4, 15, 0.92);
  flex-shrink: 0;
}

.ctrl {
  border: 1px solid var(--border);
  background: rgba(28, 16, 42, 0.9);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ctrl:hover {
  border-color: var(--pink);
  background: rgba(107, 33, 168, 0.35);
}

.ctrl.off {
  opacity: 0.55;
}

.voice-pick {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(28, 16, 42, 0.75);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.55rem 0.25rem 0.7rem;
}

.voice-pick span {
  white-space: nowrap;
}

.voice-pick select {
  max-width: 160px;
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.voice-pick select option {
  background: #120a1c;
  color: var(--text);
}

.hint {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .voice-pick span { display: none; }
  .voice-pick select { max-width: 120px; }
}

/* stream portrait / smaller screens */
@media (max-width: 1000px) {
  body { overflow: auto; }
  .stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    overflow: auto;
  }
  .feed { max-height: 180px; }
  .hint { display: none; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .mog-img, .aura-ring, .wave-bar, .live-dot {
    animation: none;
  }
}
