:root {
  --bg: #061d27;
  --panel: #0b2a38;
  --panel2: #0d3242;
  --text: #f0ede8;
  --muted: #b7c1c6;
  --gold: #b8940a;
  --blue: #2e6cff;
  --amber: #d89b22;
  --red: #d83b3b;
  --green: #39b86a;
  --purple: #8f5cff;
  --gray: #6c7478;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(184,148,10,.14), transparent 28rem),
    radial-gradient(circle at top right, rgba(46,108,255,.12), transparent 25rem),
    var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 8px;
}

h1 {
  font-size: clamp(44px, 7vw, 86px);
  line-height: .9;
  margin: 0;
  letter-spacing: -0.06em;
}

.tagline {
  color: var(--muted);
  font-size: 20px;
  margin: 16px 0 0;
}

.truth-card {
  border: 1px solid rgba(240,237,232,.15);
  background: rgba(11,42,56,.72);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.truth-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.truth-card strong {
  font-size: 22px;
  line-height: 1.15;
}

.instructions {
  background: rgba(240,237,232,.06);
  border: 1px solid rgba(240,237,232,.10);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.instructions p {
  margin: 0;
  color: #dce4e7;
  font-size: 17px;
  line-height: 1.45;
}

.script {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

button {
  border: 0;
  background: var(--gold);
  color: #061d27;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}

button:hover { transform: translateY(-1px); }
button:active { transform: translateY(0); }

button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(240,237,232,.25);
}

.inputRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 22px;
}

textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  background: rgba(11,42,56,.92);
  border: 1px solid rgba(240,237,232,.16);
  border-radius: 18px;
  color: var(--text);
  padding: 16px;
  font-size: 18px;
  outline: none;
}

textarea:focus {
  border-color: rgba(184,148,10,.8);
}

.inputRow button {
  border-radius: 18px;
  min-width: 135px;
}

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel {
  min-height: 315px;
  background: linear-gradient(180deg, rgba(13,50,66,.96), rgba(8,34,45,.96));
  border-radius: 24px;
  padding: 22px;
  border: 5px solid var(--gray);
  box-shadow: 0 22px 80px rgba(0,0,0,.25);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.rk {
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.state-blue { border-color: var(--blue); }
.state-amber { border-color: var(--amber); }
.state-red { border-color: var(--red); }
.state-green { border-color: var(--green); }
.state-purple { border-color: var(--purple); }

.state-blue { box-shadow: 0 0 34px rgba(46,108,255,.16); }
.state-amber { box-shadow: 0 0 34px rgba(216,155,34,.20); }
.state-red { box-shadow: 0 0 34px rgba(216,59,59,.22); }
.state-green { box-shadow: 0 0 34px rgba(57,184,106,.20); }
.state-purple { box-shadow: 0 0 34px rgba(143,92,255,.22); }

.panelTop {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -.04em;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chips span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: rgba(240,237,232,.08);
  border: 1px solid rgba(240,237,232,.12);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 13px;
}

.chips b { color: var(--text); }

.muted { opacity: .55; }

.response {
  font-size: 24px;
  line-height: 1.42;
  margin: 0;
  white-space: pre-wrap;
}

.loading {
  opacity: .65;
}

footer {
  margin-top: 20px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 850px) {
  .hero,
  .panels,
  .inputRow {
    grid-template-columns: 1fr;
  }

  .inputRow button {
    width: 100%;
  }

  .panelTop {
    flex-direction: column;
  }

  .chips {
    justify-content: flex-start;
  }
}
