/* yamato.quest — vertical timeline through Japanese eras, jewel tones, gold spine */

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

:root {
  --bg-deep: #1a0830;
  --gate: #2a1040;
  --ruby: #8a2040;
  --sapphire: #204080;
  --emerald: #207040;
  --gold: #c8a838;
  --text: #e8e0f0;
  --muted: #8a80a0;
}

html, body {
  background: radial-gradient(ellipse at top, var(--gate), var(--bg-deep) 70%);
  color: var(--text);
  font-family: 'Shippori Mincho', 'Yu Mincho', serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

body { min-height: 100vh; position: relative; }

/* === IMPERIAL GATE === */
.gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  position: relative;
}

.gate-meta {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 28px;
}

.gate-title {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: clamp(72px, 18vw, 240px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text);
  text-shadow: 0 0 28px rgba(200, 168, 56, 0.18);
}
.gate-suffix {
  font-size: 0.32em;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.1em;
  display: inline-block;
  vertical-align: super;
}

.pentagram {
  margin-top: 36px;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 60s linear infinite;
  opacity: 0.85;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.gate-hint {
  margin-top: 28px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted);
}

/* === TIMELINE === */
.timeline {
  position: relative;
  max-width: 1100px;
  margin: 80px auto;
  padding: 60px 32px 120px;
}

.spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--gold) 8%,
    var(--gold) 92%,
    transparent 100%);
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 0 0 12px rgba(200, 168, 56, 0.35);
}

.era-marker {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin: 32px 0;
  animation: pulse-star 2.4s ease-in-out infinite;
}
.era-marker.terminal { animation: none; }
@keyframes pulse-star {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.18); opacity: 1; }
}

.era {
  position: relative;
  z-index: 2;
  width: 45%;
  padding: 28px;
  margin: 24px 0;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 4px;
}
.era.left { margin-left: 0; margin-right: 55%; }
.era.right { margin-left: 55%; margin-right: 0; }
.era.ancient { border-left: 1px solid rgba(138, 32, 64, 0.5); background: rgba(138, 32, 64, 0.08); }
.era.medieval { border-left: 1px solid rgba(32, 64, 128, 0.5); background: rgba(32, 64, 128, 0.08); }
.era.modern   { border-left: 1px solid rgba(32, 112, 64, 0.5); background: rgba(32, 112, 64, 0.08); }
.era.right.ancient,
.era.right.medieval,
.era.right.modern {
  border-left: none;
  border-right: 1px solid;
}
.era.right.ancient { border-right-color: rgba(138, 32, 64, 0.5); }
.era.right.medieval { border-right-color: rgba(32, 64, 128, 0.5); }
.era.right.modern { border-right-color: rgba(32, 112, 64, 0.5); }

.era-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 16px;
}

.era-h {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text);
}

.era p {
  font-size: 15.5px;
  margin-bottom: 1.2em;
  color: var(--text);
}

.era-meta {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.ancient .era-meta { color: #ffa0b8; }
.medieval .era-meta { color: #a0b8ff; }
.modern .era-meta { color: #a0e0b8; }

/* Street-style breakout type */
.breakout {
  position: relative;
  z-index: 1;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  text-align: center;
  line-height: 1;
  font-size: clamp(140px, 30vw, 480px);
  margin: 0;
  color: rgba(200, 168, 56, 0.08);
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: screen;
}
.breakout-1 { transform: rotate(-4deg); }
.breakout-2 { transform: rotate(3deg); color: rgba(168, 144, 232, 0.10); }
.breakout-3 { transform: rotate(-3deg); color: rgba(168, 232, 184, 0.10); }

/* Closing */
.closing {
  text-align: center;
  padding: 60px 24px;
  border-top: 1px solid rgba(200, 168, 56, 0.18);
  margin-top: 40px;
}

@media (max-width: 720px) {
  .spine { left: 24px; }
  .era-marker { justify-content: flex-start; padding-left: 16px; }
  .era { width: calc(100% - 50px); margin-left: 50px !important; margin-right: 0 !important; }
  .breakout { font-size: 36vw; }
}
