/* Tail Crew home page (site/index.html), on top of site.css (tokens, header, footer, buttons, account form, FAQ).
   Mobile first and calm: white type, one gold accent, real gameplay and the games' own item art; the element effects
   (fire, water, leaves, lightning) are pure CSS particle layers (.fx below). Swipe carousels on phones, grids from 900px. */

#main { overflow-x: clip; }
.h-wrap { width: min(1160px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- hero ---------- */
.h-hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(calc(100svh - var(--header-h)), 860px); display: grid; align-items: end; background: #04060f; color: #fff; }
.h-hero-media, .h-hero-media img, .h-hero-media .clip-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.h-hero-media { z-index: -3; }
.h-hero-media .clip-video { opacity: 0; transition: opacity 1s var(--ease); }
.h-hero-media .clip-video.on { opacity: 1; }
.h-hero::before { content: ''; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(4, 6, 15, .5) 0%, rgba(4, 6, 15, 0) 22%, rgba(4, 6, 15, 0) 42%, rgba(4, 6, 15, .78) 72%, #04060f 100%); }
.h-fxc { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.h-hero .h-fxc { z-index: -1; }
.h-hero-inner { padding: 120px 0 calc(36px + env(safe-area-inset-bottom)); display: grid; gap: 16px; justify-items: start; }
.h-new { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: var(--radius-pill); text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-weight: 800; font-size: 14px; }
.h-new b { padding: 4px 9px; border-radius: var(--radius-pill); background: var(--gold); color: var(--on-gold); font: 900 11px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.h-new svg { width: 14px; height: 14px; opacity: .7; }
.h-title { margin: 0; font: 400 clamp(2.9rem, 1.9rem + 6vw, 6rem)/.95 var(--font-display); letter-spacing: .5px; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
.h-title em { font-style: normal; color: var(--gold); }
.h-lead { margin: 0; max-width: 30ch; font-size: clamp(1.05rem, .98rem + .4vw, 1.3rem); font-weight: 700; color: rgba(255, 255, 255, .86); }
.h-hero .btn-primary { margin-top: 6px; }
.h-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 800; color: rgba(255, 255, 255, .72); }
.h-trust li { display: inline-flex; align-items: center; gap: 7px; }
.h-trust svg { width: 16px; height: 16px; color: var(--gold); }
@media (max-width: 559.98px) { .h-hero .btn-primary { width: 100%; } }
.h-hero .motion-btn { top: auto; bottom: calc(18px + env(safe-area-inset-bottom)); right: var(--gutter); width: 40px; min-height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
.h-hero .motion-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 559.98px) { .h-hero .motion-btn { top: 14px; bottom: auto; } }

/* ---------- numbers ---------- */
.h-stats { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 8px 0; list-style: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.h-stats li { padding: 18px 8px; text-align: center; }
.h-stats li:nth-child(odd) { border-right: 1px solid var(--border); }
.h-stats li:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
.h-stats b { display: block; font: 400 clamp(2rem, 1.6rem + 1.8vw, 2.8rem)/1 var(--font-display); color: #fff; }
.h-stats span { display: block; margin-top: 6px; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
@media (min-width: 760px) { .h-stats { grid-template-columns: repeat(4, 1fr); } .h-stats li { border: 0 !important; } .h-stats li + li { border-left: 1px solid var(--border) !important; } }

/* ---------- sections ---------- */
.h-sec { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.h-head { max-width: 640px; margin: 0 0 28px; }
.h-head.c { text-align: center; margin-inline: auto; }
.h-eyebrow, .h-head .h-eyebrow, .h-copy > .h-eyebrow { margin: 0 0 10px; max-width: none; font: 900 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--c, var(--gold)); }
.h-head h2, .h-copy h2 { margin: 0 0 12px; font: 400 clamp(2.1rem, 1.5rem + 3vw, 3.6rem)/1 var(--font-display); letter-spacing: .3px; color: #fff; }
.h-head p, .h-copy > p { margin: 0; color: var(--text-muted); font-weight: 700; font-size: clamp(1rem, .96rem + .3vw, 1.15rem); max-width: 46ch; }
.h-head.c p { margin-inline: auto; }

/* ---------- Boss Island ---------- */
.h-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin: 0 0 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--border); }
.h-seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--text-muted); font: 900 15px var(--font-body); cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s; }
.h-seg button[aria-selected="true"] { background: #fff; color: #0a0f24; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
@media (max-width: 420px) { .h-seg { display: grid; width: 100%; } .h-seg button { padding: 0 8px; font-size: 14px; } }
.h-stage { position: relative; border-radius: 20px; overflow: hidden; background: #0a1230; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.h-stage .clip { border-radius: 0; border: 0; box-shadow: none; }
.h-stage .h-panel[hidden] { display: none; }
.h-stage .h-fxc { z-index: 1; }
.h-stage .clip-btn { z-index: 3; }
.h-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 16px 0 0; padding: 0; list-style: none; border-radius: 16px; overflow: hidden; background: var(--border); }
.h-facts li { padding: 14px 16px; background: var(--bg-alt); }
.h-facts b { display: block; font: 400 20px/1.1 var(--font-display); color: #fff; }
.h-facts span { display: block; margin-top: 3px; font-size: 13px; font-weight: 800; color: var(--text-muted); }
@media (min-width: 760px) { .h-facts { grid-template-columns: repeat(4, 1fr); } }

/* ---------- feature cards: a swipe row on phones, a grid from 900px ---------- */
.h-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 16px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; overscroll-behavior-x: contain; }
.h-rail::-webkit-scrollbar { display: none; }
.h-card { position: relative; margin: 0; scroll-snap-align: start; border-radius: 20px; overflow: hidden; background: #0a1230; aspect-ratio: 4 / 5; isolation: isolate; }
.h-card .clip { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; border: 0; box-shadow: none; }
.h-card::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(4, 6, 15, 0) 45%, rgba(4, 6, 15, .92)); }
.h-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px; color: #fff; pointer-events: none; }
.h-card figcaption small { display: block; margin-bottom: 6px; font: 900 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c, var(--gold)); }
.h-card figcaption b { display: block; font: 400 26px/1.05 var(--font-display); }
.h-card figcaption span { display: block; margin-top: 6px; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .78); }
.h-card .clip-btn { top: 12px; bottom: auto; z-index: 3; }
.h-hint { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.h-hint i { width: 6px; height: 6px; border-radius: 3px; background: var(--border-strong); transition: width .25s var(--ease), background .25s; }
.h-hint i.on { width: 20px; background: #fff; }
@media (min-width: 900px) {
  .h-rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; padding: 0; margin: 0; gap: 18px; }
  .h-card { aspect-ratio: 4 / 4.4; }
  .h-hint { display: none; }
}
@media (min-width: 900px) and (hover: hover) {
  .h-card .clip-video, .h-card .clip-poster { transition: transform .6s var(--ease); }
  .h-card:hover .clip-video, .h-card:hover .clip-poster { transform: scale(1.04); }
}

/* ---------- shards ---------- */
.h-split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .h-split { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.h-devices { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.h-device { width: min(44vw, 230px); aspect-ratio: 375 / 812; border-radius: 34px; padding: 7px; background: linear-gradient(160deg, #3a4161, #12162a); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.h-device img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.h-device + .h-device { margin-left: -9%; transform: translateY(-28px); }
.h-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; }
.h-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.h-list img { flex: none; width: 44px; height: 44px; object-fit: contain; }
.h-list img.px { image-rendering: pixelated; }
.h-list b { display: block; color: #fff; font-weight: 900; }
.h-list span { display: block; font-size: 14px; font-weight: 700; color: var(--text-muted); }

/* ---------- PvP ---------- */
.h-pvp { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(40px, 6vw, 72px) clamp(18px, 4vw, 56px); text-align: center; isolation: isolate;
  background: radial-gradient(90% 70% at 50% 0%, #2a2470, #0b0d26 70%); border: 1px solid rgba(160, 150, 255, .2); }
.h-pvp .h-fxc { z-index: -1; }
.h-pvp .h-head { margin-bottom: 30px; }
.h-leagues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 10px; max-width: 760px; margin: 0 auto; padding: 0; list-style: none; }
@media (min-width: 700px) { .h-leagues { grid-template-columns: repeat(6, 1fr); } }
.h-leagues li { font-size: 13px; font-weight: 900; color: rgba(255, 255, 255, .8); }
.h-leagues img { display: block; width: 64px; height: 64px; margin: 0 auto 8px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45));
  animation: h-float 4s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); }
.h-leagues li:last-child img { filter: drop-shadow(0 0 18px rgba(255, 207, 74, .6)); }
@keyframes h-float { 50% { transform: translateY(-6px); } }

/* ---------- closing ---------- */
.h-final { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; padding: clamp(56px, 8vw, 96px) 20px; text-align: center; color: #fff; background: #04060f; }
.h-final > img.bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.h-final::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(4, 6, 15, .55), rgba(4, 6, 15, .85)); }
.h-final .h-fxc { z-index: -1; }
.h-final h2 { margin: 0 0 10px; font: 400 clamp(2.1rem, 1.5rem + 3vw, 3.6rem)/1 var(--font-display); }
.h-final p { margin: 0 auto 24px; font-weight: 700; color: rgba(255, 255, 255, .8); }

/* ---------- sticky "Play now" on phones, after the hero ---------- */
.h-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(7, 10, 28, .88); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-top: 1px solid var(--border);
  transform: translateY(110%); transition: transform .35s var(--ease); }
.h-sticky.on { transform: none; }
.h-sticky .btn { width: 100%; }
@media (min-width: 900px) { .h-sticky { display: none; } }

/* scroll reveal (home.js adds .in; without JS or with reduced motion everything is simply shown) */
html.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--dl, 0s); }
html.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .h-leagues img { animation: none; }
  html.js .rv { opacity: 1; transform: none; transition: none; }
}
.h-trust li[hidden] { display: none; }

/* hero: the portrait clip on phones is framed for them (Charizard's head in the top half) */
@media (max-width: 700px) { .h-hero-media img, .h-hero-media .clip-video { object-position: 50% 18%; } }

/* ---------- highlights: the games' own item art, two across on phones ---------- */
.h-hls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .h-hls { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1040px) { .h-hls { grid-template-columns: repeat(4, 1fr); } }
.h-hl { position: relative; overflow: hidden; padding: 16px 14px 16px; border-radius: 18px; background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .08); transition: transform .25s var(--ease), border-color .25s; }
.h-hl::before { content: ''; position: absolute; right: -30%; top: -40%; width: 90%; aspect-ratio: 1; border-radius: 50%; opacity: .22; pointer-events: none;
  background: radial-gradient(circle, var(--c), transparent 65%); }
