:root {
  --alt-primary: #003f53;
  --alt-accent: #f97316;
  --launch-on-dark: #f8fafc;
}

* { box-sizing: border-box; }

html, body.launch {
  margin: 0;
  min-height: 100%;
}

body.launch--overlay {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #1e293b;
  background: #fff;
  overflow-x: hidden;
}

.launch-preview {
  pointer-events: none;
  user-select: none;
  filter: blur(1.2px);
  transform: scale(1.008);
  transform-origin: top center;
}

.launch-preview .consent-root,
.launch-preview .consent-banner,
.launch-preview .consent-overlay,
.launch-preview #loadingOverlay,
.launch-preview .loading-overlay,
.launch-preview .loading-content,
.launch-preview .loading-text,
.launch-preview #catSidebar,
.launch-preview .home-category-panel,
.launch-preview .home-category-backdrop {
  display: none !important;
}

.launch-veil {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(2, 24, 32, 0.16);
  pointer-events: auto;
}

.launch-layer {
  position: fixed;
  inset: 0;
  z-index: 41;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 16px 20px;
  pointer-events: none;
}

.launch-panel,
.launch-legal {
  pointer-events: auto;
}

.launch-panel {
  width: min(440px, calc(100% - 24px));
  max-height: min(46vh, 420px);
  overflow: hidden;
  padding: 18px 20px 16px;
  border-radius: 16px;
  background: rgba(2, 24, 32, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 40px rgba(0, 20, 28, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #f8fafc;
  text-align: center;
}

.launch-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .02em;
  color: #d7eef4;
}

.launch-title {
  margin: 0 0 8px;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.15;
  font-weight: 700;
}

.launch-lead,
.launch-live,
.launch-when,
.launch-noscript {
  margin: 0 0 10px;
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.4;
}

.launch-count {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 8px;
}

.launch-count__unit {
  min-width: 0;
}

.launch-count__flip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 8px;
  background: rgba(2, 24, 32, 0.72);
  color: var(--launch-on-dark);
  font-variant-numeric: tabular-nums;
  font-size: clamp(22px, 4.4vw, 36px);
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: inset 0 -8px 0 rgba(255, 255, 255, .05);
}

.launch-count__flip.is-changing {
  animation: launch-tick .28s ease;
}

.launch-count__label {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d7eef4;
}

.launch-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.launch-live {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
}

.launch-when,
.launch-noscript {
  color: #d7eef4;
  font-size: 13px;
}

.launch-langs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.launch-langs__link {
  color: #e8f4f8;
  text-decoration: none;
  font-size: 13px;
}

.launch-langs__link.is-active {
  font-weight: 650;
  color: var(--alt-accent);
}

.launch-legal {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 16px;
  font-size: 13px;
}

.launch-legal a {
  color: #f8fafc;
  text-decoration: none;
}

.launch-legal__admin {
  font-size: 11px;
  opacity: .52;
  color: #d7eef4;
  padding: 4px 2px;
}

.launch-legal__admin:hover,
.launch-legal__admin:focus-visible {
  opacity: .9;
}

@keyframes launch-tick {
  0% { transform: rotateX(12deg); opacity: .72; }
  100% { transform: rotateX(0); opacity: 1; }
}

@media (max-width: 720px) {
  .launch-panel {
    max-height: 42vh;
    padding: 14px 14px 12px;
  }
  .launch-kicker { display: none; }
  .launch-lead { font-size: 14px; }
  .launch-legal {
    margin-top: 16px;
    gap: 10px 14px;
  }
  .launch-legal__admin {
    font-size: 12px;
    opacity: .7;
    padding: 8px 6px;
  }
}

@media (max-width: 390px) {
  .launch-count { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .launch-count__flip { min-height: 48px; font-size: 28px; }
  .launch-title { font-size: 22px; }
  .launch-panel { max-height: 44vh; }
}

@media (max-width: 320px) {
  .launch-layer { padding: 8px; }
  .launch-panel { width: calc(100% - 16px); padding: 12px 10px; }
  .launch-count { gap: 6px; }
  .launch-count__flip { min-height: 44px; font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .launch-count__flip.is-changing { animation: none; }
  .launch-preview { filter: none; transform: none; }
  .launch-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.78);
  }
}
