/* Monstache website. Colours and fonts come from the game (lib/ui/widgets.dart, lib/game/sprites.dart). */

@font-face {
  font-family: "Luckiest";
  src: url("../fonts/LuckiestGuy-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Lilita";
  src: url("../fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #2a0f3a;
  --ink-deep: #1a0a24;
  --night: #241636;
  --night-2: #2c1c44;
  --orange: #ff9f1c;
  --orange-deep: #e67600;
  --purple: #8e44ad;
  --lilac: #d1a3ff;
  --green: #43a047;
  --green-deep: #2e7d32;
  --grass: #79c257;
  --grass-2: #84cc61;
  --red: #e53935;
  --pink: #ec407a;
  --cyan: #26c6da;
  --yellow: #ffd23f;
  --cream: #f3e5c8;
  --white: #ffffff;
  --text: #2a0f3a;
  --text-soft: #5b4670;
  --on-dark: #f6eefe;
  --on-dark-soft: #c9b6e0;
  --radius: 22px;
  --shadow-pop: 0 6px 0 var(--ink);
  --wrap: 1180px;
  --display: "Luckiest", "Lilita", system-ui, sans-serif;
  --ui: "Lilita", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--ui);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 4px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

.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;
}

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

/* ---------- Outlined cartoon text, like OutlinedText in the game ---------- */

.outlined {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.02;
  -webkit-text-stroke: 0.16em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.09em 0 var(--ink);
}

.title-xl {
  font-size: clamp(3.2rem, 11vw, 7.6rem);
  color: var(--orange);
  margin: 0;
}

.title-l {
  font-size: clamp(2.3rem, 6vw, 4rem);
  margin: 0 0 0.35em;
}

.title-m {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  margin: 0 0 0.3em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ui);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--ink);
  color: var(--yellow);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 14px;
}

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  max-width: 34em;
  margin: 0 0 24px;
}

/* ---------- Buttons ---------- */

.btn {
  --c: var(--green);
  --c-deep: var(--green-deep);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 24px;
  border: 4px solid var(--ink);
  border-radius: 20px;
  background: var(--c);
  color: var(--white);
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(42, 15, 58, 0.55);
  box-shadow: 0 6px 0 var(--c-deep), 0 6px 0 4px var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px) rotate(-1deg);
}
.btn:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--c-deep), 0 1px 0 4px var(--ink);
}
.btn--orange {
  --c: var(--orange);
  --c-deep: var(--orange-deep);
}
.btn--pink {
  --c: var(--pink);
  --c-deep: #b0285a;
}
.btn--purple {
  --c: #9c4fd0;
  --c-deep: #6a2b95;
}
.btn--small {
  min-height: 44px;
  padding: 6px 16px;
  font-size: 1rem;
  border-radius: 16px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 16px;
  align-items: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  min-height: 64px;
  padding: 10px 20px 10px 16px;
  border-radius: 18px;
  border: 4px solid var(--ink);
  background: var(--ink-deep);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform 0.12s ease;
  position: relative;
}
.store-btn:hover {
  transform: translateY(-2px);
}
.store-btn svg {
  width: 30px;
  height: 30px;
  flex: none;
}
.store-btn small {
  display: block;
  font-family: var(--ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  line-height: 1.1;
}
.store-btn strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.store-btn .soon {
  position: absolute;
  top: -14px;
  right: -10px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 4px 9px 2px;
  border-radius: 10px;
  border: 3px solid var(--ink);
  transform: rotate(6deg);
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(36, 22, 54, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 4px solid var(--ink);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 3px solid var(--ink);
}
.brand span {
  font-size: 1.7rem;
  color: var(--orange);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a:not(.btn) {
  display: inline-block;
  padding: 8px 10px;
  white-space: nowrap;
  color: var(--on-dark);
  text-decoration: none;
  border-radius: 12px;
  font-size: 1.05rem;
}
.nav__links a:not(.btn):hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--yellow);
}
.nav__toggle {
  display: none;
  background: none;
  border: 3px solid var(--on-dark-soft);
  color: var(--on-dark);
  border-radius: 12px;
  width: 48px;
  height: 44px;
  cursor: pointer;
}
.nav__toggle svg {
  margin: auto;
}

@media (max-width: 980px) {
  .nav__toggle {
    display: grid;
    place-items: center;
  }
  .nav__links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 20px;
    background: var(--night);
    border-bottom: 4px solid var(--ink);
    display: none;
  }
  .nav.is-open .nav__links {
    display: flex;
  }
  .nav__links a:not(.btn) {
    padding: 12px;
  }
  .nav__links .btn {
    margin-top: 8px;
  }
}

