/* Fonts + design-system + type-badges linked from HTML (avoids duplicate @import chains). */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

[id] {
  scroll-margin-top: calc(7.25rem + env(safe-area-inset-top));
}

.m-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

.m-hero {
  content-visibility: visible;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 300;
  padding: 0.5rem 0.85rem;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--focus-ring);
  border-radius: var(--radius);
  font-size: 0.875rem;
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform 0.15s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.m-impact {
  font-family: var(--font-impact);
  font-weight: 800;
  font-stretch: condensed;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.9;
}

.m-jp {
  font-family: var(--font-body);
  opacity: 0.35;
  font-size: 0.85em;
  letter-spacing: 0.08em;
  pointer-events: none;
  user-select: none;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Top bar —— */
.m-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: max(0.75rem, env(safe-area-inset-top)) clamp(1rem, 4vw, 1.5rem) 0.75rem;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  transition: padding 0.25s var(--ease), border-color 0.25s;
}

.m-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.m-appearance-bar {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 0.55rem clamp(1rem, 4vw, 1.5rem);
}

.m-appearance-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  max-width: var(--max);
  margin: 0 auto;
}

.m-appearance-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.m-appearance-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.m-appearance-hint {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

.m-appearance-toggle .cdx-theme-toggle {
  box-shadow: 2px 2px 0 rgba(10, 10, 10, 0.08);
}

.m-appearance-toggle .cdx-theme-btn {
  min-height: 44px;
  min-width: 4.5rem;
  font-size: 0.75rem;
  padding: 0.45rem 0.75rem;
  touch-action: manipulation;
}

.m-topbar.is-compact .m-appearance-bar {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.m-topbar.is-compact .m-appearance-hint {
  display: none;
}

.m-btn,
.m-menu-btn,
.m-nav-desk a,
.m-subnav a,
.view-toggle button,
.game-pill {
  touch-action: manipulation;
}

.m-topbar-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.m-theme-bar--compact .cdx-theme-toggle {
  box-shadow: 2px 2px 0 rgba(10, 10, 10, 0.06);
}

.m-theme-bar--compact .cdx-theme-btn {
  min-height: 36px;
  min-width: 2.5rem;
  padding: 0.3rem 0.45rem;
  font-size: 0.625rem;
}

@media (max-width: 720px) {
  .m-topbar-end .m-theme-bar--compact {
    display: none;
  }
}

.m-topbar.is-compact {
  padding-top: max(0.5rem, env(safe-area-inset-top));
  padding-bottom: 0.5rem;
}

.m-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.03em;
  transition: font-size 0.25s var(--ease);
}

.m-topbar.is-compact .m-logo-full {
  display: none;
}

.m-topbar.is-compact .m-logo-mark {
  display: inline;
}

.m-logo-mark {
  display: none;
  font-size: 1.5rem;
}

.m-menu-btn {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  padding: 0.45rem 1.1rem;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.m-menu-btn:active {
  transform: scale(0.97);
}

.m-nav-desk {
  display: none;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.9rem;
}

.m-nav-desk a {
  text-decoration: none;
  color: var(--text-soft);
}

.m-nav-desk a:hover {
  color: var(--text);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .m-nav-desk {
    display: none;
  }
  .m-topbar-end .m-theme-mount {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .m-menu-btn {
    display: none;
  }
  .m-nav-desk {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .m-logo-mark {
    display: none !important;
  }
  .m-logo-full {
    display: inline !important;
  }
  .m-subnav {
    top: calc(6.75rem + env(safe-area-inset-top));
  }
}

/* Sticky in-page jumps — mobile + desktop */
.m-subnav {
  display: flex;
  position: sticky;
  top: calc(4.25rem + env(safe-area-inset-top));
  z-index: 150;
  gap: 0.75rem 1.25rem;
  justify-content: flex-start;
  padding: 0.45rem 1rem;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.m-subnav::-webkit-scrollbar {
  display: none;
}

.m-subnav a {
  color: var(--text-soft);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.m-subnav a:hover {
  color: var(--text);
}

.m-subnav a.is-active {
  color: var(--text);
  border-bottom-color: var(--pop-red);
  font-weight: 600;
}

[data-magnetic] {
  --mag-x: 0px;
  --mag-y: 0px;
  transform: translate(var(--mag-x), var(--mag-y));
  transition: transform 0.2s var(--ease);
}

/* Hidden checkbox — opens menu without JS (label[for] + :checked) */
.m-nav-state {
  position: fixed;
  left: -100vw;
  top: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

/* Full-screen menu takeover — versus / Persona energy */
.m-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.42s cubic-bezier(0.77, 0, 0.18, 1), visibility 0.42s;
  overflow: hidden;
}

.m-nav-scrim {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 0;
}

.m-nav-panel {
  position: relative;
  z-index: 1;
  isolation: isolate;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--poke-red);
  color: #fff;
  padding: 1.5rem 1.25rem 2rem;
  min-height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.m-nav-panel::before {
  content: "決闘";
  position: absolute;
  right: -0.15em;
  top: 18%;
  font-size: clamp(6rem, 28vw, 14rem);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
}

.m-nav-overlay.is-open,
html.menu-open-pending .m-nav-overlay,
#mNavOpen:checked ~ #navOverlay {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  z-index: 400;
}

html.menu-open-pending body,
body:has(#mNavOpen:checked) {
  overflow: hidden;
}

.m-nav-close {
  align-self: flex-end;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: var(--radius);
  touch-action: manipulation;
}

.m-nav-overlay nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.m-nav-overlay nav a {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 6vw, 2rem);
  text-decoration: none;
  color: var(--text);
  line-height: 1.1;
  text-transform: lowercase;
  padding: 0.65rem 1.1rem;
  border: var(--border-thick) solid var(--border);
  background: var(--poke-yellow);
  box-shadow: 4px 4px 0 var(--border);
  transition: transform 0.15s var(--ease);
}

.m-nav-overlay nav a:nth-child(1) { background: var(--poke-yellow); }
.m-nav-overlay nav a:nth-child(2) { background: var(--cyber-pink); color: #fff; }
.m-nav-overlay nav a:nth-child(3) { background: var(--poke-blue); color: #fff; }
.m-nav-overlay nav a:nth-child(4) { background: var(--surface); }
.m-nav-overlay nav a:nth-child(5) { background: var(--acid-green); color: var(--text); }

.m-nav-overlay nav a:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--border);
}

.m-nav-overlay--slim .m-nav-featured {
  display: none;
}

.m-nav-overlay--slim .m-nav-start {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-top: 0;
}

.m-nav-overlay--slim .m-nav-start .m-btn {
  width: 100%;
  justify-content: center;
}

.m-nav-overlay--slim nav {
  margin: 0.75rem 0;
}

.m-nav-secondary {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.92;
}

.m-nav-secondary a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.m-nav-start {
  margin-top: auto;
  text-align: center;
  padding-top: 1rem;
}

.m-nav-start p {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  text-transform: lowercase;
  color: #fff;
}

.m-nav-start .m-btn {
  width: 100%;
  max-width: 20rem;
  margin-inline: auto;
}

.m-nav-featured {
  border-top: 2px solid rgba(255, 255, 255, 0.35);
  padding-top: 1rem;
}

.m-nav-featured p {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.m-nav-featured-strip {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
}

.m-nav-featured-strip img {
  width: 72px;
  height: 100px;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Mobile bottom CTA */
.m-bottom-cta {
  display: none;
  pointer-events: auto;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  padding: 0.85rem 1rem;
  background: var(--poke-red);
  color: #fff;
  text-align: center;
  font-family: var(--font-impact);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-top: var(--border-thick) solid var(--border);
  box-shadow: 0 -4px 0 var(--border);
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
  animation: m-coin-pulse 2.2s ease-in-out infinite;
}

@keyframes m-coin-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

.m-bottom-cta.is-visible {
  transform: translateY(0);
}

@media (max-width: 899px) {
  .m-bottom-cta {
    display: block;
    padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
  }
  main {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }
  .m-hero-grid {
    gap: 2.5rem;
  }
  .m-pillar {
    padding: 1.75rem 1.25rem;
  }
  .m-how-block {
    padding: 2rem 0;
    min-height: auto;
  }
  .m-vs-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .m-vs-mid {
    order: 0;
  }
  .m-vs-fighter.is-winner {
    order: -1;
  }
  .m-stat {
    padding: 2rem 1.25rem;
  }
  .m-stat-num {
    font-size: clamp(3.25rem, 16vw, 5rem);
  }
  .m-pricing {
    gap: 1.25rem;
  }
  .m-cta-final {
    padding-inline: clamp(1rem, 4vw, 1.5rem);
  }
  .m-cta-final h2 {
    max-width: none;
    padding-inline: 0.5rem;
  }
  .m-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem clamp(1rem, 4vw, 1.5rem);
  }
}

/* Buttons */
.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s;
}

.m-btn:active {
  transform: scale(0.98);
}

.m-btn-red {
  background: var(--pop-red);
  color: #fff;
  border-color: var(--border);
}

.m-btn-red:hover {
  box-shadow: 4px 4px 0 var(--border);
}

.m-btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.m-plan-featured .m-btn-outline-light {
  background: #fff;
  color: var(--pop-purple);
  border-color: #fff;
}

.m-plan-featured .m-btn-outline-light:hover {
  background: var(--pop-gold);
  color: var(--text);
  border-color: var(--border);
}

.m-link {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.m-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}

@media (min-width: 768px) {
  .m-wrap {
    width: min(100% - 3rem, var(--max));
    padding-inline: 0;
  }
}

/* Scroll progress (homepage) */
.m-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 220;
  pointer-events: none;
  background: transparent;
}

.m-scroll-progress-fill {
  display: block;
  height: 100%;
  width: calc(var(--scroll-progress, 0) * 100%);
  background: linear-gradient(90deg, var(--pop-red), var(--poke-yellow), var(--acid-green));
  transform-origin: left center;
  transition: width 0.12s linear;
}

/* Scroll-triggered blocks */
.m-scroll-in {
  opacity: 1;
  transform: none;
}

html.js-ready .m-scroll-in:not(.is-in-view) {
  opacity: 0;
  transform: translateY(20px);
}

html.js-ready .m-scroll-in.is-in-view {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
}

/* Hero entrance — hidden until .is-in (no-JS: copy stays visible) */
.reveal {
  opacity: 1;
  transform: none;
}

html.js-ready .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(18px);
}

html.js-ready .reveal.is-in {
  animation: m-reveal 0.6s var(--ease) both;
}

.reveal[data-d="1"] { animation-delay: 40ms; }
.reveal[data-d="2"] { animation-delay: 80ms; }
.reveal[data-d="3"] { animation-delay: 120ms; }
.reveal[data-d="4"] { animation-delay: 160ms; }

@keyframes m-reveal {
  from {
    opacity: 0.85;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Hero —— */
.m-hero {
  position: relative;
  padding: clamp(2.5rem, 8vw, 4rem) 0 clamp(2.5rem, 6vw, 3.5rem);
  background: var(--bg);
  overflow: clip;
}

.m-hero-ambient {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background:
    radial-gradient(ellipse 55% 45% at 20% 30%, rgba(217, 70, 239, 0.2), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(6, 182, 212, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 35% at 60% 20%, rgba(250, 204, 21, 0.12), transparent 50%);
  transform: translate3d(0, var(--scroll-y, 0), 0);
  will-change: transform;
}

.m-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.m-hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 8.5vw, 4.25rem);
  line-height: 1.02;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: -0.03em;
}

.m-hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text-soft);
  max-width: 32rem;
}

.m-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.m-hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 320px);
  --mx: 55%;
  --my: 35%;
}

