/* ─────────────────────────────────────────────────────────────────────────────
   Gæste-Bjarne — bjarne.bearcave.dk (2026-10-24, mockup-bjarne-gaest.html)
   Aurora's Bjarne-ark (.bj-*) som en hel side. Præfiks gb- (gæste-Bjarne) —
   nøgne ét-ords klassenavne er offentlig ejendom. Mobile-first; fra 700 px
   står arket som et kort midt på skærmen.
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  --sky-top: #0b1230; --sky-mid: #27335e; --sky-hz: #d97a4e;
  --bj-base: color-mix(in srgb, color-mix(in srgb, var(--sky-mid) 55%, var(--sky-top)) 62%, #0a0c1a);
  --lift-off-top: rgba(255,255,255,.13); --lift-off-bot: rgba(255,255,255,.05);
  --green: #a6e3a1; --red: #f38ba8; --yellow: #f9e2af;
  --gb-kb: 0px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 -apple-system, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #fff;
  background: #0b1230 linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 50%, var(--sky-hz) 100%) fixed;   /* præcis Aurora's .aurora-bg-base */
  -webkit-font-smoothing: antialiased; overflow: hidden; }
/* Aurora's haze (.aurora-bg-haze): to bløde lyspletter blandet med screen */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .25; mix-blend-mode: screen;
  background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(255,255,255,.06), transparent 70%), radial-gradient(ellipse 70% 40% at 80% 100%, rgba(255,255,255,.04), transparent 60%); }
.gb-root { z-index: 1; }
/* Aurora's noise-overlay: masker dithering på gradienten (KRITISK i Aurora — her bare pænt) */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .06; z-index: 5000;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>"); }

.gb-root { position: fixed; inset: 0; display: flex; flex-direction: column; padding-top: max(44px, env(safe-area-inset-top, 0px)); }
.gb-sheet { margin: auto 0 0; height: calc(100% - var(--gb-kb)); display: flex; flex-direction: column; color: #fff;
  border-radius: 22px 22px 0 0; overflow: hidden; position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.05)), color-mix(in srgb, var(--bj-base) 92%, transparent);
  box-shadow: 0 -10px 40px rgba(0,0,0,.35); }
[hidden] { display: none !important; }

/* ── Bjarne ─────────────────────────────────────────────────────────────── */
.gb-ava { width: 30px; height: 30px; flex: none; display: grid; place-items: center; }
.gb-ava svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.gb-ava-stor { width: 128px; height: 128px; margin: 0 auto 14px; }
.gb-ava-stor svg { filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)); }
.bjl-br { transform-box: view-box; transform-origin: 32px 56px; animation: gbBreathe 4.2s ease-in-out infinite; }
@keyframes gbBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.025, 1.04); } }
.gb-ava.taenker .bjl-br { animation: gbNod 1.1s ease-in-out infinite; }
@keyframes gbNod { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-5deg); } 70% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .bjl-br, .gb-ava.taenker .bjl-br, .bjl [class*="bjx-"] { animation: none !important; } .gb-boble { animation: gbBoble .3s both; } }

/* ── Kode-skærm ──────────────────────────────────────────────────────────── */
.gb-hello { margin: auto 0; padding: 24px 22px 28px; text-align: center; overflow-y: auto; }
.gb-boble { display: inline-block; position: relative; max-width: 300px; margin: 4px auto 22px; padding: 14px 20px 15px; border-radius: 22px; font-size: 17px; font-weight: 500; line-height: 1.35; color: #fff; letter-spacing: -.1px; text-align: left;
  background: linear-gradient(160deg, rgba(255,170,120,.42), rgba(255,130,90,.2)), color-mix(in srgb, var(--bj-base) 60%, transparent);
  box-shadow: 0 10px 28px rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,185,140,.38), inset 0 1px 0 rgba(255,255,255,.18);
  animation: gbBoble .55s cubic-bezier(.34,1.56,.64,1) .25s both, gbSvaev 3.6s ease-in-out 1s infinite; transform-origin: 50% 115%; }
