:root {
  --ph-blue: #0038a8;
  --ph-red: #ce1126;
  --ph-yellow: #fcd116;
  --ink: #0b1b3a;
  --white: #ffffff;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background: linear-gradient(135deg, var(--ph-blue) 0%, #00246b 55%, var(--ph-red) 100%);
  display: flex;
  justify-content: center;
  padding: 24px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Decorative background flag motifs */
.bg-flag {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.rays {
  position: absolute;
  top: -180px;
  left: -180px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 209, 22, 0.35) 0%, rgba(252, 209, 22, 0) 70%);
}

.star {
  position: absolute;
  color: rgba(252, 209, 22, 0.25);
  font-size: 42px;
  animation: twinkle 4s ease-in-out infinite;
}
.star-1 { top: 12%; right: 14%; font-size: 26px; animation-delay: 0s; }
.star-2 { bottom: 18%; left: 10%; font-size: 36px; animation-delay: 1.2s; }
.star-3 { bottom: 30%; right: 22%; font-size: 20px; animation-delay: 2.4s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.9); }
  50% { opacity: 0.7; transform: scale(1.15); }
}

/* Card */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin-block: auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 56px 40px 40px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Language switcher */
.lang {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.lang button {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}
.lang button:hover {
  background: rgba(255, 255, 255, 0.18);
}
.lang button:active {
  transform: scale(0.96);
}
.lang button.active {
  background: var(--ph-yellow);
  border-color: var(--ph-yellow);
  color: var(--ink);
}

/* Sun emblem */
.sun {
  width: 96px;
  height: 96px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--ph-yellow);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(252, 209, 22, 0.18), 0 0 40px rgba(252, 209, 22, 0.5);
}
.sun::before {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg,
      transparent 0 7deg, rgba(252, 209, 22, 0.55) 7deg 11deg, transparent 11deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 46px, #000 47px);
  mask: radial-gradient(circle, transparent 46px, #000 47px);
  animation: spin 18s linear infinite;
}
.sun-core {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e9b800;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--ph-yellow);
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
h1 span {
  color: var(--ph-yellow);
}

.tagline {
  margin-top: 16px;
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 600;
}

.intro {
  margin: 18px auto 0;
  max-width: 540px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 3vw, 22px);
  margin: 38px 0 18px;
  flex-wrap: wrap;
}
.unit {
  min-width: 84px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.value {
  font-size: clamp(30px, 7vw, 48px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--white);
}
.label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.total-seconds {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}
.total-seconds strong {
  color: var(--ph-yellow);
  font-variant-numeric: tabular-nums;
}

.launched {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ph-yellow);
}

.meta {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.meta .sep {
  opacity: 0.5;
}

@media (max-width: 480px) {
  .card { padding: 40px 22px 30px; }
  .unit { min-width: 70px; padding: 14px 10px; }
  .meta .sep { display: none; }
}
