/* BlockFort landing page. Same brand as the game: Lilita One + Nunito, candy buttons, deep-night panels. */
@font-face { font-family: 'Lilita One'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/lilita-one-latin.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(../fonts/nunito-latin.woff2) format('woff2'); }

@property --tint { syntax: '<color>'; inherits: true; initial-value: #3f8a2e; }

:root {
  color-scheme: dark;
  --night: #10153a;
  --night-2: #161d48;
  --deep: #0a0d26;
  --panel: #232c63;
  --panel-2: #1b2354;
  --edge: #151b44;
  --text: #f6f7ff;
  --dim: #b4bde6;
  --ink: #1a1426;
  --line: rgba(255, 255, 255, 0.1);
  --green-1: #7eea5c; --green-2: #35b83f; --green-3: #1d7a2b;
  --gold-1: #ffe36e; --gold-2: #ffb81c; --gold-3: #b06f00;
  --blue-1: #6cbcff; --blue-2: #2f7de0;
  --purple-1: #cf98ff; --purple-2: #8b4ff0; --purple-3: #5526a6;
  --red-1: #ff8a78; --red-2: #e8412f;
  --emerald: #3ff08e;
  --display: 'Lilita One', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  --body: 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(.2, .9, .25, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 700 17px/1.55 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: 0.01em; line-height: 1.05; }
h2 { font-size: clamp(34px, 5.4vw, 64px); text-wrap: balance; }
h3 { font-size: clamp(22px, 2.2vw, 26px); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold-1); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold-1); color: var(--ink); border-radius: 10px; font-weight: 900; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.kicker { display: inline-block; font: 400 15px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-1); margin-bottom: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 227, 110, 0.1); border: 1.5px solid rgba(255, 227, 110, 0.28); }
.hl { color: var(--gold-1); }
.lede { max-width: 640px; margin-top: 16px; color: var(--dim); font-size: clamp(17px, 1.6vw, 20px); }

/* ------------------------------------------------------------------ buttons */
.btn {
  --c1: #7d8bd6; --c2: #505ea8; --c3: #303a78;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px;
  font: 400 19px/1.1 var(--display); letter-spacing: 0.02em;
  color: #fff; text-decoration: none; white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
  background: linear-gradient(180deg, var(--c1), var(--c2));
  border: 0; border-radius: 16px;
  box-shadow: 0 6px 0 var(--c3), 0 12px 22px rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out), filter .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 8px 0 var(--c3), 0 16px 26px rgba(0, 0, 0, 0.38), inset 0 2px 0 rgba(255, 255, 255, 0.35); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--c3), 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.btn.go { --c1: var(--green-1); --c2: var(--green-2); --c3: var(--green-3); text-shadow: 0 2px 0 var(--ink), 1.5px 0 0 var(--ink), -1.5px 0 0 var(--ink), 0 -1.5px 0 var(--ink); }
.btn.ghost { --c1: rgba(255, 255, 255, 0.16); --c2: rgba(255, 255, 255, 0.08); --c3: rgba(0, 0, 0, 0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 2px solid rgba(255, 255, 255, 0.28); }
.btn.sm { min-height: 42px; padding: 8px 18px; font-size: 17px; border-radius: 13px; box-shadow: 0 4px 0 var(--c3), 0 8px 14px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.35); }
.btn.lg { min-height: 60px; padding: 12px 32px; font-size: 24px; border-radius: 18px; }
.btn.xl { min-height: 72px; padding: 14px 38px; font-size: clamp(24px, 2.6vw, 30px); border-radius: 20px; box-shadow: 0 8px 0 var(--c3), 0 18px 34px rgba(0, 0, 0, 0.45), inset 0 3px 0 rgba(255, 255, 255, 0.4); }
.btn.xl:active { transform: translateY(7px); }
.btn svg { width: 1em; height: 1em; fill: currentColor; filter: drop-shadow(0 2px 0 var(--ink)); }
.btn.go.xl::after { content: ''; position: absolute; inset: -6px; border-radius: 26px; border: 3px solid rgba(126, 234, 92, 0.6); animation: ring 2.2s var(--ease-out) infinite; pointer-events: none; }
@keyframes ring { 0% { opacity: .9; transform: scale(.96); } 70%, 100% { opacity: 0; transform: scale(1.12); } }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter); padding-top: max(12px, env(safe-area-inset-top));
  transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.nav.solid { background: rgba(16, 21, 58, 0.86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, 0.25); }
