:root {
  --bg: #030201;
  --gold: #f0bf55;
  --gold-soft: #ffe7a0;
  --gold-dark: #8a520d;
  --gold-gradient: linear-gradient(180deg, #fff4b8 0%, #f8c95a 28%, #b86a12 72%, #ffe493 100%);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #000;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.legend-machine {
  position: relative;
  width: min(100vw, 430px);
  height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
  color: #fff8df;
  isolation: isolate;
  touch-action: none;
}

.intro-poster {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #000;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.intro-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.intro-poster.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-28px) scale(0.99);
}

.password-gate {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 26px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 200, 72, 0.23), transparent 17rem),
    rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(10px);
}

.password-gate.hide {
  display: none;
}

.password-panel {
  width: min(354px, 100%);
  padding: 30px 22px 24px;
  border: 1px solid rgba(248, 211, 133, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(22, 13, 2, 0.94), rgba(3, 2, 1, 0.97)),
    rgba(0, 0, 0, 0.92);
  color: #fff6d7;
  text-align: center;
  box-shadow:
    0 0 48px rgba(255, 185, 45, 0.3),
    inset 0 0 44px rgba(255, 185, 45, 0.1);
}

.password-panel h2 {
  margin: 12px 0 12px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(42px, 12vw, 58px);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 5px 0 rgba(79, 42, 0, 0.82)) drop-shadow(0 0 22px rgba(255, 188, 45, 0.58));
}

.password-panel p {
  margin: 0 auto 18px;
  max-width: 280px;
  color: #f1d9a6;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 850;
}

.password-panel input {
  width: 100%;
  min-height: 48px;
  margin-bottom: 12px;
  border: 1px solid rgba(248, 211, 133, 0.38);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.46);
  color: #fff6d7;
  padding: 0 18px;
  text-align: center;
  font-size: 16px;
  font-weight: 850;
  outline: none;
}

.password-panel input:focus {
  border-color: rgba(255, 228, 147, 0.86);
  box-shadow: 0 0 0 3px rgba(255, 200, 72, 0.14);
}

.legend-bg,
.poster-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.legend-bg {
  object-fit: cover;
  object-position: center;
  opacity: 0.98;
}

.poster-shade {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 47%, rgba(255, 188, 44, 0.16), transparent 15rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.03) 38%, rgba(0, 0, 0, 0.3) 74%, rgba(0, 0, 0, 0.72));
}

.poster-mark,
.poster-copy,
.poster-footer {
  position: relative;
  z-index: 2;
}

.poster-mark {
  display: grid;
  justify-items: center;
  padding: max(20px, env(safe-area-inset-top)) 24px 0;
  text-align: center;
}

.crown-mark {
  color: var(--gold-soft);
  font-size: 32px;
  line-height: 0.9;
  text-shadow: 0 0 22px rgba(255, 205, 91, 0.82);
}

.project-lockup {
  display: grid;
  grid-template-columns: 58px auto 58px;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: #f4c869;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 3px;
}

.project-lockup span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.brand {
  margin-top: 2px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(34px, 11vw, 52px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: 3px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(75, 39, 0, 0.88)) drop-shadow(0 0 20px rgba(255, 184, 38, 0.54));
}

.poster-copy {
  min-height: calc(100svh - 248px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 18px 8px;
  text-align: center;
}

.poster-copy.spin-out {
  animation: spinOut 150ms ease-in forwards;
}

.poster-copy.spin-in {
  animation: spinIn 230ms cubic-bezier(0.18, 0.84, 0.22, 1);
}

h1 {
  margin: 0;
  max-width: 410px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(68px, 20vw, 106px);
  line-height: 0.82;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 0 rgba(79, 42, 0, 0.82)) drop-shadow(0 0 28px rgba(255, 188, 45, 0.7));
}

.divider {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) auto minmax(70px, 1fr);
  align-items: center;
  gap: 12px;
  width: min(360px, 88vw);
  margin: 30px 0 14px;
  color: var(--gold-soft);
  text-shadow: 0 0 16px rgba(255, 198, 75, 0.76);
}

.divider span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider i {
  font-style: normal;
  font-size: 18px;
}

.followup {
  width: min(380px, 90vw);
  margin: 0;
  padding: 11px 0 9px;
  border-top: 1px solid rgba(240, 191, 85, 0.5);
  border-bottom: 1px solid rgba(240, 191, 85, 0.5);
  color: #f9d989;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(24px, 7vw, 38px);
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-shadow: 0 0 16px rgba(255, 188, 53, 0.62);
}

.poster-footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0 20px max(18px, env(safe-area-inset-bottom));
  color: #f8d889;
  text-align: center;
  text-shadow: 0 0 18px rgba(255, 188, 53, 0.68);
}

.applause {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(246, 204, 119, 0.46);
  background: rgba(0, 0, 0, 0.48);
  color: var(--gold-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 1.5px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 22px rgba(255, 188, 53, 0.18);
}

.applause.playing {
  background: linear-gradient(180deg, #ffe493, #d89b32);
  color: #130b02;
}

.chevrons {
  display: grid;
  gap: 0;
  margin-top: 2px;
}

.chevrons span {
  width: 28px;
  height: 28px;
  border-left: 6px solid currentColor;
  border-top: 6px solid currentColor;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 10px rgba(255, 190, 45, 0.8));
}

.chevrons span + span {
  margin-top: -17px;
}

.poster-footer p {
  margin: 0;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 1.8px;
}

.paygate {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 26px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 200, 72, 0.23), transparent 17rem),
    rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 220ms ease, transform 220ms ease;
  backdrop-filter: blur(9px);
}

.paygate.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.paygate-panel {
  width: min(354px, 100%);
  padding: 30px 22px 24px;
  border: 1px solid rgba(248, 211, 133, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(22, 13, 2, 0.94), rgba(3, 2, 1, 0.97)),
    rgba(0, 0, 0, 0.92);
  color: #fff6d7;
  text-align: center;
  box-shadow:
    0 0 48px rgba(255, 185, 45, 0.3),
    inset 0 0 44px rgba(255, 185, 45, 0.1);
}

.paygate-kicker {
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 2.8px;
}

.paygate h2 {
  margin: 12px 0 12px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(46px, 13vw, 66px);
  line-height: 0.86;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 5px 0 rgba(79, 42, 0, 0.82)) drop-shadow(0 0 22px rgba(255, 188, 45, 0.58));
}

.paygate p {
  margin: 0 auto 20px;
  max-width: 294px;
  color: #f1d9a6;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 850;
}

.price {
  margin-bottom: 18px;
  color: #fff1b8;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 46px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 190, 45, 0.64);
}

.price span {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 2px;
}

.subscribe {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe493, #d89b32);
  color: #170d02;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 1.5px;
  box-shadow: 0 0 24px rgba(255, 190, 45, 0.4);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 8;
  transform: translate(-50%, 18px);
  width: min(350px, calc(100vw - 40px));
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(233, 185, 103, 0.28);
  background: rgba(12, 9, 5, 0.96);
  color: #fff8df;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.48);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes spinOut {
  to {
    opacity: 0;
    transform: translateY(-30px) scale(0.98);
  }
}

@keyframes spinIn {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.98);
  }
}

@media (max-width: 370px) {
  .poster-mark {
    padding-top: max(14px, env(safe-area-inset-top));
  }

  .project-lockup {
    grid-template-columns: 44px auto 44px;
  }

  h1 {
    font-size: clamp(56px, 18vw, 76px);
  }

  .followup {
    font-size: 23px;
  }
}
