/* ==========================================================================
   PokéBonk Online — pokebonk.online
   Single stylesheet, no build step. Visual language echoes the game UI:
   chunky rounded cards, warm gradients, navy ink, glossy red CTAs, pixel
   decorations. All values follow docs/design-brief.md.
   ========================================================================== */

/* ---------------------------------------------------------------- fonts */
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/mplus-rounded-700.woff2") format("woff2");
}
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/mplus-rounded-800.woff2") format("woff2");
}
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/mplus-rounded-900.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/nunito-600.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/nunito-700.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-800.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/nunito-900.woff2") format("woff2");
}

/* ---------------------------------------------------------------- tokens */
:root {
  --ink: #2a2440;
  --ink-2: #5a5478;
  --paper: #ffffff;
  --paper-2: #f3f1fa;
  --line: #e4e0f0;
  --red: #ff5a5f;
  --red-d: #e0303e;
  --orange: #ff9a3a;
  --yellow: #ffd23a;
  --yellow-d: #f2a516;
  --blue: #3a8cff;
  --blue-d: #2563d8;
  --green: #36c96a;
  --green-d: #1fa04e;
  --purple: #8a5cff;
  --pink: #ff9ae0;
  --cyan: #6ac8ff;
  --navy: #1a1630;
  --navy-2: #1a1246;
  --navy-3: #241b46;
  --shadow: 0 10px 28px #1a124638, 0 2px 6px #1a12461f;
  --shadow-sm: 0 4px 12px #1a12462e;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --font-title: "M PLUS Rounded 1c", "Nunito", system-ui, sans-serif;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --stripes: repeating-linear-gradient(-45deg, #ffffff24 0 10px, #fff0 10px 20px);
  --pad: 20px;
  --head-h: 64px;
  --focus: #2563d8;
  /* pokémon type colors (design brief) */
  --type-grass: #36c96a;
  --type-fire: #ff9a3a;
  --type-water: #3a8cff;
  --type-poison: #a35cff;
  --type-electric: #ffd23a;
  --type-normal: #9aa4b8;
  --type-flying: #8a5cff;
  --type-bug: #8bc34a;
  --type-rock: #b79a63;
  --type-ghost: #7a5cff;
  --type-psychic: #ff6a9e;
  --type-ice: #6ac8ff;
  --type-dragon: #5a6cff;
  --type-dark: #5a4a6a;
  --type-steel: #9aa4b8;
  --type-fairy: #ff9ae0;
  --type-ground: #d8a54a;
}

/* ------------------------------------------------------------------ base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 14px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper-2);
  background-image: radial-gradient(#1a12460f 1px, transparent 1px);
  background-size: 18px 18px;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
table {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
svg,
iframe {
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}
strong,
b {
  font-weight: 800;
}
::selection {
  background: var(--yellow);
  color: var(--navy);
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.site-foot :focus-visible,
.hero :focus-visible,
.game-shell :focus-visible {
  outline-color: var(--yellow);
}
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.ico {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  display: inline-block;
  vertical-align: -0.125em;
}
.container {
  width: 100%;
  max-width: 1224px;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: 8px;
  z-index: 200;
  padding: 11px 20px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 12px;
  font: 800 15px/1 var(--font);
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: translateY(-160%);
  transition: none;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}
section[id] {
  scroll-margin-top: calc(var(--head-h) + 12px);
}

/* --------------------------------------------------------------- buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn .ico {
  font-size: 1.15em;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  color: #fff;
  text-shadow: 0 1px 0 #00000038;
  background: linear-gradient(180deg, #f2484f 0%, #e0303e 48%, #c42433 100%);
  box-shadow: inset 0 2px 0 #ffffff59, inset 0 -3px 0 #9e1b29, 0 5px 0 #9e1b29, 0 12px 22px #1a124633;
}
.btn-primary:hover {
  box-shadow: inset 0 2px 0 #ffffff59, inset 0 -3px 0 #9e1b29, 0 7px 0 #9e1b29, 0 16px 26px #1a124640;
}
.btn-primary:active {
  box-shadow: inset 0 2px 0 #ffffff40, inset 0 -2px 0 #9e1b29, 0 2px 0 #9e1b29, 0 6px 12px #1a124633;
}
.btn-light {
  background: var(--paper);
  color: var(--navy);
  box-shadow: inset 0 -3px 0 #d9d2ec, 0 5px 0 #c9bfe2, 0 12px 22px #1a124626;
}
.btn-light:hover {
  background: #fffdf9;
}
.btn-soft {
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-soft:hover {
  border-color: #cfc6e8;
  background: #fdfcff;
}
.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
  gap: 7px;
}
.btn-lg {
  padding: 14px 26px;
  font-size: 17.5px;
  gap: 10px;
}
.btn-lg .ico {
  font-size: 1.05em;
}
.link-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font: 800 14.5px/1.2 var(--font);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.16s ease;
}
.link-external:hover {
  color: var(--yellow);
}
.link-external .ico {
  font-size: 0.95em;
}

/* --------------------------------------------------------- shared blocks */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font: 800 11.5px/1.2 var(--font);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red-d);
}
.kicker .ico {
  font-size: 1.15em;
  color: var(--red);
}
.section {
  position: relative;
  padding: clamp(56px, 7vw, 84px) 0;
}
.section--alt {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 780px;
  margin-bottom: clamp(26px, 3vw, 38px);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  margin-top: 14px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.65rem, 3.3vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-sub {
  margin-top: 12px;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 66ch;
}
.section-head--center .section-sub {
  margin-inline: auto;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 3vw, 30px);
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 14px;
}
.panel-title .ico {
  font-size: 1.05em;
  color: var(--red);
}
.prose p {
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose strong {
  color: var(--ink);
}
.prose a {
  color: var(--blue-d);
  font-weight: 700;
}
.prose a:hover {
  color: var(--red-d);
}
.panel-cta {
  margin-top: 22px !important;
  margin-bottom: 0 !important;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card h3 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--ink);
}
.card p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.updated-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--paper);
  border: 1.5px solid #f0cfa4;
  border-radius: var(--radius-pill);
  font: 800 12px/1.2 var(--font);
  color: #96520d;
  white-space: nowrap;
}
.updated-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px !important;
  padding: 5px 13px;
  background: #e8f9ef;
  border: 1.5px solid #bfe9cf;
  border-radius: var(--radius-pill);
  font: 800 12.5px/1.2 var(--font);
  color: #14713a !important;
}
.updated-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-d);
  box-shadow: 0 0 0 3px #36c96a33;
}

