/* Comic-book superhero look: thick black outlines, hard shadows, halftone dots, bursts. */
:root {
  --ink: #111;
  --paper: #fffdf5;
  --soft: #f1f5f9;
  --yellow: #facc15;
  --red: #ef4444;
  --blue: #2563eb;
  --good: #22c55e;
  --display: "Karantina", "Rubik", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Rubik", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background-color: #1e1b4b;
  background-image:
    radial-gradient(#ffffff14 2px, transparent 2.5px),
    repeating-conic-gradient(from 0deg at 50% 30%, #312e81 0deg 9deg, #1e1b4b 9deg 18deg);
  background-size: 18px 18px, 100% 100%;
  background-attachment: fixed;
  min-height: 100vh;
  user-select: none;
}
button { font-family: inherit; cursor: pointer; border: none; color: inherit; }
#app { max-width: 1180px; margin: 0 auto; padding: 14px; }
.hidden { display: none !important; }

/* shared comic pieces */
.comic-panel {
  background: var(--paper);
  border: 5px solid var(--ink);
  border-radius: 20px;
  box-shadow: 10px 10px 0 var(--ink);
}
.comic-title {
  font-family: var(--display); font-size: 58px; line-height: 1; margin: 0 0 8px; color: var(--yellow);
  -webkit-text-stroke: 2px var(--ink); text-shadow: 4px 4px 0 var(--ink); letter-spacing: 1px;
}
.go-btn {
  font-family: var(--display); font-size: 40px; line-height: 1;
  background: var(--yellow); color: var(--ink); padding: 12px 34px 14px; margin: 8px;
  border: 5px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink);
  transition: transform .1s, box-shadow .1s;
}
.go-btn:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 8px 8px 0 var(--ink); }
.go-btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.soft-btn {
  background: #fff; font-size: 18px; font-weight: 600; padding: 9px 16px; margin: 6px;
  border: 3px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink);
}
.soft-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.soft-btn.small { font-size: 14px; padding: 4px 10px; }
.row-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.icon-btn {
  background: #fff; font-size: 24px; font-weight: 900; width: 50px; height: 50px; flex-shrink: 0;
  border: 4px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink);
}
.burst-svg { width: 100%; height: 100%; overflow: visible; }
.hero-svg { overflow: visible; }
.burst-text { font-family: var(--display); font-size: 70px; fill: var(--ink); }