.m-hero-card-wrap {
  --rx: 0deg;
  --ry: 0deg;
  transform: rotate(3deg) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  padding: 10px;
  background: var(--poke-yellow);
  border: var(--border-thick) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 14px 18px 0 rgba(10, 10, 10, 0.15);
}

html.js-motion-fine .m-hero-visual:hover .m-hero-card-wrap {
  transition-duration: 0.1s;
}

.m-hero-card-wrap.is-poke {
  animation: m-hero-poke 0.45s var(--ease);
}

@keyframes m-hero-poke {
  0% {
    transform: rotate(3deg) perspective(900px) scale(1);
  }
  35% {
    transform: rotate(1deg) perspective(900px) scale(1.04) translateY(-6px);
  }
  100% {
    transform: rotate(3deg) perspective(900px) scale(1);
  }
}

.m-hero-card-wrap img {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 6px;
  box-shadow: none;
}

.m-hero-card-wrap:hover {
  transform: rotate(1deg) translateY(-4px);
}

.m-hero-shine {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  opacity: 0.22;
  background: radial-gradient(
    circle at var(--mx) var(--my),
    rgba(6, 182, 212, 0.55) 0%,
    rgba(217, 70, 239, 0.4) 30%,
    transparent 55%
  );
  mix-blend-mode: multiply;
}