.h-hl img { position: relative; display: block; width: 52px; height: 52px; object-fit: contain; margin-bottom: 10px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .4)); transition: transform .3s var(--ease); }
.h-hl b { position: relative; display: block; font: 400 19px/1.1 var(--font-display); color: #fff; letter-spacing: .2px; }
.h-hl span { position: relative; display: block; margin-top: 4px; font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--text-muted); }
@media (hover: hover) { .h-hl:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 50%, transparent); } .h-hl:hover img { transform: scale(1.12) rotate(-6deg); } }

/* ---------- get the app ---------- */
.h-app { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 22px; justify-items: center; text-align: center; padding: 40px 22px;
  border-radius: 24px; background: radial-gradient(100% 80% at 50% 0%, #123c74, #071026 70%); border: 1px solid rgba(110, 190, 255, .22); }
.h-app .h-fxc { z-index: -1; }
.h-app-ic { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .15); }
.h-app-copy h2 { margin: 0 0 14px; font: 400 clamp(2rem, 1.5rem + 2.4vw, 3rem)/1.02 var(--font-display); color: #fff; }
.h-app-pts { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; justify-items: center; font-weight: 800; color: rgba(255, 255, 255, .82); }
.h-app-pts li::before { content: '✓'; margin-right: 8px; color: var(--water); font-weight: 900; }
.h-install { background: #fff; color: #08142e; border: 0; gap: 10px; box-shadow: 0 10px 30px rgba(70, 168, 255, .35); }
.h-install svg { width: 20px; height: 20px; }
.h-install[data-done] { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
@media (min-width: 900px) { .h-app { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 40px; padding: 56px; } .h-app-ic { width: 160px; height: 160px; border-radius: 36px; } .h-app-pts { justify-items: start; } }

/* the "how to install" sheet (iPhone Safari and browsers without a prompt) */
.inst-sheet { position: fixed; inset: 0; z-index: 90; display: grid; align-items: end; justify-items: center; background: rgba(2, 4, 12, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: inst-fade .2s ease; }
.inst-card { width: min(520px, 100%); padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: #0e1630; border: 1px solid var(--border-strong); color: #fff; animation: inst-up .3s var(--ease); }
@media (min-width: 600px) { .inst-sheet { align-items: center; } .inst-card { border-radius: 24px; } }
.inst-card .inst-ic { display: block; width: 64px; height: 64px; border-radius: 16px; margin-bottom: 12px; }
.inst-card h3 { margin: 0 0 6px; font: 400 26px/1.1 var(--font-display); }
.inst-card > p { margin: 0 0 16px; color: var(--text-muted); font-weight: 700; }
.inst-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.inst-steps li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); font-weight: 800; }
.inst-steps b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); }
.inst-k { padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .12); white-space: nowrap; }
.inst-share { width: 18px; height: 18px; vertical-align: -3px; }
.inst-card .btn { width: 100%; }
@keyframes inst-fade { from { opacity: 0; } }
@keyframes inst-up { from { transform: translateY(40px); opacity: 0; } }

/* phones: the hero is a still key art (the video only from 701px) */
@media (max-width: 700px) { .h-wide-only { display: none !important; } .h-hero-media img { object-position: 50% 12%; } .h-hero { min-height: min(calc(100svh - var(--header-h)), 760px); } }

/* ---------- showcase rows: big media and three lines each (mounts, surf, fishing) ---------- */
.h-row { display: grid; gap: 18px; align-items: center; margin-top: 40px; }
.h-row:first-of-type { margin-top: 8px; }
.h-row-media { position: relative; border-radius: 22px; overflow: hidden; background: #0a1230; box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06); }
.h-row-media::after { content: ''; position: absolute; inset: auto 0 0; height: 4px; background: var(--c); opacity: .9; }
.h-row-media .clip { border-radius: 0; border: 0; box-shadow: none; }
.h-row-media.tall .clip { aspect-ratio: 4 / 5; }
.h-row-copy h3 { margin: 0 0 8px; font: 400 clamp(2rem, 1.6rem + 2vw, 3rem)/1 var(--font-display); color: #fff; }
.h-row-copy > p:not(.h-eyebrow) { margin: 0 0 14px; color: var(--text-muted); font-weight: 700; font-size: clamp(1rem, .96rem + .3vw, 1.15rem); max-width: 40ch; }
.h-row-copy .h-eyebrow { color: var(--c); }
.h-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.h-tags li { padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 900; color: #fff;
  background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
@media (min-width: 900px) {
  .h-row { grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 72px; }
  .h-row.flip .h-row-media { order: 2; }
  .h-row-media.tall { max-width: 460px; justify-self: center; width: 100%; }
}

/* ---------- new maps: a swipe strip of places ---------- */
.h-maps { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px var(--gutter) 8px; margin-inline: calc(var(--gutter) * -1); scroll-padding-inline: var(--gutter); }
.h-maps::-webkit-scrollbar { display: none; }
.h-map { position: relative; margin: 0; scroll-snap-align: start; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: #0a1230; }
.h-map img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.h-map figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font: 400 20px/1 var(--font-display); color: #fff;
  background: linear-gradient(180deg, transparent, rgba(4, 6, 15, .85)); }
@media (min-width: 760px) { .h-maps { grid-auto-columns: 40%; } }
@media (min-width: 1100px) { .h-maps { grid-auto-columns: calc((100% - 36px) / 4); margin: 0; padding: 4px 0 8px; } }
@media (hover: hover) { .h-map:hover img { transform: scale(1.05); } }
@media (max-width: 700px) { .h-hero .motion-btn { display: none !important; } }

/* ---------- why Tail Crew: six selling points under the hero ---------- */
.h-usp { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 22px 0 0; list-style: none; }
@media (min-width: 900px) { .h-usp { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .h-usp { grid-template-columns: repeat(6, 1fr); } }
.h-usp li { position: relative; padding: 14px 12px 14px 44px; border-radius: 16px; background: linear-gradient(160deg, rgba(255, 210, 63, .1), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 210, 63, .18); }
.h-usp svg { position: absolute; left: 12px; top: 14px; width: 22px; height: 22px; color: var(--gold); filter: drop-shadow(0 0 8px rgba(255, 210, 63, .5)); }
.h-usp b { display: block; font: 400 18px/1.1 var(--font-display); color: #fff; letter-spacing: .2px; }
.h-usp span { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--text-muted); }

/* ================================================================ element effects, pure CSS (no canvas, no script)
   Each layer is a box of <i> particles written into the page; every particle has its own --x, --s (size), --d
   (duration), --w (a negative delay, so they start mid-flight) and drift values. They run on every phone, also with
   "remove animations" on (the owner wants them seen), and never take taps. */
.fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; contain: strict; }
.h-stage .fx, .h-stage .fx-set { z-index: 2; }
.fx-set { position: absolute; inset: 0; pointer-events: none; }
.fx-set > .fx { display: none; }
.fx-set[data-el="fire"] > .fx-fire, .fx-set[data-el="water"] > .fx-water, .fx-set[data-el="grass"] > .fx-leaf { display: block; }
.fx i { position: absolute; display: block; will-change: transform, opacity; }

/* fire: white-hot cores in an orange glow, rising, drifting and flickering, over a breathing heat haze */
.fx-fire::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -20%; height: 55%; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 100%, rgba(255, 120, 30, .38), rgba(255, 70, 20, .12) 55%, transparent 75%); animation: fx-heat 3.2s ease-in-out infinite alternate; mix-blend-mode: screen; }
.fx-fire i { left: var(--x); bottom: -16px; width: calc(var(--s) * 1.7); height: calc(var(--s) * 1.7); border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, #fffbea 0 16%, #ffd36a 30%, rgba(255, 140, 40, .75) 46%, rgba(255, 80, 20, .25) 62%, transparent 72%);
  box-shadow: 0 0 calc(var(--s) * 2.2) rgba(255, 140, 40, .7);
  animation: fx-ember var(--d) cubic-bezier(.3, .2, .6, 1) var(--w) infinite, fx-flick .23s steps(2, jump-none) infinite; }
@keyframes fx-ember {
  0% { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  8% { opacity: 1; }
  35% { transform: translate3d(calc(var(--dx) * .4), calc(var(--dy) * .5), 0) scale(1); }
  70% { opacity: .85; }
  100% { transform: translate3d(var(--dx), calc(var(--dy) * 1.4 - 20vh), 0) scale(.25); opacity: 0; } }
@keyframes fx-flick { 0% { filter: brightness(1.25); } 100% { filter: brightness(.8); } }
@keyframes fx-heat { from { opacity: .65; transform: scaleY(.9); } to { opacity: 1; transform: scaleY(1.08); } }

/* water: see-through bubbles with a rim, a highlight and a soft caustic shimmer; they wobble as they rise */
.fx-water::before { content: ''; position: absolute; inset: -20%; pointer-events: none; opacity: .18; mix-blend-mode: screen;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(160, 220, 255, .55) 50px, transparent 56px 120px);
  animation: fx-caustic 9s linear infinite; }
.fx-water i { left: var(--x); bottom: -30px; width: var(--s); height: var(--s); border-radius: 50%;
  border: 1px solid rgba(200, 238, 255, .75);
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .95) 0 12%, rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 50% 50%, rgba(120, 200, 255, .08) 55%, rgba(170, 225, 255, .35) 80%, rgba(220, 245, 255, .5) 100%);
  box-shadow: inset 0 -2px 4px rgba(120, 200, 255, .35);
  animation: fx-bubble var(--d) ease-in var(--w) infinite; }
