@font-face {
  font-family: 'Libre Baskerville';
  src: url('fonts/libre-baskerville-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Archivo Expanded';
  src: url('fonts/archivo-expanded-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --text: #fff;
  --muted: #8a8a8a;
  --accent: #ff2d4b;
  --font-brand: 'Libre Baskerville', 'Times New Roman', serif;
  --font-bold: 'Archivo Expanded', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-bold);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.page {
  min-height: 100svh;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 max(32px, env(safe-area-inset-bottom));
}

.brand {
  margin: 0;
  padding: 56px 16px 18px;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(40px, 12.5vw, 72px);
  line-height: 1;
  text-align: center;
}

.photo {
  position: relative;
  width: 100%;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 56svh;
  object-fit: cover;
  object-position: 50% 25%;
}
.photo::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(0,0,0,0), var(--bg));
  pointer-events: none;
}

.instructions {
  position: relative;
  margin: -64px 0 0;
  padding: 0 20px;
  text-align: center;
  font-weight: 800;
  font-size: clamp(18px, 6.1vw, 30px);
  line-height: 1.2;
  text-transform: uppercase;
}
.instructions .line { display: block; white-space: nowrap; }
.accent { color: var(--accent); }
.highlight { box-shadow: inset 0 -0.32em 0 var(--accent); }

.dots {
  display: inline-flex;
  gap: 0.18em;
  align-items: center;
  vertical-align: middle;
  padding: 0.28em 0.45em;
  margin-left: 0.15em;
  background: var(--text);
  border-radius: 999px;
  animation: pulse 1.6s ease-in-out infinite;
}
.dots i {
  width: 0.26em;
  height: 0.26em;
  border-radius: 50%;
  background: var(--bg);
}

.corner-arrow {
  position: fixed;
  top: 6px;
  right: 8px;
  width: 52px;
  height: 52px;
  color: var(--accent);
  z-index: 10;
  animation: nudge 1.2s ease-in-out infinite;
}

.confirm-button.android-open { display: none; }
.is-android .confirm-button.android-open {
  display: block;
  margin-top: 24px;
  background: var(--accent);
  color: var(--text);
}

.page > noscript { margin-top: auto; }

.fallback {
  display: block;
  padding-top: 40px;
  font-size: 13px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--muted);
  text-decoration: underline;
}

.page--vip { justify-content: center; }
.page--vip .brand { padding-top: 28px; }

.eyebrow {
  position: relative;
  margin: -48px 0 18px;
  font-family: var(--font-brand);
  font-size: 22px;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
}
.eyebrow--plain { margin: 8px 0 32px; font-size: 16px; }

.confirm-button {
  display: block;
  width: calc(100% - 40px);
  max-width: 440px;
  padding: 20px 24px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
  transition: transform 0.15s ease;
}
.confirm-button:active { transform: scale(0.97); }
.confirm-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.brand        { animation: rise 0.7s var(--ease) both; }
.photo        { animation: fade 0.9s var(--ease) both; }
.instructions,
.eyebrow      { animation: rise 0.7s 0.2s var(--ease) both; }
.confirm-button,
.android-open { animation: rise 0.7s 0.35s var(--ease) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 45, 75, 0.7); }
  50%      { box-shadow: 0 0 0 0.3em rgba(255, 45, 75, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