.nav-logo img { height: 34px; width: auto; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)); }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 800; color: rgba(255, 255, 255, 0.86); transition: background .15s, color .15s; }
.nav-links a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } .nav-logo img { height: 28px; } }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; isolation: isolate;
  min-height: max(640px, 100svh);
  display: grid; align-items: center;
  overflow: hidden;
  background: #3a7a2e;
  cursor: crosshair;
}
.hero-game, .hero-still { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.hero-still { object-fit: cover; transition: opacity .8s; }
.hero.live .hero-still { opacity: 0; }
.hero-shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 18% 55%, rgba(10, 13, 38, 0.86) 0%, rgba(10, 13, 38, 0.55) 45%, rgba(10, 13, 38, 0.08) 75%),
    linear-gradient(180deg, rgba(10, 13, 38, 0.55) 0%, rgba(10, 13, 38, 0) 22%, rgba(10, 13, 38, 0) 70%, rgba(16, 21, 58, 1) 100%);
}
.hero-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 110px var(--gutter) 120px; pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-inner > * { max-width: 620px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { padding: 6px 13px; border-radius: 999px; font-size: 14px; font-weight: 900; letter-spacing: .02em; background: rgba(10, 13, 38, 0.55); border: 1.5px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.chip:first-child { background: var(--gold-1); color: var(--ink); border-color: var(--gold-1); }
.hero-title { display: flex; flex-direction: column; gap: 14px; }
.hero-logo { width: min(560px, 88vw); height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5)); animation: logo-in .9s var(--bounce) both; }
@keyframes logo-in { from { opacity: 0; transform: translateY(-30px) scale(.92) rotate(-2deg); } }
.hero-line { font-size: clamp(38px, 5.8vw, 70px); line-height: 1; text-shadow: 0 4px 0 var(--ink), 0 10px 30px rgba(0, 0, 0, 0.5); }
.hero-line em { font-style: normal; color: var(--gold-1); }
.hero-sub { margin-top: 20px; font-size: clamp(18px, 1.7vw, 21px); color: #e2e7ff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 18px; margin-top: 32px; }
.welcome { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(16, 21, 58, 0.78); border: 1.5px solid rgba(63, 240, 142, 0.45); font-weight: 900; font-size: 15px; }
.welcome img { width: 28px; height: 28px; }
.devices { margin-top: 22px; font-size: 15px; color: var(--dim); }
.devices b { color: #fff; }
.tnt-hint {
  position: absolute; right: var(--gutter); bottom: 34px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 16px; border: 0;
  background: rgba(16, 21, 58, 0.82); color: #fff; font: 800 15px/1.2 var(--body);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  cursor: pointer; animation: hint-in .6s 2.2s var(--bounce) both;
  transition: opacity .4s, transform .4s;
}
.tnt-hint img { width: 30px; height: 30px; animation: wiggle 1.4s ease-in-out infinite; }
.tnt-hint.gone { opacity: 0; transform: translateY(10px); pointer-events: none; }
@keyframes hint-in { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg) scale(1.1); } }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 30px; height: 48px; margin-left: -15px; border: 3px solid rgba(255, 255, 255, 0.55); border-radius: 18px; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 6px; height: 10px; margin-left: -3px; border-radius: 3px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@media (max-width: 760px) {
  .hero { align-items: end; }
  .hero-inner { padding-top: 150px; padding-bottom: 40px; }
  .hero-logo { display: none; } /* the bar at the top already shows it */
  .chip-row { margin-bottom: 14px; }
  .chip { font-size: 13px; padding: 5px 11px; }
  .hero-sub { font-size: 17px; margin-top: 14px; }
  .hero-cta { margin-top: 24px; gap: 12px; }
  .devices { margin-top: 16px; font-size: 14px; }
  .hero-shade { background: linear-gradient(180deg, rgba(10, 13, 38, 0.5) 0%, rgba(10, 13, 38, 0) 16%, rgba(10, 13, 38, 0.1) 32%, rgba(10, 13, 38, 0.86) 52%, rgba(16, 21, 58, 1) 100%); }
  .tnt-hint { left: var(--gutter); right: auto; top: 76px; bottom: auto; font-size: 14px; }
  .scroll-cue { display: none; }
  .hero-cta .btn { flex: 1 1 auto; }
}

