/* Puko-appen. Følger dagen: Ebbes morgen, Kakaos eftermiddag, Tulles aften. */

:root {
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --text: "Figtree", "Avenir Next", system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --yellow: #fddd1d;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r: 20px;
  --gut: 16px;
  --tab: 68px;
}
[data-phase="morgen"] {
  --bg: #fbf0e3; --bg-2: #f7e2c9; --card: #fffaf3; --ink: #3a2314; --soft: #6c4a33; --line: #ecd6bd;
  --accent: #8f4c1a; --on-accent: #fff6ea; --tint: #f4cba3;
}
[data-phase="eftermiddag"] {
  --bg: #eef2e6; --bg-2: #dce5cf; --card: #fbfcf7; --ink: #22301f; --soft: #4c6044; --line: #d3dec4;
  --accent: #46613c; --on-accent: #f6f9f0; --tint: #c9d8b6;
}
[data-phase="aften"] {
  --bg: #1d2439; --bg-2: #262f48; --card: #2c3753; --ink: #f4eee4; --soft: #c9c5c0; --line: #3f4b6b;
  --accent: #f2e6c6; --on-accent: #1c2438; --tint: #3d4a6b;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  background: var(--bg);
  scrollbar-color: var(--line) transparent;
}
html[data-group="senior"] { font-size: 118%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font: 400 1rem/1.5 var(--text); -webkit-font-smoothing: antialiased; transition: background .4s, color .4s; }
::selection { background: var(--yellow); color: #3f1f2d; }
h1, h2, h3, p, ul, ol, blockquote, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
h1, h2 { font-family: var(--display); font-variation-settings: "opsz" 96, "wdth" 82; font-weight: 700; line-height: 1.08; text-wrap: balance; }
h1 { font-size: 2rem; }
h2 { font-size: 1.3rem; }
img { display: block; max-width: 100%; }
small { font-size: .84rem; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, label { touch-action: manipulation; }
button, a.btn, .chip, .tile, summary { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.ic { flex: none; display: block; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--card); border-radius: 10px; }
.skip:focus { top: 12px; }
.muted { color: var(--soft); font-size: .94rem; }
.fine { color: var(--soft); font-size: .84rem; text-align: center; }
.hand { font: 600 1.5rem/1.2 var(--hand); }
.lede { font-size: 1.08rem; color: var(--soft); max-width: 58ch; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.stack { display: grid; gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Skal */
.shell { min-height: 100dvh; }
.main { padding: 0 var(--gut) calc(var(--tab) + 92px + env(safe-area-inset-bottom)); max-width: 1120px; margin-inline: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 0 10px; }
.bar__me { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: #3f1f2d; font-weight: 700; }
.side { display: none; }
.tabs { position: fixed; inset: auto 0 0; z-index: 10; display: flex; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { flex: 1; min-width: 0; height: var(--tab); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--soft); font-size: .72rem; font-weight: 600; transition: color .15s; }
.tabs a span { white-space: nowrap; }
.tabs a[aria-current] { color: var(--ink); }
.tabs a[aria-current] .ic { transform: translateY(-1px); stroke-width: 2.3; }

.mini { position: fixed; z-index: 9; left: 10px; right: 10px; bottom: calc(var(--tab) + 8px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 24px -10px rgb(0 0 0 / .4); overflow: hidden; }
.mini img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.mini__t { flex: 1; min-width: 0; display: grid; }
.mini__t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.mini__t small { color: var(--soft); }
.mini i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); }

/* Dele */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; background: var(--bg-2); color: var(--ink); font-weight: 600; text-align: center; transition: transform .12s var(--ease), background .15s; }
.btn:active { transform: scale(.97); }
.btn--main { background: var(--accent); color: var(--on-accent); }
.btn--small { min-height: 42px; padding: 0 14px; font-size: .92rem; border-radius: 12px; justify-self: start; }
.btn--danger { background: none; color: #a8352c; box-shadow: inset 0 0 0 1.5px currentColor; }
[data-phase="aften"] .btn--danger { color: #f3b6a9; }
.btn:disabled { opacity: .5; cursor: default; }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--accent); }
.iconbtn { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--soft); transition: background .15s; }
.iconbtn:active { background: var(--bg-2); }
.iconbtn.is-on { color: #c6402f; }
.iconbtn.is-on .ic { fill: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding: 2px var(--gut); scrollbar-width: none; }
.chip { flex: none; min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--bg-2); font-size: .92rem; font-weight: 600; text-align: left; }
.chips--still .chip { min-height: 32px; font-weight: 500; }
.chip.is-on { background: var(--accent); color: var(--on-accent); }
.switch { position: relative; width: 52px; height: 32px; flex: none; border-radius: 999px; background: var(--line); transition: background .18s; }
.switch span { position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .2s var(--ease); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"] span { transform: translateX(20px); }
[data-phase="aften"] .switch[aria-checked="true"] span { background: #1c2438; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-size: 16px; font-weight: 400; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); }
.field ::placeholder { color: var(--soft); opacity: .8; }
.field--row { grid-template-columns: 1fr 170px; align-items: center; font-weight: 500; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.seg legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.seg label { position: relative; }
.seg input, .pickrow input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.seg span, .seg--plain button { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 4px 8px; border-radius: 12px; background: var(--bg-2); font-weight: 600; font-size: .9rem; text-align: center; line-height: 1.15; transition: background .15s; }
.seg input:checked + span, .seg--plain .is-on { background: var(--accent); color: var(--on-accent); }
.seg input:focus-visible + span, .pickrow input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.seg--plain { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
.pickrow { display: flex; flex-wrap: wrap; gap: 8px; }
.pickrow label { position: relative; }
.pickrow span { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--bg-2); font-weight: 600; }
.pickrow input:checked + span { background: var(--accent); color: var(--on-accent); }
.plain legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; padding: 0; }

.page { padding: 8px 0 18px; display: grid; gap: 6px; }
.top { display: flex; align-items: center; gap: 6px; padding: 4px 0 14px; margin-left: -8px; }
.top h1 { font-size: 1.5rem; }
.top__back { width: 42px; height: 42px; display: grid; place-items: center; }
.h { margin: 26px 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.h small { font: 500 .9rem var(--text); color: var(--soft); font-variant-numeric: tabular-nums; }
.block { display: grid; gap: 10px; padding: 18px; border-radius: var(--r); background: var(--card); }
.cols { display: grid; gap: 14px; margin-top: 14px; }
.col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.wide { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); margin-bottom: 14px; }
.row { display: flex; align-items: center; gap: 12px; min-height: 58px; }
.row + .row { border-top: 1px solid var(--line); }
.row__ic { color: var(--accent); }
.row__t { flex: 1; display: grid; }
.row__t small { color: var(--soft); }
.rt { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 0; }
.rt + .rt { border-top: 1px solid var(--line); }
.rt__t { flex: 1; min-width: 0; display: grid; }
.rt__t small { color: var(--soft); }
.rt__img { width: 46px; height: 46px; object-fit: contain; }
.rules { display: grid; gap: 8px; }
.rules li { display: flex; gap: 10px; }
.rules .ic { margin-top: 3px; color: var(--accent); }
details { padding: 12px 0; border-top: 1px solid var(--line); }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 6px; color: var(--soft); }

/* I dag */
.hero { position: relative; margin-inline: calc(var(--gut) * -1); aspect-ratio: 4 / 3; max-height: 46dvh; width: calc(100% + var(--gut) * 2); overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 72px var(--gut) 16px; color: #fff; background: linear-gradient(to top, rgb(20 16 28 / .68), transparent); }
.hero__hi { font-weight: 600; font-size: .95rem; }
.hero h1 { font-size: 1.95rem; }
.puko { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r); background: var(--card); margin-top: 14px; flex-wrap: wrap; }
.puko img { width: 54px; height: 54px; object-fit: contain; }
.puko__t { flex: 1; display: grid; min-width: 0; }
.puko__t small { color: var(--soft); }
.puko__l { order: 2; display: none; }
.flag { margin-top: 14px; padding: 18px; display: grid; gap: 8px; border-radius: var(--r); background: var(--yellow); color: #3f1f2d; }
.flag__q { font: 700 1.2rem/1.2 var(--display); font-variation-settings: "opsz" 96, "wdth" 82; }
.flag .btn { background: rgb(63 31 45 / .1); color: inherit; }
.flag .btn--main { background: #3f1f2d; color: #fff; }
.ask { padding: 18px 0 6px; display: grid; gap: 10px; min-width: 0; }
.ask > * { min-width: 0; }
.ask__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; }
.ask blockquote { flex: 0 0 84%; scroll-snap-align: center; min-height: 150px; padding: 20px; display: flex; align-items: flex-end; border-radius: var(--r); background: var(--tint); font: 700 1.5rem/1.14 var(--display); font-variation-settings: "opsz" 96, "wdth" 82; }
.next { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: var(--r); background: var(--card); }
.next img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.next span { flex: 1; display: grid; min-width: 0; }
.next small { color: var(--soft); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { min-height: 92px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 8px; text-align: left; border-radius: var(--r); background: var(--card); transition: transform .12s var(--ease); }
.tile:active { transform: scale(.97); }
.tile .ic { color: var(--accent); }
.ev { display: flex; align-items: center; gap: 12px; }
.ev__d { width: 50px; height: 54px; flex: none; display: grid; place-content: center; text-align: center; border-radius: 12px; background: var(--tint); line-height: 1.05; }
.ev__d b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.ev__t { flex: 1; display: grid; min-width: 0; }
.ev__t small { color: var(--soft); }

/* Snak */
.talk__hero { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 8px 0 14px; }
.talk__hero img { width: 190px; height: 190px; object-fit: contain; }
.talk__log { display: grid; gap: 8px; margin-bottom: 14px; }
.talk { display: grid; gap: 8px; max-width: 620px; margin-inline: auto; }
.bub { max-width: 84%; padding: 10px 14px; border-radius: 16px; background: var(--card); }
.bub--me { justify-self: end; background: var(--accent); color: var(--on-accent); }

/* Lær */
.courses { display: grid; gap: 14px; }
.course { display: grid; grid-template-columns: 100px 1fr; border-radius: var(--r); background: var(--card); overflow: hidden; transition: transform .12s var(--ease); }
.course:active { transform: scale(.985); }
.course img { width: 100%; height: 100%; object-fit: cover; min-height: 132px; }
.course__t { padding: 14px; display: grid; gap: 4px; align-content: center; }
.course__t b { font: 700 1.2rem/1.1 var(--display); font-variation-settings: "opsz" 96, "wdth" 82; }
.course__t small { color: var(--soft); }
.bar { }
.course .bar { display: block; height: 5px; margin-top: 6px; padding: 0; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.course .bar i { display: block; height: 100%; background: var(--accent); }
.units { display: grid; gap: 2px; margin: 16px 0 20px; }
.units li { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--soft); }
.units span { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.units .is-now { color: var(--ink); font-weight: 600; }
.units .is-now span { background: var(--accent); color: var(--on-accent); }
.units .is-done span { background: var(--tint); color: var(--ink); }

.lesson { position: relative; min-height: 100dvh; max-width: 560px; margin-inline: auto; padding: calc(12px + env(safe-area-inset-top)) var(--gut) calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.lesson--end { justify-content: center; }
.lesson__x { position: absolute; left: 8px; top: calc(8px + env(safe-area-inset-top)); width: 44px; height: 44px; display: grid; place-items: center; }
.lesson__f { width: 110px; height: 110px; object-fit: contain; }
.lesson h1 { font-size: 1.65rem; }
.lesson .stack { width: 100%; text-align: left; }
.dots { display: flex; gap: 6px; padding-top: 18px; }
.dots i { width: 22px; height: 5px; border-radius: 3px; background: var(--bg-2); }
.dots i.on { background: var(--accent); }
.stars { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; color: #e2b21a; }
.stars span { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; max-width: 180px; }
.stars .ic { fill: currentColor; }
.sum { font: 700 2.8rem/1 var(--display); font-variation-settings: "opsz" 96, "wdth" 82; font-variant-numeric: tabular-nums; }
.answers { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.ans { min-height: 76px; padding: 6px; border-radius: 16px; background: var(--card); font: 700 1.5rem/1.1 var(--display); font-variation-settings: "opsz" 96, "wdth" 82; overflow-wrap: anywhere; transition: background .15s, transform .12s var(--ease); }
.ans:active { transform: scale(.97); }
.ans.is-right { background: #5d8a4e; color: #fff; }
.ans.is-wrong { background: #dcb5a4; color: #3a2314; }
.after { width: 100%; display: grid; gap: 10px; }

/* Lyt */
.make { display: flex; align-items: center; gap: 14px; padding: 10px; margin-bottom: 14px; border-radius: var(--r); background: var(--yellow); color: #3f1f2d; }
.make img { width: 74px; height: 74px; object-fit: cover; border-radius: 12px; }
.make span { display: grid; }
.make b { font: 700 1.14rem/1.12 var(--display); font-variation-settings: "opsz" 96, "wdth" 82; }
.covers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 12px; margin-top: 14px; }
.cover { display: grid; gap: 7px; text-align: left; align-content: start; transition: transform .12s var(--ease); }
.cover:active { transform: scale(.975); }
.cover img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; }
.cover__t { display: grid; }
.cover__t b { line-height: 1.2; }
.cover__t small { color: var(--soft); }
.read { max-width: 640px; margin-inline: auto; display: grid; gap: 12px; }
.read ul { list-style: disc; padding-left: 20px; display: grid; gap: 8px; }
.read .wide { margin-bottom: 2px; }

/* Pukolandet */
.pack { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: var(--r); background: #3f1236; color: #fbeef2; --soft: #e4cbd6; }
.pack img { width: 96px; border-radius: 10px; }
.pack div { display: grid; gap: 6px; justify-items: start; }
.pack .btn--main { background: var(--yellow); color: #3f1f2d; }
.album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; justify-items: center; }
.slot { width: 100%; aspect-ratio: 63 / 88; container-type: inline-size; display: grid; place-items: start; overflow: hidden; transition: transform .15s var(--ease); }
.slot:active { transform: scale(.97); }
.slot .pk { font-size: calc(100cqw / 63); }
.slot--off { place-items: center; border-radius: 8px; border: 1.5px dashed var(--line); color: var(--soft); font-variant-numeric: tabular-nums; font-weight: 600; align-content: center; }
.pk { position: relative; width: 63em; height: 88em; padding: 2.4em; border-radius: 3.4em; background: linear-gradient(150deg, #ffe95c, #fddd1d 40%, #f2bf1a 70%, #ffe95c); color: var(--pk-ink); box-shadow: 0 .6em 1.6em -.4em rgb(0 0 0 / .45); flex: none; text-align: left; }
.pk__in { position: relative; height: 100%; padding: 2em 2.4em; border-radius: 1.8em; background: var(--pk-bg); display: flex; flex-direction: column; overflow: hidden; }
.pk__row { display: flex; justify-content: space-between; align-items: center; }
.pk__stage, .pk__kram { font-size: 1.7em; font-weight: 700; }
.pk__kram b { font: 700 1.5em/1 var(--display); }
.pk h3 { margin: 0; font: 700 6.2em/1.05 var(--display); font-variation-settings: "opsz" 96, "wdth" 78; white-space: nowrap; }
.pk__ico { width: 4em; height: 4em; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--pk-ico); }
.pk__ico svg { width: 66%; }
.pk__art { position: relative; margin-top: .8em; height: 34em; border: .55em solid #fddd1d; border-radius: .7em; overflow: hidden; }
.pk__art img { width: 100%; height: 100%; object-fit: cover; }
.pk--rare .pk__art::after { content: ""; position: absolute; inset: 0; mix-blend-mode: soft-light; background: repeating-linear-gradient(115deg, rgb(255 90 160 / .34) 0 6%, rgb(255 230 90 / .34) 12%, rgb(90 240 200 / .34) 18%); }
.pk__strip { margin: .7em 0 .2em; text-align: center; font-size: 1.5em; font-weight: 600; }
.pk__mv { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: .8em 0; border-bottom: .1em solid color-mix(in srgb, var(--pk-ink) 28%, transparent); }
.pk__mv h4 { margin: 0; font: 700 2.4em/1.05 var(--display); }
.pk__mv p { font-size: 1.55em; line-height: 1.2; font-weight: 500; }
.pk__pow { font: 700 3.4em/1 var(--display); }
.pk__say { margin-top: .5em; text-align: center; font: 600 3em/1 var(--hand); }
.pk__foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 1.3em; font-weight: 700; }
.cardview { display: grid; place-items: center; padding-top: 10px; }
.reveal { text-align: center; }
.reveal__fan { display: flex; justify-content: center; height: 270px; margin-top: 18px; perspective: 800px; }
.reveal__fan > div { width: 92px; flex: none; transform-origin: 50% 140%; animation: deal .7s var(--ease) both; animation-delay: calc((var(--i) + 1) * 140ms); }
@keyframes deal { from { transform: translateY(240px) rotate(0) scale(.7); opacity: 0; } to { transform: rotate(calc(var(--i) * 11deg)) translateY(calc(var(--i) * var(--i) * 12px)); opacity: 1; } }
.reveal__fan .pk { margin-left: -24px; }

/* Familien */
.note { padding: 20px; display: grid; gap: 6px; border-radius: var(--r); background: repeating-linear-gradient(#f6efe2 0 33px, #d9cfbf 33px 34px); color: #2b2e3f; --soft: #52566b; }
.note h2 { margin-bottom: 4px; }
.note h3 { margin-top: 8px; font-size: .84rem; color: #52566b; }
.note__l { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 1.42rem/1.1 var(--hand); color: #34406a; }
.note .iconbtn { width: 36px; height: 36px; color: #52566b; }
.note .btn { background: #2b2e3f; color: #f6efe2; margin-top: 8px; }
.word { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: baseline; }
.word span { color: var(--soft); }
.letter { padding: 22px; display: grid; gap: 10px; border-radius: var(--r); background: #f6efe2; color: #2b2e3f; }
.letter h3 { margin-top: 8px; font-size: .95rem; }
.letter .hand { color: #34406a; }

/* Konto */
.member { padding: 18px; display: grid; gap: 8px; border-radius: var(--r); background: var(--yellow); color: #3f1f2d; }
.member__top { display: flex; justify-content: space-between; align-items: center; }
.member h2 { font-size: 2rem; }
.member .btn { background: rgb(63 31 45 / .1); color: inherit; }
.member .btn--main { background: #3f1f2d; color: #fff; }
.tag { padding: 4px 10px; border-radius: 999px; background: #3f1f2d; color: #fff; font-size: .8rem; font-weight: 600; }

/* Velkommen */
.welcome { min-height: 100dvh; display: grid; }
.welcome__art { width: 100%; height: 26dvh; object-fit: cover; object-position: 50% 78%; }
.welcome__in { padding: 18px var(--gut) calc(26px + env(safe-area-inset-bottom)); display: grid; gap: 12px; max-width: 520px; margin-inline: auto; width: 100%; }
.welcome .logo { margin-bottom: 2px; }
.preview { display: flex; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--tint); font-size: .92rem; }
.preview .ic { margin-top: 2px; }
.demos { display: grid; gap: 8px; margin-top: 8px; }
.demos p { color: var(--soft); font-size: .92rem; }

/* Ark, besked */
.sheet { margin: auto auto 0; width: 100%; max-width: 520px; max-height: 92dvh; padding: 0; border: 0; border-radius: 24px 24px 0 0; background: var(--card); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.sheet[open] { animation: rise .3s var(--ease); }
.sheet::backdrop { background: rgb(14 12 22 / .55); }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.sheet__in { position: relative; padding: 22px var(--gut) calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.sheet__x { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; display: grid; place-items: center; z-index: 2; }
.sheet__in > h2 { padding-right: 36px; }
.sheet__art { width: 150px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
.sheet audio { width: 100%; }
.toast { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); z-index: 30; max-width: calc(100vw - 32px); width: max-content; padding: 12px 16px; border-radius: 14px; background: #1d1826; color: #fff; font-size: .94rem; transform: translate(-50%, -12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(.96); }
  .chip:hover, .tile:hover, .course:hover, .next:hover { filter: brightness(1.03); }
  .row:hover b { text-decoration: underline; text-underline-offset: 3px; }
  .cover:hover img { filter: brightness(1.05); }
  .slot:hover { transform: translateY(-3px); }
  .side a:hover { background: var(--bg-2); }
}

@media (min-width: 600px) {
  .covers { grid-template-columns: repeat(4, 1fr); }
  .courses { grid-template-columns: 1fr 1fr; }
  .album { grid-template-columns: repeat(5, 1fr); }
  .ask blockquote { flex-basis: 46%; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .col .tiles { grid-template-columns: 1fr 1fr; }
  .sheet { margin: auto; border-radius: 24px; }
}
@media (min-width: 980px) {
  :root { --gut: 32px; }
  .shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); }
  .side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100dvh; padding: 26px 18px; background: var(--card); }
  .side nav { display: grid; gap: 4px; }
  .side a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 12px; font-weight: 600; color: var(--soft); }
  .side a[aria-current] { background: var(--bg-2); color: var(--ink); }
  .tabs, .bar { display: none; }
  .main { width: 100%; padding: 0 var(--gut) 110px; }
  .main > main { padding-top: 26px; }
  .main > main:has(> .hero) { padding-top: 0; }
  .hero { max-height: 360px; aspect-ratio: auto; height: 360px; margin-inline: calc(var(--gut) * -1); }
  .hero__txt { padding-bottom: 26px; padding-inline: var(--gut); }
  .hero h1 { font-size: 3rem; }
  .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .ask__track { margin-inline: 0; padding-inline: 0; }
  .ask blockquote { flex-basis: 74%; }
  .album { grid-template-columns: repeat(7, 1fr); }
  .mini { left: 264px; right: 32px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Universet ---------- */
html::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07; mix-blend-mode: multiply; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
[data-phase="aften"]::after { mix-blend-mode: overlay; opacity: .12; }
.ik { flex: none; object-fit: contain; filter: drop-shadow(0 3px 4px rgb(30 16 24 / .22)); }
.hh { display: flex; align-items: center; gap: 8px; }
.block, .note, .letter, .tile, .course, .next, .puko, .flag, .place { box-shadow: 0 1px 1px rgb(30 16 24 / .08), 0 12px 24px -14px rgb(30 16 24 / .4); }
.btn, .tile, .place, .course, .cover { will-change: transform; }

/* Tæppekant under alle scener */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 15px; background: radial-gradient(circle at 15px 17px, var(--bg) 14px, transparent 15px) repeat-x 0 0 / 30px 15px; }
.hero__txt { padding-bottom: 28px; }
.hero--place { aspect-ratio: 5 / 4; max-height: 50dvh; }
.hero--place h1 { font-size: 2.5rem; }
.hero--place p { max-width: 34ch; margin-top: 2px; }
.hero--place + * { margin-top: 18px; }

/* Faneblade */
.tabs { background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(12px); }
.tabs a img, .side a img { width: 34px; height: 34px; object-fit: contain; filter: saturate(.75) drop-shadow(0 2px 2px rgb(30 16 24 / .25)); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), filter .2s; }
.tabs a { font-size: .68rem; gap: 1px; }
.tabs a[aria-current] img { transform: translateY(-5px) scale(1.24); filter: none; }
.side a[aria-current] img { filter: none; transform: scale(1.1); }

/* Stederne */
.world { display: grid; gap: 10px; min-width: 0; padding-top: 8px; }
.world__rail { display: flex; gap: 10px; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding: 4px var(--gut) 14px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: none; overscroll-behavior-x: contain; }
.world__rail::-webkit-scrollbar { display: none; }
.place { position: relative; flex: 0 0 62%; max-width: 250px; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; scroll-snap-align: start; color: #fff; transition: transform .15s var(--ease); }
.place:active { transform: scale(.97); }
.place > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.place .ik { position: absolute; left: 12px; top: 12px; width: 52px; height: 52px; }
.place span { position: absolute; inset: auto 0 0; display: grid; padding: 54px 14px 12px; background: linear-gradient(to top, rgb(20 14 26 / .78), transparent); }
.place b { font: 700 1.5rem/1.05 var(--display); font-variation-settings: "opsz" 96, "wdth" 82; }
.place small { font-size: .88rem; }

.tile { min-height: 124px; }
.tile b { line-height: 1.15; }
.make .ik { width: 64px; height: 64px; }
.make { padding: 12px 14px; }
.course { grid-template-columns: 1fr; }
.course img { aspect-ratio: 16 / 10; min-height: 0; height: auto; }

/* Stien gennem forløbet */
.trail { position: relative; max-width: 440px; margin: 10px auto 18px; }
.trail svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trail path { fill: none; stroke: var(--line); stroke-width: 5; stroke-dasharray: 2 14; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.stone { position: absolute; transform: translate(-50%, -50%); width: 70px; height: 70px; display: grid; place-items: center; }
.stone > span { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50% 46% 52% 48%; background: var(--bg-2); color: var(--soft); font: 700 1.4rem var(--display); box-shadow: inset 0 -5px 0 rgb(30 16 24 / .12); }
.stone.is-done > span { background: #e2b21a; color: #3f1f2d; }
.stone.is-now > span { background: var(--yellow); color: #3f1f2d; box-shadow: inset 0 -5px 0 rgb(30 16 24 / .15), 0 0 0 5px color-mix(in srgb, var(--yellow) 30%, transparent); }
.stone img { position: absolute; width: 70px; height: 70px; object-fit: contain; top: -48px; filter: drop-shadow(0 6px 6px rgb(30 16 24 / .3)); }
.stone b { position: absolute; top: 50%; transform: translateY(-50%); width: 132px; font-weight: 600; font-size: .94rem; line-height: 1.15; color: var(--soft); }
.stone.is-now b { color: var(--ink); }
.stone b.r { left: 78px; }
.stone b.l { right: 78px; text-align: right; }
.btn--wide { width: 100%; }

/* Lektion */
.lesson::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(color-mix(in srgb, var(--bg) 62%, transparent), var(--bg) 72%), var(--scene, none) center top / cover; }
.lesson__f { margin-bottom: -18px; position: relative; filter: drop-shadow(0 8px 8px rgb(30 16 24 / .3)); }
.say { position: relative; width: 100%; padding: 22px 20px 12px; border-radius: 24px; background: var(--card); display: grid; justify-items: center; gap: 4px; box-shadow: 0 12px 24px -14px rgb(30 16 24 / .5); }
.ans { box-shadow: inset 0 -5px 0 rgb(30 16 24 / .14); }

/* Billetten */
.ticketc { position: relative; padding: 18px 20px 20px; display: grid; gap: 4px; color: #3f1f2d; background: linear-gradient(150deg, #ffe95c, #fddd1d 45%, #f2bf1a 75%, #ffe95c); --n: 13px; -webkit-mask: radial-gradient(circle var(--n) at 0 58%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--n) at 100% 58%, transparent 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle var(--n) at 0 58%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--n) at 100% 58%, transparent 98%, #000) right / 51% 100% no-repeat; border-radius: 20px; }
.ticketc__top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .9rem; }
.ticketc h2 { font-size: 2.6rem; }
.ticketc .ik { position: absolute; right: 14px; top: 44px; transform: rotate(8deg); }
.ticketc p { margin-top: 22px; padding-top: 12px; border-top: 2px dashed rgb(63 31 45 / .3); max-width: none; }

/* Kort */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .12s linear; touch-action: none; }
.cardview .pk::after, .oc .pk::after { content: ""; position: absolute; inset: 0; border-radius: inherit; mix-blend-mode: soft-light; pointer-events: none; background: linear-gradient(115deg, transparent 20%, rgb(255 240 150 / .8) calc(var(--gx, 50%) - 12%), rgb(150 230 255 / .8) var(--gx, 50%), rgb(255 150 220 / .7) calc(var(--gx, 50%) + 12%), transparent 80%); }

/* Pakken åbnes */
.opening { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, #5d034c, #2a0b2a 70%); color: #fff; overflow: hidden; animation: fadein .25s; }
@keyframes fadein { from { opacity: 0; } }
.opening__x { position: absolute; right: 12px; top: calc(12px + env(safe-area-inset-top)); width: 44px; height: 44px; display: grid; place-items: center; z-index: 3; }
.opening__hint { position: absolute; top: calc(60px + env(safe-area-inset-top)); width: 100%; text-align: center; font: 600 1.7rem var(--hand); }
.opening__pack { position: absolute; width: min(56vw, 230px); animation: wobble 1.6s ease-in-out infinite; transition: transform .6s var(--ease), opacity .4s .2s; }
.opening__pack img { width: 100%; border-radius: 8px; box-shadow: 0 30px 50px -20px rgb(0 0 0 / .6); }
@keyframes wobble { 0%, 100% { transform: rotate(-2.500deg); } 50% { transform: rotate(2.500deg) scale(1.03); } }
.is-open .opening__pack { animation: none; transform: translateY(70vh) scale(.9) rotate(6deg); opacity: 0; pointer-events: none; }
.opening__cards { position: relative; width: 208px; height: 290px; }
.oc { position: absolute; inset: 0; opacity: 0; }
.oc__in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(180deg); }
.oc__front, .oc__back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; }
.oc__back { background: #2c3753; border: 7px solid #fddd1d; border-radius: 11px; }
.oc__back img { width: 60%; }
.oc__front { transform: rotateY(180deg); }
.oc__in { }
.is-open .oc { opacity: 1; transition: opacity .2s calc(var(--i) * 260ms + .25s), transform .7s var(--ease) calc(var(--i) * 260ms + .25s); transform: translateX(calc((var(--i) - 1) * 46px)) translateY(calc(var(--i) * 10px - 10px)) rotate(calc((var(--i) - 1) * 9deg)); z-index: calc(var(--i) + 1); }
.is-open .oc__in { transform: rotateY(360deg); transition: transform .8s var(--ease) calc(var(--i) * 260ms + .4s); }

.soon { justify-items: center; text-align: center; }
.soon .ik { width: 96px; height: 96px; }
.sheet__ik { width: 70px; height: 70px; object-fit: contain; }

/* Åbningstæppe */
.splash { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; pointer-events: none; }
.splash i { position: absolute; top: 0; bottom: 0; width: 51%; background: repeating-linear-gradient(90deg, #5d034c 0 36px, #470239 36px 72px); transition: transform 1s var(--ease); }
.splash i:first-child { left: 0; }
.splash i:nth-child(2) { right: 0; }
.splash img { position: relative; transition: opacity .3s, transform .5s var(--ease); }
.splash.go i:first-child { transform: translateX(-102%); }
.splash.go i:nth-child(2) { transform: translateX(102%); }
.splash.go img { opacity: 0; transform: scale(.9); }

@media (min-width: 600px) {
  .place { flex-basis: 220px; }
  .courses { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .hero--place { height: 340px; max-height: none; aspect-ratio: auto; }
  .hero--place img { object-position: 50% 30%; }
  .main > main:has(> .hero--place) { padding-top: 0; }
  .courses { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .opening__pack { animation: none; } .splash { display: none; } }
.lesson { isolation: isolate; }
.lesson::before { position: fixed; z-index: -1; }
.hero--place .hero__txt { padding-top: 96px; background: linear-gradient(to top, rgb(20 14 26 / .84), rgb(20 14 26 / .5) 55%, transparent); }
.oc__in { transform: rotateY(0deg); }
.is-open .oc__in { transform: rotateY(180deg); }
