:root {
  --bg-dark: #07070a;
  --dark-accent: #ff003c;
  --vivid-accent: #00f0ff;
  --vivid-gold: #ffb703;
  --vivid-bg: #ff007f;
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Rajdhani", sans-serif;
}

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

body,
html {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  font-family: var(--font-body);
  color: #ffffff;
}

/* Split Background Viewport */
.split-viewport {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

.side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  z-index: 1;
}

.dark-side {
  left: 0;
  background: linear-gradient(135deg, #020204 0%, #0d0d1a 100%);
  border-right: 1px solid rgba(255, 0, 60, 0.3);
}

.vivid-side {
  right: 0;
  background: linear-gradient(135deg, #790908 0%, #ff4e00 50%, #ffb703 100%);
}

/* Background Artwork */
.reaper-wrapper {
  position: absolute;
  bottom: 5%;
  left: 8%;
  width: 260px;
  opacity: 0.45;
  filter: drop-shadow(0 0 15px rgba(255, 0, 60, 0.4));
  animation: floatReaper 6s ease-in-out infinite alternate;
}

@keyframes floatReaper {
  0% {
    transform: translateY(0px) rotate(-1deg);
  }
  100% {
    transform: translateY(-15px) rotate(1deg);
  }
}

.glow-eye {
  animation: blinkEye 3s infinite alternate;
}

@keyframes blinkEye {
  0%,
  100% {
    opacity: 0.3;
    filter: drop-shadow(0 0 2px #ff003c);
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 8px #ff003c);
  }
}

.sunburst {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 0, 127, 0) 70%
  );
  border-radius: 50%;
}

/* Dashboard UI Glass Container */
.dashboard {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 800px;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--dark-accent);
  background: rgba(255, 0, 60, 0.15);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid var(--dark-accent);
  margin-bottom: 0.75rem;
}

h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ff003c, #ffffff, #00f0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.subtitle {
  font-size: 0.95rem;
  letter-spacing: 3px;
  color: #b0b0cb;
  margin-bottom: 1.5rem;
}

/* Split Image Box */
.split-photo-container {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 2rem auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 25px rgba(0, 0, 0, 0.8),
    0 0 15px rgba(0, 240, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.photo-layer {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}

.photo-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Left Half Photo: Grayscale, High Contrast, Dark Tint */
.dark-photo {
  clip-path: inset(0 50% 0 0);
  filter: grayscale(100%) contrast(140%) brightness(60%);
  background-color: #000;
}

/* Right Half Photo: Vivid Saturation, Warm Glow */
.vivid-photo {
  clip-path: inset(0 0 0 50%);
  filter: saturate(180%) contrast(110%) brightness(110%);
}

.split-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, #ff003c, #00f0ff);
  transform: translateX(-50%);
  box-shadow: 0 0 8px #ffffff;
}

/* Countdown Grid */
.timer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.timer-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-val {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.time-lbl {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: #8a8a9e;
  margin-top: 0.25rem;
}

/* Lifespan Progress Card */
.lifespan-card {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.lifespan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  color: #c0c0d0;
}

.percent-readout {
  font-family: var(--font-heading);
  color: var(--vivid-accent);
  font-weight: 700;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 16px;
  background: #151520;
  border-radius: 8px;
  overflow: visible;
  margin-bottom: 0.75rem;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 8px;
  background: linear-gradient(90deg, #ff003c 0%, #ffb703 62.5%, #00f0ff 100%);
  transition: width 0.5s ease-out;
  box-shadow: 0 0 12px rgba(255, 183, 3, 0.5);
}

.milestone-pin {
  position: absolute;
  top: -6px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pin-line {
  width: 2px;
  height: 28px;
  background: #ffffff;
  box-shadow: 0 0 6px #ffffff;
}

.pin-tag {
  position: absolute;
  top: -22px;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  white-space: nowrap;
  background: #ffffff;
  color: #000000;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 900;
}

.lifespan-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #707085;
}

.highlight-50 {
  color: var(--vivid-gold);
  font-weight: 700;
}

/* Humor Ticker */
.ticker {
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: #a0a0b5;
  font-style: italic;
}

/* Responsive Scaling */
@media (max-width: 600px) {
  .dashboard {
    padding: 1.5rem 1rem;
  }
  h1 {
    font-size: 1.5rem;
  }
  .time-val {
    font-size: 1.5rem;
  }
  .timer-grid {
    gap: 0.5rem;
  }
}
