/* ═══════════════════════════════════════════════════════════════════════════
   FortySixTen Studios — Shared Stylesheet
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  --flame-gold:    #F5A800;
  --flame-orange:  #E05A00;
  --flame-red:     #C0392B;
  --ember-purple:  #6B2D6B;
  --dark-bg:       #0D0D0D;
  --dark-surface:  #141414;
  --text-primary:  #E8E0D5;
  --text-muted:    #7A7069;
  --text-accent:   #F5A800;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-primary);
  font-family: 'Libre Baskerville', Georgia, serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 4rem 2rem 4rem;
  position: relative;
  overflow-x: hidden;
}

/* Ember glow */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(245, 168, 0, 0.04) 0%,
    rgba(107, 45, 107, 0.03) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 580px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}


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

/* ── Logo & wordmark ─────────────────────────────────────────────────────── */
.logo-wrap {
  margin-bottom: 2.5rem;
  animation: fadeUp 1s ease 0.1s both;
}

.logo-wrap img {
  width: 90px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(245, 168, 0, 0.35))
          drop-shadow(0 0 40px rgba(245, 168, 0, 0.15));
  transition: filter 0.4s ease;
}

.logo-wrap img:hover {
  filter: drop-shadow(0 0 28px rgba(245, 168, 0, 0.55))
          drop-shadow(0 0 60px rgba(245, 168, 0, 0.25));
}

.wordmark {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3rem;
  animation: fadeUp 1s ease 0.1s both;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer-note {
  margin-top: 3.5rem;
  padding-bottom: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  opacity: 0;
}

.footer-reveal {
  animation: fadeUp 1s ease 0.6s both;
}

/* ── Footer link ─────────────────────────────────────────────────────────── */
.footer-note a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-note a:hover {
  color: var(--text-primary);
}

/* ── Divider ─────────────────────────────────────────────────────────────── */
.divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--flame-gold), transparent);
  margin: 2.5rem auto;
  opacity: 0;
}

/* ── Contact section ─────────────────────────────────────────────────────── */
.contact-section {
  opacity: 0;
}

.contact-section .phone {
  font-family: 'Space Mono', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--flame-gold);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.4rem;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.contact-section .phone:hover {
  color: #fff;
  text-shadow: 0 0 20px rgba(245, 168, 0, 0.5);
}

.contact-section .phone-label {
  font-size: 0.72rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: block;
}

/* ── Boring page — no entrance animations ───────────────────────────────── */
.boring .logo-wrap,
.boring .wordmark,
.boring .divider,
.boring .contact-section,
.boring .footer-note {
  animation: none;
  opacity: 1;
}

/* ── Larry's interjection voice ──────────────────────────────────────────── */
.larry-voice {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.4rem;
  text-align: center;
}

/* ── Archive's corporate copy ────────────────────────────────────────────── */
.boring-copy {
  text-align: left;
}

.boring-copy p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
  margin-bottom: 1.4rem;
}

.boring-copy ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.4rem;
}

.boring-copy li {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
  padding-left: 1.6rem;
  text-indent: -1.6rem;
  margin-bottom: 0.3rem;
}

/* ── Booking page — no entrance animations ───────────────────────────────── */
.booking .logo-wrap,
.booking .wordmark,
.booking .dontpanic,
.booking .system-readout,
.booking .calendly-inline-widget,
.booking .divider,
.booking .contact-section,
.booking .footer-note {
  animation: none;
  opacity: 1;
}

/* ── 404 error page ──────────────────────────────────────────────────────── */
.error-page .error-code {
  font-size: 6rem;
}

.error-page .error-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

/* ── Game area ───────────────────────────────────────────────────────────── */
#game-area {
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: center;
}

/* Encounter prose */
#encounter-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
  margin-bottom: 1.4rem;
}

#encounter-text em {
  color: var(--text-muted);
  font-style: italic;
}

#encounter-text strong {
  color: var(--flame-gold);
  font-weight: 700;
}