.gb-boble .hale { position: absolute; left: 50%; bottom: -18px; width: 28px; height: 22px; translate: -40% 0; fill: rgba(236,142,104,.72); filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.gb-boble .hale path { stroke: rgba(255,185,140,.5); stroke-width: 1; paint-order: stroke; }
@keyframes gbSvaev { 0%, 100% { translate: 0 0; rotate: -.6deg; } 50% { translate: 0 -4px; rotate: .6deg; } }
@keyframes gbBoble { from { opacity: 0; transform: scale(.6) translateY(8px); } }
.gb-hello h1 { font-weight: 300; font-size: 28px; margin: 0; letter-spacing: -.3px; }
.gb-hello p { font-size: 13.5px; color: rgba(255,255,255,.75); margin: 8px auto 0; max-width: 300px; line-height: 1.5; }
.gb-form { margin: 22px auto 0; max-width: 300px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.gb-form { padding: 16px 14px 14px; border-radius: 18px; background: rgba(0,0,0,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); max-width: 320px; }
.gb-form label { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.85); margin: 0 0 -3px 4px; }
.gb-form label + .gb-in { margin-bottom: 4px; }
.gb-in { height: 50px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.28); background: rgba(255,255,255,.07); color: #fff; padding: 0 14px;
  font: inherit; font-size: 17px; width: 100%; outline: none; -webkit-appearance: none; appearance: none; }