/* ----------------------------------------------------------------- header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fffffff2;
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow 0.2s ease;
}
.site-head.is-scrolled {
  box-shadow: 0 6px 18px #1a12461a;
}
.head-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--head-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-ball {
  width: 36px;
  height: 36px;
  flex: none;
  filter: drop-shadow(0 3px 4px #1a12462e);
  transition: transform 0.25s ease;
}
.brand:hover .brand-ball {
  transform: rotate(-14deg) scale(1.06);
}
.brand-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-name-accent {
  color: var(--red-d);
}
.brand-name-site {
  display: inline-block;
  margin-left: 5px;
  padding: 3px 8px 4px;
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font: 800 10.5px/1 var(--font);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
  vertical-align: 2px;
}
.site-nav {
  margin-left: auto;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav a {
  display: inline-block;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  font: 800 14.5px/1.2 var(--font);
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.site-nav a:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.site-nav a[aria-current="location"] {
  background: #fff0f1;
  color: var(--red-d);
}
.head-cta {
  margin-left: 4px;
}

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #7a3bb5;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--stripes),
    radial-gradient(900px 480px at 16% 0%, #ffffff4d 0%, transparent 58%),
    radial-gradient(720px 420px at 88% 14%, #ff9ae055 0%, transparent 62%),
    linear-gradient(135deg, #ff9a3a 0%, #ff5a5f 38%, #b85cff 72%, #8a5cff 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #1a1630c4 0%, #1a1630a6 46%, #1a1630d1 100%);
}
.hero-deco {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.deco {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.9;
  animation: floaty 7s ease-in-out infinite;
}
.deco-heart {
  width: 34px;
  height: 34px;
  top: 16%;
  left: 5%;
  background-image: url("/assets/img/pixel-heart.svg");
  animation-delay: -1.2s;
}
.deco-star {
  width: 30px;
  height: 30px;
  top: 68%;
  left: 9%;
  background-image: url("/assets/img/pixel-star.svg");
  animation-delay: -3s;
}
.deco-sparkle {
  width: 26px;
  height: 26px;
  top: 12%;
  right: 7%;
  background-image: url("/assets/img/pixel-sparkle.svg");
  animation-delay: -2.2s;
}
.deco-cloud {
  width: 64px;
  height: 34px;
  top: 30%;
  right: 3%;
  background-image: url("/assets/img/pixel-cloud.svg");
  opacity: 0.5;
  animation-delay: -4.4s;
}
.deco-berry {
  width: 24px;
  height: 24px;
  bottom: 17%;
  right: 12%;
  background-image: url("/assets/img/pixel-berry.svg");
  animation-delay: -5.1s;
}
.deco-grass {
  width: 42px;
  height: 26px;
  bottom: 12%;
  left: 14%;
  background-image: url("/assets/img/pixel-grass.svg");
  animation-delay: -2.8s;
}
.deco-px {
  position: absolute;
  width: 26px;
  height: 26px;
  opacity: 0.9;
  image-rendering: pixelated;
  animation: floaty 6s ease-in-out infinite;
}
.deco-px-a {
  top: 24%;
  left: 42%;
  animation-delay: -1.8s;
}
.deco-px-b {
  bottom: 26%;
  right: 30%;
  width: 20px;
  height: 20px;
  animation-delay: -3.6s;
}
.deco-px-c {
  top: 9%;
  left: 26%;
  width: 16px;
  height: 16px;
  opacity: 0.7;
  animation-delay: -0.6s;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding-top: clamp(40px, 5.5vw, 66px);
  padding-bottom: clamp(110px, 13vw, 150px);
}
.hero-copy {
  max-width: 640px;
}
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #1a16305c;
  border: 1.5px solid #ffffff52;
  border-radius: var(--radius-pill);
  font: 800 12.5px/1.2 var(--font);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.eyebrow-pill .ico {
  font-size: 1.2em;
  color: var(--yellow);
}
.hero-title {
  margin-top: 18px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2.35rem, 5.1vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 2px 0 #1a1630, 0 4px 0 #1a1630, 0 12px 28px #1a1630b8;
  text-wrap: balance;
}
.hero-lead {
  margin-top: 18px;
  max-width: 48ch;
  font-size: clamp(1.02rem, 1.45vw, 1.16rem);
  font-weight: 600;
  line-height: 1.62;
  color: #f2edff;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: #ffffffee;
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 8px #1a124633;
  font: 800 13px/1.2 var(--font);
  color: var(--ink);
}
.chips .ico {
  font-size: 1.05em;
  color: var(--red);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}
.cta-row .link-external {
  margin-left: 4px;
}
.trust-line {
  margin-top: 20px;
  font: 700 13.5px/1.4 var(--font);
  color: #d8d0f2;
  letter-spacing: 0.01em;
}
.hero-art {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 430px;
}
.hero-console {
  position: relative;
  padding: 10px;
  background: linear-gradient(180deg, #2b2353, #1a1630);
  border-radius: 22px;
  box-shadow: 0 26px 50px #1a124666, inset 0 0 0 2px #3a2f6b, inset 0 2px 0 #6a5a9e66;
  transform: rotate(1.8deg);
  transition: transform 0.3s ease;
}
.hero-console:hover {
  transform: rotate(0.4deg) translateY(-4px);
}
.hero-console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 9px;
  color: #cfc9e6;
}
.lights {
  display: inline-flex;
  gap: 5px;
}
.lights i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5a5f;
  box-shadow: inset 0 -1px 0 #00000038;
}
.lights i:nth-child(2) {
  background: var(--yellow);
}
.lights i:nth-child(3) {
  background: var(--green);
}
.hero-console-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.hero-console-title b {
  color: var(--yellow);
  font-weight: 800;
}
.hero-shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #ffd9a8, #ff9ae0 55%, #8a5cff);
  box-shadow: inset 0 0 0 1px #ffffff1f;
}
.hero-shot img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}
.hero-shot-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background-image: var(--stripes), linear-gradient(140deg, #ffb26b, #ff6b9d 55%, #8a5cff);
  color: #fff;
  text-align: center;
}
.hero-shot-fallback b {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  text-shadow: 0 2px 0 var(--navy), 0 6px 18px #1a1630aa;
}
.hero-shot-fallback i {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}
.hero-shot-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f2484f, #c42433);
  color: #fff;
  box-shadow: 0 4px 0 #9e1b29, 0 10px 18px #1a124666, inset 0 2px 0 #ffffff59;
  transition: transform 0.2s ease;
}
.hero-shot-badge .ico {
  font-size: 22px;
  margin-left: 2px;
}
.hero-shot:hover .hero-shot-badge {
  transform: scale(1.08);
}
.hero-sticker {
  position: absolute;
  z-index: 3;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font: 800 12.5px/1 var(--font);
  box-shadow: 0 6px 14px #1a12464d;
  border: 2px solid var(--navy);
}
.hero-sticker--free {
  left: -16px;
  top: 16%;
  background: var(--yellow);
  color: var(--navy);
  transform: rotate(-7deg);
}
.hero-sticker--ver {
  right: -10px;
  bottom: 14%;
  background: var(--paper);
  color: var(--ink-2);
  transform: rotate(4deg);
}
.hero-grass {
  position: absolute;
  left: -1%;
  right: -1%;
  bottom: -1px;
  height: clamp(30px, 4vw, 48px);
  z-index: 0;
  background-image: url("/assets/img/grass-strip.svg"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath fill='%2336c96a' d='M0 20V12L5 6l5 6 5-9 5 9 5-5 5 5 5-8 5 8 5-6 5 6 5-9 5 9 5-5 5 5 5-8 5 8 5-6 5 6 5-9 5 9 5-5 5 5 5-8 5 8 5-6 5 6 5-5 5 5 5-9h5V20z'/%3E%3C/svg%3E");
  background-repeat: repeat-x, repeat-x;
  background-position: center bottom, center bottom;
  background-size: auto 100%, auto 100%;
  pointer-events: none;
  opacity: 0.96;
}

/* ----------------------------------------------------------- stats strip */
.stats-strip {
  position: relative;
  z-index: 3;
  margin-top: clamp(-56px, -5vw, -40px);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 20px 17px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.stat-card::before {
  content: "";
  position: absolute;
  right: -14px;
  top: -14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.12;
}
.stat-value {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.stat-label {
  font: 700 13px/1.35 var(--font);
  color: var(--ink-2);
}
.stat-card--0 {
  color: var(--red-d);
}
.stat-card--1 {
  color: var(--blue-d);
}
.stat-card--2 {
  color: var(--green-d);
}
.stat-card--3 {
  color: #7a3ee0;
}

/* ------------------------------------------------------------- play area */
.play-section {
  padding-top: clamp(48px, 6vw, 72px);
}
.rotate-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: -4px auto 14px;
  padding: 9px 16px;
  background: #fff7e8;
  border: 1.5px solid #f2d48a;
  border-radius: var(--radius-pill);
  font: 800 13px/1.3 var(--font);
  color: #7a520f;
  text-align: center;
}
.rotate-hint .ico {
  font-size: 1.2em;
  color: var(--yellow-d);
}
.game-shell {
  position: relative;
  padding: 13px;
  background: linear-gradient(180deg, #2b2353 0%, #1c1638 55%, #16122c 100%);
  border-radius: 28px;
  box-shadow: 0 26px 60px #1a12464d, 0 6px 0 #100d22, inset 0 0 0 2px #322858, inset 0 2px 0 #6a5a9e59;
}
.game-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #ff9a3a, #ff5a5f 40%, #8a5cff 75%, #3a8cff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.game-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 5px 13px;
  color: #cfc9e6;
}
.game-lights {
  display: inline-flex;
  gap: 6px;
  flex: none;
}
.game-lights i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: inset 0 -2px 0 #00000038, 0 0 6px #ff5a5f80;
}
.game-lights i:nth-child(2) {
  background: var(--yellow);
  box-shadow: inset 0 -2px 0 #00000038, 0 0 6px #ffd23a80;
}
.game-lights i:nth-child(3) {
  background: var(--green);
  box-shadow: inset 0 -2px 0 #00000038, 0 0 6px #36c96a80;
}
.game-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: #e9e5f7;
  white-space: nowrap;
}
.game-title b {
  color: var(--yellow);
  font-weight: 800;
}
.game-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  background: #2e2456;
  border: 1px solid #4a3d7e;
  border-radius: var(--radius-pill);
  color: #efeaff;
  font: 800 12.5px/1.1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}
