:root {
  --bg: #06040B;
  --bg2: #0D0717;
  --ink: #FFFFFF;
  --dim: #9C8FB8;
  --lime: #C6FF00;
  --green: #39FF14;
  --pink: #FF2D95;
  --cyan: #00F0FF;
  --violet: #7A2BFF;
  --danger: #FF1F4B;
  --mic-text: #0B0A06;
  --stroke: rgba(255, 255, 255, 0.10);
  --head: "Arial Black", "Helvetica Neue", Impact, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

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

/* Neon glow blobs + grid texture behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(40% 30% at 12% 8%, rgba(122, 43, 255, 0.45), transparent 70%),
    radial-gradient(45% 35% at 92% 14%, rgba(255, 45, 149, 0.40), transparent 70%),
    radial-gradient(55% 45% at 50% 108%, rgba(57, 255, 20, 0.30), transparent 70%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  animation: drift 14s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .07;
  background-image:
    repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 40px);
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -12px, 0) scale(1.05); }
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

/* ---- Top bar ---- */
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px 14px;
}
.dot {
  width: 16px; height: 16px;
  background: #3A2F4E;
  transform: rotate(45deg);              /* hard diamond, not a soft dot */
  box-shadow: 0 0 0 2px rgba(255,255,255,.08);
  transition: background .2s, box-shadow .2s;
}
.dot.live {
  background: var(--green);
  box-shadow: 0 0 10px var(--green), 0 0 22px var(--green);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: .55; } }

.brand-name {
  font-family: var(--head);
  font-size: 28px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
  -webkit-text-stroke: 1px rgba(0,0,0,.35);
  text-shadow:
    0 0 6px var(--cyan),
    3px 3px 0 var(--pink),
    -2px -2px 0 var(--violet);
}
.brand-tag {
  font-family: var(--head);
  font-size: 12px;
  font-style: italic;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 2px;
  color: var(--lime);
  text-shadow: 0 0 8px rgba(198, 255, 0, .6);
}

/* ---- Status pill (skewed parallelogram, neon outline) ---- */
.status {
  align-self: flex-start;
  margin: 4px 22px 0;
  padding: 8px 18px;
  transform: skewX(-10deg);
  background: rgba(0, 240, 255, 0.08);
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--head);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(0, 240, 255, .45), inset 0 0 10px rgba(0, 240, 255, .15);
}
.status > * { display: inline-block; transform: skewX(10deg); }

/* ---- Heard ---- */
.heard {
  padding: 18px 22px 6px;
  font-family: var(--head);
  font-size: 34px;
  font-weight: 900;
  font-style: italic;
  line-height: 1.02;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 45, 149, .35), 2px 2px 0 rgba(0,0,0,.4);
}

/* ---- Feed ---- */
.feed-card {
  position: relative;
  flex: 1;
  margin: 16px 18px 10px;
  padding: 16px 18px;
  background: rgba(13, 7, 23, 0.72);
  border: 2px solid var(--lime);
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(198, 255, 0, .25), inset 0 0 22px rgba(0,0,0,.5);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.feed-card::-webkit-scrollbar { display: none; }
.feed { font-size: 16px; line-height: 1.4; }
.feed-empty { color: var(--dim); font-size: 15px; font-style: italic; }
.feed:not(:empty) + .feed-empty { display: none; }

.entry { margin-bottom: 16px; padding-left: 12px; border-left: 3px solid var(--violet); }
.entry .label {
  font-family: var(--head);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pink);
  text-shadow: 0 0 8px rgba(255, 45, 149, .5);
  margin-bottom: 3px;
}
.entry.you { border-left-color: var(--cyan); }
.entry.you .label { color: var(--cyan); text-shadow: 0 0 8px rgba(0,240,255,.5); }
.entry.err { border-left-color: var(--danger); }
.entry.err .label { color: var(--danger); text-shadow: 0 0 8px rgba(255,31,75,.6); }
.entry .body { color: var(--ink); }

/* ---- Type fallback ---- */
.type-row { display: flex; gap: 8px; margin: 0 18px 10px; }
.cmd-input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 3px;
  border: 2px solid var(--stroke);
  background: rgba(0,0,0,.45);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  outline: none;
}
.cmd-input::placeholder { color: var(--dim); }
.cmd-input:focus { border-color: var(--cyan); box-shadow: 0 0 12px rgba(0,240,255,.45); }
.send-btn {
  width: 52px;
  border: 2px solid var(--cyan);
  border-radius: 3px;
  background: rgba(0,240,255,.10);
  color: var(--cyan);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,240,255,.35);
}
.send-btn:active { transform: scale(.96); }

/* ---- Hero mic (the loud one) ---- */
.mic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 96px;
  margin: 8px 18px 22px;
  border: 3px solid #0B0A06;
  border-radius: 6px;
  background: linear-gradient(120deg, var(--lime), var(--green));
  color: var(--mic-text);
  font-family: var(--head);
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  filter: drop-shadow(0 0 14px rgba(198, 255, 0, .65));
  transition: filter .2s, transform .05s, background .2s, color .2s;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.mic::before {                          /* diagonal hazard stripes */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,.16) 0 14px, transparent 14px 28px);
  pointer-events: none;
}
.mic:active { transform: translateY(1px) scale(.99); }
.mic.listening {
  background: linear-gradient(120deg, var(--pink), var(--danger));
  color: #fff;
  filter: drop-shadow(0 0 16px rgba(255, 45, 149, .8));
  animation: hardpulse 0.9s ease-in-out infinite;
}
@keyframes hardpulse {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(255, 45, 149, .65)); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 30px rgba(255, 45, 149, 1)); transform: scale(1.012); }
}
.mic-ic { font-size: 26px; filter: drop-shadow(0 0 6px rgba(0,0,0,.4)); }
.mic-label { position: relative; }

.stt-note {
  margin: -4px 22px 16px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 0 8px rgba(255,45,149,.4);
}

@media (prefers-reduced-motion: reduce) {
  body::before, .mic.listening, .dot.live { animation: none; }
}