.gb-in::placeholder { color: rgba(255,255,255,.4); }
.gb-in:focus { border-color: rgba(255,170,120,.85); box-shadow: 0 0 0 4px rgba(255,138,92,.2); background: rgba(255,255,255,.1); }
.gb-in.code { font-size: 24px; font-weight: 400; letter-spacing: .26em; text-align: center; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.gb-in.code::placeholder { letter-spacing: .28em; }
.gb-btn { height: 46px; border-radius: 14px; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: #fff; cursor: pointer; margin-top: 4px;
  background: linear-gradient(160deg, rgba(255,138,92,.72), rgba(255,95,58,.48)); box-shadow: inset 0 0 0 1px rgba(255,170,120,.3); -webkit-tap-highlight-color: transparent; }
.gb-btn:active { transform: scale(.98); }
.gb-btn[disabled] { opacity: .6; cursor: default; }
.gb-fejl { font-size: 12.5px; color: #ffd3dd; background: rgba(243,139,168,.16); padding: 8px 12px; border-radius: 10px; margin: 0; text-align: center; }
.gb-form .gb-fejl { margin-top: 2px; }
/* Hvad Bjarne kan (mockup-bjarne-gaest-kan.html · B) */
.gb-kan { margin: 12px auto 0; max-width: 320px; text-align: left; border-radius: 16px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22); overflow: hidden; }
.gb-kan-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; border: 0; background: none; color: rgba(255,255,255,.78); font: inherit; font-size: 13px; padding: 11px 10px 11px 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gb-kan-h b { font-weight: 600; color: #fff; }
.gb-kan-h svg { width: 14px; height: 14px; flex: none; }
.gb-kan-h .pil { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; transition: transform .25s, background .2s; }
.gb-kan-h[aria-expanded="true"] .pil { transform: rotate(180deg); background: rgba(255,138,92,.45); }
@media (hover: hover) { .gb-kan-h:hover .pil { background: rgba(255,255,255,.22); } }
.gb-kan-b { margin: 0 8px 8px; border-radius: 12px; background: rgba(0,0,0,.22); padding: 10px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 12px; animation: gbFade .25s ease; }
.gb-kan-b div { display: flex; align-items: flex-start; gap: 6px; line-height: 1.35; }
.gb-kan-b i { font-style: normal; font-weight: 700; flex: none; }
.gb-kan-b .ja i { color: #a6e3a1; } .gb-kan-b .nej { color: rgba(255,255,255,.6); } .gb-kan-b .nej i { color: #f38ba8; }
.gb-fine { font-size: 11px; color: rgba(255,255,255,.42); text-align: center; margin-top: 14px; line-height: 1.5; }

/* ── Chat ────────────────────────────────────────────────────────────────── */
.gb-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); flex: none; }
.gb-ht { flex: 1; min-width: 0; }
.gb-ht b { display: block; font-size: 15px; font-weight: 400; }
.gb-ht small { display: block; font-size: 10px; color: rgba(255,255,255,.42); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-pill { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 600;
  color: rgba(255,255,255,.78); background: rgba(255,255,255,.08); flex: none; -webkit-tap-highlight-color: transparent; }
.gb-pill svg { width: 13px; height: 13px; }
.gb-pill.gb-ud { color: rgba(255,255,255,.55); width: 30px; padding: 0; justify-content: center; }
.gb-pill.gb-ud svg { width: 15px; height: 15px; }
@media (hover: hover) { .gb-pill:hover { background: rgba(255,255,255,.15); color: #fff; } }

.gb-msgs { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 10px;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 18px), transparent); }
.gb-day { align-self: center; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 2px; }
.gb-m { max-width: 86%; font-size: 14px; line-height: 1.45; -webkit-user-select: text; user-select: text; }
.gb-m.u { align-self: flex-end; padding: 9px 12px; border-radius: 16px 16px 4px 16px; white-space: pre-wrap; overflow-wrap: anywhere;
  background: linear-gradient(160deg, rgba(137,196,255,.42), rgba(137,196,255,.24)); }
.gb-m.b { display: flex; gap: 8px; align-items: flex-start; }
.gb-m.b > .gb-ava { width: 24px; height: 24px; margin-top: 2px; }
.gb-m.b .bub { padding: 9px 12px; border-radius: 16px 16px 16px 4px; overflow-wrap: anywhere;
  background: linear-gradient(160deg, var(--lift-off-top), var(--lift-off-bot)); }
.gb-m.b .bub ul { margin: 4px 0 0; padding-left: 18px; } .gb-m.b .bub li { margin: 2px 0; }
.gb-m.b .bub a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
.gb-m.b.err .bub { background: rgba(243,139,168,.16); color: rgba(255,255,255,.9); }
.gb-tools { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.gb-tools span { display: inline-flex; align-items: center; font-size: 10px; font-weight: 600; color: rgba(255,255,255,.6); padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.16); }
.gb-typing { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(255,255,255,.78); padding: 2px 0; }
.gb-typing i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #ffd0a8; animation: gbDot 1.4s infinite; }
.gb-typing i:nth-child(2) { animation-delay: .2s; } .gb-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes gbDot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.gb-cur { display: inline-block; width: 7px; height: 14px; background: #ffd27a; vertical-align: -2px; margin-left: 1px; animation: gbBlink 1s steps(2) infinite; }
@keyframes gbBlink { 50% { opacity: 0; } }
.gb-tom { margin: auto 0; text-align: center; padding: 10px; }
.gb-tom .gb-ava { width: 60px; height: 60px; margin: 0 auto 10px; }
.gb-tom b { display: block; font-size: 17px; font-weight: 400; }
.gb-tom p { font-size: 13px; color: rgba(255,255,255,.75); margin: 6px auto 0; max-width: 290px; line-height: 1.5; }

.gb-sugg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 14px 10px; flex: none; position: relative; }
.gb-sugg button { font: inherit; font-size: 12.5px; padding: 7px 11px; border-radius: 999px; border: 0; cursor: pointer; min-width: 0; text-align: left; display: flex; align-items: center;
  color: #ffe6d6; background: linear-gradient(160deg, rgba(255,170,120,.28), rgba(255,130,90,.12)); box-shadow: inset 0 0 0 1px rgba(255,170,120,.22);
  animation: gbFade .25s ease; -webkit-tap-highlight-color: transparent; }
.gb-sugg button .tx { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gb-sugg button:active { transform: scale(.96); }
/* «Hop ud» — kopien af et afkortet forslag (som Aurora's .bj-spop) */
.gb-spop { position: absolute; z-index: 5; display: flex; align-items: center; font-size: 12.5px; padding: 7px 11px; border-radius: 999px; white-space: nowrap; cursor: pointer; box-sizing: border-box;
  color: #ffe6d6; background: linear-gradient(160deg, rgba(255,170,120,.36), rgba(255,130,90,.18)), color-mix(in srgb, var(--bj-base) 98%, transparent);
  box-shadow: 0 10px 26px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,170,120,.3);
  transition: width .42s cubic-bezier(.34,1.56,.64,1), left .42s cubic-bezier(.34,1.56,.64,1), transform .42s cubic-bezier(.34,1.56,.64,1); }
.gb-spop.on { transform: translateY(-3px) scale(1.03); }
.gb-spop .tx { overflow: hidden; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .gb-spop { transition: none; } .gb-spop.on { transform: none; } }
@keyframes gbFade { from { opacity: 0; transform: translateY(3px); } }

.gb-bar { display: flex; gap: 8px; align-items: flex-end; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,.08); flex: none; margin: 0; }
.gb-att { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); -webkit-tap-highlight-color: transparent; }
.gb-att svg { width: 18px; height: 18px; }
.gb-att.on { color: #ffe6d6; background: rgba(255,138,92,.3); }
.gb-att[disabled] { opacity: .4; cursor: default; }
.gb-attprev { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px 0; font-size: 12px; color: rgba(255,255,255,.7); }
.gb-attprev .img { position: relative; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex: none; background: rgba(0,0,0,.25); }
.gb-attprev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gb-attprev .x { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; line-height: 18px; text-align: center; cursor: pointer; padding: 0; }
.gb-attprev.err { color: #ffd3dd; }
.gb-m.u img { display: block; max-width: 100%; max-height: 220px; border-radius: 10px; margin: -3px -6px 6px; width: auto; }
.gb-m.u .bild { font-size: 11px; color: rgba(255,255,255,.75); margin-bottom: 2px; }
.gb-field { flex: 1; min-height: 40px; max-height: 120px; border-radius: 20px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.12); color: #fff;
  padding: 10px 14px; font: inherit; font-size: 16px; line-height: 1.3; resize: none; outline: none; -webkit-appearance: none; appearance: none;
  overflow-y: hidden; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }   /* rullebjælken kun når teksten er længere end feltet (autoH) — og så mørk, ikke Windows-hvid */
.gb-field::-webkit-scrollbar { width: 6px; } .gb-field::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 3px; } .gb-field::-webkit-scrollbar-track { background: transparent; }
.gb-field::placeholder { color: rgba(255,255,255,.4); }
.gb-field:focus { border-color: rgba(255,170,120,.5); }
.gb-send { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(255,138,92,.72), rgba(255,95,58,.48)); -webkit-tap-highlight-color: transparent; }
.gb-send svg { width: 16px; height: 16px; }
.gb-send[disabled] { opacity: .45; cursor: default; }
.gb-send.stop svg { display: none; }
.gb-send.stop::after { content: ""; width: 12px; height: 12px; border-radius: 2px; background: #fff; }

/* ── Tablet/desktop: arket som et kort ───────────────────────────────────── */
@media (min-width: 700px) {
  .gb-root { padding: 24px; align-items: center; justify-content: center; }
  .gb-sheet { margin: 0; width: min(760px, 100%); height: min(860px, 100%); border-radius: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); }
  .gb-bar { padding: 10px 16px 14px; }
  .gb-msgs { padding: 18px 20px 20px; gap: 12px; }
  .gb-m { max-width: 78%; font-size: 15px; }
  .gb-sugg { padding: 0 20px 12px; }
  .gb-sugg button, .gb-spop { font-size: 13px; padding: 8px 13px; }
  .gb-tom .gb-ava { width: 110px; height: 110px; }
  .gb-tom b { font-size: 22px; } .gb-tom p { font-size: 15px; max-width: 380px; }
  .gb-hello h1 { font-size: 32px; } .gb-hello p { font-size: 15px; max-width: 380px; }
  .gb-ava-stor { width: 150px; height: 150px; }
  .gb-boble { max-width: 340px; font-size: 19px; padding: 16px 24px 17px; }
  .gb-kan { max-width: 380px; } .gb-kan-b { font-size: 13px; }
}
@media (min-width: 1100px) {
  .gb-sheet { width: min(960px, 100%); height: min(940px, 100%); }
  .gb-msgs { padding: 22px 28px 22px; }
  .gb-m { max-width: 72%; }
  .gb-sugg { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 28px 14px; }
  .gb-bar { padding: 12px 24px 16px; }
}