.pill-btn .ico {
  font-size: 1.35em;
}
.pill-btn:hover {
  background: #3a2e6b;
  border-color: #5d4e99;
  transform: translateY(-1px);
}
.pill-btn--ghost {
  background: transparent;
}
.pill-btn[aria-pressed="true"] {
  background: #463874;
  border-color: #7a63c4;
}
.game-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #120f24;
  isolation: isolate;
}
.game-stage.is-pulsing {
  animation: framePulse 1.1s ease;
}
.stage-backdrop {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-image: var(--stripes), linear-gradient(165deg, #ffb26b 0%, #ff6b9d 52%, #8a5cff 100%);
  overflow: hidden;
}
.stage-backdrop-word {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 3.4rem);
  color: #fff;
  text-shadow: 0 2px 0 var(--navy), 0 5px 0 var(--navy), 0 14px 30px #1a1630aa;
  transform: translateY(-8%);
}
.stage-backdrop-ball {
  position: absolute;
  right: 12%;
  top: 18%;
  color: var(--red);
}
.stage-backdrop-ball .ico {
  width: clamp(34px, 5vw, 58px);
  height: clamp(34px, 5vw, 58px);
  filter: drop-shadow(0 8px 10px #1a124666);
}
.stage-backdrop-hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: radial-gradient(120% 100% at 50% 100%, #1fa04e 60%, #36c96a 61%, #36c96a 100%);
  border-radius: 50% 50% 0 0 / 80% 80% 0 0;
}
.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(180deg, #1a163045, #1a163039 45%, #1a1630b3);
  transition: background-color 0.2s ease;
}
.play-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.play-overlay-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, #1a163033 0%, #1a16300f 40%, #1a1630a8 100%);
  transition: opacity 0.2s ease;
}
.play-overlay:hover .play-overlay-tint {
  opacity: 0.65;
}
.play-cta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 26px 16px 18px;
  background: #1a1630cc;
  border: 1.5px solid #ffffff2e;
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px #1a124666;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.play-overlay:hover .play-cta {
  transform: translateY(-3px) scale(1.015);
  background: #1a1630e0;
}
.play-ball {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 34% 26%, #ff8a8e, #ff5a5f 42%, #e0303e 74%, #c42433);
  box-shadow: inset 0 3px 0 #ffffff5c, inset 0 -5px 0 #9e1b29, 0 6px 0 #9e1b29, 0 14px 26px #1a124666;
  transition: transform 0.18s ease;
}
.play-ball .ico {
  font-size: 32px;
  margin-left: 4px;
  filter: drop-shadow(0 2px 0 #00000038);
}
.play-ball::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 3px solid #ffd23a88;
  animation: ringPulse 2.4s ease-out infinite;
}
.play-overlay:hover .play-ball {
  transform: scale(1.07);
}
.play-cta-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}
.play-cta-text strong {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.25;
  color: #fff;
}
.play-cta-text small {
  font: 700 12.5px/1.3 var(--font);
  color: #d8d0f2;
}
.stage-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background: radial-gradient(80% 120% at 50% 40%, #241b46f2, #120f24fa);
}
.ball-spinner {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(#ff5a5f 0 46%, #1a1630 46% 54%, #fff 54% 100%);
  border: 2px solid #1a1630;
  box-shadow: 0 0 0 3px #ffffff1f;
  animation: spinBall 1.1s linear infinite;
}
.ball-spinner::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #1a1630;
}
.stage-loading-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}
.stage-loading-sub {
  font: 700 12.5px/1.4 var(--font);
  color: #bdb4de;
}
.stage-slow {
  margin-top: 4px;
  font: 700 13px/1.4 var(--font);
  color: #d8d0f2;
}
.stage-slow a {
  color: var(--yellow);
}
.game-stage iframe {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
  background: #120f24;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}
.game-stage iframe.is-ready {
  opacity: 1;
  visibility: visible;
}
.game-stage iframe:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: -5px;
}
.game-hints {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.hint {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font: 700 14px/1.45 var(--font);
  color: var(--ink-2);
}
.hint strong {
  color: var(--ink);
}
.hint-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--orange), var(--red));
  color: #fff;
  font: 800 12px/1 var(--font);
  box-shadow: inset 0 -1px 0 #00000033;
}
.game-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  font: 600 14px/1.6 var(--font);
  color: var(--ink-2);
}
.game-note .ico {
  margin-top: 4px;
  font-size: 1.05em;
  color: var(--red);
  flex: none;
}
.noscript-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fff7e8;
  border: 1.5px solid #f2d48a;
  border-radius: var(--radius-sm);
  font: 700 14px/1.5 var(--font);
  color: #6a4a0e;
}
.noscript-note a {
  color: #8a4a00;
}

