:root {
  --bg: #1b1035;
  --bg-2: #24154a;
  --card: #2d1b5e;
  --line: rgba(255, 255, 255, .1);
  --text: #fff6fb;
  --muted: #c3b5e6;
  --pink: #ff4fa3;
  --yellow: #ffd23f;
  --cyan: #2de2e6;
  --violet: #9b6bff;
  --radius: 22px;
  --display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.6 'Nunito', system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .5px; margin: 0; line-height: 1.08; }
img, svg { display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border: 0; border-radius: 999px; cursor: pointer;
  font: 400 19px var(--display); letter-spacing: .6px; color: #3a0b25;
  background: linear-gradient(180deg, #ffe066, #ffb703);
  box-shadow: 0 6px 0 #c47a00, 0 12px 24px rgba(255, 183, 3, .35);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #c47a00, 0 16px 30px rgba(255, 183, 3, .45); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #c47a00, 0 6px 12px rgba(255, 183, 3, .3); }
.btn-ghost {
  color: var(--text); background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
}
.btn-ghost:hover, .btn-ghost:active { box-shadow: inset 0 0 0 2px #fff; }
.btn-small { padding: 10px 20px; font-size: 16px; box-shadow: 0 4px 0 #c47a00; }
.btn-small:hover { box-shadow: 0 6px 0 #c47a00; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 16px max(16px, calc((100% - 1180px) / 2));
  transition: background .25s, padding .25s, box-shadow .25s;
}
.nav.scrolled {
  background: rgba(27, 16, 53, .88); backdrop-filter: blur(12px);
  padding-top: 10px; padding-bottom: 10px; box-shadow: 0 1px 0 var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font: 400 24px var(--display); letter-spacing: 1px; }
.logo b { font-weight: 400; color: var(--pink); margin-left: 4px; }
.logo-gem {
  width: 30px; height: 30px; border-radius: 9px; transform: rotate(45deg);
  background: linear-gradient(135deg, #ffe066, #ff4fa3 55%, #9b6bff);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .2), inset 3px 3px 0 rgba(255, 255, 255, .45);
}
.links { display: flex; gap: 26px; margin-left: auto; font-weight: 800; }
.links a { opacity: .8; transition: opacity .2s; }
.links a:hover { opacity: 1; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(100vh, 960px);
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  padding: 120px max(16px, calc((100% - 1180px) / 2)) 80px;
  background:
    radial-gradient(60% 50% at 80% 30%, rgba(255, 79, 163, .35), transparent 70%),
    radial-gradient(50% 50% at 10% 80%, rgba(45, 226, 230, .2), transparent 70%),
    linear-gradient(180deg, #2a1366, var(--bg));
  overflow: hidden;
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.sky span {
  position: absolute; top: -60px; width: var(--s); height: var(--s); opacity: .35;
  animation: drift linear infinite;
}
.sky svg { width: 100%; height: 100%; }
@keyframes drift {
  to { transform: translateY(calc(100vh + 120px)) rotate(360deg); }
}
.hero-copy { position: relative; z-index: 1; }
.pill {
  display: inline-block; padding: 7px 16px; border-radius: 999px; font-weight: 800; font-size: 14px;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.hero h1 { font-size: clamp(44px, 6.4vw, 82px); margin: 22px 0 20px; text-shadow: 0 6px 0 rgba(0, 0, 0, .25); }
.grad {
  background: linear-gradient(90deg, var(--yellow), var(--pink) 60%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.store {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 12px;
  background: #0d0720; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  font-weight: 900; line-height: 1.1;
}
.store small { display: block; font-size: 11px; font-weight: 700; opacity: .7; }
.store svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.stats { display: flex; gap: 34px; list-style: none; padding: 0; margin: 36px 0 0; }
.stats b { display: block; font: 400 34px var(--display); color: var(--yellow); }
.stats span { font-size: 14px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- phone + demo ---------- */
.phone-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.phone {
  position: relative; width: 340px; max-width: 100%; padding: 12px; border-radius: 48px;
  background: linear-gradient(160deg, #3b2a6e, #120a26);
  box-shadow: 0 0 0 2px #4e3a8c, 0 40px 80px rgba(0, 0, 0, .55), 0 0 120px rgba(255, 79, 163, .25);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-10px); } }
.notch { position: absolute; top: 20px; left: 50%; width: 90px; height: 22px; margin-left: -45px; border-radius: 12px; background: #000; z-index: 3; }
.screen {
  position: relative; overflow: hidden; border-radius: 38px; padding: 50px 12px 14px;
  background: linear-gradient(180deg, #6fd3ff 0%, #b9a2ff 38%, #4a2a8a 39%, #2d1660 100%);
  user-select: none; -webkit-user-select: none;
}
.enemy { position: relative; height: 150px; }
.enemy-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; font-weight: 900; }
.wave, .attack { padding: 2px 9px; border-radius: 999px; background: rgba(27, 16, 53, .6); }
.attack.soon { background: #e0213a; animation: throb .6s ease-in-out infinite; }
@keyframes throb { 50% { transform: scale(1.12); } }
.enemy-name { font: 400 15px var(--display); color: #2a1366; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.monster { width: 118px; height: 88px; margin: 0 auto; transition: opacity .5s, transform .5s; }
.monster svg { width: 100%; height: 100%; animation: wobble 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes wobble { 50% { transform: scale(1.04, .96); } }
.monster.hit { animation: shake .3s; }
.monster.lunge { transform: translateY(26px) scale(1.15); transition: transform .2s; }
.monster.dead { opacity: 0; transform: scale(.3) rotate(25deg); }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.bar { position: relative; height: 14px; border-radius: 999px; background: rgba(0, 0, 0, .45); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; transition: width .35s ease-out; }
.bar span { position: relative; display: block; font-size: 10px; font-weight: 900; line-height: 14px; text-align: center; text-shadow: 0 1px 2px #000; }
.enemy-bar { margin: 4px 30px 0; }
.enemy-bar i { background: linear-gradient(180deg, #ff8a7a, #e0213a); }
.team-bar { margin: 6px 4px 10px; }
.team-bar i { background: linear-gradient(180deg, #a6f58a, #23a84a); }
.floats { position: absolute; inset: 0; pointer-events: none; }
.float {
  position: absolute; top: 60px; transform: translateX(-50%); white-space: nowrap;
  font: 400 18px var(--display); -webkit-text-stroke: 1px #1b1035; paint-order: stroke fill;
  animation: rise 1s ease-out forwards;
}
.float.big { font-size: 22px; }
@keyframes rise {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); }
  20% { opacity: 1; transform: translate(-50%, 0) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -50px) scale(1); }
}

.team { display: flex; justify-content: space-between; gap: 6px; padding: 0 4px; }
.team.hit { animation: shake .35s; }
.tm {
  --p: 0; position: relative; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(0, 0, 0, .45) 0);
  transition: transform .15s;
}
.tm-ring { position: absolute; inset: 4px; border-radius: 50%; background: #1b1035; }
.tm-face { position: absolute; inset: 6px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #fff 0, var(--c) 120%); }
.tm-face svg { width: 100%; height: 100%; }
.tm.ready { animation: ready 1s ease-in-out infinite; box-shadow: 0 0 0 3px #fff, 0 0 18px var(--c); }
.tm.ready::after {
  content: 'TAP!'; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  padding: 0 5px; border-radius: 6px; background: #fff; color: #1b1035; font: 400 10px var(--display);
}
.tm.cast { animation: cast .6s ease-out; }
@keyframes ready { 50% { transform: scale(1.08); } }
@keyframes cast { 30% { transform: scale(1.35); filter: brightness(1.8); } }

.board {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; touch-action: none;
  background:
    repeating-conic-gradient(rgba(255, 255, 255, .07) 0 25%, rgba(255, 255, 255, .02) 0 50%) 0 0 / calc(200% / 7) calc(200% / 7),
    rgba(15, 8, 34, .6);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12);
}
.gem {
  position: absolute; top: 0; left: 0; width: calc(100% / 7); height: calc(100% / 7); padding: 3px; cursor: grab;
  transition: transform .28s cubic-bezier(.3, 1.3, .6, 1);
}
.gem svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .35)); transition: transform .15s; pointer-events: none; }
.gem:hover svg { transform: scale(1.08); }
.gem.sel svg { transform: scale(1.15); animation: selpulse .7s ease-in-out infinite; }
@keyframes selpulse { 50% { filter: drop-shadow(0 0 6px #fff) brightness(1.2); } }
.gem.pop svg { animation: pop .25s ease-in forwards; }
@keyframes pop { 40% { transform: scale(1.3); filter: brightness(2); } 100% { transform: scale(0) rotate(90deg); opacity: 0; } }
.gem.nope svg { animation: nope .2s; }
@keyframes nope { 50% { transform: scale(.85); } }

.combo {
  position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%) scale(0); pointer-events: none; z-index: 4;
  font: 400 34px var(--display); color: var(--yellow); white-space: nowrap;
  -webkit-text-stroke: 2px #7a1747; paint-order: stroke fill; text-shadow: 0 4px 0 #7a1747;
}
.combo.show { animation: combo .9s ease-out; }
@keyframes combo {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-12deg); opacity: 1; }
  30% { transform: translate(-50%, -50%) scale(1.15) rotate(-4deg); }
  70% { opacity: 1; }
  100% { transform: translate(-50%, -80%) scale(1) rotate(-4deg); opacity: 0; }
}
.overlay {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 30px; text-align: center; background: rgba(27, 16, 53, .82); backdrop-filter: blur(4px);
}
.overlay[hidden] { display: none; }
.overlay h3 { font-size: 40px; color: var(--yellow); }
.overlay p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.demo-hint { max-width: 330px; margin: 22px 0 0; text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 110px max(16px, calc((100% - 1180px) / 2)); }
.section-alt { background: linear-gradient(180deg, var(--bg), var(--bg-2) 20%, var(--bg-2) 80%, var(--bg)); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); }
.section-head p { color: var(--muted); margin: 14px 0 0; }
.kicker { display: inline-block; margin-bottom: 12px; color: var(--pink); font-weight: 900; text-transform: uppercase; letter-spacing: 2px; font-size: 14px; }

.gem-icon { display: inline-block; width: 1.4em; height: 1.4em; }
.gem-icon svg { width: 100%; height: 100%; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  position: relative; padding: 30px; border-radius: var(--radius); background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px rgba(0, 0, 0, .2);
}
.step-art {
  display: grid; place-items: center; height: 130px; margin-bottom: 22px; border-radius: 16px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .12), rgba(0, 0, 0, .15));
}
.step-n {
  position: absolute; top: 18px; right: 20px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--pink); font: 400 20px var(--display); box-shadow: 0 4px 0 #a3125e;
}
.step h3 { font-size: 30px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }
.mini-row { display: flex; gap: 6px; }
.mini-row .gem-icon { width: 54px; height: 54px; animation: hop 1.6s ease-in-out infinite; }
.mini-row .gem-icon:nth-child(2) { animation-delay: .15s; }
.mini-row .gem-icon:nth-child(3) { animation-delay: .3s; }
@keyframes hop { 30% { transform: translateY(-14px); } 60% { transform: translateY(0); } }
.charge-demo {
  width: 90px; height: 90px; border-radius: 50%; position: relative;
  background: conic-gradient(var(--yellow) 0, var(--pink) var(--a, 0deg), rgba(0, 0, 0, .35) 0);
  animation: fill 2.4s linear infinite;
}
.charge-demo i { position: absolute; inset: 10px; border-radius: 50%; background: var(--card); }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes fill { to { --a: 360deg; } }
.burst { font-size: 72px; animation: burst 1.6s ease-in-out infinite; }
@keyframes burst { 0%, 100% { transform: scale(.8) rotate(-8deg); } 50% { transform: scale(1.15) rotate(8deg); } }

.roster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  overflow: hidden; border-radius: var(--radius); background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px rgba(0, 0, 0, .25);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: inset 0 0 0 2px var(--c), 0 26px 50px rgba(0, 0, 0, .35); }
.card-art {
  position: relative; height: 210px;
  background:
    radial-gradient(circle at 50% 110%, rgba(255, 255, 255, .45), transparent 60%),
    linear-gradient(160deg, var(--c), var(--d));
}
.card-art > svg { position: absolute; left: 50%; bottom: 0; width: 200px; height: 200px; transform: translateX(-50%); transition: transform .3s; }
.card:hover .card-art > svg { transform: translateX(-50%) scale(1.06); }
.card-gem { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; }
.card-gem svg { width: 100%; height: 100%; }
.card-body { padding: 22px 24px 26px; }
.role {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px;
  background: color-mix(in srgb, var(--c) 25%, transparent); color: var(--c);
}
.card h3 { font-size: 34px; margin-top: 10px; }
.title { margin: 2px 0 16px; color: var(--muted); font-weight: 800; }
.skill { padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .22); }
.skill b { color: var(--yellow); }
.skill p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }

.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mode {
  padding: 28px 24px; border-radius: var(--radius); background: var(--card);
  box-shadow: inset 0 3px 0 var(--c), inset 0 0 0 1px var(--line);
  transition: transform .2s;
}
.mode:hover { transform: translateY(-6px); }
.mode-icon {
  display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 18px; border-radius: 18px; font-size: 30px;
  background: color-mix(in srgb, var(--c) 22%, transparent);
}
.mode h3 { font-size: 24px; margin-bottom: 8px; }
.mode p { margin: 0; color: var(--muted); font-size: 15px; }
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 40px 0 0; padding: 26px;
  border-radius: var(--radius); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line);
}
.features b { display: block; margin-bottom: 4px; }
.features span { font-size: 14px; color: var(--muted); }

.register-card {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding: 50px; border-radius: 32px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(255, 210, 63, .25), transparent 60%),
    linear-gradient(135deg, #ff4fa3, #9b4bff);
  box-shadow: 0 30px 70px rgba(155, 75, 255, .35);
}
.register .kicker { color: var(--yellow); }
.register h2 { font-size: clamp(32px, 4.2vw, 50px); text-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.rewards { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; font-size: 18px; }
.rewards li { display: flex; align-items: center; gap: 12px; }
.rewards .gem-icon { flex: none; }
.register-form { padding: 28px; border-radius: 24px; background: rgba(27, 16, 53, .88); display: grid; gap: 10px; align-content: start; }
.register-form > label, .platforms legend { font-weight: 900; font-size: 14px; }
.register-form input[type=email] {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .15); outline: none;
  background: rgba(255, 255, 255, .06); color: var(--text); font: 700 17px 'Nunito', sans-serif;
}
.register-form input[type=email]:focus { border-color: var(--yellow); }
.platforms { display: flex; gap: 8px; border: 0; padding: 0; margin: 6px 0 8px; }
.platforms legend { margin-bottom: 8px; }
.platforms label { flex: 1; }
.platforms input { position: absolute; opacity: 0; }
.platforms span {
  display: block; padding: 10px; text-align: center; border-radius: 12px; cursor: pointer; font-weight: 800;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12);
}
.platforms input:checked + span { background: rgba(255, 210, 63, .15); box-shadow: inset 0 0 0 2px var(--yellow); color: var(--yellow); }
.platforms input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.form-msg { margin: 4px 0 0; font-weight: 800; min-height: 1.2em; }
.form-msg.ok { color: #7dffa1; }
.form-msg.err { color: #ff9a9a; }
.fine { margin: 0; font-size: 13px; color: var(--muted); }

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative; font-weight: 900; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font: 400 28px var(--display); color: var(--pink); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

.footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px;
  padding: 40px max(16px, calc((100% - 1180px) / 2)); border-top: 1px solid var(--line);
}
.footer p { margin: 0; color: var(--muted); font-size: 14px; }
.footer nav { display: flex; gap: 20px; margin-left: auto; font-size: 14px; font-weight: 800; }
.footer nav a { opacity: .75; }
.footer nav a:hover { opacity: 1; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .modes, .features { grid-template-columns: repeat(2, 1fr); }
  .roster { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .links { display: none; }
  .nav .btn-small { margin-left: auto; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 110px; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta-row, .stores, .stats { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .register-card { grid-template-columns: 1fr; padding: 30px 22px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .logo { font-size: 20px; }
  .roster, .modes, .features { grid-template-columns: 1fr; }
  .stats { gap: 22px; }
  .phone { width: 100%; max-width: 340px; padding: 9px; border-radius: 42px; }
  .screen { padding: 46px 9px 10px; border-radius: 34px; }
  .tm { width: 46px; height: 46px; }
  .footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .sky { display: none; }
}