/* ── Små bevægelser pr. humør — kopieret ordret fra aurora.css (.bjl .bjx-*), 2026-10-24.
   Ret dem i aurora.css og kopiér igen; de skal være ens de to steder. ── */
/* ═════════════ NYT: små bevægelser pr. humør (.bjx-*) ═════════════
   Alle bruger de individuelle egenskaber translate / rotate / scale, så de
   lægger sig OVEN PÅ bearRig's transform (vejrtrækning, «klar», øre-vip) og
   oven på tegningens egne transform-attributter (snefnug) uden at slås. */
.bjl .bjl-look { transform-box: view-box; }
.bjl [class*="bjx-"] { transform-box: view-box; }

/* Kigger sig omkring — alle med åbne øjne, ca. hvert 13. sekund */
.bjl.bjl-blinks .bjl-look { animation: bjxLook 13s ease-in-out infinite; }
@keyframes bjxLook { 0%, 76%, 100% { translate: 0 0; } 80%, 86% { translate: -1.5px 0; } 89%, 95% { translate: 1.4px 0; } }

/* glad — lægger hovedet på skrå en gang imellem */
.bjl[data-mood="glad"] .bjl-br { animation: bjlBreathe 4.2s ease-in-out infinite, bjxTilt 9s ease-in-out infinite; }
@keyframes bjxTilt { 0%, 68%, 100% { rotate: 0deg; } 74% { rotate: -5deg; } 82% { rotate: 3deg; } 88% { rotate: 0deg; } }

