/* hjerneblod3d.css – "Blodet i hjernen" (2026-11-06). Samme mørke laboratorium på Naturfag, Farmakologi og prøvesiden. */
.hb { --hb-bg: #07111f; --hb-kort: rgba(255, 255, 255, .06); --hb-linje: rgba(255, 255, 255, .14); --hb-tekst: #e6eefa; --hb-svag: #a9bdd6; --hb-rod: #ef4444;
  container-type: inline-size; display: block; border-radius: 24px; overflow: hidden; background: var(--hb-bg); color: var(--hb-tekst); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .8); font-size: .92rem; line-height: 1.5; }
.hb [hidden] { display: none !important; }
.hb-indre { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .9fr); }
@container (max-width: 860px) {
  .hb-indre { grid-template-columns: minmax(0, 1fr); }
  .hb-scene { min-height: clamp(360px, 58vh, 520px); }
  .hb-panel { max-height: none; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .06); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
  .hb-mikro-blok { grid-column: 1 / -1; }
}
.hb-plakat { position: relative; display: grid; place-content: center; justify-items: center; gap: 14px; min-height: clamp(320px, 52vh, 520px); padding: 28px; text-align: center; isolation: isolate;
  background: radial-gradient(520px 320px at 50% 40%, rgba(239, 68, 68, .28), transparent 70%), radial-gradient(700px 400px at 50% 110%, rgba(96, 165, 250, .18), transparent 70%), #07111f; }
.hb-plakat::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background: repeating-radial-gradient(circle at 50% 46%, transparent 0 22px, rgba(239, 68, 68, .14) 23px 24px); animation: hb-puls 1.6s ease-out infinite; }
@keyframes hb-puls { from { transform: scale(.96); opacity: .7; } to { transform: scale(1.06); opacity: .25; } }
.hb-plakat h3 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 850; letter-spacing: -.02em; color: #fff; }
.hb-plakat p { max-width: 56ch; color: #c9d8ea; }
.hb-plakat small { color: #93a9c4; font-size: .78rem; }
.hb-start { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 22px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 850; font-size: 1rem; color: #fff; background: linear-gradient(135deg, #f87171, #b91c1c); box-shadow: 0 14px 28px -14px rgba(239, 68, 68, .9); }
.hb-start:focus-visible { outline: 3px solid #fecaca; outline-offset: 3px; }

.hb-scene { position: relative; min-height: clamp(380px, 64vh, 640px); background: radial-gradient(600px 420px at 50% 40%, rgba(185, 28, 28, .16), transparent 70%), #07111f; }
.hb-host { position: absolute; inset: 0; touch-action: none; cursor: grab; }
.hb-host:active { cursor: grabbing; }
.hb-host canvas { display: block; width: 100% !important; height: 100% !important; }
.hb-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 999px; background: rgba(7, 17, 31, .85); font-weight: 750; }
.hb-status.er-fejl { background: #7f1d1d; border-radius: 14px; max-width: 90%; text-align: center; }
.hb-ur { position: absolute; left: 12px; top: 12px; display: grid; gap: 2px; max-width: min(340px, 75%); padding: 10px 14px; border-radius: 14px; background: rgba(127, 29, 29, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hb-ur b { font-size: 1rem; }
.hb-ur span { font-size: .8rem; color: #fecaca; }
.hb-del { position: absolute; left: 12px; bottom: 56px; display: grid; gap: 2px; max-width: min(320px, 70%); padding: 10px 14px; border-radius: 14px; background: rgba(7, 17, 31, .8); }
.hb-del small { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #93a9c4; }
.hb-del span { font-size: .78rem; color: #b9cde3; }
.hb-knapper { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.hb-knapper button { min-width: 42px; min-height: 40px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--hb-linje); background: rgba(7, 17, 31, .75); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.hb-legende { position: absolute; left: 12px; bottom: 62px; display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: 55%; font-size: .72rem; color: var(--hb-svag); }
.hb-legende i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 50%; vertical-align: -1px; }
.hb-l-blod { background: #ef4444; box-shadow: 0 0 8px #ef4444; } .hb-l-stop { background: #4d4575; } .hb-l-ilt { background: #6d28d9; box-shadow: 0 0 8px #7c3aed; }

.hb-panel { display: grid; align-content: start; gap: 12px; padding: 16px; max-height: clamp(380px, 64vh, 640px); overflow-y: auto; background: linear-gradient(180deg, #0c1a2e, #081322); border-left: 1px solid rgba(255, 255, 255, .06); }
.hb-blok { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: var(--hb-kort); border: 1px solid rgba(255, 255, 255, .07); }
.hb-blok h4 { font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: #fca5a5; font-weight: 850; }
.hb-tekst { color: #c9d8ea; font-size: .86rem; }
.hb-valg { display: flex; flex-wrap: wrap; gap: 6px; }
.hb-valg button, .hb-medicin button, .hb-nulstil, .hb-hoved { min-height: 40px; padding: 7px 12px; border-radius: 12px; border: 1px solid var(--hb-linje); background: rgba(255, 255, 255, .05); color: var(--hb-tekst); font: inherit; font-size: .84rem; font-weight: 750; cursor: pointer; text-align: left; }
.hb-valg button b, .hb-medicin button b { display: block; font-size: .86rem; }
.hb-valg button small, .hb-medicin button small { display: block; font-size: .72rem; font-weight: 600; color: var(--hb-svag); }
.hb-valg button[aria-pressed="true"], .hb-medicin button[aria-pressed="true"] { background: #b91c1c; border-color: #ef4444; color: #fff; }
.hb-valg button[aria-pressed="true"] small, .hb-medicin button[aria-pressed="true"] small { color: #fee2e2; }
.hb-valg button:disabled { opacity: .45; cursor: not-allowed; }
.hb-valg-lille button { min-height: 34px; padding: 5px 10px; font-size: .78rem; }
.hb-valg button.hb-bloedning { border-color: rgba(239, 68, 68, .5); }
.hb-medicin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.hb-medicin button.hb-akut { grid-column: 1 / -1; border-style: dashed; }
.hb-hoved { justify-self: start; background: linear-gradient(135deg, #f87171, #b91c1c); border: 0; color: #fff; font-weight: 850; }
.hb-nulstil { justify-self: start; }
.hb button:focus-visible { outline: 3px solid #fecaca; outline-offset: 2px; }
.hb-glider { display: grid; gap: 4px; font-size: .86rem; }
.hb-glider input { width: 100%; accent-color: #ef4444; }
.hb-liste { display: grid; gap: 5px; padding-left: 18px; color: #e6eefa; font-size: .86rem; }
.hb-fast { padding: 8px 10px; border-radius: 10px; background: rgba(239, 68, 68, .14); color: #fecaca; font-size: .82rem; }
.hb-fast b { color: #fff; font-size: 1rem; }
.hb-maaler { display: grid; gap: 4px; font-size: .78rem; color: var(--hb-svag); }
.hb-maaler div { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.hb-maaler i { display: block; height: 100%; border-radius: inherit; transition: width .6s cubic-bezier(.3, .8, .3, 1); background: #22c55e; }
.hb-maaler i[data-niveau="mellem"] { background: #f59e0b; } .hb-maaler i[data-niveau="hoej"] { background: #ef4444; }
.hb-mikro { display: block; width: 100%; height: auto; border-radius: 12px; background: #3a0c13; }
.hb-mikro-tekst { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .74rem; color: var(--hb-svag); }
.hb-mikro-tekst i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 50%; vertical-align: -1px; }
.hb-kilde { margin-top: 8px; font-size: .78rem; color: var(--sd-soft, #64748b); }

@media (max-width: 600px) { .hb-legende { display: none; } .hb-scene { min-height: 380px; } }
@media (prefers-reduced-motion: reduce) { .hb-plakat::before { animation: none; } }
@media print { .hb { display: none !important; } }

/* Naturfag: faktakort og opgaver omkring modellen */
.hb-sektion .hb { margin: 14px 0; }
.hb-fakta { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 14px 0; }
.hb-fakta article { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid rgba(13, 32, 56, .1); border-top: 4px solid #ef4444; box-shadow: 0 10px 22px -18px rgba(13, 32, 56, .5); }
.hb-fakta b { display: block; margin-bottom: 4px; color: #10233f; }
.hb-fakta p { font-size: .9rem; line-height: 1.5; color: #344a63; }
.hb-opgaver { margin: 14px 0; padding: 16px; border-radius: 18px; background: #fff7f7; border: 1px solid #fecaca; }
.hb-opgaver h3 { font-size: 1.05rem; color: #7f1d1d; margin-bottom: 8px; }
.hb-opgaver ol { display: grid; gap: 6px; padding-left: 20px; color: #3b1d1d; font-size: .93rem; line-height: 1.5; }
.hb-mere { margin-top: 10px; font-size: .88rem; }
.hb-mere a { color: #b91c1c; font-weight: 700; }
@media (prefers-color-scheme: dark) {
  .hb-fakta article { background: #0f1f35; border-color: rgba(255, 255, 255, .08); border-top-color: #ef4444; }
  .hb-fakta b { color: #f1f5fb; } .hb-fakta p { color: #b9cde3; }
  .hb-opgaver { background: #2a1015; border-color: #5c1a22; } .hb-opgaver h3 { color: #fecaca; } .hb-opgaver ol { color: #f3dede; } .hb-mere a { color: #fca5a5; }
}

/* Fuldskærm (2026-11-07): rigtig fuldskærm eller, uden Fullscreen API, hele vinduet */
.hb:fullscreen, .hb:-webkit-full-screen { width: 100%; height: 100%; border-radius: 0; border: 0; overflow: hidden; }
.hb.hb-fuld { position: fixed; inset: 0; z-index: 10000; border-radius: 0; border: 0; overflow: hidden; height: 100dvh; }
.hb:fullscreen .hb-indre, .hb.hb-fuld .hb-indre { height: 100%; }
.hb:fullscreen .hb-scene, .hb.hb-fuld .hb-scene { min-height: 0; height: 100%; }
.hb:fullscreen .hb-panel, .hb.hb-fuld .hb-panel { max-height: 100%; height: 100%; }
html.hb-laast, html.hb-laast body { overflow: hidden; }
.hb-knapper button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
@container (max-width: 860px) {
  .hb-indre { grid-template-rows: auto; }
}
@media (max-width: 860px) {
  .hb:fullscreen .hb-indre, .hb.hb-fuld .hb-indre { grid-template-columns: minmax(0, 1fr); grid-template-rows: 58% 42%; }
  .hb:fullscreen .hb-panel, .hb.hb-fuld .hb-panel { overflow-y: auto; grid-template-columns: minmax(0, 1fr); }
}
.hb-knapper { flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 24px); }
@media (max-width: 600px) { .hb [data-hb-fuld], .hb [data-hs-fuld], .hb [data-hb-foto], .hb [data-hs-foto], .hb [data-sy-fuld], .hb [data-sy-foto] { font-size: 0; padding: 6px 10px; } .hb [data-hb-fuld] span, .hb [data-hs-fuld] span, .hb [data-hb-foto] span, .hb [data-hs-foto] span, .hb [data-sy-fuld] span, .hb [data-sy-foto] span { font-size: 1rem; } .hb-knapper { gap: 4px; } .hb-knapper button { min-width: 38px; padding: 6px 8px; } }

