/* ============================================================
   whatsoutsidethesimulation.ai — main stylesheet
   ============================================================ */

:root {
  --bg: #000000;
  --bg-card: #0a0e0a;
  --bg-card-hover: #0f1410;
  --border: rgba(0, 255, 102, 0.12);
  --border-bright: rgba(0, 255, 102, 0.35);
  --text: #e8f5e8;
  --text-dim: #8a9a8a;
  --text-faint: #4a5a4a;
  --green: #00ff66;
  --green-dim: #00cc52;
  --green-deep: #006e2c;
  --green-glow: rgba(0, 255, 102, 0.4);
  --red: #ff3355;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  /* Native UI stack — SF Pro on Apple, Segoe on Windows. Plain single-storey
     'g' with a straight tail, no calligraphic swing: the field should read
     like the operating system, not like a display face. Deliberately does
     NOT fall back to DM Sans. */
  --ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text',
        'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
        ui-sans-serif, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

/* ───────── Honeypot ───────── */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important; pointer-events: none !important;
}

/* ───────── MATRIX RAIN CANVAS ───────── */
#matrix-rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ───────── ASCII SCREAM FACE ───────── */
#ascii-face {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: screen;
  will-change: transform;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.65) 70%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 15%, transparent 85%, rgba(0,0,0,0.6) 100%);
}

main, header, footer, .topbar { position: relative; z-index: 2; }

/* ───────── TOP BAR ───────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}

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

.topbar-actions { display: flex; gap: 8px; align-items: center; }

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--border-bright);
  color: var(--green);
  background: var(--bg-card-hover);
}

.cta-btn {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #000;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.cta-btn:hover {
  box-shadow: 0 0 24px var(--green-glow);
  transform: translateY(-1px);
}

/* ───────── CONTAINERS ───────── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }
section:first-of-type { padding-top: 60px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  padding: 6px 12px;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* ───────── HERO ───────── */
.hero { text-align: center; padding: 80px 0 60px; }

.hero-attribution {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeIn 1s ease 0.2s forwards;
}
.hero-attribution::before { content: '— '; color: var(--green); }

.hero-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(40px, 8vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeIn 1.2s ease 0.4s forwards;
}

.hero-title .green {
  color: var(--green);
  text-shadow: 0 0 30px var(--green-glow);
  font-weight: 600;
}

.hero-title .typer::after {
  content: '_';
  color: var(--green);
  animation: blink 0.9s steps(2) infinite;
  margin-left: 4px;
  font-weight: 400;
}

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

.hero-sub {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.55;
  opacity: 0;
  animation: fadeIn 1s ease 0.7s forwards;
}

.hero-cta-row {
  display: flex; gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 1s ease 0.9s forwards;
}

.btn-lg {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary { background: var(--green); color: #000; }
.btn-primary:hover {
  box-shadow: 0 0 32px var(--green-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ───────── STATS ───────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 60px;
}

.stat {
  background: rgba(10, 14, 10, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-align: left;
  transition: all 0.3s ease;
}
.stat:hover { border-color: var(--border-bright); transform: translateY(-2px); }

.stat-num {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ───────── SECTION HEADERS ───────── */
.sect-head { margin-bottom: 40px; text-align: center; }

.sect-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.sect-title .green { color: var(--green); }

.sect-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
}

/* ───────── ASK CARD ───────── */
.ask-card {
  background: rgba(10, 14, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-bright);
  border-radius: 24px;
  padding: 32px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow:
    0 0 0 1px rgba(0, 255, 102, 0.05),
    0 24px 64px -12px rgba(0, 255, 102, 0.15);
}

.ask-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.ask-header-left {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.5s ease-in-out infinite;
}

.ask-models { display: flex; gap: 6px; }

.model-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid var(--border);
  color: var(--text-dim);
  text-transform: uppercase;
}

.chat-window {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  min-height: 140px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
}

.chat-line {
  margin-bottom: 6px;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}
.chat-line:nth-child(1) { animation-delay: 0.1s; }
.chat-line:nth-child(2) { animation-delay: 0.6s; }
.chat-line:nth-child(3) { animation-delay: 1.1s; }
.chat-line:nth-child(4) { animation-delay: 1.6s; }

.chat-prompt { color: var(--green); }
.chat-user   { color: var(--text); }
.chat-system { color: var(--text-faint); font-style: italic; }
.chat-cursor::after {
  content: '▊';
  color: var(--green);
  animation: blink 0.9s steps(2) infinite;
  margin-left: 2px;
}

.ask-form {
  display: flex; gap: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  padding: 6px 6px 6px 18px;
  align-items: center;
  transition: all 0.2s ease;
}

.ask-form:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 255, 102, 0.08);
}

.ask-form-prefix {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--green);
  font-weight: 600;
}