/* ---------- logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: .82; transform: rotate(-3deg); }
.logo-top {
  font-family: var(--display); font-size: clamp(54px, 8vw, 90px); color: #fff;
  -webkit-text-stroke: 3px var(--ink); text-shadow: 5px 5px 0 var(--ink);
}
.logo-main {
  font-family: var(--display); font-size: clamp(100px, 16vw, 180px);
  background: linear-gradient(180deg, #fef08a 0%, #facc15 45%, #f97316 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 4px var(--ink);
  filter: drop-shadow(7px 7px 0 var(--ink)) drop-shadow(0 0 30px #f9731688);
}
.logo.small { transform: rotate(-3deg) scale(1); flex-direction: row; gap: 6px; align-items: baseline; }
.logo.small .logo-top { font-size: 34px; -webkit-text-stroke: 1.5px var(--ink); text-shadow: 2px 2px 0 var(--ink); }
.logo.small .logo-main { font-size: 46px; -webkit-text-stroke: 2px var(--ink); filter: drop-shadow(3px 3px 0 var(--ink)); }

/* ---------- home ---------- */
.home { text-align: center; padding-top: 6px; position: relative; }
.home .logo { display: flex; width: max-content; margin: 0 auto; }
.tagline {
  display: inline-block; background: #fff; border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  font-size: 26px; font-weight: 800; padding: 6px 22px; margin: 4px 0 26px; transform: rotate(1deg);
}
.hero-pick { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-card {
  position: relative; overflow: hidden; width: 280px; padding: 18px 16px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--c); border: 6px solid var(--ink); border-radius: 22px; box-shadow: 10px 10px 0 var(--ink);
  transition: transform .15s;
}
.hero-card.tilt-r { transform: rotate(2deg); }
.hero-card.tilt-l { transform: rotate(-2deg); }
.hero-card:hover { transform: scale(1.05) rotate(0); }
.hero-card:active { transform: scale(.98); }
.card-rays {
  position: absolute; inset: -50%;
  background: repeating-conic-gradient(from 0deg, #ffffff30 0deg 10deg, transparent 10deg 20deg);
  animation: spin 30s linear infinite;
}
.hero-card > *:not(.card-rays) { position: relative; }
.hero-card .hero-svg { filter: drop-shadow(4px 6px 0 #0006); }
.hero-card { background: radial-gradient(circle at 50% 38%, var(--l) 0%, var(--c) 42%, var(--d) 100%); width: 300px; }
.card-fire::after, .card-bolt::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.card-fire::after { background: radial-gradient(circle at 20% 90%, #fde04755 0 6px, transparent 7px), radial-gradient(circle at 80% 70%, #fb923c66 0 5px, transparent 6px), radial-gradient(circle at 30% 20%, #fde04744 0 4px, transparent 5px); animation: embers 3s linear infinite; }
.card-bolt::after { background: linear-gradient(115deg, transparent 45%, #e0f2fe55 48%, transparent 52%); animation: flashCard 2.6s ease-in-out infinite; }
.hero-card .hero-title { font-size: 22px; padding: 4px 14px; border: 3px solid var(--ink); }
.card-fire .hero-title { background: linear-gradient(#fde047, #f97316); color: var(--ink); }
.card-bolt .hero-title { background: linear-gradient(#e0f2fe, #38bdf8); color: var(--ink); }
.aura-fire { animation: fireflick .45s ease-in-out infinite alternate; transform-origin: 100px 236px; }
.aura-bolt { animation: boltflash 1.6s steps(1) infinite; }
.hand-power { animation: pulse 1s ease-in-out infinite; transform-origin: 158px 26px; transform-box: view-box; }
@keyframes fireflick { from { transform: scale(1, .96) skewX(-1.5deg); } to { transform: scale(1.02, 1.03) skewX(1.5deg); } }
@keyframes boltflash { 0%, 100% { opacity: 1; } 40% { opacity: .55; } 45% { opacity: 1; } 70% { opacity: .75; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes embers { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 -300px, 0 -260px, 0 -320px; } }
@keyframes flashCard { 0%, 70%, 100% { opacity: 0; transform: translateX(-60%); } 80% { opacity: 1; } 90% { opacity: 0; transform: translateX(60%); } }
.hero-name {
  font-family: var(--display); font-size: 72px; line-height: .9; color: #fff;
  -webkit-text-stroke: 3px var(--ink); text-shadow: 4px 4px 0 var(--ink);
}
.hero-title { background: var(--ink); color: var(--yellow); font-weight: 800; font-size: 18px; padding: 2px 12px; border-radius: 6px; }
.hero-stars { background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 2px 14px; font-weight: 800; font-size: 20px; margin-top: 6px; }
.vs { width: 110px; height: 110px; animation: wiggle 1.4s ease-in-out infinite; }
.villain-corner { position: fixed; left: 10px; bottom: 6px; display: flex; align-items: flex-end; gap: 0; pointer-events: none; }
.villain-corner .boss-svg { animation: sneak 4s ease-in-out infinite; }
.villain-bubble {
  order: 2; background: #fff; border: 4px solid var(--ink); border-radius: 20px; padding: 8px 14px; font-weight: 800;
  font-size: 18px; margin-bottom: 110px; max-width: 200px; box-shadow: 4px 4px 0 var(--ink); position: relative;
}
.parents-link {
  margin-top: 30px; background: #ffffffdd; padding: 8px 16px; border-radius: 999px; font-size: 16px; font-weight: 600;
  border: 3px solid var(--ink);
}
.warn { background: #fef3c7; border: 3px solid var(--ink); display: inline-block; padding: 10px 16px; border-radius: 14px; margin-top: 20px; font-size: 18px; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 12px; background: #fff; padding: 6px 12px;
  border: 5px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink);
}
.topbar .me { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 40px; }
.topbar .logo { margin-inline-start: auto; margin-inline-end: auto; }
.topbar .stars { font-size: 24px; font-weight: 900; background: var(--yellow); border: 3px solid var(--ink); border-radius: 999px; padding: 2px 14px; }
.base-btn {
  background: var(--c); color: #fff; font-size: 20px; font-weight: 800; padding: 8px 14px;
  border: 4px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); text-shadow: 1px 1px 0 var(--ink);
}

/* ---------- map ---------- */
.map { margin-top: 14px; }
.map-caption { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.map-caption .burst-svg { width: 54px; height: 54px; }
.map-caption span { background: #fff; border: 4px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 6px 16px; font-size: 22px; font-weight: 800; }
.map-frame { border: 6px solid var(--ink); border-radius: 22px; box-shadow: 10px 10px 0 var(--ink); overflow: hidden; background: #86efac; }
.map-svg { display: block; width: 100%; height: auto; }
.spot { cursor: pointer; outline: none; }
.spot .spot-art { transition: transform .2s; transform-origin: 0 40px; }
.spot:hover .spot-art, .spot:focus .spot-art { transform: scale(1.12) translateY(-6px); }
.spot-label { font-family: var(--display); font-size: 36px; fill: var(--ink); }
.spot-count { font-family: "Rubik", Arial, sans-serif; font-weight: 900; font-size: 26px; fill: var(--ink); }
.floaty { animation: bob 3s ease-in-out infinite; }
.flame { animation: flicker .3s infinite alternate; transform-origin: -14px 26px; }
.water { animation: flow 3s linear infinite; }
.smoke { animation: bob 2s ease-in-out infinite; }
.token-bob { animation: bob 1.4s ease-in-out infinite; }
#token.walking .token-bob { animation: hop .25s ease-in-out infinite alternate; }

/* ---------- intro ---------- */
.intro, .reward, .base, .parents { margin-top: 16px; padding: 22px; text-align: center; }
.intro { border-top: 18px solid var(--z); }
.intro-head { display: flex; align-items: center; justify-content: center; gap: 14px; }
.intro-icon { font-size: 64px; animation: bob 2s ease-in-out infinite; }
.intro h2 {
  font-family: var(--display); font-size: 70px; margin: 0; color: var(--z);
  -webkit-text-stroke: 2px var(--ink); text-shadow: 4px 4px 0 var(--ink);
}
.level-chip { background: var(--ink); color: var(--yellow); font-weight: 800; padding: 4px 12px; border-radius: 8px; font-size: 18px; }
.versus { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0; }
.vs-side { width: 200px; display: flex; justify-content: center; }
.vs-side .boss-svg { width: 170px; }
.vs-side.foe { animation: sneak 3s ease-in-out infinite; }
.vs-mid { width: 130px; height: 130px; animation: wiggle 1s ease-in-out infinite; }
.caption-box {
  background: #fef08a; border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  font-size: 26px; font-weight: 600; line-height: 1.45; max-width: 720px; margin: 10px auto 18px; padding: 12px 18px;
}

/* ---------- mission ---------- */
.mission-top { display: flex; align-items: center; gap: 12px; }
.zone-tag {
  background: var(--z); color: #fff; border: 4px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); border-radius: 12px;
  font-family: var(--display); font-size: 34px; padding: 0 16px; text-shadow: 2px 2px 0 var(--ink);
}
.progress { display: flex; gap: 10px; margin-inline-start: auto; }
.progress span {
  width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 4px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--ink);
}
.progress span.done { background: var(--yellow); }
.progress span.now { background: var(--z); transform: scale(1.2); box-shadow: 0 0 0 4px #fff; }
.mission-body { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; }
.challenge { flex: 1; padding: 18px 22px 24px; text-align: center; min-height: 440px; border-top: 16px solid var(--z); }
.challenge.pop { animation: pop .35s ease-out; }
.boss-side { width: 200px; background: #fff; border: 5px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); padding: 8px; }
.boss-side.zap { animation: zap .5s; }
.boss-svg { width: 100%; height: auto; display: block; }
.boss-svg.asleep { transform: rotate(-8deg); filter: grayscale(.4); }

.prompt { display: flex; align-items: center; justify-content: center; gap: 4px; }
.prompt-hero { flex-shrink: 0; }
.bubble {
  position: relative; display: flex; align-items: center; gap: 12px; background: #fff;
  border: 4px solid var(--ink); border-radius: 26px; padding: 8px 18px 8px 10px; font-size: 28px; font-weight: 800;
  box-shadow: 4px 4px 0 var(--ink);
}
.bubble::before {
  content: ""; position: absolute; right: -18px; top: 50%; margin-top: -10px;
  border: 10px solid transparent; border-left: 18px solid var(--ink);
}
.speak-btn {
  font-size: 26px; background: #e0f2fe; border: 3px solid var(--ink); border-radius: 50%; width: 54px; height: 54px; flex-shrink: 0;
}
.speak-btn:hover { background: #bae6fd; }
.visual { margin: 14px 0; }
.big-emoji { font-size: 110px; line-height: 1.1; background: none; filter: drop-shadow(4px 4px 0 #0002); }
.big-emoji.small { font-size: 70px; }
.big-emoji.tap { cursor: pointer; transition: transform .15s; }
.big-emoji.tap:hover { transform: scale(1.08) rotate(-3deg); }
.word-show, .read-word { font-size: 76px; font-weight: 900; letter-spacing: 6px; }
.word-show.spaced { letter-spacing: 18px; }
.read-word {
  display: inline-block; font-size: 96px; color: var(--blue); letter-spacing: 2px; background: #fff;
  border: 5px solid var(--ink); border-radius: 18px; padding: 0 30px; box-shadow: 6px 6px 0 var(--ink); margin-bottom: 10px;
}
.letter-card {
  display: inline-flex; align-items: center; justify-content: center; width: 150px; height: 150px;
  font-size: 120px; font-weight: 900; font-family: Arial, sans-serif; background: var(--yellow);
  border: 6px solid var(--ink); border-radius: 24px; box-shadow: 7px 7px 0 var(--ink); transform: rotate(-3deg);
}
.blank { color: var(--z); border-bottom: 6px solid var(--z); padding: 0 10px; }
.help-btn { display: block; margin: 0 auto; background: #fef9c3; font-size: 18px; padding: 6px 14px; border-radius: 12px; border: 3px solid var(--ink); }

.options { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.option {
  background: #fff; border: 5px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink);
  min-width: 124px; min-height: 124px; padding: 10px 18px; transition: transform .1s;
  display: flex; align-items: center; justify-content: center;
}
.option:hover { transform: translate(-2px, -3px) rotate(-1.5deg); background: #fef9c3; }
.option:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.option.right { background: var(--good); color: #fff; animation: pop .4s; }
.option.wrong { background: #fecaca; opacity: .5; animation: shake .4s; }
.option.hint, .tile.hint, .key.hint { animation: glow 1s infinite; }
.letter { font-size: 80px; font-weight: 900; font-family: Arial, "Rubik", sans-serif; }
.num { font-size: 72px; font-weight: 900; line-height: 1; }
.emoji-opt { font-size: 88px; }
.word-opt { font-size: 52px; font-weight: 900; }
.claps { display: flex; flex-direction: column; align-items: center; }
.claps b { font-size: 60px; font-weight: 900; line-height: 1; }
.claps small { font-size: 18px; }
.basket { display: flex; flex-wrap: wrap; justify-content: center; max-width: 220px; gap: 4px; font-size: 40px; }
.basket i { font-style: normal; }
.baskets .option { min-width: 240px; min-height: 160px; }

.slots { display: flex; justify-content: center; gap: 10px; margin: 10px 0 18px; }
.slot {
  width: 86px; height: 98px; border-radius: 16px; border: 4px dashed #64748b; font-size: 66px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; font-family: Arial, sans-serif; background: #fff;
}
.slot i { font-style: normal; color: #cbd5e1; }
.slot.filled { border: 5px solid var(--ink); background: #bbf7d0; box-shadow: 4px 4px 0 var(--ink); animation: pop .3s; }
.tiles { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.tile {
  width: 92px; height: 92px; border-radius: 18px; background: var(--yellow); font-size: 60px; font-weight: 900;
  border: 5px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); font-family: Arial, sans-serif;
}
.tile:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.tile.used { visibility: hidden; }

.keyboard { display: inline-flex; flex-direction: column; gap: 8px; background: #1e293b; padding: 12px; border-radius: 18px; border: 5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.krow { display: flex; gap: 6px; justify-content: center; }
.krow:nth-child(2) { margin-left: 22px; }
.krow:nth-child(3) { margin-left: 44px; }
.key {
  width: 56px; height: 56px; border-radius: 10px; background: #f8fafc; font-size: 30px; font-weight: 900;
  box-shadow: 0 4px 0 #64748b; font-family: Arial, sans-serif;
}
.key.pressed { transform: translateY(3px); box-shadow: 0 1px 0 #64748b; background: #bfdbfe; }
.small-note { color: #475569; font-size: 15px; }

.trace-wrap { display: flex; justify-content: center; margin: 12px 0; }
.trace {
  width: min(330px, 80vw); height: min(330px, 80vw); background: #fff; border-radius: 22px;
  border: 5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); touch-action: none; cursor: crosshair;
}
.trace.traced { background: #dcfce7; }

.count-box { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; font-size: 58px; max-width: 640px; margin: 0 auto; }
.count-box .gone { opacity: .3; position: relative; }
.count-box .gone::after { content: "✖"; position: absolute; inset: 0; color: var(--red); font-size: 50px; display: flex; align-items: center; justify-content: center; opacity: 1; }
.count-box .plus { font-size: 60px; color: var(--ink); align-self: center; font-family: var(--display); }
.empty-spot { width: 58px; height: 58px; border: 4px dashed #94a3b8; border-radius: 50%; display: inline-block; }
.goal-tag { display: inline-block; margin-top: 10px; background: var(--ink); color: var(--yellow); font-weight: 900; font-size: 24px; padding: 4px 16px; border-radius: 10px; }
.seq { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 64px; font-weight: 900; }
.seq b { color: #64748b; font-size: 40px; }
.seq em { font-style: normal; font-size: 64px; }
.seq span { background: #fff; border: 4px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); border-radius: 16px; min-width: 96px; padding: 4px 12px; line-height: 1; }
.seq span.blank { background: #fef9c3; border-style: dashed; color: var(--z); }
.equation { font-size: 84px; font-weight: 900; line-height: 1; margin-bottom: 14px; }

.shop { display: flex; justify-content: center; align-items: center; gap: 30px; margin: 10px 0; }
.price-tag { display: flex; flex-direction: column; align-items: center; background: #fff; border: 5px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); padding: 6px 20px; }
.price-tag b { font-size: 48px; font-weight: 900; line-height: 1.1; }
.till { background: #fde68a; border: 5px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); min-width: 280px; min-height: 140px; padding: 6px; }
.till small { font-weight: 800; }
.till-coins, .wallet { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wallet { margin: 10px auto; max-width: 760px; }
.coin {
  width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fef08a, #eab308);
  border: 4px solid var(--ink); font-weight: 900; font-size: 18px; box-shadow: 3px 3px 0 var(--ink);
}

.feedback { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 5; }
.flash { width: 340px; height: 340px; opacity: 0; }
.feedback.show .flash { animation: bigburst 1.3s ease-out; }

/* ---------- reward ---------- */
.earned-stars { font-size: 70px; }
.earned-stars .dim { filter: grayscale(1); opacity: .25; }
.gift { position: relative; min-height: 270px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gift-rays {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: repeating-conic-gradient(#facc15 0deg 10deg, #fff7 10deg 20deg); animation: spin 12s linear infinite; opacity: .7;
}
.gift-box, .gift-open { position: relative; }
.gift-box { font-size: 160px; animation: wiggle .5s infinite; }
.gift-open { animation: pop .6s; background: #fff; border: 5px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); padding: 10px 30px; }
.reward-icon { font-size: 110px; line-height: 1.1; }
.reward-kind { font-size: 22px; margin: 0; font-weight: 600; }
.reward-name { font-family: var(--display); font-size: 60px; line-height: 1; color: #f97316; -webkit-text-stroke: 1.5px var(--ink); margin: 4px 0; }

/* ---------- base ---------- */
.base-row { display: flex; align-items: flex-end; justify-content: center; gap: 12px; flex-wrap: wrap; }
.base-pic { flex: 1; min-width: 280px; max-width: 600px; }
.base-svg { width: 100%; border-radius: 16px; display: block; border: 5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.base-svg .ghost { opacity: 0; }
.collection h3 { font-size: 24px; margin: 18px 0 8px; }
.items { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.item {
  width: 94px; height: 94px; border-radius: 16px; background: #fef9c3; font-size: 40px; border: 4px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.item small { font-size: 12px; line-height: 1.1; text-align: center; font-weight: 600; }
.item.locked { background: #e2e8f0; opacity: .6; }
.next { font-size: 22px; font-weight: 800; }
.medals { font-size: 30px; }

/* ---------- parents ---------- */
.parents { text-align: right; }
.parents .comic-title { text-align: center; }
.panel { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 12px 20px; margin-bottom: 14px; font-size: 18px; line-height: 1.6; }
.panel h3 { margin: 0 0 6px; }
.table-wrap { overflow-x: auto; }
.panel table { border-collapse: collapse; font-size: 20px; }
.panel td, .panel th { padding: 6px 10px; text-align: center; }
.parents .go-btn { display: block; margin: 10px auto 0; }

/* ---------- confetti & animations ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 10; }
.confetti i { position: absolute; top: -20px; width: 12px; height: 18px; border-radius: 3px; border: 2px solid var(--ink); animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
.shake { animation: shake .4s; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 #facc15; } 50% { box-shadow: 0 0 0 14px #facc15cc; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes hop { from { transform: translateY(0); } to { transform: translateY(-16px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes sneak { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flicker { from { transform: scaleY(.8); } to { transform: scaleY(1.2); } }
@keyframes flow { to { stroke-dashoffset: -90; } }
@keyframes zap { 0% { filter: brightness(2.2) hue-rotate(90deg); transform: translateX(-10px) rotate(-4deg); } 50% { transform: translateX(10px) rotate(4deg); } 100% { filter: none; transform: none; } }
@keyframes bigburst { 0% { opacity: 0; transform: scale(.3) rotate(-30deg); } 25% { opacity: 1; transform: scale(1.1) rotate(5deg); } 70% { opacity: 1; transform: scale(1) rotate(0); } 100% { opacity: 0; transform: scale(1.3); } }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .topbar .logo { display: none; }
  .mission-body { flex-direction: column-reverse; align-items: center; }
  .boss-side { width: 130px; }
  .option { min-width: 90px; min-height: 90px; }
  .letter, .num { font-size: 56px; }
  .key { width: 30px; height: 42px; font-size: 20px; }
  .krow:nth-child(2) { margin-left: 10px; }
  .krow:nth-child(3) { margin-left: 20px; }
  .slot { width: 60px; height: 72px; font-size: 44px; }
  .tile { width: 70px; height: 70px; font-size: 44px; }
  .base-btn { font-size: 16px; padding: 6px 8px; }
  .villain-corner { display: none; }
  .vs-side { width: 120px; }
  .bubble { font-size: 20px; }
}

/* ===================== the big map ===================== */
.topbar { position: sticky; top: 8px; z-index: 4; }
.spot-done { font-family: "Rubik", Arial, sans-serif; font-weight: 800; font-size: 16px; fill: #facc15; }
.twinkle { animation: twinkle 1.6s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .1; } }

/* ===================== new tasks ===================== */
.soft-btn.big { font-size: 22px; padding: 10px 20px; }
.letter-card.small { width: 100px; height: 100px; font-size: 76px; }
.equation.small { font-size: 54px; margin-top: 10px; }

/* balloons */
.balloon-field { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; padding: 10px 0 0; min-height: 250px; }
.balloon { background: none; width: 104px; animation: floatB 2.6s ease-in-out infinite; animation-delay: var(--d); margin-top: var(--y); transition: transform .15s; }
.balloon:hover { transform: scale(1.08); }
.balloon-svg { width: 100%; display: block; filter: drop-shadow(3px 4px 0 #0003); }
.balloon-text { font-family: Arial, "Rubik", sans-serif; font-weight: 900; font-size: 40px; fill: #fff; stroke: #111; stroke-width: 3px; paint-order: stroke; }
.balloon.popped { animation: popB .35s forwards; pointer-events: none; }
.balloon.hint { animation: glow 1s infinite; border-radius: 50%; }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes popB { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .7; } 100% { transform: scale(0); opacity: 0; } }
.popped-row { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.pop-slot { width: 58px; height: 58px; border: 4px dashed #94a3b8; border-radius: 50%; font-size: 30px; font-weight: 900; display: flex; align-items: center; justify-content: center; background: #fff; }
.pop-slot:not(:empty) { border: 4px solid var(--ink); background: #fde68a; animation: pop .3s; }

/* bakery */
.bake-row { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 6px 0; flex-wrap: wrap; }
.order-card { background: #fff; border: 5px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); padding: 8px 18px; display: flex; flex-direction: column; align-items: center; transform: rotate(-3deg); }
.order-card b { font-size: 70px; line-height: 1; font-weight: 900; }
.order-card small { font-weight: 800; }
.order-card span { font-size: 22px; max-width: 160px; }
.cake-box { width: 340px; }
.cake-svg { width: 100%; display: block; }
.candle { animation: pop .3s; }
.flame-small { animation: flicker .3s infinite alternate; transform-box: fill-box; transform-origin: center bottom; }
.ten-frame { display: inline-grid; grid-template-columns: repeat(5, 74px); gap: 0; border: 5px solid var(--ink); border-radius: 10px; background: #fff; box-shadow: 5px 5px 0 var(--ink); overflow: hidden; }
.ten-frame span { height: 74px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 44px; background: #fff7ed; }
.ten-frame span.full { background: #fde68a; }
.plates { display: flex; align-items: center; justify-content: center; gap: 16px; }
.plate { width: 210px; min-height: 130px; border-radius: 50%; background: radial-gradient(circle, #fff 55%, #e2e8f0 56%, #fff 70%); border: 5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; gap: 2px; padding: 16px; font-size: 34px; }
.plate i { font-style: normal; }
.op { font-size: 56px; font-weight: 900; }

/* lab */
.pattern { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 54px; }
.pattern span { background: #fff; border: 4px solid var(--ink); border-radius: 14px; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; box-shadow: 3px 3px 0 var(--ink); }
.pattern .blank-box { border-style: dashed; background: #fef9c3; font-weight: 900; color: var(--z); }
.rack { display: flex; justify-content: center; gap: 14px; background: #a16207; border: 5px solid var(--ink); border-radius: 12px; padding: 10px 16px 6px; width: max-content; margin: 10px auto; box-shadow: 5px 5px 0 var(--ink); min-height: 150px; }
.rack-slot { width: 76px; min-height: 130px; border-radius: 10px; background: #00000022; display: flex; align-items: flex-end; justify-content: center; }
.rack-slot .tube { transform: scale(.8); transform-origin: bottom; }
.tubes { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; min-height: 200px; }
.tube { background: none; display: flex; flex-direction: column; align-items: center; transition: transform .15s; }
.tube:hover { transform: translateY(-6px); }
.tube-svg { width: 64px; display: block; }
.tube b { font-size: 34px; font-weight: 900; background: #fff; border: 3px solid var(--ink); border-radius: 10px; padding: 0 10px; margin-top: -6px; }

/* memory */
.memory-grid { display: grid; gap: 14px; justify-content: center; margin-top: 16px; perspective: 900px; }
.memory-grid.cols-3 { grid-template-columns: repeat(3, 130px); }
.memory-grid.cols-4 { grid-template-columns: repeat(4, 130px); }
.mem-card { width: 130px; height: 150px; background: none; padding: 0; }
.mem-inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .45s; transform-style: preserve-3d; }
.mem-card.flipped .mem-inner { transform: rotateY(180deg); }
.mem-back, .mem-front { position: absolute; inset: 0; backface-visibility: hidden; border: 5px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); display: flex; align-items: center; justify-content: center; }
.mem-back { background: repeating-linear-gradient(45deg, #059669 0 14px, #10b981 14px 28px); font-size: 60px; }
.mem-front { background: #fff; transform: rotateY(180deg); }
.mem-card.matched .mem-front { background: #bbf7d0; animation: pop .4s; }

/* fire station */
.houses .option { min-width: 104px; padding: 6px 8px; }
.house { position: relative; display: flex; flex-direction: column; align-items: center; }
.house svg { width: 84px; }
.house b { font-size: 36px; font-weight: 900; line-height: 1; }
.house .fire { position: absolute; top: -18px; font-style: normal; font-size: 28px; animation: flicker .4s infinite alternate; }
.option.right .house .fire { display: none; }
.option.right .house::after { content: "💦"; position: absolute; top: -20px; font-size: 32px; }
.ladder-wrap { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
.ladder { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 0 22px; border-left: 10px solid #92400e; border-right: 10px solid #92400e; }
.rung { width: 120px; height: 54px; background: #fef3c7; border: 4px solid var(--ink); border-radius: 8px; font-size: 36px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.rung.filled { background: #fca5a5; animation: pop .3s; }
.climber { position: absolute; left: -66px; bottom: 0; font-size: 44px; font-style: normal; transition: bottom .5s; }
.num-tile { font-family: "Rubik", sans-serif; }
.fires span { animation: flicker .4s infinite alternate; display: inline-block; }

/* stadium */
.scoreboard { display: flex; align-items: center; justify-content: center; gap: 14px; background: #14532d; border: 5px solid var(--ink); border-radius: 18px; padding: 14px; box-shadow: 6px 6px 0 var(--ink); width: max-content; max-width: 100%; margin: 0 auto; }
.scoreboard .op { color: #fff; }
.team { background: #fff; border: 4px solid var(--ink); border-radius: 14px; min-width: 190px; min-height: 120px; padding: 6px; display: flex; flex-direction: column; align-items: center; }
.team .shirt { background: var(--t); color: #fff; font-weight: 900; padding: 2px 14px; border-radius: 8px; border: 3px solid var(--ink); }
.team .goals { display: flex; flex-wrap: wrap; justify-content: center; font-size: 30px; max-width: 200px; }
.team .goals i { font-style: normal; }
.team .score { font-size: 64px; line-height: 1.1; font-weight: 900; }
.team-pick { background: var(--t); color: #fff; font-size: 30px; font-weight: 900; padding: 10px 20px; border-radius: 14px; border: 3px solid var(--ink); }
.field { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; background: repeating-linear-gradient(90deg, #22c55e 0 40px, #16a34a 40px 80px); border: 5px solid var(--ink); border-radius: 16px; padding: 18px; font-size: 48px; max-width: 640px; margin: 0 auto; box-shadow: 5px 5px 0 var(--ink); }
.field .leaving { opacity: .35; transform: translateX(30px) scaleX(-1); filter: grayscale(1); }

/* under the sea */
.read-word.sea { color: #0369a1; background: linear-gradient(#e0f2fe, #bae6fd); }
.colors .option { min-width: 120px; }
.color-blob { width: 90px; height: 90px; border-radius: 50%; background: var(--b); border: 5px solid var(--ink); display: block; box-shadow: inset -8px -8px 0 #0002; }

/* forest */
.dots-wrap { display: flex; justify-content: center; }
.dots-svg { width: min(380px, 85vw); background: #fff; border: 5px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); }
.dot { cursor: pointer; }
.dot-hit { fill: transparent; }
.dot-c { fill: #fff; stroke: #111; stroke-width: 4; }
.dot-n { font-family: "Rubik", sans-serif; font-weight: 900; font-size: 22px; fill: #111; pointer-events: none; }
.dot.done .dot-c { fill: var(--z); }
.dot.next .dot-c { fill: #fde047; animation: pulseDot .9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.dot.hint-dot .dot-c { fill: #f97316; }
.dot-lines line { stroke: var(--z); stroke-width: 12; stroke-linecap: round; }
.reveal-letter { font-family: Arial, sans-serif; font-weight: 900; font-size: 300px; fill: var(--z); opacity: 0; transition: opacity .6s; }
.dots-svg.complete .reveal-letter { opacity: .25; }
@keyframes pulseDot { 50% { transform: scale(1.5); } }
.first-row { display: flex; align-items: center; justify-content: center; gap: 30px; }
.big-slot { width: 120px; height: 130px; font-size: 90px; }

/* music */
.music-row { display: flex; align-items: center; justify-content: center; gap: 40px; }
.drum { background: none; width: 220px; }
.drum-svg { width: 100%; display: block; }
.drum.hit { animation: drumHit .18s; }
@keyframes drumHit { 50% { transform: scale(.93) translateY(6px); } }
.beats { min-height: 56px; font-size: 40px; letter-spacing: 6px; }

/* color studio */
.studio { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.paint-svg { width: min(460px, 90vw); border: 5px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); background: #fff; }
.region { cursor: pointer; }
.region path { transition: fill .3s; }
.region:hover path { filter: brightness(.95); }
.region-label { font-family: Arial, "Rubik", sans-serif; font-weight: 900; font-size: 26px; fill: #111; pointer-events: none; }
.region.painted .region-label { opacity: .35; }
.region.wrong-region path { animation: wrongFlash .5s; }
@keyframes wrongFlash { 50% { fill: #fecaca; } }
.palette { display: grid; grid-template-columns: repeat(2, 80px); gap: 12px; padding: 10px; border-radius: 18px; }
.swatch { width: 80px; height: 80px; border-radius: 50%; background: var(--s); border: 5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.swatch b { font-size: 34px; font-weight: 900; color: #fff; -webkit-text-stroke: 2px #111; font-family: Arial, sans-serif; }
.swatch.selected { transform: scale(1.15); box-shadow: 0 0 0 6px #fff, 0 0 0 10px var(--ink); }

/* ice palace */
.ice-track { display: flex; justify-content: center; align-items: center; gap: 12px; }
.ice-track b { font-size: 40px; color: #0369a1; }
.ice-block { width: 120px; height: 110px; background: linear-gradient(135deg, #f0f9ff, #7dd3fc); border: 5px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); font-size: 64px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.ice-block.q { border-style: dashed; color: var(--z); background: #fff; }
.domino-box { display: flex; justify-content: center; }
.domino-svg { width: min(360px, 80vw); filter: drop-shadow(5px 5px 0 #111); }
.bond { width: min(520px, 90vw); margin: 0 auto; }
.bond-top, .bond-part { background: #e0f2fe; border: 5px solid var(--ink); border-radius: 50%; width: 170px; height: 170px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 4px 4px 0 var(--ink); }
.bond b { font-size: 56px; font-weight: 900; line-height: 1; }
.bond span { display: flex; flex-wrap: wrap; justify-content: center; max-width: 130px; font-size: 18px; }
.bond span i { font-style: normal; }
.bond-lines { width: 100%; height: 50px; display: block; }
.bond-row { display: flex; justify-content: space-between; }
.bond-part { width: 150px; height: 150px; margin: 0; }
.bond-part.q { background: #fef9c3; border-style: dashed; }

/* treasure island */
.sand-grid { display: grid; grid-template-columns: repeat(5, 92px); gap: 10px; justify-content: center; direction: ltr; }
.sand-grid.wide { grid-template-columns: repeat(5, 84px); }
.sand-grid .option { min-width: 0; min-height: 76px; padding: 4px; background: linear-gradient(#fde68a, #f59e0b); }
.sand-grid .option.right { background: var(--good); }
.sand-grid .option.right .sand-num::after { content: " 💎"; font-size: 24px; }
.sand-num { font-size: 36px; font-weight: 900; }
.numline-box { display: flex; justify-content: center; }
.numline-svg { width: min(720px, 92vw); background: #fff; border: 5px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); }
.nl-num { font-family: "Rubik", sans-serif; font-weight: 900; font-size: 22px; }
.chest { display: inline-flex; flex-direction: column; gap: 6px; background: linear-gradient(#b45309, #78350f); border: 5px solid var(--ink); border-radius: 18px; padding: 10px 16px 14px; box-shadow: 6px 6px 0 var(--ink); }
.chest-lid { font-size: 40px; line-height: 1; }
.coin-row { display: flex; gap: 6px; justify-content: flex-start; }
.coin-row i { width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fef08a, #eab308); border: 3px solid var(--ink); }

@media (max-width: 760px) {
  .memory-grid.cols-3, .memory-grid.cols-4 { grid-template-columns: repeat(3, 96px); }
  .mem-card { width: 96px; height: 112px; }
  .balloon { width: 80px; }
  .sand-grid, .sand-grid.wide { grid-template-columns: repeat(5, 56px); }
  .team { min-width: 120px; }
}

/* ===================== neighborhoods map (2026-11-15) ===================== */
.map-btn { padding: 8px 12px; font-size: 22px; }
.region { cursor: pointer; outline: none; }
.region .region-art { transition: transform .2s; }
.region:hover .region-art, .region:focus .region-art { transform: scale(1.1) translateY(-6px); }
.region.locked { cursor: not-allowed; }
.region.locked .region-art { filter: grayscale(.8); }
.region-label { font-family: var(--display); font-size: 46px; fill: #fff; stroke: #111; stroke-width: 2px; paint-order: stroke; }
.region-count { font-family: "Rubik", sans-serif; font-weight: 900; font-size: 22px; fill: #111; }
.hood-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.hood-title { margin: 0; font-family: var(--display); font-size: 54px; color: #fff; -webkit-text-stroke: 2px var(--ink); text-shadow: 4px 4px 0 var(--ink); background: var(--h); border: 5px solid var(--ink); border-radius: 16px; padding: 0 22px; box-shadow: 5px 5px 0 var(--ink); }
.hood-hint { background: #fff; border: 4px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 6px 14px; font-weight: 800; font-size: 18px; }
.spot-label.big { font-size: 40px; }

/* ===================== newest games ===================== */
/* sorting */
.sort-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 12px 0 20px; min-height: 120px; }
.sort-item { background: #fff; border: 5px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); width: 112px; height: 112px; display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.sort-item .emoji-opt { font-size: 66px; }
.sort-item.selected { transform: translateY(-10px) scale(1.08); background: #fef08a; box-shadow: 0 0 0 6px #fff, 0 0 0 10px var(--ink); }
.sort-item.gone { visibility: hidden; }
.sort-bins { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.sort-bin { min-width: 200px; min-height: 170px; background: linear-gradient(#d97706, #92400e); border: 5px solid var(--ink); border-radius: 14px 14px 40px 40px; box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; align-items: center; padding: 8px; }
.sort-bin .bin-label { background: #fff; border: 4px solid var(--ink); border-radius: 12px; padding: 0 16px; }
.sort-bin .bin-label .letter { font-size: 56px; }
.bin-word { font-size: 26px; font-weight: 900; }
.bin-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-top: 6px; }
.bin-in i { font-style: normal; transform: scale(.55); margin: -18px -14px; }
.mailboxes .sort-bin { background: linear-gradient(#ef4444, #b91c1c); border-radius: 40px 40px 12px 12px; }
.mailbox { font-size: 34px; display: flex; align-items: center; gap: 6px; }
.mailbox b, .mail b { font-size: 46px; font-family: Arial, sans-serif; }
.mail { display: flex; align-items: center; gap: 4px; font-size: 40px; }

/* match */
.match-cols { display: flex; justify-content: center; gap: 70px; margin-top: 14px; }
.match-col { display: flex; flex-direction: column; gap: 12px; }
.match-item { background: #fff; border: 5px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); min-width: 130px; min-height: 92px; padding: 6px 12px; display: flex; align-items: center; justify-content: center; }
.match-item.selected { box-shadow: 0 0 0 6px #fff, 0 0 0 10px var(--ink); transform: scale(1.06); }
.match-item.matched { animation: pop .4s; }
.dot-card { display: flex; flex-wrap: wrap; gap: 6px; max-width: 150px; justify-content: center; }
.dot-card i { width: 22px; height: 22px; border-radius: 50%; background: #111; }
.dot-card.big { max-width: 220px; background: #fff; border: 5px solid var(--ink); border-radius: 18px; padding: 14px; box-shadow: 5px 5px 0 var(--ink); }
.dot-card.big i { width: 30px; height: 30px; background: #ef4444; border: 3px solid #111; }

/* typing with given letters */
.slot.given { background: #f1f5f9; border: 4px solid #64748b; box-shadow: none; animation: none; }
.slot.q-slot { border-color: var(--z); background: #fef9c3; }
.envelope { display: inline-flex; align-items: center; gap: 12px; font-size: 80px; }
.envelope span { font-size: 32px; font-weight: 900; background: #fff; border: 4px solid var(--ink); border-radius: 12px; padding: 4px 14px; }

/* monster */
.monster-row { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.monster-box { width: 260px; }
.monster-box.small { width: 200px; }
.monster-svg { width: 100%; display: block; }
.monster-svg.chew { animation: chew .3s 2; }
@keyframes chew { 50% { transform: scaleY(.92) translateY(6px); } }
.belly { background: #fff; border: 5px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); padding: 8px 18px; display: flex; flex-direction: column; align-items: center; }
.belly b { font-size: 56px; font-weight: 900; line-height: 1; }
.food-tray { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 12px auto; max-width: 720px; }
.food { font-size: 48px; background: #fff; border: 4px solid var(--ink); border-radius: 16px; width: 76px; height: 76px; box-shadow: 3px 3px 0 var(--ink); }
.food.eat { animation: eat .5s forwards; pointer-events: none; }
@keyframes eat { to { transform: translateY(-120px) scale(0); opacity: 0; } }
.then-ask { margin-top: 10px; }
.then-q { font-size: 30px; font-weight: 900; margin: 6px 0; }

/* maze */
.maze { display: grid; grid-template-columns: repeat(var(--n), 86px); gap: 6px; justify-content: center; margin-top: 14px; }
.maze-cell { height: 86px; background: #fef3c7; border: 4px solid var(--ink); border-radius: 12px; font-size: 44px; font-weight: 900; font-family: Arial, "Rubik", sans-serif; position: relative; }
.maze-cell.walked { background: #bbf7d0; }
.maze-cell.here::after { content: "🦸"; position: absolute; top: -18px; right: -10px; font-size: 32px; }
.maze-cell.goal::before { content: "🏁"; position: absolute; top: -16px; left: -8px; font-size: 30px; }

/* luna park */
.scenes .option { min-width: 170px; }
.scene { position: relative; display: block; width: 150px; height: 150px; }
.box-thing { position: absolute; left: 35px; top: 55px; font-size: 80px; line-height: 1; }
.thing { position: absolute; font-size: 44px; line-height: 1; }
.scene-on .thing { left: 52px; top: 8px; }
.scene-under .thing { left: 52px; top: 118px; }
.scene-under .box-thing { top: 30px; }
.scene-in .thing { left: 54px; top: 76px; font-size: 34px; z-index: 2; }
.scene-in .box-thing { opacity: .65; }
.scene-next .thing { left: 112px; top: 92px; }
.scene-next .box-thing { left: 10px; }
.dice { display: flex; align-items: center; justify-content: center; gap: 20px; }
.die-svg { width: 140px; filter: drop-shadow(5px 5px 0 #111); }
.roll { animation: roll .6s ease-out; display: inline-block; }
.roll.r2 { animation-delay: .1s; }
@keyframes roll { 0% { transform: rotate(-200deg) scale(.4); } 100% { transform: none; } }
.small-field { min-height: 180px; }

/* shapes */
.shape-field { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 760px; margin: 10px auto; }
.shape-btn { width: 96px; height: 96px; background: none; padding: 4px; border-radius: 16px; transition: transform .15s; }
.shape-btn:hover { transform: scale(1.1); }
.shape-btn.found { background: #bbf7d0; box-shadow: 0 0 0 4px var(--ink); animation: pop .4s; }
.shape-field.static .shape-btn { width: 76px; height: 76px; }
.shape-svg { width: 100%; height: 100%; display: block; }
.shape-sample { display: inline-block; width: 90px; height: 90px; }
.shapes-opts .option { width: 130px; height: 130px; }

/* giants */
.pencils { flex-direction: column; align-items: center; }
.pencils .option { min-height: 70px; padding: 8px 16px; }
.pencil-svg { height: 40px; display: block; }
.size-row { display: flex; align-items: flex-end; justify-content: center; gap: 26px; min-height: 170px; margin-top: 10px; }
.size-btn { background: none; line-height: 1; transition: transform .15s; }
.size-btn:hover { transform: scale(1.08); }
.size-btn.used { opacity: .2; }
.scale { display: flex; justify-content: center; }
.scale-svg { width: min(460px, 90vw); }
.pan-item { font-size: 50px; text-align: center; line-height: 1.2; }
.box-red { filter: hue-rotate(-30deg) saturate(3); }
.box-blue { filter: hue-rotate(180deg) saturate(2); }

/* fishing */
.pond { position: relative; height: 330px; background: linear-gradient(#7dd3fc, #0284c7); border: 5px solid var(--ink); border-radius: 26px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; margin-top: 10px; }
.fish { position: absolute; left: 0; background: none; width: 190px; animation: swim var(--t) ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1); display: flex; align-items: center; }
.fish-svg { width: 160px; }
.fish-label { position: absolute; left: 24px; right: 40px; text-align: center; font-size: 30px; font-weight: 900; color: #fff; -webkit-text-stroke: 1.5px #111; font-family: Arial, "Rubik", sans-serif; }
.fish-label.word { font-size: 26px; }
.fish.caught { animation: caught .8s forwards; }
.fish.away { opacity: .25; }
.fish.hint { animation-play-state: paused; filter: drop-shadow(0 0 12px #facc15); }
@keyframes swim { from { transform: translateX(10px); } to { transform: translateX(calc(min(1000px, 85vw) - 230px)); } }
@keyframes caught { to { transform: translateY(-300px) rotate(-30deg); opacity: 0; } }

/* meteors */
.caught-row { display: flex; justify-content: center; gap: 10px; margin: 8px 0; }
.sky { position: relative; height: 380px; background: radial-gradient(circle at 30% 20%, #312e81, #0f172a); border: 5px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); }
.meteor { position: absolute; top: -90px; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d6d3d1, #57534e); border: 4px solid #111; animation: fallM linear forwards; box-shadow: 10px -14px 0 -4px #fb923c88, 20px -26px 0 -10px #fde04766; }
.meteor span { font-size: 40px; font-weight: 900; color: #fff; -webkit-text-stroke: 1.5px #111; font-family: Arial, sans-serif; }
.meteor.boom { animation: boomM .4s forwards; background: radial-gradient(circle, #fde047, #f97316); }
@keyframes fallM { to { transform: translateY(500px) rotate(40deg); } }
@keyframes boomM { to { transform: scale(2); opacity: 0; } }

.toggle { display: flex; gap: 10px; align-items: center; font-size: 18px; }
.toggle input { width: 24px; height: 24px; }

@media (max-width: 760px) {
  .maze { grid-template-columns: repeat(var(--n), 58px); }
  .maze-cell { height: 58px; font-size: 30px; }
  .match-cols { gap: 24px; }
  .sort-item { width: 84px; height: 84px; }
  .hood-title { font-size: 38px; }
}

/* ===================== richer, game-like look (2026-11-15) ===================== */
/* Light and shadow on the drawn places, neighborhoods and base parts */
.spot-art, .region-art, .base-part.built, .boss-svg, .intro-icon { filter: url(#toon3d); }
.region.locked .region-art { filter: url(#toon3d) grayscale(.8); }

/* Panels: soft paper with light from the top, a halftone corner */
.comic-panel {
  background:
    radial-gradient(circle at 100% 100%, #0000000d 0 2px, transparent 2.5px) 0 0 / 12px 12px,
    radial-gradient(ellipse at 20% 0%, #ffffff 0%, #fffdf5 45%, #fdf3d9 100%);
  position: relative;
}
.comic-panel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 6px 0 #ffffffcc, inset 0 -10px 24px #00000012;
}

/* Buttons and cards look pressable: a shine on top, a darker edge at the bottom */
.option, .soft-btn, .tile, .sort-item, .match-item, .food, .icon-btn, .key, .swatch, .coin, .mem-front, .maze-cell, .hero-stars, .item {
  background-image: linear-gradient(180deg, #ffffffcc 0%, #ffffff00 48%, #00000010 100%);
}
.option, .tile, .sort-item, .match-item, .food, .soft-btn {
  box-shadow: 6px 6px 0 var(--ink), inset 0 -7px 0 #00000014, inset 0 4px 0 #ffffffe6;
}
.option:active, .tile:active, .sort-item:active, .match-item:active, .soft-btn:active { box-shadow: 2px 2px 0 var(--ink), inset 0 -3px 0 #00000014; }
.go-btn {
  background: linear-gradient(180deg, #fff59d 0%, #facc15 45%, #f59e0b 100%);
  box-shadow: 6px 6px 0 var(--ink), inset 0 -8px 0 #b4530955, inset 0 5px 0 #ffffffcc;
  text-shadow: 2px 2px 0 #fff8;
}
.option.right { background: linear-gradient(180deg, #86efac, #22c55e 50%, #15803d); }
.tile { background-color: var(--yellow); }
.topbar { background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%); box-shadow: 6px 6px 0 var(--ink), inset 0 -6px 0 #0000000f; }
.zone-tag, .base-btn, .hood-title { background-image: linear-gradient(180deg, #ffffff55 0%, #ffffff00 50%, #00000022 100%); }
.challenge { border-top-width: 18px; }
.prompt .bubble { background: linear-gradient(180deg, #ffffff, #f8fafc); }
.big-emoji, .emoji-opt, .letter-card, .read-word { filter: drop-shadow(4px 5px 0 #00000026); }
.letter-card { background: linear-gradient(160deg, #fff59d, #facc15 55%, #eab308); }
.progress span { box-shadow: inset 0 -4px 0 #0000001a, inset 0 3px 0 #ffffffaa; }
.map-frame { box-shadow: 10px 10px 0 var(--ink), 0 20px 50px #0008; }

/* ===================== two-player mode ===================== */
.team-btn {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 26px; padding: 8px 22px 8px 14px;
  background: linear-gradient(90deg, #dc2626, #7c3aed 50%, #2563eb); color: #fff;
  border: 5px solid var(--ink); border-radius: 999px; box-shadow: 6px 6px 0 var(--ink), inset 0 4px 0 #ffffff66;
  font-family: var(--display); font-size: 40px; text-shadow: 2px 2px 0 var(--ink); transition: transform .15s;
}
.team-btn:hover { transform: scale(1.05) rotate(-1deg); }
.team-btn span { margin-inline-start: 10px; }
.me.duo { gap: 0; }
.me.duo svg + svg { margin-inline-start: -12px; }
.turn-tag {
  display: flex; align-items: center; gap: 8px; background: var(--c); color: #fff; padding: 2px 16px 2px 6px;
  border: 4px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--display); font-size: 34px; text-shadow: 2px 2px 0 var(--ink); animation: pop .5s;
}
.progress span.now { background: var(--p, var(--z)); }
.progress span[style] { border-color: var(--p); }
.vs-side.duo { width: 280px; gap: 0; }
.vs-side.duo .hero-svg + .hero-svg { margin-inline-start: -30px; }
.gift-row { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; }
.gift-card { flex: 1; min-width: 300px; max-width: 480px; }
.gift-row .gift-card + .gift-card { border-inline-start: 4px dashed #cbd5e1; padding-inline-start: 20px; }
.gift-who { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-size: 40px; color: var(--c); }
.gift-row .gift-card .gift { min-height: 230px; }

/* ===================== the hero base ===================== */
.base-pic.big { max-width: 980px; margin: 0 auto; }
.base-svg { border-width: 6px; box-shadow: 8px 8px 0 var(--ink), 0 18px 40px #0006; }
.base-part.ghost-part * { fill: none !important; stroke: #ffffffcc !important; stroke-width: 3px !important; stroke-dasharray: 9 7; }
.base-part.ghost-part { opacity: .75; }
.base-part.ghost-part text { display: none; }
.base-part.built { animation: none; }
.base-svg .wave { animation: flagWave 1.6s ease-in-out infinite; transform-origin: 454px 100px; transform-box: view-box; }
@keyframes flagWave { 50% { transform: skewY(-4deg) scaleX(.96); } }
.base-svg .signal { animation: twinkle 1.2s ease-in-out infinite; }
.base-hero-svg { filter: drop-shadow(6px 8px 0 #0004); }
.base-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 10px; }
.base-tab { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 900; padding: 6px 16px 6px 8px; border: 4px solid var(--ink); border-radius: 999px; background: #fff; box-shadow: 4px 4px 0 var(--ink); }
.base-tab.on { background: var(--c); color: #fff; text-shadow: 1px 1px 0 var(--ink); }

/* ===================== tablets and phones (2026-11-15) ===================== */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
button, .spot, .region, .maze-cell, .balloon, .fish, .meteor { touch-action: manipulation; }

/* Maps always fit the screen height (no scrolling to see the whole map) */
.map-frame { display: flex; justify-content: center; background: #1e1b4b; }
.map .map-svg { max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); width: 100%; }
@media (max-height: 860px) { .map-caption, .hood-hint { display: none; } .map .map-svg { max-height: calc(100dvh - 120px); } }
.rotate-hint { display: none; }
@media (orientation: portrait) and (pointer: coarse) {
  .rotate-hint { display: block; background: #fef08a; border: 4px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); padding: 8px 14px; margin: 10px 0; font-size: 20px; font-weight: 800; text-align: center; }
}

/* No "stuck" hover effects on touch screens */
@media (hover: none) {
  .option:hover, .hero-card:hover, .go-btn:hover, .tile:hover, .tube:hover, .balloon:hover, .shape-btn:hover, .size-btn:hover, .big-emoji.tap:hover, .team-btn:hover { transform: none; }
  .hero-card.tilt-r:hover { transform: rotate(2deg); } .hero-card.tilt-l:hover { transform: rotate(-2deg); }
  .spot:hover .spot-art, .region:hover .region-art { transform: none; }
  .option:hover { background-color: #fff; }
}

/* Bigger, finger-friendly targets, and the task fills the screen */
@media (pointer: coarse) {
  #app { padding: 10px; }
  .challenge { min-height: calc(100dvh - 100px); display: flex; flex-direction: column; justify-content: center; }
  .challenge > * { flex-shrink: 0; }
  .option { min-width: 140px; min-height: 140px; }
  .letter { font-size: 94px; }
  .num { font-size: 84px; }
  .emoji-opt { font-size: 100px; }
  .word-opt { font-size: 56px; }
  .speak-btn { width: 66px; height: 66px; font-size: 30px; }
  .icon-btn { width: 60px; height: 60px; }
  .key { width: 66px; height: 70px; font-size: 36px; border-radius: 12px; }
  .krow { gap: 8px; }
  .tile { width: 106px; height: 106px; font-size: 68px; }
  .bubble { font-size: 30px; }
  .soft-btn { font-size: 22px; padding: 12px 20px; }
  .go-btn { font-size: 44px; padding: 14px 38px 16px; }
  .maze { grid-template-columns: repeat(var(--n), 96px); }
  .maze-cell { height: 96px; }
  .sort-item { width: 124px; height: 124px; }
  .food { width: 86px; height: 86px; font-size: 54px; }
  .coin { width: 70px; height: 70px; }
  .voice-select { font-size: 20px; }
}
/* Small tablets / phones held upright */
@media (pointer: coarse) and (max-width: 820px) {
  .key { width: 52px; height: 62px; font-size: 30px; }
  .krow { gap: 5px; }
  .krow:nth-child(2) { margin-left: 14px; } .krow:nth-child(3) { margin-left: 28px; }
  .mission-body { flex-direction: column-reverse; align-items: stretch; }
  .boss-side { width: 150px; align-self: center; }
  .challenge { min-height: calc(100dvh - 300px); }
}
.voice-select { font: inherit; font-size: 18px; padding: 6px 10px; border: 3px solid var(--ink); border-radius: 10px; margin: 6px 0; max-width: 100%; }
.voice-help { margin-top: 10px; font-size: 16px; }
.voice-help summary { cursor: pointer; font-weight: 800; }

.toggle input[type=range] { width: 220px; height: 28px; }

/* ===================== Guy (smash) and choosing who plays (2026-11-15) ===================== */
.card-smash::after { background: radial-gradient(circle at 50% 92%, #fef08a55 0 30px, transparent 31px), repeating-radial-gradient(circle at 50% 92%, transparent 0 40px, #ecfccb33 40px 46px); animation: shockCard 1.8s ease-out infinite; }
@keyframes shockCard { from { background-size: 100% 100%, 60% 60%; background-position: center, center; } to { background-size: 100% 100%, 140% 140%; } }
.card-smash .hero-title { background: linear-gradient(#ecfccb, #84cc16); color: var(--ink); }
.aura-smash .shock { animation: shock 1.4s ease-out infinite; transform-origin: 100px 226px; transform-box: view-box; }
.aura-smash .shock.s2 { animation-delay: .5s; }
@keyframes shock { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.aura-smash .rocks { animation: bob 1.6s ease-in-out infinite; }
.home .hero-pick { gap: 6px; }
.home .hero-card { width: 270px; }
.home .vs { width: 86px; height: 86px; }
.team-btn svg + svg { margin-inline-start: -14px; }

.who-plays .hero-card.pickable { width: 250px; opacity: .55; filter: grayscale(.6); transform: scale(.94); transition: all .2s; }
.who-plays .hero-card.pickable.picked { opacity: 1; filter: none; transform: scale(1.02); box-shadow: 0 0 0 6px #fff, 10px 10px 0 var(--ink), 0 0 40px #fde047; }
.pick-mark { position: absolute !important; top: 10px; left: 10px; width: 54px; height: 54px; border-radius: 50%; background: #22c55e; color: #fff; font-size: 34px; font-weight: 900; border: 4px solid var(--ink); display: none !important; align-items: center; justify-content: center; }
.hero-card.picked .pick-mark { display: flex !important; animation: pop .3s; }
.who-plays .go-btn:disabled { filter: grayscale(1); opacity: .5; cursor: not-allowed; }
.vs-side.duo.n3 { width: 330px; }
.vs-side.duo.n3 .hero-svg + .hero-svg { margin-inline-start: -40px; }
.gift-card { min-width: 250px; }

/* ===================== English, rulers, final battle, victory (2026-11-16) ===================== */
.en-ear { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; background: linear-gradient(180deg, #fdf2f8, #fbcfe8); border: 5px solid var(--ink); border-radius: 24px; box-shadow: 5px 5px 0 var(--ink); padding: 10px 26px; font-size: 54px; }
.en-ear b { font-family: Arial, sans-serif; font-size: 34px; direction: ltr; }
.en-ear small { font-size: 16px; font-weight: 800; }
.en-letter { font-family: Arial, sans-serif; }
.en-count .count-item { background: #fff; border: 4px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); font-size: 50px; padding: 4px 8px; display: flex; flex-direction: column; align-items: center; min-width: 76px; }
.en-count .count-item small { font-family: Arial, sans-serif; font-size: 18px; font-weight: 900; min-height: 22px; color: #be185d; }
.en-count .count-item.counted { background: #fce7f3; }

.showdown { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.machine-box { width: min(380px, 80vw); animation: hover 2.4s ease-in-out infinite; }
.machine-box.hit { animation: zap .6s; }
.machine-svg { width: 100%; display: block; }
.machine-svg.broken { transform: rotate(-12deg); filter: grayscale(.6); }
@keyframes hover { 50% { transform: translateY(-10px); } }
.hp-row { display: flex; gap: 8px; }
.hp-dot { width: 26px; height: 26px; border-radius: 50%; background: #cbd5e1; border: 4px solid var(--ink); }
.hp-dot.on { background: #ef4444; }
.beam { position: absolute; left: 50%; bottom: 120px; width: 18px; height: 0; margin-left: -9px; background: linear-gradient(var(--b), #fff); border-radius: 9px; box-shadow: 0 0 20px var(--b), 0 0 40px #fff; opacity: 0; pointer-events: none; }
.beam.shoot { animation: shoot .6s ease-out; }
@keyframes shoot { 0% { height: 0; opacity: 1; } 60% { height: 320px; opacity: 1; } 100% { height: 320px; opacity: 0; } }
.showdown-text { font-size: 48px; font-weight: 900; }
.showdown-hero { margin-top: 6px; }

.victory { margin-top: 16px; padding: 22px; text-align: center; overflow: hidden; }
.victory-title { font-size: 76px; }
.victory-row { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.victory-heroes { display: flex; }
.victory-heroes .hero-svg + .hero-svg { margin-inline-start: -30px; }
.medal-svg { width: 190px; filter: drop-shadow(6px 8px 0 #0004); animation: medal 2s ease-in-out infinite; }
@keyframes medal { 50% { transform: rotate(6deg) scale(1.05); } }
.victory-villain { display: flex; flex-direction: column; align-items: center; }
.victory-villain .villain-bubble { margin: 0; order: -1; }
.fireworks { position: absolute; inset: 0; pointer-events: none; }
.fireworks i { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 -40px 0 var(--c), 0 40px 0 var(--c), 40px 0 0 var(--c), -40px 0 0 var(--c), 28px 28px 0 var(--c), -28px -28px 0 var(--c), 28px -28px 0 var(--c), -28px 28px 0 var(--c); animation: firework 1.6s ease-out infinite; animation-delay: var(--d); opacity: 0; }
@keyframes firework { 0% { transform: scale(.1); opacity: 1; } 80% { opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.certificate { max-width: 680px; margin: 18px auto; background: #fffbeb; border: 10px double #a16207; border-radius: 14px; padding: 18px 26px; font-size: 22px; line-height: 1.6; box-shadow: 6px 6px 0 var(--ink); }
.cert-title { font-family: var(--display); font-size: 58px; color: #a16207; line-height: 1; }
.cert-faces { display: flex; justify-content: center; gap: 8px; }
.cert-date { font-size: 16px; color: #78350f; }
@media print {
  body { background: #fff !important; }
  body * { visibility: hidden; }
  .certificate, .certificate * { visibility: visible; }
  .certificate { position: absolute; top: 20px; left: 20px; right: 20px; box-shadow: none; }
}

/* ===================== new heroes (2026-11-16) ===================== */
.hero-pick.many .hero-card { width: 210px; padding: 12px 10px; }
.hero-pick.many .hero-name { font-size: 52px; }
.hero-pick.many .hero-title { font-size: 17px; }
.hero-card.add-hero { background: repeating-linear-gradient(45deg, #ffffff22 0 14px, #ffffff11 14px 28px); border-style: dashed; color: #fff; justify-content: center; min-height: 300px; width: 200px; box-shadow: none; transform: none; }
.hero-pick.many .hero-card.add-hero { min-height: 250px; }
.add-hero .plus { font-size: 80px; }
.add-hero .hero-title { background: #fff; color: var(--ink); }
.maker { margin-top: 16px; padding: 22px; }
.maker .comic-title { text-align: center; }
.maker-row { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; justify-content: center; }
.maker-form { flex: 1; min-width: 300px; max-width: 620px; }
.maker-label { display: block; font-size: 22px; font-weight: 900; margin: 14px 0 6px; }
.maker-name { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 30px; font-weight: 800; padding: 8px 14px; border: 4px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); }
.maker-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 20px; font-weight: 800; padding: 8px 14px; border: 4px solid var(--ink); border-radius: 999px; background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.chip.on { background: var(--yellow); transform: scale(1.06); }
.swatch-sm { width: 48px; height: 48px; border-radius: 50%; background: var(--s); border: 4px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.swatch-sm.on { box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--ink); transform: scale(1.1); }
.maker-preview { text-align: center; background: radial-gradient(circle, #fff, #e0e7ff); border: 5px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); padding: 14px 24px; }
.maker-title { font-family: var(--display); font-size: 40px; margin: 6px 0 0; }
.custom-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 20px; }

/* ===================== big maps, game-style (2026-11-16) ===================== */
.emo { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; pointer-events: none; filter: drop-shadow(4px 6px 0 #0004); }
.wow .district { cursor: pointer; outline: none; }
.wow .district .district-art { transition: transform .25s; filter: none; }
.wow .district:hover .district-art, .wow .district:focus .district-art { transform: translateY(-10px) scale(1.06); }
.wow .district .district-glow { opacity: 0; transition: opacity .25s; }
.wow .district:hover .district-glow, .wow .district:focus .district-glow { opacity: 1; }
.wow .district[data-ruler] .district-glow { opacity: .8; animation: twinkle 2.4s ease-in-out infinite; }
.wow .district.locked { cursor: not-allowed; }
.wow .district.locked .district-art { filter: grayscale(.85) brightness(.8); }
.ribbon-text { font-family: var(--display); font-size: 40px; fill: #fff; stroke: #111; stroke-width: 2px; paint-order: stroke; }
.glow-num, .glow-letter, .glow-abc { font-family: Arial, "Rubik", sans-serif; font-weight: 900; font-size: 54px; fill: #fff; stroke: #111; stroke-width: 3px; paint-order: stroke; }
.glow-num { fill: #7dd3fc; filter: drop-shadow(0 0 8px #38bdf8); }
.glow-letter { fill: #fde68a; filter: drop-shadow(0 0 8px #f59e0b); }
.glow-abc { fill: #fbcfe8; filter: drop-shadow(0 0 8px #ec4899); }
.glow-digits { animation: bob 3s ease-in-out infinite; }
.wow .bob { animation: bob 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.road-dash { animation: dashMove 1.2s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -64; } }
.sea-waves { animation: waves 8s linear infinite; }
@keyframes waves { to { transform: translateX(120px); } }
.sail { animation: sail 7s ease-in-out infinite; }
.sail.s2 { animation-duration: 9s; animation-delay: -3s; }
.sail.s3 { animation-duration: 11s; animation-delay: -5s; }
@keyframes sail { 0%, 100% { transform: translate(0, 0) rotate(-2deg); } 50% { transform: translate(18px, -6px) rotate(3deg); } }
.jump { animation: jump 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes jump { 0%, 70%, 100% { transform: translateY(0) rotate(0); } 80% { transform: translateY(-30px) rotate(-20deg); } 90% { transform: translateY(-10px) rotate(10deg); } }
.drift { animation: drift 40s linear infinite; }
.drift.d2 { animation-duration: 55s; animation-delay: -20s; }
@keyframes drift { from { transform: translateX(-200px); } to { transform: translateX(400px); } }
.fly { animation: fly 22s linear infinite; }
.fly.f2 { animation-duration: 30s; animation-delay: -12s; }
@keyframes fly { from { transform: translate(-80px, 140px); } to { transform: translate(1700px, 60px); } }
.lava-glow { animation: twinkle 2s ease-in-out infinite; }
.lava-flow { animation: lava 2.4s ease-in-out infinite alternate; }
@keyframes lava { from { stroke: #f97316; } to { stroke: #fde047; } }
.lightning { animation: flashBolt 3s steps(1) infinite; }
@keyframes flashBolt { 0%, 88%, 100% { opacity: 0; } 90%, 96% { opacity: 1; } }
.spin-slow-emo { animation: none; }
@media (prefers-reduced-motion: reduce) { .wow * { animation: none !important; } }

.glow-abc { direction: ltr; unicode-bidi: bidi-override; }

/* ===================== the 24 newest worlds' games (2026-11-16) ===================== */
.goal-big { display: inline-block; font-size: 80px; font-weight: 900; background: var(--yellow); border: 5px solid var(--ink); border-radius: 50%; width: 130px; height: 130px; line-height: 120px; box-shadow: 5px 5px 0 var(--ink); }
.ten-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 10px; }
.ten-card { min-width: 110px; min-height: 130px; background: #fff; border: 5px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.ten-card b { font-size: 54px; font-weight: 900; line-height: 1; }
.ten-card.selected { background: #fef08a; transform: translateY(-8px); }
.ten-card.matched { background: #bbf7d0; }
.dot-card.mini { max-width: 90px; gap: 4px; }
.dot-card.mini i { width: 14px; height: 14px; }
.num-train { display: flex; align-items: flex-end; justify-content: center; gap: 6px; margin: 16px 0; flex-wrap: wrap; }
.num-train .loco { font-size: 80px; line-height: 1; }
.wagon { width: 86px; height: 70px; background: linear-gradient(#60a5fa, #2563eb); color: #fff; border: 4px solid var(--ink); border-radius: 10px 10px 4px 4px; font-size: 40px; font-weight: 900; display: flex; align-items: center; justify-content: center; position: relative; text-shadow: 2px 2px 0 #111; }
.wagon::after { content: ""; position: absolute; bottom: -14px; left: 12px; right: 12px; height: 14px; background: radial-gradient(circle at 10px 7px, #111 6px, transparent 7px), radial-gradient(circle at calc(100% - 10px) 7px, #111 6px, transparent 7px); }
.wagon.hole { background: #fff; color: var(--z); border-style: dashed; text-shadow: none; }
.wagon.filled { background: linear-gradient(#86efac, #16a34a); animation: pop .3s; }
.tower-box { min-height: 320px; display: flex; align-items: flex-end; }
.tower { display: flex; flex-direction: column-reverse; align-items: center; min-height: calc(var(--h) * 26px); }
.tower i { width: 80px; height: 24px; background: var(--c); border: 3px solid var(--ink); border-radius: 5px; margin-top: 2px; box-shadow: inset 0 -5px 0 #0002, inset 0 4px 0 #fff6; animation: pop .25s; }
.towers .option { align-items: flex-end; min-height: 280px; }
.towers .tower i { width: 64px; height: 22px; }
.share-pile { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; font-size: 44px; min-height: 60px; }
.share-pile i, .small-plate i { font-style: normal; }
.share-row { display: flex; justify-content: center; gap: 30px; margin-top: 10px; }
.share-plate { background: #fff; border: 5px solid var(--ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); padding: 10px 16px; display: flex; flex-direction: column; align-items: center; min-width: 220px; }
.share-plate .friend { font-size: 60px; }
.small-plate { display: flex; flex-wrap: wrap; justify-content: center; min-height: 60px; min-width: 180px; border-radius: 50%; background: radial-gradient(circle, #fff 55%, #e2e8f0 56%, #fff 70%); border: 4px solid var(--ink); padding: 10px; font-size: 30px; }
.share-plate b { font-size: 34px; font-weight: 900; }
.pairs-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.pair { font-size: 54px; background: #fff; border: 4px solid var(--ink); border-radius: 16px; padding: 4px 10px; box-shadow: 3px 3px 0 var(--ink); }
.measure { display: inline-flex; flex-direction: column; align-items: flex-start; }
.measure .dino { line-height: .85; max-width: calc(var(--n) * 62px); overflow: visible; }
.ruler { display: flex; }
.ruler i { width: 58px; height: 34px; background: var(--c); border: 3px solid var(--ink); margin-left: 2px; border-radius: 4px; }
.syl-slots .slot.syl { width: 110px; font-size: 48px; }
.syl-tile { width: auto; min-width: 100px; padding: 0 14px; font-size: 48px; }
.small-word { font-size: 34px; }
.mem-back.gem { background: repeating-linear-gradient(45deg, #6d28d9 0 14px, #8b5cf6 14px 28px); }
.mem-back.en-back { background: repeating-linear-gradient(45deg, #db2777 0 14px, #f472b6 14px 28px); font-family: Arial, sans-serif; font-weight: 900; color: #fff; font-size: 40px; -webkit-text-stroke: 1.5px #111; }
.opp-q { display: inline-flex; align-items: center; gap: 14px; background: #fff; border: 5px solid var(--ink); border-radius: 20px; padding: 8px 20px; box-shadow: 5px 5px 0 var(--ink); }
.opp-q b { font-size: 40px; font-weight: 900; }
.opp-arrow { font-size: 40px; }
.opp-q .blank-box { width: 80px; height: 80px; border: 4px dashed var(--z); border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 900; color: var(--z); }
.story-slots { display: flex; justify-content: center; gap: 14px; margin: 12px 0 18px; }
.story-slot { width: 140px; min-height: 150px; border: 4px dashed #94a3b8; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 6px; background: #fff; }
.story-slot small { font-weight: 900; font-size: 18px; }
.story-slot.filled { border: 5px solid var(--ink); background: #bbf7d0; box-shadow: 4px 4px 0 var(--ink); }
.story-card { width: 130px; height: 130px; background: #fff; border: 5px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); }
.story-card.used { visibility: hidden; }
.sentence { display: inline-block; font-size: 40px; font-weight: 900; background: #fff; border: 5px solid var(--ink); border-radius: 18px; padding: 10px 24px; box-shadow: 5px 5px 0 var(--ink); margin-bottom: 10px; }
.yesno .option { min-width: 190px; }
.yn { display: flex; flex-direction: column; align-items: center; font-size: 70px; line-height: 1.1; }
.yn b { font-family: Arial, sans-serif; font-size: 34px; }
.sizes-opts .option { min-width: 170px; min-height: 170px; }
.balloon-text.emoji-label { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; font-size: 40px; stroke: none; }
.fish-label.emoji-label { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; font-size: 34px; -webkit-text-stroke: 0; }

.measure .dino { font-size: 100px; display: inline-block; transform: scaleX(var(--sx)); transform-origin: left center; max-width: none; line-height: 1; margin-bottom: 4px; }
.en-ear b { direction: ltr; unicode-bidi: isolate; }

/* parents corner, tidy (2026-11-16) */
.progress-table th { font-size: 16px; }
.progress-table td { font-size: 16px; min-width: 120px; }
.progress-table .bar { height: 12px; background: #e2e8f0; border: 2px solid #111; border-radius: 6px; overflow: hidden; margin: 0 auto 2px; width: 100px; }
.progress-table .bar i { display: block; height: 100%; }
.realm-details { background: #f8fafc; border: 3px solid #111; border-radius: 12px; padding: 6px 14px; margin: 8px 0; }
.realm-details summary { font-weight: 900; font-size: 20px; cursor: pointer; }
.realm-details h4 { margin: 10px 0 2px; }
.realm-details ul { margin: 0; font-size: 16px; }

.base-part.next-part { animation: twinkle 1.8s ease-in-out infinite; }

/* the name is now "The City Heroes" (2026-11-17): an English comic-book logo */
.logo { direction: ltr; }
.logo-top, .logo-main { font-family: "Bangers", var(--display); letter-spacing: 3px; }
.logo-top { font-size: clamp(40px, 6vw, 66px); }
.logo-main { font-size: clamp(90px, 14vw, 150px); padding: 0 .08em; }
.logo.small .logo-top { font-size: 26px; letter-spacing: 1px; }
.logo.small .logo-main { font-size: 38px; letter-spacing: 1px; }

.transfer-code { width: 100%; font: 14px monospace; direction: ltr; border: 3px solid #111; border-radius: 10px; padding: 8px; margin: 6px 0; }
.file-btn { display: inline-flex; align-items: center; cursor: pointer; }

/* ===================== richer game (2026-11-17) ===================== */
/* the world behind a challenge */
.mission-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%); }
.mission-scene::before { content: ""; position: absolute; inset: 0; background: radial-gradient(#ffffff22 2px, transparent 2.5px) 0 0 / 18px 18px; }
.mission-scene::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, transparent 55%, #0006 100%); }
.mission-scene span { position: absolute; transform: translate(-50%, -50%); opacity: .55; filter: drop-shadow(4px 6px 0 #0003); animation: bob 4s ease-in-out infinite; animation-delay: var(--d); font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.mission .zone-tag, .mission .progress span { box-shadow: 4px 4px 0 var(--ink); }
.hint-btn { background: linear-gradient(180deg, #fef9c3, #fde047); border: 4px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink); font-size: 22px; font-weight: 900; padding: 6px 16px; }
.hint-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

/* the hero beside the task */
.hero-side { position: relative; width: 170px; flex-shrink: 0; align-self: flex-end; display: flex; flex-direction: column; align-items: center; }
.hero-side .hero-svg { filter: drop-shadow(6px 8px 0 #0004); }
.hero-side.cheer .hero-svg { animation: cheer .9s ease-out; }
.hero-side.think .hero-svg { animation: shake .5s; }
.hero-side .think-bubble { position: absolute; top: -10px; left: 0; font-size: 44px; background: #fff; border: 4px solid var(--ink); border-radius: 50%; width: 66px; height: 66px; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.5); transition: all .2s; }
.hero-side.think .think-bubble { animation: thinkPop 1.6s; }
@keyframes cheer { 0% { transform: translateY(0); } 30% { transform: translateY(-50px) rotate(-6deg); } 55% { transform: translateY(0) rotate(4deg); } 75% { transform: translateY(-20px); } 100% { transform: translateY(0); } }
@keyframes thinkPop { 0% { opacity: 0; transform: scale(.5); } 20%, 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.8); } }
.hero-pet { margin-top: -20px; }
@media (max-width: 980px) { .hero-side { width: 110px; } .hero-side .hero-svg { width: 110px; height: auto; } }
@media (max-width: 760px), (pointer: coarse) and (max-width: 820px) { .hero-side { display: none; } }

/* pets */
.pet { position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--s); height: var(--s); }
.pet i { font-style: normal; font-size: var(--s); line-height: 1; filter: drop-shadow(3px 4px 0 #0004); animation: bob 2.4s ease-in-out infinite; }
.pet.egg i { animation: wiggle 1.2s ease-in-out infinite; }
.pet.egg::after { content: ""; position: absolute; inset: 15%; border-radius: 50%; box-shadow: 0 0 20px 6px var(--c); opacity: .5; z-index: -1; }
.pet b { position: absolute; top: -30%; font-size: calc(var(--s) * .45); }
.pet.stage3::after { content: "✨"; position: absolute; right: -20%; top: 0; font-size: calc(var(--s) * .4); animation: twinkle 1.5s infinite; }
.pet-card { display: inline-flex; align-items: center; gap: 16px; background: #fff; border: 4px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); padding: 8px 22px; margin: 14px auto 0; font-size: 22px; }
.pet-card small { font-size: 16px; color: #475569; }
.bonus-row { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 8px; }
.bonus { display: inline-flex; align-items: center; gap: 8px; background: #fef9c3; border: 3px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: 18px; animation: pop .5s; }
.bonus b { font-size: 30px; }

/* helpers */
.helper-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0; }
.helper-face { font-size: 54px; background: #fff; border: 4px solid var(--ink); border-radius: 50%; width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px var(--c), 4px 4px 0 6px var(--ink); animation: bob 2.6s ease-in-out infinite; }
.helper-bubble { background: #fff; border: 4px solid var(--ink); border-radius: 18px; padding: 6px 14px; font-size: 20px; box-shadow: 4px 4px 0 var(--ink); }

/* sticker album */
.album { margin-top: 16px; padding: 22px; text-align: center; }
.album-count { font-size: 18px; color: #475569; margin: 4px 0 12px; }
.album-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 16px; }
.stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.sticker { position: relative; background: #f1f5f9; border: 4px dashed #94a3b8; border-radius: 20px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 140px; justify-content: center; }
.sticker span { font-size: 60px; line-height: 1.1; filter: grayscale(1) opacity(.35); }
.sticker small { font-size: 14px; font-weight: 800; color: #64748b; }
.sticker.got { background: #fff; border: 4px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: rotate(-2deg); }
.sticker.got:nth-child(even) { transform: rotate(2deg); }
.sticker.got span { filter: drop-shadow(3px 4px 0 #0003); }
.sticker.got small { color: var(--ink); }
.sticker.gold { background: linear-gradient(160deg, #fef9c3, #fde047); border-color: #a16207; box-shadow: 0 0 0 3px #fde047, 4px 4px 0 6px var(--ink); }
.sticker b { position: absolute; top: -12px; left: -8px; font-size: 30px; }

/* daily chest */
.overlay { position: fixed; inset: 0; background: #0f172acc; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; }
.chest-pop { padding: 26px 40px; text-align: center; max-width: 520px; animation: pop .4s; }
.big-chest { font-size: 150px; background: none; animation: wiggle .6s infinite; filter: drop-shadow(6px 8px 0 #0004); }
.chest-hint { font-size: 22px; font-weight: 800; }
.chest-prize { display: flex; align-items: center; justify-content: center; gap: 20px; animation: pop .5s; }
.prize-sticker { font-size: 120px; background: #fff; border: 5px solid var(--ink); border-radius: 26px; padding: 10px 20px; box-shadow: 6px 6px 0 var(--ink); transform: rotate(-4deg); }
.prize-stars { font-size: 50px; }

/* the opening comic story */
.story-screen { margin-top: 16px; padding: 22px; text-align: center; }
.story-dots { display: flex; justify-content: center; gap: 10px; margin-bottom: 12px; }
.story-dots span { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; }
.story-dots span.on { background: var(--yellow); transform: scale(1.3); }
.story-dots span.done { background: #86efac; }
.story-panel { background: radial-gradient(circle at 50% 40%, #fff, #e0e7ff); border: 6px solid var(--ink); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); min-height: 300px; display: flex; align-items: center; justify-content: center; padding: 16px; animation: pop .4s; }
.story-art { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.story-art .burst-svg { width: 180px; height: 180px; }
.story-art.city span { font-size: 90px; }
.story-kids { width: 100%; font-size: 60px; }
.story-art.rulers .boss-svg { width: 190px; }
.story-art.helpers div { display: flex; flex-direction: column; align-items: center; font-size: 100px; }
.story-art.helpers small { font-size: 20px; font-weight: 900; }
.story-caption { font-size: 28px; }
.story-link { margin-inline-end: 10px; }

/* Dr. Balagan's taunt on the city map */
.taunt { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; }
.taunt-face { width: 70px; flex-shrink: 0; animation: sneak 3s ease-in-out infinite; }
.taunt-bubble { background: #a3e635; border: 4px solid var(--ink); border-radius: 18px; padding: 6px 16px; font-weight: 900; font-size: 20px; box-shadow: 4px 4px 0 var(--ink); position: relative; }