/* --------------------------------------------------------- what is / grid */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.split--what {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
.split--prog {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}
.split--account {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
.split--about {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
}
.split > .panel {
  display: flex;
  flex-direction: column;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.feature-card {
  padding: 17px 18px;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 21px;
}
.feature-card h3 {
  margin-top: 10px;
  font-size: 15px;
}
.feature-card p {
  margin-top: 4px;
  font-size: 13.5px;
}
.feature-icon--0 {
  color: #c42433;
  background: #ffe9ea;
}
.feature-icon--1 {
  color: var(--blue-d);
  background: #e7f0ff;
}
.feature-icon--2 {
  color: #14713a;
  background: #e6f9ee;
}
.feature-icon--3 {
  color: #6a3ee0;
  background: #efe8ff;
}
.feature-icon--4 {
  color: #a65a0a;
  background: #fff2e2;
}
.feature-icon--5 {
  color: #106b9e;
  background: #e6f7ff;
}

/* -------------------------------------------------------- how to play */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.step {
  padding: 18px 16px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(180deg, var(--orange), #ff6b3d 55%, var(--red-d));
  color: #fff;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 15px;
  box-shadow: inset 0 2px 0 #ffffff59, 0 4px 0 #b8222f;
}
.step h3 {
  margin-top: 12px;
  font-size: 15.5px;
}
.step p {
  font-size: 13.5px;
}
.howto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 22px;
  margin-top: 24px;
}
.controls-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.controls-table tbody tr {
  border-bottom: 1px dashed var(--line);
}
.controls-table tbody tr:last-child {
  border-bottom: 0;
}
.controls-table th {
  width: 40%;
  padding: 9px 12px 9px 0;
  text-align: left;
  font-weight: 400;
  vertical-align: middle;
}
.controls-table td {
  padding: 9px 0;
  color: var(--ink-2);
  font-weight: 600;
  line-height: 1.45;
}
kbd {
  display: inline-block;
  min-width: 40px;
  padding: 3px 9px;
  background: var(--paper);
  border: 1.5px solid #d9d3ea;
  border-bottom-width: 3px;
  border-radius: 9px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 1px 0 #1a12461a;
}
.starters .panel-title {
  margin-bottom: 12px;
}
.starter-grid {
  display: grid;
  gap: 12px;
}
.starter-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon name"
    "icon role"
    "icon types"
    "icon passive"
    "text text";
  column-gap: 14px;
  padding: 16px 18px 15px;
  overflow: hidden;
}
.starter-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--tc, var(--green)), color-mix(in srgb, var(--tc, var(--green)) 55%, #fff));
}
.starter-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tc, var(--green)) 14%, #fff);
  border: 2px solid color-mix(in srgb, var(--tc, var(--green)) 45%, #fff);
  color: var(--tc, var(--green));
  font-size: 28px;
  align-self: start;
}
.starter-card h3 {
  grid-area: name;
  font-size: 17px;
  margin: 0;
}
.starter-role {
  grid-area: role;
  margin-top: 1px !important;
  font: 800 12px/1.3 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.type-list {
  grid-area: types;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  background: #f3f1fa;
  border: 1px solid #e4e0f0;
  border-radius: var(--radius-pill);
  font: 800 11px/1.5 var(--font);
  color: var(--ink);
}
.type-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tc, var(--ink-2));
}
.starter-passive {
  grid-area: passive;
  margin-top: 8px !important;
  font-size: 13px !important;
  color: var(--ink-2);
}
.starter-passive span {
  font: 800 10.5px/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 2px 7px;
  margin-right: 5px;
}
.starter-passive strong {
  color: var(--ink);
}
.starter-text {
  grid-area: text;
  margin-top: 10px !important;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px !important;
}
@supports (background: color-mix(in srgb, #fff 50%, #000)) {
  .type-badge {
    background: color-mix(in srgb, var(--tc, var(--line)) 15%, #fff);
    border-color: color-mix(in srgb, var(--tc, var(--line)) 36%, #fff);
  }
}
/* type color hooks */
.type-grass {
  --tc: var(--type-grass);
}
.type-fire {
  --tc: var(--type-fire);
}
.type-water {
  --tc: var(--type-water);
}
.type-poison {
  --tc: var(--type-poison);
}
.type-electric {
  --tc: var(--type-electric);
}
.type-normal {
  --tc: var(--type-normal);
}
.type-flying {
  --tc: var(--type-flying);
}
.type-bug {
  --tc: var(--type-bug);
}
.type-rock {
  --tc: var(--type-rock);
}
.type-ghost {
  --tc: var(--type-ghost);
}
.type-psychic {
  --tc: var(--type-psychic);
}
.type-ice {
  --tc: var(--type-ice);
}
.type-dragon {
  --tc: var(--type-dragon);
}
.type-dark {
  --tc: var(--type-dark);
}
.type-steel {
  --tc: var(--type-steel);
}
.type-fairy {
  --tc: var(--type-fairy);
}
.type-ground {
  --tc: var(--type-ground);
}

/* ------------------------------------------------------------------ tips */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tip-card {
  position: relative;
  padding: 22px 22px 20px;
  overflow: hidden;
}
.tip-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--red) 55%, var(--purple));
}
.tip-num {
  display: block;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #ffd9dc;
}
.tip-card h3 {
  margin-top: 10px;
  font-size: 16px;
}
.tip-card p {
  font-size: 14px;
}

/* ------------------------------------------------------------ progression */
.mini-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mini-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.mini-ball {
  flex: none;
  font-size: 21px;
  color: var(--red);
  line-height: 1;
  margin-top: 1px;
}
.mini-card h3 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1.3;
}
.mini-card p {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.changelog {
  position: relative;
  margin-top: 22px;
  padding: clamp(20px, 2.6vw, 26px);
  background: linear-gradient(135deg, #fff8ec 0%, #ffeef2 56%, #f3ecff 100%);
  border: 1.5px solid #f2d9b8;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.changelog::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd23a33, transparent 70%);
  pointer-events: none;
}
.changelog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.changelog-head h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.16rem;
  color: var(--ink);
}
.changelog-head .ico {
  color: var(--red);
  font-size: 1.1em;
}
.changelog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 26px;
  margin-top: 14px;
}
.changelog-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font: 600 14px/1.5 var(--font);
  color: #4a4160;
}
.changelog-list .ico {
  flex: none;
  margin-top: 4px;
  color: var(--green-d);
  font-size: 1.05em;
}

/* ---------------------------------------------------------------- account */
.save-panel {
  justify-content: center;
}
.save-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font: 600 15px/1.55 var(--font);
  color: var(--ink-2);
}
.save-steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.save-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--yellow);
  font: 800 12.5px/1 var(--font);
  box-shadow: 0 2px 0 #0e0b1e;
}

/* -------------------------------------------------------------------- FAQ */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.faq-item[open] {
  border-color: #cfc5e8;
  box-shadow: var(--shadow);
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font: 800 16px/1.35 var(--font);
  color: var(--ink);
  transition: background-color 0.15s ease;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  background: #faf9ff;
}
.faq-item[open] summary {
  background: #faf9ff;
}
.faq-marker {
  position: relative;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: linear-gradient(var(--red) 0 45%, var(--navy) 45% 55%, #fff 55% 100%);
}
.faq-marker::before,
.faq-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 2px;
  border-radius: 1px;
  background: var(--navy);
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.faq-marker::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-item[open] .faq-marker::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
  opacity: 0;
}
.faq-q {
  min-width: 0;
}
.faq-a {
  padding: 0 20px 18px 61px;
  animation: fadeUp 0.22s ease;
}
.faq-a p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.faq-a a {
  color: var(--blue-d);
  font-weight: 700;
}

/* ------------------------------------------------------------------ about */
.credits-list li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font: 600 14px/1.5 var(--font);
  color: var(--ink-2);
}
.credits-list li:first-child {
  padding-top: 0;
}
.credits-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.credits-list a {
  color: var(--blue-d);
  font-weight: 700;
}
.disclaimer {
  margin-top: 22px;
  padding: 18px 22px;
  background: #fff8e6;
  border: 1px solid #f2d48a;
  border-left: 6px solid var(--orange);
  border-radius: 16px;
}
.disclaimer h3 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 14.5px;
  color: #5c4313;
  margin-bottom: 6px;
}
.disclaimer p {
  font: 600 13.5px/1.6 var(--font);
  color: #4a3c1c;
}

