/* Idle Planet Tycoon website (site/build.mjs, site/home.mjs). Styled like the game's own UI:
   bright candy colours, thick ink outlines with a hard drop shadow, white catalogue cards with
   3D game icons popping out, ribbon titles, outlined headings and floating game objects. */
:root {
  --ink: #2a1d4a; --ink2: #1b0d4a; --text: #fff; --body: #5b4d86;
  --gold: #ffd84a; --gold2: #ff9f1c; --cyan: #5fd8ff; --pink: #ff6fc8; --violet: #6a3cff; --green: #5fd86b;
  --lilac: #f1ebff;
  --head: 'Baloo 2', 'Nunito', system-ui, sans-serif; --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .9, .25, 1); --pop: cubic-bezier(.2, 1.5, .4, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--ink2); color: var(--text); font: 700 17px/1.6 var(--font); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.06; margin: 0; }
h2 { font-size: clamp(34px, 5vw, 58px); }
h3 { font-size: 23px; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; position: relative; }
.wrap--narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; padding: 8px 14px; border-radius: 10px; background: var(--gold); color: var(--ink); }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* Outlined game lettering. */
.stroke { color: #fff; -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); letter-spacing: .005em; }
.pill { display: inline-block; justify-self: center; padding: 5px 18px 7px; border: 3px solid var(--ink); border-radius: 999px; background: linear-gradient(180deg, #fff1a8, var(--gold)); color: var(--ink);
  font: 800 15px/1.1 var(--head); letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 4px 0 var(--ink); rotate: -2deg; }
.pill--light { background: #fff; }
.lead { font-size: clamp(17px, 1.9vw, 21px); }
.sec-head { text-align: center; max-width: 780px; margin: 0 auto 54px; display: grid; gap: 14px; justify-items: center; }
.sec-head p:not(.pill) { font-size: 19px; }

/* Waves between sections: drawn at the top of a section, over the one above. */
section { position: relative; }
.wave { position: absolute; left: 0; right: 0; top: 0; translate: 0 calc(-100% + 2px); width: 100%; height: clamp(40px, 6vw, 90px); pointer-events: none; z-index: 2; }
.wave--show { fill: #6a3cff; } .wave--worlds { fill: #fff4dc; } .wave--feat { fill: #3f5bff; } .wave--gal { fill: var(--lilac); } .wave--cta { fill: #7a3cff; }

/* Floating game objects. */
.fl { position: absolute; z-index: 1; width: 92px; filter: drop-shadow(0 10px 10px rgba(30, 10, 80, .35)); animation: float 5.5s ease-in-out infinite; pointer-events: none; }
@keyframes float { 50% { translate: 0 -16px; rotate: 6deg; } }

/* ── Buttons ── */
.btn { --b: var(--ink); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 10px 28px 12px;
  border: 3.5px solid var(--b); border-radius: 18px; font: 800 20px/1 var(--head); color: var(--ink); text-decoration: none; cursor: pointer; overflow: hidden;
  box-shadow: 0 6px 0 var(--b), 0 14px 26px rgba(20, 8, 60, .35); transition: transform .18s var(--pop), box-shadow .18s, filter .2s; }
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 9px 0 var(--b), 0 18px 32px rgba(20, 8, 60, .4); filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--b), 0 6px 14px rgba(20, 8, 60, .35); }
.btn--gold { background: linear-gradient(180deg, #fff3a6, var(--gold) 45%, var(--gold2)); }
.btn--gold::before { content: ''; position: absolute; inset: 4px 10px auto; height: 36%; border-radius: 12px; background: rgba(255, 255, 255, .55); pointer-events: none; }
.btn--sm { min-height: 42px; padding: 6px 18px 8px; font-size: 17px; border-radius: 14px; box-shadow: 0 4px 0 var(--b); }
.btn--lg { min-height: 66px; padding: 12px 42px 14px; font-size: 25px; border-radius: 22px; }
.btn--shine::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent); animation: shine 3.4s ease-in-out infinite 1.2s; pointer-events: none; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn--store { --b: #000; background: #111118; color: #fff; text-align: left; padding: 8px 22px 8px 16px; border-color: var(--ink); box-shadow: 0 6px 0 var(--ink), 0 14px 26px rgba(20, 8, 60, .35); }
.btn--store span { display: grid; font: 800 22px/1 var(--head); }
.btn--store small { font: 700 11.5px/1.25 var(--font); opacity: .85; }
.btn--store .ico-apple { width: 28px; height: 28px; }
.btn--block { width: 100%; }

/* ── Nav ── */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 18px; padding: 12px max(20px, calc((100% - 1180px) / 2)); transition: background .3s, box-shadow .3s, padding .3s; }
.nav.solid { background: rgba(43, 20, 120, .88); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 4px 0 rgba(27, 13, 74, .6); padding-top: 8px; padding-bottom: 8px; }
.nav__brand img { width: 118px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); transition: width .3s; }
.nav.solid .nav__brand img { width: 96px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a, .nav__lang { padding: 8px 14px; border-radius: 12px; color: #fff; text-decoration: none; font: 800 17px/1 var(--head); text-shadow: 0 2px 0 var(--ink); transition: background .2s, color .2s, transform .2s var(--pop); }
.nav__links a:hover, .nav__lang:hover { background: rgba(255, 255, 255, .16); color: var(--gold); transform: translateY(-2px); }
.nav__end { display: flex; align-items: center; gap: 8px; }
.nav__lang { border: 2.5px solid rgba(255, 255, 255, .55); font-size: 14px; }
@media (max-width: 860px) { .nav__links { display: none; } .nav__end { margin-left: auto; } }

/* ── Hero ── */
.hero { min-height: max(660px, 100svh); display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; padding: 110px 0 130px; }
.hero__sky { position: absolute; inset: 0; z-index: -2; }
.hero__sky img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { scale: 1.06; } }
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__shade { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 50% 60%, rgba(70, 30, 160, .45), transparent 75%), linear-gradient(180deg, rgba(40, 16, 110, .45), transparent 24%, transparent 72%, rgba(106, 60, 255, .55)); }
.hero__char { position: absolute; bottom: 30px; z-index: -1; height: min(56vh, 560px); width: auto; filter: drop-shadow(0 20px 24px rgba(30, 10, 80, .5)); }
.hero__char--l { left: max(-60px, calc(50% - 760px)); animation: rise 1.1s var(--pop) both .35s, bob 4.2s ease-in-out infinite 1.6s; }
.hero__char--r { right: max(-60px, calc(50% - 760px)); animation: rise 1.1s var(--pop) both .5s, bob 4.6s ease-in-out infinite 1.9s; }
@keyframes rise { from { opacity: 0; translate: 0 60px; } }
@keyframes bob { 50% { translate: 0 -12px; } }
@media (max-width: 980px) { .hero__char { height: 32vh; opacity: .6; } .hero__char--l { left: -70px; } .hero__char--r { right: -70px; } }
.floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fl--1 { left: 13%; top: 20%; width: 96px; } .fl--2 { right: 15%; top: 17%; width: 78px; animation-delay: -1.5s; }
.fl--3 { right: 9%; top: 47%; width: 104px; animation-delay: -3s; } .fl--4 { left: 8%; top: 50%; width: 70px; animation-delay: -2s; }
.fl--5 { left: 24%; bottom: 13%; width: 84px; animation-delay: -4s; }
@media (max-width: 760px) { .fl--1 { left: 4%; top: 16%; width: 60px; } .fl--2 { right: 5%; top: 14%; width: 52px; } .fl--3, .fl--4, .fl--5 { display: none; } }
.hero__in { display: grid; justify-items: center; gap: 18px; max-width: 900px; }
.hero__logo { width: min(240px, 56vw); filter: drop-shadow(0 14px 28px rgba(30, 10, 80, .6)); animation: logo-float 5s ease-in-out infinite; }
@keyframes logo-float { 50% { translate: 0 -8px; rotate: -1.5deg; } }
.hero h1 { font-size: clamp(40px, 6.6vw, 78px); }
.hero .lead { max-width: 680px; text-shadow: 0 2px 0 var(--ink), 0 4px 14px rgba(30, 10, 80, .8); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 6px 0 0; list-style: none; }
.chips li { padding: 6px 15px; border-radius: 999px; background: #fff; color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); font: 800 15px/1.2 var(--head); }
.chips li::before { content: '★ '; color: var(--gold2); }

/* ── Showcase (vivid violet → pink) ── */
.showcase { padding: 90px 0 120px; background: linear-gradient(165deg, #6a3cff 0%, #9b3cf2 50%, #ff5fb8 100%); overflow-x: clip; }
.rays { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 0deg at 70% 50%, rgba(255, 255, 255, .1) 0 8deg, transparent 8deg 22deg); -webkit-mask: radial-gradient(circle at 70% 50%, #000 0, transparent 60%); mask: radial-gradient(circle at 70% 50%, #000 0, transparent 60%); }
.fl--s1 { left: 4%; bottom: 10%; width: 110px; } .fl--s2 { right: 4%; top: 12%; width: 100px; animation-delay: -2.5s; }
.showcase__in { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 60px; }
.showcase__txt { display: grid; gap: 18px; max-width: 540px; justify-items: start; }
.showcase__txt .pill { justify-self: start; }
.showcase__txt p:not(.pill) { font-size: 21px; text-shadow: 0 2px 0 rgba(42, 29, 74, .5); }
.showcase__dots { display: flex; gap: 10px; margin-top: 8px; }
.showcase__dots button { width: 16px; height: 16px; padding: 0; border-radius: 50%; border: 3px solid var(--ink); background: #fff; cursor: pointer; transition: width .3s var(--ease), background .3s; }
.showcase__dots button[aria-selected="true"] { width: 40px; border-radius: 10px; background: var(--gold); }
.phone { position: relative; width: min(340px, 78vw); z-index: 1; }
.phone__frame { position: relative; aspect-ratio: 430 / 932; padding: 12px; border-radius: 52px; background: linear-gradient(145deg, #ffffff, #e9e1ff); border: 4px solid var(--ink); box-shadow: 0 10px 0 var(--ink), 0 40px 70px rgba(40, 10, 100, .5); }
.phone__screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #000; border: 3px solid var(--ink); }
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.06; transition: opacity .8s var(--ease), scale 3.4s var(--ease); }
.phone__screen img.on { opacity: 1; scale: 1; }
.phone__notch { position: absolute; top: 24px; left: 50%; translate: -50% 0; width: 88px; height: 24px; border-radius: 14px; background: #111; }
.phone__orbit { position: absolute; inset: -16% -32%; pointer-events: none; z-index: -1; }
.phone__orbit i { position: absolute; inset: 0; border: 3px dashed rgba(255, 255, 255, .55); border-radius: 50%; rotate: -16deg; animation: spin 40s linear infinite; }
.phone__orbit i + i { inset: 9% 7%; border-color: rgba(255, 216, 74, .7); animation-duration: 28s; animation-direction: reverse; }
.phone__orbit i::after { content: ''; position: absolute; top: 50%; left: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); }
.phone__orbit i + i::after { background: var(--cyan); left: auto; right: -9px; top: 30%; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .showcase__in { grid-template-columns: 1fr; justify-items: center; text-align: center; } .showcase__txt { justify-items: center; } .showcase__txt .pill { justify-self: center; } .showcase__dots { justify-content: center; } }

/* ── Worlds (warm cream, colourful framed cards) ── */
.worlds { padding: 80px 0 120px; color: var(--ink); background: radial-gradient(circle, rgba(255, 166, 120, .22) 2px, transparent 2.5px) 0 0 / 28px 28px, linear-gradient(180deg, #fff4dc, #ffe3f1); }
.worlds .sec-head p:not(.pill) { color: var(--body); }
.worlds__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.world { --c1: #ff8ad8; --c2: #9a4cff; position: relative; padding: 12px 12px 16px; border-radius: 34px; background: linear-gradient(160deg, var(--c1), var(--c2)); border: 4px solid var(--ink);
  box-shadow: 0 9px 0 var(--ink), 0 26px 46px rgba(90, 30, 140, .28); transition: transform .35s var(--ease); }
.world::before { content: ''; position: absolute; inset: 5px; border-radius: 28px; border: 2px solid rgba(255, 255, 255, .45); pointer-events: none; }
.world--farm { --c1: #9df07a; --c2: #2fb06a; } .world--city { --c1: #7fe4ff; --c2: #3a6cff; }
.world__pic { aspect-ratio: 1 / 1.05; overflow: hidden; border-radius: 24px; border: 3.5px solid var(--ink); background: #2a1d6a; }
.world__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transition: scale .9s var(--ease); }
.world:hover .world__pic img { scale: 1.07; }
.ribbon { position: relative; z-index: 1; display: flex; justify-content: center; margin: -28px 0 0; }
.ribbon span { position: relative; padding: 7px 26px 9px; border: 3.5px solid var(--ink); border-radius: 14px; background: linear-gradient(180deg, #fff3a6, var(--gold) 50%, var(--gold2)); color: var(--ink); font-size: 26px; box-shadow: 0 5px 0 var(--ink); white-space: nowrap; }
.ribbon span::before, .ribbon span::after { content: ''; position: absolute; top: 12px; z-index: -1; width: 34px; height: 100%; background: #e0801a; border: 3.5px solid var(--ink); }
.ribbon span::before { left: -24px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 36% 50%); }
.ribbon span::after { right: -24px; clip-path: polygon(0 0, 100% 0, 64% 50%, 100% 100%, 0 100%); }
.world__txt { margin-top: 14px; padding: 16px 18px 14px; border-radius: 22px; background: #fff; border: 3.5px solid var(--ink); display: grid; gap: 12px; }
.world__txt p { color: var(--body); font-size: 16px; }
.world__chips { display: flex; gap: 8px; }
.chip-ico { width: 48px; height: 48px; padding: 5px; border-radius: 14px; background: var(--lilac); border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
@media (max-width: 900px) { .worlds__grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; gap: 40px; } }

/* ── Features (electric blue → violet, white catalogue cards) ── */
.features { padding: 80px 0 130px; background: radial-gradient(circle, rgba(255, 255, 255, .5) 1.2px, transparent 1.8px) 0 0 / 46px 46px, radial-gradient(circle, rgba(255, 255, 255, .3) 1px, transparent 1.6px) 23px 23px / 46px 46px, linear-gradient(180deg, #3f5bff, #6a3cff); }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 54px 22px; }
.feat { --c1: #ff9fd8; --c2: #d84ab0; position: relative; display: flex; flex-direction: column; border-radius: 28px; background: #fff; border: 4px solid var(--ink); color: var(--ink);
  box-shadow: 0 8px 0 var(--ink), 0 20px 36px rgba(20, 10, 80, .35); transition: transform .3s var(--pop); }
.feat:hover { transform: translateY(-8px) rotate(-1.2deg); }
.feat__top { position: relative; height: 96px; border-radius: 23px 23px 0 0; border-bottom: 4px solid var(--ink); overflow: visible;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .16) 0 12px, transparent 12px 24px), linear-gradient(135deg, var(--c1), var(--c2)); }
.feat__art { position: absolute; left: 50%; bottom: -34px; translate: -50% 0; width: 118px; height: auto; filter: drop-shadow(0 6px 0 rgba(42, 29, 74, .3)); transition: transform .4s var(--pop); }
.feat:hover .feat__art { transform: scale(1.12) rotate(-6deg); }
.feat__body { padding: 44px 18px 22px; text-align: center; display: grid; gap: 8px; }
.feat__body h3 { font-size: 22px; }
.feat__body p { color: var(--body); font-size: 15.5px; line-height: 1.5; }
.feat--room { --c1: #ffb0e0; --c2: #ff5fb8; } .feat--rift { --c1: #c99bff; --c2: #7a3cff; } .feat--harbor { --c1: #8fe9ff; --c2: #3a8cff; } .feat--star { --c1: #b4f58a; --c2: #3fc25a; }
.feat--crew { --c1: #ffd08a; --c2: #ff8a3c; } .feat--boss { --c1: #b8a0ff; --c2: #5a3cd8; } .feat--moon { --c1: #fff08a; --c2: #ffb52e; } .feat--cloud { --c1: #9ff0e0; --c2: #2fbfa8; }
@media (max-width: 1040px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features__grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; } }

/* ── Gallery + platforms + FAQ (soft lilac) ── */
.gallery { padding: 80px 0 40px; color: var(--ink); background: radial-gradient(circle, rgba(138, 108, 255, .16) 2px, transparent 2.5px) 0 0 / 30px 30px, var(--lilac); }
.gallery .sec-head p:not(.pill) { color: var(--body); }
.gallery__track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(20px, calc((100% - 1180px) / 2)) 40px; scrollbar-width: thin; scrollbar-color: var(--violet) transparent; }
.gallery__item { flex: none; width: clamp(200px, 22vw, 260px); padding: 0; border: 4px solid var(--ink); border-radius: 30px; overflow: hidden; background: #000; cursor: zoom-in; scroll-snap-align: center;
  box-shadow: 0 8px 0 var(--ink), 0 22px 36px rgba(60, 30, 140, .25); transition: transform .35s var(--pop); }
.gallery__item:nth-child(odd) { transform: translateY(20px) rotate(1.5deg); }
.gallery__item:nth-child(even) { transform: rotate(-1.5deg); }
.gallery__item:hover { transform: translateY(-8px) rotate(0) scale(1.03); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 460px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 8, 60, .85); backdrop-filter: blur(6px); }
.lightbox img { max-height: 90vh; width: auto; border-radius: 30px; border: 4px solid var(--ink); }
.lightbox[open] img { animation: zoom-in .35s var(--pop); }
@keyframes zoom-in { from { scale: .85; opacity: 0; } }
.lightbox__x { position: absolute; top: -16px; right: -16px; width: 48px; height: 48px; border-radius: 50%; border: 3.5px solid var(--ink); background: #ff5f7e; color: #fff; font: 800 20px/1 var(--head); cursor: pointer; box-shadow: 0 4px 0 var(--ink); }
.platforms { margin-top: 50px; }
.platforms__in { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; padding: 34px 40px 34px 120px; border-radius: 34px;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .18) 0 14px, transparent 14px 28px), linear-gradient(180deg, #ffe066, #ffa62e); border: 4px solid var(--ink); box-shadow: 0 9px 0 var(--ink), 0 24px 40px rgba(160, 80, 0, .25); }
.platforms__coin { position: absolute; left: 22px; top: 50%; translate: 0 -50%; width: 84px; animation: coin-spin 4s ease-in-out infinite; }
@keyframes coin-spin { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }
.platforms__in h2 { font-size: clamp(28px, 3.6vw, 42px); }
.platforms__in p { color: var(--ink); margin-top: 8px; }
.plat-list { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.plat-list li { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 18px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); color: var(--ink); }
.plat-list li:not(.on) { background: #f4eefc; color: #7a6aa8; }
.plat-list li.on { background: linear-gradient(180deg, #b9f59a, #5fd86b); }
.plat-list svg { width: 26px; height: 26px; }
.plat-list span { display: grid; font: 800 18px/1.1 var(--head); }
.plat-list small { font: 800 12.5px/1.3 var(--font); }
@media (max-width: 700px) { .platforms__in { padding: 90px 22px 26px; text-align: center; justify-content: center; } .platforms__coin { left: 50%; top: 16px; translate: -50% 0; } .plat-list { justify-content: center; } }
.faq { padding: 70px 0 140px; color: var(--ink); background: radial-gradient(circle, rgba(138, 108, 255, .16) 2px, transparent 2.5px) 0 0 / 30px 30px, var(--lilac); }
.qa { margin-bottom: 16px; border-radius: 22px; background: #fff; border: 3.5px solid var(--ink); box-shadow: 0 6px 0 var(--ink); overflow: hidden; transition: transform .25s var(--pop); }
.qa:hover { transform: translateY(-2px); }
.qa summary { position: relative; padding: 18px 64px 18px 22px; cursor: pointer; list-style: none; font: 800 20px/1.3 var(--head); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(180deg, #fff3a6, var(--gold) 50%, var(--gold2)); border: 3px solid var(--ink); color: var(--ink); font-size: 24px; transition: rotate .3s var(--pop); }
.qa[open] summary::after { rotate: 45deg; }
.qa[open] summary { background: #fff7d6; border-bottom: 3px dashed rgba(42, 29, 74, .2); }
.qa p { padding: 14px 22px 20px; color: var(--body); animation: fade-down .35s var(--ease); }
.qa a { color: #6a3cff; }
@keyframes fade-down { from { opacity: 0; translate: 0 -6px; } }

/* ── Final call to action: a bright banner with the crew on a postcard ── */
.cta { padding: 110px 0 120px; overflow-x: clip; background: linear-gradient(180deg, #7a3cff 0%, #b23ce8 55%, #ff5fb8 100%); }
.fl--c1 { left: 4%; top: 14%; width: 96px; } .fl--c2 { right: 5%; bottom: 10%; width: 92px; animation-delay: -2s; }
.cta__in { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 56px; }
.cta__txt { display: grid; gap: 18px; justify-items: start; }
.cta__txt p { font-size: 21px; text-shadow: 0 2px 0 rgba(42, 29, 74, .5); }
.cta__txt .hero__cta { justify-content: flex-start; }
.postcard { margin: 0; width: min(360px, 80vw); aspect-ratio: 4 / 4.6; overflow: hidden; border-radius: 30px; border: 4px solid var(--ink); background: #0f1640; rotate: 2.5deg;
  box-shadow: 0 10px 0 var(--ink), 0 30px 60px rgba(40, 10, 100, .45); }
.postcard img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 82%; }
@media (max-width: 860px) { .cta__in { grid-template-columns: 1fr; justify-items: center; text-align: center; } .cta__txt { justify-items: center; } .cta__txt .hero__cta { justify-content: center; } }

/* ── Footer ── */
.foot { position: relative; padding: 46px 0 28px; background: var(--ink2); border-top: 4px solid #3a2a8a; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot__brand { display: grid; gap: 10px; max-width: 360px; }
.foot__brand img { width: 140px; }
.foot__brand p, .foot__copy { color: #c2b8ee; font-size: 14.5px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: start; }
.foot__links a { color: #fff; text-decoration: none; font-size: 15px; }
.foot__links a:hover { color: var(--gold); }
.foot__copy { text-align: center; margin-top: 30px; font-size: 13px; }

/* ── Download page ── */
.dl { position: relative; min-height: 100svh; padding: 140px 0 80px; overflow: clip; background: linear-gradient(165deg, #6a3cff 0%, #9b3cf2 55%, #ff5fb8 100%); }
.dl__stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.dl .wrap { position: relative; z-index: 1; }
.dl__head { text-align: center; display: grid; gap: 16px; justify-items: center; margin-bottom: 64px; }
.dl__head h1 { font-size: clamp(42px, 6.4vw, 72px); }
.dl__head .lead { text-shadow: 0 2px 0 rgba(42, 29, 74, .6); }
.dl__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 22px; align-items: stretch; }
.pcard { --c1: #c9c0e6; --c2: #9c90c8; position: relative; display: grid; gap: 8px; align-content: start; justify-items: center; text-align: center; padding: 0 22px 26px; border-radius: 30px; background: #fff; color: var(--ink);
  border: 4px solid var(--ink); box-shadow: 0 9px 0 var(--ink), 0 26px 46px rgba(40, 10, 100, .35); overflow: hidden; transition: transform .35s var(--ease); }
.pcard::before { content: ''; position: absolute; inset: 0 0 auto; height: 74px; border-bottom: 4px solid var(--ink);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .2) 0 12px, transparent 12px 24px), linear-gradient(135deg, var(--c1), var(--c2)); }
.pcard > * { position: relative; }
.pcard h2 { font-size: 32px; }
.pcard__note { color: var(--body); font-size: 15px; }
.pcard__ico { width: 92px; height: 92px; display: grid; place-items: center; margin: 24px 0 6px; border-radius: 28px; background: #fff; border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); color: var(--ink); }
.pcard__ico svg { width: 48px; height: 48px; }
.pcard__badge { margin: 8px 0 4px; padding: 6px 16px; border-radius: 999px; font: 800 15px/1.2 var(--head); background: #f1ebff; color: #7a6aa8; border: 3px solid var(--ink); }
.pcard__badge--live { background: linear-gradient(180deg, #b9f59a, #5fd86b); color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.pcard--live { --c1: #7fe4ff; --c2: #3a6cff; }
.pcard--live .pcard__ico { background: #111118; color: #fff; }
.pcard--live .btn { margin-top: 14px; }
.pcard__glow { position: absolute !important; inset: -30% -30% auto; height: 70%; background: radial-gradient(circle, rgba(255, 255, 255, .6), transparent 60%); animation: glow 4s ease-in-out infinite; pointer-events: none; }
@keyframes glow { 50% { opacity: .4; scale: 1.15; } }
.pcard--soon .pcard__ico { color: #9c90c8; }
.dl__note { text-align: center; margin-top: 50px; text-shadow: 0 2px 0 rgba(42, 29, 74, .6); }
.dl__note a { color: #fff3a6; }
.dl__back { text-align: center; margin-top: 18px; }
.dl__back a { display: inline-block; padding: 8px 18px; border-radius: 14px; background: #fff; color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); text-decoration: none; font: 800 17px/1 var(--head); }
@media (max-width: 1000px) { .dl__grid { grid-template-columns: repeat(2, 1fr); } .pcard--live { grid-column: 1 / -1; } }
@media (max-width: 520px) { .dl__grid { grid-template-columns: 1fr; } }
.nf .dl__head { min-height: 60vh; align-content: center; }

/* ── Scroll reveal (site.js adds .in; without JS everything shows) ── */
.js [data-reveal] { opacity: 0; translate: 0 40px; scale: .96; transition: opacity .7s var(--ease) var(--d, 0ms), translate .8s var(--pop) var(--d, 0ms), scale .8s var(--pop) var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; translate: 0 0; scale: 1; }
.js .hero [data-reveal] { translate: 0 22px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; translate: none; scale: 1; }
}
.nav__lang, .nav .btn--sm { white-space: nowrap; }
@media (max-width: 480px) { .nav { gap: 8px; } .nav__brand img { width: 96px; } .nav__lang { padding: 7px 10px; font-size: 13px; } .nav .btn--sm { padding: 6px 14px 8px; font-size: 15px; } .hero__logo { display: none; } }
