/* Animerte illustrasjoner og 3D (2026-11-24). Brukes av seksjonen «Vanskelig å forklare? Vis det.» på /nettside og av
   temasiden /animerte-illustrasjoner. Skript: /assets/js/illustrasjoner.js (felles + brosjyre → illustrasjon → 3D) og
   /assets/js/illustrasjoner-eksempler.js (eksemplene på temasiden). Ruten har fast høyde (aspect-ratio), så ingenting
   flytter seg når illustrasjonene tegnes etter at siden er lastet. */

:root { --ill-br: rgb(255,106,61); --ill-pk: rgb(255,61,139); --ill-am: rgb(255,181,71); --ill-vi: rgb(122,60,255);
        --ill-ok: rgb(52,211,153); --ill-is: rgb(125,211,252); --ill-ink: rgb(13,17,30); }

/* ---- Mørk seksjon (på /nettside og temasiden) ---- */
.ill-seksjon { position: relative; overflow: hidden; overflow: clip; isolation: isolate; color: rgb(255,255,255); background: rgb(17,19,31); }
.ill-seksjon::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(45% 55% at 80% 45%, rgba(122,60,255,.16), transparent 70%), radial-gradient(35% 45% at 95% 95%, rgba(255,61,139,.12), transparent 70%), radial-gradient(30% 40% at 5% 10%, rgba(255,181,71,.08), transparent 70%); }
.ill-seksjon .lead { color: rgba(255,255,255,.82); }
.ill-seksjon p { color: rgba(255,255,255,.78); }
.ill-seksjon .ill-eyebrow { color: rgb(255,181,71); }
.ill-seksjon strong { color: rgb(255,255,255); }
.ill-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(255,181,71); margin: 0 0 1rem; }
.ill-h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; margin: 0 0 1.1rem; }
.ill-seksjon .ill-h2 { color: rgb(255,255,255); }
.ill-ut { margin-top: 1.4rem; padding: 1rem 1.1rem; border-radius: 14px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.ill-ut b { display: block; color: rgb(255,255,255); font-size: 1.02rem; margin-bottom: .25rem; }
.ill-ut p { margin: 0; font-size: .98rem; }
.ill-punkter { list-style: none; padding: 0; margin: 1.3rem 0 0; }
.ill-punkter li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; color: rgba(255,255,255,.82); }
.ill-punkter li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .7rem; border-radius: 50%;
    background: linear-gradient(135deg, var(--ill-am), var(--ill-pk)); box-shadow: 0 0 10px rgba(255,106,61,.5); }

/* ---- To veier videre: animerte illustrasjoner og 3D ---- */
.ill-veier { display: grid; grid-template-columns: 1fr; gap: .7rem; margin-top: 1.8rem; }
@media (min-width: 576px) and (max-width: 991.98px) { .ill-veier { grid-template-columns: 1fr 1fr; } }
a.ill-vei { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: .2rem .85rem; align-items: center; padding: .95rem 1rem; border-radius: 14px;
    color: rgb(255,255,255); text-decoration: none; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: box-shadow .3s, background .3s; }