@keyframes fx-bubble {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 1; }
  25% { transform: translate3d(var(--dx), -28vh, 0) scale(1.02, .97); }
  50% { transform: translate3d(calc(var(--dx) * -1), -56vh, 0) scale(.97, 1.03); }
  75% { transform: translate3d(var(--dx), -84vh, 0) scale(1.02, .97); opacity: .9; }
  100% { transform: translate3d(0, -112vh, 0) scale(1.1); opacity: 0; } }
@keyframes fx-caustic { to { transform: translateX(120px); } }

/* leaves: a real leaf shape (two curved edges, a midrib), tumbling in 3D as it falls and sways */
.fx-leaf { perspective: 600px; }
.fx-leaf i { left: var(--x); top: -40px; width: var(--s); height: calc(var(--s) * .55); border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, hsl(var(--h) 70% 72%), hsl(var(--h) 62% 46%) 55%, hsl(calc(var(--h) + 10) 66% 30%));
  box-shadow: inset -1px -1px 0 rgba(0, 0, 0, .15); transform-style: preserve-3d;
  animation: fx-fall var(--d) linear var(--w) infinite; }
.fx-leaf i::after { content: ''; position: absolute; left: 12%; right: 12%; top: 50%; height: 1px; background: rgba(240, 255, 220, .6); transform: rotate(-28deg); }
@keyframes fx-fall {
  0% { transform: translate3d(0, 0, 0) rotateZ(0) rotateY(0); opacity: 0; }
  6% { opacity: 1; }
  25% { transform: translate3d(calc(var(--dx) * .5), 28vh, 0) rotateZ(calc(var(--rz) * .25)) rotateY(160deg); }
  50% { transform: translate3d(calc(var(--dx) * .1), 56vh, 0) rotateZ(calc(var(--rz) * .5)) rotateY(320deg); }
  75% { transform: translate3d(var(--dx), 84vh, 0) rotateZ(calc(var(--rz) * .75)) rotateY(480deg); }
  94% { opacity: 1; }
  100% { transform: translate3d(calc(var(--dx) * .6), 112vh, 0) rotateZ(var(--rz)) rotateY(640deg); opacity: 0; } }

