:root {
  color-scheme: only dark;
  --bg: #060607;
  --fg: #f3f2ee;
  --muted: rgba(243, 242, 238, 0.46);
  --dim: rgba(243, 242, 238, 0.24);
  --line: rgba(243, 242, 238, 0.14);
  --surface: rgba(243, 242, 238, 0.06);
  --font-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Inter", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  background: var(--bg);
  color: var(--fg);
  height: 100%;
  height: -webkit-fill-available;
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  height: 100vh;
  height: -webkit-fill-available;
  height: 100svh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  position: fixed;
  inset: 0;
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: -webkit-fill-available;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: radial-gradient(rgba(255, 255, 255, 0.9) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 78% 72% at 50% 50%,
    transparent 35%,
    rgba(6, 6, 7, 0.52) 80%,
    rgba(6, 6, 7, 0.92) 100%
  );
}

.hud {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: max(18px, calc(env(safe-area-inset-top, 0px) + 14px));
  padding-bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 14px));
  padding-left: max(20px, calc(env(safe-area-inset-left, 0px) + 16px));
  padding-right: max(20px, calc(env(safe-area-inset-right, 0px) + 16px));
  pointer-events: none;
}

@media (min-width: 768px) {
  .hud {
    padding: 32px 36px;
  }
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: baseline;
  pointer-events: auto;
}

.wordmark {
  margin: 0;
  font-size: clamp(19px, 2.2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
}

.dot {
  display: inline-block;
  margin-left: 1px;
  opacity: 0.9;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  line-height: 1;
}

.pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg);
  opacity: 0.72;
}

@media (prefers-reduced-motion: no-preference) {
  .pulse {
    animation: kloma-breathe 3.6s ease-in-out infinite;
  }
}

@keyframes kloma-breathe {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.88);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

button,
a {
  touch-action: manipulation;
  font: inherit;
  color: inherit;
}

button {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.email-btn:focus-visible,
.ig-link:focus-visible,
.enter-gate:focus-visible {
  outline: 1.5px solid var(--fg);
  outline-offset: 3px;
}

.center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vh, 18px);
  pointer-events: none;
  text-align: center;
  padding-inline: 8px;
}

.center::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 660px);
  height: clamp(180px, 28vh, 270px);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse 62% 58% at 50% 50%,
    rgba(6, 6, 7, 0.82) 0%,
    rgba(6, 6, 7, 0.48) 54%,
    rgba(6, 6, 7, 0) 100%
  );
  pointer-events: none;
  z-index: -1;
}

.reticle {
  display: grid;
  place-items: center;
  pointer-events: none;
}

.cross {
  position: relative;
  width: 12px;
  height: 12px;
  opacity: 0.42;
}

.cross::before,
.cross::after {
  content: "";
  position: absolute;
  background: var(--fg);
}

.cross::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-0.5px);
}

.cross::after {
  top: 50%;
  left: 0;
  height: 1px;
  width: 100%;
  transform: translateY(-0.5px);
}

.countdown {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(8px, 2.2vw, 22px);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  text-shadow: 0 2px 24px rgba(6, 6, 7, 0.92), 0 1px 6px rgba(6, 6, 7, 0.85);
  max-width: 100%;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-inline-size: 2ch;
}

.val {
  font-size: clamp(32px, 8.8vw, 76px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.lbl {
  font-size: clamp(9px, 1.9vw, 10px);
  letter-spacing: 0.22em;
  color: rgba(243, 242, 238, 0.72);
  line-height: 1;
}

.sep {
  font-size: clamp(24px, 6.8vw, 60px);
  font-weight: 300;
  line-height: 0.95;
  color: rgba(243, 242, 238, 0.46);
  transform: translateY(-0.04em);
}

.date-stamp {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: rgba(243, 242, 238, 0.72);
  text-shadow: 0 2px 18px rgba(6, 6, 7, 0.92);
}

.bar-bottom {
  align-items: flex-end;
}

.meta-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: auto;
}

.soon {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--fg);
  opacity: 0.88;
}

.coords {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.meta-right {
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
}

.copy {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.email-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px 2px;
  min-block-size: 32px;
  min-inline-size: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 120ms var(--ease-out),
    transform 100ms var(--ease-out);
}

.email-btn:active {
  transform: scale(0.97);
  color: var(--fg);
}

.email-btn[data-copied] {
  color: var(--fg);
}

.tip {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  padding: 4px 7px;
  border: 1px solid rgba(243, 242, 238, 0.2);
  background: rgba(6, 6, 7, 0.92);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 140ms var(--ease-out),
    transform 140ms var(--ease-out);
}

.email-btn[data-copied] + .tip,
.email-btn[data-failed] + .tip {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .tip {
    transform: none;
    transition: opacity 140ms ease;
  }
  .email-btn[data-copied] + .tip,
  .email-btn[data-failed] + .tip {
    transform: none;
  }
}

.ig-link {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 6px 2px;
  min-block-size: 32px;
  display: inline-flex;
  align-items: center;
  transition:
    color 120ms var(--ease-out),
    transform 100ms var(--ease-out);
}

.ig-link:active {
  transform: scale(0.97);
  color: var(--fg);
}

/* Full-screen stealth entry gate: shown only when browser blocks audio autoplay */
.enter-gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(6, 6, 7, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 1;
  transition: opacity 420ms var(--ease-out);
}

.enter-gate[data-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.enter-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid rgba(243, 242, 238, 0.22);
  border-radius: 999px;
  background: rgba(6, 6, 7, 0.72);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  line-height: 1;
  transition:
    transform 120ms var(--ease-out),
    border-color 140ms var(--ease-out),
    background-color 140ms var(--ease-out);
}

.enter-gate:active .enter-pill {
  transform: scale(0.96);
  border-color: rgba(243, 242, 238, 0.45);
}

.enter-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg);
}

@media (prefers-reduced-motion: no-preference) {
  .enter-dot {
    animation: kloma-breathe 2.4s ease-in-out infinite;
  }
}

@media (hover: hover) and (pointer: fine) {
  .email-btn:hover,
  .ig-link:hover {
    color: var(--fg);
  }
  .enter-gate:hover .enter-pill {
    border-color: rgba(243, 242, 238, 0.42);
    background: rgba(243, 242, 238, 0.08);
  }
}

@media (max-width: 480px) {
  .hud {
    padding-top: max(16px, calc(env(safe-area-inset-top, 0px) + 12px));
    padding-bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px));
    padding-left: max(16px, calc(env(safe-area-inset-left, 0px) + 14px));
    padding-right: max(16px, calc(env(safe-area-inset-right, 0px) + 14px));
  }
  .meta-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }
  .email-btn,
  .ig-link {
    font-size: 11px;
    padding: 4px 0;
    min-block-size: 28px;
  }
  .coords {
    font-size: 9px;
  }
}

@media (max-height: 540px) {
  .center {
    gap: 8px;
  }
  .reticle {
    display: none;
  }
  .val {
    font-size: clamp(26px, 7vw, 48px);
  }
}