/* ---------- Backgrounds from the game ---------- */

.bg-garden {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(170, 230, 120, 0.55), transparent 60%),
    repeating-linear-gradient(90deg, var(--grass) 0 84px, var(--grass-2) 84px 168px);
}
.bg-night {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(38, 198, 218, 0.12), transparent 55%),
    repeating-linear-gradient(90deg, var(--night) 0 84px, var(--night-2) 84px 168px);
  color: var(--on-dark);
}
.bg-sand {
  background:
    radial-gradient(ellipse at 70% 20%, rgba(255, 255, 255, 0.5), transparent 55%),
    repeating-linear-gradient(90deg, #f6d9a0 0 84px, #f3d293 84px 168px);
}
.bg-orange {
  background:
    radial-gradient(ellipse at 50% 30%, #ffd35c, transparent 65%),
    var(--orange);
}

section {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(36px, 6vw, 72px) 0 clamp(80px, 10vw, 140px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(16px, 4vw, 48px);
  align-items: center;
}
.hero h1 {
  margin: 0 0 8px;
}
.hero h1 .title-xl {
  display: block;
  transform: rotate(-2deg);
  transform-origin: left center;
}
.hero h1 .tagline {
  display: block;
  font-size: clamp(1.4rem, 3.6vw, 2.4rem);
  color: var(--lilac);
  margin-top: 0.25em;
}
.hero .lead {
  color: var(--ink);
}
.hero .lead strong {
  color: var(--ink);
  background: linear-gradient(transparent 60%, rgba(255, 210, 63, 0.9) 60%);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}
.badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px 5px;
  font-size: 1rem;
  box-shadow: 0 3px 0 var(--ink);
}

.stage {
  position: relative;
  aspect-ratio: 680 / 560;
  width: 100%;
  max-width: 600px;
  justify-self: center;
}
.stage__monster {
  position: absolute;
  inset: 0;
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 40px;
  cursor: crosshair;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.stage__monster svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.monster {
  animation: bob 2.6s ease-in-out infinite;
  transform-origin: 0 180px;
}
.shadow {
  animation: shadow 2.6s ease-in-out infinite;
  transform-origin: 0 205px;
}
.arm-l {
  animation: wave-l 1.3s ease-in-out infinite;
  transform-origin: -156px -4px;
}
.arm-r {
  animation: wave-r 1.3s ease-in-out infinite;
  transform-origin: 156px -4px;
}
.eyes {
  transform-box: fill-box;
  transform-origin: center;
}
.eyes.blink {
  animation: blink 0.18s ease-in-out;
}
.stache {
  transition: transform 0.2s ease;
}
.pupil {
  transition: transform 0.08s linear;
}
.monster.hit {
  animation: hit 0.45s ease-out;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  50% { transform: translateY(-10px) scale(1.02, 0.985); }
}
@keyframes shadow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.9); opacity: 0.75; }
}
@keyframes wave-l {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-9deg); }
}
@keyframes wave-r {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(9deg); }
}
@keyframes blink {
  50% { transform: scaleY(0.08); }
}
@keyframes hit {
  0% { transform: rotate(0) scale(1); }
  20% { transform: rotate(-7deg) scale(1.06, 0.92); }
  45% { transform: rotate(5deg) scale(0.97, 1.04); }
  70% { transform: rotate(-2deg); }
  100% { transform: rotate(0) scale(1); }
}

.bubble {
  position: absolute;
  top: 2%;
  right: 2%;
  z-index: 3;
  background: var(--white);
  color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 8px 16px 5px;
  font-family: var(--display);
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.03em;
  box-shadow: 0 5px 0 var(--ink);
  transform: rotate(5deg);
  transition: transform 0.15s ease;
  pointer-events: none;
}
.bubble::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -16px;
  border: 10px solid transparent;
  border-top: 14px solid var(--ink);
  border-bottom: 0;
}
.bubble.pop {
  animation: pop 0.35s ease-out;
}
@keyframes pop {
  0% { transform: rotate(5deg) scale(0.6); }
  60% { transform: rotate(-3deg) scale(1.12); }
  100% { transform: rotate(5deg) scale(1); }
}

