/* BEFORE THE GLOW — Custom Retro-Tactile Stylesheet */
:root {
  --bg-warm: #f7f3ec;
  --bg-card: #ffffff;
  --bg-dark: #1e1e24;
  --bg-cassette: #2b2b2b;
  --text-main: #2b2621;
  --text-muted: #6b635b;
  --text-light: #f7f3ec;
  --amber-gold: #d97736;
  --amber-bright: #f39c12;
  --retro-teal: #16a085;
  --brick-red: #c0392b;
  --warm-sepia: #fcf9f2;
  --border-sepia: #e2dac9;
  --shadow-warm: 0 4px 20px rgba(78, 52, 28, 0.08);
  --shadow-deep: 0 10px 30px rgba(40, 25, 10, 0.15);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'Courier Prime', 'Courier New', monospace;
  --retro-purple: #8e44ad;
  --retro-pink: #e84393;
  --retro-cyan: #00b8a9;
  --retro-indigo: #34495e;
  --retro-mustard: #f1c40f;
  --hero-gradient: linear-gradient(135deg, #2b2621 0%, #3d2a1a 50%, #1e1e24 100%);
  --accent-gradient: linear-gradient(135deg, #d97736 0%, #f39c12 100%);
}

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

body {
  background-color: var(--bg-warm);
  background-image:
    radial-gradient(at 20% 10%, rgba(217, 119, 54, 0.06) 0%, transparent 40%),
    radial-gradient(at 85% 30%, rgba(142, 68, 173, 0.05) 0%, transparent 45%),
    radial-gradient(at 50% 90%, rgba(22, 160, 133, 0.05) 0%, transparent 40%);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Texture overlay for subtle analog grain */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
  z-index: 999;
}

/* Header & Navigation Bar */
.site-nav {
  position: sticky;
  top: 0;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border-sepia);
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-main);
  text-decoration: none;
}

.brand-badge {
  background: var(--amber-gold);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--amber-gold);
}

.sound-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-sepia);
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-warm);
  transition: all 0.2s;
}

.sound-toggle-btn:hover {
  border-color: var(--amber-gold);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  padding: 4rem 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero-tag {
  font-family: var(--font-mono);
  color: var(--amber-gold);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(217, 119, 54, 0.12);
  border: 1px solid rgba(217, 119, 54, 0.35);
  border-radius: 30px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

/* Convergence Bar / Survival Comparison Hero Card */
.convergence-banner {
  background: linear-gradient(135deg, #1e1e24 0%, #2b2218 60%, #1e1e24 100%);
  color: var(--text-light);
  border: 1px solid rgba(217, 119, 54, 0.3);
  border-radius: 16px;
  padding: 2.2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow-deep), 0 0 40px rgba(217, 119, 54, 0.08);
  margin-bottom: 3.5rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.convergence-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(243, 156, 18, 0.12), transparent 70%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .convergence-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.conv-col-analog h4, .conv-col-digital h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--amber-bright);
}

.conv-stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.conv-divider {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-muted);
  padding: 0 1rem;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-sepia);
  padding: 0.5rem 1.1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}

.filter-btn:hover {
  border-color: var(--amber-gold);
  color: var(--amber-gold);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--amber-gold), var(--amber-bright));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(217, 119, 54, 0.35);
}

/* Relics Grid */
.relics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.relic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-sepia);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-warm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}

.relic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
}

.relic-card-visual {
  height: 150px;
  position: relative;
  background:
    linear-gradient(135deg, var(--card-accent, var(--amber-gold)) 0%, rgba(0,0,0,0.45) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.relic-card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 0);
  background-size: 16px 16px;
  opacity: 0.5;
}

.relic-card-icon {
  width: 78px;
  height: 78px;
  color: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  position: relative;
  z-index: 2;
  transition: transform 0.3s;
}

.relic-card:hover .relic-card-icon {
  transform: scale(1.1) rotate(-4deg);
}

.relic-card-icon svg {
  width: 100%;
  height: 100%;
}

.relic-card-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}

.relic-card-era-chip {
  position: absolute;
  bottom: 0.6rem;
  left: 0.8rem;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.relic-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.relic-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.relic-category-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--warm-sepia);
  border: 1px solid var(--border-sepia);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.relic-era {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber-gold);
  font-weight: bold;
}

