:root {
  --obsidian: #070708;
  --gold: #c9a962;
  --gold-soft: rgba(201, 169, 98, 0.18);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(201, 169, 98, 0.16);
}

body {
  font-family: "Noto Sans SC", system-ui, sans-serif;
  background: radial-gradient(circle at 20% -10%, #15151a 0%, var(--obsidian) 45%);
  min-height: 100dvh;
  overflow-x: hidden;
}

.bg-obsidian {
  background-color: var(--obsidian);
}

.text-gold {
  color: var(--gold);
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-a {
  width: 220px;
  height: 220px;
  top: 8%;
  right: -40px;
  background: rgba(201, 169, 98, 0.25);
}

.orb-b {
  width: 180px;
  height: 180px;
  bottom: 12%;
  left: -30px;
  background: rgba(120, 90, 255, 0.18);
  animation-delay: -6s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, 18px, 0);
  }
}

.glass-panel {
  border: 1px solid var(--glass-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), var(--glass));
  border-radius: 1.25rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.glass-btn {
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: var(--gold);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.glass-btn:active {
  transform: scale(0.97);
}

.glass-btn[aria-pressed="true"] {
  border-color: rgba(201, 169, 98, 0.55);
  background: var(--gold-soft);
}

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

.timer-grid > div {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.9rem;
  padding: 0.75rem 0.35rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
}

.timer-grid span {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 600;
  color: #f4efe3;
  font-variant-numeric: tabular-nums;
}

.timer-grid small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.45);
}

.quote-stage {
  perspective: 1200px;
}

.quote-card {
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  padding: 1.25rem;
  min-height: 11rem;
  background:
    linear-gradient(160deg, rgba(201, 169, 98, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 8, 10, 0.72);
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 320ms ease;
  will-change: transform, opacity;
}

.quote-card.is-flipping {
  transform: rotateY(90deg);
  opacity: 0.2;
}

.quote-text {
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #f5f5f4;
}

.timeline {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.timeline::-webkit-scrollbar {
  height: 4px;
}

.timeline::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 98, 0.35);
  border-radius: 999px;
}

.timeline-card {
  flex: 0 0 min(78vw, 18rem);
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.timeline-card time {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--gold);
}

.timeline-card h3 {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.timeline-card p {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.egg-input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.65rem 0.9rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.35em;
  text-align: center;
  color: #fff;
}

.egg-input:focus {
  outline: none;
  border-color: rgba(201, 169, 98, 0.55);
}

.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(4, 4, 6, 0.88);
  backdrop-filter: blur(10px);
  transition: opacity 420ms ease, visibility 420ms ease;
}

.boot-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-btn {
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: 1.25rem;
  padding: 1.1rem 1.4rem;
  background: linear-gradient(160deg, rgba(201, 169, 98, 0.12), rgba(255, 255, 255, 0.03));
  color: #f5f5f4;
  font-size: 1rem;
}