/* ------------------------------------------------------------------ mob march */
.march {
  position: relative; height: 104px; overflow: hidden;
  background:
    linear-gradient(180deg, #5fbf3f 0 12px, #3f9a2c 12px 16px, transparent 16px),
    repeating-linear-gradient(90deg, #8a5a33 0 44px, #7d5030 44px 88px);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.25);
}
.march::before { content: ''; position: absolute; left: 0; right: 0; top: 16px; bottom: 0; background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(0, 0, 0, 0.1) 22px 24px); pointer-events: none; }
.march-track { position: absolute; top: 20px; left: 0; display: flex; gap: 38px; width: max-content; animation: march 60s linear infinite; }
.march-track img { width: 76px; height: 76px; animation: step .5s ease-in-out infinite alternate; filter: drop-shadow(0 6px 3px rgba(0, 0, 0, 0.3)); }
.march-track img:nth-child(odd) { animation-delay: -.25s; }
@keyframes march { to { transform: translateX(-50%); } }
@keyframes step { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-6px) rotate(3deg); } }

/* ------------------------------------------------------------------ sections */
section { position: relative; }
.how, .worlds, .towers, .bosses, .more, .parents, .install { padding: clamp(80px, 11vw, 140px) 0; }

/* How it works */
.how { background: radial-gradient(90% 60% at 50% 0%, #26307a 0%, var(--night) 70%); }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative; padding: 26px 26px 30px; border-radius: 26px;
  background: linear-gradient(180deg, #2c3777, #1f285e);
  box-shadow: 0 8px 0 var(--edge), 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.12);
}
.step-n { position: absolute; top: -16px; left: 22px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font: 400 24px var(--display); color: var(--ink); background: linear-gradient(var(--gold-1), var(--gold-2)); box-shadow: 0 4px 0 var(--gold-3); }
.step-art { height: 150px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin: 6px 0 16px; }
.step-art img { width: 96px; height: 96px; }
.step-art .boss-bounce { width: 150px; height: 150px; }
.step-art.loot { flex-wrap: wrap; align-content: flex-end; gap: 6px 10px; }
.step-art.loot img { width: 50px; height: 50px; animation: pop-float 2.4s ease-in-out infinite; }
.step-art.loot img:nth-child(2n) { animation-delay: -.8s; }
.step-art.loot img:nth-child(3n) { animation-delay: -1.6s; }
.step p { margin-top: 8px; color: var(--dim); }
.bob { animation: bob 2.4s ease-in-out infinite; }
.bob.d1 { animation-delay: -.8s; } .bob.d2 { animation-delay: -1.6s; }
.boss-bounce { animation: boss-bounce 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes pop-float { 50% { transform: translateY(-8px) rotate(6deg); } }
@keyframes boss-bounce { 0%, 100% { transform: scale(1, 1); } 45% { transform: scale(1.06, .92); } 60% { transform: translateY(-10px) scale(.96, 1.05); } }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 56px 0 0; padding: 24px; border-radius: 24px; background: rgba(255, 255, 255, 0.05); border: 1.5px solid var(--line); text-align: center; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font: 400 clamp(40px, 5vw, 60px)/1 var(--display); color: var(--gold-1); text-shadow: 0 4px 0 var(--ink); }
.stats dt { margin-top: 6px; font-weight: 900; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 34px; } .stats { grid-template-columns: repeat(3, 1fr); row-gap: 24px; } }

