/* Marketing pages: nav, aurora, waitlist, ticket, footer. */

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(15,22,41,.72); border-color: var(--line); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: var(--r-ctl); font-size: 14.5px; color: var(--text-2); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-burger { display: none; width: 40px; height: 40px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: rgba(255,255,255,.04); align-items: center; justify-content: center; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after { display: block; width: 16px; height: 1.5px; background: var(--text); position: relative; transition: transform .3s var(--ease), background .2s; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; }
.nav-burger span::before { top: -5px; } .nav-burger span::after { top: 5px; }
.nav.open .nav-burger span { background: transparent; }
.nav.open .nav-burger span::before { transform: translateY(5px) rotate(45deg); }
.nav.open .nav-burger span::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 64px 0 auto; flex-direction: column; margin: 0; padding: 12px 16px 20px; background: rgba(15,22,41,.96); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .3s var(--ease); backdrop-filter: blur(16px); }
  .nav-links a { padding: 12px; font-size: 16px; }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.open { background: rgba(15,22,41,.96); }
  .nav-burger { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
}

/* Aurora + grid background */
.aurora canvas.shader { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.aurora.gl-on .blob { display: none; }
.ic-good { color: var(--good); }
.ic-discord { color: #5865F2; }
.logo-ic { display: inline-block; flex: none; object-fit: contain; border-radius: var(--r-ctl); vertical-align: middle; }
.wl-game-card .logo-ic { width: 28px; height: 28px; }
.wl-game-card { gap: 8px; }
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora .blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; mix-blend-mode: screen; }
.aurora .b1 { width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; left: -10vw; top: -18vw; background: radial-gradient(circle, #4f7cff 0%, transparent 62%); animation: drift1 18s ease-in-out infinite alternate; }
.aurora .b2 { width: 48vw; height: 48vw; max-width: 700px; max-height: 700px; right: -12vw; top: -14vw; background: radial-gradient(circle, #ffcb3d 0%, transparent 62%); animation: drift2 22s ease-in-out infinite alternate; }
.aurora .b3 { width: 40vw; height: 40vw; max-width: 600px; max-height: 600px; left: 30vw; top: 6vw; background: radial-gradient(circle, #2ee6d6 0%, transparent 62%); opacity: .38; animation: drift3 26s ease-in-out infinite alternate; }
.aurora .b4 { width: 30vw; height: 30vw; max-width: 460px; max-height: 460px; right: 8vw; top: 22vw; background: radial-gradient(circle, #38bdf8 0%, transparent 62%); opacity: .25; animation: drift1 20s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(8vw, 6vw, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(-10vw, 8vw, 0) scale(.92); } }
@keyframes drift3 { to { transform: translate3d(-6vw, -4vw, 0) scale(1.15); } }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Waitlist form */
.wl { position: relative; }
.wl.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.wl-form { display: grid; gap: 22px; }
.wl-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.wl-field legend, .wl-label { display: flex; gap: 8px; align-items: baseline; font-weight: 500; font-size: 14.5px; margin-bottom: 10px; padding: 0; }
.wl-field legend .muted, .wl-label .muted { font-size: 12.5px; font-weight: 400; }
.wl-games { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.wl-game input, .wl-seg input { position: absolute; opacity: 0; pointer-events: none; }
.wl-game-card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 92px; padding: 10px 6px;
  border-radius: var(--r-box); border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--text-2); cursor: pointer; text-align: center;
  transition: border-color .2s, background .2s, color .2s, transform .25s var(--ease), box-shadow .3s;
}
.wl-game-card b { font-weight: 500; font-size: 13.5px; line-height: 1.15; }
.wl-game-card small { position: absolute; top: 6px; right: 7px; font-size: 10px; color: var(--muted); font-family: var(--sans); }
.wl-game-card:hover { border-color: var(--line-2); background: rgba(255,255,255,.05); transform: translateY(-2px); }
.wl-game input:checked + .wl-game-card { color: var(--text); border-color: rgba(255,203,61,.7); background: linear-gradient(180deg, rgba(255,203,61,.16), rgba(255,203,61,.04)); box-shadow: 0 0 0 3px rgba(255,203,61,.15), 0 12px 30px -12px rgba(255,203,61,.6); }
.wl-game input:checked + .wl-game-card svg { color: var(--accent-2); }
.wl-game input:focus-visible + .wl-game-card, .wl-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.wl-seg { position: relative; display: inline-flex; padding: 4px; border-radius: var(--r-ctl); background: rgba(255,255,255,.03); border: 1px solid var(--line); max-width: 100%; }
.wl-seg label { position: relative; z-index: 1; }
.wl-seg span { display: block; padding: 8px 14px; border-radius: var(--r-ctl); font-size: 14px; color: var(--text-2); cursor: pointer; transition: color .2s; white-space: nowrap; }
.wl-seg input:checked + span { color: var(--text); }
.wl-seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: var(--r-ctl); background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px var(--line-2); opacity: 0; transition: transform .35s var(--ease), width .35s var(--ease), opacity .2s; }
.wl textarea, .wl input[type=email] {
  width: 100%; border-radius: var(--r-ctl); border: 1px solid var(--line); background: rgba(0,0,0,.35); padding: 12px 14px; font-size: 15px; color: var(--text);
  transition: border-color .2s, box-shadow .2s; resize: vertical; min-height: 48px;
}
.wl textarea::placeholder, .wl input::placeholder { color: #5f5f6e; }
.wl textarea:focus, .wl input[type=email]:focus { outline: none; border-color: rgba(255,203,61,.7); box-shadow: 0 0 0 4px rgba(255,203,61,.15); }
.wl-submit { display: flex; gap: 8px; }
.wl-submit input[type=email] { flex: 1; min-width: 0; height: 48px; }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.wl-msg { margin: -8px 0 0; font-size: 14px; }
.wl-msg:empty { display: none; }
.wl-msg.err { color: var(--bad); }
.wl-note { margin: -14px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .wl-games { grid-template-columns: repeat(3, 1fr); }
  .wl-submit { flex-direction: column; }
  .wl-submit .btn { width: 100%; }
  .wl-seg { display: flex; } .wl-seg label { flex: 1; } .wl-seg span { text-align: center; padding: 8px 6px; font-size: 13px; }
}

/* Ticket */
.wl-done { text-align: center; display: grid; justify-items: center; gap: 8px; animation: rise .8s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.wl-done h3 { font-size: 26px; letter-spacing: -.03em; margin: 22px 0 0; font-weight: 600; }
.wl-done p { margin: 0; max-width: 440px; font-size: 15px; }
.wl-done-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.ticket {
  --rx: 0deg; --ry: 0deg; --px: 50%; --py: 50%;
  position: relative; width: min(380px, 100%); padding: 22px; border-radius: var(--r-box); text-align: left; overflow: hidden;
  background: radial-gradient(120% 80% at 0% 0%, rgba(79,124,255,.22), transparent 50%), radial-gradient(120% 80% at 100% 100%, rgba(255,203,61,.3), transparent 55%), #161f37;
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 80px -20px rgba(255,203,61,.45), 0 0 0 1px rgba(255,255,255,.04) inset;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease-out; transform-style: preserve-3d;
  animation: ticket-in 1s var(--ease);
}
@keyframes ticket-in { from { transform: perspective(900px) rotateX(35deg) translateY(30px); opacity: 0; } }
.ticket-shine { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: .9;
  background: radial-gradient(circle at var(--px) var(--py), rgba(255,255,255,.35), transparent 40%), linear-gradient(115deg, transparent 30%, rgba(46,230,214,.25) 45%, rgba(56,189,248,.25) 55%, transparent 70%);
  background-size: 100% 100%, 250% 250%; background-position: 0 0, var(--px) var(--py); }
.ticket-top { display: flex; justify-content: space-between; align-items: center; }
.ticket-top .brand { font-size: 15px; } .ticket-top .brand-mark { width: 22px; height: 22px; }
.ticket-no { margin: 26px 0 18px; }
.ticket-no small, .ticket-rows small, .ticket-idea small { display: block; font: 500 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ticket-no b { font-size: 46px; letter-spacing: -.04em; font-weight: 600; line-height: 1; }
.ticket-rows { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; font-size: 14px; }
.ticket-idea { margin-top: 14px; font-size: 13.5px; color: var(--text-2); }
.ticket-idea p { margin: 0; }
.ticket-perf { margin: 18px -22px 12px; border-top: 1.5px dashed rgba(255,255,255,.18); position: relative; }
.ticket-perf::before, .ticket-perf::after { content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid rgba(255,255,255,.16); }
.ticket-perf::before { left: -11px; } .ticket-perf::after { right: -11px; }
.ticket-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; color: var(--muted); letter-spacing: .06em; }
.ticket-foot span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spark { position: fixed; width: 7px; height: 7px; border-radius: var(--r-ctl); pointer-events: none; z-index: 120; animation: spark 1.2s cubic-bezier(.1,.7,.3,1) forwards; }
@keyframes spark { to { transform: translate(var(--x), var(--y)) rotate(400deg) scale(var(--s)); opacity: 0; } }

/* Footer */
.footer { position: relative; border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer h4 { color: var(--text); font-size: 13.5px; font-weight: 500; margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.status-ok { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

.brand .brand-mark { filter: none; }