a.ill-vei:hover, a.ill-vei:focus-visible { color: rgb(255,255,255); text-decoration: none; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,181,71,.55), 0 0 18px -6px rgba(255,106,61,.6); }
a.ill-vei:focus-visible { outline: 2px solid rgba(255,181,71,.9); outline-offset: 3px; }
.ill-vei-ikon { grid-row: span 2; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.ill-vei b { font-size: 1.02rem; line-height: 1.25; color: rgb(255,255,255); }
.ill-vei small { font-size: .85rem; line-height: 1.35; color: rgba(255,255,255,.66); }
.ill-vei b::after { content: "\00a0→"; color: var(--ill-am); display: inline-block; transition: transform .3s; }
a.ill-vei:hover b::after { transform: translateX(4px); }

/* Pennen som tegner (lenkekortet for illustrasjoner) */
.ill-penn { width: 30px; height: 30px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ill-penn .strek { stroke: var(--ill-am); stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ill-penn .spiss { stroke: rgb(255,255,255); stroke-width: 1.8; }
@media (prefers-reduced-motion: no-preference) {
    .ill-penn .strek { animation: ill-tegn 3.2s ease-in-out infinite; }
    @keyframes ill-tegn { 0% { stroke-dashoffset: 1; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
}
/* Den lille kuben (lenkekortet for 3D) */
.ill-kube { width: 22px; height: 22px; position: relative; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(36deg); }
.ill-kube i { position: absolute; inset: 0; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.ill-kube i:nth-child(1) { transform: translateZ(11px); background: rgba(255,106,61,.95); }
.ill-kube i:nth-child(2) { transform: rotateY(180deg) translateZ(11px); background: rgba(122,60,255,.9); }
.ill-kube i:nth-child(3) { transform: rotateY(90deg) translateZ(11px); background: rgba(255,61,139,.92); }
.ill-kube i:nth-child(4) { transform: rotateY(-90deg) translateZ(11px); background: rgba(255,181,71,.95); }
.ill-kube i:nth-child(5) { transform: rotateX(90deg) translateZ(11px); background: rgba(255,214,170,.95); }
.ill-kube i:nth-child(6) { transform: rotateX(-90deg) translateZ(11px); background: rgba(90,40,200,.9); }
.ill-vei-ikon:has(.ill-kube) { perspective: 160px; }
@media (prefers-reduced-motion: no-preference) {
    .ill-kube { animation: ill-kube 9s linear infinite; }
    @keyframes ill-kube { from { transform: rotateX(-24deg) rotateY(0deg); } to { transform: rotateX(-24deg) rotateY(360deg); } }
}

/* ---- Ruten med illustrasjonen ---- */
.ill-scene { position: relative; padding: 12px; border-radius: 22px; color: rgb(255,255,255);
    background: radial-gradient(60% 50% at 88% 100%, rgba(255,106,61,.16), transparent 70%),
                linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 28px,
                linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 28px, var(--ill-ink);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), 0 40px 80px -40px rgba(0,0,0,.7); }
@media (max-width: 991.98px) { .ill-seksjon .ill-scene { margin-top: 2.5rem; } }
.ill-flate { position: relative; aspect-ratio: 600 / 420; container-type: inline-size; overflow: hidden; border-radius: 14px; user-select: none; -webkit-user-select: none; }
.ill-flate.ill-ar-bygg { aspect-ratio: 600 / 380; }
.ill-flate.ill-ar-lag { aspect-ratio: 600 / 400; }
.ill-flate.ill-ar-folk { aspect-ratio: 600 / 340; }
.ill-flate.ill-ar-kraft { aspect-ratio: 640 / 460; }
.ill-flate svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.ill-flate svg text { font-family: inherit; }
.ill-lag { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.ill-lag.vis { opacity: 1; }
.ill-lag.over { z-index: 2; }
.ill-lag.skjaer { transition: none; } /* under en overgang styres alt av clip-path; begge lagene klippes ved kanten */
.ill-straale { position: absolute; z-index: 3; top: -6%; bottom: -6%; left: 0; width: 3px; margin-left: -1.5px; opacity: 0; pointer-events: none;
    background: linear-gradient(rgba(255,214,170,0), rgb(255,236,214) 20%, rgb(255,181,71) 50%, rgb(255,236,214) 80%, rgba(255,214,170,0));
    box-shadow: 0 0 14px 3px rgba(255,140,70,.75), 0 0 40px 8px rgba(255,61,139,.35); }
.ill-straale.vis { opacity: 1; }
.ill-tag { position: absolute; z-index: 4; top: 10px; right: 10px; padding: .22rem .55rem; border-radius: 99px; font-size: .64rem; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: rgba(255,255,255,.75); background: rgba(8,10,20,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); pointer-events: none; }

/* Merkelapper oppå illustrasjonen: vanlig tekst i fast størrelse, plassert i prosent av tegningen */
.ill-chip { position: absolute; z-index: 2; translate: -50% -50%; display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .62rem; border-radius: 99px;
    font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; color: rgb(255,255,255); background: rgba(9,12,24,.8);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 6px 18px -8px rgba(0,0,0,.6); pointer-events: none; opacity: 0; transition: opacity .6s ease, translate .6s ease; }
.ill-chip.vis { opacity: 1; }
.ill-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ill-am); box-shadow: 0 0 8px var(--ill-am); }
.ill-chip.kald::before { background: var(--ill-is); box-shadow: 0 0 8px var(--ill-is); }
.ill-chip.temp { font-size: 15px; font-variant-numeric: tabular-nums; }
@container (max-width: 460px) { .ill-chip { font-size: 10.5px; padding: .22rem .5rem; } .ill-chip.lang { display: none; } .ill-chip.temp { font-size: 12.5px; } }

/* Valgknappene over illustrasjonen */
.ill-faner { display: flex; gap: 4px; padding: 4px; margin: 0 0 12px; border-radius: 99px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.ill-faner button { flex: 1 1 0; min-width: 0; border: 0; padding: .55rem .6rem; border-radius: 99px; font: inherit; font-size: .84rem; font-weight: 700; line-height: 1.15;
    color: rgba(255,255,255,.72); background: transparent; cursor: pointer; transition: color .25s, background .25s; -webkit-tap-highlight-color: transparent; }
.ill-faner button:hover { color: rgb(255,255,255); background: rgba(255,255,255,.06); }
.ill-faner button[aria-pressed="true"] { color: rgb(255,255,255); background: linear-gradient(135deg, rgb(226,78,32), rgb(214,32,108)); box-shadow: 0 6px 18px -8px rgba(255,61,139,.8); }
.ill-faner button:focus { outline: none; }
.ill-faner button:focus-visible { outline: 2px solid rgba(255,181,71,.9); outline-offset: 2px; }
@media (max-width: 399.98px) { .ill-faner button { font-size: .76rem; padding: .5rem .35rem; } }
.ill-tekst { margin: 12px 6px 2px; min-height: 3em; font-size: .95rem; line-height: 1.5; color: rgba(255,255,255,.78); }
.ill-seksjon .ill-tekst { color: rgba(255,255,255,.78); }

/* ---- 3D-modellen (CSS 3D, ingen bibliotek) ---- */
.ill-3d { position: absolute; inset: 0; perspective: 1000px; perspective-origin: 50% 35%; display: grid; place-items: center; touch-action: pan-y; cursor: grab; }
.ill-3d.drar { cursor: grabbing; }
.ill-3d-gulv { position: absolute; left: 50%; top: 66%; width: 130cqw; height: 130cqw; margin: -65cqw 0 0 -65cqw; transform: rotateX(80deg); pointer-events: none;
    background: radial-gradient(closest-side, rgba(13,17,30,0) 30%, var(--ill-ink) 100%),
                linear-gradient(rgba(255,181,71,.22) 1px, transparent 1px) 0 0 / 5cqw 5cqw,
                linear-gradient(90deg, rgba(255,181,71,.22) 1px, transparent 1px) 0 0 / 5cqw 5cqw; }
.ill-3d-skygge { position: absolute; left: 50%; top: 69%; width: 62cqw; height: 12cqw; margin: -6cqw 0 0 -31cqw; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(0,0,0,.85), rgba(0,0,0,.4) 55%, rgba(255,106,61,.14) 75%, rgba(255,106,61,0)); }
.ill-3d-boks { --w: 40cqw; --h: 27.8cqw; --d: 16.7cqw; position: relative; width: var(--w); height: var(--h); margin-top: -4cqw; transform-style: preserve-3d;
    transform: rotateX(var(--rx, -14deg)) rotateY(var(--ry, -30deg)); }
.ill-3d-f { position: absolute; left: 50%; top: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.ill-3d-f svg { position: static; width: 100%; height: 100%; display: block; }
.f-front, .f-bak { width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2); }
.f-front { transform: translateZ(calc(var(--d) / 2)); }
.f-bak { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.f-hoyre, .f-venstre { width: var(--d); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--d) / -2); }
.f-hoyre { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.f-venstre { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.f-topp, .f-bunn { width: var(--w); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--w) / -2); }
.f-topp { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.f-bunn { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); }
.ill-3d-hint { position: absolute; left: 50%; bottom: 5%; translate: -50% 0; z-index: 2; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem; border-radius: 99px;
    font-size: 12px; font-weight: 700; color: rgba(255,255,255,.85); background: rgba(9,12,24,.7); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); pointer-events: none; white-space: nowrap; }
.ill-3d-hint::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ill-pk); animation: ill-live 2s ease-out infinite; }
@keyframes ill-live { 0% { box-shadow: 0 0 0 0 rgba(255,61,139,.6); } 100% { box-shadow: 0 0 0 8px rgba(255,61,139,0); } }
.ill-vifte { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
    .ill-vifte.gar { animation: ill-snurr 1.1s linear infinite; }
    @keyframes ill-snurr { to { transform: rotate(360deg); } }
}
@media (prefers-reduced-motion: reduce) { .ill-3d-hint::before { animation: none; } .ill-lag, .ill-chip { transition: none; } }