/* Worlds */
.worlds { --tint: #3a7a2e; background: linear-gradient(180deg, var(--night) 0%, color-mix(in srgb, var(--tint) 48%, var(--night)) 50%, var(--night) 100%); transition: --tint .8s; }
.showcase { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 36px; align-items: center; margin-top: 44px; }
.screen { position: relative; }
.screen-inner {
  position: relative; aspect-ratio: 5 / 3; overflow: hidden;
  border-radius: 26px; border: 10px solid #1b2150;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12), 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 80px -10px color-mix(in srgb, var(--tint) 70%, transparent);
  background: #111;
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
  transition: box-shadow .8s;
}
.screen-inner img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform 6s linear; }
.screen-inner img.swap { opacity: 0; }
.worlds.playing .screen-inner img { transform: scale(1.06); }
.screen-boss { position: absolute; right: -28px; bottom: -40px; width: 38%; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.5)); }
.screen-boss img { width: 100%; height: auto; animation: boss-bounce 1.6s ease-in-out infinite; }
.screen-boss.pop img { animation: boss-pop .6s var(--bounce), boss-bounce 1.6s .6s ease-in-out infinite; }
@keyframes boss-pop { from { transform: scale(.3) translateY(40px); opacity: 0; } }
.world-num { font: 400 16px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-1); }
.world-info h3 { font-size: clamp(34px, 4vw, 50px); margin-top: 6px; }
.world-info p#world-desc { margin-top: 12px; color: #e2e7ff; font-size: 19px; }
.world-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.world-meta span { padding: 6px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.28); font-weight: 900; font-size: 15px; }
.world-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 64px; }
.world-tab {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border: 0; border-radius: 14px; cursor: pointer;
  font: 800 15px var(--body); color: #fff;
  background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.world-tab i { width: 26px; height: 26px; border-radius: 8px; background: var(--c); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.35); flex: none; }
.world-tab:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.world-tab[aria-selected='true'] { background: rgba(255, 255, 255, 0.2); box-shadow: inset 0 0 0 2px var(--gold-1); }
.world-tab .bar { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 3px; border-radius: 2px; background: var(--gold-1); transform: scaleX(0); transform-origin: left; }
.worlds.playing .world-tab[aria-selected='true'] .bar { animation: fill var(--dwell, 5s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; gap: 56px; }
  .screen-inner { transform: none; border-width: 7px; border-radius: 20px; }
  .screen-boss { right: -8px; bottom: -34px; width: 34%; }
  .world-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 40px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .world-tabs::-webkit-scrollbar { display: none; }
  .world-tab { flex: none; scroll-snap-align: center; }
}