.stage__hint {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.95rem;
  background: rgba(42, 15, 58, 0.85);
  color: var(--white);
  border-radius: 999px;
  padding: 5px 14px 4px;
  pointer-events: none;
}
.stage__hint b {
  color: var(--yellow);
  font-weight: 400;
}

.projectile {
  position: fixed;
  z-index: 60;
  font-size: 40px;
  line-height: 1;
  pointer-events: none;
  will-change: transform;
}
.splat {
  position: absolute;
  pointer-events: none;
  font-size: clamp(36px, 7vw, 64px);
  animation: splat 1.4s ease-out forwards;
  z-index: 2;
}
@keyframes splat {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
  15% { transform: translate(-50%, -50%) scale(1.25); }
  70% { opacity: 1; }
  100% { transform: translate(-50%, -30%) scale(1); opacity: 0; }
}
.points {
  position: absolute;
  pointer-events: none;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--yellow);
  -webkit-text-stroke: 0.14em var(--ink);
  paint-order: stroke fill;
  animation: rise 1s ease-out forwards;
  z-index: 4;
}
@keyframes rise {
  from { transform: translate(-50%, 0); opacity: 1; }
  to { transform: translate(-50%, -70px); opacity: 0; }
}

.floaty {
  position: absolute;
  font-size: clamp(22px, 3.4vw, 36px);
  animation: floaty 5s ease-in-out infinite;
  pointer-events: none;
  filter: drop-shadow(0 3px 0 rgba(42, 15, 58, 0.35));
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-14px) rotate(8deg); }
}

/* Phone mockup: pulled up so it overlaps the bottom of the hero */
.how {
  padding-top: 0;
}
.phone {
  position: relative;
  width: min(980px, 100%);
  margin: clamp(-120px, -9vw, -56px) auto 0;
  padding: 12px;
  border-radius: 44px;
  background: var(--ink-deep);
  border: 4px solid #000;
  box-shadow: 0 30px 60px rgba(26, 10, 36, 0.45), inset 0 0 0 2px #4a3360;
  z-index: 5;
}
.phone img {
  border-radius: 32px;
  width: 100%;
  height: auto;
}
.phone::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 7px;
  height: 64px;
  transform: translateY(-50%);
  border-radius: 6px;
  background: #3b2850;
}

/* ---------- Cards & grids ---------- */

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}
.section-head p {
  margin: 0 auto;
  font-size: 1.2rem;
  max-width: 36em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.card {
  position: relative;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-pop);
}
.card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  margin: 6px 0 8px;
  line-height: 1.1;
}
.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}
.card .emoji {
  font-size: 46px;
  line-height: 1;
}
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -20px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  border: 4px solid var(--ink);
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--white);
  -webkit-text-stroke: 0.12em var(--ink);
  paint-order: stroke fill;
}
.steps .card:nth-child(2)::before { background: var(--cyan); }
.steps .card:nth-child(3)::before { background: var(--pink); }

