:root {
  --midnight: #07111d;
  --iron: #101d28;
  --coal: #03070c;
  --bone: #f2ead8;
  --mist: #aab6c2;
  --relic: #d8b86a;
  --relic-bright: #ffe29a;
  --ember: #f28a2c;
  --blood: #d32b3f;
  --void: #8a42d9;
  --line: rgba(216, 184, 106, 0.34);
  --glass: rgba(5, 12, 20, 0.74);
  --display: "Playfair Display", Georgia, serif;
  --body: "Outfit", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; min-width: 320px; height: 100%; margin: 0; overflow: hidden; background: var(--coal); color: var(--bone); }
body { font-family: var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, a { font: inherit; }

.arena { position: relative; isolation: isolate; width: 100vw; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--midnight); cursor: crosshair; user-select: none; -webkit-tap-highlight-color: transparent; }
.scene, .champion-plane, .champion-plane img { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene, .champion-plane img { object-fit: cover; object-position: 60% center; }
.scene { z-index: -8; filter: saturate(.84) contrast(1.07) brightness(.84); }
.champion-plane { z-index: -3; will-change: transform; pointer-events: none; filter: drop-shadow(0 24px 28px rgba(0, 0, 0, .52)); }
.champion-plane img { pointer-events: none; }
.mobile-logo { display: none; }

.hud { position: absolute; z-index: 20; top: max(20px, env(safe-area-inset-top)); right: clamp(20px, 4.5vw, 76px); left: clamp(20px, 4.5vw, 76px); display: flex; align-items: flex-start; justify-content: flex-end; }
.status-stack { display: grid; justify-items: end; gap: 7px; padding-top: 2px; font-size: clamp(.55rem, .8vw, .7rem); font-weight: 700; letter-spacing: .15em; }
.status-pill { display: flex; align-items: center; gap: 8px; padding: 5px 0; color: var(--bone); }
.status-pill i { width: 7px; height: 7px; background: var(--ember); box-shadow: 0 0 12px var(--ember); animation: signal 1.6s ease-out infinite; }
.attempts { color: rgba(242, 234, 216, .55); }

.promo { position: absolute; z-index: 20; top: 38%; left: clamp(24px, 4.5vw, 76px); width: min(420px, 34vw); pointer-events: none; text-shadow: 0 3px 18px rgba(0, 0, 0, .9); }
.promo::before { position: absolute; top: -25px; bottom: -28px; left: -24px; z-index: -1; width: calc(100% + 52px); background: linear-gradient(90deg, rgba(3, 7, 12, .62), rgba(3, 7, 12, .2) 72%, transparent); content: ""; filter: blur(12px); }
.promo__eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; color: var(--relic-bright); font-size: clamp(.58rem, .72vw, .72rem); font-weight: 800; letter-spacing: .2em; }
.promo__eyebrow i { width: 22px; height: 2px; background: var(--relic); box-shadow: 0 0 10px rgba(216, 184, 106, .7); }
.promo h1 { margin: 0; color: var(--bone); font-family: var(--body); font-size: clamp(1.75rem, 3.25vw, 3.6rem); font-weight: 800; letter-spacing: -.045em; line-height: .91; }
.promo h1 span { display: block; margin-top: 7px; color: var(--relic); font-size: .55em; letter-spacing: .12em; }
.promo__value { margin: 15px 0 0; color: rgba(242, 234, 216, .72); font-size: clamp(.76rem, 1vw, .98rem); font-weight: 500; letter-spacing: .025em; line-height: 1.5; }
.promo__value strong { color: var(--bone); font-weight: 700; }

