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

html,
body {
  height: 100%;
  background: #000;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #fff;
}

#stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  cursor: pointer;
}

#stage[data-state="locked"] {
  cursor: default;
}

.track {
  position: absolute;
  inset: 0;
  width: 200%;
  display: flex;
  transform: translate3d(0, 0, 0);
  transition: transform 700ms cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

#stage[data-state="two"] .track {
  transform: translate3d(-50%, 0, 0);
}

.screen {
  position: relative;
  flex: 0 0 50%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  display: block;
  transition: filter 600ms ease, transform 1200ms ease;
}

#stage[data-state="locked"] .screen--one img {
  filter: blur(28px) brightness(0.45) saturate(1.1);
  transform: scale(1.08);
}

/* ───── Lock screen ───── */
.lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  z-index: 10;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(180deg, rgba(20, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
  transition: opacity 420ms ease, transform 420ms ease;
}

#stage[data-state="one"] .lock,
#stage[data-state="two"] .lock {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
}

.lock__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  gap: clamp(0.6rem, 1.4vw, 1.2rem);
  text-align: center;
}

.lock__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Archivo Black", "Inter", sans-serif;
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  letter-spacing: 0.32em;
  color: #fff;
  background: #d40000;
  padding: 0.45rem 0.95rem 0.4rem;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(212, 0, 0, 0.45);
  animation: kicker-flash 1.6s steps(2, end) infinite;
}

.lock__live {
  position: relative;
  padding-left: 1rem;
}

.lock__live::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  animation: live-blink 1s ease-in-out infinite;
}

.siren {
  display: inline-block;
  font-size: 1.05em;
  transform-origin: center;
  animation: siren-shake 0.42s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255, 90, 90, 0.6));
}

.lock__title {
  display: flex;
  flex-direction: column;
  line-height: 0.86;
  letter-spacing: -0.015em;
  font-family: "Anton", "Archivo Black", "Inter", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  margin: clamp(0.4rem, 1vw, 0.8rem) 0;
}

.lock__title-1 {
  font-size: clamp(3rem, 11vw, 8.5rem);
  background: linear-gradient(180deg, #fff 0%, #f4f4f4 60%, #cfcfcf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 30px rgba(255, 255, 255, 0.18);
  animation: title-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.lock__title-2 {
  font-size: clamp(3.6rem, 13vw, 10rem);
  color: #ff2a2a;
  text-shadow:
    0 0 8px rgba(255, 42, 42, 0.55),
    0 0 28px rgba(255, 42, 42, 0.35),
    0 6px 0 rgba(120, 0, 0, 0.6);
  animation: title-in 0.9s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.lock__sub {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  margin-top: clamp(0.2rem, 0.8vw, 0.6rem);
}

/* ───── Animated button ───── */
.lock__btn {
  position: relative;
  margin-top: clamp(1rem, 3vw, 2rem);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  isolation: isolate;
}

.lock__btn-label {
  display: inline-block;
  position: relative;
  z-index: 2;
  padding: 1.1rem 2.6rem;
  font-family: "Archivo Black", "Inter", sans-serif;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing: 0.36em;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1), background 240ms ease, color 240ms ease, letter-spacing 240ms ease;
  animation: label-breathe 2.4s ease-in-out infinite;
}

.lock__btn-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 42, 42, 0.6);
  z-index: 1;
  animation: ring-pulse 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) infinite;
  pointer-events: none;
}

.lock__btn::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 42, 42, 0.4);
  z-index: 1;
  animation: ring-pulse 1.8s 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) infinite;
  pointer-events: none;
}

.lock__btn:hover .lock__btn-label,
.lock__btn:focus-visible .lock__btn-label {
  background: #fff;
  color: #d40000;
  letter-spacing: 0.42em;
  transform: scale(1.04);
}

.lock__btn:active .lock__btn-label {
  transform: scale(0.97);
}

/* ───── Bottom ticker ───── */
.lock__ticker {
  background: #d40000;
  color: #fff;
  font-family: "Archivo Black", "Inter", sans-serif;
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  letter-spacing: 0.18em;
  padding: 0.7rem 0;
  overflow: hidden;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  border-bottom: 2px solid rgba(0, 0, 0, 0.4);
  position: relative;
}

.lock__ticker::before,
.lock__ticker::after {
  content: "BREAKING";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(70px, 9vw, 110px);
  display: grid;
  place-items: center;
  background: #000;
  color: #ff2a2a;
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  letter-spacing: 0.22em;
  z-index: 2;
}

.lock__ticker::before { left: 0; }
.lock__ticker::after { right: 0; transform: scaleX(-1); content: "BREAKING"; }

.lock__ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
  padding-left: 100%;
}

/* ───── Hint arrow on screen 1 ───── */
.hint {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1.2rem, 4vw, 2.4rem);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Archivo Black", "Inter", sans-serif;
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  letter-spacing: 0.32em;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 420ms 480ms ease, transform 420ms 480ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

#stage[data-state="one"] .hint {
  opacity: 1;
  transform: translateX(0);
}

#stage[data-state="two"] .hint {
  opacity: 0;
}

.hint__arrow {
  display: inline-block;
  font-size: 1.6em;
  line-height: 1;
  animation: arrow-nudge 1.4s ease-in-out infinite;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

/* ───── Keyframes ───── */
@keyframes kicker-flash {
  0%, 100% { background: #d40000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(212, 0, 0, 0.45); }
  50% { background: #ff1f1f; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 32px rgba(255, 42, 42, 0.65); }
}

@keyframes live-blink {
  0%, 60%, 100% { opacity: 1; }
  70%, 90% { opacity: 0.15; }
}

@keyframes siren-shake {
  0%, 100% { transform: rotate(-12deg) scale(1); }
  50% { transform: rotate(12deg) scale(1.08); }
}

@keyframes title-in {
  0% { opacity: 0; transform: translateY(18px) scale(0.96); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes label-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  50% { box-shadow: 0 0 24px 2px rgba(255, 255, 255, 0.18); }
}

@keyframes ring-pulse {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.55); opacity: 0; }
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .track,
  .lock,
  .lock__title-1,
  .lock__title-2,
  .screen img { transition: none; }
  .siren,
  .lock__btn-label,
  .lock__btn-pulse,
  .lock__btn::after,
  .hint__arrow,
  .lock__kicker,
  .lock__live::before,
  .lock__ticker-track { animation: none; }
}