/* electric: three forked bolts that strike in turn (a glow, a yellow body, a white core) and crackling sparks */
.fx-volt .bolt { position: absolute; top: 0; height: 72%; width: 34%; opacity: 0; overflow: visible; filter: drop-shadow(0 0 6px rgba(140, 170, 255, .9)) drop-shadow(0 0 14px rgba(255, 225, 90, .6)); }
.fx-volt .bolt path { fill: none; stroke: #ffe45c; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fx-volt .bolt path.core { stroke: #fff; stroke-width: 1.8; }
.fx-volt .b0 { left: 8%; animation: fx-strike 4.2s steps(1, end) infinite; }
.fx-volt .b1 { left: 40%; animation: fx-strike 5.6s steps(1, end) 1.4s infinite; }
.fx-volt .b2 { right: 4%; animation: fx-strike 4.9s steps(1, end) 2.7s infinite; }
@keyframes fx-strike { 0%, 100% { opacity: 0; } 2% { opacity: 1; } 3% { opacity: .2; } 4% { opacity: 1; } 7% { opacity: 0; } }
.fx-volt::before { content: ''; position: absolute; inset: 0; background: rgba(160, 175, 255, .16); opacity: 0; animation: fx-strike 4.2s steps(1, end) infinite; }
.fx-volt i { left: var(--x); top: var(--y); width: 3px; height: 3px; border-radius: 1px; background: #fff7b0; box-shadow: 0 0 6px #ffe14a, 0 0 12px #ffb300;
  animation: fx-spark var(--d) steps(1, end) var(--w) infinite; }
@keyframes fx-spark { 0%, 100% { opacity: 0; } 10% { opacity: 1; transform: translate(0, 0); } 14% { opacity: .1; } 18% { opacity: 1; transform: translate(3px, -4px); } 26% { opacity: 0; } }

/* the app card never runs off the screen (a long button label pushed the whole column out of the card) */
.h-app { grid-template-columns: minmax(0, 1fr); }
.h-app-copy { min-width: 0; max-width: 100%; }
.h-app-copy h2 { overflow-wrap: anywhere; }
.h-install { max-width: 100%; white-space: normal; text-align: center; }
.h-app-done { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .7); }
@media (min-width: 900px) { .h-app { grid-template-columns: auto minmax(0, 1fr); } }