.ask-input {
  flex: 1;
  background: transparent;
  border: none; outline: none;
  padding: 12px 8px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
}
.ask-input::placeholder { color: var(--text-faint); }

.ask-send {
  background: var(--green);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: all 0.2s ease;
}
.ask-send:hover { box-shadow: 0 0 20px var(--green-glow); }
.ask-send:disabled { opacity: 0.5; cursor: wait; }

.ask-meta {
  display: flex; justify-content: space-between;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

/* ───────── FORM MESSAGES ───────── */
.form-msg {
  font-family: var(--mono);
  font-size: 12px;
  margin-top: 12px;
  min-height: 18px;
  letter-spacing: 0.03em;
}
.form-msg.ok    { color: var(--green); }
.form-msg.err   { color: var(--red); }

/* ───────── HYPOTHESIS CARDS ───────── */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: rgba(10, 14, 10, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-bright);
  background: rgba(15, 20, 15, 0.85);
  transform: translateY(-3px);
}

.card-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  line-height: 1.2;
}

.card-text {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ───────── VOICES ───────── */
.voices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.voice-card {
  background: rgba(10, 14, 10, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  transition: all 0.3s ease;
}
.voice-card:hover { border-color: var(--border-bright); transform: translateY(-3px); }

.voice-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }

.avatar {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-deep), var(--bg-card));
  border: 1px solid var(--border-bright);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}

