:root {
  --bg: #090b16;
  --bg-soft: #11162c;
  --panel: rgba(10, 14, 30, 0.82);
  --line: rgba(111, 255, 233, 0.18);
  --line-strong: rgba(255, 190, 92, 0.3);
  --text: #eef3ff;
  --muted: #9aa7c5;
  --cyan: #65f7ff;
  --pink: #ff5db7;
  --gold: #ffbe5c;
  --green: #88ff82;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 93, 183, 0.15), transparent 30%),
    radial-gradient(circle at top right, rgba(101, 247, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #060813 0%, #0b1124 55%, #070912 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
}

.shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.hero,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.95fr;
  gap: 24px;
  padding: 28px;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
}

.hero-copy h1,
.panel-header h2 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 4.6rem);
  max-width: 10ch;
}

.hero-text,
.muted,
.meta-list,
.view-summary,
.cta-note {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--gold);
}

.hero-actions,
.mode-switch,
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stack {
  flex-direction: column;
}

.compact {
  gap: 10px;
}

.button,
.mode-button,
.view-button,
.guide-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: 180ms ease;
}

.button.small {
  width: fit-content;
  padding: 9px 12px;
  font-size: 0.85rem;
}

.button.primary,
.mode-button.active,
.view-button.active,
.active-card {
  background: linear-gradient(135deg, rgba(255, 93, 183, 0.22), rgba(101, 247, 255, 0.18));
  border-color: rgba(101, 247, 255, 0.35);
}

.layout {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.panel {
  padding: 22px;
  border-radius: var(--radius);
}

.stage-grid,
.dual-panel,
.content-grid {
  display: grid;
  gap: 18px;
}

.stage-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.dual-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scene-card,
.hero-card {
  min-height: 280px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.scene-card::after,
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 19, 0.08), rgba(6, 8, 19, 0.82));
}

.scene-content,
.hero-card-content {
  position: relative;
  z-index: 1;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
}

.action-card,
.mini-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.mini-card-header,
.guide-action {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.guide-action {
  width: 100%;
  border-radius: 18px;
  text-align: left;
}

.guide-action:hover,
.button:hover,
.mode-button:hover,
.view-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 190, 92, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.audio-control {
  width: 100%;
  margin-top: 12px;
  filter: sepia(20%) saturate(120%) hue-rotate(145deg);
}

.inline-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.inline-link:hover {
  color: var(--cyan);
}

.avatar-feature {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 190, 92, 0.24);
  background: linear-gradient(135deg, rgba(255, 190, 92, 0.1), rgba(101, 247, 255, 0.06));
}

.avatar-poster {
  min-height: 116px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.guide-log {
  margin: 14px 0 0;
  padding: 12px 12px 12px 28px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.9rem;
}

.guide-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.guide-form label {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.guide-form textarea {
  width: 100%;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  padding: 12px;
  font: inherit;
}

.guide-form textarea:focus {
  outline: 2px solid rgba(255, 190, 92, 0.6);
  outline-offset: 2px;
}

.guide-answer {
  margin-top: 14px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .hero,
  .stage-grid,
  .dual-panel,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(100% - 20px, 1240px);
    padding-top: 16px;
  }
}

@media (max-width: 620px) {
  .avatar-feature {
    grid-template-columns: 1fr;
  }
}