body.is-touch .m-hero-shine {
  opacity: 0.12;
  --mx: 60%;
  --my: 30%;
}

@media (min-width: 900px) {
  .m-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
  .m-hero-visual {
    width: min(100%, 400px);
  }
  .m-hero-actions {
    flex-direction: row;
    align-items: center;
  }
}

/* —— Ticker —— */
.m-ticker-band {
  background: var(--surface-warm);
  border-block: 2px solid var(--border);
  padding: 0.9rem 0;
  overflow: hidden;
}

.m-ticker {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: m-scroll 55s linear infinite;
}

.m-ticker:hover,
.m-ticker-band.is-paused .m-ticker {
  animation-play-state: paused;
}

@keyframes m-scroll {
  to {
    transform: translateX(-50%);
  }
}

.m-ticker-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.m-ticker-item img {
  width: 36px;
  height: 50px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 3px;
}

.m-ticker-item strong {
  color: var(--text);
}

.m-ticker-item .price {
  font-family: var(--font-mono);
  color: var(--text);
}

.m-ticker-item .up {
  color: var(--pop-green);
  font-family: var(--font-mono);
}

.m-ticker-item .down {
  color: var(--pop-red);
  font-family: var(--font-mono);
}

/* —— Section markers —— */
.m-section {
  padding: clamp(3rem, 10vw, 5rem) 0;
}