.voice-info { flex: 1; min-width: 0; }
.voice-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 2px; }
.voice-handle { font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
.voice-quote { font-size: 14px; color: var(--text-dim); line-height: 1.55; margin-bottom: 16px; }

.voice-actions {
  display: flex; gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.voice-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}
.voice-link:hover { color: var(--green); }

/* ───────── GLITCHES FEED ───────── */
.feed {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-item {
  background: rgba(10, 14, 10, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.feed-item:hover {
  border-color: var(--border-bright);
  background: rgba(15, 20, 15, 0.85);
  transform: translateX(4px);
}

.feed-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.feed-tag {
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(255, 51, 85, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 51, 85, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 500;
}
.feed-tag.tag-loop    { background: rgba(0, 255, 102, 0.08); color: var(--green); border-color: var(--border-bright); }
.feed-tag.tag-mandela { background: rgba(255, 200, 0, 0.1);  color: #ffc800;     border-color: rgba(255, 200, 0, 0.25); }

.feed-title    { font-size: 18px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; line-height: 1.3; }
.feed-excerpt  { font-size: 14px; color: var(--text-dim); line-height: 1.55; }

.feed-footer {
  display: flex; gap: 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
}

/* ───────── FOOTER ───────── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 40px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.footer-brand .green { color: var(--green); }

.footer-tag {
  font-size: 13px;
  color: var(--text-dim);
  max-width: 320px;
  line-height: 1.55;
}

.footer-col h4 {
  font-family: var(--mono);
  color: var(--green);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }

.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--green); }

.footer-bottom {
  display: flex; justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

.footer-bottom a { color: var(--text-faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--green); }

/* ───────── REVEAL ───────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ───────── TEXT PAGES (imprint, privacy) ───────── */
.text-content { padding: 60px 24px 100px; max-width: 760px; }
.text-inner { background: rgba(10,14,10,0.7); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 18px; padding: 40px; }
.text-title { font-size: clamp(32px, 5vw, 48px); font-weight: 500; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 18px; }
.text-lead { font-size: 16px; color: var(--text-dim); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.text-content h2 { font-size: 20px; font-weight: 600; color: var(--green); margin: 32px 0 12px; letter-spacing: -0.01em; }
.text-content h3 { font-size: 16px; font-weight: 600; color: var(--text); margin: 24px 0 8px; }
.text-content p, .text-content ul { font-size: 15px; color: var(--text); margin-bottom: 12px; line-height: 1.65; }
.text-content a { color: var(--green); }
.text-content code {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(0,255,102,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--green);
}
.text-meta { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 11px; color: var(--text-faint); }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 900px) {
  .topbar { padding: 12px 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 56px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .voices { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .ask-card { padding: 24px 18px; }
  .ask-meta { flex-direction: column; gap: 6px; }
  .topbar-actions .icon-btn { display: none; }
  .text-inner { padding: 24px; }
}

@media (max-width: 600px) {
  .ask-form { padding: 4px 4px 4px 12px; }
  .ask-form-prefix { font-size: 12px; }
  .ask-send { padding: 8px 12px; font-size: 13px; }
  .feed-item { padding: 18px; }
}

/* ───────── ENTRY PAGE (single-screen signal) ───────── */
.entry-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.entry-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 60px);
}

.entry-center {
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.entry-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 40px;
  opacity: 0.6;
}

.entry-question {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.entry-green { color: var(--green); }

.entry-sub {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.entry-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.entry-textarea {
  width: 100%;
  background: rgba(10, 18, 10, 0.85);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  padding: 16px 18px;
  resize: vertical;
  min-height: 110px;
  outline: none;
  transition: border-color 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.entry-textarea::placeholder { color: var(--text-faint); }

.entry-textarea:focus {
  border-color: var(--border-bright);
  box-shadow: 0 0 0 3px rgba(0, 255, 102, 0.06);
}

.entry-send {
  align-self: flex-end;
  background: transparent;
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  padding: 11px 24px;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.entry-send:hover {
  background: rgba(0, 255, 102, 0.08);
  border-color: var(--green);
}

.entry-send:disabled { opacity: 0.45; cursor: not-allowed; }

.entry-msg {
  min-height: 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  text-align: left;
  padding: 4px 0;
  transition: opacity 0.3s;
}

.entry-msg.ok  { color: var(--green); }
.entry-msg.err { color: var(--red); }

.entry-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 16px 24px;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(0, 255, 102, 0.05);
}

.entry-footer a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s;
}

.entry-footer a:hover { color: var(--text-dim); }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #matrix-rain,
  #ascii-face { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   SIGNAL POD — the composer that floats over the horizon
   ═══════════════════════════════════════════════════════════ */
.pod {
  --charge: 0;
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  isolation: isolate;
  border-radius: 20px;
}

/* pooled light underneath — the pod hovers, it doesn't sit */
.pod::after {
  content: '';
  position: absolute;
  left: 12%; right: 12%;
  bottom: -26px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
              rgba(0, 255, 102, calc(0.16 + var(--charge) * 0.34)) 0%,
              rgba(0, 255, 102, 0) 70%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
  transition: background 0.2s;
}

/* rotating beam riding the border */
.pod-beam {
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  pointer-events: none;
  opacity: 0.5;
  background: conic-gradient(from 0deg,
              transparent 0 58%,
              rgba(0, 255, 102, 0.45) 76%,
              rgba(200, 255, 224, 0.95) 87%,
              transparent 93% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: podspin 7s linear infinite;
}
.pod.is-focus .pod-beam   { opacity: 0.85; animation-duration: 4.5s; }
.pod.is-charging .pod-beam { opacity: 1;    animation-duration: 1.1s; }

@keyframes podspin { to { transform: rotate(1turn); } }

.pod-inner {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(6, 14, 8, 0.80), rgba(2, 7, 4, 0.88));
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.95),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

/* ── status bar ── */
.pod-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid rgba(0, 255, 102, 0.07);
}

.pod-status { display: flex; align-items: center; gap: 7px; white-space: nowrap; }

.pod-led {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}

/* ── carrier wave ── */
.pod-wave {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 16px;
}
.pod-wave i {
  display: block;
  width: 2px;
  height: 2px;
  border-radius: 1px;
  background: var(--green);
  opacity: 0.22;
  transition: opacity 0.25s;
}

.pod-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pod-count b { color: var(--text-dim); font-weight: 500; }
.pod.is-live .pod-count b { color: var(--green); }
.pod.is-full .pod-count b { color: var(--red); }

/* ── the field ── */
.pod-field {
  display: block;
  width: 100%;
  min-height: 104px;
  max-height: 260px;
  padding: 20px 18px 8px;
  background: transparent;
  border: 0;
  outline: none;
  resize: none;
  overflow-y: auto;
  color: var(--text);
  caret-color: var(--green);
  font-family: var(--ui);
  font-size: 17.5px;
  line-height: 1.58;
  font-weight: 400;
  letter-spacing: -0.011em;      /* SF Pro sets a touch loose at this size */
  font-feature-settings: 'ss01', 'cv01';   /* plainest 'a'/'g' where offered */
  text-rendering: optimizeLegibility;
}
.pod-field::placeholder {
  color: var(--text-faint);
  font-family: var(--ui);
  letter-spacing: -0.008em;
}

/* ── foot ── */
.pod-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 12px 18px;
  border-top: 1px solid rgba(0, 255, 102, 0.06);
}

.pod-hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  line-height: 1.4;
}

/* ── hold-to-transmit ── */
.pod-hold {
  position: relative;
  flex: none;
  width: 66px; height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-bright);
  background:
    radial-gradient(circle at 50% 50%,
      rgba(0, 255, 102, calc(0.06 + var(--charge) * 0.38)) 0%,
      rgba(0, 255, 102, 0.03) 60%,
      transparent 72%);
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.12s ease, border-color 0.2s, box-shadow 0.2s;
}
.pod-hold:hover { border-color: var(--green); }
.pod-hold:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 255, 102, 0.25);
}
.pod.is-charging .pod-hold {
  transform: scale(0.94);
  box-shadow: 0 0 26px rgba(0, 255, 102, calc(var(--charge) * 0.55));
}
.pod-hold-label {
  position: relative;
  z-index: 2;
  font-size: 8px;
  line-height: 1.28;
  letter-spacing: 0.11em;
  text-align: center;
  text-indent: 0.11em;      /* letter-spacing pads the right — pull it back */
}

.pod-ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.pod-ring circle { fill: none; stroke-width: 2; stroke-linecap: round; }
.pod-ring .bg { stroke: rgba(0, 255, 102, 0.10); }
.pod-ring .fg { stroke: var(--green); filter: drop-shadow(0 0 4px var(--green)); }

/* ── the moment it goes ── */
.pod.is-sending .pod-inner { animation: podburst 0.5s ease-out; }
@keyframes podburst {
  0%   { box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.45); border-color: var(--green); }
  100% { box-shadow: 0 0 0 46px rgba(0, 255, 102, 0); }
}

.pod-hp { position: absolute !important; left: -9999px !important; }

@media (max-width: 600px) {
  .pod-bar    { gap: 10px; font-size: 9px; }
  .pod-wave   { display: none; }
  .pod-field  { font-size: 16px; padding: 16px 15px 6px; min-height: 92px; }
  .pod-foot   { padding: 10px 10px 12px 15px; }
  .pod-hold   { width: 58px; height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .pod-beam { animation: none; opacity: 0.35; }
}

/* ═══════════════════════════════════════════════════════════
   DEAD HORIZON canvas
   ═══════════════════════════════════════════════════════════ */
#landscape {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

/* the entry column widens to carry the pod */
.entry-center { max-width: 620px; }

/* text pages end on the slim footer — give it room to breathe */
.text-page .entry-footer { margin-top: 40px; }

/* ═══════════════════════════════════════════════════════════
   REALITY CHECK — the human gate, only when the server asks
   ═══════════════════════════════════════════════════════════ */
.rc-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: rcfade 0.24s ease-out;
}
@keyframes rcfade { from { opacity: 0; } to { opacity: 1; } }

.rc-box {
  width: 100%;
  max-width: 420px;
  padding: 26px 24px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  box-shadow: 0 0 60px rgba(0, 255, 102, 0.10), 0 24px 60px rgba(0, 0, 0, 0.8);
  animation: rclift 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes rclift {
  from { transform: translateY(10px) scale(0.985); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.rc-head {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--green);
  text-shadow: 0 0 12px var(--green-glow);
}
.rc-head::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: rcpulse 1.6s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes rcpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.rc-sub {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-faint);
}

.rc-q {
  display: block;
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.rc-input {
  display: block;
  width: 100%;
  padding: 11px 13px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: 3px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.rc-input:focus {
  border-color: var(--green-dim);
  box-shadow: 0 0 0 3px rgba(0, 255, 102, 0.08);
}

.rc-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.rc-cancel, .rc-send {
  padding: 9px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.rc-cancel {
  color: var(--text-faint);
  background: transparent;
  border: 1px solid transparent;
}
.rc-cancel:hover { color: var(--text-dim); border-color: var(--border); }
.rc-send {
  color: #000;
  background: var(--green);
  border: 1px solid var(--green);
  font-weight: 600;
}
.rc-send:hover { background: var(--green-dim); border-color: var(--green-dim); }
.rc-send:focus-visible, .rc-cancel:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .rc-overlay, .rc-box { animation: none; }
  .rc-head::before { animation: none; }
}

/* ═══════════════════════════════════════════════════════════
   CARRIER LOCK — the little game in front of the send dial
   ═══════════════════════════════════════════════════════════ */
.pod-lock {
  padding: 12px 15px 13px;
  border-top: 1px solid rgba(0, 255, 102, 0.10);
  animation: lockdrop 0.32s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes lockdrop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.pod-lock[hidden] { display: none; }

.lock-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 10px;
  margin-bottom: 9px;
}
.lock-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--red);
  transition: color 0.4s;
}
.lock-hint {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-faint);
}

.lock-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.lock-cell {
  flex: 1 1 auto;
  min-width: 22px;
  height: 30px;
  padding: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1;
  color: var(--green-dim);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 255, 102, 0.10);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.lock-cell:hover:not(:disabled) {
  border-color: rgba(0, 255, 102, 0.35);
  background: rgba(0, 255, 102, 0.05);
}
.lock-cell:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
.lock-cell.is-locked {
  color: #000;
  background: var(--green);
  border-color: var(--green);
  opacity: 1 !important;
  transform: none !important;
  box-shadow: 0 0 12px var(--green-glow);
}
.lock-cell.is-quiet { opacity: 0.25; }
.lock-cell.is-miss  { animation: lockmiss 0.42s ease-out; }
@keyframes lockmiss {
  0%   { border-color: var(--red); background: rgba(255, 51, 85, 0.22); }
  100% { border-color: rgba(0, 255, 102, 0.10); background: rgba(0, 0, 0, 0.45); }
}

.lock-skip {
  display: block;
  margin-top: 10px;
  padding: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-faint);
  background: none;
  border: none;
  border-bottom: 1px dotted currentColor;
  cursor: pointer;
}
.lock-skip:hover { color: var(--text-dim); }

