/* M&E Læring – Matematik */
@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url('fonts/fredoka-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('fonts/fredoka-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url('fonts/fredoka-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url('fonts/nunito-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('fonts/nunito-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('fonts/nunito-latin-800-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --cream: #fff7e8;
  --sand: #fdeecd;
  --ink: #1d2b53;
  --muted: #4f5b7d;
  --card: #ffffff;
  --lip: #f0e2c4;
  --line: #e3d3ad;
  --blue: #2f6fe0;
  --coral: #f05a4b;
  --yellow: #ffc93c;
  --mint: #139a73;
  --mint-lip: #0c6e52;
  --purple: #7b5cf0;
  --navy: #2a3a6b;
  --display: 'Fredoka', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  --body: 'Nunito', 'Trebuchet MS', 'Helvetica Neue', sans-serif;
  --pad: clamp(16px, 3vw, 40px);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  height: 100%;
  background: var(--cream);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0; height: 100%; background: var(--cream); color: var(--ink);
  font-family: var(--body); font-weight: 700; font-size: 18px; line-height: 1.35;
  -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3, p { margin: 0; }

#app { height: 100%; }
.screen { height: 100%; display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 24px); padding: clamp(14px, 2.6vh, 28px) var(--pad); overflow: hidden; }
.screen > main { flex: 1; min-height: 0; display: flex; gap: clamp(16px, 2.4vw, 28px); }

/* ---------- Fælles ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 52px; height: 52px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--display); font-weight: 700; font-size: 26px; }
.brand-name span { align-self: flex-start; margin-top: 4px; font-family: var(--display); font-weight: 600; font-size: 14px; color: #fff; background: var(--coral); padding: 3px 10px; border-radius: 999px; }
.chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--card); box-shadow: 0 4px 0 var(--lip); font-family: var(--display); font-weight: 600; font-size: 20px; white-space: nowrap; }
.chip svg { width: 26px; height: 26px; flex: none; }
.chip.kid { padding-left: 6px; }
.ghost { min-height: 48px; padding: 0 18px; border-radius: 999px; border: 3px solid var(--line); background: transparent; font-family: var(--display); font-weight: 600; font-size: 18px; }
.ghost:active { background: #fff; }
.avatar { flex: none; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; }
.panel { background: var(--card); border-radius: 36px; box-shadow: 0 8px 0 var(--lip); }
.big-btn { min-height: 76px; border: 0; border-radius: 26px; background: var(--mint); color: #fff; font-family: var(--display); font-weight: 700; font-size: 30px; box-shadow: 0 6px 0 var(--mint-lip); display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 24px; transition: transform .08s; }
.big-btn:active, .key:active, .kid-card:active, .node:active { transform: translateY(4px); box-shadow: none; }
.big-btn:disabled { background: #b9c2d6; box-shadow: 0 6px 0 #97a1b8; }
.big-btn svg { width: 30px; height: 30px; }
.round-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--card); box-shadow: 0 4px 0 var(--lip); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.round-btn svg { width: 28px; height: 28px; }

/* Talknapper */
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.key { min-height: clamp(58px, 9.5vh, 84px); border: 0; border-radius: 24px; background: var(--card); font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4.6vh, 40px); box-shadow: 0 6px 0 #e6dcc4; display: flex; align-items: center; justify-content: center; }
.key svg { width: 34px; height: 34px; }
.key.soft { background: #f3f5fb; box-shadow: 0 5px 0 #d8deee; }
.key.help { background: #fff4d1; box-shadow: 0 6px 0 #ecd28a; }
.key.help[aria-pressed="true"] { background: var(--yellow); }
.key.ok { background: var(--mint); color: #fff; box-shadow: 0 5px 0 var(--mint-lip); font-size: 30px; }

.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.pop { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 14px 24px; border-radius: 999px; font-weight: 800; font-size: 18px; z-index: 50; box-shadow: 0 6px 20px rgba(29, 43, 83, .25); max-width: calc(100% - 32px); text-align: center; }

/* ---------- Login ---------- */
.login { align-items: center; }
.who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: clamp(18px, 3.5vh, 32px); max-height: 100%; }
.who h1 { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 5.4vw, 54px); line-height: 1.05; }
.who .lead { font-size: 20px; color: var(--muted); margin-top: -12px; }
.kids { display: flex; gap: 22px; flex-wrap: wrap; overflow-y: auto; padding: 4px 4px 12px; margin: -4px; }
.kid-card { width: 200px; padding: 26px 16px 22px; border-radius: 32px; border: 4px solid #fff; background: #fff; box-shadow: 0 6px 0 var(--lip); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.kid-card[aria-pressed="true"] { border-color: var(--blue); background: #eaf1ff; box-shadow: 0 6px 0 #b9cdf5; }
.kid-card .avatar { width: 104px; height: 104px; font-size: 49px; }
.kid-card .nm { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kid-card .pr { font-size: 16px; color: var(--muted); }
.kid-add { width: 200px; min-height: 248px; border-radius: 32px; border: 4px dashed #d9c9a6; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--muted); }
.kid-add svg { width: 44px; height: 44px; }
.side { width: 420px; flex: none; padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 20px; max-height: 100%; overflow-y: auto; }
.side-head { display: flex; align-items: center; gap: 14px; }
.side-head .avatar { width: 56px; height: 56px; font-size: 26px; }
.side-head h2 { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; }
.side-head p { font-size: 18px; color: var(--muted); }
.side-empty { text-align: center; color: var(--muted); font-size: 20px; padding: 30px 10px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.side-empty svg { width: 120px; height: 120px; }
.pins { display: flex; gap: 14px; justify-content: center; }
.pin { width: 58px; height: 64px; border-radius: 18px; border: 4px solid #dfe4f0; background: #fff; display: flex; align-items: center; justify-content: center; }
.pin.cur { border-color: var(--blue); }
.pin.on { background: var(--blue); border-color: var(--blue); }
.pin.on::after { content: ''; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.msg { min-height: 26px; text-align: center; font-size: 18px; color: var(--muted); }
.msg.bad { color: #c8392b; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .lbl { font-size: 18px; color: var(--muted); }
.field input { min-height: 64px; border-radius: 20px; border: 4px solid #dfe4f0; padding: 0 18px; font-family: var(--display); font-weight: 600; font-size: 28px; color: var(--ink); background: #fff; width: 100%; }
.field input:focus { border-color: var(--blue); outline: none; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { width: 56px; height: 56px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 3px #dfe4f0; }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 4px var(--ink); }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.foot { display: flex; justify-content: flex-end; }
.linkish { background: none; border: 0; color: var(--muted); font-size: 16px; font-weight: 800; min-height: 44px; padding: 0 8px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Kortet ---------- */
.map-wrap { flex: 1; min-width: 0; background: var(--sand); border-radius: 36px; padding: 10px 20px; container-type: size; display: flex; align-items: center; justify-content: center; }
.mapbox { position: relative; width: min(100cqw, calc(100cqh * 700 / 690)); aspect-ratio: 700 / 690; container-type: inline-size; }
.mapbox > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.node { position: absolute; transform: translate(-50%, -50%); width: 11cqw; height: 11cqw; border-radius: 50%; border: 0; padding: 0; background: none; display: flex; align-items: center; justify-content: center; }
.node .disc { width: 100%; height: 100%; border-radius: 50%; border: 0.9cqw solid #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 4cqw; color: #fff; position: relative; }
.node.locked .disc { background: #ece6d6; width: 84%; height: 84%; }
.node.locked .disc svg { width: 40%; height: 40%; }
.node.open .disc { background: #fff; border-color: currentColor; }
.node.cur { width: 14cqw; height: 14cqw; }
.node.cur::before { content: ''; position: absolute; inset: -12%; border-radius: 50%; background: currentColor; opacity: .18; animation: halo 2.2s ease-in-out infinite; }
@keyframes halo { 50% { transform: scale(1.1); opacity: .08; } }
.node.cur .disc { background: #fff; border: 0; }
.node .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.node .trophy { position: absolute; right: -16%; top: -16%; width: 46%; height: 46%; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.node .trophy svg { width: 72%; height: 72%; }
.node .lbl { position: absolute; top: calc(100% + 0.8cqw); left: 50%; transform: translateX(-50%); white-space: nowrap; background: rgba(255, 255, 255, .94); border-radius: 999px; padding: 0.5cqw 1.8cqw; font-family: var(--body); font-weight: 800; font-size: 2.3cqw; color: var(--ink); }
.node.locked .lbl { color: #6e6858; }
.node.lbl-right .lbl { top: 50%; left: calc(100% + 1.4cqw); transform: translateY(-50%); }
.node .here { position: absolute; bottom: calc(100% + 2.2cqw); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-family: var(--display); font-weight: 600; font-size: 2.3cqw; padding: 0.7cqw 2cqw; border-radius: 999px; white-space: nowrap; }
.node .here::after { content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 1cqw solid transparent; border-top-color: var(--ink); }
.aside { width: 330px; flex: none; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; padding-bottom: 8px; }
.aside .panel { border-radius: 30px; box-shadow: 0 6px 0 var(--lip); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.aside .kicker { font-size: 16px; color: var(--muted); }
.aside .now h2 { font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1.05; }
.aside h3 { font-family: var(--display); font-weight: 600; font-size: 22px; }
.bars { display: flex; gap: 6px; }
.bars span { flex: 1; height: 12px; border-radius: 6px; background: #ece4cf; }
.split { display: flex; justify-content: space-between; align-items: baseline; }
.meter { height: 20px; border-radius: 10px; background: #f0ebde; overflow: hidden; }
.meter div { height: 100%; border-radius: 10px; background: var(--blue); }
.cabinet { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cabinet span { aspect-ratio: 50 / 56; border-radius: 14px; background: #f6f1e4; display: flex; align-items: center; justify-content: center; }
.cabinet span.won { background: #fff4d1; }
.cabinet svg { width: 70%; height: 70%; }
.cabinet.glow { animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }

/* ---------- Opgaven ---------- */
.task-head .ttl { display: flex; align-items: center; gap: 14px; min-width: 0; }
.task-head .ttl b { display: block; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1; }
.task-head .ttl small { font-size: 16px; font-weight: 800; color: var(--muted); }
.steps { display: flex; gap: 8px; align-items: center; }
.steps span { width: 26px; height: 26px; border-radius: 50%; background: #ece4cf; display: flex; align-items: center; justify-content: center; }
.steps span.done { background: var(--mint); }
.steps span.now { background: #fff; border: 5px solid currentColor; }
.steps svg { width: 16px; height: 16px; }
.card { flex: 1; min-width: 0; padding: clamp(20px, 4vh, 36px) clamp(20px, 3vw, 40px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(16px, 3.5vh, 34px); position: relative; container-type: inline-size; overflow-y: auto; border-radius: 40px; }
.speak { position: absolute; top: 22px; right: 22px; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 3px solid #e3dcf6; background: #fff; font-family: var(--display); font-weight: 600; font-size: 18px; }
.speak svg { width: 22px; height: 22px; }
.speak.on { background: #f4f0ff; }
.expr { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.18em; font-family: var(--display); font-weight: 700; font-size: clamp(54px, 13cqw, 120px); line-height: 1; margin-top: 30px; }
.expr.small { font-size: clamp(46px, 10cqw, 96px); }
.expr .w { font-size: .42em; font-weight: 600; color: var(--muted); padding: 0 .1em; }
.expr .eq { color: var(--muted); }
.mdot { width: .17em; height: .17em; border-radius: 50%; background: var(--tink, var(--ink)); display: inline-block; margin: 0 .1em; }
.question { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 6cqw, 50px); text-align: center; line-height: 1.15; margin-top: 30px; }
.question b { font-weight: 700; }
.box { min-width: 1.3em; height: 1.18em; padding: 0 .16em; border-radius: .27em; border: .05em solid currentColor; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: background .2s, border-color .2s; }
.task-screen .box { border-color: var(--tmain); background: #fff; }
.task-screen .box.ok { background: #e3f6ef; border-color: var(--mint); }
.task-screen .box.bad { background: #ffe9e6; border-color: var(--coral); }
.box.empty::after { content: '?'; opacity: .25; }
.box.ok { background: #e3f6ef; border-color: var(--mint); color: #0c6e52; }
.box.bad { background: #ffe9e6; border-color: var(--coral); }
.feedback { min-height: 34px; font-family: var(--display); font-weight: 600; font-size: 26px; text-align: center; }
.feedback.ok { color: #0c6e52; }
.feedback.bad { color: #c8392b; }
.helpbox { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; }
.helpbox .hint { font-size: 18px; font-weight: 800; color: var(--muted); text-align: center; max-width: 36em; }
.vis { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; --d: 34px; }
.frame { display: grid; grid-template-columns: repeat(5, var(--d)); gap: calc(var(--d) * .25); padding: calc(var(--d) * .35); border-radius: 20px; border: 3px solid var(--tline, #e3dcf6); background: #fff; }
.dot { width: var(--d); height: var(--d); border-radius: 50%; background: #f0ebde; display: flex; align-items: center; justify-content: center; }
.dot.a { background: var(--tmain); }
.dot.b { background: var(--tother); }
.dot.x { background: var(--ttint); }
.dot.x svg { width: 66%; height: 66%; }
.rodset { display: flex; gap: 14px; align-items: flex-end; padding: 12px 14px; border-radius: 20px; border: 3px solid var(--tline, #e3dcf6); background: #fff; }
.rods { display: flex; gap: 6px; align-items: flex-end; }
.rod { width: 16px; height: 156px; border-radius: 6px; display: grid; grid-template-rows: repeat(10, 1fr); gap: 2px; padding: 2px; background: var(--c, var(--tmain)); position: relative; }
.rod i { background: rgba(255, 255, 255, .35); border-radius: 2px; }
.ones { display: grid; grid-template-columns: repeat(2, 16px); grid-auto-rows: 16px; gap: 6px; }
.ones .dot { width: 16px; height: 16px; background: var(--c, var(--tmain)); }
.rod.x { background: var(--ttint); }
.rod.x i { background: rgba(255, 255, 255, .6); }
.rod.x::after { content: ''; position: absolute; left: -6px; right: -6px; top: 50%; height: 4px; border-radius: 2px; background: var(--coral); transform: rotate(-70deg); }
.ones .dot.x { background: var(--ttint); opacity: 1; }
.plus { font-family: var(--display); font-weight: 700; font-size: 44px; color: var(--muted); }
.groups { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 720px; }
.group { display: grid; gap: calc(var(--d) * .3); padding: calc(var(--d) * .45); border-radius: 18px; border: 3px solid var(--tline, #e3dcf6); background: #fff; }
.group.dash { border-style: dashed; }
.group .dot { background: var(--tmain); }
.pad-col { width: 340px; flex: none; display: flex; flex-direction: column; gap: 14px; }
.pad-col .big-btn { margin-top: auto; min-height: clamp(70px, 11vh, 92px); font-size: 34px; border-radius: 28px; }

/* ---------- Fejring ---------- */
.celebrate { position: fixed; inset: 0; z-index: 30; background: var(--navy); display: flex; align-items: center; justify-content: center; padding: 24px; padding-top: calc(24px + env(safe-area-inset-top, 0px)); padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); overflow: auto; }
.celebrate canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cel-card { position: relative; width: min(600px, 100%); background: #fff; border-radius: 44px; box-shadow: 0 10px 0 #1a2550; padding: 30px clamp(22px, 4vw, 44px) 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.cel-card > svg.hero { width: 190px; height: 190px; }
.cel-card h1 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5vw, 50px); line-height: 1.05; }
.cel-card p { font-size: 22px; color: var(--muted); }
.cel-stars { display: flex; gap: 10px; }
.cel-stars svg { width: 54px; height: 54px; }
.cel-actions { display: flex; gap: 14px; margin-top: 10px; width: 100%; flex-wrap: wrap; }
.cel-actions .ghost { flex: 1; min-height: 68px; border-radius: 24px; border-width: 4px; font-size: 22px; background: #fff; }
.cel-actions .big-btn { flex: 1.3; min-height: 68px; font-size: 22px; border-radius: 24px; }

/* ---------- Voksenmenu ---------- */
dialog.adult { border: 0; border-radius: 32px; padding: 0; width: min(620px, calc(100% - 32px)); max-height: calc(100% - 48px); color: var(--ink); background: var(--cream); box-shadow: 0 20px 60px rgba(29, 43, 83, .35); }
dialog.adult::backdrop { background: rgba(42, 58, 107, .55); }
.adult-in { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 18px; }
.adult-in h2 { font-family: var(--display); font-weight: 700; font-size: 30px; }
.adult-in .note { font-size: 16px; color: var(--muted); font-weight: 600; }
.adult-row { background: #fff; border-radius: 24px; box-shadow: 0 5px 0 var(--lip); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.adult-row .top { display: flex; align-items: center; gap: 12px; }
.adult-row .top .avatar { width: 48px; height: 48px; font-size: 22px; }
.adult-row .top b { font-family: var(--display); font-weight: 600; font-size: 24px; }
.adult-row .top small { display: block; color: var(--muted); font-size: 15px; }
.adult-row .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.adult-row .acts button, .adult-row select { min-height: 46px; padding: 0 14px; border-radius: 999px; border: 3px solid var(--line); background: #fff; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--ink); }
.adult-row .acts .danger { border-color: #f5b5ad; color: #b3291c; }
.adult-row .acts .yes { background: #b3291c; color: #fff; border-color: #b3291c; }
.adult-row label { font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adult .keypad { max-width: 360px; align-self: center; width: 100%; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: 24px; box-shadow: 0 5px 0 var(--lip); padding: 12px 16px; font-family: var(--display); font-weight: 600; font-size: 20px; }
.toggle button { min-height: 46px; min-width: 90px; border-radius: 999px; border: 3px solid var(--line); background: #fff; font-family: var(--display); font-weight: 600; font-size: 18px; }
.toggle button[aria-pressed="true"] { background: var(--mint); color: #fff; border-color: var(--mint); }

/* ---------- Stående iPad og smalle skærme ---------- */
@media (max-aspect-ratio: 1/1), (max-width: 900px) {
  .screen { overflow-y: auto; }
  .login { flex-direction: column; align-items: stretch; }
  .who { max-height: none; }
  .kids { overflow: visible; }
  .side { width: 100%; max-width: 520px; align-self: center; max-height: none; overflow: visible; }
  .map-screen > main { flex-direction: column; }
  .map-wrap { flex: none; height: min(62vh, 92vw); }
  .aside { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .task-screen > main { flex-direction: column; }
  .card { flex: 1 0 auto; min-height: 46vh; }
  .pad-col { width: 100%; max-width: 560px; align-self: center; }
  .pad-col .big-btn { margin-top: 0; }
  .steps span { width: 20px; height: 20px; }
}
@media (max-width: 640px) {
  .aside { grid-template-columns: 1fr; }
  .kid-card, .kid-add { width: calc(50% - 11px); }
  .chip { font-size: 17px; padding: 0 12px; }
  .steps { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
