/* The waiting list page. Same night, neon and gold as the game. */
:root { --night: #06050b; --purple: #9945ff; --green: #14f195; --red: #ff2e4d; --gold: #e3b341; --text: #eef1f5; --dim: rgba(238, 241, 245, .66); --display: "Sora", "DM Sans", system-ui, sans-serif; --tilt: 33deg; }
* { box-sizing: border-box; }
html { background: var(--night); } /* not on body: it would paint over the picture behind */
html, body { margin: 0; color: var(--text); font: 16px/1.5 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

.bg { position: fixed; inset: -4%; z-index: -1; background: var(--night) url(/title.jpg) center / cover no-repeat; filter: blur(2px) saturate(1.1); animation: pan 50s ease-in-out infinite alternate; }
.bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 5, 11, .72), rgba(6, 5, 11, .68) 40%, rgba(6, 5, 11, .95) 92%); }
@keyframes pan { from { transform: scale(1.02) translate(-1%, -1%); } to { transform: scale(1.08) translate(1.5%, 1%); } }

main { width: min(1120px, 100%); margin: 0 auto; padding: 0 20px; }
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 430px); gap: 56px; justify-content: center; align-items: center; padding: 28px 0 36px; }
.pitch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.eyebrow { margin: 0; font: 800 12px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--green); display: flex; align-items: center; gap: 10px; }
.eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 8px var(--purple); }
h1 { margin: 0 0 0 -3.5%; }
h1 img { width: 100%; background: radial-gradient(ellipse 50% 50% at 50% 54%, rgba(5, 4, 10, .85), rgba(5, 4, 10, .6) 55%, rgba(5, 4, 10, 0)); }
.tag { margin: 0; font: 800 clamp(21px, 2.6vw, 27px)/1.2 var(--display); text-wrap: balance; }
.tag b { color: var(--gold); }
.sub { margin: 0 0 6px; color: var(--dim); max-width: 46ch; text-wrap: pretty; }