.feedback { position: absolute; z-index: 30; top: 48%; left: 50%; min-width: 260px; padding: 10px 16px; color: #ff5364; font-size: clamp(1rem, 2.1vw, 1.65rem); font-weight: 800; letter-spacing: .12em; text-align: center; text-shadow: 0 2px 8px #000, 0 0 22px rgba(211, 43, 63, .9); opacity: 0; transform: translate(-50%, -50%) scale(.86); pointer-events: none; }
.feedback.is-visible { animation: feedback 1.3s ease both; }
.feedback.is-success.is-visible { animation: success-feedback 5s ease both; }
.feedback.is-success { display: grid; width: min(340px, calc(100vw - 36px)); gap: 7px; padding: 18px 20px 22px; overflow: hidden; background: rgba(5, 12, 20, .9); box-shadow: 0 16px 45px rgba(0, 0, 0, .48), 0 0 24px rgba(216, 184, 106, .16); }
.feedback.is-success strong { color: var(--relic-bright); font-size: clamp(.92rem, 2vw, 1.2rem); letter-spacing: .11em; }
.feedback.is-success small { color: var(--mist); font-size: .72rem; font-weight: 600; letter-spacing: .05em; }
.feedback.is-success small b { color: var(--bone); font-size: .82rem; }
.feedback__progress { position: absolute; right: 0; bottom: 0; left: 0; height: 5px; background: linear-gradient(90deg, var(--relic), var(--relic-bright)); transform-origin: left; animation: success-progress 5s linear forwards; }

.action-deck { position: absolute; z-index: 25; right: 0; bottom: max(25px, env(safe-area-inset-bottom)); left: 0; width: min(390px, calc(100vw - 40px)); margin-inline: auto; }
.lock-button { position: relative; display: flex; width: 100%; min-height: 72px; align-items: center; justify-content: center; overflow: hidden; border: 0; border-radius: 2px; outline: none; background: var(--relic); box-shadow: 0 13px 36px rgba(0, 0, 0, .42), 0 0 0 0 rgba(216, 184, 106, .5); color: var(--midnight); cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; animation: cta-pulse 1.65s ease-out infinite; }
.lock-button::after { position: absolute; top: 0; bottom: 0; left: -35%; width: 23%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .68), transparent); content: ""; transform: skewX(-20deg); animation: beam 2.4s ease-in-out infinite; }
.lock-button:hover { background: var(--relic-bright); box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 34px rgba(216, 184, 106, .55); transform: translateY(-3px); }
.lock-button:active { transform: translateY(1px) scale(.986); }
.lock-button:focus-visible { outline: 3px solid var(--bone); outline-offset: 4px; }
.lock-button__copy { display: grid; gap: 2px; padding: 0 44px; text-align: center; }
.lock-button__copy small { font-size: .6rem; font-weight: 700; letter-spacing: .17em; opacity: .7; }
.lock-button__copy strong { font-size: clamp(.73rem, 1vw, .9rem); font-weight: 800; letter-spacing: .08em; }
.lock-button__arrow { position: absolute; right: 20px; margin: 0; padding: 0; font-size: 1.45rem; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 13px; margin: 8px 0 0; color: rgba(242, 234, 216, .76); font-size: .63rem; font-weight: 600; letter-spacing: .035em; text-shadow: 0 2px 7px #000; }
.trust span::first-letter { color: var(--relic); }
.disclosure { margin: 5px 0 0; color: rgba(242, 234, 216, .4); font-size: .55rem; text-align: center; }
.atmosphere { position: absolute; inset: 0; pointer-events: none; }
.atmosphere--vignette { z-index: -1; background: radial-gradient(ellipse at 60% 45%, transparent 18%, rgba(3, 7, 12, .12) 50%, rgba(3, 7, 12, .78) 100%), linear-gradient(90deg, rgba(3, 7, 12, .68), transparent 38%, transparent 70%, rgba(3, 7, 12, .28)); }
.atmosphere--grain { z-index: 10; opacity: .1; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.atmosphere--scan { z-index: 11; top: -18%; height: 16%; background: linear-gradient(180deg, transparent, rgba(216, 184, 106, .07), transparent); animation: scan 6.5s linear infinite; }
.entrance { opacity: 0; transform: translateY(12px); }

.arena.is-miss { animation: miss-shake .42s ease; }

@keyframes signal { 0% { box-shadow: 0 0 0 0 rgba(242, 138, 44, .72); } 100% { box-shadow: 0 0 0 10px rgba(242, 138, 44, 0); } }
@keyframes scan { to { transform: translateY(760%); } }
@keyframes beam { 0%, 38% { left: -35%; } 72%, 100% { left: 118%; } }
@keyframes cta-pulse { 0%, 100% { box-shadow: 0 13px 36px rgba(0, 0, 0, .42), 0 0 0 0 rgba(216, 184, 106, .45); } 55% { box-shadow: 0 13px 36px rgba(0, 0, 0, .42), 0 0 0 13px rgba(216, 184, 106, 0); } }
@keyframes feedback { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.86); } 18%, 72% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.04); } }
@keyframes success-feedback { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.82); } 12%, 88% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: .75; transform: translate(-50%, -50%) scale(1.03); } }
@keyframes success-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes miss-shake { 0%, 100% { transform: translateX(0); filter: none; } 18% { transform: translateX(-8px); filter: saturate(1.35); } 36% { transform: translateX(7px); } 54% { transform: translateX(-5px); } 72% { transform: translateX(3px); } }

@media (max-width: 720px) {
  .arena { min-height: 520px; }
  .mobile-logo { position: absolute; z-index: 24; top: max(8px, env(safe-area-inset-top)); left: 10px; display: block; width: 190px; height: 88px; overflow: hidden; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse at 42% 44%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse at 42% 44%, #000 58%, transparent 100%); }
  .mobile-logo img { position: absolute; top: 0; left: 0; width: 760px; max-width: none; height: auto; }
  .hud { top: max(14px, env(safe-area-inset-top)); right: 16px; left: 16px; }
  .status-stack { padding-top: 1px; }
  .status-pill { max-width: 112px; padding: 6px 7px; font-size: .47rem; line-height: 1.35; }
  .attempts { font-size: .48rem; }
  .promo { top: 27%; left: 18px; width: min(300px, calc(100vw - 36px)); }
  .promo::before { top: -16px; bottom: -18px; left: -14px; width: calc(100% + 28px); }
  .promo__eyebrow { margin-bottom: 7px; font-size: .52rem; }
  .promo h1 { font-size: clamp(1.55rem, 8.2vw, 2.35rem); }
  .promo h1 span { margin-top: 5px; }
  .promo__value { margin-top: 10px; font-size: clamp(.67rem, 3vw, .8rem); }
  .feedback { top: 47%; }
  .action-deck { right: 20px; bottom: max(16px, env(safe-area-inset-bottom)); left: 20px; width: auto; margin-inline: 0; }
  .lock-button { min-height: 66px; }
  .lock-button__copy { padding: 0 38px; }
  .lock-button__copy small { font-size: .5rem; }
  .lock-button__copy strong { font-size: .68rem; }
  .lock-button__arrow { padding-right: 13px; }
  .trust { gap: 4px 8px; font-size: .54rem; }
  .atmosphere--vignette { background: linear-gradient(0deg, rgba(3, 7, 12, .86), transparent 42%), linear-gradient(90deg, rgba(3, 7, 12, .38), transparent 55%); }
}

@media (max-height: 690px) {
  .lock-button { min-height: 60px; }
  .trust { margin-top: 5px; }
  .disclosure { margin-top: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