/* ---- Temasiden ---- */
.ill-hero { position: relative; overflow: hidden; overflow: clip; isolation: isolate; padding: 9.5rem 0 5rem; }
@media (max-width: 991.98px) { .ill-hero { padding: 8rem 0 3.5rem; } }
.ill-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(45% 60% at 74% 50%, rgba(255,106,61,.16), transparent 70%), radial-gradient(35% 45% at 92% 88%, rgba(122,60,255,.16), transparent 70%), radial-gradient(30% 40% at 8% 15%, rgba(255,181,71,.1), transparent 70%); }
.ill-hero .ill-stov { filter: blur(.7px); }
.ill-hero > .container { position: relative; z-index: 1; }
.ill-h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.06; font-weight: 800; letter-spacing: -.02em; margin: 0 0 1.2rem; }
.ill-lead { font-size: 1.15rem; line-height: 1.6; color: rgba(255,255,255,.8); max-width: 33rem; margin: 0 0 2rem; }
.ill-helt { position: relative; max-width: 640px; margin: 0 auto; }
@media (max-width: 991.98px) { .ill-helt { margin-top: 2.5rem; } }
.ill-helt .ill-flate { cursor: pointer; border-radius: 16px; }
.ill-helt .ill-flate:focus-visible { outline: 2px solid rgba(255,181,71,.85); outline-offset: 4px; }
.ill-merke { display: flex; justify-content: center; margin-top: 14px; }
.ill-merke span { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 99px; font-size: .74rem; font-weight: 700;
    color: rgba(255,255,255,.82); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); white-space: nowrap; }