.card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px 18px 16px; background: rgba(12, 11, 20, .9); border: 1px solid rgba(255, 255, 255, .1); border-top: 1px solid var(--gold); border-radius: 8px 22px 8px 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.card h2 { margin: 0; font: 800 12px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.field { display: flex; align-items: center; gap: 8px; padding: 0 14px; background: rgba(0, 0, 0, .42); border: 1px solid rgba(255, 255, 255, .14); border-radius: 5px 14px 5px 14px; transition: border-color .15s; }
.field:focus-within { border-color: var(--gold); }
.field input { flex: 1; min-width: 0; padding: 13px 0; background: none; border: 0; outline: 0; color: var(--text); font: 600 16px/1.2 "DM Sans", system-ui, sans-serif; }
.field input::placeholder { color: rgba(238, 241, 245, .3); }
.tick span, .tick input { font: 800 24px/1.1 var(--display); letter-spacing: .04em; color: var(--gold); }
.tick input { text-transform: uppercase; }
.tick input::placeholder { color: rgba(227, 179, 65, .3); }
.state { margin: -2px 2px 2px; min-height: 1.4em; font-size: 13.5px; font-weight: 600; color: var(--dim); }
.state.free { color: var(--green); } .state.bad { color: #ff7389; }
#go, .btn { display: block; width: 100%; padding: 15px 14px; border: 0; cursor: pointer; text-align: center; text-decoration: none; font: 800 17px/1.1 var(--display); letter-spacing: .05em; color: #2a1500; background: linear-gradient(135deg, #f2c955, #d99a2b); border-radius: 30px 16px 5px 30px; box-shadow: 0 5px 0 #9b6e1d; transition: transform .08s, box-shadow .08s, filter .15s; }
#go:hover, .btn:hover { filter: brightness(1.07); }
#go:active, .btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #9b6e1d; }
#go[disabled] { filter: grayscale(.5) brightness(.8); cursor: default; }
.btn.ghost { color: var(--text); background: rgba(255, 255, 255, .08); box-shadow: 0 5px 0 rgba(255, 255, 255, .1); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.fine { margin: 4px 0 0; font-size: 12.5px; color: rgba(238, 241, 245, .5); text-align: center; }
.count { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; color: var(--dim); }
.count b { color: var(--green); }

.done { border-top-color: var(--green); text-align: center; animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.done-top { margin: 0; font: 800 12px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--green); }
.done-ticker { margin: 0; font: 800 clamp(34px, 9vw, 46px)/1.05 var(--display); color: var(--gold); text-shadow: 0 0 30px rgba(227, 179, 65, .35); overflow-wrap: anywhere; }
.done-line { margin: 0 0 6px; color: var(--dim); }
.done-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.link { justify-self: center; margin-top: 4px; padding: 4px 8px; background: none; border: 0; cursor: pointer; color: rgba(238, 241, 245, .55); font: 600 13px "DM Sans", system-ui, sans-serif; text-decoration: underline; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }

/* the rocket that carries the ticker you type */
.stage { position: relative; aspect-ratio: 420 / 480; overflow: hidden; background: linear-gradient(180deg, #0c0a18, #06050b); border: 1px solid rgba(255, 255, 255, .09); border-top: 1px solid var(--purple); border-radius: 22px 8px 22px 8px; box-shadow: 0 24px 70px rgba(0, 0, 0, .6), inset 0 0 80px rgba(153, 69, 255, .08); }
.stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.readout { position: absolute; left: 18px; top: 14px; display: grid; }
.readout b { font: 800 clamp(34px, 5vw, 46px)/1 var(--display); color: var(--green); text-shadow: 0 0 24px rgba(20, 241, 149, .45); font-variant-numeric: tabular-nums; }
.readout span { font: 800 11px/1.6 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.rugged .readout b { color: var(--red); text-shadow: 0 0 24px rgba(255, 46, 77, .55); }
.tilt { transform: rotate(var(--tilt)); transition: transform 1.5s cubic-bezier(.55, 0, .9, .45); }
.bob { animation: bob 2.6s ease-in-out infinite; }
.flame { transform-box: fill-box; transform-origin: 50% 0; animation: burn .13s linear infinite alternate; }
.flame.in { animation-duration: .09s; }
.puff { opacity: 0; transform-box: fill-box; transform-origin: 50% 0; }
.coat { fill: var(--coat, #ff8a1f); transition: fill .3s; }
.rugged .tilt { transform: translate(34px, 250px) rotate(172deg); }
.rugged .flame { animation: none; opacity: 0; }
.rugged .puff { animation: puff 1.1s ease-out forwards; }
.snap .tilt { transition: none; }
#towers rect, #towers path { transition: opacity .4s; }
@keyframes bob { 50% { transform: translate(2px, -7px); } }
@keyframes burn { from { transform: scaleY(.86); } to { transform: scaleY(1.08); } }
@keyframes puff { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.2); } }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 24px 0 8px; }
.shots figure { margin: 0; overflow: hidden; background: rgba(12, 11, 20, .9); border: 1px solid rgba(255, 255, 255, .09); border-radius: 8px 22px 8px 22px; }
.shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shots figcaption { padding: 12px 14px 14px; font-size: 14.5px; color: var(--dim); border-left: 3px solid var(--gold); }
.shots figure:nth-child(2) figcaption { border-left-color: var(--green); } .shots figure:nth-child(3) figcaption { border-left-color: var(--purple); }
.shots b { display: block; color: var(--text); font: 800 16px/1.3 var(--display); }

.notoken { margin: 34px 0 10px; padding: 26px 22px; text-align: center; border: 1px solid rgba(255, 46, 77, .35); border-radius: 22px 8px 22px 8px; background: linear-gradient(180deg, rgba(255, 46, 77, .1), rgba(255, 46, 77, .03)); }
.notoken h2 { margin: 0 0 6px; font: 800 clamp(19px, 2.6vw, 25px)/1.25 var(--display); text-wrap: balance; }
.notoken p { margin: 0; color: var(--dim); text-wrap: balance; }

footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 26px 0 34px; font-size: 13.5px; color: rgba(238, 241, 245, .5); }
footer nav { display: flex; gap: 16px; flex: 1; flex-wrap: wrap; }
footer a { color: var(--text); font-weight: 600; text-decoration: none; }
footer a:hover { color: var(--green); }

@media (max-width: 900px) {
  :root { --tilt: 64deg; }
  .hero { grid-template-columns: minmax(0, 520px); gap: 12px; min-height: 0; padding: 22px 0 26px; }
  .pitch { display: contents; }
  .eyebrow { order: 1; justify-content: center; font-size: 10.5px; letter-spacing: .15em; white-space: nowrap; } h1 { order: 2; margin: 0; } .tag { order: 3; text-align: center; }
  .stage { order: 4; aspect-ratio: auto; height: 172px; } #join, #done { order: 5; } .count { order: 6; text-align: center; } .sub { order: 7; text-align: center; margin: 8px auto 0; }
  .readout { left: 14px; top: 10px; } .readout b { font-size: 30px; } #towers { display: none; }
  .rugged .tilt { transform: translate(120px, 150px) rotate(172deg); }
  .shots { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .bg, .bob, .flame { animation: none; } .tilt { transition: none; } }

.fine a { color: inherit; text-decoration: underline; }