.relic-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.relic-replaced {
  font-size: 0.85rem;
  color: var(--brick-red);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.relic-tagline {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-left: 3px solid var(--amber-gold);
  padding-left: 0.8rem;
  margin-bottom: 1.2rem;
}

.relic-specs-mini {
  background: var(--warm-sepia);
  border: 1px solid var(--border-sepia);
  border-radius: 8px;
  padding: 0.8rem;
  font-size: 0.82rem;
  margin-bottom: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.spec-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.relic-quirks-list {
  font-size: 0.88rem;
  color: var(--text-main);
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.relic-quirks-list li {
  margin-bottom: 0.4rem;
}

.card-action-btn {
  color: var(--text-light);
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
  width: 100%;
  box-shadow: 0 3px 0 rgba(0,0,0,0.2);
}

.card-action-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.25);
}

.card-action-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

/* Modal Popup for Simulators */
.sim-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 18, 22, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1.5rem;
}

.sim-modal-overlay.open {
  display: flex;
}

.sim-modal-card {
  background: var(--bg-card);
  border: 2px solid var(--border-sepia);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.sim-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--warm-sepia);
  border: 1px solid var(--border-sepia);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.sim-modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Interactive Simulator Elements */
.sim-camera-body, .sim-clock-body, .sim-pager-shell, .sim-walkman-chassis, .sim-map-body, .sim-calc-shell, .sim-compass-case, .sim-dict-book {
  background: #25252b;
  color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.sim-feedback {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber-bright);
  background: rgba(0,0,0,0.3);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Camera Simulator Details */
.camera-top-plate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid #3a3a44;
}

.camera-shot-counter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: #111;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.counter-val {
  color: #e74c3c;
  font-weight: bold;
}

.flash-indicator {
  width: 14px;
  height: 14px;
  background: #444;
  border-radius: 50%;
  border: 1px solid #777;
}

.flash-indicator.ready {
  background: #e74c3c;
  box-shadow: 0 0 10px #e74c3c;
}

.camera-shutter-btn {
  width: 44px;
  height: 44px;
  background: #e74c3c;
  border: 3px solid #c0c0c0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 0 #962d22;
}

.camera-shutter-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #962d22;
}

.camera-viewfinder-case {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 2rem 0;
}