/* energisk — stjernerne funkler, og han hopper en gang imellem */
.bjl[data-mood="energisk"] .bjl-br { animation: bjlBreathe 4.2s ease-in-out infinite, bjxHop 5s ease-out infinite; }
.bjl .bjx-s1 { transform-origin: 54px 10px; animation: bjxTw 2.4s ease-in-out infinite; }
.bjl .bjx-s2 { transform-origin: 10px 20px; animation: bjxTw 2.4s ease-in-out .8s infinite; }
.bjl .bjx-s3 { transform-origin: 44px 6px;  animation: bjxTw 2.4s ease-in-out 1.5s infinite; }
@keyframes bjxTw { 0%, 100% { scale: .55; opacity: .45; rotate: 0deg; } 50% { scale: 1.12; opacity: 1; rotate: 25deg; } }
@keyframes bjxHop { 0%, 80%, 100% { translate: 0 0; } 86% { translate: 0 -2.6px; } 91% { translate: 0 0; } 94% { translate: 0 -1px; } 97% { translate: 0 0; } }

/* festlig — hatten vipper, konfettien popper */
.bjl[data-mood="festlig"] .bjl-br { animation: bjlBreathe 4.2s ease-in-out infinite, bjxHop 3.6s ease-out infinite; }
.bjl .bjx-hat { transform-origin: 32px 17px; animation: bjxWob 2.6s ease-in-out infinite; }
@keyframes bjxWob { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }
.bjl .bjx-cf { transform-box: fill-box; transform-origin: 50% 50%; animation: bjxPop 2.2s ease-in-out infinite; }
.bjl .bjx-cf.c2 { animation-delay: .55s; } .bjl .bjx-cf.c3 { animation-delay: 1.1s; } .bjl .bjx-cf.c4 { animation-delay: 1.65s; }
@keyframes bjxPop { 0%, 100% { scale: .3; opacity: .25; translate: 0 1px; } 40% { scale: 1.3; opacity: 1; translate: 0 -1px; } 70% { scale: .9; opacity: .8; } }

/* zzz — stiger op og forsvinder (træt, sover) */
.bjl .bjl-zz { animation: bjxZ 3.4s ease-out infinite; }
.bjl .bjl-zz[x="54"] { animation-delay: 1.7s; }
.bjl[data-mood="sover"] .bjl-zz { animation-duration: 4.4s; }
.bjl[data-mood="sover"] .bjl-zz[x="54"] { animation-delay: 2.2s; }
@keyframes bjxZ { 0% { translate: -1px 3px; opacity: 0; } 25% { opacity: 1; } 100% { translate: 3px -7px; opacity: 0; } }