.ill-merke span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ill-pk); animation: ill-live 2s ease-out infinite; }
.ill-merke b { color: var(--ill-am); }
@media (prefers-reduced-motion: reduce) { .ill-merke span::before { animation: none; } }

.ill-eks { padding: 4.5rem 0; }
.ill-eks + .ill-eks { padding-top: 1.5rem; }
@media (max-width: 991.98px) { .ill-eks { padding: 3rem 0; } .ill-eks .ill-scene { margin-top: 1.8rem; } }
.ill-eks h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 0 0 1rem; }
.ill-eks p { font-size: 1.08rem; line-height: 1.65; }
.ill-merkelapper { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.ill-merkelapper li { padding: .25rem .65rem; border-radius: 99px; font-size: .78rem; font-weight: 700; color: rgb(168,57,12); background: rgba(255,106,61,.1); }
.ill-seksjon .ill-merkelapper li { color: rgb(255,200,170); background: rgba(255,106,61,.14); }

/* Spoling og knapper under illustrasjonen */
.ill-kontroll { display: flex; align-items: center; gap: .8rem; margin: 14px 4px 2px; }
.ill-spill { flex: none; display: inline-flex; align-items: center; gap: .4rem; border: 0; padding: .45rem .8rem; border-radius: 99px; font: inherit; font-size: .78rem; font-weight: 700;
    color: rgb(255,255,255); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); cursor: pointer; }