.m-section-warm {
  background: var(--surface-warm);
}

.m-marker {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 4.5rem);
  line-height: 1;
  color: var(--border-soft);
  margin: 0 0 0.75rem;
}

.m-section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  text-transform: lowercase;
  max-width: 22ch;
  line-height: 1.05;
  position: relative;
  z-index: 1;
}

#faq .m-section-title {
  max-width: none;
}

.m-section-lead {
  margin: 0 0 2rem;
  color: var(--text-soft);
  max-width: 40rem;
  font-size: 1.05rem;
}

/* Pillars */
.m-pillars {
  display: grid;
  gap: 0;
}

.m-pillar {
  padding: 2rem 1.5rem;
  color: #fff;
  border: 2px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .m-pillar.is-in-view:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 0 rgba(10, 10, 10, 0.12);
    z-index: 2;
  }
}

.m-pillar + .m-pillar {
  margin-top: -2px;
}

.m-pillar-red {
  background: var(--pop-red);
}
.m-pillar-blue {
  background: var(--pop-blue);
}
.m-pillar-gold {
  background: var(--pop-gold);
  color: var(--text);
}

.m-pillar-shot {
  aspect-ratio: 16/10;
  background: rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.m-pillar-gold .m-pillar-shot {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.35);
}

.m-pillar-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-pillar h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  text-transform: lowercase;
}

.m-pillar p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.95;
}

@media (min-width: 900px) {
  .m-pillars {
    grid-template-columns: repeat(3, 1fr);
  }
  .m-pillar + .m-pillar {
    margin-top: 0;
    margin-left: -2px;
  }
}

/* How it works — editorial */
.m-how-block {
  min-height: 50vh;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 2px solid var(--border-soft);
}

.m-how-block:last-child {
  border-bottom: none;
}

.m-how-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin: 0;
  line-height: 1;
}

.m-how-block h3 {
  margin: 0.25rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  text-transform: lowercase;
}

.m-how-block p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 36rem;
}

.m-how-visual img {
  border: 3px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 8px 10px 0 rgba(10, 10, 10, 0.08);
  transform: rotate(-2deg);
}

.m-pull {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  border-left: 4px solid var(--pop-red);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
  text-transform: lowercase;
}

@media (min-width: 800px) {
  .m-how-block {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .m-how-block.is-reverse .m-how-visual {
    order: 2;
  }
  .m-how-block.is-reverse .m-how-copy {
    order: 1;
  }
}

/* Flip paths */
.m-paths {
  display: grid;
  gap: 1.5rem;
}

.m-flip {
  perspective: 1200px;
  min-height: 300px;
}

.m-flip-inner {
  position: relative;
  width: 100%;
  min-height: 300px;
  transform-style: preserve-3d;
  transition: transform 0.65s var(--ease);
}

.m-flip:hover .m-flip-inner,
.m-flip:focus-within .m-flip-inner,
.m-flip.is-flipped .m-flip-inner {
  transform: rotateY(180deg);
}

.m-flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  padding: 2rem;
  border: 3px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.m-flip-front {
  color: #fff;
}

.m-flip-front h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform: lowercase;
}

.m-flip-back {
  transform: rotateY(180deg);
  background: var(--surface);
  color: var(--text);
  justify-content: center;
}

.m-flip-back ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.m-flip-back li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
}

.m-flip-pink .m-flip-front {
  background: var(--pop-pink);
}
.m-flip-blue .m-flip-front {
  background: var(--pop-blue);
}

@media (min-width: 700px) {
  .m-paths {
    grid-template-columns: 1fr 1fr;
  }
}

/* Stats */
.m-stats {
  display: grid;
  gap: 0;
}

.m-stat {
  padding: 2.5rem 1.5rem;
  border: 2px solid var(--border);
  margin-top: -2px;
}

.m-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.m-stat-label {
  display: block;
  margin-top: 0.75rem;
  font-size: 1rem;
  max-width: 14rem;
}

