:root {
  --maroon-950: #3a0909;
  --maroon-900: #4a0d0d;
  --maroon-800: #5f1212;
  --maroon-700: #7b1e1e;
  --maroon-600: #972525;
  --gold-600: #e0a800;
  --gold-500: #f5c518;
  --gold-400: #ffd23f;
  --gold-300: #ffe082;
  --cream: #fff8e7;
  --green: #2e7d32;
  --radius: 28px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.65);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--cream);
  background-color: var(--maroon-900);
  background-image:
    radial-gradient(1100px 600px at 50% -10%, rgba(245, 197, 24, 0.18), transparent 60%),
    radial-gradient(850px 550px at 110% 110%, rgba(46, 125, 50, 0.16), transparent 55%),
    radial-gradient(760px 500px at -10% 100%, rgba(151, 37, 37, 0.5), transparent 60%),
    linear-gradient(160deg, var(--maroon-900) 0%, var(--maroon-800) 45%, var(--maroon-950) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.bg-glow,
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  background: radial-gradient(420px 420px at 50% 42%, rgba(245, 197, 24, 0.1), transparent 70%);
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  opacity: 0.5;
}

.maintenance {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 660px;
}

.card {
  position: relative;
  padding: clamp(28px, 5vw, 52px) clamp(20px, 5vw, 48px) clamp(22px, 4vw, 34px);
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.18));
  border: 1px solid rgba(245, 197, 24, 0.26);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: card-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.card__accent {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(220px, 55%);
  height: 4px;
  transform: translateX(-50%);
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  box-shadow: 0 0 18px rgba(245, 197, 24, 0.7);
}

.logo-frame {
  width: clamp(112px, 26vw, 140px);
  height: clamp(112px, 26vw, 140px);
  margin: 0 auto clamp(18px, 3vw, 26px);
  padding: clamp(10px, 2vw, 14px);
  display: grid;
  place-items: center;
  background: #ffffff;
  border-radius: 30% 30% 32% 32% / 30% 30% 34% 34%;
  box-shadow:
    0 0 0 5px rgba(245, 197, 24, 0.22),
    0 18px 40px -12px rgba(0, 0, 0, 0.7);
  animation: logo-float 6s ease-in-out infinite;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-400);
}

h1 {
  margin: 0 auto 14px;
  max-width: 22ch;
  font-size: clamp(1.55rem, 4.6vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--cream);
  text-wrap: balance;
}

.lead {
  margin: 0 auto clamp(22px, 3.5vw, 28px);
  max-width: 46ch;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 248, 231, 0.78);
  text-wrap: pretty;
}

.period {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  margin: 0 auto clamp(18px, 3vw, 24px);
  padding: 10px 20px;
  border: 1px solid rgba(245, 197, 24, 0.4);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.period__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 248, 231, 0.6);
}

.period__value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-400);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.6);
}

.status__text {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-300);
}

body[data-mode="during"] .status__dot {
  background: var(--green);
  animation: pulse 1.8s ease-out infinite;
}

body[data-mode="during"] .status__text {
  color: #9be49f;
}

body[data-mode="after"] .status__dot {
  background: #9be49f;
}

body[data-mode="after"] .status__text {
  color: #9be49f;
}

.countdown__label {
  margin: 0 0 12px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 248, 231, 0.55);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.6vw, 14px);
  margin-bottom: clamp(18px, 3vw, 24px);
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: clamp(12px, 2.6vw, 18px) 6px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.18));
  border: 1px solid rgba(245, 197, 24, 0.18);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.unit__value {
  font-size: clamp(1.5rem, 6.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--gold-400);
  text-shadow: 0 0 22px rgba(245, 197, 24, 0.35);
}

.unit__label {
  font-size: clamp(0.58rem, 1.7vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 248, 231, 0.62);
}

body[data-mode="after"] .countdown {
  opacity: 0.45;
}

.note {
  margin: 0 auto;
  max-width: 44ch;
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(255, 248, 231, 0.6);
}

.note strong {
  color: var(--gold-300);
}

.card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin-top: clamp(24px, 4vw, 34px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: rgba(255, 248, 231, 0.45);
}

.card__footer .dot {
  color: rgba(245, 197, 24, 0.6);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(46, 125, 50, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
  }
}

@media (max-width: 420px) {
  body {
    padding: 12px;
  }

  .card {
    border-radius: 22px;
  }

  .period {
    padding: 9px 14px;
  }

  .unit {
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