.camera-lens-ring {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, #2b2b36, #111);
  border-radius: 50%;
  border: 6px solid #4a4a58;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-lens-glass {
  width: 70px;
  height: 70px;
  background: radial-gradient(circle at 30% 30%, #3a506b, #0b132b);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  transition: background 0.1s;
}

.camera-lens-glass.shutter-flash {
  background: #ffffff !important;
  box-shadow: 0 0 30px #ffffff;
}

.thumbwheel-btn {
  background: #1e1e24;
  border: 2px solid #555;
  color: #ccc;
  padding: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
}

.sim-polaroid-tray {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding-top: 1rem;
}

.mini-polaroid {
  background: #fff;
  padding: 0.4rem 0.4rem 0.8rem;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  color: #111;
  width: 110px;
  flex-shrink: 0;
  transition: opacity 1.2s;
}

.mini-polaroid.developing {
  opacity: 0.2;
}

.polaroid-pic {
  height: 80px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.polaroid-cap {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  margin-top: 0.3rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Alarm Clock Simulator Styles */
.clock-twin-bells {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.bell {
  width: 50px;
  height: 40px;
  background: radial-gradient(circle at 40% 30%, #ffd700, #b8860b);
  border-radius: 50px 50px 0 0;
  border: 2px solid #8b6508;
}

.hammer {
  width: 8px;
  height: 25px;
  background: #bbb;
  border-radius: 4px;
}

.hammer.vibrating {
  animation: bellHammer 0.06s infinite alternate;
}

@keyframes bellHammer {
  0% { transform: rotate(-25deg); }
  100% { transform: rotate(25deg); }
}

.clock-digital {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  color: #ff3333;
  text-shadow: 0 0 10px rgba(255,51,51,0.6);
  background: #000;
  padding: 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.clock-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.clock-btn {
  background: var(--amber-gold);
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.clock-btn.slam-snooze {
  background: var(--brick-red);
}

.clock-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Pager Simulator Styles */
.sim-pager-shell {
  background: #112211;
  border: 4px solid #004400;
  border-radius: 12px;
}

.pager-clip-top {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #55aa55;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
}

.pager-lcd {
  background: #99c28a;
  color: #112211;
  font-family: 'Courier New', monospace;
  font-weight: 900;
  font-size: 2.2rem;
  letter-spacing: 4px;
  padding: 0.8rem;
  border-radius: 4px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.4);
}

.pager-subtext {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #88bb88;
  margin-top: 0.4rem;
}

.pager-buttons {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.2rem;
}

.pager-key {
  background: #2a3d2a;
  color: #cfc;
  border: 1px solid #486348;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
}

.pager-key-send {
  background: #3e7b3e;
}

.pager-shake {
  animation: pagerVibrate 0.1s infinite alternate;
}

@keyframes pagerVibrate {
  0% { transform: translate(-2px, 2px); }
  100% { transform: translate(2px, -2px); }
}

/* Walkman Simulator Styles */
.cassette-tape {
  background: #333;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
  border: 2px solid #555;
}

.tape-spool {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px dashed #fff;
  background: #111;
}

.tape-spool.spin-normal {
  animation: spinSpool 2s linear infinite;
}

.tape-spool.spin-fast-reverse {
  animation: spinSpool 0.4s linear infinite reverse;
}

@keyframes spinSpool {
  100% { transform: rotate(360deg); }
}

.tape-window {
  width: 80px;
  height: 25px;
  background: #111;
  border: 1px solid #777;
  border-radius: 3px;
  overflow: hidden;
}

.tape-ribbon {
  width: 100%;
  height: 100%;
}

.mixtape-label {
  position: absolute;
  top: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  background: #fffae6;
  color: #111;
  padding: 0.1rem 0.6rem;
  border-radius: 2px;
}

.walkman-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.deck-btn {
  background: #444;
  color: #fff;
  border: 2px solid #666;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
}

.deck-btn.btn-play { background: #27ae60; }
.deck-btn.btn-stop { background: #c0392b; }
.deck-btn.btn-pencil { background: #d35400; }

/* Calculator Simulator Styles */
.calc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.calc-brand {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 0.85rem;
  color: #bbb;
}

.solar-panel {
  background: #2b1810;
  border: 1px solid #774e38;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}

.solar-strip {
  width: 60px;
  height: 12px;
  background: linear-gradient(90deg, #422718 0%, #20100a 100%);
}

.solar-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: #8c6a56;
}

.calc-lcd-screen {
  background: #9fa8a3;
  color: #1a2421;
  font-family: 'Courier Prime', monospace;
  font-size: 2.4rem;
  text-align: right;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.3);
  transition: opacity 0.3s;
}

.calc-lcd-screen.calc-solar-dead {
  opacity: 0.05;
}

.calc-lcd-screen.calc-flipped {
  transform: rotate(180deg);
}

.calc-keypad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.c-key {
  background: #3e3e48;
  color: #fff;
  border: 1px solid #5a5a66;
  padding: 0.75rem 0.5rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
}

.c-key.op-o { background: #d97736; }
.c-key.op-c { background: #c0392b; }
.c-key.fun { background: #8e44ad; font-size: 0.8rem; }
.c-key.op-eq { background: #27ae60; }

/* Interactive Timeline Section */
.timeline-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(252, 249, 242, 0.6) 100%);
  border-radius: 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.timeline-track {
  position: relative;
  padding-left: 2.5rem;
  border-left: 3px dashed var(--amber-gold);
}

.timeline-node {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-node::before {
  content: "";
  position: absolute;
  left: -2.95rem;
  top: 0.3rem;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--amber-gold), var(--amber-bright));
  border: 3px solid var(--bg-warm);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(217, 119, 54, 0.2);
}

.timeline-year {
  font-family: var(--font-mono);
  font-weight: bold;
  color: var(--amber-gold);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-sepia);
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: var(--shadow-warm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.timeline-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-deep);
  border-left: 3px solid var(--amber-gold);
}

.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

/* Trivia Quiz Section */
.quiz-section {
  background: linear-gradient(180deg, var(--warm-sepia) 0%, #f3ece0 100%);
  border-top: 2px solid var(--border-sepia);
  border-bottom: 2px solid var(--border-sepia);
  padding: 4rem 1.5rem;
}

.quiz-container {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-sepia);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-deep);
  position: relative;
  overflow: hidden;
}

.quiz-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--amber-gold), var(--retro-purple), var(--retro-teal));
}

.quiz-q-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber-gold);
  font-weight: bold;
  margin-bottom: 0.6rem;
}

.quiz-question {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.quiz-opt-btn {
  background: var(--bg-warm);
  border: 1px solid var(--border-sepia);
  padding: 1rem 1.2rem;
  border-radius: 8px;
  text-align: left;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.quiz-opt-btn:hover {
  background: #eee5d8;
  border-color: var(--amber-gold);
}

.quiz-opt-btn.correct {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
  font-weight: bold;
}

.quiz-opt-btn.wrong {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.quiz-feedback-box {
  background: var(--warm-sepia);
  border-left: 4px solid var(--amber-gold);
  padding: 1rem;
  font-size: 0.9rem;
  display: none;
  margin-top: 1rem;
}

.quiz-feedback-box.show {
  display: block;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2b2218 100%);
  color: var(--text-light);
  padding: 3.5rem 1.5rem;
  text-align: center;
  border-top: 3px solid var(--amber-gold);
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
}

.footer-quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 1.2rem;
  color: #d1cbc1;
}

.footer-sub {
  font-size: 0.85rem;
  color: #8c857b;
}

/* ===========================================
   NEW SIMULATOR STYLES
   =========================================== */

/* Notebook / Address Book Simulator */
.sim-notebook-body { position: relative; }
.notebook-coil {
  height: 6px;
  background: repeating-linear-gradient(90deg, #888 0 6px, transparent 6px 12px);
  margin-bottom: 1rem;
  border-radius: 3px;
}
.notebook-page {
  background: #fdfbf3;
  color: #222;
  border-radius: 4px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  min-height: 160px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}
.notebook-list { border-right: 1px dashed #c0b090; padding-right: 0.8rem; }
.nb-row {
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transition: background 0.2s;
}
.nb-row.active { background: #fff5d6; }
.nb-row:hover { background: #fff0e0; }
.nb-name { font-weight: bold; }
.nb-phone { color: #555; }
.notebook-detail { padding: 0.4rem; }
.nb-detail-head { font-family: var(--font-display); font-size: 1.1rem; font-weight: bold; margin-bottom: 0.4rem; }
.nb-detail-phone { font-family: var(--font-mono); font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--brick-red); }
.nb-detail-note { font-size: 0.85rem; font-style: italic; color: #444; }
.notebook-controls { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.nb-btn {
  background: var(--retro-teal); color: #fff; border: none;
  padding: 0.5rem 0.8rem; border-radius: 6px; font-family: var(--font-mono);
  font-size: 0.75rem; cursor: pointer; font-weight: bold;
}
.nb-add { background: var(--amber-gold); }
.nb-spill { background: #6b4226; }
.nb-lose { background: var(--retro-indigo); }
.notebook-page.coffee-stained { background: #e8dcc4; box-shadow: inset 0 0 0 2px rgba(101,67,33,0.3); }
.notebook-page.water-damaged { background: #c9d6cf; opacity: 0.7; }

/* Maglite Flashlight Simulator */
.sim-flashlight-body { display: flex; flex-direction: column; align-items: center; }
.maglite-tube {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.maglite-beam-zone {
  width: 100%;
  height: 180px;
  background: radial-gradient(circle, #0a0a0f, #02020a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.beam-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff5cc 0%, #ffdb70 50%, #ff8c00 80%, transparent 100%);
  box-shadow: 0 0 50px rgba(255, 219, 112, 0.6);
  transition: all 0.3s;
}
.beam-circle.spot {
  width: 60px;
  height: 60px;
  box-shadow: 0 0 70px rgba(255, 245, 204, 0.8);
}
.beam-circle.flood {
  width: 160px;
  height: 160px;
}
.beam-circle.off { background: transparent; box-shadow: none; }
.beam-circle.dim-orange {
  background: radial-gradient(circle, #ff8c00 0%, #cc5500 60%, transparent 100%);
  box-shadow: 0 0 20px rgba(204, 85, 0, 0.4);
}
.beam-label {
  position: absolute;
  bottom: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 2px;
}
.maglite-body-grip {
  width: 80%;
  height: 30px;
  display: flex;
  gap: 4px;
  justify-content: center;
}
.maglite-body-grip .knurl {
  flex: 1;
  background: repeating-linear-gradient(45deg, #444 0 4px, #333 4px 8px);
  border-radius: 3px;
}
.maglite-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.fl-stat strong { color: var(--amber-bright); display: block; font-size: 0.7rem; }
.flashlight-controls { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.2rem; flex-wrap: wrap; }

/* Yellow Pages Simulator */
.sim-yellowpages-body { position: relative; }
.yp-spine {
  height: 8px;
  background: linear-gradient(90deg, #d4a017, #e6b838);
  border-radius: 4px;
  margin-bottom: 1rem;
}
.yp-page {
  background: #f7f0c0;
  color: #222;
  border-radius: 4px;
  padding: 1rem;
  min-height: 200px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}
.yp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #c0a830;
  padding-bottom: 0.5rem;
  margin-bottom: 0.8rem;
}
.yp-yellow {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: #8a6d00;
  letter-spacing: 1px;
}
.yp-page-num { font-family: var(--font-mono); font-size: 0.75rem; color: #665; }
.yp-categories { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.yp-cat {
  background: #fff8d0;
  border: 1px solid #c0a830;
  color: #665;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}
.yp-cat.active { background: #d4a017; color: #fff; border-color: #d4a017; }
.yp-listings { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.yp-listing {
  background: #fffae0;
  border: 1px solid #d4c870;
  border-radius: 4px;
  padding: 0.6rem;
  font-size: 0.8rem;
  position: relative;
  transition: transform 0.2s;
}
.yp-listing.big { grid-column: span 2; background: #fff5c0; border: 2px solid #d4a017; }
.yp-listing:hover { transform: scale(1.02); }
.yp-ad { font-family: var(--font-display); font-weight: bold; color: #c0392b; font-size: 0.75rem; margin-bottom: 0.3rem; }
.yp-name { font-weight: bold; color: #222; }
.yp-phone { font-family: var(--font-mono); color: #665; font-size: 0.75rem; }
.yp-cat-tag { font-size: 0.65rem; color: #999; text-transform: uppercase; letter-spacing: 1px; }
.yp-listings.torn { animation: tearPage 0.5s; }
@keyframes tearPage { 50% { transform: translateY(-8px) rotate(-2deg); opacity: 0.6; } }
.yp-controls { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.yp-btn {
  background: #d4a017; color: #fff; border: none;
  padding: 0.5rem 0.8rem; border-radius: 6px; font-family: var(--font-mono);
  font-size: 0.75rem; cursor: pointer; font-weight: bold;
}
.yp-booster { background: var(--retro-indigo); }

/* Game Boy Simulator */
.sim-gameboy-body {
  background: #c4c0b4 !important;
  color: #222;
  border-radius: 16px 16px 30px 30px;
  padding: 1.5rem;
  border: 3px solid #a09c90;
}
.gb-screen-bezel {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 1.2rem 1.2rem 1.5rem;
  margin-bottom: 1rem;
  position: relative;
}
.gb-screen {
  background: #9bbc0f;
  border: 2px solid #0f380f;
  border-radius: 4px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.gb-screen:not(.on) { background: #9bbc0f; opacity: 0.5; }
.gb-screen.on { background: #c4d860; box-shadow: inset 0 0 20px rgba(15, 56, 15, 0.3); }
.gb-screen-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: #0f380f;
  text-align: center;
  line-height: 1.4;
}
.gb-screen-text tm { font-size: 0.5rem; vertical-align: super; }
.gb-press { font-size: 0.7rem; font-family: var(--font-mono); margin-top: 0.4rem; }
.gb-game {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  max-width: 180px;
}
.gb-block { font-size: 1rem; color: #0f380f; }
.gb-block.cursor { background: #0f380f; color: #c4d860; padding: 0 2px; }
.gb-screen-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: #888;
  text-align: center;
  margin-top: 0.5rem;
  letter-spacing: 1px;
}
.gb-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  text-align: center;
  font-size: 0.95rem;
  color: #2a2a2a;
  margin-bottom: 1rem;
}
.gb-brand span { color: #c0392b; }
.gb-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.gb-dpad {
  position: relative;
  width: 70px;
  height: 70px;
}
.gb-dir {
  position: absolute;
  background: #2a2a2a;
  border: none;
  color: #888;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gb-up { top: 0; left: 22px; width: 26px; height: 26px; border-radius: 4px 4px 0 0; }
.gb-down { bottom: 0; left: 22px; width: 26px; height: 26px; border-radius: 0 0 4px 4px; }
.gb-left { top: 22px; left: 0; width: 26px; height: 26px; border-radius: 4px 0 0 4px; }
.gb-right { top: 22px; right: 0; width: 26px; height: 26px; border-radius: 0 4px 4px 0; }
.gb-ab { display: flex; gap: 0.6rem; align-items: center; transform: rotate(-25deg); }
.gb-btn-a, .gb-btn-b {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #c0392b;
  color: #fff;
  border: 2px solid #8b1a0d;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: var(--font-sans);
}
.gb-system { display: flex; gap: 1rem; justify-content: center; margin-bottom: 0.8rem; transform: rotate(-25deg); }
.gb-sys-btn {
  background: #2a2a2a;
  color: #888;
  border: none;
  padding: 0.25rem 0.8rem;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 1px;
}
.gb-stats {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #2a2a2a;
  margin-bottom: 0.8rem;
}
.gb-stats strong { color: #c0392b; }
.gb-controls-extra { display: flex; gap: 0.5rem; justify-content: center; }

/* Dictaphone Simulator */
.sim-dictaphone-body { display: flex; flex-direction: column; align-items: center; }
.dict-mic {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #444, #222);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  border: 2px solid #555;
}
.dict-window {
  background: #111;
  border: 2px solid #333;
  border-radius: 4px;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-bottom: 0.8rem;
}
.dict-reel {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px dashed #aaa;
  background: #222;
  flex-shrink: 0;
}
.dict-reel.spinning { animation: spinSpool 1s linear infinite; }
.dict-tape {
  flex-grow: 1;
  height: 22px;
  border-radius: 2px;
}
.dict-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--amber-bright);
  margin-bottom: 0.8rem;
}
.dict-switch { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0.8rem; }
.dict-key {
  background: #444;
  color: #fff;
  border: 1px solid #666;
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  font-weight: bold;
}
.dict-rec { background: #c0392b; }
.dict-stop { background: #555; }
.dict-play { background: #27ae60; }
.dict-cue { background: var(--amber-gold); }
.dict-list {
  width: 100%;
  max-height: 120px;
  overflow-y: auto;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  padding: 0.5rem;
}
.dict-item {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #ddd;
  padding: 0.3rem 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.dict-empty { color: #888; text-align: center; font-style: italic; font-size: 0.75rem; }

/* Stopwatch Simulator */
.sim-stopwatch-body { position: relative; display: flex; flex-direction: column; align-items: center; }
.sw-lanyard {
  width: 40px;
  height: 30px;
  background: repeating-linear-gradient(90deg, #8b4513 0 3px, #6b3410 3px 6px);
  border-radius: 4px;
  margin-bottom: 0.4rem;
}
.sw-case {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, #e8e8e8, #b0b0b0);
  border: 4px solid #888;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4), inset 0 2px 5px rgba(255,255,255,0.5);
}
.sw-dial {
  width: 140px;
  height: 140px;
  background: #fff;
  border: 2px solid #999;
  border-radius: 50%;
  position: relative;
}
.sw-tick {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 70px;
  background: linear-gradient(180deg, #000 0 6px, transparent 6px);
  transform-origin: 1px 70px;
}
.sw-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 60px;
  background: #c0392b;
  transform: translate(-50%, -100%) rotate(0deg);
  transform-origin: 1.5px 100%;
  border-radius: 2px;
  z-index: 3;
  transition: transform 0.05s linear;
}
.sw-split {
  background: #27ae60;
  height: 55px;
  width: 2px;
  opacity: 0;
  z-index: 2;
}
.sw-split.visible { opacity: 0.7; }
.sw-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  background: #444;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
}
.sw-subdial {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border: 1.5px solid #999;
  border-radius: 50%;
  background: #f8f8f8;
}
.sw-sub-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 20px;
  background: #444;
  transform: translate(-50%, -100%) rotate(0deg);
  transform-origin: 1px 100%;
  z-index: 3;
  transition: transform 0.05s linear;
}
.sw-crown {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: radial-gradient(circle, #ccc, #888);
  border: 2px solid #666;
  border-radius: 50%;
  z-index: 5;
}
.sw-digital {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: bold;
  color: #222;
  background: rgba(255,255,255,0.85);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  bottom: -2px;
  z-index: 6;
}
.sw-lap-display {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--retro-teal);
  margin-bottom: 0.8rem;
  min-height: 1.2rem;
}
.sw-controls { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