.m-stat-a {
  background: var(--pop-gold);
  color: var(--text);
}
.m-stat-b {
  background: var(--pop-blue);
  color: #fff;
}
.m-stat-c {
  background: var(--pop-pink);
  color: #fff;
}

@media (min-width: 768px) {
  .m-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .m-stat {
    margin-left: -2px;
  }
  .m-stat:first-child {
    margin-left: 0;
  }
}

/* Pricing */
.m-pricing {
  display: grid;
  gap: 1rem;
}

.m-plan {
  padding: 1.5rem;
  background: var(--surface);
  border: 2px solid var(--border);
}

.m-plan-featured {
  background: var(--pop-purple);
  color: #fff;
}

/* Paid card uses .m-tcg-inner + .m-plan-featured — inner rule must not paint white over purple */
.m-tcg-inner.m-plan-featured {
  background: var(--pop-purple);
  color: #fff;
}

.m-plan-featured h3,
.m-plan-featured .m-plan-price,
.m-plan-featured .m-plan-blurb,
.m-plan-featured li,
.m-plan-featured strong {
  color: inherit;
}

.m-plan-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--pop-gold);
  color: var(--text);
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.75rem;
  border: 2px solid var(--border);
}

.m-plan h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: lowercase;
}

.m-plan-price {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  margin: 0.5rem 0 1rem;
}

.m-plan-price span {
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.85;
}

.m-plan-blurb {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.m-plan-featured .m-plan-blurb {
  color: rgba(255, 255, 255, 0.88);
}

.m-plan-note {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

.m-plan-featured .m-plan-note {
  color: rgba(255, 255, 255, 0.75);
}

.m-pricing-page .m-plan .m-btn {
  width: 100%;
  text-align: center;
}

/* Feature comparison table */
.m-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: var(--border-thick) solid var(--border);
  background: var(--surface);
}

.m-compare-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.m-compare-table th,
.m-compare-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

.m-compare-table thead th {
  background: var(--poke-yellow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
}

.m-compare-table tbody th[scope="row"] {
  font-weight: 500;
  color: var(--text);
  font-family: var(--font-body);
}

.m-compare-table tr:last-child th,
.m-compare-table tr:last-child td {
  border-bottom: none;
}

.m-fee-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 36rem;
}

.m-fee-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
}

.m-addon-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .m-addon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .m-addon-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.m-addon-card {
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 2px solid var(--border);
}

.m-addon-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: lowercase;
}

.m-addon-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.m-plan ul {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.m-plan li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.m-plan-featured li {
  border-color: rgba(255, 255, 255, 0.25);
}

@media (min-width: 768px) {
  .m-pricing {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Loyalty ladder */
.m-ladder {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.m-rung {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  background: var(--surface);
  align-items: center;
}

.m-rung-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.m-rung-fee {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  grid-row: span 2;
}

.m-rung-range {
  grid-column: 1;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.m-rung-holo {
  background: var(--holo);
  color: var(--text);
}

.m-rung-holo .m-rung-range {
  color: var(--text-soft);
}

/* FAQ */
.m-faq {
  position: relative;
  z-index: 1;
}

.m-faq-item {
  border-bottom: 2px solid var(--border);
  position: relative;
  isolation: isolate;
}

.m-faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  line-height: 1.35;
  text-transform: lowercase;
  cursor: pointer;
  color: var(--text);
  position: relative;
  z-index: 2;
}

.m-faq-item button > span:first-child {
  flex: 1;
  min-width: 0;
  padding-right: 0.25rem;
}

.m-faq-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  background: var(--poke-yellow);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.m-faq-item.is-open .m-faq-icon::before {
  content: "−";
}

.m-faq-item:not(.is-open) .m-faq-icon::before {
  content: "+";
}

.m-faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
  margin: 0;
  padding: 0;
}

.m-faq-item.is-open .m-faq-panel {
  grid-template-rows: 1fr;
}

.m-faq-panel > div {
  overflow: hidden;
  min-height: 0;
}

.m-faq-item:not(.is-open) .m-faq-panel {
  visibility: hidden;
}

.m-faq-item.is-open .m-faq-panel {
  visibility: visible;
}

.m-faq-panel-inner {
  background: var(--surface-warm);
  padding: 1rem 1.25rem 1.25rem;
  margin: 0 0 1rem;
  border: 2px solid var(--border);
}

.m-faq-panel p {
  margin: 0 0 0.75rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.m-faq-panel p:last-child {
  margin-bottom: 0;
}

.m-faq-panel ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.m-faq-panel li + li {
  margin-top: 0.35rem;
}

/* Final CTA */
.m-cta-final {
  background: var(--pop-red);
  color: #fff;
  text-align: center;
  padding: clamp(4rem, 12vw, 7rem) 1.5rem;
  border-top: 3px solid var(--border);
}

.m-cta-final h2 {
  margin: 0 auto 2rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1.05;
  text-transform: lowercase;
}

/* Section impact divider */
.m-impact-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 0 1.5rem;
  opacity: 0.9;
}

.m-impact-divider img {
  height: 2rem;
  width: auto;
}

/* Versus screen */
.m-vs {
  position: relative;
  padding: 3rem 0 4rem;
  background: var(--poke-blue);
  color: #fff;
  overflow: hidden;
  border-block: var(--border-thick) solid var(--border);
}

.m-vs::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, var(--poke-red) 0%, transparent 42%),
    linear-gradient(235deg, var(--cyber-pink) 0%, transparent 38%);
  opacity: 0.55;
  pointer-events: none;
}

.m-page-home .m-vs::before {
  transform: translate3d(0, calc(var(--scroll-y, 0) * -0.25), 0);
}

.m-vs .m-wrap {
  position: relative;
  z-index: 1;
}

.m-vs-head {
  margin-bottom: 2rem;
}

.m-vs-head .m-marker {
  color: rgba(255, 255, 255, 0.35);
}

.m-vs-head h2 {
  color: #fff;
  margin: 0;
}

.m-vs-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.m-vs-fighter {
  background: var(--surface);
  color: var(--text);
  border: var(--border-thick) solid var(--border);
  padding: 1.25rem;
  box-shadow: 6px 6px 0 var(--border);
  position: relative;
}

.m-vs-fighter.is-winner {
  outline: 4px solid var(--poke-yellow);
  box-shadow: 8px 8px 0 var(--border), 0 0 0 4px var(--poke-yellow);
}

.m-vs-fighter h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-impact);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.m-vs-fighter.is-winner h3::after {
  content: " ★ WIN";
  color: var(--poke-red);
  font-size: 0.75rem;
}

