/* Shenzai Warriors – website styles
   Look follows the game UI: Bangers headings, white kit panels with a faint circle pattern,
   chunky blue/orange/gold buttons with a dark rim, pastel sky from the Cloud Pillars map. */

@font-face { font-family: "Bangers"; src: url("../fonts/Bangers.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("../fonts/Quicksand-SemiBold.ttf") format("truetype"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("../fonts/Quicksand-Bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f7f3ff;
  --ink: #2a2150;
  --ink-soft: #5d5488;
  --line: #ddd3ff;
  --panel: #ffffff;
  --lav: #efeaff;
  --sky-pink: #ffd6ea;
  --sky-peach: #ffe9cf;
  --sky-lav: #e6dcff;

  --blue-1: #5cb6ff; --blue-2: #1f63e0; --blue-d: #143c95;
  --orange-1: #ffb53d; --orange-2: #ff7414; --orange-d: #a84405;
  --gold-1: #ffe57d; --gold-2: #ffb300; --gold-d: #9a6100;
  --pink-1: #ff8cc6; --pink-2: #f0458e; --pink-d: #94184f;
  --green-1: #6fe39a; --green-2: #1fb45c; --green-d: #0f6b36;
  --purple-1: #b38cff; --purple-2: #7442e8; --purple-d: #3f1f96;
  --teal-1: #5ee2e0; --teal-2: #15a6b4; --teal-d: #0b5d66;

  --t1: #98a2b8; --t2: #34b86a; --t3: #2f86ff; --t4: #9f55ff; --t5: #ffb000;

  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 12px 32px rgba(70, 45, 140, .16);
  --shadow-sm: 0 6px 16px rgba(70, 45, 140, .14);
  --pattern: radial-gradient(circle, rgba(130, 110, 225, .07) 0 9px, transparent 10px);
  --gutter: 20px;
  --font: "Quicksand", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Bangers", "Impact", "Arial Black", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 600 1rem/1.6 var(--font);
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--blue-2); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

.container { width: min(1180px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { width: min(860px, 100%); }

/* ---------- building blocks ---------- */
.panel {
  background-color: var(--panel);
  background-image: var(--pattern);
  background-size: 34px 34px;
  border: 3px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.title {
  font-family: var(--display);
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--ink);
  text-shadow: 0 3px 0 #fff, 0 8px 18px rgba(90, 60, 180, .18);
}
.lead { font-size: 1.12rem; color: var(--ink-soft); }

.chip {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--display); font-size: 1rem; letter-spacing: .08em;
  padding: .32em .85em .26em;
  border-radius: 9px;
  color: #fff;
  border: 2px solid rgba(0, 0, 0, .18);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 3px 0 rgba(0, 0, 0, .12);
  white-space: nowrap;
}
.chip-orange { background: linear-gradient(var(--orange-1), var(--orange-2)); }
.chip-blue   { background: linear-gradient(var(--blue-1), var(--blue-2)); }
.chip-pink   { background: linear-gradient(var(--pink-1), var(--pink-2)); }
.chip-dark   { background: rgba(32, 24, 66, .78); border-color: rgba(255, 255, 255, .25); }
.chip-glass  {
  background: rgba(255, 255, 255, .72); color: var(--ink); text-shadow: none;
  border-color: rgba(255, 255, 255, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* Game buttons */
.btn {
  --b1: var(--blue-1); --b2: var(--blue-2); --bd: var(--blue-d);
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  font-family: var(--display); font-size: 1.4rem; letter-spacing: .05em; line-height: 1;
  color: #fff; text-decoration: none; cursor: pointer;
  padding: .62em 1.25em .55em;
  border: 3px solid var(--bd);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--b1) 0%, var(--b2) 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), inset 0 -4px 0 rgba(0, 0, 0, .14), 0 5px 0 var(--bd), 0 12px 20px rgba(40, 20, 90, .22);
  text-shadow: 0 2px 0 var(--bd), 1px 0 0 var(--bd), -1px 0 0 var(--bd), 0 -1px 0 var(--bd);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), inset 0 -4px 0 rgba(0, 0, 0, .14), 0 1px 0 var(--bd), 0 4px 10px rgba(40, 20, 90, .2); }
.btn-orange { --b1: var(--orange-1); --b2: var(--orange-2); --bd: var(--orange-d); }
.btn-gold   { --b1: var(--gold-1);   --b2: var(--gold-2);   --bd: var(--gold-d); }
.btn-white  {
  --b1: #ffffff; --b2: #ece7ff; --bd: #b9acf0;
  color: var(--ink); text-shadow: none;
}
.btn-sm { font-size: 1.1rem; padding: .5em .95em .44em; border-width: 2.5px; }
.btn-icon { width: 1em; height: 1em; flex: none; filter: drop-shadow(0 2px 0 var(--bd)); }
.btn-white .btn-icon { filter: none; }
.flip { transform: scaleX(-1); }

/* Store badges (shape of the official badges – swap in the official artwork before launch) */
.store-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.store-badge {
  position: relative;
  display: inline-flex; align-items: center; gap: 11px;
  min-width: 186px; height: 60px; padding: 0 18px 0 14px;
  background: #0d0c12; color: #fff; text-decoration: none;
  border: 2px solid #a4a3ad; border-radius: 12px;
  box-shadow: 0 6px 0 rgba(20, 14, 40, .35), 0 12px 24px rgba(20, 14, 40, .25);
  transition: transform .12s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-logo { width: 30px; height: 30px; flex: none; }
.store-text { display: flex; flex-direction: column; line-height: 1.05; font-family: "Segoe UI", -apple-system, system-ui, sans-serif; }
.store-text small { font-size: .72rem; font-weight: 500; letter-spacing: .02em; }
.store-text b { font-size: 1.42rem; font-weight: 600; letter-spacing: -.01em; }
.store-badge .soon {
  position: absolute; top: -19px; right: -12px;
  font-family: var(--display); font-size: .84rem; letter-spacing: .06em; line-height: 1;
  color: #fff; padding: .35em .6em .28em; border-radius: 8px;
  background: linear-gradient(var(--pink-1), var(--pink-2)); border: 2px solid var(--pink-d);
  text-shadow: 0 1px 0 var(--pink-d);
  transform: rotate(6deg);
  box-shadow: 0 3px 0 var(--pink-d);
  display: none;
}
.store-badge.is-soon { cursor: default; }
.store-badge.is-soon .soon { display: block; }
.store-badge.wiggle { animation: wiggle .45s ease; }
@keyframes wiggle { 20% { transform: rotate(-3deg); } 40% { transform: rotate(3deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(1deg); } }

/* Coins = champion tier */
.coin {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  font-family: var(--display); font-size: 1.05rem; line-height: 1; color: #fff;
  border: 2.5px solid rgba(0, 0, 0, .28);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(0, 0, 0, .15), 0 2px 0 rgba(0, 0, 0, .2);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}
.coin.t1 { background: radial-gradient(circle at 35% 30%, #d8dde8, var(--t1)); }
.coin.t2 { background: radial-gradient(circle at 35% 30%, #9cf0bd, var(--t2)); }
.coin.t3 { background: radial-gradient(circle at 35% 30%, #a6d0ff, var(--t3)); }
.coin.t4 { background: radial-gradient(circle at 35% 30%, #dcbcff, var(--t4)); }
.coin.t5 { background: radial-gradient(circle at 35% 30%, #fff0a8, var(--t5)); }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.topbar.is-solid, .menu-open .topbar {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(70, 45, 140, .14);
}
.topbar-inner {
  width: min(1240px, 100%); margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 20px;
}
.brand img { height: 46px; width: auto; filter: drop-shadow(0 3px 4px rgba(30, 20, 80, .25)); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  font-family: var(--display); font-size: 1.2rem; letter-spacing: .05em;
  color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 10px;
  transition: background-color .15s ease, color .15s ease;
}
.nav a:hover { background: rgba(255, 255, 255, .65); color: var(--orange-2); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.lang {
  display: inline-flex; padding: 3px; border-radius: 11px;
  background: rgba(255, 255, 255, .75); border: 2px solid var(--line);
}
.lang button {
  font-family: var(--display); font-size: 1rem; letter-spacing: .06em;
  border: 0; background: transparent; color: var(--ink-soft); padding: 4px 9px 2px; border-radius: 8px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: linear-gradient(var(--orange-1), var(--orange-2)); color: #fff; text-shadow: 0 1px 0 var(--orange-d); }
.menu-btn {
  display: none; width: 44px; height: 44px; padding: 9px; cursor: pointer;
  border: 2px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .8); color: var(--ink);
}
.menu-btn svg { width: 100%; height: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(100svh, 760px);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--sky-pink) 0%, var(--sky-peach) 45%, var(--sky-lav) 100%);
  overflow: hidden;
}
.hero-art {
  position: absolute; inset: 0; z-index: -2;
  background: url("../img/hero-loop-poster.jpg") center / cover no-repeat;
}
/* Endless background loop; its first frame is the poster above, so the fade-in is seamless */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity .6s ease;
  pointer-events: none;
}
.hero-video.is-playing { opacity: 1; }
@media (max-aspect-ratio: 1/1) {
  .hero-art { background-image: url("../img/hero-loop-poster-mobile.jpg"); }
}
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(255, 214, 234, .92) 0%,
      rgba(255, 222, 238, .55) 22%,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0) 58%,
      rgba(247, 243, 255, .7) 76%,
      var(--bg) 100%);
}
.hero-inner {
  flex: 1; position: relative;
  width: min(1180px, 100%); margin: 0 auto;
  padding: calc(92px + env(safe-area-inset-top)) var(--gutter) 84px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 28px;
  text-align: center;
}
.hero-top { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-title { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-logo {
  width: min(660px, 88vw); height: auto;
  filter: drop-shadow(0 10px 18px rgba(30, 20, 90, .35));
  animation: logo-in .9s cubic-bezier(.2, 1.4, .4, 1) both;
}
.hero-tagline {
  font-family: var(--display); font-size: clamp(1.7rem, 4.2vw, 2.7rem); letter-spacing: .04em; line-height: 1.05;
  color: #fff;
  text-shadow:
    0 3px 0 #3b2a86, 2px 0 0 #3b2a86, -2px 0 0 #3b2a86, 0 -2px 0 #3b2a86,
    2px 2px 0 #3b2a86, -2px 2px 0 #3b2a86, 2px -2px 0 #3b2a86, -2px -2px 0 #3b2a86,
    0 8px 16px rgba(40, 20, 100, .35);
  animation: rise .7s .25s ease both;
}
.hero-bottom { display: flex; flex-direction: column; align-items: center; gap: 22px; animation: rise .7s .4s ease both; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; }
.hero-note { font-size: .95rem; color: var(--ink-soft); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; width: 40px; height: 40px; margin-left: -20px;
  color: var(--ink-soft); animation: bob 1.8s ease-in-out infinite;
}
.scroll-cue svg { width: 100%; height: 100%; transform: rotate(90deg); }

@keyframes logo-in { from { opacity: 0; transform: scale(.7) translateY(-20px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* Drifting anime clouds */
.clouds { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cloud {
  position: absolute; left: 0; width: 220px; height: 110px;
  fill: #fff; opacity: .92;
  filter: drop-shadow(0 9px 0 rgba(214, 196, 255, .7));
  animation: drift linear infinite;
}
.cloud.c1 { top: 13%; transform: scale(.9); animation-duration: 95s; animation-delay: -20s; }
.cloud.c2 { top: 30%; width: 300px; height: 150px; animation-duration: 130s; animation-delay: -80s; opacity: .8; }
.cloud.c3 { top: 6%;  width: 160px; height: 80px; animation-duration: 80s; animation-delay: -55s; }
.cloud.c4 { top: 44%; width: 260px; height: 130px; animation-duration: 115s; animation-delay: -5s; opacity: .7; }
.cloud.c5 { top: 21%; width: 140px; height: 70px; animation-duration: 70s; animation-delay: -35s; opacity: .85; }
@keyframes drift { from { transform: translateX(-340px); } to { transform: translateX(calc(100vw + 40px)); } }
/* over the video the clouds stay in the pink sky band at the top and never cross the fighters */
.hero .cloud.c2 { top: -1%; }
.hero .cloud.c4 { top: 15%; width: 200px; height: 100px; }

/* ---------- stats ---------- */
.stats-wrap { position: relative; z-index: 2; margin-top: -54px; padding: 0 var(--gutter); }
.stats {
  width: min(980px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 22px 12px;
}
.stats li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 10px; }
.stats li + li { border-left: 2px dashed var(--line); }
.stats b {
  font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1;
  background: linear-gradient(180deg, var(--blue-1), var(--blue-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #fff) drop-shadow(0 3px 0 rgba(20, 60, 150, .25));
}
.stats li:nth-child(2) b { background-image: linear-gradient(180deg, var(--purple-1), var(--purple-2)); }
.stats li:nth-child(3) b { background-image: linear-gradient(180deg, var(--pink-1), var(--pink-2)); }
.stats li:nth-child(4) b { background-image: linear-gradient(180deg, var(--orange-1), var(--orange-2)); }
.stats span { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- sections ---------- */
.section { position: relative; padding: 104px 0; }
.section-tint {
  background-color: #f1ebff;
  background-image: var(--pattern), linear-gradient(180deg, #f1ebff 0%, #fdf0f8 100%);
  background-size: 34px 34px, 100% 100%;
}
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hint { margin-top: 18px; text-align: center; color: var(--ink-soft); font-size: .95rem; }

.js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- how to play ---------- */
.play-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 64px; align-items: center; }
.play-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.steps { display: grid; gap: 14px; margin-top: 10px; width: 100%; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .7); border: 2px solid var(--line);
}
.step h3 { font-family: var(--display); font-size: 1.55rem; letter-spacing: .03em; line-height: 1.1; margin-bottom: 2px; }
.step p { color: var(--ink-soft); font-size: .98rem; }
.step-icon {
  --b1: var(--blue-1); --b2: var(--blue-2); --bd: var(--blue-d);
  display: grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 15px; color: #fff;
  background: linear-gradient(180deg, var(--b1), var(--b2));
  border: 3px solid var(--bd);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), 0 4px 0 var(--bd);
}
.step-icon svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); }
.ic-orange { --b1: var(--orange-1); --b2: var(--orange-2); --bd: var(--orange-d); }
.ic-gold   { --b1: var(--gold-1);   --b2: var(--gold-2);   --bd: var(--gold-d); }
.ic-pink   { --b1: var(--pink-1);   --b2: var(--pink-2);   --bd: var(--pink-d); }
.ic-green  { --b1: var(--green-1);  --b2: var(--green-2);  --bd: var(--green-d); }
.ic-purple { --b1: var(--purple-1); --b2: var(--purple-2); --bd: var(--purple-d); }
.ic-teal   { --b1: var(--teal-1);   --b2: var(--teal-2);   --bd: var(--teal-d); }

.phone-wrap { position: relative; padding: 30px 10px; }
.phone {
  position: relative;
  border-radius: 40px; padding: 14px 18px;
  background: linear-gradient(145deg, #3a3361, #17132e);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12), 0 30px 60px rgba(50, 30, 120, .35), 0 8px 0 #0f0c22;
  transform: perspective(1400px) rotateY(-9deg) rotateX(4deg) rotate(-2deg);
}
.phone::before { /* camera island (landscape) */
  content: ""; position: absolute; left: 6px; top: 50%; width: 7px; height: 54px; margin-top: -27px;
  border-radius: 6px; background: #0c0a1a;
}
.phone::after { /* side button */
  content: ""; position: absolute; top: -4px; right: 90px; width: 60px; height: 5px; border-radius: 4px 4px 0 0; background: #2a2450;
}
.phone-screen { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 9; background: #e9e0ff; }
.phone-video { width: 100%; height: 100%; object-fit: cover; }
.sticker {
  position: absolute; z-index: 2; pointer-events: none;
  font-family: var(--display); letter-spacing: .04em; line-height: 1;
}
.sticker-levelup {
  right: -6px; top: 4px; font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--gold-1);
  text-shadow: 0 3px 0 var(--gold-d), 2px 0 0 var(--gold-d), -2px 0 0 var(--gold-d), 0 -2px 0 var(--gold-d), 2px 2px 0 var(--gold-d), -2px 2px 0 var(--gold-d), 0 8px 14px rgba(120, 70, 0, .35);
  transform: rotate(8deg);
  animation: pop 2.6s ease-in-out infinite;
}
.sticker-stars { left: 0; bottom: 2px; display: flex; gap: 2px; transform: rotate(-6deg); }
.sticker-stars svg {
  width: 44px; height: 44px; color: var(--gold-2);
  filter: drop-shadow(0 3px 0 var(--gold-d)) drop-shadow(0 6px 8px rgba(120, 70, 0, .3));
}
.sticker-stars svg:nth-child(2) { transform: translateY(-10px) scale(1.15); }
@keyframes pop { 0%, 100% { transform: rotate(8deg) scale(1); } 50% { transform: rotate(4deg) scale(1.08); } }

/* ---------- champions ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-bottom: 30px; }
.tier-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-size: 1.08rem; letter-spacing: .05em;
  padding: 6px 14px 4px 6px; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--ink); border: 2.5px solid var(--line);
  box-shadow: 0 3px 0 var(--line);
  transition: transform .12s ease;
}
.pill:first-child { padding-left: 14px; }
.pill .coin { width: 24px; height: 24px; font-size: .9rem; border-width: 2px; }
.pill:hover { transform: translateY(-1px); }
.pill.is-on {
  background: linear-gradient(var(--orange-1), var(--orange-2)); color: #fff; border-color: var(--orange-d);
  box-shadow: 0 3px 0 var(--orange-d); text-shadow: 0 1px 0 var(--orange-d);
}
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 3px solid var(--ink-soft); border-bottom: 3px solid var(--ink-soft); transform: rotate(45deg); pointer-events: none;
}
.select select {
  appearance: none; -webkit-appearance: none;
  font: 700 1rem var(--font); color: var(--ink);
  padding: 9px 40px 9px 16px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 2.5px solid var(--line); box-shadow: 0 3px 0 var(--line);
}

.champ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 18px; }
.champ-grid .empty { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); padding: 30px; }
.champ {
  --tc: var(--t1);
  position: relative; width: 100%; height: 100%; padding: 0; cursor: pointer; text-align: left;
  display: flex; flex-direction: column;
  background: #fff; border: 3px solid var(--tc); border-radius: 16px; overflow: hidden;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--tc) 70%, #000 30%), var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease;
}
.champ.t2 { --tc: var(--t2); } .champ.t3 { --tc: var(--t3); } .champ.t4 { --tc: var(--t4); } .champ.t5 { --tc: var(--t5); }
.champ:hover { transform: translateY(-4px) rotate(-.4deg); }
.champ-art { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--lav); }
.champ-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.champ:hover .champ-art img { transform: scale(1.07); }
.champ > .coin { position: absolute; top: 8px; left: 8px; }
.champ-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 13px; }
.champ-name { font-family: var(--display); font-size: 1.55rem; letter-spacing: .03em; line-height: 1; }
.champ-traits { display: flex; flex-wrap: wrap; gap: 5px; }

.trait {
  --tb: #eef0f6; --tf: #3d4560;
  display: inline-block; font: 700 .7rem/1 var(--font); letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 8px 4px; border-radius: 7px; background: var(--tb); color: var(--tf);
  border: 1.5px solid color-mix(in srgb, var(--tf) 22%, transparent);
}
.trait-academy { --tb: #e3edff; --tf: #2456b8; }
.trait-archer { --tb: #e4f7e7; --tf: #1d7537; }
.trait-berserk { --tb: #ffe3df; --tf: #b0261c; }
.trait-blademaster { --tb: #eceef5; --tf: #39415d; }
.trait-blitz { --tb: #fff3c4; --tf: #855d00; }
.trait-gunner { --tb: #f4e8da; --tf: #78461a; }
.trait-ninja { --tb: #ebe4ff; --tf: #4a2ca6; }
.trait-pirate { --tb: #ddf5f7; --tf: #0d6773; }
.trait-rogue { --tb: #f7e4f8; --tf: #87288c; }
.trait-rowdy { --tb: #ffecdb; --tf: #ad500b; }
.trait-soulcollectors { --tb: #e8e2f4; --tf: #463670; }
.trait-spiritual { --tb: #def8ef; --tf: #11745a; }
.trait-titans { --tb: #f1ece0; --tf: #685629; }
.trait-winterfrost { --tb: #e1f2ff; --tf: #195f96; }
.trait-wizard { --tb: #f0e4ff; --tf: #6a29c1; }

/* ---------- worlds ---------- */
.worlds { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.world-stage { overflow: hidden; padding: 0; }
.world-art { position: relative; aspect-ratio: 16 / 9; background: var(--lav); overflow: hidden; }
.world-art img { width: 100%; height: 100%; object-fit: cover; transition: opacity .18s ease, transform .5s ease; }
.world-stage.is-switching .world-art img { opacity: 0; transform: scale(1.03); }
.world-level { position: absolute; top: 14px; left: 14px; }
.world-info { padding: 20px 24px 24px; display: grid; gap: 10px; }
.world-name { font-family: var(--display); font-size: 2.2rem; letter-spacing: .03em; line-height: 1; }
.world-info p { color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font: 700 .8rem/1 var(--font); letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 11px 6px; border-radius: 8px; background: var(--lav); color: var(--purple-d); border: 1.5px solid var(--line);
}
.world-tabs { display: grid; gap: 12px; }
.world-tab {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; cursor: pointer; text-align: left;
  background: #fff; border: 3px solid var(--line); border-radius: 16px; box-shadow: 0 4px 0 var(--line);
  transition: transform .14s ease, border-color .14s ease;
}
.world-tab:hover { transform: translateX(-3px); }
.world-tab img { width: 104px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; flex: none; }
.world-tab span { display: flex; flex-direction: column; gap: 2px; }
.world-tab small { font-family: var(--display); font-size: .9rem; letter-spacing: .08em; color: var(--ink-soft); }
.world-tab b { font-family: var(--display); font-weight: 400; font-size: 1.4rem; letter-spacing: .03em; line-height: 1; }
.world-tab.is-on { border-color: var(--orange-2); box-shadow: 0 4px 0 var(--orange-d); background: #fff7ee; }
.world-tab.is-on small { color: var(--orange-2); }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.feature { padding: 24px 22px 24px; display: flex; flex-direction: column; gap: 10px; transition: transform .16s ease; }
.feature:hover { transform: translateY(-4px); }
.feature h3 { font-family: var(--display); font-size: 1.6rem; letter-spacing: .03em; line-height: 1.05; margin-top: 4px; }
.feature p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- trailer ---------- */
.video-frame { position: relative; padding: 12px; max-width: 1000px; margin: 0 auto; }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #1b1534; }
.video-play {
  position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px;
  display: grid; place-items: center; cursor: pointer; border-radius: 50%; color: #fff;
  background: linear-gradient(var(--blue-1), var(--blue-2)); border: 4px solid var(--blue-d);
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, .45), 0 6px 0 var(--blue-d), 0 16px 30px rgba(20, 20, 80, .45);
  transition: transform .15s ease;
}
.video-play:hover { transform: scale(1.07); }
.video-play svg { width: 44px; height: 44px; margin-left: 6px; filter: drop-shadow(0 2px 0 var(--blue-d)); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shot {
  position: relative; display: block; width: 100%; padding: 0; cursor: zoom-in;
  border: 3px solid #fff; border-radius: 16px; overflow: hidden; background: var(--lav);
  box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease;
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.05); }
.shot-cap {
  position: absolute; inset: auto 0 0 0; padding: 26px 12px 9px; text-align: left;
  font-family: var(--display); font-size: 1.12rem; letter-spacing: .04em; color: #fff;
  background: linear-gradient(transparent, rgba(28, 18, 64, .78));
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { padding: 0; border-radius: 16px; box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  font-family: var(--display); font-size: 1.4rem; letter-spacing: .03em; line-height: 1.15;
  padding: 16px 60px 14px 22px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; width: 32px; height: 32px; margin-top: -16px;
  display: grid; place-items: center; border-radius: 9px; color: #fff; font-size: 1.5rem; line-height: 1;
  background: linear-gradient(var(--orange-1), var(--orange-2)); border: 2px solid var(--orange-d);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; color: var(--ink-soft); }

/* ---------- download ---------- */
.download {
  overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--bg) 0%, var(--sky-pink) 55%, var(--sky-peach) 100%);
}
.clouds-low .cloud.c2 { top: 18%; }
.clouds-low .cloud.c4 { top: 62%; }
.download-card {
  display: flex; align-items: center; gap: 36px;
  max-width: 900px; margin: 0 auto; padding: 36px 40px;
}
.app-icon {
  width: 168px; height: 168px; flex: none; border-radius: 38px;
  border: 4px solid #fff; box-shadow: 0 10px 0 rgba(40, 60, 160, .2), 0 16px 34px rgba(40, 60, 160, .3);
  transform: rotate(-5deg);
}
.download-copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.download-copy .store-row { justify-content: flex-start; margin-top: 10px; }

/* ---------- footer ---------- */
.footer { background: #261d4f; color: #d9d2ff; padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-brand img { height: 64px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--gold-1); text-decoration: underline; }
.footer-small { font-size: .85rem; color: #a79fd6; max-width: 760px; }
.footer-tm { font-size: .75rem; }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; background: var(--ink); color: #fff; text-align: center; padding: 10px; }

/* ---------- dialogs ---------- */
dialog { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(38, 28, 86, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog[open] { animation: dialog-in .25s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes dialog-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

.modal { width: min(880px, calc(100% - 32px)); max-height: calc(100dvh - 24px); margin: auto; overflow: auto; border-radius: var(--r-lg); }
.modal-card { position: relative; overflow: hidden; padding: 0; }
.modal-art { aspect-ratio: 16 / 9; background: var(--lav); }
.modal-art img { width: 100%; height: 100%; object-fit: cover; }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; padding: 10px; cursor: pointer;
  border-radius: 12px; color: #fff;
  background: linear-gradient(var(--orange-1), var(--orange-2)); border: 3px solid var(--orange-d);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 3px 0 var(--orange-d);
}
.modal-close svg { width: 100%; height: 100%; }
.modal-body { padding: 20px 26px 24px; display: grid; gap: 14px; }
.modal-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.modal-title-row .title { font-size: clamp(2.2rem, 5vw, 3rem); }
.tier-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 1.2rem; letter-spacing: .05em; padding: 4px 14px 2px 5px;
  border-radius: 999px; background: var(--lav); border: 2px solid var(--line);
}
.trait-list { display: flex; flex-wrap: wrap; gap: 6px; }
.trait-list .trait { font-size: .8rem; padding: 7px 10px 6px; }
.ability {
  border-radius: 16px; padding: 14px 18px 16px;
  background: linear-gradient(180deg, #fff8e6, #fff1d0); border: 2px solid #ffd77a;
}
.ability-label { font-family: var(--display); font-size: .95rem; letter-spacing: .08em; color: var(--orange-2); }
.ability h4 { font-family: var(--display); font-size: 1.7rem; letter-spacing: .03em; line-height: 1.05; margin: 2px 0 4px; }
.ability p { color: #6b5323; }
.ability.is-empty { display: none; }
.modal-nav { display: flex; justify-content: space-between; gap: 12px; }

.lightbox { width: 100vw; height: 100dvh; margin: 0; display: none; align-items: center; justify-content: center; }
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgba(20, 14, 44, .88); }
.lb-figure { margin: 0; width: min(1280px, calc(100vw - 140px)); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-figure img { width: 100%; height: auto; max-height: calc(100dvh - 130px); object-fit: contain; border-radius: 14px; border: 3px solid #fff; background: #1b1534; }
.lb-figure figcaption { font-family: var(--display); font-size: 1.35rem; letter-spacing: .04em; color: #fff; text-align: center; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; padding: 12px; cursor: pointer; border-radius: 50%;
  color: var(--ink); background: #fff; border: 3px solid var(--line); box-shadow: 0 4px 0 rgba(0, 0, 0, .25);
}
.lb-btn svg { width: 100%; height: 100%; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -26px; }
.lb-next { right: 18px; top: 50%; margin-top: -26px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 8px 8px; font-size: 1.1rem; }
}
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px;
    background: rgba(255, 255, 255, .97); box-shadow: 0 16px 30px rgba(70, 45, 140, .18);
    border-bottom: 3px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { font-size: 1.45rem; padding: 10px 6px; border-bottom: 2px dashed var(--line); border-radius: 0; }
  .nav a:last-child { border-bottom: 0; }
  .topbar-actions { margin-left: auto; }
  .play-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone-wrap { max-width: 640px; margin: 0 auto; width: 100%; }
  .worlds { grid-template-columns: 1fr; }
  .world-tabs { grid-template-columns: repeat(2, 1fr); order: -1; }
  .world-tab:hover { transform: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 30px; }
  .brand img { height: 38px; }
  .topbar-cta { display: none; }
  .hero { min-height: max(100svh, 680px); }
  .hero-inner { padding-bottom: 76px; gap: 18px; }
  .store-row { gap: 12px; }
  .store-badge { min-width: 0; flex: 1 1 150px; max-width: 220px; height: 54px; padding: 0 10px; gap: 8px; }
  .store-logo { width: 24px; height: 24px; }
  .store-text { white-space: nowrap; }
  .store-text b { font-size: 1.12rem; }
  .store-badge .soon { font-size: .74rem; right: -6px; }
  .cloud { opacity: .65; }
  .cloud.c2, .cloud.c4 { width: 170px; height: 85px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .stats li:nth-child(3) { border-left: 0; }
  .champ-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .champ-name { font-size: 1.3rem; }
  .champ-body { padding: 8px 9px 10px; }
  .trait { font-size: .62rem; padding: 4px 6px 3px; }
  .champ > .coin { width: 26px; height: 26px; font-size: .95rem; }
  .world-tab { flex-direction: column; align-items: stretch; gap: 6px; }
  .world-tab img { width: 100%; }
  .world-tab b { font-size: 1.15rem; }
  .world-info { padding: 16px 16px 18px; }
  .world-name { font-size: 1.8rem; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .shot-cap { font-size: .9rem; padding: 18px 8px 6px; }
  .download-card { flex-direction: column; text-align: center; padding: 28px 18px; gap: 20px; }
  .download-copy { align-items: center; }
  .download-copy .store-row { justify-content: center; }
  .app-icon { width: 128px; height: 128px; border-radius: 30px; }
  .modal-body { padding: 16px 16px 18px; }
  .modal-nav .btn { flex: 1; }
  .lb-figure { width: calc(100vw - 24px); }
  .lb-prev, .lb-next { top: auto; bottom: 18px; margin-top: 0; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .sticker-stars svg { width: 34px; height: 34px; }
}
@media (max-width: 380px) {
  .lang button { padding: 4px 7px 2px; }
  .champ-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .cloud { display: none; }
}

/* ---------- legal pages ---------- */
.legal-page { background-color: var(--bg); }
.legal-top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(70, 45, 140, .12);
}
.legal-top .topbar-inner { justify-content: space-between; }
.legal-main { padding: 48px 0 80px; }
.legal { padding: 34px clamp(18px, 4vw, 48px) 40px; }
.legal h1 { font-family: var(--display); font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.05; letter-spacing: .02em; margin-bottom: 18px; }
.legal h2 { font-family: var(--display); font-size: 2rem; letter-spacing: .03em; margin: 34px 0 10px; padding-top: 12px; border-top: 2px dashed var(--line); }
.legal h3 { font-family: var(--display); font-size: 1.45rem; letter-spacing: .03em; margin: 26px 0 8px; }
.legal h4 { font-weight: 700; font-size: 1.05rem; margin: 18px 0 6px; }
.legal p, .legal li { font-weight: 500; color: #3c3466; }
.legal p { margin: 0 0 12px; }
.legal ul, .legal ol { margin: 0 0 14px 1.3em; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 5px; }
.legal strong { font-weight: 700; color: var(--ink); }
.legal code { font-size: .9em; background: var(--lav); padding: 1px 5px; border-radius: 5px; }
.legal .table-wrap { overflow-x: auto; margin: 0 0 16px; border-radius: 12px; border: 2px solid var(--line); }
.legal table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .92rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--lav); font-weight: 700; }
.legal tr:last-child td { border-bottom: 0; }
.legal blockquote { margin: 0 0 18px; padding: 14px 18px; border-radius: 12px; background: #fff4d6; border: 2px solid #ffd77a; }
.legal blockquote p { margin: 0; color: #6b5323; }
.legal mark.ph {
  background: #ffe1ec; color: #a3164f; border: 1px dashed #f0458e; border-radius: 5px;
  padding: 0 4px; font-family: ui-monospace, Consolas, monospace; font-size: .85em; font-weight: 600;
}
.draft-banner {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; padding: 14px 18px; border-radius: 14px;
  background: #ffe9f2; border: 2px solid #f7a3c6; color: #8c1747; font-weight: 700;
}