/* Monster section */
.meet {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.meet__art {
  position: relative;
  max-width: 460px;
  justify-self: center;
  width: 100%;
}
.meet__art img {
  width: 100%;
}
.meet__art[data-rage="3"] img { animation: shake 0.25s linear infinite; }
@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 1px); }
  75% { transform: translate(3px, -1px); }
}
.meet h2 .lilac {
  color: var(--lilac);
}
.meet p {
  color: var(--on-dark-soft);
  font-size: 1.15rem;
}
.rage {
  margin: 26px 0 22px;
}
.rage__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--on-dark-soft);
  margin-bottom: 8px;
}
.rage__label b {
  color: var(--yellow);
  font-weight: 400;
  font-family: var(--display);
  letter-spacing: 0.04em;
}
.rage__bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: var(--ink-deep);
}
.rage__bar button {
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: #3a2a4f;
  color: var(--on-dark);
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.rage__bar button:hover {
  transform: translateY(-2px);
}
.rage__bar button.on:nth-child(1) { background: #8e44ad; }
.rage__bar button.on:nth-child(2) { background: #b13c8c; }
.rage__bar button.on:nth-child(3) { background: #cf3363; }
.rage__bar button.on:nth-child(4) { background: #ff1744; }
.tips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.tips li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--on-dark);
}
.tips li span:first-child {
  font-size: 1.6rem;
  line-height: 1.1;
}

/* Hero creator */
.creator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.shot {
  margin: 0;
  border: 4px solid var(--ink);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 10px 0 var(--ink);
  background: var(--ink);
}
.shot img {
  width: 100%;
  height: auto;
}
.tilt-l { transform: rotate(-1.5deg); }
.tilt-r { transform: rotate(1.5deg); }
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 14px;
}
.checklist li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
}
.checklist .ico {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 26px;
  border-radius: 16px;
  border: 3px solid var(--ink);
  background: var(--cyan);
  box-shadow: 0 3px 0 var(--ink);
}
.checklist li:nth-child(2) .ico { background: var(--yellow); }
.checklist li:nth-child(3) .ico { background: var(--pink); }
.checklist li:nth-child(4) .ico { background: #9c4fd0; }
.checklist li:nth-child(5) .ico { background: var(--orange); }
.checklist b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.checklist p {
  margin: 2px 0 0;
  color: var(--text-soft);
  font-size: 1.02rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.checklist .chips li {
  display: inline-block;
}
.chips li {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 3px 12px 2px;
  font-size: 0.95rem;
}
.note {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(67, 160, 71, 0.14);
  border: 3px dashed var(--green-deep);
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 1rem;
  color: var(--green-deep);
}

/* Powers */
.marquee {
  overflow: hidden;
  padding: 10px 0 18px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee--rev .marquee__track {
  animation-direction: reverse;
  animation-duration: 56s;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.power {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  background: var(--night-2);
  color: var(--white);
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 10px 18px 8px;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  box-shadow: 0 5px 0 var(--ink);
}
.power span {
  font-size: 1.6rem;
}
.power--classic {
  background: var(--orange);
  color: var(--white);
  -webkit-text-stroke: 0.1em var(--ink);
  paint-order: stroke fill;
}
.power--classic span {
  -webkit-text-stroke: 0;
}

.lab {
  margin-top: clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 0.7fr;
  gap: 14px;
  align-items: stretch;
}
.lab__box {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-pop);
}
.lab__box h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
}
.lab__box h3 small {
  font-family: var(--ui);
  font-size: 0.9rem;
  color: var(--text-soft);
  letter-spacing: 0;
}
.lab__box .chips li {
  font-size: 0.9rem;
  background: #f5effb;
}
.lab__op {
  align-self: center;
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--white);
  -webkit-text-stroke: 0.14em var(--ink);
  paint-order: stroke fill;
}
.lab__emoji {
  display: grid;
  place-items: center;
  text-align: center;
}
.lab__emoji .big {
  font-size: 2.4rem;
  line-height: 1.3;
  word-break: break-all;
}

.weapons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: clamp(40px, 6vw, 72px);
}
.weapon {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-pop);
  transition: transform 0.15s ease;
}
.weapon:hover {
  transform: translateY(-4px) rotate(-1deg);
}
.weapon .emoji {
  font-size: 40px;
  line-height: 1;
}
.weapon h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  margin: 10px 0 2px;
}
.weapon p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-soft);
}

/* Levels */
.levels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.level {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  display: flex;
  flex-direction: column;
}
.level button {
  all: unset;
  display: block;
  cursor: zoom-in;
  position: relative;
}
.level button:focus-visible {
  outline: 4px solid var(--cyan);
  outline-offset: -4px;
}
.level img {
  width: 100%;
  aspect-ratio: 1200 / 554;
  object-fit: cover;
  border-bottom: 4px solid var(--ink);
  transition: transform 0.3s ease;
}
.level button:hover img {
  transform: scale(1.04);
}
.level .num {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--ink);
  font-family: var(--display);
  color: var(--ink);
  font-size: 1.1rem;
  padding-top: 3px;
}
.level__body {
  padding: 12px 14px 14px;
}
.level h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.level .local {
  display: block;
  font-size: 0.88rem;
  color: var(--purple);
}
.level p {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.35;
}

