/* Emilia – Maskottchen auf der Startseite (js/emilia.js) */
.emilia-walk { position: relative; height: 104px; margin-top: 20px; border-radius: var(--radius); box-shadow: var(--shadow);
  background: linear-gradient(100deg, rgba(214,60,60,.95) 0%, rgba(214,60,60,.75) 45%, rgba(140,30,30,.25) 100%), var(--hero-bg, none) center / cover;
  background-color: var(--accent); }
.emilia { position: absolute; left: 0; bottom: 4px; z-index: 2; padding: 0; border: 0; cursor: pointer;
  background: url('/app/img/emilia.png') no-repeat 0 0; image-rendering: pixelated;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); }
.emilia:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.emilia-mark { display: none; position: absolute; left: 50%; top: -22px; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--accent); font: 800 14px/20px system-ui; text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.35); animation: emi-bob 1s ease-in-out infinite; }
.emilia.flip .emilia-mark { transform: translateX(-50%) scaleX(-1); }
.emilia.unread .emilia-mark { display: block; }
@keyframes emi-bob { 50% { top: -27px; } }
/* Sprechblase im Pixel-Stil (img/emilia-box.png, 128×64, 2× skaliert, 9-Slice):
   oben 43 px (Rahmen, Titelbereich, Speer), unten 20 px, links 30 px (Speerspitze), rechts 34 px (Drache);
   Mitte 64 px breit, alle 8 px periodisch → Breite immer (64 + 64·k)·2 px, damit die Kacheln exakt aufgehen. */
.emilia-bubble { position: absolute; bottom: 92px; z-index: 30; isolation: isolate; color: #f2eee6;
  padding: 32px 26px 34px 58px; min-height: 128px; text-align: left; font-size: .9rem; line-height: 1.35;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.emilia-bubble::before { content: ""; position: absolute; inset: 0; z-index: -1; image-rendering: pixelated;
  border-style: solid; border-width: 86px 68px 40px 60px;
  border-image: url('/app/img/emilia-box.png') 43 34 20 30 fill / 86px 68px 40px 60px repeat stretch; }
.emilia-bubble a { color: #ffd479; }
.emilia-x { position: absolute; top: 26px; right: 74px; border: 0; background: none; color: #d8d2c4; cursor: pointer; font-size: .85rem; }
.emilia-x:hover { color: #fff; }
.emilia-head { display: flex; gap: 8px; align-items: baseline; height: 28px; padding-right: 64px; margin-bottom: 24px; overflow: hidden; }
.emilia-head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; letter-spacing: .01em; }
.emilia-head .muted { color: #b9b2c6; white-space: nowrap; }
.emilia-text { max-height: 220px; overflow: auto; padding-right: 4px; }
.emilia-bubble .muted { color: #b9b2c6; }
.emilia-foot { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; justify-content: space-between; margin-top: 10px; }
/* Knöpfe in den Farben der Box: dunkles Feld, goldener Rand wie der Speer (#af9358 / #605130), helle Schrift */
.emilia-foot .link-btn, .emilia-foot .btn.small { background: #2e2a39; color: #f2eee6; border: 2px solid #af9358;
  box-shadow: inset 0 0 0 1px #605130; border-radius: 3px; padding: 2px 8px; font-size: .78rem; white-space: nowrap; font-weight: 600; line-height: 1.3; cursor: pointer; }
.emilia-foot .link-btn:hover:not([disabled]), .emilia-foot .btn.small:hover { background: #861b2c; border-color: #d8b46a; color: #fff; }
.emilia-foot .link-btn[disabled] { opacity: .35; cursor: default; }
.emilia-foot .muted { color: #b9b2c6; white-space: nowrap; }
.emi-item textarea { width: 100%; margin-top: 6px; }