/* Towers */
.towers { background: linear-gradient(180deg, var(--night) 0%, #141a44 100%); }
.tower-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.tower-card {
  --c: #6cbcff;
  position: relative; padding: 18px 18px 22px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, #2c3777, #1d2559);
  box-shadow: 0 7px 0 var(--edge), 0 18px 36px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.1);
  transition: transform .25s var(--bounce), box-shadow .25s;
}
.tower-card::before { content: ''; position: absolute; left: 50%; top: 74px; width: 170px; height: 170px; margin: -85px 0 0 -85px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 55%, transparent), transparent 68%); opacity: .55; transition: opacity .25s, transform .25s; }
.tower-card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 12px 0 var(--edge), 0 26px 44px rgba(0, 0, 0, 0.38), inset 0 2px 0 rgba(255, 255, 255, 0.1); }
.tower-card:hover::before { opacity: 1; transform: scale(1.2); }
.tower-card img { position: relative; width: 130px; height: 130px; margin: 0 auto 4px; transition: transform .3s var(--bounce); }
.tower-card:hover img { transform: scale(1.1) translateY(-6px); }
.tower-card h3 { font-size: 22px; text-align: center; }
.tower-card p { margin-top: 6px; font-size: 15px; color: var(--dim); text-align: center; line-height: 1.45; }
.tower-card .mast { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.tower-card .mast span { padding: 4px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 900; background: rgba(0, 0, 0, 0.3); color: #fff; }
.tower-card .tag { position: absolute; top: 12px; right: 12px; padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 900; background: var(--blue-2); }
@media (max-width: 960px) { .tower-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .tower-grid { gap: 12px; } .tower-card { padding: 14px 12px 18px; } .tower-card img { width: 104px; height: 104px; } .tower-card p { font-size: 14px; } }
.combo-title { margin-top: 80px; font-size: clamp(28px, 3vw, 36px); text-align: center; }
.combos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.combo {
  display: grid; grid-template-columns: auto auto auto auto 1fr; align-items: center; gap: 4px 6px;
  padding: 18px 20px; border-radius: 22px; background: rgba(255, 255, 255, 0.06); border: 1.5px solid var(--line);
}
.combo img { width: 64px; height: 64px; }
.combo .op { font: 400 30px var(--display); color: var(--dim); }
.combo .res { font: 400 24px var(--display); justify-self: start; padding-left: 6px; transform: rotate(-4deg); }
.combo .res.zap { color: #ffe14a; text-shadow: 0 0 18px rgba(255, 225, 74, 0.6); }
.combo .res.ice { color: #9ae8ff; text-shadow: 0 0 18px rgba(143, 227, 255, 0.6); }
.combo .res.fire { color: #ff9a4a; text-shadow: 0 0 18px rgba(255, 110, 40, 0.6); }
.combo p { grid-column: 1 / -1; margin-top: 8px; font-size: 15px; color: var(--dim); }
@media (max-width: 960px) { .combos { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* Bosses */
.bosses { background: radial-gradient(80% 60% at 50% 0%, #3a1440 0%, #1a0c24 55%, #0c0716 100%); }
.bosses::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 70%, rgba(255, 60, 60, 0.12), transparent 40%), radial-gradient(circle at 85% 30%, rgba(160, 80, 255, 0.14), transparent 40%); pointer-events: none; }
.boss-grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 48px; }
.boss {
  --c: #ff5a5a;
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 14px 12px 18px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  transition: transform .25s var(--bounce), border-color .25s, background .25s;
}
.boss::before { content: ''; position: absolute; left: 50%; top: 42%; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 60%, transparent), transparent 65%); opacity: .45; transition: opacity .3s, transform .3s; pointer-events: none; }
.boss:hover, .boss:focus-within { transform: translateY(-8px) scale(1.03); border-color: color-mix(in srgb, var(--c) 70%, white); }
.boss:hover::before { opacity: .9; transform: scale(1.25); }
.boss img { position: relative; width: 100%; max-width: 170px; aspect-ratio: 1; transition: transform .3s var(--bounce); }
.boss:hover img { transform: scale(1.1) rotate(-3deg); }
.boss .where { position: relative; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.boss h3 { position: relative; font-size: 20px; margin-top: 4px; }
.boss p { position: relative; margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: #d6cfe6; }
.boss .weak { position: relative; margin-top: 8px; padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 900; color: #ffe9a8; background: rgba(255, 210, 63, 0.14); }
.boss .threat { position: relative; display: flex; gap: 3px; margin-top: 10px; }
.boss .threat i { width: 12px; height: 12px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); }
.boss .threat i.on { background: var(--c); box-shadow: 0 0 8px var(--c); }
.boss.final { grid-column: span 1; background: linear-gradient(180deg, rgba(199, 125, 255, 0.24), rgba(80, 30, 140, 0.12)); border-color: rgba(199, 125, 255, 0.5); }
.boss.final .where { color: var(--purple-1); }
@media (max-width: 1060px) { .boss-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .boss-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .boss p { font-size: 13px; } }

/* More */
.more { background: linear-gradient(180deg, #0c0716 0%, var(--night) 18%); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.feature { padding: 24px; border-radius: 22px; background: linear-gradient(180deg, #2a3574, #1f285e); box-shadow: 0 6px 0 var(--edge), inset 0 2px 0 rgba(255, 255, 255, 0.1); transition: transform .25s var(--bounce); }
.feature:hover { transform: translateY(-6px); }
.feature img { width: 58px; height: 58px; margin-bottom: 14px; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.25)); }
.feature p { margin-top: 8px; color: var(--dim); font-size: 16px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .feature-grid { grid-template-columns: 1fr; } }

/* Parents: the one bright section */
.parents { background: linear-gradient(180deg, #fff8e8 0%, #ffefc9 100%); color: var(--ink); }
.parents::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 28px; background: var(--night); clip-path: polygon(0 0, 100% 0, 100% 40%, 94% 40%, 94% 100%, 86% 100%, 86% 55%, 74% 55%, 74% 20%, 62% 20%, 62% 80%, 50% 80%, 50% 35%, 38% 35%, 38% 70%, 26% 70%, 26% 10%, 14% 10%, 14% 60%, 6% 60%, 6% 30%, 0 30%); }
.parents .kicker { color: #9a5b00; background: rgba(255, 184, 28, 0.2); border-color: rgba(176, 111, 0, 0.3); }
.parents h2 { color: var(--ink); }
.parents-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding: 14px 16px 14px 58px; border-radius: 16px; background: #fff; box-shadow: 0 4px 0 #ecd9a8, 0 10px 24px rgba(120, 80, 0, 0.08); color: #4a4258; font-weight: 700; }
.checks li b { color: var(--ink); font-weight: 900; }
.checks li::before { content: ''; position: absolute; left: 14px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 9px; background: linear-gradient(var(--green-1), var(--green-2)) ; box-shadow: 0 3px 0 var(--green-3); }
.checks li::after { content: ''; position: absolute; left: 25px; top: 50%; width: 8px; height: 14px; margin-top: -10px; border: solid #fff; border-width: 0 4px 4px 0; transform: rotate(45deg); }
.text-link { display: inline-block; margin-top: 24px; font-weight: 900; color: #1f6ad0; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.note { position: relative; margin: 0; padding: 36px 30px 30px; border-radius: 28px; background: var(--night); color: #fff; box-shadow: 0 10px 0 #0a0d26, 0 30px 60px rgba(40, 30, 0, 0.25); transform: rotate(1.5deg); }
.note img { position: absolute; top: -70px; right: 18px; width: 120px; height: 120px; animation: bob 3s ease-in-out infinite; }
.note blockquote { margin: 0; font: 400 clamp(24px, 2.5vw, 30px)/1.25 var(--display); }
.note figcaption { margin-top: 16px; font-weight: 900; color: var(--gold-1); letter-spacing: .04em; }
@media (max-width: 900px) { .parents-wrap { grid-template-columns: 1fr; gap: 90px; } .note { transform: none; } }

/* Install */
.install { background: radial-gradient(90% 60% at 50% 100%, #26307a 0%, var(--night) 70%); text-align: center; }
.install .lede { margin-inline: auto; }
.install-cta { margin-top: 30px; }
.install-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; text-align: left; }
.how-card { padding: 24px; border-radius: 22px; background: rgba(255, 255, 255, 0.06); border: 1.5px solid var(--line); transition: border-color .3s, background .3s; }
.how-card.mine { background: rgba(126, 234, 92, 0.1); border-color: rgba(126, 234, 92, 0.6); }
.how-card.mine h3::after { content: 'Your device'; margin-left: 10px; padding: 3px 8px; border-radius: 8px; vertical-align: middle; font: 900 12px var(--body); background: var(--green-2); }
.how-card ol { margin: 14px 0 0; padding-left: 22px; color: var(--dim); display: grid; gap: 6px; }
.how-card b { color: #fff; }
.kbd { display: inline-block; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.15); }
@media (max-width: 860px) { .install-grid { grid-template-columns: 1fr; } }

/* Finale */
.finale { min-height: 640px; display: grid; place-items: center; overflow: hidden; isolation: isolate; text-align: center; padding: 120px 0; }
.finale-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.1); filter: saturate(1.2) blur(1px); }
.finale-shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, rgba(40, 14, 70, 0.72) 0%, rgba(12, 7, 22, 0.95) 80%), linear-gradient(180deg, var(--night) 0%, transparent 20%); }
.finale-inner { display: flex; flex-direction: column; align-items: center; }
.finale-boss { width: min(440px, 82vw); height: auto; margin-bottom: -10px; filter: drop-shadow(0 0 40px rgba(199, 125, 255, 0.55)); animation: hover-boss 4s ease-in-out infinite; }
@keyframes hover-boss { 50% { transform: translateY(-16px) rotate(-2deg); } }
.finale h2 { font-size: clamp(40px, 6.5vw, 80px); text-shadow: 0 5px 0 var(--ink); }
.finale p { margin: 16px 0 36px; font-size: 20px; color: #e6dcff; }

/* Footer */
.foot { padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); background: var(--deep); color: var(--dim); font-size: 15px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.foot-inner img { height: 30px; width: auto; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: #fff; text-decoration: none; font-weight: 800; }
.foot a:hover { text-decoration: underline; }
.foot p { margin-left: auto; }
@media (max-width: 700px) { .foot p { margin-left: 0; width: 100%; } }

/* ------------------------------------------------------------------ reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