/* træt — nikker langsomt ind og vågner igen */
.bjl[data-mood="traet"] .bjl-br { animation: bjlBreathe 5s ease-in-out infinite, bjxNod 8s ease-in-out infinite; }
@keyframes bjxNod { 0%, 58%, 100% { translate: 0 0; rotate: 0deg; } 70%, 78% { translate: 0 1.8px; rotate: 2deg; } 82% { translate: 0 -.6px; rotate: -1deg; } 86% { translate: 0 0; rotate: 0deg; } }

/* morgentræt — damp fra kaffen, og et søvnigt nik */
.bjl[data-mood="morgentraet"] .bjl-br { animation: bjlBreathe 5s ease-in-out infinite, bjxNod 10s ease-in-out infinite; }
.bjl .bjx-steam { animation: bjxSteam 2.8s ease-out infinite; }
@keyframes bjxSteam { 0% { translate: 0 3px; opacity: 0; } 30% { opacity: .9; } 100% { translate: .5px -4px; opacity: 0; } }

/* sover — dyb, langsom vejrtrækning; kvasten på nathuen vipper med */
.bjl[data-mood="sover"] .bjl-br { animation-duration: 6s; }
.bjl .bjx-pom { animation: bjxBob 6s ease-in-out infinite; }
@keyframes bjxBob { 0%, 100% { translate: 0 0; } 50% { translate: .7px 1.3px; } }

/* hyggelig — vugger stille, kinderne gløder */
.bjl[data-mood="hyggelig"] .bjl-br { animation: bjlBreathe 4.2s ease-in-out infinite, bjxRock 6s ease-in-out infinite; }
@keyframes bjxRock { 0%, 100% { rotate: -2.5deg; } 50% { rotate: 2.5deg; } }
.bjl .bjx-ck { animation: bjxBlush 4s ease-in-out infinite; }
@keyframes bjxBlush { 0%, 100% { opacity: .4; } 50% { opacity: .85; } }

/* pride — det bølgede flag vajer fra pinden */
.bjl .bjx-flag { transform-origin: 55.1px 25.8px; animation: bjxWave 2.2s ease-in-out infinite; }
@keyframes bjxWave { 0%, 100% { transform: skewY(0deg) scaleX(1); } 30% { transform: skewY(-4deg) scaleX(.95); } 65% { transform: skewY(3deg) scaleX(.98); } }