/* Level pages, like the level select screen in the game */
.level-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 26px;
}
.level-tabs button {
  min-width: 92px;
  min-height: 48px;
  padding: 6px 16px 3px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.level-tabs button:hover {
  transform: translateY(-2px);
}
.level-tabs button[aria-selected="true"] {
  background: var(--orange);
  color: var(--white);
  -webkit-text-stroke: 0.12em var(--ink);
  paint-order: stroke fill;
}
.level-page[hidden] {
  display: none;
}
.js .level-page + .level-page {
  margin-top: 0;
}
.level-page + .level-page {
  margin-top: 20px;
}
.level .tag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  padding: 4px 10px 2px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--white);
  transform: rotate(4deg);
}
.tag--final {
  background: var(--red);
}
.level-note {
  text-align: center;
  margin: 28px auto 0;
  max-width: 40em;
  font-size: 1.1rem;
  color: var(--ink);
}

/* Story and tournament */
.mode {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.mode--flip {
  grid-template-columns: 0.95fr 1.05fr;
}
.mode__lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 36em;
}
.mode__shots {
  display: grid;
  gap: 26px;
}
.mode .chips {
  margin: 0 0 18px;
}

/* VS */
.vs {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.vs h2 {
  color: var(--white);
}
.vs .red {
  color: #ff5a4f;
}
.vs p {
  color: var(--on-dark-soft);
  font-size: 1.15rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.stats li {
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px 8px 10px;
}
.stats b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2rem;
  color: var(--yellow);
  line-height: 1;
}
.stats span {
  font-size: 0.92rem;
  color: var(--on-dark-soft);
}

/* At a glance */
.glance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.glance__lead {
  font-size: 1.2rem;
  margin: 0;
}
.facts {
  margin: 0;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 18px;
}
.facts div + div {
  border-top: 2px solid #ece3f5;
}
.facts dt {
  font-family: var(--display);
  letter-spacing: 0.03em;
  color: var(--purple);
}
.facts dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
}

/* FAQ */
.faq {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.faq details {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--ink);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 56px 14px 20px;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--ink);
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
  padding-top: 3px;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  content: "–";
  background: var(--cyan);
}
.faq details > div {
  padding: 0 20px 18px;
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.faq details > div p {
  margin: 0 0 8px;
}

/* Final CTA */
.cta {
  text-align: center;
  overflow: hidden;
}
.cta .title-l {
  color: var(--white);
}
.cta p {
  font-size: 1.25rem;
  max-width: 30em;
  margin: 0 auto 30px;
}
.cta .store-row {
  justify-content: center;
}
.cta__monster {
  width: min(320px, 70%);
  margin: 0 auto 10px;
}

/* Footer */
.footer {
  background: var(--ink-deep);
  color: var(--on-dark-soft);
  padding: 44px 0 36px;
  font-size: 1rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
}
.footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer a {
  color: var(--on-dark);
  text-decoration: none;
}
.footer a:hover {
  color: var(--yellow);
}
.footer small {
  display: block;
  width: 100%;
  font-size: 0.92rem;
  opacity: 0.8;
}

/* Lightbox */
.lightbox {
  border: 4px solid var(--ink);
  border-radius: 24px;
  padding: 0;
  max-width: min(1200px, 94vw);
  background: var(--ink);
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(26, 10, 36, 0.82);
}
.lightbox img {
  border-radius: 20px;
  width: 100%;
  height: auto;
}
.lightbox figcaption {
  color: var(--white);
  text-align: center;
  padding: 10px 12px 12px;
  font-size: 1.05rem;
}
.lightbox__close {
  position: absolute;
  top: -18px;
  right: -14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: var(--red);
  color: var(--white);
  font-family: var(--display);
  font-size: 1.3rem;
  cursor: pointer;
  padding-top: 4px;
}

/* Reveal on scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1.2);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Simple text pages (privacy, support) ---------- */

.page-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 96px);
  text-align: center;
}
.page-hero .title-l {
  color: var(--orange);
}
.page-hero p {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink);
}
.doc {
  background: #fbf7ff;
  padding: clamp(48px, 7vw, 80px) 0;
}
.doc__inner {
  max-width: 780px;
  margin: 0 auto;
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.7;
  color: #3a2a48;
}
.doc__inner h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-size: 1.6rem;
  margin: 1.8em 0 0.4em;
  line-height: 1.2;
}
.doc__inner h2:first-child {
  margin-top: 0;
}
.doc__inner h3 {
  font-family: var(--ui);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 1.4em 0 0.3em;
}
.doc__inner a {
  color: #7b2fb0;
}
.doc__inner .summary {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--ink);
  padding: 18px 22px;
  margin-bottom: 2em;
}
.doc__inner .summary ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}
.doc__inner table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.98rem;
}
.doc__inner th,
.doc__inner td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 2px solid #e6dcef;
}
.doc__inner th {
  font-family: var(--ui);
  font-weight: 400;
  color: var(--ink);
}