.m-vs-stat {
  margin-bottom: 0.65rem;
}

.m-vs-stat label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.m-vs-bar {
  height: 12px;
  background: var(--surface-warm);
  border: 2px solid var(--border);
  overflow: hidden;
}

.m-vs-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--acid-green);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.m-vs-fighter.is-bars-ready .m-vs-bar span {
  width: var(--bar-w, 0%);
}

.m-vs-fighter:not(.is-winner) .m-vs-bar span {
  background: var(--muted);
}

.m-vs-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}

.m-vs-mid .m-impact {
  font-size: clamp(3rem, 14vw, 6rem);
  color: #fff;
  text-shadow: 4px 4px 0 var(--border);
  transform: rotate(-8deg);
}

.m-vs-mid-2 {
  display: none;
}

@media (max-width: 799px) {
  .m-vs-mid {
    padding: 0.25rem 0;
  }
}

@media (min-width: 800px) {
  .m-vs-grid {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0.75rem;
    align-items: center;
  }
  .m-vs-mid {
    padding: 0;
  }
  .m-vs-mid-2 {
    display: flex;
  }
}

.m-vs-stack {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: var(--border-thick) solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.95);
}

.m-vs-stack h3 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
}

.m-vs-stack p {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.m-vs-stack p:last-child {
  margin-bottom: 0;
}

.m-games-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 1rem;
}

.m-game-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: var(--border-thick) solid var(--border);
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--border);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.m-game-chip.is-pressed {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--border);
}

a.m-game-chip.is-live {
  text-decoration: none;
  color: inherit;
}

.m-game-chip.is-live {
  background: var(--poke-yellow);
}

.m-game-chip.is-live::after {
  content: " · live";
  margin-left: 0.35rem;
  color: var(--poke-red);
  font-weight: 700;
}

.m-game-chip.is-soon {
  background: var(--bg);
  color: var(--text-muted);
  border-style: dashed;
  box-shadow: none;
}

.m-games-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 42rem;
}

.m-today-list {
  margin: 1rem 0 1.25rem;
  padding-left: 1.2rem;
  max-width: 40rem;
  line-height: 1.55;
}

.m-today-list li {
  margin-bottom: 0.5rem;
}

.m-today-cta,
.m-features-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 1.25rem;
}

.m-features-cta-sep {
  color: var(--muted);
  user-select: none;
}

.m-features-games {
  margin: 1rem 0 0.75rem;
}

.m-waitlist-compact {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  max-width: 36rem;
}

.m-features-steps-wrap {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
}

.m-features-steps-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.m-features-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .m-features-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.m-features-steps li {
  padding: 1rem;
  border: 2px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
}