.ill-spill:hover { background: rgba(255,255,255,.14); }
.ill-spill:focus { outline: none; }
.ill-spill:focus-visible { outline: 2px solid rgba(255,181,71,.9); outline-offset: 2px; }
.ill-spill svg { width: 12px; height: 12px; fill: currentColor; }
.ill-spol-boks { flex: 1 1 auto; min-width: 0; }
.ill-spol { --p: 0%; width: 100%; height: 26px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.ill-spol:focus { outline: none; }
.ill-spol::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, rgb(255,181,71), rgb(255,61,139) var(--p), rgba(255,255,255,.14) var(--p)); }
.ill-spol::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(255,255,255,.14); }
.ill-spol::-moz-range-progress { height: 6px; border-radius: 99px; background: linear-gradient(90deg, rgb(255,181,71), rgb(255,61,139)); }
.ill-spol::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: rgb(255,255,255); border: 0;
    box-shadow: 0 0 0 4px rgba(255,106,61,.45), 0 4px 12px rgba(0,0,0,.4); }
.ill-spol::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: rgb(255,255,255); border: 0; box-shadow: 0 0 0 4px rgba(255,106,61,.45), 0 4px 12px rgba(0,0,0,.4); }
.ill-spol:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(255,181,71,.95), 0 4px 12px rgba(0,0,0,.4); }
.ill-spol:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(255,181,71,.95), 0 4px 12px rgba(0,0,0,.4); }
.ill-faser { display: flex; justify-content: space-between; gap: .2rem; margin: .2rem 2px 0; padding: 0; list-style: none; font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.45); }
.ill-faser li { transition: color .3s; }
.ill-faser li.na { color: var(--ill-am); }
@media (max-width: 459.98px) { .ill-faser li:not(.na) { font-size: 0; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.25); align-self: center; } }
.ill-fase { position: absolute; z-index: 3; left: 12px; top: 10px; padding: .3rem .7rem; border-radius: 99px; font-size: 13px; font-weight: 800; color: rgb(255,255,255);
    background: rgba(9,12,24,.7); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); pointer-events: none; }

/* Lagene i madrassen: knapper som peker på hvert lag */
.ill-lagknapp { position: absolute; z-index: 3; translate: 0 -50%; border: 0; padding: .3rem .65rem; border-radius: 99px; font: inherit; font-size: 12px; font-weight: 700; white-space: nowrap;
    color: rgb(255,255,255); background: rgba(9,12,24,.82); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); cursor: pointer; opacity: 0; transition: opacity .4s, background .25s, box-shadow .25s; }
.ill-lagknapp.vis { opacity: 1; }
.ill-lagknapp.na { background: linear-gradient(135deg, rgb(226,78,32), rgb(214,32,108)); box-shadow: 0 6px 18px -8px rgba(255,61,139,.9); }
.ill-lagknapp:focus { outline: none; }
.ill-lagknapp:focus-visible { outline: 2px solid rgba(255,181,71,.9); outline-offset: 2px; }
@container (max-width: 460px) { .ill-lagknapp { font-size: 10.5px; padding: .22rem .5rem; } }

/* Fullt eller ledig: søylene og avlesningen under illustrasjonen */
.ill-avlest { display: flex; align-items: baseline; gap: .6rem; margin: 14px 6px 8px; font-size: .95rem; color: rgba(255,255,255,.75); }
.ill-avlest b { font-size: 1.35rem; color: rgb(255,255,255); font-variant-numeric: tabular-nums; }
.ill-status { padding: .15rem .6rem; border-radius: 99px; font-size: .8rem; font-weight: 800; color: rgb(10,14,26); background: var(--ill-ok); transition: background .3s; }
.ill-status.s1 { background: var(--ill-am); }
.ill-status.s2 { background: rgb(255,140,90); }
.ill-status.s3 { background: rgb(255,96,140); }
.ill-soyler { display: flex; align-items: flex-end; gap: 3px; height: 54px; margin: 0 6px; }
.ill-soyler i { flex: 1 1 0; height: var(--v); min-height: 3px; border-radius: 3px 3px 1px 1px; background: rgba(255,255,255,.18); transition: background .25s; }
.ill-soyler i.na { background: linear-gradient(rgb(255,181,71), rgb(255,61,139)); box-shadow: 0 0 12px rgba(255,106,61,.6); }
.ill-timer { display: flex; justify-content: space-between; margin: .3rem 6px 0; font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; }