/* ---------- Online play ---------- */

.online-soon {
  display: inline-block;
  margin-top: 14px !important;
  padding: 5px 14px 3px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1rem !important;
}
.phone--flat {
  margin: 0 auto clamp(36px, 5vw, 56px);
}
.levels--3 {
  grid-template-columns: repeat(3, 1fr);
}
.levels--3.levels--pairs {
  grid-template-columns: repeat(2, 1fr);
}
.levels--3 .level {
  color: var(--ink);
}
.levels--3 h3 {
  font-size: 1.4rem;
}
.levels--3 .local {
  font-size: 0.98rem;
  margin-top: 2px;
}
.levels--3 p {
  font-size: 1.02rem;
}
.tips--grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(32px, 5vw, 48px);
}
.tips--grid b {
  font-weight: 400;
  color: var(--yellow);
}
.safe {
  margin-top: clamp(24px, 4vw, 36px);
  padding: 20px 22px;
  background: rgba(67, 160, 71, 0.16);
  border: 3px dashed #7ed37f;
  border-radius: var(--radius);
  color: var(--on-dark);
}
.safe h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.safe ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.safe p {
  margin: 12px 0 0;
}
.safe a {
  color: var(--yellow);
}

/* ---------- Everything in the game ---------- */

.feats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.feat {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.15s ease;
}
.feat:has(a):hover {
  transform: translateY(-3px) rotate(-1deg);
}
.feat > * {
  display: block;
  height: 100%;
  padding: 14px 14px 12px;
  color: inherit;
  text-decoration: none;
}
.feat .emoji {
  display: block;
  font-size: 30px;
  line-height: 1;
}
.feat b {
  display: block;
  margin: 8px 0 2px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.feat span:last-child {
  display: block;
  font-size: 0.98rem;
  line-height: 1.3;
  color: var(--text-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .levels,
  .weapons {
    grid-template-columns: repeat(2, 1fr);
  }
  .lab {
    grid-template-columns: 1fr;
  }
  .lab__op {
    justify-self: center;
    line-height: 0.6;
  }
}

@media (max-width: 1020px) {
  .feats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .feats {
    grid-template-columns: repeat(2, 1fr);
  }
  .levels--3,
  .levels--3.levels--pairs,
  .tips--grid,
  .safe ul {
    grid-template-columns: 1fr;
  }
  .hero__grid,
  .meet,
  .creator,
  .glance,
  .vs,
  .mode {
    grid-template-columns: 1fr;
  }
  .mode--flip .mode__shots {
    order: 2;
  }
  .hero__grid {
    text-align: center;
  }
  .hero h1 .title-xl {
    transform-origin: center;
  }
  .hero .lead {
    margin-inline: auto;
  }
  .hero .store-row,
  .badges {
    justify-content: center;
  }
  .stage {
    order: -1;
    max-width: 420px;
    margin-bottom: 8px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .creator .shot {
    order: 2;
  }
  .phone {
    border-radius: 28px;
    padding: 7px;
  }
  .phone img {
    border-radius: 21px;
  }
  .phone::before {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }
  .level-tabs {
    gap: 6px;
  }
  .level-tabs button {
    min-width: 0;
    padding: 6px 10px 3px;
    font-size: 0.95rem;
  }
  .levels,
  .weapons {
    grid-template-columns: 1fr;
  }
  .feat .emoji {
    font-size: 26px;
  }
  .store-btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
  .hero .store-row {
    flex-direction: column;
  }
  .stats b {
    font-size: 1.6rem;
  }
  .brand span {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