.m-features-steps li strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.m-features-steps li p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.m-waitlist {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: var(--border-thick) solid var(--border);
  background: var(--surface);
  max-width: 32rem;
}

.m-waitlist label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.m-waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.m-waitlist-row input[type="email"] {
  flex: 1 1 12rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: var(--border-thick) solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.m-waitlist-status {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
}

.m-waitlist-legal {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.m-waitlist-inline {
  margin-top: 0.75rem;
  max-width: 100%;
}

.m-roadmap-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 720px) {
  .m-roadmap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.m-roadmap-card {
  border: var(--border-thick) solid var(--border);
  padding: 1.25rem;
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--border);
}

.m-roadmap-card.is-live {
  background: var(--poke-yellow);
}

.m-roadmap-card.is-beta {
  background: #fff8e6;
}

.m-roadmap-card.is-soon {
  border-style: dashed;
  box-shadow: none;
}

.m-roadmap-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}

.m-roadmap-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.m-roadmap-card li + li {
  margin-top: 0.35rem;
}

.m-roadmap-card code {
  font-size: 0.75rem;
}

.m-pricing .m-tcg {
  height: 100%;
}

.m-plan-featured-wrap .m-plan-featured {
  margin: 0;
}

/* TCG card frame wrapper */
.m-tcg {
  position: relative;
  padding: 14px 12px 16px;
  background: var(--poke-yellow);
  border: var(--border-thick) solid var(--border);
  border-radius: 10px;
  box-shadow: 6px 8px 0 rgba(10, 10, 10, 0.12);
}

.m-tcg::before {
  content: "◆";
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 0.65rem;
  opacity: 0.5;
}

.m-tcg-rarity-common::before { content: "●"; }
.m-tcg-rarity-uncommon::before { content: "◆"; }
.m-tcg-rarity-rare::before {
  content: "★";
  background: var(--holo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.85rem;
}

.m-tcg-inner {
  background: var(--surface);
  border: 2px solid var(--border);
  padding: 1.25rem;
}

.m-tcg-holo {
  background: var(--holo);
}

.m-tcg-holo .m-tcg-inner {
  background: rgba(255, 255, 255, 0.92);
}

/* HP-style loyalty ladder */
.m-hp-ladder {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.m-hp-tier {
  border: var(--border-thick) solid var(--border);
  padding: 1rem 1.15rem;
  background: var(--surface);
}

.m-hp-tier.is-holo {
  background: var(--holo);
}

.m-hp-tier.is-gold {
  background: var(--duel-gold);
}

.m-hp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.m-hp-head strong {
  font-size: 1.05rem;
}

.m-hp-head .mono {
  font-family: var(--font-mono);
  font-size: 1rem;
}

.m-hp-bar {
  height: 14px;
  border: 2px solid var(--border);
  background: var(--surface-warm);
  margin-bottom: 0.35rem;
}

.m-hp-fill {
  display: block;
  height: 100%;
  background: var(--poke-red);
  transition: width 1s var(--ease);
}

.m-hp-tier:nth-child(2) .m-hp-fill { background: var(--poke-blue); }
.m-hp-tier:nth-child(3) .m-hp-fill { background: var(--cyber-pink); }
.m-hp-tier:nth-child(4) .m-hp-fill { background: var(--poke-yellow); }
.m-hp-tier:nth-child(5) .m-hp-fill { background: var(--royal-purple); }
.m-hp-tier:nth-child(6) .m-hp-fill { background: var(--acid-green); }

.m-hp-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-soft);
  font-family: var(--font-mono);
}

.m-stat.is-ticking .m-stat-num {
  animation: m-combo-bounce 0.12s ease-out;
}

@keyframes m-combo-bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.m-stat-tag {
  font-family: var(--font-impact);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  opacity: 0.85;
  margin-bottom: 0.25rem;
}

