/* Mattekul: färgglad, tecknad stil. Tjocka konturer, "klistermärkes"-skuggor, rundade former. */
:root {
  --ink: #2b2d42;
  --paper: #fff8e7;
  --card: #ffffff;
  --yellow: #ffd93d;
  --pink: #ff6b9d;
  --orange: #ff9f43;
  --green: #5fd38d;
  --blue: #4cc9f0;
  --purple: #b39dfa;
  --red: #ff5d5d;
  --add: var(--green);
  --sub: var(--orange);
  --mul: var(--purple);
  --div: var(--blue);
  --mix: var(--pink);
  --accent: var(--yellow);
  --font: "Fredoka", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(#ffe3a6 2.5px, transparent 2.5px);
  background-size: 30px 30px;
  line-height: 1.35;
}
#app {
  max-width: 760px; margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(56px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 4px solid var(--pink); outline-offset: 3px; }

.op-add { --accent: var(--add); }
.op-sub { --accent: var(--sub); }
.op-mul { --accent: var(--mul); }
.op-div { --accent: var(--div); }
.op-mix { --accent: var(--mix); }

/* ---------- Knappar ---------- */
.btn {
  font-weight: 800; font-size: 1.15rem;
  background: var(--yellow);
  border: 3px solid var(--ink); border-radius: 18px;
  padding: 12px 20px;
  box-shadow: 0 5px 0 var(--ink);
  cursor: pointer;
  transition: transform .08s, box-shadow .08s;
  touch-action: manipulation;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-small { font-size: .95rem; padding: 8px 14px; box-shadow: 0 4px 0 var(--ink); border-radius: 14px; background: #fff; }
.btn-big { font-size: 1.6rem; padding: 16px 36px; background: var(--green); border-radius: 24px; }
.btn-ghost { background: #fff; }
.btn-danger { background: #ffd6d6; }

/* ---------- Startsida ---------- */
.hero { text-align: center; padding: 8px 0 4px; }
.hero .mascot { width: 120px; height: 120px; animation: bob 2.4s ease-in-out infinite; }
.logo { font-size: clamp(2.6rem, 12vw, 4.2rem); letter-spacing: 1px; line-height: 1; margin-top: 4px; }
.logo span { display: inline-block; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); }
.logo span:nth-child(odd) { transform: rotate(-4deg); }
.logo span:nth-child(even) { transform: rotate(3deg) translateY(2px); }
.tagline { margin-top: 12px; font-weight: 700; font-size: 1.1rem; }

.section { margin-top: 22px; }
.section > h2 { font-size: 1.25rem; margin-bottom: 10px; }

.card {
  background: var(--card);
  border: 3px solid var(--ink); border-radius: 24px;
  box-shadow: 0 6px 0 var(--ink);
  padding: 16px;
}

.players { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.05rem;
  background: #fff; border: 3px solid var(--ink); border-radius: 999px;
  padding: 6px 16px 6px 8px; cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
}
.chip .av { font-size: 1.6rem; line-height: 1; }
.chip[aria-pressed="true"] { background: var(--yellow); transform: translateY(-1px); }

.form { display: grid; gap: 12px; }
.form label { font-weight: 800; }
.form input[type=text] {
  font: inherit; font-size: 1.2rem; font-weight: 700;
  width: 100%; padding: 12px 14px;
  border: 3px solid var(--ink); border-radius: 16px; background: #fffdf5;
}
.avatars { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar {
  font-size: 2rem; line-height: 1; padding: 6px 8px; cursor: pointer;
  background: #fff; border: 3px solid var(--ink); border-radius: 16px;
}
.avatar[aria-pressed="true"] { background: var(--yellow); box-shadow: 0 4px 0 var(--ink); transform: translateY(-2px); }
.form .row { display: flex; flex-wrap: wrap; gap: 10px; }

.ops { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 14px; }
.opcard {
  position: relative; text-align: center;
  background: var(--accent);
  border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 0 6px 0 var(--ink);
  padding: 12px 8px 10px; cursor: pointer;
  transition: transform .1s;
}
.opcard .sym { display: block; font-size: 3rem; font-weight: 900; line-height: 1.05; }
.opcard .nm { display: block; font-weight: 800; font-size: 1.1rem; }
.opcard .tot { display: block; font-size: .85rem; font-weight: 700; margin-top: 2px; }
.opcard[aria-pressed="true"] { transform: translateY(-4px) rotate(-1.5deg); outline: 5px solid var(--ink); outline-offset: 2px; }
.opcard[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: -12px; right: -8px;
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 3px solid var(--ink);
  display: grid; place-items: center; font-weight: 900;
}

.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.level {
  text-align: left; cursor: pointer;
  background: #fff; border: 3px solid var(--ink); border-radius: 20px;
  padding: 12px 14px; box-shadow: 0 5px 0 var(--ink);
}
.level b { font-size: 1.15rem; display: block; }
.level small { display: block; font-weight: 600; font-size: .95rem; margin: 2px 0 4px; }
.level .st { letter-spacing: 2px; font-size: 1.1rem; }
.level[aria-pressed="true"] { background: var(--accent); transform: translateY(-3px); }

.startrow { text-align: center; margin-top: 26px; }
.settings { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin: 4rem 0; font-weight: 700; }
.settings label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.settings input { width: 24px; height: 24px; accent-color: var(--pink); }
.small-links { text-align: center; margin-top: 14px; }

/* ---------- Quiz ---------- */
.topbar { display: flex; align-items: center; gap: 10px; }
.pips { flex: 1; display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; }
.pips li { flex: 1; height: 14px; border-radius: 8px; background: #fff; border: 3px solid var(--ink); }
.pips li.cur { background: var(--yellow); transform: scaleY(1.25); }
.pips li.first { background: var(--green); }
.pips li.second { background: var(--blue); }
.pips li.missed { background: var(--orange); }
.score { font-weight: 900; font-size: 1.15rem; white-space: nowrap; }

.stage { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.stage .mascot { width: 92px; height: 92px; flex: none; animation: bob 2.4s ease-in-out infinite; }
.stage .mascot.mood-cheer { animation: hop .5s ease-in-out 2; }
.stage .mascot.mood-oops { animation: wobble .5s ease-in-out 1; }
.bubble {
  position: relative; flex: 1;
  background: #fff; border: 3px solid var(--ink); border-radius: 20px;
  padding: 10px 14px; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 4px 0 var(--ink);
}
.bubble::before {
  content: ""; position: absolute; left: -12px; top: 50%; margin-top: -9px;
  width: 18px; height: 18px; background: #fff;
  border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: rotate(45deg);
}

.qcard {
  margin-top: 16px; text-align: center;
  background: var(--accent);
  border: 3px solid var(--ink); border-radius: 26px;
  box-shadow: 0 7px 0 var(--ink);
  padding: 14px 14px 18px;
}
.qcard.shake { animation: shake .4s; }
.qlabel {
  display: inline-block; font-weight: 900; font-size: .95rem;
  background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 2px 14px;
}
.story { font-size: clamp(1.15rem, 4.6vw, 1.5rem); font-weight: 800; margin: 12px 4px 6px; }
.qexpr { font-size: clamp(2.2rem, 10vw, 3.8rem); font-weight: 900; margin-top: 8px; line-height: 1.15; }
.qexpr.smallq { font-size: clamp(1.6rem, 6vw, 2.2rem); }
.answer {
  display: inline-block; min-width: 2.4ch; padding: 0 .3em; margin-left: .15em; text-align: center;
  background: #fff; border: 3px solid var(--ink); border-radius: 16px;
  min-height: 1.25em;
}
.answer.empty { color: #b8b3a6; }
.answer.ok { background: #d8ffe6; animation: pop .4s; }
.answer.reveal { background: #ffe9c7; }

.hintbox {
  margin-top: 16px; background: #fffbe0;
  border: 3px dashed var(--ink); border-radius: 20px; padding: 12px 16px;
  font-size: 1.05rem;
}
.hintbox[hidden] { display: none; }
.hint-title { font-weight: 900; margin-bottom: 4px; }
.hintbox p { margin: 6px 0; }
.hintbox .step { padding-left: 4px; }
.eq { display: inline-block; font-weight: 900; background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 2px 10px; margin-top: 4px; }

.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 380px; margin: 18px auto 0; }
.pad.disabled { opacity: .35; pointer-events: none; }
.key { font-size: 1.9rem; padding: 12px 0; background: #fff; }
.key.del { background: #ffd6d6; }
.key.ok { background: var(--green); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }

/* ---------- Bilder i tips ---------- */
.frames { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 4px; }
.tenframe { display: grid; grid-template-columns: repeat(5, 30px); border: 3px solid var(--ink); border-radius: 8px; background: #fff; }
.cell { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #cfc9b8; }
.dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); }
.dot.c1 { background: var(--orange); }
.dot.c2 { background: var(--blue); }
.dot.gone { background: #e3dfd2; position: relative; }
.dot.gone::before, .dot.gone::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 3px; background: var(--red);
  transform: translate(-50%, -50%) rotate(45deg);
}
.dot.gone::after { transform: translate(-50%, -50%) rotate(-45deg); }
.groups { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.group { display: inline-flex; flex-wrap: wrap; gap: 3px; max-width: 150px; padding: 6px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; }
.group .dot { width: 14px; height: 14px; }
.vis { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 8px 0 4px; }
.vis .group { max-width: 320px; }
.opsign { font-size: 1.6rem; font-weight: 900; align-self: center; }
.blocks { display: inline-flex; align-items: flex-end; gap: 3px; padding: 6px; background: #fff; border: 3px solid var(--ink); border-radius: 12px; }
.blocks .ten { width: 12px; height: 60px; border: 2px solid var(--ink); border-radius: 4px;
  background: repeating-linear-gradient(to bottom, currentColor 0 5px, rgba(255,255,255,.55) 5px 6px); }
.blocks.c1 { color: var(--orange); }
.blocks.c2 { color: var(--blue); }
.blocks .ones { display: inline-flex; flex-wrap: wrap; gap: 3px; max-width: 46px; align-self: flex-end; }
.blocks .one { width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; background: currentColor; }
.cap { font-size: .9rem; font-weight: 700; color: #55587a; margin: 2px 0 6px; }

/* ---------- Resultat ---------- */
.result { text-align: center; }
.result .mascot { width: 150px; height: 150px; animation: hop .6s ease-in-out 3; }
.result h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); margin-top: 6px; }
.stars { font-size: clamp(3rem, 16vw, 5rem); letter-spacing: 6px; margin: 8px 0; }
.stars span { display: inline-block; filter: grayscale(1) opacity(.35); }
.stars span.on { filter: none; animation: pop .6s backwards; }
.stats { display: inline-block; text-align: left; font-weight: 800; font-size: 1.1rem; margin: 6px 0 10px; }
.stats div { margin: 4px 0; }
.train { text-align: left; margin-top: 14px; }
.train h3 { font-size: 1.1rem; margin-bottom: 6px; }
.train ul { margin: 0; padding-left: 22px; font-weight: 800; font-size: 1.1rem; }
.result .actions { margin-top: 22px; }

/* ---------- Konfetti och animationer ---------- */
.confetti { position: fixed; top: -14px; width: 10px; height: 14px; z-index: 60; pointer-events: none; animation: fall 1.7s ease-in forwards; }
@keyframes fall { to { transform: translateY(112vh) rotate(720deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-18px) rotate(-4deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-7deg); } 75% { transform: rotate(7deg); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-10px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
@keyframes pop { 0% { transform: scale(.5); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .confetti { display: none; }
}
@media (max-width: 420px) {
  .stage .mascot { width: 72px; height: 72px; }
  .key { font-size: 1.7rem; }
}

/* ---------- Läxhjälp ---------- */
.lax .laxhead h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); margin-top: 8px; }
.lax .tagline { margin-top: 6px; font-weight: 600; }
.hform { display: grid; gap: 12px; margin-top: 16px; }
.hform label { font-weight: 800; }
.hform input[type=text] {
  font: inherit; font-size: 1.6rem; font-weight: 700; width: 100%;
  padding: 12px 14px; border: 3px solid var(--ink); border-radius: 16px; background: #fffdf5;
}
.symrow, .exrow { display: flex; flex-wrap: wrap; gap: 10px; }
.symrow .btn { min-width: 52px; font-size: 1.3rem; }
.hform .btn-big { justify-self: start; }
.when { font-size: .95rem; font-weight: 600; color: #55587a; margin: 4px 0 8px; }
.res { margin-top: 18px; }
.res h2 { font-size: 1.3rem; margin-bottom: 8px; }
.res p { margin: 8px 0; font-size: 1.05rem; }
.res .step { padding-left: 4px; }
.notice { margin-top: 18px; background: #fff3d6; font-weight: 700; }
.ansbox {
  display: inline-block; margin: 8px 0 4px; padding: 6px 18px;
  font-size: 1.6rem; font-weight: 900; background: var(--green);
  border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink);
}
.famrow { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 6px 0; }
.tri { width: 340px; max-width: 100%; height: auto; flex: none; font-family: var(--font); }
.fam { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 1.25rem; font-weight: 800; }
.fam li { padding: 6px 14px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; }
.fam li.hl { background: var(--yellow); box-shadow: 0 4px 0 var(--ink); }
details.method { background: #fff; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 5px 0 var(--ink); margin: 14px 0; }
details.method summary { cursor: pointer; padding: 12px 16px; font-weight: 800; font-size: 1.1rem; list-style: none; }
details.method summary::-webkit-details-marker { display: none; }
details.method summary::before { content: "▸"; display: inline-block; margin-right: 8px; transition: transform .15s; }
details.method[open] summary::before { transform: rotate(90deg); }
.mbody { padding: 0 16px 14px; }
.tip { background: #fffbe0; border: 2px dashed var(--ink); border-radius: 12px; padding: 8px 12px; font-size: .98rem; }
pre.col {
  display: inline-block; margin: 8px 0; padding: 10px 16px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.5rem; line-height: 1.35; font-weight: 700;
  background: #fffdf5; border: 3px solid var(--ink); border-radius: 14px; overflow-x: auto; max-width: 100%;
}
.nline { width: 100%; max-width: 640px; height: auto; margin: 4px 0; font-family: var(--font); }
table.area { border-collapse: collapse; margin: 8px 0; font-size: 1.2rem; font-weight: 800; }
table.area th, table.area td { border: 3px solid var(--ink); padding: 10px 16px; text-align: center; }
table.area th { background: var(--yellow); }
table.area td { background: #fff; }
.lax-link { display: block; text-align: center; margin-top: 26px; }

/* ---------- Backup ---------- */
.backup { margin-top: 4rem; }
.backup summary { cursor: pointer; font-weight: 800; font-size: 1.1rem; }
.backup p { margin: 8px 0; }
.backup .actions.left { justify-content: flex-start; margin-top: 10px; }
.bk { width: 100%; font: inherit; font-size: .95rem; padding: 10px; margin-top: 10px; border: 3px solid var(--ink); border-radius: 14px; background: #fffdf5; }
.bk-h { font-weight: 800; margin-top: 16px !important; }
.bk-msg { font-weight: 700; color: #2b6a4a; min-height: 1.3em; }
.filebtn { display: inline-block; }

a.btn { display: inline-block; text-decoration: none; color: var(--ink); }

/* ---------- Fler övningar ---------- */
.subh { font-size: 1.05rem; margin: 20px 0 10px; }
.ops.extra { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.opcard.mini { padding: 8px 8px 8px; border-radius: 18px; box-shadow: 0 4px 0 var(--ink); }
.opcard.mini .sym { font-size: 1.7rem; }
.opcard.mini .nm { font-size: 1rem; }
.opcard.mini .tot { font-size: .78rem; }
.levels.compact { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.levels.compact .level { padding: 8px 10px; text-align: center; }
.levels.compact .level small { font-size: .78rem; }
.level .note { color: #7a3b00; font-weight: 800; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 420px; margin: 18px auto 0; }
.choices.disabled { opacity: .35; pointer-events: none; }
.choice { font-size: 1.5rem; padding: 16px 8px; background: #fff; }
.vag, .bar, .hchart, .fingers, .stolen { display: block; width: 100%; height: auto; margin: 8px 0; font-family: var(--font); }
.vag { max-width: 360px; }
.bar { max-width: 560px; }
.hchart { max-width: 320px; }
.fingers { max-width: 340px; }
.stolen { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.arr { display: block; width: 100%; height: auto; margin: 8px 0; }
.pv { display: inline-flex; flex-wrap: wrap; align-items: flex-end; gap: 4px; padding: 6px; margin: 6px 0; background: #fff; border: 3px solid var(--ink); border-radius: 12px; }
.pv .hundred { width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 4px; background-color: var(--purple);
  background-image: linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px); background-size: 4.4px 4.4px; }
.pv .ten { width: 10px; height: 44px; border: 2px solid var(--ink); border-radius: 3px; background: repeating-linear-gradient(to bottom, var(--orange) 0 3.4px, rgba(255,255,255,.6) 3.4px 4.4px); }
.pv .ones { display: inline-flex; flex-wrap: wrap; gap: 3px; max-width: 46px; }
.pv .one { width: 11px; height: 11px; border: 2px solid var(--ink); border-radius: 50%; background: var(--blue); }
.concept { background: #f3fbff; }
.concept h3 { font-size: 1.1rem; margin-bottom: 4px; }
.tips { margin: 6px 0; padding-left: 22px; }
.tips li { margin: 6px 0; }

/* ---------- Läxhjälp: navigation och alla förklaringar ---------- */
.laxnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.laxnav .tab { flex: 1 1 200px; background: #fff; font-size: 1.05rem; }
.laxnav .tab[aria-pressed="true"] { background: var(--yellow); }
.libtop { margin-top: 16px; }
.libtop p { margin: 0 0 10px; }
.libnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.libnav .jump { background: var(--accent); }
.libtop input[type=search] { font: inherit; font-size: 1.1rem; width: 100%; padding: 10px 14px; border: 3px solid var(--ink); border-radius: 14px; background: #fffdf5; }
.lib-group h2 .count { font-size: .85rem; font-weight: 700; color: #55587a; }
.lib-group { scroll-margin-top: 12px; }
.tablewrap { overflow-x: auto; }
table.patterns { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.patterns th, table.patterns td { border: 2px solid var(--ink); padding: 6px 8px; text-align: left; vertical-align: top; }
table.patterns th { background: var(--yellow); }
table.patterns td:first-child, table.patterns td:nth-child(2) { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.patterns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.pattern { border: 2px solid var(--ink); border-radius: 14px; padding: 8px 12px; background: #fff; }
.pattern .pat-h { font-size: 1.1rem; }
.pattern p { margin: 6px 0 0; font-size: .95rem; }

/* ---------- Steg 2: välj nivå ---------- */
.hero.small { padding: 0; display: flex; align-items: center; justify-content: center; gap: 10px; }
.hero.small .mascot { width: 64px; height: 64px; }
.hero.small .logo { font-size: clamp(2rem, 9vw, 2.8rem); margin: 0; }
.levelview { margin-top: 14px; }
.lv-head { display: flex; align-items: center; gap: 14px; margin: 16px 0 14px; padding: 12px 16px;
  background: var(--accent); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); }
.lv-sym { font-size: 2.8rem; font-weight: 900; line-height: 1; }
.lv-head h2 { font-size: 1.6rem; }
.lv-help { font-weight: 700; margin-top: 2px; }
.levels.big .level { position: relative; padding: 16px 44px 14px 16px; }
.levels.big .level b { font-size: 1.3rem; }
.levels.big .level .go { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; }
.levels.big.compact .level { padding: 12px 10px 10px; }
.levels.big.compact .level .go { display: none; }
.level .badge { position: absolute; top: -10px; right: 10px; font-size: .75rem; font-weight: 800; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 8px; }
.level:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }

/* ---------- Maskoten ---------- */
.mwrap { position: relative; display: inline-block; line-height: 0; }
.mascot { display: block; object-fit: contain; }
.hero .mwrap { margin: 0 auto; }
.stage .mwrap { flex: none; }
