/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4 */

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

:root {
  --red: #cc0000;
  --red-bright: #e60000;
  --dark: #192126;
  --text: rgba(0, 0, 0, 0.72);
  --text-muted: rgba(0, 0, 0, 0.55);
  --paper: #ffffff;
  --light-gray: #f4f5f6;
  --border: #e2e4e6;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.72);

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --max-width: 1024px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 2px;
}

html,
body {
  width: 100dvw;
  height: 100dvh;
  max-width: 100dvw;
  max-height: 100dvh;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--on-dark);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.atmosphere {
  position: fixed;
  inset: 0;
  width: 100dvw;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 12% 0%, rgba(204, 0, 0, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 45% at 88% 100%, rgba(244, 245, 246, 0.08), transparent 50%),
    linear-gradient(165deg, #141a1e 0%, var(--dark) 45%, #1c262c 100%);
}

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(var(--max-width), 100dvw);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto;
  padding: clamp(1rem, 3dvh, 1.5rem) clamp(1.25rem, 4dvw, 2rem);
  overflow: hidden;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.5rem;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: min(180px, 40dvw);
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--on-dark);
}

.brand-name[hidden],
.brand-logo[hidden] {
  display: none;
}

.lobby {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1rem, 3.5dvh, 2.5rem);
  padding: clamp(0.5rem, 2dvh, 2rem) 0;
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  animation: lobby-enter 0.7s var(--ease-out) both;
}

.headline {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.25rem, 3.5dvw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  max-width: min(36ch, 100%);
  overflow-wrap: anywhere;
  min-width: 0;
}

.countdown {
  display: block;
  width: 100%;
  max-width: min(36rem, 100%);
  min-width: 0;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.countdown-value {
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 16dvw, 8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--red-bright);
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--on-dark-muted);
}

.redirect-status {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--red-bright);
}

.redirect-status[hidden] {
  display: none;
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  max-width: min(28rem, 100%);
  min-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  color: var(--on-dark);
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.5rem;
  max-width: 100%;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.btn:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
}

.btn:focus-visible {
  outline: 2px solid var(--on-dark);
  outline-offset: 3px;
}

.destination {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  width: 100%;
}

.destination-label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--on-dark-muted);
}

.destination-url {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
  word-break: break-all;
  max-width: 100%;
}

.destination-url:hover {
  color: var(--red-bright);
}

.destination-url:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 2px;
}

.footer {
  font-size: 0.75rem;
  color: var(--on-dark-muted);
  padding-top: clamp(0.5rem, 1.5dvh, 1rem);
  flex-shrink: 0;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@keyframes lobby-enter {
  from {
    opacity: 0;
    transform: translateY(0.75dvh);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lobby {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
