/* ─────────────────────────────────────────────
   pastel vaporwave countdown
   ───────────────────────────────────────────── */

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

:root {
  --pink:    #ffcce0;
  --cyan:    #ccefff;
  --yellow:  #fff0aa;
  --dim:     rgba(255, 255, 255, 0.75);
  --font-main: 'Atkinson Hyperlegible', monospace;
  --font-mono: 'Atkinson Hyperlegible', monospace;
  --text-shadow: 0 1px 4px rgba(0,0,0,0.85), 0 0 12px rgba(0,0,0,0.5);
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #000;
  font-family: var(--font-main);
  color: #fff;
}

/* ── Background GIF ── */
#bg {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.dim { color: var(--dim); }

/* ── Countdown screen ── */
#countdown-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Top bar — very quiet ── */
#top-bar {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  padding: 4px 18px 8px;
}

#flight-tag {
  font-size: 20px;
  color: #fff;
  text-shadow: var(--text-shadow);
  letter-spacing: 3px;
}

#route-tag {
  font-size: 15px;
  color: #fff;
  text-shadow: var(--text-shadow);
  letter-spacing: 2px;
}

/* ── Main countdown panel ── */
#main-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 40px 20px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

#status-label {
  font-size: 13px;
  letter-spacing: 5px;
  text-transform: lowercase;
  color: #fff;
  text-shadow: var(--text-shadow);
  font-family: var(--font-mono);
}

/* ── Big digits ── */
#countdown {
  display: flex;
  align-items: center;
  gap: 2px;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.unit {
  font-size: clamp(56px, 10vw, 108px);
  line-height: 1;
  font-family: var(--font-main);
  color: #ffffff;
  text-shadow: var(--text-shadow);
  letter-spacing: 3px;
  min-width: 2ch;
  text-align: center;
}

.unit.tick { }

.unit-label {
  font-size: 12px;
  color: #fff;
  text-shadow: var(--text-shadow);
  letter-spacing: 2px;
  font-family: var(--font-mono);
  margin-top: -2px;
}

.colon {
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1;
  color: #ffffff;
  text-shadow: var(--text-shadow);
  margin-bottom: 12px;
  padding: 0 2px;
}

#arrival-tag {
  font-size: 13px;
  letter-spacing: 2px;
  font-family: var(--font-mono);
  color: #fff;
  text-shadow: var(--text-shadow);
  margin-top: 2px;
}

#arrival-display {
  color: #fff;
  text-shadow: var(--text-shadow);
}

/* ── Info bar ── */
#info-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 24px 6px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.4vw, 13px);
  color: #fff;
  text-shadow: var(--text-shadow);
  letter-spacing: 1.5px;
  text-transform: lowercase;
}

#info-time-row, #info-weather-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

#temp-display, #humidity-display, #wind-display,
#local-time-display, #dest-city-display, #weather-display {
  color: #fff;
  text-shadow: var(--text-shadow);
}

/* ── Arrived overlay ── */
#arrived-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(9, 0, 31, 0.82);
  backdrop-filter: blur(6px);
}

#arrived-overlay.hidden { display: none; }

.arrived-text {
  font-size: clamp(54px, 10vw, 108px);
  color: var(--pink);
  text-shadow: var(--glow-pink), 0 0 60px rgba(232,168,192,0.2);
  letter-spacing: 6px;
}

.arrived-sub {
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  letter-spacing: 4px;
  margin-top: 14px;
  opacity: 0.8;
}

/* ── Animations ── */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes blink-slow {
  0%, 59% { opacity: 1; }
  60%, 100% { opacity: 0.15; }
}

.blink      { animation: blink 1s step-end infinite; }
.blink-slow { animation: blink-slow 1.2s step-end infinite; }

::-webkit-scrollbar { display: none; }