.m-card-photo {
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

/* Community: voluntary support & acquisition */
.m-community {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.m-community-card {
  border: 3px solid var(--border);
  background: var(--surface);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.m-community-card h3 {
  margin: 0;
  font-size: 1.75rem;
  text-transform: lowercase;
}

.m-community-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.m-community-card ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.m-community-card li {
  margin: 0.35rem 0;
}

.m-community-gift {
  border-color: var(--pop-pink);
}

.m-community-deal {
  border-color: var(--pop-blue);
}

.m-community-shared {
  margin-bottom: 0.25rem;
}

.m-deal-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 2px dashed var(--border);
}

.m-deal-block:first-of-type {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: none;
}

.m-deal-subtitle {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  text-transform: lowercase;
  color: var(--text);
}

.m-deal-block .m-community-actions {
  margin-top: 0.75rem;
}

.m-community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.m-community-actions .m-btn {
  width: auto;
  min-height: 44px;
}

.m-legal-strip {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.m-legal-strip p {
  margin: 0 0 0.5rem;
}
.m-legal-strip p:last-child {
  margin-bottom: 0;
}
.m-donate-form {
  margin: 1rem 0 0.75rem;
}
.m-donate-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.m-donate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  margin-bottom: 0.5rem;
}
.m-donate-row input[type="number"] {
  flex: 1 1 120px;
  min-width: 100px;
  max-width: 160px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
}
.m-donate-form input[type="email"] {
  width: 100%;
  max-width: 320px;
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  padding: 0.55rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
}
.m-donate-hint {
  font-size: 0.7rem;
  margin: 0 0 0.75rem;
  opacity: 0.85;
}
.m-donate-status {
  font-size: 0.75rem;
  margin: 0.5rem 0 0;
}
.m-community-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
  line-height: 1.45;
}

@media (min-width: 800px) {
  .m-community {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

/* AdSense — small, below main CTA, labeled (homepage) */
.m-ad-slot {
  margin: 0 auto 2rem;
  padding: 0.65rem 1rem 0.85rem;
  max-width: min(728px, 100%);
  border: 1px dashed var(--border);
  border-radius: 10px;
  text-align: center;
  background: color-mix(in srgb, var(--bg) 92%, var(--muted) 8%);
}

.m-ad-label {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.m-ad-slot ins.adsbygoogle {
  max-height: 100px;
  overflow: hidden;
}

.m-ad-fallback {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.m-ad-fallback a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer */
.m-footer {
  padding: 2rem 1.25rem;
  border-top: 2px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.m-footer a {
  color: var(--text-soft);
}

.m-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  align-items: center;
  width: 100%;
}

.m-footer-nav a {
  text-decoration: none;
  font-weight: 500;
}

.m-footer-secondary {
  width: 100%;
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.9;
}

.m-footer-secondary a {
  color: var(--muted);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .m-scroll-progress {
    display: none;
  }
  .m-hero-ambient {
    transform: none;
    will-change: auto;
  }
  .reveal,
  .reveal.is-in,
  .m-scroll-in,
  .m-scroll-in.is-in-view {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .m-vs-fighter.is-bars-ready .m-vs-bar span,
  .m-vs-bar span[data-bar] {
    width: var(--bar-w, 50%);
    transition: none;
  }
  [data-magnetic] {
    transform: none;
  }
  .m-faq-item:not(.is-open) .m-faq-panel {
    visibility: visible;
  }
  .m-ticker {
    animation: none;
  }
  .m-flip:hover .m-flip-inner,
  .m-flip:focus-within .m-flip-inner {
    transform: none;
  }
  .m-hero-card-wrap,
  .m-how-visual img {
    transform: none;
  }
  .m-hero-card-wrap:hover {
    transform: none;
  }
  .m-nav-overlay,
  .m-nav-overlay.is-open {
    transform: none;
    transition: none;
  }
  .m-bottom-cta {
    animation: none;
  }
  .m-stat.is-ticking .m-stat-num {
    animation: none;
  }
}

/* —— Dark theme (marketing) —— */
[data-theme="dark"] .m-sprite-field {
  opacity: 0.35;
}

[data-theme="dark"] .m-hero-lead,
[data-theme="dark"] .m-section-lead {
  color: var(--text-soft);
}

[data-theme="dark"] .m-pillar-card {
  box-shadow: var(--shadow);
}

[data-theme="dark"] .m-btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

[data-theme="dark"] .m-btn-ghost:hover {
  background: var(--surface);
}

[data-theme="dark"] .m-pricing-card {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .m-pricing-card.is-featured {
  box-shadow: var(--shadow);
}

/* Changelog + sets browse (pkmn-inspired IA, seller-first framing) */
.m-changelog-list {
  display: grid;
  gap: 1rem;
}

.m-changelog-entry {
  border: var(--border-thick) solid var(--border);
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
}

.m-changelog-date {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.m-changelog-entry h2 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
}

.m-changelog-entry ul {
  margin: 0;
  padding-left: 1.1rem;
}

[data-theme="dark"] .m-ticker {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .m-footer {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .m-nav-overlay {
  background: var(--bg);
}

[data-theme="dark"] .m-bottom-cta {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .m-vs,
[data-theme="dark"] .m-cta-final,
[data-theme="dark"] .m-pillar-red,
[data-theme="dark"] .m-pillar-blue,
[data-theme="dark"] .m-pillar-gold {
  color: var(--on-accent);
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}