/* ================================================================ the hero's fire: the first thing anyone sees
   aura      a burning glow behind Charizard, flickering (screen blend lights the picture, the dark gradient stays on top)
   flames    tongues of fire licking up from the bottom edge, blurred and blended so they glow, never block the text
   embers    more of them, some streaking up fast; a burst flies out once as the page opens
   entrance  the picture zooms in from a little closer and brightens; the title rises in with a fiery glow */
.h-aura { position: absolute; z-index: -3; pointer-events: none; left: var(--ax, 50%); top: var(--ay, 30%); width: var(--aw, 120vw); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 190, 80, .55) 0%, rgba(255, 110, 30, .35) 22%, rgba(255, 60, 20, .12) 42%, transparent 62%);
  animation: h-aura 1.9s ease-in-out infinite alternate, h-aura-flick .17s steps(2, jump-none) infinite; }
@media (min-width: 701px) { .h-aura { --ax: 46%; --ay: 42%; --aw: 70vw; } }
@keyframes h-aura { from { opacity: .7; transform: translate(-50%, -50%) scale(.94); } to { opacity: 1; transform: translate(-50%, -52%) scale(1.06); } }
@keyframes h-aura-flick { 0% { filter: brightness(1.12); } 100% { filter: brightness(.9); } }

.h-flames { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 24%; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent); mask-image: linear-gradient(to top, #000 35%, transparent); opacity: .62; }
.h-flames i { position: absolute; left: var(--x); bottom: -24px; width: var(--w); height: var(--h); margin-left: calc(var(--w) / -2);
  border-radius: 50% 50% 38% 38% / 70% 70% 30% 30%; transform-origin: 50% 100%; mix-blend-mode: screen; filter: blur(7px);
  background: radial-gradient(ellipse 60% 70% at 50% 92%, #fff6c8 0 12%, #ffc23a 28%, #ff6a1e 52%, rgba(190, 30, 10, 0) 76%);
  animation: h-flame var(--d) ease-in-out var(--dl) infinite alternate; }
@keyframes h-flame {
  0% { transform: scale(1, .82) skewX(-4deg); opacity: .75; }
  50% { transform: scale(.86, 1.12) skewX(5deg); opacity: 1; }
  100% { transform: scale(1.06, .95) skewX(-2deg) translateY(-4px); opacity: .85; } }

.h-fire i.st { width: var(--s); height: calc(var(--s) * 7); border-radius: 999px; box-shadow: none;
  background: linear-gradient(to top, rgba(255, 110, 30, 0), rgba(255, 170, 60, .8) 40%, #fff3c4); animation: fx-ember var(--d) linear var(--w) infinite; }
.h-fire i.bu { bottom: 30%; animation: h-burst 1.7s cubic-bezier(.15, .75, .3, 1) var(--dl) 1 both; }
@keyframes h-burst { 0% { transform: translate3d(0, 0, 0) scale(.4); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate3d(var(--dx), var(--dy), 0) scale(.2); opacity: 0; } }

.h-hero-media img { animation: h-in 1.9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes h-in { from { transform: scale(1.14); filter: brightness(.35) saturate(1.3); } to { transform: none; filter: none; } }
.h-title { animation: h-title-in 1s cubic-bezier(.2, .8, .2, 1) .3s both; }
@keyframes h-title-in {
  0% { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  60% { opacity: 1; text-shadow: 0 0 34px rgba(255, 140, 40, .95), 0 4px 30px rgba(0, 0, 0, .45); filter: none; }
  100% { opacity: 1; transform: none; text-shadow: 0 4px 30px rgba(0, 0, 0, .45); } }
.h-hero .h-new, .h-hero .h-lead, .h-hero .btn-primary, .h-hero .h-trust { animation: h-up .8s cubic-bezier(.2, .8, .2, 1) both; }
.h-hero .h-new { animation-delay: .15s; } .h-hero .h-lead { animation-delay: .55s; } .h-hero .btn-primary { animation-delay: .7s; } .h-hero .h-trust { animation-delay: .85s; }
@keyframes h-up { from { opacity: 0; transform: translateY(18px); } }
.h-hero .btn-primary.h-play { animation: h-up .8s cubic-bezier(.2, .8, .2, 1) .7s both, h-pulse 2.4s ease-in-out 1.6s infinite; }

/* ================================================================ effects down the page (pure CSS, like the hero) */
.h-row-media .fx { z-index: 2; }
/* wind: thin streaks rushing past the flying mount */
.fx-wind i { left: -30%; top: var(--y); width: var(--w); height: 2px; border-radius: 2px; mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent); animation: fx-wind var(--d) linear var(--dl) infinite; }
@keyframes fx-wind { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .6; } 100% { transform: translateX(160vw); opacity: 0; } }
/* ripples: rings spreading on the water where the line goes in */
.fx-ripple i { left: var(--x); top: var(--y); width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%;
  border: 2px solid rgba(200, 240, 255, .8); box-shadow: 0 0 10px rgba(140, 210, 255, .5); animation: fx-ripple var(--d) ease-out var(--dl) infinite; }
@keyframes fx-ripple { 0% { transform: scale(.1, .04); opacity: 0; } 10% { opacity: 1; } 100% { transform: scale(2.6, 1); opacity: 0; } }
/* stars: four-point twinkles (gold), crystal sparkles (cyan and violet) round the shard phones, soft ones in grids */
.h-fxsec > .fx { z-index: 0; }
.h-fxsec > .h-wrap { position: relative; z-index: 1; }
.fx-star i { left: var(--x); top: var(--y); width: var(--s); height: var(--s); background: #ffe58a; filter: drop-shadow(0 0 6px rgba(255, 210, 80, .9));
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: fx-twinkle var(--d) ease-in-out var(--dl) infinite; }
.fx-star.crystal i { background: linear-gradient(135deg, #e6fbff, #7fe3ff 50%, #c79bff); filter: drop-shadow(0 0 8px rgba(127, 227, 255, .9)); }
.fx-star.soft i { opacity: .6; }
@keyframes fx-twinkle { 0%, 100% { transform: scale(0) rotate(0); opacity: 0; } 45% { transform: scale(1) rotate(45deg); opacity: 1; } 60% { transform: scale(.7) rotate(60deg); opacity: .8; } }
.h-devices { isolation: isolate; }
.h-devices .fx { inset: -12% -6%; z-index: 2; }
/* the selling points: a gold shine sweeps across each card in turn */
.h-usp li { overflow: hidden; }
.h-usp li::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 230, 140, .28), transparent); transform: skewX(-18deg); animation: h-shine 5s ease-in-out infinite; }
.h-usp li:nth-child(2)::after { animation-delay: .5s; } .h-usp li:nth-child(3)::after { animation-delay: 1s; } .h-usp li:nth-child(4)::after { animation-delay: 1.5s; }
.h-usp li:nth-child(5)::after { animation-delay: 2s; } .h-usp li:nth-child(6)::after { animation-delay: 2.5s; }
@keyframes h-shine { 0%, 60% { left: -60%; } 85%, 100% { left: 130%; } }
/* the swipe cards: the same shine now and then */
.h-card::before { content: ''; position: absolute; z-index: 2; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent); transform: skewX(-18deg); animation: h-shine 7s ease-in-out infinite; }
/* Boss Island: the stage breathes a glow in the picked arena's colour */
.h-stage { animation: h-stage-glow 2.2s ease-in-out infinite alternate; }
@keyframes h-stage-glow { from { box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 1px color-mix(in srgb, var(--glow, #ff7a2f) 40%, transparent), 0 0 30px color-mix(in srgb, var(--glow, #ff7a2f) 25%, transparent); }
  to { box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 2px color-mix(in srgb, var(--glow, #ff7a2f) 70%, transparent), 0 0 70px color-mix(in srgb, var(--glow, #ff7a2f) 55%, transparent); } }
/* PvP: an electric edge that crackles */
.h-pvp { animation: h-volt-edge 3.1s steps(1, end) infinite; }
@keyframes h-volt-edge { 0%, 100% { box-shadow: 0 0 0 1px rgba(160, 150, 255, .25), 0 0 40px rgba(120, 110, 255, .25); }
  3% { box-shadow: 0 0 0 2px rgba(255, 228, 92, .9), 0 0 60px rgba(255, 228, 92, .55); } 5% { box-shadow: 0 0 0 1px rgba(160, 150, 255, .4), 0 0 40px rgba(120, 110, 255, .3); }
  7% { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 0 70px rgba(200, 210, 255, .6); } 10% { box-shadow: 0 0 0 1px rgba(160, 150, 255, .25), 0 0 40px rgba(120, 110, 255, .25); } }
/* the closing banner burns too */
.h-aura-final { --ax: 50%; --ay: 70%; --aw: 120%; z-index: -2; }

/* About: plain facts (index.html #about), a calm two-column list from 700px */
.h-about-facts { display: grid; gap: var(--s-3); max-width: 960px; margin: 0 auto; }
.h-about-facts > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.h-about-facts dt { font-weight: 900; color: var(--text); margin-bottom: 4px; }
.h-about-facts dd { margin: 0; color: var(--text-muted); }
@media (min-width: 700px) { .h-about-facts { grid-template-columns: 1fr 1fr; } }
.h-updated { text-align: center; margin: var(--s-5) 0 0; font-size: var(--step--1); color: var(--text-soft); }
.h-more { text-align: center; margin: var(--s-5) 0 0; color: var(--text-muted); font-weight: 700; }
.h-more { text-align: center; margin: var(--s-5) 0 0; color: var(--text-muted); font-weight: 700; }