/* Hva illustrasjonene gir dere */
.ill-kort { height: 100%; padding: 1.6rem 1.5rem; border-radius: 14px; background: rgb(255,255,255); box-shadow: 0 0 0 1px rgba(17,24,39,.06), 0 18px 40px -30px rgba(17,24,39,.4); }
.ill-kort h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
.ill-kort p { margin: 0; color: rgb(75,85,99); }
.ill-ikon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: .9rem; color: rgb(204,74,21);
    background: linear-gradient(135deg, rgba(255,181,71,.22), rgba(255,61,139,.14)); }
.ill-ikon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Fra det dere alt har: materialene som merkelapper */
.ill-kilder { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.ill-kilder li { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 10px; font-size: .9rem; font-weight: 700; color: rgb(255,255,255);
    background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.ill-kilder svg { width: 16px; height: 16px; fill: none; stroke: var(--ill-am); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 3D-båndet på temasiden */
.ill-3d-stand .ill-flate { aspect-ratio: 600 / 440; cursor: grab; }
.ill-3d-stand .ill-scene { background: radial-gradient(55% 55% at 50% 60%, rgba(255,106,61,.14), transparent 70%), var(--ill-ink); }

/* Toppbildet på temasiden: samme illustrasjon som strek, flate og dybde. Streken tegnes fra venstre (--o er forsinkelsen). */
.ill-kraft .f { fill: var(--c); fill-opacity: 1; stroke: rgb(255,206,160); stroke-width: 0; stroke-dasharray: 1; stroke-dashoffset: 0; stroke-linejoin: round;
    transition: fill .4s ease, fill-opacity .9s ease, stroke-width .6s ease, stroke-dashoffset 2.4s cubic-bezier(.45,0,.25,1) calc(var(--o, 0) * 1s); }
.ill-kraft .l { fill: none; stroke: var(--c); stroke-dasharray: 1; stroke-dashoffset: 0;
    transition: stroke .9s ease, stroke-dashoffset 2.4s cubic-bezier(.45,0,.25,1) calc(var(--o, 0) * 1s); }
.ill-kraft .bak { fill: var(--c); transition: fill-opacity .9s ease; }
.ill-kraft .dyp { opacity: 0; transition: opacity 1.1s ease; }
.ill-kraft.stil-dybde .dyp { opacity: 1; }
.ill-kraft .vin { --c: rgb(34,42,72); }
.ill-kraft .vin.lys { --c: rgb(255,206,120); }
.ill-kraft.stil-strek .f { fill-opacity: 0; stroke-width: 1.3; }
.ill-kraft.stil-strek .vin.lys { fill-opacity: 1; }
.ill-kraft.stil-strek .l { stroke: rgb(255,206,160); }
.ill-kraft.stil-strek .bak { fill-opacity: 0; }
.ill-kraft.stil-strek .fyll { stroke-width: 0; }
.ill-kraft .kun-strek { stroke-opacity: 0; }
.ill-kraft.stil-strek .kun-strek { stroke-opacity: 1; stroke-width: 1.3; }
.ill-kraft.stil-strek { filter: drop-shadow(0 0 2px rgba(255,140,80,.7)); }
.ill-kraft.tegner .f, .ill-kraft.tegner .l { stroke-dashoffset: 1; transition: none; }
.ill-kraft.stil-dybde .vin.lys { filter: drop-shadow(0 0 3px rgba(255,190,110,.95)); }
.ill-kraft .puls { filter: drop-shadow(0 0 4px rgb(255,170,90)); }
.ill-helt .ill-flate { box-shadow: 0 30px 70px -40px rgba(0,0,0,.8); }

/* Madrassen: laget man peker på, lyser opp */
.ill-madrass-lag { transition: filter .3s ease; }
.ill-madrass-lag.na { filter: brightness(1.12) drop-shadow(0 0 6px rgba(255,140,80,.9)); }