/* ----------------------------------------------------------------- footer */
.site-foot {
  position: relative;
  margin-top: 0;
  padding-top: 46px;
  background-image: var(--stripes), linear-gradient(180deg, var(--navy) 0%, #141028 100%);
  color: #cfc9e6;
  overflow: hidden;
}
.foot-grass {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 34px;
  background-image: url("/assets/img/grass-strip.svg"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath fill='%2336c96a' d='M0 20V12L5 6l5 6 5-9 5 9 5-5 5 5 5-8 5 8 5-6 5 6 5-9 5 9 5-5 5 5 5-8 5 8 5-6 5 6 5-9 5 9 5-5 5 5 5-8 5 8 5-6 5 6 5-5 5 5 5-9h5V20z'/%3E%3C/svg%3E");
  background-repeat: repeat-x, repeat-x;
  background-position: center top, center top;
  background-size: auto 100%, auto 100%;
  opacity: 0.85;
  pointer-events: none;
}
.foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.95fr);
  gap: clamp(26px, 4vw, 48px);
  padding-top: 18px;
  padding-bottom: 38px;
}
.brand--foot .brand-name {
  color: #fff;
}
.brand--foot .brand-name-accent {
  color: var(--yellow);
}
.brand--foot .brand-name-site {
  background: #ffffff14;
  border-color: #ffffff29;
  color: #cfc9e6;
}
.foot-tagline {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: #b9b2d4;
}
.foot-brand .btn {
  margin-top: 18px;
}
.foot-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.foot-heading {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--yellow);
}
.foot-col ul {
  margin-top: 12px;
}
.foot-col li {
  margin-bottom: 9px;
}
.foot-col a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 700 14.5px/1.4 var(--font);
  color: #cfc9e6;
  text-decoration: none;
  transition: color 0.15s ease;
}
.foot-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.foot-col a .ico {
  font-size: 0.9em;
  opacity: 0.65;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid #ffffff1a;
}
.foot-legal {
  max-width: 780px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #a9a1c6;
}
.foot-legal a {
  color: #c9c1e4;
}
.foot-copy {
  font: 700 12.5px/1.5 var(--font);
  color: #a9a1c6;
}
.foot-badge {
  display: inline-block;
  padding: 2px 9px;
  background: #ffffff14;
  border: 1px solid #ffffff1f;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}

/* ------------------------------------------------------- floating helpers */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #f2484f, #d92a38);
  box-shadow: inset 0 2px 0 #ffffff59, inset 0 -3px 0 #9e1b29, 0 5px 0 #9e1b29, 0 12px 22px #1a124640;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.to-top .ico {
  font-size: 22px;
}
.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover {
  transform: translateY(-2px);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 90;
  max-width: min(92vw, 500px);
  padding: 12px 20px;
  background: var(--navy);
  border: 1.5px solid #3d3170;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  color: #fff;
  font: 700 14px/1.5 var(--font);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------- animations */
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(4deg);
  }
}
@keyframes spinBall {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ringPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.16);
    opacity: 0;
  }
  100% {
    transform: scale(1.16);
    opacity: 0;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes framePulse {
  0%,
  100% {
    box-shadow: 0 26px 60px #1a12464d, 0 6px 0 #100d22, inset 0 0 0 2px #322858, inset 0 2px 0 #6a5a9e59;
  }
  35% {
    box-shadow: 0 26px 60px #1a12464d, 0 6px 0 #100d22, inset 0 0 0 2px #322858, inset 0 2px 0 #6a5a9e59,
      0 0 0 6px #ffd23a66;
  }
}

/* ------------------------------------------------------------- responsive */
@media (min-width: 901px) {
  :root {
    --pad: 32px;
    --head-h: 76px;
  }
}
@media (max-width: 1200px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
  .hero-art {
    max-width: 380px;
  }
}
@media (max-width: 1024px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .split--what,
  .split--prog,
  .split--account,
  .split--about {
    grid-template-columns: minmax(0, 1fr);
  }
  .split--what > .panel {
    order: 2;
  }
  .split--what > .feature-grid {
    order: 1;
  }
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .howto-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .mini-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot-brand {
    max-width: 520px;
  }
  .foot-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-art {
    display: none;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    max-width: 780px;
    padding-bottom: clamp(100px, 12vw, 130px);
  }
  .hero-copy {
    max-width: 660px;
  }
}
@media (max-width: 900px) {
  :root {
    --head-h: 64px;
  }
  .site-nav a {
    padding: 8px 10px;
    font-size: 13.5px;
  }
  .brand-ball {
    width: 32px;
    height: 32px;
  }
  .brand-name {
    font-size: 18px;
  }
  .tips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .changelog-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .game-hints {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .head-inner {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-block: 9px;
    min-height: 0;
  }
  .brand {
    margin-right: auto;
  }
  .brand-name-site {
    display: none;
  }
  .head-cta {
    order: 2;
    margin-left: 0;
  }
  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar {
    display: none;
  }
  .site-nav ul {
    gap: 6px;
    padding-bottom: 2px;
  }
  .site-nav a {
    padding: 7px 11px;
    font-size: 13px;
    white-space: nowrap;
    background: var(--paper-2);
  }
  :root {
    --head-h: 104px;
  }
  .hero-title {
    font-size: clamp(2.1rem, 7.4vw, 3rem);
  }
  .hero-inner {
    padding-bottom: 100px;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .play-cta {
    gap: 14px;
    padding: 14px 20px 14px 14px;
  }
  .play-ball {
    width: 66px;
    height: 66px;
  }
  .play-ball .ico {
    font-size: 28px;
  }
  .game-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .game-actions {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .game-actions::-webkit-scrollbar {
    display: none;
  }
  .game-shell {
    padding: 10px;
    border-radius: 22px;
  }
  .stage-backdrop-word {
    font-size: clamp(1.3rem, 6vw, 2rem);
  }
}
@media (max-width: 560px) {
  :root {
    --pad: 18px;
  }
  .section {
    padding: 52px 0;
  }
  .hero-inner {
    padding-top: 34px;
    padding-bottom: 92px;
  }
  .hero-title {
    font-size: clamp(1.95rem, 9.4vw, 2.5rem);
    text-shadow: 0 2px 0 #1a1630, 0 3px 0 #1a1630, 0 8px 20px #1a1630b8;
  }
  .hero-lead {
    font-size: 1rem;
  }
  .eyebrow-pill {
    font-size: 10.5px;
    letter-spacing: 0.04em;
    padding: 5px 11px;
  }
  .chips li {
    font-size: 12px;
    padding: 6px 11px;
  }
  .cta-row {
    gap: 10px;
    margin-top: 22px;
  }
  .cta-row .btn-lg {
    padding: 12px 18px;
    font-size: 15.5px;
  }
  .link-external {
    font-size: 13.5px;
  }
  .trust-line {
    font-size: 12.5px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 14px 15px;
  }
  .stat-value {
    font-size: 1.5rem;
  }
  .stat-label {
    font-size: 12px;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
  }
  .step-num {
    grid-row: span 2;
  }
  .step h3 {
    margin-top: 2px;
  }
  .step p {
    margin-top: 2px;
  }
  .tips-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .feature-card {
    padding: 14px;
  }
  .mini-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .split,
  .howto-grid {
    gap: 14px;
  }
  .panel {
    padding: 20px;
  }
  .game-shell {
    padding: 8px;
    border-radius: 18px;
  }
  .game-bar {
    padding: 3px 3px 10px;
  }
  .game-title {
    font-size: 13px;
  }
  .game-lights i {
    width: 9px;
    height: 9px;
  }
  .game-stage {
    border-radius: 12px;
  }
  .play-cta {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 18px;
    text-align: center;
    max-width: 92%;
  }
  .play-cta-text {
    text-align: center;
    gap: 1px;
  }
  .play-cta-text strong {
    font-size: 14px;
  }
  .play-cta-text small {
    font-size: 11px;
  }
  .play-ball {
    width: 56px;
    height: 56px;
    box-shadow: inset 0 2px 0 #ffffff5c, inset 0 -4px 0 #9e1b29, 0 4px 0 #9e1b29, 0 10px 20px #1a124666;
  }
  .play-ball .ico {
    font-size: 24px;
  }
  .stage-loading-text {
    font-size: 14px;
  }
  .stage-loading-sub {
    font-size: 11.5px;
  }
  .game-note {
    font-size: 13px;
  }
  .rotate-hint {
    display: flex;
  }
  .controls-table {
    font-size: 13px;
  }
  .controls-table th {
    width: 44%;
  }
  .kbd,
  kbd {
    min-width: 34px;
    font-size: 11.5px;
    padding: 2px 7px;
  }
  .starter-card {
    padding: 14px 15px;
  }
  .faq-item summary {
    gap: 11px;
    padding: 14px 16px;
    font-size: 15px;
  }
  .faq-a {
    padding: 0 16px 16px 54px;
  }
  .faq-a p {
    font-size: 14.5px;
  }
  .disclaimer {
    padding: 16px 18px;
  }
  .changelog {
    padding: 18px;
  }
  .foot-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .foot-bottom {
    flex-direction: column;
  }
  .foot-grass {
    height: 26px;
  }
  .site-foot {
    padding-top: 38px;
  }
  .to-top {
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
  }
  .to-top .ico {
    font-size: 19px;
  }
  .toast {
    bottom: 76px;
    font-size: 13px;
  }
}
@media (max-width: 420px) {
  .chips li:nth-child(3) {
    display: none;
  }
  .hero-title {
    font-size: clamp(1.8rem, 9vw, 2.15rem);
  }
  .head-cta {
    padding: 8px 13px;
    font-size: 13px;
  }
  .btn .ico {
    font-size: 1em;
  }
  .play-cta-text strong {
    font-size: 13px;
  }
}

/* -------------------------------------------- content-seo integration bits */
.subsection-title {
  font-size: 1.05rem;
}
.whats-new-note {
  margin-top: 14px;
  font: 700 12.5px/1.55 var(--font);
  color: #7a5a2a;
}
.privacy-note {
  margin-top: 16px !important;
  padding: 11px 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: 600 13.5px/1.55 var(--font);
  color: var(--ink-2) !important;
}
.credits .panel-title,
.controls-panel .panel-title {
  overflow-wrap: anywhere;
}
/* fullscreen: the iframe leaves the page flow and fills the screen */
.game-stage iframe:fullscreen,
.game-stage iframe:-webkit-full-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2147483647;
  background: #120f24;
}

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .to-top,
  .toast {
    transition: none !important;
  }
  .deco,
  .deco-px,
  .play-ball::after {
    animation: none !important;
  }
  .card:hover,
  .hero-console:hover,
  .play-overlay:hover .play-cta,
  .btn:hover,
  .to-top:hover {
    transform: none !important;
  }
}

/* ==========================================================================
   FINAL CONTENT SECTIONS (content/sections.html markup from content-seo)
   The copy is rendered server-side by the content team; these rules only
   style its structure. Kept at the end so they win over earlier fallbacks.
   ========================================================================== */

/* -- two-column editorial layouts ----------------------------------------- */
#what-is-pokebonk > .container,
#progression > .container,
#account > .container {
  display: grid;
  align-items: start;
  gap: 26px 22px;
}
#what-is-pokebonk > .container {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
}
#progression > .container {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
#account > .container {
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
}
#what-is-pokebonk > .container > .section-head,
#progression > .container > .section-head,
#account > .container > .section-head {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
#progression > .container > .whats-new {
  grid-column: 1 / -1;
}
#what-is-pokebonk .section-head,
#progression .section-head,
#account .section-head,
#faq .section-head,
#about .section-head {
  margin-bottom: clamp(24px, 3vw, 34px);
}
#what-is-pokebonk > .container > .section-head,
#progression > .container > .section-head,
#account > .container > .section-head {
  margin-bottom: 0;
}

