@font-face { font-family: 'Fredoka'; src: url('../fonts/Fredoka.ttf') format('truetype'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito.ttf') format('truetype'); font-weight: 200 1000; font-display: swap; }
:root {
  --bg: #fff4e3; --card: #ffffff; --ink: #2b2140; --muted: #7a6d8a; --line: #f1e3cf;
  --sun: #ffc93c; --coral: #ff6b6b; --teal: #3ddec8; --teal-d: #12a893; --purple: #8f6bff; --orange: #ff9a1f; --green: #2fc56f;
  --kc: #8f6bff; --r: 22px; --shadow: 0 6px 0 rgba(43, 33, 64, .08), 0 10px 24px rgba(43, 33, 64, .07);
  --head: 'Fredoka', 'Nunito', system-ui, sans-serif; --body: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); touch-action: manipulation; }
/* iOS: raske dobbelttrykk på knapper skal ikke zoome siden (gjorde at ark/knapper ble utilgjengelige til siden ble lastet på nytt) */
body, button, a, input, label, select, textarea, [data-act], .sheet-wrap, .sheet, .celebrate { touch-action: manipulation; }
button, [data-act] { -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.sheet-open, html.sheet-open body { overflow: hidden; }
body { margin: 0; min-height: 100vh; min-height: 100svh; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.4; overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; letter-spacing: .2px; }
input { font: inherit; }
[hidden] { display: none !important; }
.bg-dots { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 12% 8%, rgba(255, 201, 60, .35) 0 90px, transparent 91px), radial-gradient(circle at 92% 22%, rgba(61, 222, 200, .25) 0 70px, transparent 71px), radial-gradient(circle at 80% 92%, rgba(255, 107, 107, .18) 0 110px, transparent 111px),
    radial-gradient(rgba(143, 107, 255, .12) 2px, transparent 2.5px) 0 0 / 26px 26px; }

/* demobar */
.demobar { position: sticky; top: 0; z-index: 30; display: flex; gap: 6px; align-items: center; padding: 6px 10px; background: #2b2140; color: #fff; overflow-x: auto; scrollbar-width: none; font-size: 13px; }
.demobar::-webkit-scrollbar { display: none; }
.demolab { font-family: var(--head); font-weight: 600; color: var(--sun); white-space: nowrap; margin-right: 2px; }
.demohint { opacity: .75; white-space: nowrap; }
.demobtn { border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; padding: 5px 10px; white-space: nowrap; font-weight: 700; font-size: 13px; }
.demobtn small { opacity: .7; font-weight: 600; }
.demobtn.on { background: var(--sun); color: #2b2140; }

/* logo – merket er en knapp som åpner «Legg til på hjemskjermen» */
.mark-btn { border: 0; background: none; padding: 0; margin: 0; display: inline-flex; flex: none; border-radius: 12px; cursor: pointer; }
.mark-btn:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.mark-btn:active .mark { transform: scale(.94); }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 600; font-size: 20px; }
.logo .mark { width: 34px; height: auto; aspect-ratio: 32 / 39; display: block; flex: none; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .12)); }
.logo .word em { font-style: normal; color: var(--teal-d); }
.logo .kids { background: var(--coral); color: #fff; border-radius: 999px; padding: 1px 10px 2px; font-size: .8em; transform: rotate(-6deg); box-shadow: 0 3px 0 #d94b4b; }
.logo.big { flex-direction: column; gap: 6px; font-size: 40px; }
.logo.big .mark { width: 116px; height: auto; animation: bob 3s ease-in-out infinite; }
.logo.big .kids { font-size: 26px; margin-top: -6px; }
.logo .kidsw { font-style: normal; color: var(--coral); }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-3deg); } }