#encounter-text h2, #encounter-text h3, #encounter-text h4 {
  color: var(--flame-gold);
  font-family: 'Space Mono', monospace;
  margin-bottom: 1rem;
}

#encounter-text img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1.4rem;
  border-radius: 2px;
}

/* Result bridge */
.result-bridge {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(245, 168, 0, 0.12);
}

.result-bridge p {
  color: var(--text-muted) !important;
}

/* ── Choices ─────────────────────────────────────────────────────────────── */
#choices {
  opacity: 0;
  pointer-events: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.choice-btn {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(245, 168, 0, 0.35);
  color: var(--text-primary);
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.choice-btn:hover {
  border-color: var(--flame-gold);
  color: var(--flame-gold);
  background: rgba(245, 168, 0, 0.04);
  box-shadow: 0 0 20px rgba(245, 168, 0, 0.06);
}

.choice-btn:active {
  background: rgba(245, 168, 0, 0.09);
}

.choice-btn.restart {
  border-color: var(--text-muted);
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 1rem;
}

.choice-btn.restart:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: transparent;
  box-shadow: none;
}

/* ── Don't Panic display text ────────────────────────────────────────────── */
.dontpanic, #encounter-text .dontpanic {
  font-family: 'Comfortaa', cursive;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--flame-gold);
  margin-bottom: 1.8rem;
  line-height: 1.2;
}

/* ── Error state ─────────────────────────────────────────────────────────── */
.engine-error {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--flame-red);
  letter-spacing: 0.08em;
  padding: 1rem 0;
}

/* ── Calendly widget ─────────────────────────────────────────────────────── */
.calendly-inline-widget {
  border-radius: 2px;
  animation: fadeUp 1s ease 0.4s both;
}

/* ── Media queries ───────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  #encounter-text p { font-size: 0.97rem; }
  .contact-section .phone { font-size: 1.1rem; }
  .container { max-width: 100%; }
}

/* ── System terminal readout ─────────────────────────────────────────────── */
/* Links inside system readout */
.system-readout a {
  color: #00ff41;
  text-decoration: underline;
}


.system-readout,
#encounter-text .system-readout,
#encounter-text p.system-readout {
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  color: #00ff41 !important;
  line-height: 1.9;
  letter-spacing: 0.04em;
  text-align: left;
  background: rgba(0, 26, 8, 0.88);
  border: 1px solid rgba(0, 255, 65, 0.25);
  border-radius: 2px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.4rem;
  text-shadow: 0 0 8px #00ff41, 0 0 20px rgba(0, 255, 65, 0.4);
}

/* ── System readout — MUSE variant (Pacifico, pastel yellow) ─────────────── */
.system-readout--muse {
  font-family: 'Fredoka One', cursive;
  font-size: 0.9rem;
  color: #FFE566 !important;
  background: rgba(28, 26, 0, 0.88);
  border-color: rgba(255, 229, 102, 0.25);
  text-shadow: 0 0 8px #FFE566, 0 0 20px rgba(255, 229, 102, 0.4);
  letter-spacing: 0.01em;
}

/* ── System readout — LOGIC variant (Arial, cool blue) ──────────────────── */
.system-readout--logic {
  font-family: Arial, Helvetica, sans-serif;
  color: #7EB8D4 !important;
  background: rgba(0, 10, 24, 0.88);
  border-color: rgba(126, 184, 212, 0.25);
  text-shadow: 0 0 8px #7EB8D4, 0 0 20px rgba(126, 184, 212, 0.4);
}

/* ── System readout — ARCHIVE variant (Times, sepia) ────────────────────── */
.system-readout--archive {
  font-family: 'Times New Roman', Times, serif;
  color: #C4A882 !important;
  background: rgba(24, 16, 6, 0.88);
  border-color: rgba(196, 168, 130, 0.25);
  text-shadow: 0 0 8px #C4A882, 0 0 20px rgba(196, 168, 130, 0.4);
}