/* -- inline links inside body copy --------------------------------------- */
.section-sub a,
.prose a,
.credits-list a {
  color: var(--blue-d);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.section-sub a:hover,
.prose a:hover,
.credits-list a:hover {
  color: var(--red-d);
}

/* -- standalone H3 subheads (controls, starters) ------------------------- */
.subsection-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 14px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.16rem;
  line-height: 1.3;
  color: var(--ink);
}
.subsection-title::before {
  content: "";
  flex: none;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: linear-gradient(var(--red) 0 44%, var(--navy) 44% 56%, #fff 56% 100%);
  box-shadow: 0 2px 0 #1a12461f;
}
#how-to-play > .container > .subsection-title:first-of-type {
  margin-top: 36px;
}

/* -- steps: numbered via counters (markup is plain card list) ------------ */
.steps {
  counter-reset: step;
}
.steps > li {
  counter-increment: step;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 13px;
  background: linear-gradient(180deg, var(--orange), #ff6b3d 55%, var(--red-d));
  color: #fff;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 15px;
  box-shadow: inset 0 2px 0 #ffffff59, 0 4px 0 #b8222f;
}
.step h3 {
  margin-top: 0;
}
.step .card-text {
  margin-top: 5px;
}

/* -- controls table ------------------------------------------------------- */
.controls-panel {
  padding: 8px clamp(18px, 2.6vw, 26px) 12px;
}
.controls-table th {
  width: 40%;
}
.controls-panel .controls-table th {
  width: 27%;
}
.controls-table thead th {
  padding: 13px 12px 10px 0;
  border-bottom: 2px solid var(--line);
  font: 800 11px/1.2 var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: left;
  vertical-align: bottom;
}
.controls-table thead th:last-child {
  padding-left: 0;
}
.controls-table tbody th {
  font-weight: 400;
}
.controls-table tbody tr:last-child {
  border-bottom: 0;
}

/* -- starter cards (article cards with type chips) ----------------------- */
.starter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.starter-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 18px;
  overflow: hidden;
}
.starter-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--sc1, #36c96a), var(--sc2, #8bc34a));
}
.starter-card:nth-child(2) {
  --sc1: #ff9a3a;
  --sc2: #ff5a5f;
}
.starter-card:nth-child(3) {
  --sc1: #3a8cff;
  --sc2: #6ac8ff;
}
.starter-card .card-title {
  margin: 4px 0 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--ink);
}
.starter-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 !important;
}
.type {
  --tc: var(--type-normal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  background: #f3f1fa;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font: 800 11.5px/1.6 var(--font);
  color: var(--ink);
  white-space: nowrap;
}
.type::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tc);
}
@supports (background: color-mix(in srgb, #fff 50%, #000)) {
  .type {
    background: color-mix(in srgb, var(--tc) 15%, #fff);
    border-color: color-mix(in srgb, var(--tc) 36%, #fff);
  }
}
.starter-meta {
  margin: 0 !important;
  font: 700 13px/1.45 var(--font) !important;
  color: var(--ink-2) !important;
}
.starter-card .card-text {
  margin-top: 2px;
  font-size: 14px;
}

/* -- feature + progression cards get pokéball bullets -------------------- */
.feature-card .card-title::before,
.progression-grid .card-title::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  background: linear-gradient(var(--red) 0 44%, var(--navy) 44% 56%, #fff 56% 100%);
  vertical-align: -1px;
}
.progression-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.progression-grid > .card {
  padding: 18px;
}
.progression-grid .card-title {
  font-size: 15px;
}
.progression-grid .card-text {
  font-size: 13.5px;
}

/* -- tips numbering ------------------------------------------------------ */
.tips-grid {
  counter-reset: tip;
}
.tip-card {
  counter-increment: tip;
}
.tip-card::after {
  content: counter(tip, decimal-leading-zero);
  position: absolute;
  top: 12px;
  right: 18px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #ffe1e3;
  pointer-events: none;
}
.tip-card .card-title {
  padding-right: 54px;
}

/* -- what's new panel ---------------------------------------------------- */
.whats-new {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff8ec 0%, #ffeef2 56%, #f3ecff 100%);
  border: 1.5px solid #f2d9b8;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.whats-new::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd23a3d, transparent 70%);
  pointer-events: none;
}
.whats-new .panel-title {
  margin-bottom: 4px;
}
.whats-new .whats-new-note {
  margin: 0 0 14px;
}
.whats-new-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 26px;
}
.whats-new-list li {
  position: relative;
  padding-left: 24px;
  font: 600 14px/1.5 var(--font);
  color: #4a4160;
}
.whats-new-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  background: linear-gradient(var(--green) 0 44%, var(--navy) 44% 56%, #fff 56% 100%);
}

/* -- save steps (ordered list rendered as chunky numbered rows) ---------- */
.save-steps {
  counter-reset: save-step;
  padding: clamp(20px, 2.6vw, 26px);
}
.save-steps li {
  counter-increment: save-step;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font: 600 15px/1.55 var(--font);
  color: var(--ink-2);
}
.save-steps li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.save-steps li::before {
  content: counter(save-step);
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--yellow);
  font: 800 12.5px/1 var(--font);
  box-shadow: 0 2px 0 #0e0b1e;
}

/* -- FAQ: pokéball marker + plus/minus, answers as direct <p> ----------- */
.faq-item summary::before {
  content: "";
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: linear-gradient(var(--red) 0 44%, var(--navy) 44% 56%, #fff 56% 100%);
  box-shadow: inset 0 -1px 0 #00000012;
}
.faq-item summary::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 50%;
  width: 11px;
  height: 11px;
  transform: translateY(-50%);
  border-radius: 2px;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 11px 2.5px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 2.5px 11px no-repeat;
  transition: transform 0.16s ease;
}
.faq-item summary {
  position: relative;
}
.faq-item[open] summary::after {
  background: linear-gradient(var(--navy), var(--navy)) center / 11px 2.5px no-repeat;
}
.faq-item > p {
  padding: 0 20px 18px 61px;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.faq-item[open] > p {
  animation: fadeUp 0.22s ease;
}

/* -- about ----------------------------------------------------------------- */
.updated-line time {
  font-weight: 800;
}
.prose p.updated-line {
  font: 800 12.5px/1.2 var(--font);
  color: #14713a;
  padding: 5px 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-pill);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 22px;
  margin-top: 22px;
  align-items: stretch;
}
.about-grid > .panel {
  height: 100%;
}
.legal-panel .panel-title {
  margin-bottom: 12px;
}
.legal-panel .disclaimer {
  margin: 0 0 14px;
  padding: 13px 15px;
  border-radius: 12px;
  border-left-width: 4px;
  font: 600 13.5px/1.6 var(--font);
}
.legal-panel .privacy-note {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font-size: 13px;
}

/* -- responsive for the integrated sections ------------------------------ */
@media (max-width: 1024px) {
  #what-is-pokebonk > .container,
  #progression > .container,
  #account > .container {
    display: block;
  }
  #what-is-pokebonk > .container > .section-head,
  #progression > .container > .section-head,
  #account > .container > .section-head {
    margin-bottom: clamp(24px, 3vw, 34px);
  }
  #what-is-pokebonk .panel + .feature-grid,
  #progression .panel + .progression-grid,
  #account .panel + .save-steps {
    margin-top: 18px;
  }
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-grid > .panel {
    height: auto;
  }
  .controls-panel .controls-table th {
    width: 24%;
  }
  .starter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .subsection-title {
    margin-top: 28px;
  }
}
@media (max-width: 760px) {
  .starter-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .progression-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .whats-new-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq-item > p {
    padding-left: 55px;
  }
  .faq-item summary::after {
    left: 25px;
  }
  .controls-panel .controls-table th {
    width: 33%;
  }
}
@media (max-width: 560px) {
  .step {
    display: block;
  }
  .steps > li::before {
    margin-bottom: 10px;
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .faq-item summary {
    padding-left: 16px;
    gap: 11px;
  }
  .faq-item summary::after {
    left: 21px;
  }
  .faq-item > p {
    padding: 0 16px 16px 51px;
    font-size: 14.5px;
  }
  .controls-panel {
    padding: 6px 15px 10px;
  }
  .controls-panel .controls-table th {
    width: 38%;
  }
  .type {
    font-size: 11px;
    padding: 2px 8px;
  }
  .starter-card {
    padding: 18px 17px 16px;
  }
  .tip-card .card-title {
    padding-right: 44px;
  }
  .tip-card::after {
    font-size: 1.8rem;
    top: 10px;
    right: 14px;
  }
  .whats-new-list li {
    font-size: 13.5px;
  }
  .save-steps li {
    font-size: 14px;
  }
}

/* ==========================================================================
   FINAL POLISH (Lead review 12:40): vivid hero scrim + obvious FAQ state
   ========================================================================== */
.hero-bg {
  filter: saturate(1.12);
}
.hero-bg::after {
  background:
    linear-gradient(100deg, #2a1640f2 0%, #2a1640cc 40%, #2a164000 76%),
    linear-gradient(180deg, #1a163026 0%, transparent 45%, #1a163080 100%);
}
@media (max-width: 900px) {
  .hero-bg::after {
    background:
      linear-gradient(100deg, #2a1640f2 0%, #2a1640d9 58%, #2a164099 100%),
      linear-gradient(180deg, #1a163026 0%, transparent 45%, #1a163080 100%);
  }
}
/* FAQ: pokéball still marks the item, a right-hand +/− shows the state */
.faq-item summary {
  padding-right: 54px;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  left: auto;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3f1fa;
  border: 1.5px solid var(--line);
  font: 800 19px/1 var(--font);
  color: var(--ink-2);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.faq-item[open] summary::after {
  content: "\2212";
  background: #fff0f1;
  border-color: #ffc9cc;
  color: var(--red-d);
}

/* ==========================================================================
   HERO PASS 2 (Lead review): vivid game-style gradient, scrim only where the
   copy needs contrast, hero console visible on tablets too.
   ========================================================================== */
.hero-bg {
  filter: saturate(1.16) brightness(1.02);
  background-image:
    var(--stripes),
    radial-gradient(840px 560px at 86% 14%, #ffd08a 0%, #ff8a8e 42%, #ff5a5f00 78%),
    radial-gradient(620px 460px at 98% 88%, #ff9ae06b 0%, #ff9ae000 70%),
    linear-gradient(112deg, #ff9a3a 0%, #ff5a5f 30%, #ff6fae 52%, #c46bff 78%, #8a5cff 100%);
}
.hero-bg::after {
  background:
    linear-gradient(100deg, #3c1030f2 0%, #3c1030d9 26%, #3c1030a6 44%, #3c103000 62%),
    linear-gradient(180deg, #1a163026 0%, transparent 45%, #1a163066 100%);
}
.hero-title {
  text-shadow: 0 2px 0 #1a1630, 0 4px 0 #1a1630, 0 14px 30px #1a1630c4;
}
.hero-art {
  max-width: 462px;
}
.hero-console {
  transform: rotate(2deg);
  box-shadow: 0 30px 60px #1a124680, inset 0 0 0 2px #3a2f6b, inset 0 2px 0 #6a5a9e66;
}
.hero-sticker--free {
  left: -18px;
  bottom: -16px;
  top: auto;
  transform: rotate(-6deg);
}
.hero-sticker--ver {
  right: -14px;
  top: -14px;
  bottom: auto;
  transform: rotate(4deg);
}
@media (max-width: 1024px) and (min-width: 561px) {
  .hero-inner {
    padding-bottom: 92px;
  }
  .hero-art {
    display: block;
    max-width: 460px;
    margin: 30px auto 0;
    justify-self: center;
  }
  .hero-copy {
    max-width: 700px;
  }
  .hero-bg::after {
    background:
      linear-gradient(180deg, #3c1030f2 0%, #3c1030d9 40%, #3c1030a6 56%, #3c103000 80%),
      linear-gradient(90deg, #1a16301f 0%, transparent 40%, #1a16301f 100%);
  }
}
@media (max-width: 900px) and (min-width: 561px) {
  .hero-bg::after {
    background:
      linear-gradient(180deg, #3c1030f2 0%, #3c1030d9 40%, #3c1030a6 56%, #3c103000 80%),
      linear-gradient(90deg, #1a16301f 0%, transparent 40%, #1a16301f 100%);
  }
}
@media (max-width: 560px) {
  .hero-bg::after {
    background:
      linear-gradient(180deg, #3c1030f2 0%, #3c1030dc 48%, #3c1030c2 76%, #3c103000 100%),
      linear-gradient(180deg, #1a163026 0%, transparent 45%, #1a163066 100%);
  }
  .hero-art {
    display: none;
  }
}

/* ==========================================================================
   CONTROLS TABLE (fix column distribution: fixed layout, narrow key column)
   ========================================================================== */
.controls-panel .controls-table {
  table-layout: fixed;
}
.controls-table th {
  width: auto;
}
.controls-table thead th:first-child,
.controls-table tbody th {
  width: 30%;
}
@media (max-width: 1024px) {
  .controls-table thead th:first-child,
  .controls-table tbody th {
    width: 26%;
  }
}
@media (max-width: 760px) {
  .controls-table thead th:first-child,
  .controls-table tbody th {
    width: 32%;
  }
}
@media (max-width: 560px) {
  .controls-table thead th:first-child,
  .controls-table tbody th {
    width: 38%;
  }
  .controls-table td {
    font-size: 12.5px;
  }
}

/* mobile hero: warm glow peeking below the copy so the gradient stays vivid */
@media (max-width: 560px) {
  .hero-bg {
    background-image:
      var(--stripes),
      radial-gradient(430px 330px at 14% 102%, #ff9a3aa8 0%, #ff5a5f00 72%),
      radial-gradient(520px 380px at 100% 0%, #ff8a8e66 0%, #ff5a5f00 76%),
      linear-gradient(160deg, #ff9a3a 0%, #ff5a5f 34%, #ff6fae 58%, #c46bff 82%, #8a5cff 100%);
  }
  .hero-inner {
    padding-bottom: 88px;
  }
}

/* ==========================================================================
   Anchor offset fix: use html scroll-padding only (scroll-margin doubled it).
   ========================================================================== */
section[id],
#top {
  scroll-margin-top: 0;
}
@media (max-width: 760px) {
  :root {
    --head-h: 96px;
  }
}

/* mobile hero: lighter plum scrim so the warm gradient reads through
   (white text still ≥5:1 over the brightest pink/orange stops) */
@media (max-width: 560px) {
  .hero-bg::after {
    background:
      linear-gradient(180deg, #3c1030e6 0%, #3c1030cc 38%, #3c1030b3 66%, #3c103000 100%),
      linear-gradient(180deg, #1a163026 0%, transparent 45%, #1a163066 100%);
  }
}


/* --------------------------------------------------------------- ads */
.ad-slot{position:relative;width:100%;max-width:1180px;margin:0 auto 20px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:16px;background:rgba(255,255,255,.55);border:1px dashed var(--line)}
.ad-label{position:absolute;top:7px;left:12px;z-index:1;font:800 10px/1 var(--font);letter-spacing:.14em;text-transform:uppercase;color:var(--ink-2);opacity:.65}
.ad-native{padding:14px 12px 10px;min-height:312px}
.ad-native-container{width:100%;min-height:280px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.ad-native-container iframe,.ad-native-container img{max-width:100%}
.ad-native.is-empty{opacity:.55}
@media(max-width:560px){.ad-native{min-height:300px;padding:18px 8px 10px}.ad-native-container{min-height:240px}}
.ad-native.is-empty{min-height:120px}
.ad-native.is-empty .ad-native-container{min-height:80px}


/* ------------------------------------------------ network cross-promo ---- */
.promo-section{background:linear-gradient(180deg,#fff 0%,var(--paper-2) 60%,#fff 100%)}
.promo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:26px 0 0}
.promo-grid>li{display:flex}
.promo-card{display:flex;flex-direction:column;width:100%;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);overflow:hidden;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease}
.promo-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.promo-shot{position:relative;display:block;aspect-ratio:16/9;background:var(--navy-3);overflow:hidden}
.promo-shot img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.promo-card:hover .promo-shot img{transform:scale(1.04)}
.promo-shot::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 58%,#1a124659);pointer-events:none}
.promo-body{display:flex;flex-direction:column;gap:8px;padding:16px 18px 18px;flex:1}
.promo-name{font:800 20px/1.2 var(--font-title);color:var(--ink)}
.promo-text{flex:1;font:600 14.5px/1.5 var(--font);color:var(--ink-2)}
.promo-cta{display:inline-flex;align-items:center;gap:6px;font:800 14px/1 var(--font);color:var(--red-d)}
.promo-card:hover .promo-cta{color:var(--red)}
.promo-cta .ico{width:14px;height:14px}
.promo-note{margin:18px 0 0;text-align:center;font:700 13.5px/1.4 var(--font);color:var(--ink-2)}
@media(max-width:900px){
  .promo-grid{grid-template-columns:1fr;gap:14px}
  .promo-card{flex-direction:row;align-items:stretch}
  .promo-shot{width:42%;flex:none;aspect-ratio:16/9;align-self:center}
}
@media(max-width:560px){
  .promo-card{flex-direction:column}
  .promo-shot{width:100%}
  .promo-body{padding:14px 16px 16px}
  .promo-name{font-size:19px}
}
