/* ==========================================================================
   16 ERAS + SINGULARITY VISUAL ARCHITECTURE
   ========================================================================== */

/* --- ERA 0: 2026 Spatial Liquid Glass --- */
body.era-0 {
  background: radial-gradient(circle at 20% 20%, #0f172a 0%, #030712 65%, #020617 100%);
  color: #f8fafc;
}

.e0-card {
  position: relative;
  width: min(92vw, 480px);
  padding: 46px 38px 40px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(36px) saturate(160%);
  -webkit-backdrop-filter: blur(36px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.14s ease-out;
  overflow: hidden;
}

.e0-sheen {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 45%);
  pointer-events: none;
}

.e0-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #bae6fd;
  margin-bottom: 18px;
}

.e0-title {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.e0-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.78);
  margin-bottom: 34px;
}

.e0-btn-wrap {
  display: inline-block;
  padding: 12px;
}

.e0-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  height: 64px;
  padding: 0 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(125, 211, 252, 0.2) 50%, rgba(192, 132, 252, 0.24) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow:
    0 18px 42px rgba(56, 189, 248, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.75);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}

.e0-btn:hover {
  box-shadow:
    0 24px 56px rgba(168, 85, 247, 0.42),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.e0-btn:active {
  transform: scale(0.95) !important;
}

.e0-hint {
  margin-top: 24px;
  font-size: 12.5px;
  color: rgba(148, 163, 184, 0.75);
}

/* --- ERA 1: 2023 AI Hype & Bento SaaS --- */
body.era-1 {
  background: #09090b;
  color: #fafafa;
}

.e1-bento {
  width: min(94vw, 680px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

.e1-tile {
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(39, 39, 42, 0.85), rgba(24, 24, 27, 0.92));
  border: 1px solid rgba(168, 85, 247, 0.28);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.e1-main {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 26px;
  background: radial-gradient(circle at top, rgba(139, 92, 246, 0.22), rgba(24, 24, 27, 0.95) 65%);
}

.e1-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.25));
  border: 1px solid rgba(192, 132, 252, 0.5);
  color: #e9d5ff;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.e1-main h1 {
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(90deg, #c084fc, #f472b6, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.e1-main p {
  font-size: 14px;
  color: #a1a1aa;
  margin-bottom: 24px;
}

.e1-btn {
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #7c3aed, #db2777);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.45);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.e1-btn:hover { transform: translateY(-2px); filter: brightness(1.12); }

.e1-copilot {
  font-size: 13px;
  line-height: 1.55;
  color: #e4e4e7;
}

.e1-metric-val {
  font-size: 28px;
  font-weight: 800;
  color: #c084fc;
  font-family: ui-monospace, monospace;
}

.e1-metric-lbl {
  font-size: 12px;
  color: #71717a;
  margin-top: 4px;
}

.e1-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  padding: 16px;
}

.e1-modal {
  width: min(92vw, 430px);
  padding: 28px;
  border-radius: 22px;
  background: #18181b;
  border: 1px solid rgba(192, 132, 252, 0.5);
  text-align: center;
  box-shadow: 0 24px 64px rgba(124, 58, 237, 0.35);
}

.e1-modal h2 { font-size: 20px; margin-bottom: 10px; color: #f5d0fe; }
.e1-modal p { font-size: 14px; color: #a1a1aa; line-height: 1.55; margin-bottom: 20px; }

.e1-accept {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 14px;
}

.e1-decline {
  background: none;
  border: none;
  color: #71717a;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.e1-decline:hover { color: #d4d4d8; }

/* --- ERA 2: 2020 Flat Minimalism & Cookie Hell --- */
body.era-2 {
  background: #ffffff;
  color: #111827;
}

.e2-wrap {
  position: relative;
  width: min(94vw, 560px);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.e2-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.e2-desc {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 28px;
}

.e2-btn {
  padding: 14px 40px;
  border-radius: 6px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.e2-btn:hover { background: #1d4ed8; }

.e2-counter {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: #ef4444;
}

.e2-modal {
  position: absolute;
  width: min(90vw, 410px);
  padding: 22px;
  background: #ffffff;
  border: 2px solid #111827;
  border-radius: 8px;
  text-align: left;
  box-shadow: 8px 8px 0 rgba(17, 24, 39, 0.12);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.e2-modal h3 { font-size: 17px; margin-bottom: 8px; color: #111827; }
.e2-modal p { font-size: 13.5px; line-height: 1.5; color: #4b5563; margin-bottom: 16px; }

.e2-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.e2-bad {
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.e2-good {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #6b7280;
  font-size: 12px;
  cursor: pointer;
}

.e2-good:hover { background: #f3f4f6; color: #111827; }

/* --- ERA 3: 2015 Material Design --- */
body.era-3 {
  background: #eeeeee;
  color: #212121;
}

.e3-shell {
  width: min(94vw, 540px);
  background: #fafafa;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  position: relative;
  min-height: 360px;
}

.e3-appbar {
  background: #3f51b5;
  color: #fff;
  padding: 18px 22px;
  font-size: 19px;
  font-weight: 500;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 16px;
}

.e3-body {
  padding: 28px 24px 80px;
}

.e3-card {
  background: #fff;
  padding: 24px;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

.e3-card h2 { font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.e3-card p { font-size: 14px; color: #616161; line-height: 1.55; margin-bottom: 20px; }

.e3-raised {
  position: relative;
  overflow: hidden;
  padding: 11px 24px;
  border: none;
  border-radius: 2px;
  background: #3f51b5;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
}

.e3-snackbar {
  position: absolute;
  left: 16px;
  right: 86px;
  bottom: 16px;
  padding: 12px 16px;
  background: #323232;
  color: #fff;
  font-size: 13px;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(18px);
  transition: all 0.25s ease;
}

.e3-snackbar.show { opacity: 1; transform: translateY(0); }

.e3-fab-group {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.e3-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #ff4081;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.e3-fab.open { transform: rotate(45deg); }

.e3-mini-fab {
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: #009688;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.26);
  white-space: nowrap;
  display: none;
}

.e3-mini-fab.show { display: inline-flex; animation: popIn 0.2s ease; }

@keyframes popIn {
  from { opacity: 0; transform: scale(0.7) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- ERA 4: 2012 Skeuomorphism (Leather, Linen & Jelly Canvas) --- */
body.era-4 {
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0px, rgba(0, 0, 0, 0.04) 2px, transparent 2px, transparent 5px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 2px, transparent 2px, transparent 5px),
    #4b5159;
  color: #f3f4f6;
}

.e4-device {
  width: min(94vw, 500px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border: 2px solid #2b1d12;
}

.e4-leather-bar {
  position: relative;
  padding: 16px 20px;
  background:
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 0) 0 0 / 6px 6px,
    linear-gradient(180deg, #5c3a21 0%, #3b2313 100%);
  border-bottom: 3px solid #241409;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  color: #f7e6c9;
  text-shadow: 0 -1px 2px rgba(0, 0, 0, 0.85);
}

.e4-leather-bar::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  border-bottom: 1.5px dashed rgba(245, 211, 152, 0.45);
}

.e4-metal-panel {
  position: relative;
  padding: 24px 24px 26px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0px, rgba(0, 0, 0, 0.03) 1px, transparent 2px),
    linear-gradient(180deg, #d7dbe0 0%, #aeb5be 50%, #98a0aa 100%);
  color: #1f2937;
  text-align: center;
}

.e4-screw {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f3f4f6, #6b7280);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.7);
}
.e4-screw::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: rgba(31, 41, 55, 0.65);
  transform: rotate(35deg);
}
.e4-s1 { top: 10px; left: 10px; }
.e4-s2 { top: 10px; right: 10px; }
.e4-s3 { bottom: 10px; left: 10px; }
.e4-s4 { bottom: 10px; right: 10px; }

.e4-desc {
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.e4-jelly-canvas {
  display: block;
  margin: 0 auto 12px;
  cursor: pointer;
  touch-action: none;
}

.e4-gauge-wrap {
  width: 240px;
  margin: 0 auto 8px;
  background: #2d3138;
  padding: 5px;
  border-radius: 999px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.7);
}

.e4-gauge-fill {
  height: 12px;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(180deg, #fde047 0%, #ea580c 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: width 0.15s ease;
}

.e4-inst {
  font-size: 12px;
  color: #4b5563;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* --- ERA 5: 2008 Frutiger Aero --- */
body.era-5 {
  background: linear-gradient(180deg, #0ea5e9 0%, #38bdf8 42%, #7dd3fc 62%, #4ade80 74%, #15803d 100%);
  color: #082f49;
}

.e5-window {
  width: min(94vw, 540px);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 50px rgba(3, 105, 161, 0.35), inset 0 1px 0 #fff;
  overflow: hidden;
}

.e5-titlebar {
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(186, 230, 253, 0.48) 50%, rgba(125, 211, 252, 0.45) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #0c4a6e;
  text-shadow: 0 0 8px #fff;
}

.e5-close-glow {
  width: 34px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, #fca5a5 0%, #dc2626 55%, #991b1b 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.e5-content {
  position: relative;
  padding: 24px 20px 30px;
  text-align: center;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.e5-desc {
  font-size: 14px;
  font-weight: 600;
  color: #0c4a6e;
  margin-bottom: 20px;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9);
}

.e5-bubble-arena {
  position: relative;
  width: 100%;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.e5-orb {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.92) 0%, rgba(56, 189, 248, 0.35) 45%, rgba(16, 185, 129, 0.55) 100%);
  box-shadow: 0 14px 32px rgba(2, 132, 199, 0.35), inset 0 4px 12px rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(3, 105, 161, 0.8);
  animation: floatBob 2.6s ease-in-out infinite;
  transition: transform 0.15s ease;
}

.e5-orb:hover { transform: scale(1.07); }

.e5-decoy {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(125, 211, 252, 0.35));
  cursor: pointer;
  animation: floatBob 2s ease-in-out infinite alternate;
  box-shadow: 0 6px 14px rgba(14, 165, 233, 0.3);
}

@keyframes floatBob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* --- ERA 6: 2005 Web 2.0, Marquee & MSN Nudge --- */
body.era-6 {
  background:
    radial-gradient(#38bdf8 1px, transparent 1px) 0 0 / 18px 18px,
    radial-gradient(#f472b6 1px, transparent 1px) 9px 9px / 18px 18px,
    #1e1b4b;
  color: #fef08a;
  font-family: "Comic Sans MS", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.e6-layout {
  width: min(95vw, 660px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.e6-marquee-box {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #06b6d4);
  border: 3px ridge #fde047;
  padding: 6px 0;
}

.e6-marquee-track {
  display: inline-block;
  white-space: nowrap;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  animation: marqueeScroll 11s linear infinite;
}

@keyframes marqueeScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.e6-arena {
  position: relative;
  width: 100%;
  min-height: 220px;
  background: rgba(15, 23, 42, 0.85);
  border: 3px double #38bdf8;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.e6-badges {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.e6-blink {
  padding: 2px 8px;
  background: #ef4444;
  color: #fef08a;
  font-weight: 900;
  border-radius: 4px;
  animation: blinkStep 0.55s steps(2) infinite;
}

@keyframes blinkStep {
  0% { opacity: 1; }
  50% { opacity: 0.15; }
}

.e6-counter {
  font-family: "Courier New", monospace;
  background: #000;
  color: #4ade80;
  border: 2px inset #64748b;
  padding: 2px 10px;
  letter-spacing: 2px;
}

.e6-btn {
  padding: 15px 34px;
  border-radius: 999px;
  border: 3px solid #fff;
  background: linear-gradient(180deg, #fde047 0%, #f97316 52%, #ea580c 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.6);
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.e6-msn {
  width: min(92vw, 420px);
  background: #eef6ff;
  color: #1e293b;
  border: 2px solid #2563eb;
  border-radius: 8px;
  overflow: hidden;
  font-family: Tahoma, "Microsoft JhengHei", sans-serif;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.e6-msn-head {
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}

.e6-msn-log {
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  max-height: 92px;
  overflow-y: auto;
  background: #fff;
}

.e6-msn-nudge-text { color: #dc2626; font-weight: 700; }

.e6-msn-foot {
  padding: 6px 10px;
  background: #dbeafe;
  display: flex;
  justify-content: flex-end;
}

.e6-calm-btn {
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #3b82f6;
  background: linear-gradient(180deg, #fff, #bfdbfe);
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* --- ERA 7: 2001 Windows XP & Clippy --- */
body.era-7 {
  background: linear-gradient(180deg, #2563eb 0%, #60a5fa 48%, #93c5fd 58%, #4ade80 61%, #16a34a 100%);
  color: #000;
  font-family: Tahoma, "Microsoft JhengHei", sans-serif;
}

.e7-win {
  width: min(94vw, 480px);
  border-radius: 8px 8px 0 0;
  border: 3px solid #0055e5;
  background: #ece9d8;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  overflow: visible;
  position: relative;
}

.e7-title {
  background: linear-gradient(180deg, #0997ff 0%, #0053ee 8%, #0050ee 40%, #06f 88%, #003dd1 100%);
  color: #fff;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 1px 1px 1px #000;
}

.e7-x {
  width: 21px;
  height: 21px;
  border-radius: 3px;
  border: 1px solid #fff;
  background: linear-gradient(180deg, #f87171, #dc2626);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.e7-body {
  padding: 30px 24px 36px;
  text-align: center;
  position: relative;
}

.e7-btn {
  padding: 10px 28px;
  border-radius: 4px;
  border: 1px solid #003c74;
  background: linear-gradient(180deg, #ffffff 0%, #ecebe5 82%, #d6d0c5 100%);
  font-size: 15px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #fff;
}

.e7-btn:hover { box-shadow: inset 0 0 0 2px #f59e0b; }

.e7-clippy-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.25s ease;
}

.e7-bubble {
  background: #ffffe1;
  border: 1px solid #000;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  max-width: 280px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
  margin-bottom: 8px;
  color: #000;
}

.e7-taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  background: linear-gradient(180deg, #3168d5 0%, #245edb 15%, #1941a5 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 12px;
  z-index: 20;
  color: #fff;
  font-size: 12px;
}

.e7-start {
  height: 100%;
  padding: 0 18px 0 12px;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(180deg, #4cb04c 0%, #2e8b2e 85%, #1d6b1d 100%);
  display: flex;
  align-items: center;
  font-weight: 800;
  font-style: italic;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* --- ERA 8: 1998 56K Dial-Up & Hand-Crank --- */
body.era-8 {
  background: #008080;
  color: #000;
  font-family: "Times New Roman", "PMingLiU", serif;
}

.e8-browser {
  width: min(95vw, 620px);
  background: #c0c0c0;
  border: 3px outset #ffffff;
  box-shadow: 4px 4px 0 #000;
}

.e8-titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  padding: 4px 8px;
  font-family: Tahoma, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
}

.e8-addr {
  padding: 5px 8px;
  border-bottom: 2px groove #fff;
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.e8-addr-box {
  flex: 1;
  background: #fff;
  border: 2px inset #808080;
  padding: 2px 6px;
}

.e8-page {
  background: #c0c0c0;
  padding: 16px;
  text-align: center;
}

.e8-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 14px 0;
}

.e8-img-frame {
  border: 2px inset #808080;
  background: #dfdfdf;
  padding: 6px;
}

.e8-crank-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.e8-wheel {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 4px outset #fff;
  background: radial-gradient(circle, #a3a3a3, #6b7280);
  position: relative;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.45);
}

.e8-arm {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 10px;
  margin-top: -5px;
  background: linear-gradient(180deg, #f3f4f6, #52525b);
  border: 1px solid #000;
  transform-origin: 0% 50%;
}

.e8-knob {
  position: absolute;
  right: -10px;
  top: -7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ef4444, #991b1b);
  border: 2px solid #000;
}

.e8-classic-btn {
  padding: 6px 16px;
  background: #c0c0c0;
  border: 2px outset #fff;
  font-family: Tahoma, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.e8-classic-btn:active { border-style: inset; }
.e8-classic-btn:disabled { color: #737373; cursor: not-allowed; }

.e8-status {
  border-top: 2px groove #fff;
  padding: 4px 8px;
  font-family: Tahoma, sans-serif;
  font-size: 11.5px;
  display: flex;
  justify-content: space-between;
  background: #c0c0c0;
}

/* --- ERA 9: 1995 GeoCities & BSOD --- */
body.era-9 {
  background: #000018;
  color: #00ffff;
  font-family: "Courier New", monospace;
}

.e9-table {
  width: min(94vw, 560px);
  border: 4px ridge #ff00ff;
  background: #000033;
  padding: 20px;
  text-align: center;
}

.e9-table h1 {
  color: #ffff00;
  font-size: 20px;
  margin-bottom: 12px;
}

.e9-table p {
  color: #00ff00;
  font-size: 14px;
  margin-bottom: 20px;
}

.e9-btn {
  padding: 12px 24px;
  background: #c0c0c0;
  color: #0000ff;
  border: 4px outset #ffffff;
  font-family: "Courier New", monospace;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.e9-bsod {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: #0000aa;
  color: #ffffff;
  font-family: "Courier New", monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: left;
  cursor: pointer;
}

.e9-bsod-badge {
  background: #aaaaaa;
  color: #0000aa;
  padding: 2px 12px;
  font-weight: 700;
  margin-bottom: 24px;
}

.e9-bsod pre {
  max-width: 620px;
  white-space: pre-wrap;
  line-height: 1.65;
  font-size: 15px;
}

/* --- ERA 10: 1984 Classic Mac 1-Bit --- */
body.era-10 {
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, #000 25%, transparent 25%),
    linear-gradient(-45deg, #000 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #000 75%),
    linear-gradient(-45deg, transparent 75%, #000 75%);
  background-size: 4px 4px;
  background-position: 0 0, 0 2px, 2px -2px, -2px 0px;
  color: #000;
  font-family: "Geneva", "Courier New", monospace;
}

.e10-menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  background: #fff;
  border-bottom: 2px solid #000;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  z-index: 20;
}

.e10-win {
  width: min(92vw, 460px);
  background: #fff;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
}

.e10-titlebar {
  height: 26px;
  border-bottom: 2px solid #000;
  background: repeating-linear-gradient(180deg, #000 0px, #000 1px, #fff 1px, #fff 3px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.e10-titlebar span {
  background: #fff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.e10-body {
  padding: 28px 20px;
  text-align: center;
}

.e10-disk {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  cursor: pointer;
  border: 2px dashed transparent;
}

.e10-disk:hover {
  border-color: #000;
  background: #000;
  color: #fff;
}

.e10-btn {
  margin-top: 16px;
  padding: 8px 26px;
  background: #fff;
  color: #000;
  border: 3px double #000;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.e10-btn:hover { background: #000; color: #fff; }

/* --- ERA 11: 1980 Green Phosphor CRT --- */
body.era-11 {
  background: #040d04;
  color: #33ff33;
  font-family: "Courier New", ui-monospace, monospace;
}

.e11-crt {
  position: relative;
  width: min(94vw, 640px);
  min-height: 360px;
  padding: 28px;
  border-radius: 26px;
  background: radial-gradient(circle at center, #082408 0%, #020b02 100%);
  border: 12px solid #262626;
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(51, 255, 51, 0.2);
  overflow: hidden;
  text-shadow: 0 0 8px rgba(51, 255, 51, 0.75);
}

.e11-crt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0px, rgba(0, 0, 0, 0.28) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
}

.e11-log {
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.e11-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
}

.e11-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #33ff33;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(51, 255, 51, 0.8);
}

.e11-quick {
  margin-top: 22px;
  background: transparent;
  border: 1px solid #33ff33;
  color: #33ff33;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.e11-quick:hover { background: #33ff33; color: #020b02; text-shadow: none; }

/* --- ERA 12: 1965 IBM Punch Card --- */
body.era-12 {
  background: linear-gradient(180deg, #3b3a34 0%, #262520 100%);
  color: #f5f0e1;
  font-family: "Courier New", monospace;
}

.e12-console {
  width: min(95vw, 660px);
  background: linear-gradient(180deg, #4b4a42, #33322c);
  border: 4px solid #6b685c;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.65);
  text-align: center;
}

.e12-lamps {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.e12-lamp {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  background: #1f1e1a;
  color: #78716c;
  border: 1px solid #57534e;
}

.e12-lamp.on {
  background: #f59e0b;
  color: #1c1917;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.75);
}

.e12-card {
  position: relative;
  margin: 14px auto 18px;
  padding: 18px 16px 20px;
  background: linear-gradient(180deg, #f3e5c2 0%, #e6d2a2 100%);
  color: #443b2a;
  border: 2px solid #b89f6d;
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%, 0 22px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.65s cubic-bezier(0.55, 0.055, 0.675, 0.19), opacity 0.65s ease;
}

.e12-card.feeding {
  transform: translateX(130%) scale(0.95);
  opacity: 0;
}

.e12-card-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(68, 59, 42, 0.3);
  padding-bottom: 6px;
}

.e12-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.e12-cell {
  height: 54px;
  border: 2px dashed #b45309;
  background: rgba(245, 158, 11, 0.18);
  color: #78350f;
  font-family: "Courier New", monospace;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, background 0.15s ease;
}

.e12-cell:hover:not(.punched) {
  background: rgba(245, 158, 11, 0.4);
  transform: scale(1.05);
}

.e12-cell.punched {
  background: #1c1917;
  border: 2px inset #000;
  color: transparent;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.9);
  cursor: default;
}

.e12-feed-btn {
  padding: 12px 26px;
  background: #d97706;
  color: #fff;
  border: 2px outset #fbbf24;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.e12-feed-btn:disabled {
  background: #57534e;
  border-color: #78716c;
  color: #a8a29e;
  cursor: not-allowed;
}

/* --- ERA 13: 1890 Victorian Brass Telegraph --- */
body.era-13 {
  background: radial-gradient(circle at center, #3b2618 0%, #1a0f08 100%);
  color: #f3e5c8;
  font-family: Georgia, "Times New Roman", serif;
}

.e13-desk {
  width: min(94vw, 560px);
  padding: 28px 24px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(66, 40, 22, 0.92), rgba(34, 19, 10, 0.96));
  border: 3px double #b48a3e;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.e13-desk h1 {
  font-size: 22px;
  letter-spacing: 0.1em;
  color: #e9c97b;
  margin-bottom: 8px;
}

.e13-desk p {
  font-size: 14px;
  color: #d6c3a3;
  margin-bottom: 20px;
}

.e13-tape {
  height: 36px;
  background: #f5ebd6;
  color: #1c1917;
  border-top: 2px solid #a89878;
  border-bottom: 2px solid #a89878;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Courier New", monospace;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 8px;
  margin-bottom: 22px;
}

.e13-key-btn {
  position: relative;
  width: 190px;
  height: 110px;
  border-radius: 18px;
  border: 3px solid #f6d57a;
  background: radial-gradient(circle at 35% 30%, #f7dc8c 0%, #b4832c 55%, #6b4710 100%);
  box-shadow: 0 12px 0 #422a08, 0 18px 34px rgba(0, 0, 0, 0.7);
  color: #261604;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}

.e13-key-btn:active,
.e13-key-btn.pressed {
  transform: translateY(8px);
  box-shadow: 0 4px 0 #422a08, 0 8px 18px rgba(0, 0, 0, 0.7);
}

/* --- ERA 14: 1450 Gutenberg Parchment & Wax Seal --- */
body.era-14 {
  background: radial-gradient(circle at center, #2c1e16 0%, #120b07 100%);
  color: #2e1d0f;
  font-family: Georgia, "Songti TC", "PMingLiU", serif;
}

.e14-scroll {
  width: min(92vw, 520px);
  padding: 40px 34px;
  background:
    radial-gradient(circle at 50% 50%, #f5e6c8 0%, #e4ca9b 75%, #c7a56e 100%);
  border: 4px double #7c2d12;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.75),
    inset 0 0 42px rgba(120, 66, 18, 0.4);
  text-align: center;
  position: relative;
}

.e14-scroll h1 {
  font-size: 32px;
  letter-spacing: 0.22em;
  color: #7c2d12;
  margin-bottom: 6px;
}

.e14-latin {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #78350f;
  margin-bottom: 18px;
}

.e14-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #3f2814;
  margin-bottom: 28px;
}

.e14-seal {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  border: 4px solid #fca5a5;
  background: radial-gradient(circle at 35% 30%, #dc2626 0%, #991b1b 65%, #5b0d0d 100%);
  color: #fde68a;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(91, 13, 13, 0.55), inset 0 2px 6px rgba(255, 255, 255, 0.35);
  transition: transform 0.14s ease;
}

.e14-seal:hover { transform: scale(1.06); }
.e14-seal.stamped { transform: scale(0.92); box-shadow: 0 2px 8px rgba(91, 13, 13, 0.8); }

/* --- ERA 15: 3000 BC Stone Age Chisel --- */
body.era-15 {
  background: radial-gradient(circle at 50% 60%, #2d1c12 0%, #140c08 70%, #090503 100%);
  color: #f3e2c7;
  cursor: none;
}

body.era-15 * {
  cursor: none !important;
}

.e15-cave {
  width: min(94vw, 580px);
  text-align: center;
  position: relative;
}

.e15-cave h1 {
  font-size: 24px;
  letter-spacing: 0.14em;
  color: #fdba74;
  text-shadow: 0 2px 12px rgba(251, 146, 60, 0.5);
  margin-bottom: 8px;
}

.e15-cave p {
  font-size: 14.5px;
  color: #e7d3b7;
  margin-bottom: 16px;
}

.e15-slab-canvas {
  display: block;
  margin: 0 auto 12px;
  max-width: 100%;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.8));
}

.e15-progress {
  font-size: 15px;
  font-weight: 700;
  color: #fb923c;
  letter-spacing: 0.08em;
}

/* --- ERA 16: Singularity & Golden Rebirth --- */
body.era-16 {
  background: #000000;
  color: #ffffff;
}

.e16-void {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.e16-prompt {
  font-size: 13px;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.e16-pixel-hit {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: none;
}

.e16-pixel {
  width: 3px;
  height: 3px;
  background: #ffffff;
  box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.95), 0 0 36px 8px rgba(125, 211, 252, 0.6);
  animation: pulsePixel 1.8s ease-in-out infinite;
}

@keyframes pulsePixel {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(2.2); opacity: 1; }
}

.e16-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}

/* Golden Certificate */
.e16-cert {
  width: min(94vw, 520px);
  padding: 36px 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(254, 240, 138, 0.14), rgba(168, 85, 247, 0.14), rgba(15, 23, 42, 0.88));
  backdrop-filter: blur(28px);
  border: 1.5px solid rgba(253, 224, 71, 0.55);
  box-shadow: 0 28px 80px rgba(234, 179, 8, 0.25);
  text-align: center;
}

.e16-cert h1 {
  font-size: 26px;
  background: linear-gradient(90deg, #fef08a, #f59e0b, #fde047);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.e16-cert p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 16px;
}

.e16-rank {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.18);
  border: 1px solid rgba(250, 204, 21, 0.5);
  color: #fde047;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}

.e16-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.e16-stat {
  padding: 12px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.e16-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.e16-stat-lbl {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

.e16-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.e16-act-btn {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.e16-act-btn.primary {
  background: linear-gradient(90deg, #f59e0b, #eab308);
  color: #1c1917;
  border: none;
}

.e16-act-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* Era 10 HUD offset so Classic Mac menu bar never overlaps */
body.era-10 #hud {
  top: 36px;
}

/* Era 15 restore cursor on HUD & Museum Drawer + Cave Art */
body.era-15 #hud,
body.era-15 #hud *,
body.era-15 #museum-drawer,
body.era-15 #museum-drawer * {
  cursor: pointer !important;
}

.e15-cave-art {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.22;
}

.e16-montage {
  font-size: clamp(46px, 10vw, 110px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 0 36px rgba(253, 224, 71, 0.9), 0 0 70px rgba(56, 189, 248, 0.7);
  animation: montagePulse 0.1s linear infinite;
}

@keyframes montagePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ==========================================================================
   V2.0 DIRECTOR'S CUT — FULL-WORLD ART & INTERACTIVE POLISH
   ========================================================================== */

/* Era 0: Floating Spatial OS Parallax Widgets */
.e0-spatial-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 980px;
}

.e0-float-widget {
  position: absolute;
  width: 175px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.16s ease-out;
}

.e0-w-left { left: 16px; top: 12%; }
.e0-w-right { right: 16px; bottom: 12%; }
.e0-w-lbl { font-size: 11px; letter-spacing: 0.1em; color: #94a3b8; text-transform: uppercase; margin-bottom: 6px; }
.e0-w-val { font-size: 20px; font-weight: 800; color: #f8fafc; }
.e0-w-sub { font-size: 11px; color: #cbd5e1; margin-top: 6px; }

.e0-wave-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 22px;
  margin-top: 10px;
}
.e0-wave-bars span {
  flex: 1;
  background: linear-gradient(180deg, #38bdf8, #a855f7);
  border-radius: 4px;
  animation: eqWave 1.1s ease-in-out infinite alternate;
}
.e0-wave-bars span:nth-child(2) { animation-delay: 0.2s; }
.e0-wave-bars span:nth-child(3) { animation-delay: 0.45s; }
.e0-wave-bars span:nth-child(4) { animation-delay: 0.15s; }
.e0-wave-bars span:nth-child(5) { animation-delay: 0.35s; }

@keyframes eqWave {
  0% { height: 22%; }
  100% { height: 100%; }
}

.e0-btn-orb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8;
}

@media (max-width: 860px) {
  .e0-float-widget { display: none; }
}

/* Era 1: Interactive AI Copilot Chat Chips */
.e1-chat-log { margin-bottom: 10px; min-height: 44px; }
.e1-chat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.e1-chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(192, 132, 252, 0.45);
  background: rgba(139, 92, 246, 0.16);
  color: #e9d5ff;
  font-size: 11.5px;
  cursor: pointer;
}
.e1-chip:hover { background: rgba(139, 92, 246, 0.35); }
.e1-token-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-top: 10px;
}
.e1-token-bar span {
  display: block;
  width: 78%;
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
}

/* Era 2: Full-Viewport Scattered 5 Popups & Minimal Navbar */
.e2-navbar {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  height: 48px;
  padding: 0 28px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 14px;
}
.e2-nav-links { display: flex; gap: 20px; color: #6b7280; font-size: 13px; }
.e2-btn:disabled { background: #9ca3af; cursor: not-allowed; }

.e2-pop {
  position: fixed;
  background: #ffffff;
  border: 2px solid #111827;
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: 8px 8px 0 rgba(17, 24, 39, 0.14);
  transition: opacity 0.18s ease, transform 0.18s ease;
  color: #111827;
  text-align: left;
  z-index: 25;
}
.e2-pop-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.e2-pop-body { font-size: 12.5px; color: #4b5563; line-height: 1.45; margin-bottom: 12px; }
.e2-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.e2-pop-notif { top: 68px; right: 20px; width: min(88vw, 310px); }
.e2-pop-chat { right: 20px; bottom: 98px; width: min(86vw, 290px); border-color: #2563eb; }
.e2-chat-head { font-weight: 700; color: #2563eb; font-size: 13px; margin-bottom: 6px; }
.e2-pop-cookie {
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.e2-pop-center {
  left: 50%;
  top: 50%;
  margin-left: -190px;
  margin-top: -105px;
  width: min(88vw, 380px);
}
.e2-pop-center h3 { font-size: 17px; margin-bottom: 8px; }
.e2-pop-center p { font-size: 13px; color: #4b5563; margin-bottom: 14px; line-height: 1.45; }

/* Era 3: Material Side Drawer & Click-Coordinate Ink Ripple */
.e3-menu-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.e3-drawer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 230px;
  background: #fff;
  z-index: 25;
  box-shadow: 6px 0 24px rgba(0, 0, 0, 0.3);
  transform: translateX(-105%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.e3-drawer.open { transform: translateX(0); }
.e3-drawer-head {
  background: #303f9f;
  color: #fff;
  padding: 22px 16px;
  font-weight: 700;
  font-size: 16px;
}
.e3-drawer-item {
  background: none;
  border: none;
  border-bottom: 1px solid #eee;
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}
.e3-drawer-item:hover { background: #f5f5f5; }
.e3-mini-gplus { background: #dd4b39; }
.e3-ripple {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%) scale(1);
  animation: matRipple 0.52s ease-out forwards;
  pointer-events: none;
}
@keyframes matRipple {
  to { transform: translate(-50%, -50%) scale(18); opacity: 0; }
}

/* Era 4: 2012 Analog Brass Dial + iOS 6 Slide-to-Unlock */
.e4-console-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.e4-dial-canvas {
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}
.e4-slider-track {
  position: relative;
  margin: 14px auto 0;
  width: min(100%, 300px);
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1f2937, #374151);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.e4-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.25;
  cursor: ew-resize;
  z-index: 2;
}
.e4-slider-txt {
  font-size: 12.5px;
  font-weight: 700;
  color: #e5e7eb;
  letter-spacing: 0.06em;
  pointer-events: none;
}

/* Era 5: Vista Aero Glass Taskbar */
.e5-taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.65), rgba(2, 6, 23, 0.85));
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: #fff;
  font-size: 12px;
  z-index: 20;
}
.e5-vista-orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #bae6fd, #0284c7 55%, #0c4a6e);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.85);
  font-size: 16px;
}
.e5-task-pill {
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.e5-tray { margin-left: auto; opacity: 0.85; }

/* Era 6: 2005 Fake Ad + Guestbook + Two-Column Layout */
.e6-fake-ad {
  width: 100%;
  padding: 7px 12px;
  border: 2px dashed #fde047;
  background: linear-gradient(90deg, #dc2626, #f59e0b, #16a34a);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  animation: blinkStep 0.85s steps(2) infinite;
}
.e6-main-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
}
@media (max-width: 680px) {
  .e6-main-row { grid-template-columns: 1fr; }
}
.e6-guestbook {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #bae6fd;
}
.e6-gb-btn {
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #38bdf8;
  background: #1e3a8a;
  color: #fff;
  font-size: 11.5px;
  cursor: pointer;
}

/* Era 7: Windows XP Clickable Desktop Icons */
.e7-icons {
  position: fixed;
  top: 66px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 15;
}
.e7-icon {
  background: none;
  border: 1px solid transparent;
  color: #fff;
  text-shadow: 1px 1px 2px #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 28px;
}
.e7-icon small { font-size: 11.5px; font-weight: 600; }
.e7-icon:hover { background: rgba(37, 99, 235, 0.45); border-color: rgba(255, 255, 255, 0.5); }

/* Era 8: Netscape 4.0 Toolbar & 56K Modem LEDs */
.e8-titlebar { display: flex; justify-content: space-between; align-items: center; }
.e8-leds { display: flex; gap: 5px; }
.e8-led {
  font-style: normal;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 2px;
  background: #14532d;
  color: #86efac;
  border: 1px solid #000;
}
.e8-led.on { background: #22c55e; color: #000; }
.e8-led.blink { animation: blinkStep 0.25s steps(2) infinite; background: #f59e0b; color: #000; }
.e8-led.blink2 { animation: blinkStep 0.38s steps(2) infinite; background: #ef4444; color: #fff; }
.e8-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-bottom: 2px groove #fff;
  font-family: Tahoma, sans-serif;
  font-size: 11px;
}
.e8-tb-btn {
  padding: 2px 8px;
  border: 2px outset #fff;
  background: #c0c0c0;
}
.e8-netscape-n {
  margin-left: auto;
  width: 24px;
  height: 24px;
  background: #000080;
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px inset #808080;
}
.e8-kbps {
  font-family: "Courier New", monospace;
  font-weight: 700;
  background: #000;
  color: #4ade80;
  padding: 2px 7px;
  font-size: 11.5px;
}

/* Era 9: Spinning Globe & Cool Site Badge */
.e9-globe { font-size: 38px; margin-bottom: 8px; animation: spinGlobe 4s linear infinite; display: inline-block; }
@keyframes spinGlobe { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.e9-award {
  font-size: 12px;
  color: #ff66ff;
  border: 1px dashed #ffff00;
  padding: 6px 10px;
  margin-bottom: 18px;
}

/* Era 10: Interactive Apple Menu Bar Buttons */
.e10-m-item {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
}
.e10-m-item:hover { background: #000; color: #fff; }

/* Era 12: Glowing Vintage Nixie Tube Counter */
.e12-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}
.e12-nixie {
  font-family: "Courier New", monospace;
  font-size: 24px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 6px;
  background: #140a05;
  color: #fb923c;
  border: 2px solid #78350f;
  text-shadow: 0 0 12px #f97316, 0 0 22px #ea580c;
  letter-spacing: 3px;
}

/* Era 13: Glowing Edison Filament Bulb & Morse Plaque */
.e13-bulb {
  font-size: 36px;
  margin-bottom: 8px;
  opacity: 0.45;
  transition: all 0.08s ease;
}
.e13-bulb.lit {
  opacity: 1;
  transform: scale(1.18);
  filter: drop-shadow(0 0 22px #fde047);
}
.e13-plaque {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid #b48a3e;
  background: rgba(0, 0, 0, 0.35);
  color: #fde68a;
  font-family: "Courier New", monospace;
  font-size: 11.5px;
  margin-bottom: 14px;
}

/* Era 14: 3-Step Gutenberg Woodblock Illuminated Manuscript */
.e14-dropcap {
  position: absolute;
  top: 14px;
  left: 18px;
  width: 44px;
  height: 44px;
  border: 2px solid #991b1b;
  background: linear-gradient(135deg, #fde047, #b45309);
  color: #7c2d12;
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.e14-imprint {
  display: inline-block;
  padding: 8px 22px;
  margin-bottom: 18px;
  border: 2px dashed rgba(124, 45, 18, 0.35);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: rgba(63, 40, 20, 0.2);
  transition: all 0.25s ease;
}
.e14-imprint.inked { color: #1c1917; border-color: #1c1917; }
.e14-imprint.pressed {
  background: rgba(28, 25, 23, 0.08);
  border-style: solid;
  transform: scale(1.06);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
}

/* Era 15: Dynamic Mouse Torchlight & Secret Prehistoric Wi-Fi */
.e15-torch-mask {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle 280px at var(--tx, 50%) var(--ty, 50%), rgba(251, 146, 60, 0.12), rgba(5, 3, 2, 0.72) 78%);
}
.e15-cave { z-index: 5; }
.e15-secret-wifi {
  position: fixed;
  right: 8%;
  bottom: 12%;
  z-index: 6;
  background: none;
  border: none;
  opacity: 0.28;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.e15-secret-wifi:hover { opacity: 0.95; transform: scale(1.15); }
