/* ============================================================
   Idle-Dorf "Chronik" (03.10.2026) - js/systems/bkmp-chronicle.js
   Eigene Datei (wie css/jakes-feldfahrt.css), damit die riesige style.css
   nicht angefasst werden muss. Nutzt ausschliesslich bestehende Tokens
   (--app-gold/--app-muted/--app-ink/--app-cyan aus html.bkmp-app-mode,
   --rarity-* aus design-tokens.css) mit Fallbacks.
   Effektmodus (html[data-fx="aus"]) und prefers-reduced-motion werden
   respektiert - Ereignisse bleiben dann sichtbar/anklickbar, nur ohne
   Bewegung.
   ============================================================ */

/* ---------- Gemeinsame Fortschrittsleiste ---------- */
.idle-chron-bar {
  display: block;
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}
.idle-chron-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--app-gold, #ffd76a), var(--app-orange, #ff8c3d));
  transition: width .45s ease;
}
.is-done .idle-chron-bar-fill,
.is-claimed .idle-chron-bar-fill,
.is-ready .idle-chron-bar-fill {
  background: linear-gradient(90deg, var(--app-green, #4ade80), #22c55e);
}

/* ---------- Badge (offene Belohnungen) ---------- */
.bkmp-chronicle-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-danger, #ef4444);
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(10, 5, 24, .85);
  pointer-events: none;
}
.bkmp-chronicle-badge[hidden] { display: none; }
.bkmp-chron-tab .bkmp-chronicle-badge {
  position: static;
  display: inline-block;
  margin-left: .25rem;
  vertical-align: middle;
}
.bkmp-chron-tab .bkmp-chronicle-badge[hidden] { display: none; }
.bkmp-chronicle-hud-btn.has-claimable {
  border-color: color-mix(in srgb, var(--app-gold, #ffd76a) 70%, transparent);
  color: var(--app-gold, #ffd76a);
  animation: bkmpChronPulse 2.4s ease-in-out infinite;
}
@keyframes bkmpChronPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 106, 0); }
  50% { box-shadow: 0 0 0 4px rgba(255, 215, 106, .22); }
}

/* ---------- Desktop: Karte in der rechten Kampf-Spalte ----------
   Gleiche Sichtbarkeits-Logik wie Boss-Karte/Belohnungen/Statistik
   (style.css: unter 1000px unsichtbar, dort uebernimmt der 📜-Knopf im
   kompakten HUD). */
#idleChronicleCard { display: none; }
@media (min-width: 1000px) {
  html.bkmp-app-mode:not(.zone-game) #idleDorfOverlay #idleChronicleCard:not(:empty) {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: .45rem;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--app-gold, #ffd76a) 28%, rgba(255, 255, 255, .1));
    background: linear-gradient(180deg, rgba(255, 215, 106, .07), rgba(0, 0, 0, .3));
    padding: .75rem .85rem;
  }
}
.idle-chron-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
}
.idle-chron-card-title {
  font-size: .82rem;
  font-weight: 800;
  color: var(--app-ink, #f5f0ff);
}
.idle-chron-card-reset {
  font-size: .66rem;
  color: var(--app-muted, rgba(245, 240, 255, .62));
  white-space: nowrap;
}
.idle-chron-mini-list { display: flex; flex-direction: column; gap: .4rem; }
.idle-chron-mini-row {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-width: 0;
}
.idle-chron-mini-icon { flex: none; font-size: .95rem; width: 1.2rem; text-align: center; }
.idle-chron-mini-main { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }
.idle-chron-mini-text {
  font-size: .7rem;
  color: var(--app-ink, #f5f0ff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.idle-chron-mini-row.is-claimed .idle-chron-mini-text { color: var(--app-muted, rgba(245, 240, 255, .62)); text-decoration: line-through; }
.idle-chron-mini-row .idle-chron-bar { height: 5px; }
.idle-chron-card-event {
  font-size: .7rem;
  font-weight: 700;
  color: var(--app-cyan, #3ce6e0);
  text-align: center;
}
.idle-chron-open-btn {
  margin-top: .15rem;
  width: 100%;
  padding: .5rem .7rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--app-gold, #ffd76a) 45%, transparent);
  background: rgba(255, 215, 106, .1);
  color: var(--app-gold, #ffd76a);
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.idle-chron-open-btn:hover { background: rgba(255, 215, 106, .2); transform: translateY(-1px); }
/* Direkte Kurzlinks zu Kalender/Bestiarium/Ziele (03.10.2026, Spieler-Frage
   "Wo finde ich dieses Bestiarium?" - war nur ueber den Reiter im Fenster
   erreichbar). */
.idle-chron-quicklinks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; }
/* !important bei Polster/Hoehe/Radius: die globale App-Modus-Regel fuer
   Knoepfe im Idle-Dorf (grosses Touch-Polster, min-height 44-46px) hat sonst
   hoehere Spezifitaet und schneidet den dritten Link ab - gleiches, bereits
   mehrfach dokumentiertes Muster wie .idle-dragon-mini-delete-btn. */
.idle-chron-quicklink {
  padding: .32rem .2rem !important;
  min-height: 30px !important;
  min-width: 0 !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: var(--app-ink, #f5f0ff);
  font-size: .66rem !important;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .15s ease, border-color .15s ease;
}
.idle-chron-quicklink:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 215, 106, .45); }

/* ---------- Chronik-Fenster ---------- */
.bkmp-chron-overlay .joke-card.bkmp-chron-card {
  max-width: min(760px, 94vw);
  width: 100%;
  max-height: min(88vh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  text-align: left;
  padding: 1.3rem 1.3rem 1.1rem;
}
.bkmp-chron-overlay .joke-card.bkmp-chron-card h3 {
  text-align: center;
  font-size: 1.25rem;
  margin: 0 0 .8rem;
}
.bkmp-chron-overlay .joke-card.bkmp-chron-card p { font-size: .8rem; margin: 0; }
.bkmp-chron-overlay .joke-buttons { margin-top: .9rem; }

.bkmp-chron-tabs {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: .85rem;
}
.bkmp-chron-tab {
  position: relative;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: rgba(245, 240, 255, .84);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.bkmp-chron-tab:hover { color: var(--app-ink, #f5f0ff); border-color: rgba(255, 255, 255, .3); }
.bkmp-chron-tab.is-active {
  color: #2b1600;
  border-color: transparent;
  background: linear-gradient(135deg, var(--app-gold, #ffd76a), var(--app-orange, #ff8c3d));
}

.bkmp-chron-body { display: flex; flex-direction: column; gap: .9rem; }
.bkmp-chron-section { display: flex; flex-direction: column; gap: .5rem; }
.bkmp-chron-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  flex-wrap: wrap;
}
.bkmp-chron-section-head h4 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: var(--app-gold, #ffd76a);
}
.bkmp-chron-reset, .bkmp-chron-muted { font-size: .72rem; color: var(--app-muted, rgba(245, 240, 255, .62)); }
.bkmp-chron-note { color: var(--app-muted, rgba(245, 240, 255, .62)); font-size: .74rem !important; line-height: 1.45; }
.bkmp-chron-empty { text-align: center; color: var(--app-muted, rgba(245, 240, 255, .62)); padding: 1.2rem 0; }

/* Auftrags-Zeile */
.bkmp-chron-quest {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .7rem;
  padding: .65rem .75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  transition: border-color .2s ease, background .2s ease;
}
.bkmp-chron-quest.is-done {
  border-color: color-mix(in srgb, var(--app-green, #4ade80) 55%, transparent);
  background: rgba(74, 222, 128, .07);
}
.bkmp-chron-quest.is-claimed { opacity: .62; }
.bkmp-chron-quest-icon { font-size: 1.5rem; width: 2rem; text-align: center; }
.bkmp-chron-quest-main { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.bkmp-chron-quest-title { font-size: .86rem; font-weight: 700; color: var(--app-ink, #f5f0ff); }
.bkmp-chron-quest-meta {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .7rem;
  color: var(--app-muted, rgba(245, 240, 255, .62));
  font-variant-numeric: tabular-nums;
}
.bkmp-chron-quest-reward { color: color-mix(in srgb, var(--app-gold, #ffd76a) 80%, #fff); }
.bkmp-chron-quest-actions { display: flex; gap: .35rem; align-items: center; justify-content: flex-end; }

.bkmp-chron-claim-btn,
.bkmp-chron-go-btn,
.bkmp-chron-reroll-btn {
  border-radius: 10px;
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  min-height: 34px;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.bkmp-chron-claim-btn {
  padding: .45rem .85rem;
  border: none;
  color: #2b1600;
  background: linear-gradient(135deg, var(--app-gold, #ffd76a), var(--app-orange, #ff8c3d));
  box-shadow: 0 0 14px rgba(255, 215, 106, .35);
}
.bkmp-chron-claim-btn:not([disabled]) { animation: bkmpChronClaimGlow 1.8s ease-in-out infinite; }
.bkmp-chron-claim-btn:hover:not([disabled]) { transform: translateY(-1px) scale(1.03); filter: brightness(1.08); }
.bkmp-chron-claim-btn[disabled] {
  cursor: not-allowed;
  background: rgba(255, 255, 255, .08);
  color: var(--app-muted, rgba(245, 240, 255, .62));
  box-shadow: none;
}
@keyframes bkmpChronClaimGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 106, .25); }
  50% { box-shadow: 0 0 20px rgba(255, 215, 106, .6); }
}
.bkmp-chron-go-btn {
  padding: .4rem .7rem;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: var(--app-ink, #f5f0ff);
}
.bkmp-chron-go-btn:hover { background: rgba(255, 255, 255, .12); }
.bkmp-chron-reroll-btn {
  padding: .4rem .55rem;
  border: 1px dashed rgba(255, 255, 255, .25);
  background: transparent;
  color: var(--app-ink, #f5f0ff);
}
.bkmp-chron-reroll-btn:hover { transform: rotate(-12deg); }
.bkmp-chron-claimed { font-size: .74rem; font-weight: 700; color: var(--app-green, #4ade80); white-space: nowrap; }

.bkmp-chron-quest.is-just-claimed { animation: bkmpChronJustClaimed .7s ease; }
@keyframes bkmpChronJustClaimed {
  0% { transform: scale(1); background: rgba(255, 215, 106, .25); }
  40% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Truhe */
.bkmp-chron-chest {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .7rem;
  padding: .7rem .8rem;
  border-radius: 14px;
  border: 1px dashed rgba(255, 215, 106, .35);
  background: rgba(255, 215, 106, .04);
}
.bkmp-chron-chest.is-ready {
  border-style: solid;
  border-color: var(--app-gold, #ffd76a);
  background: radial-gradient(circle at 10% 50%, rgba(255, 215, 106, .2), rgba(255, 215, 106, .05) 70%);
}
.bkmp-chron-chest.is-ready .bkmp-chron-chest-icon { animation: bkmpChronChestWiggle 1.6s ease-in-out infinite; }
.bkmp-chron-chest.is-opened { opacity: .6; }
.bkmp-chron-chest-icon { font-size: 1.8rem; width: 2.2rem; text-align: center; }
.bkmp-chron-chest-title { font-size: .86rem; font-weight: 800; color: var(--app-gold, #ffd76a); }
.bkmp-chron-chest-count { font-size: .72rem; color: var(--app-muted, rgba(245, 240, 255, .62)); margin-left: .25rem; }
.bkmp-chron-chest-preview { font-size: .7rem; color: var(--app-muted, rgba(245, 240, 255, .62)); margin-top: .15rem; }
@keyframes bkmpChronChestWiggle {
  0%, 100% { transform: rotate(0) scale(1); }
  15% { transform: rotate(-10deg) scale(1.08); }
  30% { transform: rotate(9deg) scale(1.08); }
  45% { transform: rotate(-5deg) scale(1.04); }
  60% { transform: rotate(0) scale(1); }
}

/* Kalender */
.bkmp-chron-calendar-head { display: flex; flex-direction: column; gap: .25rem; align-items: center; text-align: center; }
.bkmp-chron-streak { font-size: 1.05rem; color: var(--app-ink, #f5f0ff); }
.bkmp-chron-streak strong { color: var(--app-gold, #ffd76a); font-size: 1.3rem; }
.bkmp-chron-streak-mult { font-size: .76rem; color: var(--app-muted, rgba(245, 240, 255, .62)); }
.bkmp-chron-streak-mult strong { color: var(--app-green, #4ade80); }
.bkmp-chron-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .4rem;
}
.bkmp-chron-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: .55rem .3rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  text-align: center;
  min-width: 0;
}
.bkmp-chron-day.is-big { border-color: rgba(167, 139, 250, .5); background: rgba(167, 139, 250, .08); }
.bkmp-chron-day.is-past { opacity: .5; }
.bkmp-chron-day.is-today {
  opacity: 1;
  border-color: var(--app-gold, #ffd76a);
  box-shadow: 0 0 0 1px var(--app-gold, #ffd76a), 0 0 18px rgba(255, 215, 106, .3);
  background: rgba(255, 215, 106, .1);
}
.bkmp-chron-day-num { font-size: .66rem; font-weight: 800; color: var(--app-muted, rgba(245, 240, 255, .62)); text-transform: uppercase; letter-spacing: .03em; }
.bkmp-chron-day-icon { font-size: 1.4rem; }
.bkmp-chron-day-label { font-size: .64rem; font-weight: 700; color: var(--app-ink, #f5f0ff); line-height: 1.2; }
.bkmp-chron-day-reward { font-size: .6rem; color: color-mix(in srgb, var(--app-gold, #ffd76a) 80%, #fff); line-height: 1.35; word-break: break-word; }

/* Bestiarium */
.bkmp-chron-bestiary-sum {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  text-align: center;
  font-size: .84rem;
  color: var(--app-ink, #f5f0ff);
}
.bkmp-chron-bestiary-sum strong { color: var(--app-gold, #ffd76a); font-size: 1.1rem; }
.bkmp-chron-bestiary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .5rem;
}
.bkmp-chron-beast {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .6rem .7rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--beast-color, #a78bfa) 35%, rgba(255, 255, 255, .08));
  background: linear-gradient(180deg, color-mix(in srgb, var(--beast-color, #a78bfa) 12%, transparent), rgba(0, 0, 0, .2));
}
.bkmp-chron-beast.tier-5 { box-shadow: 0 0 16px color-mix(in srgb, var(--beast-color, #a78bfa) 45%, transparent); }
.bkmp-chron-beast-head { display: flex; align-items: center; gap: .35rem; min-width: 0; }
.bkmp-chron-beast-emoji { font-size: 1.2rem; }
.bkmp-chron-beast-name {
  font-size: .82rem;
  font-weight: 800;
  color: var(--app-ink, #f5f0ff);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bkmp-chron-beast-rule {
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: .1rem .35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--app-muted, rgba(245, 240, 255, .62));
}
.bkmp-chron-beast-stars { letter-spacing: .1rem; font-size: .9rem; }
.bkmp-chron-star { color: rgba(255, 255, 255, .18); }
.bkmp-chron-star.is-on { color: var(--app-gold, #ffd76a); text-shadow: 0 0 6px rgba(255, 215, 106, .5); }
.bkmp-chron-beast-meta { font-size: .66rem; color: var(--app-muted, rgba(245, 240, 255, .62)); font-variant-numeric: tabular-nums; }
.bkmp-chron-beast-bonus { font-size: .7rem; font-weight: 700; color: var(--app-green, #4ade80); }

/* Ziele */
.bkmp-chron-goals { display: flex; flex-direction: column; gap: .45rem; }
.bkmp-chron-goal {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .65rem;
  padding: .55rem .7rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
}
.bkmp-chron-goal.is-ready { border-color: var(--app-green, #4ade80); background: rgba(74, 222, 128, .08); }
.bkmp-chron-goal-icon { font-size: 1.3rem; width: 1.8rem; text-align: center; }
.bkmp-chron-goal-main { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.bkmp-chron-goal-title { font-size: .82rem; font-weight: 800; color: var(--app-ink, #f5f0ff); }
.bkmp-chron-goal-detail { font-size: .7rem; color: var(--app-muted, rgba(245, 240, 255, .62)); }
.bkmp-chron-life {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem .9rem;
  font-size: .72rem;
  color: var(--app-muted, rgba(245, 240, 255, .62));
}

/* ---------- Weltereignisse im Schlachtfeld ---------- */
.idle-world-event-banner {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 6;
  max-width: calc(100% - 16px);
  padding: .3rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  color: #2b1600;
  background: linear-gradient(135deg, var(--app-gold, #ffd76a), var(--app-orange, #ff8c3d));
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35), 0 0 14px rgba(255, 215, 106, .45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  animation: bkmpWeBannerIn .35s ease-out;
}
.idle-world-event-banner[data-type="wisdom"] { background: linear-gradient(135deg, #7dd3fc, var(--app-cyan, #3ce6e0)); color: #04202a; }
.idle-world-event-banner[data-type="frenzy"] { background: linear-gradient(135deg, #fb7185, var(--app-red, #ff3b5c)); color: #fff; }
@keyframes bkmpWeBannerIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.idle-world-event-obj {
  position: absolute;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  padding: .3rem .4rem;
  border: none;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(255, 215, 106, .32), rgba(255, 215, 106, 0) 70%);
  color: var(--app-ink, #f5f0ff);
  cursor: pointer;
  transform: translate(-50%, -50%);
  animation: bkmpWeObjIn .45s cubic-bezier(.34, 1.56, .64, 1), bkmpWeObjBob 1.6s ease-in-out .45s infinite;
  touch-action: manipulation;
}
.idle-world-event-obj:focus-visible { outline: 2px solid var(--app-gold, #ffd76a); outline-offset: 2px; }
.idle-world-event-obj-icon {
  font-size: 2.3rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(255, 215, 106, .75));
}
.idle-world-event-obj-label {
  font-size: .62rem;
  font-weight: 800;
  padding: .05rem .4rem;
  border-radius: 999px;
  background: rgba(10, 5, 24, .75);
  white-space: nowrap;
}
.idle-world-event-star {
  left: auto;
  right: -10%;
  transform: none;
  background: radial-gradient(circle, rgba(125, 211, 252, .35), rgba(125, 211, 252, 0) 70%);
  animation: bkmpWeStarFly var(--we-life, 7s) linear forwards;
}
.idle-world-event-star .idle-world-event-obj-icon { filter: drop-shadow(0 0 12px rgba(125, 211, 252, .9)); }
.idle-world-event-merchant { background: radial-gradient(circle, rgba(167, 139, 250, .35), rgba(167, 139, 250, 0) 70%); }
.idle-world-event-obj.is-caught {
  pointer-events: none;
  animation: bkmpWeObjCaught .5s ease-out forwards;
}
.idle-world-event-obj.is-leaving {
  pointer-events: none;
  animation: bkmpWeObjLeave .45s ease-in forwards;
}
@keyframes bkmpWeObjIn {
  from { opacity: 0; transform: translate(-50%, -120%) scale(.4); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes bkmpWeObjBob {
  0%, 100% { transform: translate(-50%, -50%) rotate(-4deg); }
  50% { transform: translate(-50%, -58%) rotate(4deg); }
}
@keyframes bkmpWeObjCaught {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  45% { opacity: 1; transform: translate(-50%, -50%) scale(1.45); filter: brightness(1.6); }
  100% { opacity: 0; transform: translate(-50%, -80%) scale(.6); }
}
@keyframes bkmpWeObjLeave {
  to { opacity: 0; transform: translate(-50%, -30%) scale(.7); }
}
@keyframes bkmpWeStarFly {
  0% { right: -10%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { right: 108%; opacity: 0; }
}
.idle-world-event-float {
  position: absolute;
  z-index: 8;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  font-size: .82rem;
  font-weight: 900;
  color: var(--app-gold, #ffd76a);
  text-shadow: 0 2px 6px rgba(0, 0, 0, .7);
  white-space: nowrap;
  pointer-events: none;
  animation: bkmpWeFloat 1.6s ease-out forwards;
}
@keyframes bkmpWeFloat {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); }
  15% { opacity: 1; transform: translate(-50%, 0) scale(1.08); }
  100% { opacity: 0; transform: translate(-50%, -46px) scale(1); }
}

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
  .bkmp-chron-overlay .joke-card.bkmp-chron-card { padding: 1rem .8rem .9rem; max-height: 90dvh; }
  .bkmp-chron-tab { padding: .4rem .6rem; font-size: .72rem; }
  .bkmp-chron-quest { grid-template-columns: auto 1fr; }
  .bkmp-chron-quest-actions { grid-column: 1 / -1; justify-content: stretch; }
  .bkmp-chron-quest-actions > * { flex: 1; }
  .bkmp-chron-chest { grid-template-columns: auto 1fr; }
  .bkmp-chron-chest > button, .bkmp-chron-chest > .bkmp-chron-claimed { grid-column: 1 / -1; text-align: center; }
  .bkmp-chron-calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bkmp-chron-bestiary { grid-template-columns: 1fr 1fr; }
  .bkmp-chron-goal { grid-template-columns: auto 1fr; }
  .bkmp-chron-goal > button { grid-column: 1 / -1; }
  .idle-world-event-obj-icon { font-size: 2rem; }
}

/* ---------- Effektmodus "aus" / reduzierte Bewegung ---------- */
html[data-fx="aus"] .idle-world-event-obj,
html[data-fx="aus"] .idle-world-event-banner,
html[data-fx="aus"] .bkmp-chron-claim-btn,
html[data-fx="aus"] .bkmp-chron-chest-icon,
html[data-fx="aus"] .bkmp-chronicle-hud-btn,
html[data-fx="aus"] .bkmp-chron-quest.is-just-claimed {
  animation: none !important;
}
html[data-fx="aus"] .idle-world-event-star { right: 45%; }
@media (prefers-reduced-motion: reduce) {
  .idle-world-event-obj,
  .idle-world-event-banner,
  .bkmp-chron-claim-btn,
  .bkmp-chron-chest-icon,
  .bkmp-chronicle-hud-btn,
  .bkmp-chron-quest.is-just-claimed,
  .idle-world-event-float {
    animation: none !important;
  }
  .idle-world-event-star { right: 45%; }
  .idle-chron-bar-fill { transition: none; }
}