/* varm — solen drejer og pulserer, glimt i brillerne, en svedperle */
.bjl .bjx-rays { transform-origin: 53px 11px; animation: bjxSpin 14s linear infinite; }
.bjl .bjx-sun  { transform-origin: 53px 11px; animation: bjxPulse 3s ease-in-out infinite; }
@keyframes bjxSpin { to { rotate: 360deg; } }
@keyframes bjxPulse { 0%, 100% { scale: 1; } 50% { scale: 1.12; } }
.bjl .bjx-gl { animation: bjxGlint 5s ease-in-out infinite; }
.bjl .bjx-gl.g2 { animation-delay: .12s; }
@keyframes bjxGlint { 0%, 78%, 100% { opacity: .8; } 84% { opacity: 0; } 90% { opacity: 1; stroke: #fff; } }
.bjl .bjx-sw { animation: bjxDrip 3.8s ease-in infinite; }
@keyframes bjxDrip { 0% { translate: 0 -1px; opacity: 0; } 15% { opacity: 1; } 70% { translate: 0 5px; opacity: 1; } 100% { translate: 0 8px; opacity: 0; } }

/* kold — små kuldegysninger, frost-gnist, kvasten vipper */
.bjl[data-mood="kold"] .bjl-all { animation: bjxShiver 4.5s linear infinite; }
@keyframes bjxShiver { 0%, 82%, 100% { translate: 0 0; } 84% { translate: -.8px 0; } 86% { translate: .8px 0; } 88% { translate: -.8px 0; } 90% { translate: .7px 0; } 92% { translate: -.5px 0; } 94% { translate: 0 0; } }
.bjl .bjx-tw { transform-origin: 9px 34px; animation: bjxTw 2.6s ease-in-out infinite; }
.bjl[data-mood="kold"] .bjx-pom { animation: bjxBob 3s ease-in-out infinite; }

/* regn — dråberne falder, paraplyen vipper */
.bjl .bjx-rain line { animation: bjxRain 1.2s linear infinite; }
.bjl .bjx-rain line:nth-child(2) { animation-delay: .4s; } .bjl .bjx-rain line:nth-child(3) { animation-delay: .8s; } .bjl .bjx-rain line:nth-child(4) { animation-delay: .2s; }
@keyframes bjxRain { 0% { translate: 1px -4px; opacity: 0; } 25% { opacity: 1; } 80% { opacity: 1; } 100% { translate: -1px 5px; opacity: 0; } }
/* paraplyen vipper fra poten (skaft og skærm drejer om samme punkt) */
.bjl .bjx-umb { transform-origin: 54px 56px; animation: bjxSway 4s ease-in-out infinite; }
@keyframes bjxSway { 0%, 100% { rotate: -2deg; } 50% { rotate: 2deg; } }

/* sne — fnuggene daler og drejer */
.bjl .bjx-fl { transform-box: fill-box; transform-origin: 50% 50%; animation: bjxSnow 3.6s linear infinite; }
.bjl .bjx-fl.f2 { animation-delay: .9s; } .bjl .bjx-fl.f3 { animation-delay: 1.8s; } .bjl .bjx-fl.f4 { animation-delay: 2.7s; }
@keyframes bjxSnow { 0% { translate: 0 -3px; rotate: 0deg; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { translate: .5px 5px; rotate: 90deg; opacity: 0; } }

/* ── Vækkes: lukkede øjne (træt, morgentræt, sover, hyggelig) åbner sig sløvt ──
   De åbne øjne ligger skjult i tegningen (.bjx-wake) under øjenlågene. «Vågen»
   = musen over, et tryk eller når man åbner dashboardet (.bjx-awake i nogle
   sekunder). Øjnene glider halvt op, falder lidt ned igen og åbner så helt —
   kigger sig omkring — og lukker langsomt igen, når man lader ham være. */
.bjl .bjx-wake { transform-box: fill-box; transform-origin: 50% 55%; scale: 1 .06; opacity: 0;
  transition: scale 1.1s cubic-bezier(.55,0,.8,.2), opacity .35s .75s; }
.bjl:is([data-mood="traet"], [data-mood="morgentraet"], [data-mood="sover"], [data-mood="hyggelig"]) .bjl-eyes { transition: opacity .45s .7s; }
.bjl.bjx-awake .bjx-wake { scale: 1 1; opacity: 1; transition: none;
  animation: bjxWake 1.8s ease-out both, bjxGlance 2.6s ease-in-out 2s both; }
.bjl:is([data-mood="traet"], [data-mood="morgentraet"], [data-mood="sover"], [data-mood="hyggelig"]).bjx-awake .bjl-eyes { opacity: 0; transition: opacity .2s .08s; }
.bjl.bjx-awake .bjl-zz { animation: none; opacity: 0; }
.bjl:is([data-mood="traet"], [data-mood="morgentraet"]).bjx-awake .bjl-br { animation: bjlBreathe 4.2s ease-in-out infinite; }
/* hyggelig sover IKKE — øjnene er lukkede af ren hygge. Han åbner dem helt
   normalt (hurtigt, uden det søvnige), når han hilser, og smiler med dem igen bagefter. */
.bjl[data-mood="hyggelig"] .bjx-wake { transition: scale .22s ease-in, opacity .12s .12s; }
.bjl[data-mood="hyggelig"] .bjl-eyes { transition: opacity .15s .14s; }
.bjl[data-mood="hyggelig"].bjx-awake .bjx-wake { animation: bjxOpen .26s ease-out both; }
.bjl[data-mood="hyggelig"].bjx-awake .bjl-eyes { transition: opacity .1s; }
@keyframes bjxOpen { 0% { scale: 1 .1; opacity: 0; } 30% { opacity: 1; } 100% { scale: 1 1; opacity: 1; } }
@keyframes bjxWake { 0% { scale: 1 .06; opacity: 0; } 8% { opacity: 1; } 22% { scale: 1 .5; } 36% { scale: 1 .26; } 50% { scale: 1 .3; } 68% { scale: 1 .8; } 80% { scale: 1 .62; } 100% { scale: 1 1; opacity: 1; } }
