:root {
  color-scheme: dark;
  --ink: #f3efe2;
  --muted: #c8c2ae;
  --accent: #9bb892;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #090a08;
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.bleed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  background: #000;
}

.countdown {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: calc(1.1rem + env(safe-area-inset-top)) 0.9rem 0;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.4rem);
  transition: opacity 0.55s ease, visibility 0.55s ease, transform 0.55s ease;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.85);
}

.countdown.is-on {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.countdown-label {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--muted);
}

.countdown-digits {
  margin: 0.35rem 0 0;
  font-size: clamp(1.05rem, 4.4vw, 1.85rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.countdown-units {
  margin: 0.2rem 0 0;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1.25rem calc(2vh + env(safe-area-inset-bottom));
  text-align: center;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(9, 10, 8, 0.82) 0%,
    rgba(9, 10, 8, 0.22) 36%,
    rgba(9, 10, 8, 0.08) 100%
  );
}

.mark {
  margin: 0;
  letter-spacing: 0.42em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

.studio {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

h1 {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  font-size: clamp(1.05rem, 3.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.3;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.85);
}

.date {
  margin: 0.55rem 0 0;
  font-size: clamp(1.35rem, 4.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.9);
}

.note {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

.unmute {
  pointer-events: auto;
  margin-top: 0.65rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  cursor: pointer;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.unmute:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .bleed {
    object-fit: contain;
    object-position: center;
    background: #000;
  }

  .overlay {
    padding: 0 0.85rem calc(0.55rem + env(safe-area-inset-bottom));
    background: linear-gradient(
      to top,
      rgba(9, 10, 8, 0.92) 0%,
      rgba(9, 10, 8, 0.42) 28%,
      rgba(9, 10, 8, 0.08) 100%
    );
  }

  .mark {
    font-size: 0.6rem;
    letter-spacing: 0.32em;
  }

  .studio {
    font-size: 0.72rem;
    margin-top: 0.2rem;
  }

  h1 {
    margin-top: 0.4rem;
    font-size: 0.92rem;
    line-height: 1.25;
  }

  .date {
    margin-top: 0.28rem;
    font-size: 1.2rem;
  }

  .note {
    display: none;
  }

  .unmute {
    margin-top: 0.35rem;
    font-size: 0.62rem;
  }

  .countdown {
    padding: calc(0.45rem + env(safe-area-inset-top)) 0.7rem 0;
  }

  .countdown-digits {
    margin-top: 0.18rem;
    font-size: 0.98rem;
    letter-spacing: 0.05em;
  }

  .countdown-units {
    display: none;
  }
}

@media (max-height: 700px) {
  .note {
    display: none;
  }

  .studio {
    display: none;
  }

  .countdown-units {
    display: none;
  }
}

@media (max-height: 640px) {
  .overlay {
    padding-bottom: calc(0.35rem + env(safe-area-inset-bottom));
  }

  h1 {
    font-size: 0.84rem;
    margin-top: 0.28rem;
  }

  .date {
    font-size: 1.05rem;
  }

  .countdown-digits {
    font-size: 0.88rem;
  }
}

@media (max-width: 640px) and (orientation: landscape) {
  .bleed {
    object-fit: cover;
  }
}