/* solved */
.pod-lock.is-solved .lock-label { color: var(--green); }
.pod-lock.is-solved { border-top-color: rgba(0, 255, 102, 0.22); }

/* tried to send too early */
.pod-lock.is-nudged { animation: locknudge 0.42s ease-out; }
@keyframes locknudge {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  55%      { transform: translateX(4px); }
  80%      { transform: translateX(-2px); }
}

/* the dial is shut while a round is in play */
.pod.is-locked .pod-hold {
  opacity: 0.35;
  filter: grayscale(1);
  cursor: not-allowed;
}
.pod.is-tuned .pod-hold { animation: podtuned 0.6s ease-out; }
@keyframes podtuned {
  0%   { box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.5); }
  100% { box-shadow: 0 0 0 22px rgba(0, 255, 102, 0); }
}

@media (max-width: 600px) {
  .pod-lock  { padding: 11px 12px 12px; }
  .lock-cell { min-width: 20px; height: 32px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .pod-lock, .pod-lock.is-nudged, .pod.is-tuned .pod-hold { animation: none; }
}

/* the promise under the pod — small, but the reason people write at all */
.entry-promise {
  max-width: 44ch;
  margin: 16px auto 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.65;
  color: var(--text-faint);
  text-align: center;
}
.entry-promise::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  margin: 0 auto 11px;
  background: rgba(0, 255, 102, 0.25);
}