/* knapper */
.btn { border: 0; border-radius: 999px; padding: 12px 18px; font-family: var(--head); font-weight: 600; font-size: 17px; background: #f3ecff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 4px 0 rgba(43, 33, 64, .12); transition: transform .08s; }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 rgba(43, 33, 64, .12); }
.btn.big { width: 100%; padding: 16px 20px; font-size: 20px; margin-top: 10px; }
.btn.sm { padding: 8px 14px; font-size: 15px; }
.btn.primary { background: var(--purple); color: #fff; box-shadow: 0 5px 0 #6a47d9; }
.btn.ok { background: var(--green); color: #fff; box-shadow: 0 4px 0 #1f9a53; }
.btn.soft { background: #fff0d0; box-shadow: 0 4px 0 #f0d79f; }
.btn.danger { background: #ffe1e1; color: #c23b3b; box-shadow: 0 4px 0 #f3b9b9; }
.btn.danger.armed, .btn.primary.armed { background: var(--coral); color: #fff; box-shadow: 0 5px 0 #c94444; }
.btn.ghost { background: transparent; box-shadow: none; color: var(--muted); }
.iconbtn { border: 0; background: #f3ecff; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; font-weight: 800; flex: none; }
.linkbtn { border: 0; background: none; color: var(--purple); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; padding: 12px; font-size: 16px; }

/* velkomst / oppsett */
.view { padding: 14px 14px 110px; }
.welcome, .setup, .kid-unlinked { max-width: 560px; margin: 0 auto; text-align: center; padding-top: 18px; }
.lead { font-size: 18px; color: var(--muted); margin: 14px auto 22px; max-width: 460px; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bigchoice { border: 0; border-radius: 28px; padding: 22px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: var(--shadow); }
.bigchoice.parent { background: #e6fbf7; } .bigchoice.child { background: #fff0f6; }
.bc-ico { font-size: 54px; } .bigchoice b { font-family: var(--head); font-size: 21px; font-weight: 600; } .bigchoice small { color: var(--muted); }
.setup { text-align: left; } .setup .logo { margin-bottom: 8px; } .setup h2 { font-size: 26px; margin: 8px 0 6px; }
.steps { display: flex; gap: 8px; margin: 8px 0 10px; } .steps span { width: 30px; height: 30px; border-radius: 50%; background: #efe4d3; display: grid; place-items: center; font-family: var(--head); font-weight: 600; color: var(--muted); }
.steps span.on { background: var(--sun); color: var(--ink); }
.fld { display: block; margin: 12px 0; } .fld > span { display: block; font-weight: 800; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.fld input { width: 100%; border: 3px solid var(--line); background: #fff; border-radius: 16px; padding: 12px 14px; font-size: 18px; font-weight: 700; color: var(--ink); outline: none; }
.fld input:focus { border-color: var(--purple); }
.kf-row { display: grid; grid-template-columns: 1fr 96px; gap: 10px; } .kf-row .fld { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { border: 0; background: #fff; border-radius: 999px; padding: 8px 12px; font-weight: 800; box-shadow: 0 3px 0 var(--line); font-size: 14px; }
.emogrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.emo { border: 3px solid transparent; background: #fff; border-radius: 16px; font-size: 26px; height: 50px; box-shadow: 0 3px 0 var(--line); }
.emo.on { border-color: var(--purple); background: #f3ecff; }
.seg { display: flex; gap: 6px; background: #f6ecdd; border-radius: 999px; padding: 4px; }
.seg.wrap { flex-wrap: wrap; border-radius: 22px; }
.seg.wide { margin: 0 0 12px; }
.segb { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 10px 10px; font-weight: 800; font-size: 15px; white-space: nowrap; }
.segb.on { background: #fff; box-shadow: 0 3px 0 rgba(43, 33, 64, .1); color: var(--purple); }
.kidlist-mini { display: grid; gap: 8px; } .kmini { background: #fff; border-radius: 18px; padding: 8px 12px; display: flex; gap: 8px; align-items: center; border-left: 6px solid var(--kc); }
.paircard { background: #fff; border-radius: var(--r); padding: 14px; margin: 12px 0; box-shadow: var(--shadow); border-top: 6px solid var(--kc); text-align: center; }
.pc-head { display: flex; align-items: center; gap: 8px; font-size: 18px; } .pc-head small { color: var(--muted); } .pc-head .ok { margin-left: auto; }
.qr { width: min(230px, 70vw); margin: 12px auto; background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 0 0 3px var(--line); }
.qr svg, .qr img { display: block; width: 100%; height: auto; }
.qr.big { width: min(330px, 78vw); }
.ok { color: var(--green); font-weight: 900; }
.center { text-align: center; }
.hello { font-family: var(--head); font-size: 30px; font-weight: 600; margin-top: 12px; }
.scanner { margin: 10px auto; text-align: center; } .scanner small { color: var(--muted); }
.sc-frame { position: relative; width: min(260px, 74vw); margin: 0 auto 8px; padding: 18px; border-radius: 28px; background: #2b2140; overflow: hidden; }
.sc-frame .qr { width: 100%; margin: 0; } .qr.dim { opacity: .85; }
.sc-line { position: absolute; left: 10px; right: 10px; top: 20%; height: 4px; border-radius: 4px; background: var(--teal); box-shadow: 0 0 12px var(--teal); animation: scan 2s ease-in-out infinite alternate; }
@keyframes scan { to { top: 80%; } }

/* forelder */
.pwrap { max-width: 600px; margin: 0 auto; }
.phead { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; }
.phead .logo { font-size: 17px; } .logo.mini .mark { width: 42px; height: auto; } .phead .logo .mark { width: 36px; height: auto; }
.ph-t { flex: 1; min-width: 0; } .ph-t h1 { font-size: 24px; } .ph-t small { color: var(--muted); font-weight: 700; display: block; }
.me { background: #fff; border-radius: 999px; padding: 6px 10px; font-weight: 800; font-size: 14px; box-shadow: 0 3px 0 var(--line); white-space: nowrap; }
.back { border: 0; background: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; box-shadow: 0 3px 0 var(--line); flex: none; }
.card { background: var(--card); border-radius: var(--r); padding: 16px; margin: 0 0 14px; box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; } .card-h h2 { font-size: 20px; }
.pill { background: #f3ecff; color: var(--purple); border-radius: 999px; padding: 3px 10px; font-weight: 900; font-size: 14px; white-space: nowrap; }
.pill.warm { background: var(--sun); color: var(--ink); }
.empty { color: var(--muted); text-align: center; padding: 10px 0; margin: 0; font-weight: 700; }
.muted { color: var(--muted); margin: 6px 0; } .muted.small { font-size: 14px; }
.kidcards { display: grid; gap: 12px; margin-bottom: 14px; }
.kidcard { position: relative; border: 0; text-align: left; background: #fff; border-radius: 26px; padding: 14px 16px; box-shadow: var(--shadow); display: grid; grid-template-columns: 62px 1fr auto; grid-template-areas: 'av name saldo' 'goal goal goal' 'tags tags tags'; gap: 6px 12px; align-items: center; border-left: 8px solid var(--kc); }
.av { width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--kc) 22%, #fff); display: grid; place-items: center; font-size: 32px; flex: none; }
.av.sm { width: 34px; height: 34px; font-size: 20px; } .av.xl { width: 84px; height: 84px; font-size: 50px; box-shadow: 0 0 0 5px #fff, 0 6px 0 5px rgba(0, 0, 0, .08); }
.kidcard .av { grid-area: av; }
.kc-name { grid-area: name; font-family: var(--head); font-size: 24px; font-weight: 600; } .kc-name small { display: block; font-family: var(--body); font-size: 13px; color: var(--muted); font-weight: 700; }
.kc-saldo { grid-area: saldo; text-align: right; } .kc-saldo small { display: block; color: var(--muted); font-weight: 800; font-size: 12px; } .kc-saldo b { font-family: var(--head); font-size: 28px; font-weight: 600; white-space: nowrap; }
.kc-goal { grid-area: goal; } .kc-goal small { color: var(--muted); font-weight: 700; font-size: 13px; }
.kc-tags { grid-area: tags; display: flex; gap: 6px; } .kc-tags:empty { display: none; }
.kc-pend, .kc-streak { border-radius: 999px; padding: 3px 10px; font-weight: 900; font-size: 13px; } .kc-pend { background: var(--sun); } .kc-streak { background: #ffe5d6; }
.bar { position: relative; display: block; height: 12px; border-radius: 99px; background: #f3e8d8; overflow: visible; margin: 4px 0; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--sun)); min-width: 12px; }
.bar.big { height: 18px; } .bar.huge { height: 30px; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .06); }
.bar.huge i { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .25) 0 10px, transparent 10px 20px), linear-gradient(90deg, var(--teal), var(--sun)); }
.pgroup + .pgroup { margin-top: 10px; border-top: 2px dashed var(--line); padding-top: 10px; }
.pg-h { display: flex; justify-content: space-between; align-items: center; font-weight: 900; margin-bottom: 4px; gap: 8px; }
.prow, .trow, .lrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 2px solid #faf2e6; width: 100%; }
.prow:last-child, .trow:last-child, .lrow:last-child { border-bottom: 0; }
.trow.tap { border: 0; border-bottom: 2px solid #faf2e6; background: none; text-align: left; padding: 10px 0; }
.t-emo { font-size: 26px; width: 44px; height: 44px; border-radius: 14px; background: #fff6e4; display: grid; place-items: center; flex: none; }
.pr-t, .tr-t { flex: 1; min-width: 0; display: block; } .pr-t b, .tr-t b { display: block; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-t small, .tr-t small { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.prow { flex-wrap: wrap; } .pr-b { display: flex; gap: 6px; align-items: center; }
@media (max-width: 480px) { .pr-b { width: 100%; padding-left: 54px; } .pr-b .btn { flex: 1; } } .pr-b .iconbtn { width: 36px; height: 36px; font-size: 14px; background: #ffe9e9; color: #c23b3b; }
.amt { font-family: var(--head); font-weight: 600; font-size: 18px; white-space: nowrap; }
.who { font-size: 16px; white-space: nowrap; } .chev { color: var(--muted); font-size: 22px; }
.lrow.plus .amt { color: var(--green); } .lrow.utbetalt .amt { color: var(--orange); } .lrow.spart .amt { color: var(--teal-d); } .lrow.mal .amt { color: var(--coral); }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.saldo-card { text-align: center; border-top: 8px solid var(--kc); } .saldo-card small { color: var(--muted); font-weight: 800; }
.big-num { font-family: var(--head); font-weight: 700; font-size: 54px; line-height: 1.05; margin: 4px 0; }
.row2 { display: flex; justify-content: space-around; gap: 10px; color: var(--muted); font-weight: 700; font-size: 14px; flex-wrap: wrap; } .row2 b { color: var(--ink); }
.goalrow { display: flex; gap: 12px; align-items: center; } .gr-t { flex: 1; min-width: 0; } .goalrow small { color: var(--muted); font-weight: 700; font-size: 13px; }
.goal-emo { font-size: 40px; width: 64px; height: 64px; border-radius: 20px; background: #fff3d1; display: grid; place-items: center; flex: none; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.bdg { display: inline-flex; align-items: center; gap: 5px; background: #f3efe9; color: #b3a99c; border-radius: 999px; padding: 5px 11px 5px 6px; font-weight: 800; font-size: 13px; filter: grayscale(1); opacity: .7; }
.bdg i { font-style: normal; font-size: 20px; } .bdg.on { background: #fff3c4; color: var(--ink); filter: none; opacity: 1; box-shadow: 0 3px 0 #f1d77a; }
.bdg.big { font-size: 17px; padding: 8px 16px 8px 10px; } .bdg.big i { font-size: 30px; }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 800; } .toggle input { width: 26px; height: 26px; accent-color: var(--purple); }
.danger-zone { border: 3px dashed #f3c0c0; box-shadow: none; }
.foot { text-align: center; color: var(--muted); font-size: 13px; }
.ov-nav { display: flex; align-items: center; justify-content: space-between; } .ov-nav h2 { font-size: 22px; text-align: center; } .ov-nav h2 small { font-family: var(--body); font-size: 14px; color: var(--muted); display: block; }
.ov-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; text-align: center; }
.ov-sum div { background: #fff8ec; border-radius: 16px; padding: 8px 4px; } .ov-sum small { display: block; color: var(--muted); font-weight: 800; font-size: 12px; } .ov-sum b { font-family: var(--head); font-size: 22px; font-weight: 600; }
.bars { display: flex; gap: 6px; align-items: flex-end; height: 170px; padding-top: 8px; }
.bcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.bv { font-weight: 900; font-size: 12px; height: 16px; } .bb { flex: 1; width: 100%; max-width: 46px; display: flex; align-items: flex-end; background: #faf2e6; border-radius: 12px; }
.bb i { display: block; width: 100%; background: var(--purple); border-radius: 12px; min-height: 0; }
.bcol.hi .bb i { background: var(--coral); } .bl { font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; }

/* tabbar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; gap: 2px; background: #fff; padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(43, 33, 64, .1); border-radius: 26px 26px 0 0; }
.tab { position: relative; flex: 1; max-width: 120px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 18px; }
.tab .ti { font-size: 24px; } .tab .tl { font-size: 11px; font-weight: 900; color: var(--muted); }
.tab.on { background: #f3ecff; } .tab.on .tl { color: var(--purple); }
.badge-n { position: absolute; top: 2px; right: calc(50% - 26px); background: var(--coral); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; font-size: 12px; font-weight: 900; display: grid; place-items: center; padding: 0 5px; }

/* ark */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(43, 33, 64, .45); }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--bg); border-radius: 30px 30px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); animation: up .22s ease-out; }
.sheet h2 { font-size: 24px; margin-bottom: 6px; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 30px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; } .sheet-actions .btn:not(.big) { width: 100%; }
.stepper { display: flex; align-items: center; gap: 8px; } .stepper input { width: 110px; text-align: center; font-family: var(--head); font-size: 28px; font-weight: 600; }
.stp { border: 0; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--sun); font-size: 26px; font-weight: 900; box-shadow: 0 4px 0 #e0a91c; line-height: 1; padding: 0; }
.stp:active { transform: translateY(3px); box-shadow: 0 1px 0 #e0a91c; }
.unit { font-family: var(--head); font-size: 22px; font-weight: 600; }
.kidqr { text-align: center; } .kidqr p { font-weight: 800; font-size: 18px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 30px); background: #2b2140; color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 800; opacity: 0; transition: .25s; z-index: 60; pointer-events: none; max-width: 92vw; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
#confetti { position: fixed; inset: 0; z-index: 55; pointer-events: none; display: none; width: 100vw; height: 100vh; } #confetti.on { display: block; }

/* ===== BARN ===== */
body.is-kid { background: linear-gradient(180deg, #fff1d6 0%, #ffe6ef 100%); }
html:has(body.is-kid) { background: #ffe6ef; }
body.is-kid .view { padding: 14px 16px 40px; }
.kwrap { max-width: 1120px; margin: 0 auto; }
.khead { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
.khead .av { background: color-mix(in srgb, var(--kc) 30%, #fff); }
.kh-t { flex: 1; } .kh-t small { font-weight: 800; color: var(--muted); font-size: 18px; } .kh-t h1 { font-size: 40px; line-height: 1; }
.khead .logo { font-size: 15px; opacity: .9; } .khead .logo .mark { width: 36px; height: auto; }
.kgrid { display: grid; gap: 16px; }
.kcol-a, .kcol-b { display: grid; gap: 16px; align-content: start; min-width: 0; }
.kcard { background: #fff; border-radius: 30px; padding: 20px; box-shadow: 0 8px 0 rgba(43, 33, 64, .08), 0 14px 30px rgba(43, 33, 64, .08); min-width: 0; }
.kcard > small { font-weight: 900; color: var(--muted); font-size: 16px; text-transform: uppercase; letter-spacing: .6px; }
.kcard.saldo { text-align: center; background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--kc) 35%, #fff) 0, #fff 70%); border: 4px solid color-mix(in srgb, var(--kc) 40%, #fff); }
.mega { font-family: var(--head); font-weight: 700; font-size: 96px; line-height: 1; color: var(--ink); margin: 6px 0; text-shadow: 0 5px 0 color-mix(in srgb, var(--kc) 35%, #fff); }
.mega span { font-size: .38em; margin-left: 6px; color: var(--muted); text-shadow: none; }
.kweek { font-weight: 800; font-size: 18px; color: var(--muted); } .kweek b { color: var(--green); }
.kid-qr { margin-top: 14px; background: var(--sun); box-shadow: 0 5px 0 #e0a91c; font-size: 20px; padding: 14px 22px; }
.kid-qr .n { background: var(--coral); color: #fff; border-radius: 999px; padding: 0 9px; font-size: 16px; }
.kgoal { display: flex; align-items: center; gap: 16px; margin-top: 8px; } .kg-t { flex: 1; min-width: 0; }
.kgoal b { font-family: var(--head); font-size: 24px; font-weight: 600; }
.goal-emo.xl { width: 92px; height: 92px; font-size: 60px; border-radius: 28px; }
.kgoal-n { font-weight: 800; color: var(--muted); font-size: 18px; } .kgoal-n b { color: var(--ink); font-size: 26px; }
.kgoal-left { font-weight: 800; color: var(--muted); } .yay { color: var(--coral); font-weight: 900; }
.st-top { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; } .flame { font-size: 40px; } .st-n { font-family: var(--head); font-size: 40px; font-weight: 700; color: var(--orange); }
.weekstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 12px 0 14px; }
.wd { display: flex; flex-direction: column; align-items: center; font-weight: 900; font-size: 13px; color: var(--muted); }
.wd i { font-style: normal; width: 100%; aspect-ratio: 1; max-width: 52px; border-radius: 16px; background: #f6efe5; display: grid; place-items: center; font-size: 24px; margin-bottom: 3px; }
.wd.got i { background: #fff3c4; box-shadow: 0 3px 0 #f1d77a; } .wd.today i { outline: 3px solid var(--purple); } .wd.fut { opacity: .45; }
.kcard.tasks h2 { font-size: 28px; margin-bottom: 12px; }
.ktasks { display: grid; gap: 12px; }
.ktask { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 24px; background: #fffaf2; border: 3px solid #f6e9d6; min-width: 0; }
.kt-emo { font-size: 40px; width: 66px; height: 66px; border-radius: 20px; background: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 3px 0 #f1e3cf; }
.kt-t { flex: 1; min-width: 0; } .kt-t b { display: block; font-family: var(--head); font-size: 21px; font-weight: 600; line-height: 1.15; }
.kt-amt { display: inline-block; font-family: var(--head); font-weight: 600; font-size: 18px; color: var(--teal-d); margin-top: 2px; }
.dots { display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: middle; } .dots i { width: 12px; height: 12px; border-radius: 50%; background: #eadfce; } .dots i.ok { background: var(--green); } .dots i.w { background: var(--sun); }
.kt-wait, .kt-done { display: block; font-weight: 900; font-size: 14px; margin-top: 4px; } .kt-wait { color: #b67a00; } .kt-done { color: var(--green); }
.ktask.waiting { background: #fff8de; border-color: #ffe08a; } .ktask.done { opacity: .7; }
.btn.ferdig { flex: none; background: var(--green); color: #fff; font-size: 22px; padding: 16px 22px; min-height: 64px; min-width: 120px; box-shadow: 0 6px 0 #1f9a53; border-radius: 24px; }
.ktask.pop { animation: pop .26s ease-out; } @keyframes pop { 50% { transform: scale(1.04); } }
/* feiring */
.celebrate { position: fixed; inset: 0; z-index: 50; background: rgba(43, 33, 64, .5); display: grid; place-items: center; padding: 16px; }
.cel-card { background: #fff; border-radius: 36px; padding: 26px 22px; width: min(480px, 100%); text-align: center; box-shadow: 0 12px 0 rgba(0, 0, 0, .12); animation: celin .45s cubic-bezier(.2, 1.6, .4, 1); max-height: 92vh; overflow-y: auto; }
.cel-card.goal { background: linear-gradient(180deg, #fff6cf, #fff); }
.cel-star { font-size: 96px; line-height: 1; animation: spin 1.2s ease-out; } .cel-card h2 { font-size: 32px; margin: 8px 0; } .cel-amt { color: var(--green); }
.cel-sub { font-weight: 800; color: var(--muted); font-size: 18px; margin: 0; }
.cel-list { list-style: none; padding: 0; margin: 10px 0; text-align: left; } .cel-list li { background: #fffaf2; border-radius: 16px; padding: 8px 12px; margin: 6px 0; font-weight: 800; font-size: 17px; } .cel-list small { color: var(--muted); font-weight: 700; }
.cel-badges { margin: 12px 0; } .cel-badges > small { display: block; font-weight: 900; color: var(--coral); text-transform: uppercase; margin-bottom: 6px; } .cel-badges div { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@keyframes celin { from { transform: scale(.6); opacity: 0; } } @keyframes spin { from { transform: rotate(-200deg) scale(.3); } }
.kidsheet { text-align: center; }

/* mobil barn: litt mindre */
@media (max-width: 480px) {
  .mega { font-size: 78px; } .kh-t h1 { font-size: 32px; } .av.xl { width: 66px; height: 66px; font-size: 40px; }
  .khead .logo .word, .khead .logo .kids { display: none; }
  .kcard { padding: 16px; border-radius: 26px; }
  .goal-emo.xl { width: 70px; height: 70px; font-size: 44px; }
  .kt-emo { width: 52px; height: 52px; font-size: 32px; } .kt-t b { font-size: 18px; }
  .btn.ferdig { min-width: 0; padding: 12px 14px; font-size: 18px; min-height: 56px; }
  .ktask { padding: 10px; gap: 10px; }
  .wd i { font-size: 18px; border-radius: 12px; }
  .bdg { font-size: 12px; }
  body.is-welcome .logo.big { font-size: 32px; } body.is-welcome .logo.big .mark { width: 84px; height: auto; }
}
/* iPad stående og opp: to kolonner kort øverst */
@media (min-width: 700px) {
  .kcol-a { grid-template-columns: 1fr 1fr; } .kcard.streak { grid-column: 1 / -1; }
  .ktasks { grid-template-columns: 1fr 1fr; } .ktask { flex-wrap: wrap; } .ktask .btn.ferdig { width: 100%; }
  .kh-t h1 { font-size: 48px; }
}
/* liggende iPad / laptop: venstre kolonne status, høyre oppgaver */
@media (min-width: 1000px) and (orientation: landscape), (min-width: 1100px) {
  .kgrid { grid-template-columns: 400px 1fr; align-items: start; }
  .kcol-a { grid-template-columns: 1fr; } .kcard.streak { grid-column: auto; }
  .mega { font-size: 104px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===== synk ===== */
.demobar.syncbar { background: #12403a; }
.demobar.syncbar .demolab { color: #6ff0dc; }
.demobar.syncbar.offline { background: #5a2a2a; } .demobar.syncbar.offline .demolab { color: #ffb4a8; }
.syncwho { margin-left: auto; white-space: nowrap; font-weight: 800; opacity: .9; }
.waiting { font-weight: 800; color: #b67a00; margin: 4px 0 8px; }
.linkbtn.small { font-size: 14px; color: var(--muted); }
.kfoot { text-align: center; margin: 18px 0 0; }
.cam { position: relative; width: min(320px, 82vw); aspect-ratio: 1; margin: 10px auto; border-radius: 28px; background: #2b2140; overflow: hidden; display: grid; place-items: center; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.cam.live video { opacity: 1; }
.cam-frame { position: absolute; inset: 16%; border: 4px solid var(--teal); border-radius: 22px; box-shadow: 0 0 0 999px rgba(43, 33, 64, .35); }
.cam-msg { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; text-align: center; color: #fff; font-weight: 800; font-size: 14px; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); padding: 0 10px; }
.cam.off .cam-frame { border-style: dashed; opacity: .5; }

/* ===== Kommer snart: dings ===== */
.dings-card { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; text-align: left; background: linear-gradient(135deg, #fff 0%, #f1ebff 100%); border: 3px dashed #d8c9ff; }
.dc-ill { flex: none; width: 84px; display: grid; place-items: center; }
.dc-t { flex: 1; min-width: 0; display: block; } .dc-t b { display: block; font-family: var(--head); font-size: 19px; font-weight: 600; } .dc-t small { color: var(--muted); font-weight: 700; }
.soon { display: inline-block; background: var(--coral); color: #fff; border-radius: 999px; padding: 2px 10px; font-family: var(--head); font-weight: 600; font-size: 12px; letter-spacing: .4px; transform: rotate(-3deg); margin-bottom: 3px; }
.soon.big { font-size: 15px; padding: 4px 14px; }
.dings h2 { margin: 4px 0 10px; }
.dings-txt { font-weight: 800; font-size: 17px; margin: 14px 0 6px; }
.dings-pts { margin: 6px 0 4px; padding-left: 0; list-style: none; color: var(--muted); font-weight: 700; } .dings-pts li { margin: 4px 0; }
/* rommet */
.room { position: relative; height: 300px; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, #ffe9c9 0%, #ffdcb6 100%); box-shadow: inset 0 0 0 3px #f2d2a8; }
.wall { position: absolute; inset: 0 0 92px 0; background: radial-gradient(rgba(255, 255, 255, .55) 2px, transparent 2.5px) 0 0 / 22px 22px; }
.garland { position: absolute; left: 4%; right: 4%; top: 10px; display: flex; justify-content: space-between; }
.garland::before { content: ''; position: absolute; left: 0; right: 0; top: 2px; height: 20px; border-bottom: 2px solid #c79a6b; border-radius: 0 0 50% 50%; }
.garland i { width: 18px; height: 22px; background: var(--c); clip-path: polygon(0 0, 100% 0, 50% 100%); margin-top: calc(6px + 6px * var(--o, 0)); }
.garland i:nth-child(2), .garland i:nth-child(6) { --o: 1.6; } .garland i:nth-child(3), .garland i:nth-child(5) { --o: 2.6; } .garland i:nth-child(4) { --o: 3; }
.poster { position: absolute; left: 7%; top: 50px; width: 74px; transform: rotate(-4deg); filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .08)); }
.window { position: absolute; right: 7%; top: 44px; width: 96px; height: 110px; border-radius: 48px 48px 10px 10px; background: linear-gradient(180deg, #8fd8ff, #c9f0ff); border: 6px solid #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .06); }
.window i { position: absolute; left: 18px; top: 22px; width: 26px; height: 26px; border-radius: 50%; background: #ffe066; box-shadow: 38px 30px 0 -6px #fff, 50px 28px 0 -4px #fff; }
.shelf { position: absolute; left: 0; right: 0; bottom: 30px; height: 150px; display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding: 0 14px; }
.shelf-edge { position: absolute; left: 0; right: 0; bottom: 0; height: 32px; background: linear-gradient(180deg, #d79c62 0 10px, #b97c43 10px); box-shadow: 0 -2px 0 #e9b37c inset; }
.books { width: 62px; flex: none; } .plant { width: 56px; flex: none; }
.lego { display: flex; gap: 2px; flex: none; } .lego i { width: 22px; height: 16px; background: #ff6b6b; border-radius: 3px; position: relative; } .lego i:last-child { background: #ffc93c; height: 24px; }
.lego i::before { content: ''; position: absolute; left: 4px; top: -5px; width: 6px; height: 5px; border-radius: 2px 2px 0 0; background: inherit; box-shadow: 8px 0 0 0 currentColor; color: inherit; }
/* selve dingsen: 3D-printet hus (lag-linjer), skjerm, fot */
.dev { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; }
.dev-body { position: relative; width: 190px; height: 132px; border-radius: 30px; padding: 12px 12px 22px; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 3px), linear-gradient(160deg, #5ff0da 0%, #2fc5b0 100%); box-shadow: 0 8px 0 #1e9886, 0 14px 22px rgba(43, 33, 64, .25), inset 0 2px 0 rgba(255, 255, 255, .5); }
.dev-screen { position: relative; height: 100%; border-radius: 16px; background: #18122b; color: #fff; overflow: hidden; box-shadow: inset 0 0 0 3px #0c0817, inset 0 0 18px rgba(61, 222, 200, .25); font-family: var(--head); padding: 6px 9px; }
.dev-led { position: absolute; bottom: 7px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #ff9a1f; box-shadow: 0 0 6px #ff9a1f; animation: led 3s ease-in-out infinite; }
@keyframes led { 50% { opacity: .35; } }
.dev-mark { position: absolute; bottom: 4px; right: 12px; width: 14px; height: 14px; } .dev-mark svg { width: 100%; height: 100%; display: block; }
.dev-stand { width: 120px; height: 16px; margin-top: 4px; border-radius: 0 0 14px 14px; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .06) 0 1px, transparent 1px 3px), #26b39f; }
.ds-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; opacity: .9; }
.ds-pend { background: #ffc93c; color: #2b2140; border-radius: 999px; padding: 0 6px; font-size: 11px; }
.ds-clock { opacity: .6; }
.ds-panels { position: relative; height: calc(100% - 18px); }
.ds-p { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; animation: dsA 8s infinite; }
.ds-goal { animation-name: dsB; }
@keyframes dsA { 0%, 44% { opacity: 1; transform: none; } 50%, 94% { opacity: 0; transform: translateY(-8px); } 100% { opacity: 1; } }
@keyframes dsB { 0%, 44% { opacity: 0; transform: translateY(8px); } 50%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ds-saldo { flex-direction: row; flex-wrap: wrap; align-content: center; column-gap: 4px; row-gap: 0; }
.ds-saldo b { font-size: 46px; line-height: 1; color: #ffe066; text-shadow: 0 0 12px rgba(255, 224, 102, .45); }
.ds-saldo span { font-size: 16px; opacity: .8; align-self: flex-end; margin-bottom: 6px; }
.ds-saldo small { width: 100%; text-align: center; font-size: 11px; color: #6ff0dc; font-family: var(--body); font-weight: 800; }
.ds-goal > div { flex: 1; min-width: 0; } .ds-goal small { display: block; font-size: 11px; font-family: var(--body); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-ge { font-size: 34px; }
.ds-bar { display: block; height: 10px; border-radius: 6px; background: #3a3058; margin: 4px 0; overflow: hidden; } .ds-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3ddec8, #ffc93c); border-radius: 6px; }
.ds-star { position: absolute; right: 8px; top: 20px; font-size: 26px; animation: starpop 1.4s ease-out 2; }
.ds-plus { position: absolute; right: 6px; top: 52px; font-size: 12px; color: #6ff0dc; font-weight: 700; background: rgba(20,14,40,.85); padding: 1px 6px; border-radius: 8px; animation: plusup 1.6s ease-out forwards; }
.dev-screen.blink { animation: scrblink .5s ease-in-out 4; }
.dev-screen.blink .ds-p { animation: none; } .dev-screen.blink .ds-goal { opacity: 0; } .dev-screen.blink .ds-saldo { opacity: 1; }
@keyframes starpop { 0% { transform: scale(0) rotate(-90deg); } 40% { transform: scale(1.4) rotate(10deg); } 100% { transform: scale(1); } }
@keyframes plusup { from { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; } 70% { opacity: 1; } to { opacity: 0; transform: translateY(-18px); } }
@keyframes scrblink { 50% { box-shadow: inset 0 0 0 3px #ffe066, inset 0 0 30px rgba(255, 224, 102, .5); } }
.dev.mini .dev-body { width: 78px; height: 56px; border-radius: 14px; padding: 6px 6px 10px; box-shadow: 0 4px 0 #1e9886, 0 6px 10px rgba(43, 33, 64, .2); }
.dev.mini .dev-screen { border-radius: 8px; padding: 3px 5px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; }
.dev.mini .ms-n { font-size: 20px; color: #ffe066; line-height: 1.1; } .dev.mini .ms-k { font-size: 9px; margin-left: 2px; }
.dev.mini .ms-bar { width: 100%; height: 4px; background: #3a3058; border-radius: 3px; overflow: hidden; } .dev.mini .ms-bar i { display: block; width: 60%; height: 100%; background: #3ddec8; }
.dev.mini .dev-led { width: 4px; height: 4px; bottom: 3px; margin-left: -2px; } .dev.mini .dev-mark { display: none; }
.dev.mini .dev-stand { width: 50px; height: 7px; margin-top: 2px; }
@media (min-width: 700px) { .room { height: 330px; } .dev-body { width: 220px; height: 150px; } .ds-saldo b { font-size: 54px; } }

/* «Legg til på hjemskjermen» (js/install.js) – samme oppskrift som Spareflyt, i Kids-drakt */
.a2hs-card { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 520px; margin: 14px auto 4px; padding: 12px 14px; border: 3px dashed #ffd27a; border-radius: 22px; background: #fffaf0; text-align: left; color: var(--ink); }
.a2hs-card .a2-ico { font-size: 30px; flex: none; } .a2hs-card b { display: block; font-family: var(--head); font-weight: 600; font-size: 17px; } .a2hs-card small { display: block; color: var(--muted); font-weight: 700; font-size: 14px; }
html.ins-open, html.ins-open body { overflow: hidden; }
.ins { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.ins[hidden] { display: none !important; }
.ins-bd { position: absolute; inset: 0; background: rgba(43, 33, 64, .45); opacity: 0; transition: opacity .18s; }
.ins-sheet { position: relative; width: 100%; max-width: 520px; max-height: 92vh; max-height: min(92dvh, 760px); overflow-y: auto; overscroll-behavior: contain; outline: none; background: var(--bg); border-radius: 30px 30px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(40px); opacity: 0; transition: transform .22s ease-out, opacity .18s; }
.ins.on .ins-bd { opacity: 1; } .ins.on .ins-sheet { transform: none; opacity: 1; }
.ins-grip { width: 44px; height: 5px; margin: 2px auto 10px; background: #ead9c0; border-radius: 9px; }
.ins-head { display: flex; align-items: center; gap: 12px; }
.ins-app { width: 52px; height: 52px; border-radius: 13px; flex: none; box-shadow: 0 4px 0 rgba(43, 33, 64, .12); }
.ins-head h2 { flex: 1; font-size: 23px; line-height: 1.15; }
.ins-x { flex: none; width: 44px; height: 44px; border: 0; background: #fff; border-radius: 50%; font-size: 26px; line-height: 1; box-shadow: 0 3px 0 var(--line); }
.ins-lead { margin: 10px 0 12px; color: var(--muted); font-weight: 700; }
.ins-done { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 14px; border-radius: 20px; background: #e6fbf6; }
.ins-ok { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 900; border-radius: 50%; }
.ins-go { width: 100%; min-height: 54px; margin: 0 0 12px; border: 0; border-radius: 999px; background: var(--purple); color: #fff; font-family: var(--head); font-weight: 600; font-size: 19px; box-shadow: 0 5px 0 #6a47d9; }
.ins-tabs { display: flex; gap: 4px; padding: 4px; background: #fff; border-radius: 999px; box-shadow: 0 3px 0 var(--line); }
.ins-tabs button { flex: 1; min-height: 42px; padding: 0 6px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 800; font-size: 14px; white-space: nowrap; }
.ins-tabs button.on { background: var(--purple); color: #fff; }
.ins-tabs button:focus-visible, .ins-panel:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.ins-panel { margin-top: 14px; outline: none; }
.ins-pt { font-size: 17px; color: var(--teal-d); margin-bottom: 10px; }
.ins-steps { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.ins-steps li { counter-increment: s; position: relative; padding: 10px 12px 10px 52px; min-height: 44px; background: #fff; border-radius: 18px; box-shadow: 0 3px 0 var(--line); font-weight: 600; line-height: 1.4; }
.ins-steps li::before { content: counter(s); position: absolute; left: 10px; top: 9px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); font-family: var(--head); font-weight: 600; box-shadow: 0 2px 0 #e0a91c; }
.ins-steps b { color: var(--purple); }
.ins-ic { display: inline-block; vertical-align: -3px; color: #2f7bff; }
.ins-dots { display: inline-block; min-width: 14px; text-align: center; color: var(--purple); font-weight: 900; }
.ins-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 18px; background: #fff0d0; font-size: 14px; font-weight: 600; line-height: 1.45; }
.ins-close { display: block; width: 100%; min-height: 50px; margin-top: 14px; border: 0; border-radius: 999px; background: #f3ecff; font-family: var(--head); font-weight: 600; font-size: 17px; box-shadow: 0 4px 0 rgba(43, 33, 64, .12); }
@media (min-width: 700px) { .ins { align-items: center; } .ins-sheet { border-radius: 30px; padding-bottom: 18px; } }
@media (prefers-reduced-motion: reduce) { .ins-bd, .ins-sheet { transition: none; } }
.ins-sheet button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* velkomst: én skjermhøyde uten scroll (tabbar er skjult, derfor ikke 110px bunn) */
body.is-welcome { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body.is-welcome .view { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 8px 14px calc(12px + env(safe-area-inset-bottom)); }
body.is-welcome .welcome { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 4px; min-height: 0; }
body.is-welcome .welcome .lead { margin: 10px auto 14px; }
body.is-welcome .bigchoice { padding: 16px 10px; }
.intro-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; align-self: center; margin: 10px auto 0; padding: 8px 16px; border: 0; border-radius: 999px; background: #e6fbf7; color: var(--teal-d); font-family: var(--head); font-weight: 600; font-size: 16px; text-decoration: none; box-shadow: 0 3px 0 #b7ebe3; }
.intro-link:active { transform: translateY(2px); box-shadow: 0 1px 0 #b7ebe3; }
.intro-link:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
@media (max-height: 860px) {
  body.is-welcome .welcome { padding-top: 0; }
  body.is-welcome .logo.big { font-size: 30px; gap: 4px; }
  body.is-welcome .logo.big .mark { width: 80px; }
  body.is-welcome .logo.big .kids { font-size: 20px; margin-top: -4px; }
  body.is-welcome .welcome .lead { font-size: 16px; margin: 8px auto 12px; }
  body.is-welcome .bigchoice { padding: 14px 8px; gap: 2px; }
  body.is-welcome .bc-ico { font-size: 42px; }
  body.is-welcome .bigchoice b { font-size: 18px; }
  body.is-welcome .a2hs-card { margin: 10px auto 2px; padding: 10px 12px; }
}
@media (max-height: 720px) {
  body.is-welcome .view { padding: 6px 12px calc(8px + env(safe-area-inset-bottom)); }
  body.is-welcome .logo.big { font-size: 26px; gap: 2px; }
  body.is-welcome .logo.big .mark { width: 64px; }
  body.is-welcome .logo.big .kids { font-size: 16px; margin-top: -2px; }
  body.is-welcome .welcome .lead { font-size: 15px; margin: 6px auto 8px; line-height: 1.35; }
  body.is-welcome .who { gap: 10px; }
  body.is-welcome .bigchoice { padding: 10px 6px; border-radius: 22px; }
  body.is-welcome .bc-ico { font-size: 34px; }
  body.is-welcome .bigchoice b { font-size: 16px; }
  body.is-welcome .bigchoice small { font-size: 12px; }
  body.is-welcome .muted.small { margin: 6px 0 0; font-size: 13px; }
  body.is-welcome .intro-link { margin-top: 8px; padding: 6px 14px; font-size: 15px; }
  body.is-welcome .a2hs-card { margin: 8px auto 0; padding: 8px 10px; gap: 8px; }
  body.is-welcome .a2hs-card .a2-ico { font-size: 24px; }
  body.is-welcome .a2hs-card b { font-size: 15px; }
  body.is-welcome .a2hs-card small { font-size: 12px; }
  body.is-welcome .welcome .linkbtn { padding: 8px; font-size: 14px; }
}
@media (max-width: 480px) and (min-height: 721px) {
  body.is-welcome .bigchoice { padding: 14px 8px; }
  body.is-welcome .bc-ico { font-size: 40px; }
  body.is-welcome .bigchoice b { font-size: 17px; }
  body.is-welcome .welcome .lead { font-size: 16px; }
}

/* ===== v2-lite (23. nov 2026): pyntebakgrunn øverst i barnevisningen + stiligere fremdriftslinje. Kun CSS, ingen funksjonsendring. ===== */
.kwrap { position: relative; isolation: isolate; }
.kwrap::before, .kwrap::after { content: ""; position: absolute; z-index: -1; pointer-events: none; top: -14px; left: 50%; width: 100vw; height: 620px; transform: translateX(-50%); }
/* myke sirkler i barnets farge og sol-gul */
.kwrap::before { background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--kc) 30%, transparent) 0 170px, transparent 171px),
    radial-gradient(circle at 100% 34%, color-mix(in srgb, var(--sun) 34%, transparent) 0 115px, transparent 116px),
    radial-gradient(circle at 58% 4%, color-mix(in srgb, var(--kc) 12%, transparent) 0 46px, transparent 47px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
/* små stjerner/gnister i barnets farge, toner ut nedover */
.kwrap::after { background: color-mix(in srgb, var(--kc) 45%, transparent); opacity: .55;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%23000' opacity='.5'%3E%3Cpath d='M30 14l4 10 10 4-10 4-4 10-4-10-10-4 10-4z'/%3E%3Cpath d='M90 74l3 7 7 3-7 3-3 7-3-7-7-3 7-3z'/%3E%3Ccircle cx='95' cy='25' r='3'/%3E%3Ccircle cx='20' cy='95' r='2.5'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(#000 35%, transparent 95%);
  -webkit-mask-size: 120px 120px, 100% 100%; -webkit-mask-repeat: repeat, no-repeat; -webkit-mask-composite: source-in;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%23000' opacity='.5'%3E%3Cpath d='M30 14l4 10 10 4-10 4-4 10-4-10-10-4 10-4z'/%3E%3Cpath d='M90 74l3 7 7 3-7 3-3 7-3-7-7-3 7-3z'/%3E%3Ccircle cx='95' cy='25' r='3'/%3E%3Ccircle cx='20' cy='95' r='2.5'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(#000 35%, transparent 95%);
  mask-size: 120px 120px, 100% 100%; mask-repeat: repeat, no-repeat; mask-composite: intersect; }

/* fremdriftslinje: barnets farge → gull, myk glans, rolig «vokse»-animasjon */
.bar { background: color-mix(in srgb, var(--kc) 12%, #f3e8d8); }
.bar i { background: linear-gradient(90deg, var(--kc), var(--sun)); background: linear-gradient(90deg in oklch, var(--kc), var(--sun)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08), inset 0 3px 0 rgba(255, 255, 255, .35); transform-origin: left center; animation: sfkBarIn 1.1s cubic-bezier(.2, .9, .3, 1) both; }
.bar.huge { height: 26px; background: color-mix(in srgb, var(--kc) 14%, #f6efe5); box-shadow: inset 0 3px 0 rgba(0, 0, 0, .05); }
.bar.huge i { background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 55%), linear-gradient(90deg, var(--kc), var(--sun)); background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 55%), linear-gradient(90deg in oklch, var(--kc), var(--sun)); box-shadow: 0 0 14px color-mix(in srgb, var(--sun) 45%, transparent), inset 0 -4px 0 rgba(0, 0, 0, .08); }
/* milepæler ved 25 / 50 / 75 % */
.bar.huge::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .9) 0 4px, transparent 4.5px) 25% 50% / 10px 10px no-repeat,
              radial-gradient(circle, rgba(255, 255, 255, .9) 0 4px, transparent 4.5px) 50% 50% / 10px 10px no-repeat,
              radial-gradient(circle, rgba(255, 255, 255, .9) 0 4px, transparent 4.5px) 75% 50% / 10px 10px no-repeat; }
@keyframes sfkBarIn { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .bar i { animation: none !important; } }
