/* ============================================================
   Drachendorf-Ausbau (ab 04.10.2026) - Navigation in 4 Kategorien,
   Dorfentwicklung, Drachenhafen/Expeditionen, Drachen-Eigenschaften,
   Event-Pass, Goettliche Erweckung.
   Eigene Datei (wie css/bkmp-chronicle.css), damit die riesige
   style.css nicht weiter waechst. Nutzt nur bestehende Tokens
   (--app-gold/--app-muted/--app-ink aus html.bkmp-app-mode,
   --gold-fixed, --rarity-* aus design-tokens.css) mit Fallbacks.
   Performance-Regeln des Projekts: nur transform/opacity animieren,
   keine Endlos-Animation von background-position/box-shadow/filter,
   kein filter an Videos. Effektmodus "aus" und
   prefers-reduced-motion werden respektiert.
   ============================================================ */

/* ---------- Phase 1: Kategorie-Kopfzeilen der Seitenleiste ---------- */
.idle-dorf-cat-header {
  display: none;
}
@media (min-width: 1000px) {
  /* Eingeklappte Kategorie: nur wo die Kopfzeilen auch sichtbar sind (sonst
     koennte ein zugeklappter Bereich bei schmalerem Fenster ohne sichtbaren
     Aufklapp-Knopf verschwinden). */
  html.bkmp-app-mode:not(.zone-game) #idleDorfOverlay #idleDorfTabs .idle-dorf-tab.idle-dorf-tab-cat-hidden {
    display: none !important;
  }
  html.bkmp-app-mode:not(.zone-game) #idleDorfOverlay #idleDorfTabs .idle-dorf-cat-header {
    display: flex;
    align-items: center;
    gap: .45rem;
    width: 100%;
    flex: 0 0 auto;
    margin: .5rem 0 .05rem;
    padding: .28rem .55rem;
    min-height: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--app-muted, var(--muted, #b7a8c4));
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
  }
  html.bkmp-app-mode:not(.zone-game) #idleDorfOverlay #idleDorfTabs .idle-dorf-cat-header:first-child {
    margin-top: 0;
  }
  html.bkmp-app-mode:not(.zone-game) #idleDorfOverlay #idleDorfTabs .idle-dorf-cat-header:hover {
    color: var(--app-gold, var(--gold-fixed, #c9a56a));
    background: rgba(255, 255, 255, .04);
  }
  html.bkmp-app-mode:not(.zone-game) #idleDorfOverlay #idleDorfTabs .idle-dorf-cat-header.has-active {
    color: var(--gold-fixed, #c9a56a);
  }
  html.bkmp-app-mode:not(.zone-game) #idleDorfOverlay #idleDorfTabs .idle-dorf-cat-header:focus-visible {
    outline: 2px solid var(--gold-fixed, #c9a56a);
    outline-offset: 1px;
  }
  .idle-dorf-cat-icon {
    font-size: .9rem;
    letter-spacing: 0;
  }
  .idle-dorf-cat-label {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .idle-dorf-cat-chevron {
    display: inline-block;
    font-size: .7rem;
    transition: transform .18s ease;
  }
  .idle-dorf-cat-header.is-collapsed .idle-dorf-cat-chevron {
    transform: rotate(-90deg);
  }
}
@media (min-width: 1000px) and (max-height: 960px) {
  html.bkmp-app-mode:not(.zone-game) #idleDorfOverlay #idleDorfTabs .idle-dorf-cat-header {
    margin: .3rem 0 0;
    padding: .18rem .5rem;
    font-size: .62rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .idle-dorf-cat-chevron { transition: none; }
}
html[data-fx="aus"] .idle-dorf-cat-chevron { transition: none; }

/* Gemeinsamer Hinweis "Datenbank-Update ausstehend" fuer neue Bereiche */
.idle-dd-pending {
  margin: .6rem 0;
  padding: .8rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, .18);
  color: var(--app-muted, var(--muted, #b7a8c4));
  font-size: .86rem;
  line-height: 1.45;
}

/* ---------- Phase 2: Dorfentwicklung (Drachenhafen, Handelsposten) ---------- */
.dd-village { display: flex; flex-direction: column; gap: .9rem; }
.dd-village-intro h3 { margin: 0 0 .25rem; }
.dd-muted { color: var(--app-muted, var(--muted, #b7a8c4)); font-size: .82rem; line-height: 1.45; margin: 0; }
.dd-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .8rem;
}
.dd-project-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .035);
}
.dd-project-card.is-maxed { border-color: color-mix(in srgb, var(--gold-fixed, #c9a56a) 45%, transparent); }
.dd-project-head { display: flex; align-items: center; gap: .65rem; }
.dd-project-icon { font-size: 1.7rem; line-height: 1; }
.dd-project-title { display: flex; flex-direction: column; min-width: 0; }
.dd-project-name { font-weight: 800; font-size: 1rem; color: var(--app-ink, var(--ink, #f5f3ed)); }
.dd-project-level { font-size: .74rem; color: var(--app-muted, var(--muted, #b7a8c4)); }
.dd-project-desc { margin: 0; font-size: .82rem; line-height: 1.45; color: var(--app-muted, var(--muted, #b7a8c4)); }
.dd-project-effects { margin: 0; padding-left: 1.05rem; font-size: .8rem; line-height: 1.5; color: var(--app-ink, var(--ink, #f5f3ed)); }
.dd-project-next-label { font-size: .78rem; color: var(--app-muted, var(--muted, #b7a8c4)); }
.dd-project-next-label strong { color: var(--gold-fixed, #c9a56a); }
.dd-cost-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.dd-cost-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .18rem .5rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  background: rgba(255, 255, 255, .06);
  color: var(--app-ink, var(--ink, #f5f3ed));
}
.dd-cost-chip.is-short { color: var(--neg, #f87171); background: rgba(248, 113, 113, .1); }
.dd-project-req { font-size: .76rem; color: var(--neg, #f87171); }
.dd-project-done { font-size: .82rem; font-weight: 700; color: var(--pos, #4ade80); }
.dd-build-btn, .dd-trade-btn { align-self: flex-start; }

.dd-trade { display: flex; flex-direction: column; gap: .6rem; }
.dd-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem; }
.dd-section-head h4 { margin: 0; }
.dd-trade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .7rem;
}
.dd-trade-card {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: .75rem .85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
}
.dd-trade-card.is-bought { opacity: .6; }
.dd-trade-label { font-weight: 700; font-size: .86rem; color: var(--app-ink, var(--ink, #f5f3ed)); }
.dd-trade-swap { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .8rem; color: var(--app-ink, var(--ink, #f5f3ed)); }
.dd-trade-arrow { color: var(--gold-fixed, #c9a56a); font-weight: 800; }
.dd-trade-get { font-weight: 700; color: var(--pos, #4ade80); }
.dd-trade-done { font-size: .78rem; color: var(--app-muted, var(--muted, #b7a8c4)); }
@media (max-width: 560px) {
  .dd-project-grid, .dd-trade-grid { grid-template-columns: 1fr; }
}
/* Die allgemeine App-Modus-Regel fuer Absaetze im Idle-Dorf (gross fuer
   Lesbarkeit) ist hier zu wuchtig - per ID gezielt auf Kartentext-Groesse. */
#idlePanelDorf p.dd-project-desc,
#idlePanelDorf p.dd-muted {
  font-size: .84rem;
  line-height: 1.45;
}
#idlePanelDorf .dd-village-intro p.dd-muted { font-size: .88rem; }

/* ---------- Phase 3: Expeditionen (Drachenzucht-Reiter + Fenster) ---------- */
.dd-exp-section h4 { margin-bottom: .45rem; }
.dd-exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .6rem;
}
.dd-exp-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .65rem .75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .035);
  text-align: left;
  color: var(--app-ink, var(--ink, #f5f3ed));
}
.dd-exp-card.is-ready { border-color: color-mix(in srgb, var(--pos, #4ade80) 55%, transparent); }
#idlePanelDrachen button.dd-exp-card-free {
  align-items: center;
  justify-content: center;
  min-height: 112px;
  border-style: dashed;
  font-weight: 800;
  color: var(--app-muted, var(--muted, #b7a8c4));
  cursor: pointer;
}
#idlePanelDrachen button.dd-exp-card-free:hover { color: var(--gold-fixed, #c9a56a); border-color: color-mix(in srgb, var(--gold-fixed, #c9a56a) 50%, transparent); }
.dd-exp-card-region { font-size: .74rem; color: var(--app-muted, var(--muted, #b7a8c4)); }
.dd-exp-card-mission { font-weight: 800; font-size: .9rem; }
.dd-exp-team { display: flex; gap: .25rem; }
.dd-exp-team .idle-dragon-thumb.dd-exp-thumb, .dd-exp-dragon .idle-dragon-thumb.dd-exp-thumb { width: 40px; height: 40px; object-fit: contain; }
.dd-exp-countdown { font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--app-muted, var(--muted, #b7a8c4)); }
.dd-exp-away-badge {
  font-size: .72rem;
  font-weight: 700;
  color: #7dd3fc;
  background: rgba(56, 189, 248, .12);
  border-radius: 999px;
  padding: .12rem .5rem;
  align-self: center;
}
.idle-dorf-tab.dd-has-ready, .bkmp-proto-nav-btn.dd-has-ready { position: relative; }
.idle-dorf-tab.dd-has-ready::after, .bkmp-proto-nav-btn.dd-has-ready::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pos, #4ade80);
  box-shadow: 0 0 0 2px rgba(10, 10, 15, .8);
}

.dd-exp-modal-card { width: min(760px, 94vw); max-width: 760px; max-height: 88vh; overflow-y: auto; text-align: left; }
.dd-exp-planner { display: flex; flex-direction: column; gap: .7rem; }
.dd-exp-region-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.bkmp-ui-modal-overlay .dd-exp-region-chip,
.bkmp-ui-modal-overlay .dd-exp-mission,
.bkmp-ui-modal-overlay .dd-exp-dragon {
  font: inherit;
  color: var(--app-ink, var(--ink, #f5f3ed));
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  cursor: pointer;
  text-align: left;
}
.bkmp-ui-modal-overlay .dd-exp-region-chip { border-radius: 999px; padding: .3rem .7rem; font-size: .8rem; font-weight: 700; }
.bkmp-ui-modal-overlay .dd-exp-region-chip.active { border-color: var(--gold-fixed, #c9a56a); color: var(--gold-fixed, #c9a56a); }
.bkmp-ui-modal-overlay .dd-exp-region-chip.is-locked { opacity: .55; }
.dd-exp-region-desc { font-size: .82rem; }
.dd-exp-mission-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .5rem; }
.bkmp-ui-modal-overlay .dd-exp-mission { display: flex; flex-direction: column; gap: .2rem; border-radius: 12px; padding: .6rem .7rem; }
.bkmp-ui-modal-overlay .dd-exp-mission.active { border-color: var(--gold-fixed, #c9a56a); background: rgba(201, 165, 106, .08); }
.dd-exp-mission-name { font-weight: 800; font-size: .88rem; }
.dd-exp-mission-meta, .dd-exp-mission-rewards { font-size: .74rem; color: var(--app-muted, var(--muted, #b7a8c4)); }
.dd-exp-checklist { list-style: none; margin: .2rem 0; padding: 0; font-size: .8rem; line-height: 1.6; }
.dd-exp-checklist .is-missing { color: var(--neg, #f87171); }
.dd-exp-checklist .is-optional { color: var(--app-muted, var(--muted, #b7a8c4)); }
.dd-exp-checklist small { color: var(--app-muted, var(--muted, #b7a8c4)); }
.dd-exp-quality { font-size: .86rem; margin: .2rem 0 .5rem; }
.dd-exp-dragon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .4rem; max-height: min(40vh, 340px); overflow-y: auto; padding: 2px; }
.bkmp-ui-modal-overlay .dd-exp-dragon { display: flex; flex-direction: column; align-items: center; gap: .1rem; border-radius: 10px; padding: .4rem; text-align: center; border-color: color-mix(in srgb, var(--dragon-rarity-color, #888) 40%, transparent); }
.bkmp-ui-modal-overlay .dd-exp-dragon.is-selected { border-color: var(--gold-fixed, #c9a56a); background: rgba(201, 165, 106, .12); box-shadow: inset 0 0 0 1px var(--gold-fixed, #c9a56a); }
.dd-exp-dragon-name { font-size: .76rem; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-exp-dragon-meta { font-size: .68rem; color: var(--app-muted, var(--muted, #b7a8c4)); }
.dd-aff { margin-left: .1rem; }
.dd-exp-events { margin: .3rem 0; padding-left: 1.1rem; font-size: .82rem; line-height: 1.45; }
.dd-exp-reward-list { list-style: none; margin: .4rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .25rem .6rem; font-size: .86rem; }
@media (max-width: 560px) {
  .dd-exp-mission-list { grid-template-columns: 1fr; }
}
.dd-exp-modal-card p { font-size: .84rem; margin-bottom: .4rem; }
.dd-exp-modal-card h4 { margin: 0; }
.dd-exp-modal-card .dd-exp-start-btn { width: 100%; margin-top: .4rem; }

/* ---------- Phase 4: Elemente, Eigenschaften, Bindung, Dex ---------- */
.dd-dragon-identity {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .2rem .3rem;
  font-size: .72rem;
  line-height: 1.35;
  color: var(--app-muted, var(--muted, #b7a8c4));
}
.dd-id-trait { color: var(--app-ink, var(--ink, #f5f3ed)); font-weight: 700; }
.dd-id-bond { font-variant-numeric: tabular-nums; }
.dd-id-bond.is-soul { color: #f472b6; font-weight: 800; }
.dd-id-sep { opacity: .5; }
/* Bindungsmeilenstein 6: besonderer Rahmen (statisch, keine Animation). */
.idle-dragon-lager-card.dd-bond-frame { outline: 1px solid rgba(244, 114, 182, .45); outline-offset: -3px; }
.idle-dragon-lager-card.dd-bond-soul { outline: 2px solid rgba(244, 114, 182, .8); outline-offset: -3px; }
.dd-detail-extra, .dd-dex-info { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; line-height: 1.45; text-align: left; margin-top: .4rem; }
.dd-dex-stats { margin: -.2rem 0 .5rem; }
.idle-dragon-dex-dot.is-reached { box-shadow: inset 0 0 0 2px rgba(74, 222, 128, .7); }

/* ---------- Phase 5: Pfad des Drachendorfs (in der Chronik) ---------- */
.bkmp-path-next {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: .7rem .8rem;
  margin-bottom: .8rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--gold-fixed, #c9a56a) 40%, transparent);
  background: rgba(201, 165, 106, .06);
}
.bkmp-path-next-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; }
.bkmp-path-more { align-self: flex-start; }
.bkmp-path-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; font-size: .88rem; }
.bkmp-path-chapter { margin-bottom: .8rem; }
.bkmp-path-chapter h4 { margin: .2rem 0 .4rem; font-size: .9rem; }
.bkmp-path-chapter h4 small { color: var(--app-muted, var(--muted, #b7a8c4)); font-weight: 600; }
.bkmp-path-goal.is-claimed { opacity: .55; }
.bkmp-path-reward { font-size: .72rem; color: var(--app-muted, var(--muted, #b7a8c4)); margin-top: .15rem; }
.bkmp-path-ch { font-weight: 600; color: var(--app-muted, var(--muted, #b7a8c4)); }
.bkmp-path-done { font-size: 1.1rem; }
.bkmp-path-claim-btn, .bkmp-path-claimall { flex: 0 0 auto; }

/* ---------- Phase 6: Gildenprojekt der Woche ---------- */
.dd-gp-head { display: flex; align-items: center; gap: .6rem; margin: .3rem 0 .5rem; }
.dd-gp-icon { font-size: 1.8rem; line-height: 1; }
.dd-gp-donate { display: flex; flex-direction: column; gap: .35rem; margin: .5rem 0; }
.dd-gp-kind { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.dd-gp-kind-label { flex: 1 1 180px; font-size: .84rem; }
.dd-gp-kind-label small { color: var(--app-muted, var(--muted, #b7a8c4)); }
.dd-gp-note { font-size: .8rem; color: var(--app-muted, var(--muted, #b7a8c4)); margin: .3rem 0; }
.dd-gp-top { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .8rem; line-height: 1.5; }
.dd-gp-badges { font-size: .8rem; margin-left: .3rem; }

/* ---------- Phase 7-9: Special Event / Zwielicht-Pass ----------
   Bewusst ruhig: keine Dauer-Animationen (siehe Performance-Regeln in
   CLAUDE.md), Licht/Dunkel nur ueber statische Verlaeufe. */
#idleEventPassCard { display: none; }
@media (min-width: 1000px) {
  html.bkmp-app-mode:not(.zone-game) #idleDorfOverlay #idleEventPassCard:not([hidden]):not(:empty) {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: .4rem;
    border-radius: 16px;
    border: 1px solid rgba(167, 139, 250, .45);
    background: linear-gradient(100deg, rgba(253, 230, 138, .12) 0%, rgba(253, 230, 138, .05) 48%, rgba(76, 29, 149, .25) 52%, rgba(15, 10, 40, .45) 100%);
    padding: .7rem .85rem;
  }
}
.idle-event-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.idle-event-card-title { font-size: .82rem; font-weight: 800; color: var(--app-ink, #f5f0ff); }
.idle-event-card-tier { font-size: .72rem; font-weight: 800; color: #fde68a; white-space: nowrap; }
.idle-event-card-sub, .idle-event-card-teaser, .idle-event-card-countdown { font-size: .7rem; color: var(--app-muted, rgba(245, 240, 255, .7)); }
.idle-event-card-countdown strong { color: var(--app-ink, #f5f0ff); }
.idle-event-bar .idle-xp-fill { background: linear-gradient(90deg, #fde68a, #a78bfa); }
.bkmp-event-hud-btn[hidden] { display: none !important; }
.bkmp-event-hud-btn { font-size: .7rem; letter-spacing: -.1em; position: relative; }

.bkmp-event-card { max-width: min(640px, 96vw); }
.bkmp-event-head { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .6rem; }
.bkmp-event-tierline { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem; }
.bkmp-event-tier { font-size: 1.15rem; font-weight: 900; color: #fde68a; }
.bkmp-event-points { font-size: .82rem; color: var(--app-muted, rgba(245, 240, 255, .7)); }
.bkmp-event-ends, .bkmp-event-hint { font-size: .78rem; color: var(--app-muted, rgba(245, 240, 255, .7)); margin: 0 0 .4rem; }
.bkmp-event-end { font-size: .9rem; font-weight: 700; color: var(--app-ink, #f5f0ff); }
.bkmp-event-claim-btn { align-self: flex-start; }
.bkmp-event-quest { display: flex; align-items: center; gap: .6rem; }
.bkmp-event-quest .bkmp-chron-quest-main { flex: 1; min-width: 0; }
.bkmp-event-quest-pts { flex: none; font-weight: 800; color: #c4b5fd; font-size: .82rem; }
.bkmp-event-quest.is-hard { border-color: rgba(167, 139, 250, .55); }
.bkmp-event-hard { font-size: .66rem; font-weight: 800; color: #c4b5fd; text-transform: uppercase; letter-spacing: .04em; }
.bkmp-event-closure { border-style: dashed; }
.bkmp-event-pip { display: inline-block; min-width: 1.4em; margin-left: .15rem; padding: 0 .25em; border-radius: 6px; font-size: .66rem; text-align: center; border: 1px solid rgba(255, 255, 255, .25); color: var(--app-muted, rgba(245, 240, 255, .7)); }
.bkmp-event-pip.is-done { border-color: rgba(74, 222, 128, .7); color: #4ade80; }
.bkmp-event-track { display: flex; flex-direction: column; gap: .3rem; margin-top: .4rem; }
.bkmp-event-tier-row { display: flex; align-items: center; gap: .6rem; padding: .4rem .55rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; }
.bkmp-event-tier-row.is-milestone { border-color: rgba(253, 230, 138, .4); background: rgba(253, 230, 138, .05); }
.bkmp-event-tier-row.is-ready { border-color: rgba(74, 222, 128, .55); }
.bkmp-event-tier-row.is-claimed { opacity: .6; }
/* Folgeupdate 04.10.2026: garantierte Pass-Eier (feste Arten) + Meilenstein-Leiste */
.bkmp-event-egg-thumb.idle-dragon-thumb { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; margin: 0; }
.bkmp-event-tier-row.has-egg { border-color: rgba(167, 139, 250, .55); background: rgba(167, 139, 250, .08); }
.bkmp-event-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .4rem; margin: .5rem 0 .2rem; }
.bkmp-event-highlight { display: flex; align-items: center; gap: .45rem; padding: .45rem .55rem; border-radius: 12px; border: 1px solid rgba(167, 139, 250, .45); background: rgba(167, 139, 250, .08); font-size: .74rem; min-width: 0; }
.bkmp-event-highlight.is-choice { border-color: rgba(253, 230, 138, .5); background: linear-gradient(90deg, rgba(253, 230, 138, .1), rgba(76, 29, 149, .18)); }
.bkmp-event-highlight.is-reached { border-color: rgba(74, 222, 128, .55); }
.bkmp-event-highlight-icon { font-size: 1.1rem; flex: 0 0 auto; }
.bkmp-event-highlight-tier { font-weight: 700; white-space: nowrap; color: var(--app-ink, #f5f0ff); }
.bkmp-event-highlight-text { color: var(--app-muted, rgba(245, 240, 255, .78)); min-width: 0; overflow-wrap: anywhere; }
.idle-event-card-next { font-size: .7rem; color: var(--app-muted, rgba(245, 240, 255, .78)); margin-top: .15rem; }
.idle-event-card-next strong { color: var(--app-ink, #f5f0ff); }
.bkmp-event-tier-num { flex: none; width: 1.8rem; text-align: center; font-weight: 900; color: #fde68a; }
.bkmp-event-tier-reward { flex: 1; min-width: 0; }
.bkmp-event-tier-state { flex: none; }
.bkmp-event-tier-final {
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  padding: .9rem .7rem;
  border: 1px solid rgba(196, 181, 253, .7);
  background: linear-gradient(90deg, #fff7d6 0%, #fde68a 49.5%, #1e1238 50.5%, #0b0718 100%);
}
.bkmp-event-tier-final.is-claimed { opacity: 1; }
.bkmp-event-final-title { align-self: center; padding: .15rem .8rem; border-radius: 999px; background: rgba(10, 6, 24, .62); font-weight: 900; font-size: 1rem; letter-spacing: .04em; color: #fff; }
.bkmp-event-final-text { align-self: center; margin-top: .3rem; padding: .1rem .7rem; border-radius: 999px; background: rgba(10, 6, 24, .62); font-size: .8rem; color: #fff; }
.bkmp-event-faq details { border-bottom: 1px solid rgba(255, 255, 255, .1); padding: .45rem 0; }
.bkmp-event-faq summary { cursor: pointer; font-weight: 700; font-size: .85rem; }
.bkmp-event-faq p { margin: .35rem 0 0; font-size: .82rem; color: var(--app-muted, rgba(245, 240, 255, .75)); }
.bkmp-event-teaser { padding: .8rem; border-radius: 14px; border: 1px solid rgba(196, 181, 253, .45); background: linear-gradient(100deg, rgba(253, 230, 138, .1), rgba(30, 18, 56, .55)); }
.bkmp-event-teaser-title { font-weight: 900; font-size: 1.05rem; margin-bottom: .3rem; }
.bkmp-event-teaser p { margin: .15rem 0; font-size: .85rem; }
.bkmp-event-teaser-when { margin-top: .45rem; font-size: .8rem; color: var(--app-muted, rgba(245, 240, 255, .75)); }
.bkmp-event-info { display: flex; flex-direction: column; gap: .25rem; font-size: .82rem; margin-bottom: .6rem; }
.bkmp-event-choice-wrap { margin-bottom: .8rem; }
.bkmp-event-choice-title { text-align: center; font-weight: 900; font-size: 1.05rem; letter-spacing: .05em; margin-bottom: .5rem; }
.bkmp-event-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; }
.bkmp-event-choice { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .7rem; border-radius: 14px; text-align: center; }
.bkmp-event-choice img { width: 120px; height: 120px; object-fit: contain; }
.bkmp-event-choice-lightnix { border: 1px solid rgba(253, 230, 138, .7); background: linear-gradient(180deg, rgba(253, 230, 138, .16), rgba(0, 0, 0, .25)); }
.bkmp-event-choice-darknix { border: 1px solid rgba(167, 139, 250, .7); background: linear-gradient(180deg, rgba(76, 29, 149, .35), rgba(0, 0, 0, .35)); }
.bkmp-event-choice-name { font-weight: 900; letter-spacing: .06em; }
.bkmp-event-choice-text { font-size: .78rem; color: var(--app-muted, rgba(245, 240, 255, .78)); }
.bkmp-event-chosen { padding: .55rem .7rem; border-radius: 12px; border: 1px solid rgba(74, 222, 128, .5); font-weight: 700; margin-bottom: .6rem; }
.bkmp-event-archive { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .7rem; border-radius: 12px; border: 1px solid rgba(196, 181, 253, .35); font-size: .82rem; margin-bottom: .5rem; }
.bkmp-event-archive-title { font-weight: 800; }

/* Website: Bereich "Was gibt es Neues" */
.special-event-announce {
  margin: 0 0 1.2rem;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(196, 181, 253, .45);
  background: linear-gradient(100deg, rgba(253, 230, 138, .1) 0%, rgba(253, 230, 138, .04) 48%, rgba(76, 29, 149, .3) 52%, rgba(10, 6, 24, .6) 100%);
  color: var(--ink, #f5f3ed);
}
.special-event-announce-kicker { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #c4b5fd; }
.special-event-announce-title { margin: .25rem 0; font-size: 1.35rem; }
.special-event-announce-sub { margin: 0 0 .5rem; color: var(--muted, #b7a8c4); }
.special-event-announce-when { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .85rem; margin-bottom: .6rem; }
.special-event-announce-points { margin: 0 0 .6rem; padding-left: 1.1rem; line-height: 1.55; font-size: .88rem; }
.special-event-announce-lore { margin: 0; font-style: italic; font-size: .85rem; color: var(--muted, #b7a8c4); }

/* Namensfarbe "Zwielicht" (Pass-Stufe 20) - statisch, ohne Animation. */
.mc-cosmetic-zwielicht {
  border-color: transparent;
  background: linear-gradient(180deg, var(--paper-2), var(--paper-2)) padding-box, linear-gradient(90deg, #fde68a 0%, #fde68a 48%, #7c3aed 52%, #1e1238 100%) border-box;
  border: 1px solid transparent;
}
.mc-cosmetic-zwielicht #mcNameBadgeText, .mc-cosmetic-zwielicht .cosmetic-swatch-name, .mc-cosmetic-zwielicht .leaderboard-name-text {
  background: linear-gradient(90deg, #fde68a 0%, #fef3c7 45%, #a78bfa 55%, #7c3aed 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Phase 10: Weg zur Goettlichkeit (Drachen-Detail) ---------- */
.dd-divine { display: flex; flex-direction: column; gap: .3rem; margin-top: .6rem; padding: .65rem .75rem; border-radius: 12px; border: 1px solid rgba(253, 230, 138, .45); background: rgba(253, 230, 138, .05); text-align: left; font-size: .8rem; }
.dd-divine-title { font-weight: 900; font-size: .9rem; }
.dd-divine-line.is-done { color: #86efac; }
.dd-divine-bar { height: 6px; }
.dd-divine-offers { display: flex; flex-wrap: wrap; gap: .35rem; }
.dd-divine-offers button { flex: 1 1 110px; font-size: .74rem; line-height: 1.25; }
.dd-divine-aura { padding: .45rem .55rem; border-radius: 10px; border: 1px dashed rgba(196, 181, 253, .55); }
.dd-divine-awaken { margin-top: .3rem; }

/* Phase 11: kleine Wochenereignisse (laufende Boni) */
.idle-event-mods { display: flex; flex-direction: column; gap: .3rem; }
.idle-event-mod { display: flex; flex-direction: column; gap: .1rem; padding: .35rem .5rem; border-radius: 10px; border: 1px solid rgba(74, 222, 128, .45); background: rgba(74, 222, 128, .06); font-size: .7rem; color: var(--app-muted, rgba(245, 240, 255, .75)); }
.idle-event-mod strong { color: var(--app-ink, #f5f0ff); font-size: .74rem; }

/* Drachen-Detail: mit Eigenschaft, Bindung und "Weg zur Goettlichkeit" wird
   die Karte auf Handys hoeher als der Bildschirm - vorher war der untere Teil
   (z.B. der Erweckungs-Knopf) gar nicht erreichbar (Playwright, mobile-small). */
#idleDragonDetailOverlay .idle-dragon-detail-card { max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; }

/* Kompakt-HUD auf schmalen Handys: mit dem zusaetzlichen Event-Knopf passen
   fuenf 44-px-Knoepfe nicht mehr in eine Zeile (360 px: Umbruch kostete eine
   ganze Zeile Kampfflaeche) - nur dann etwas kleiner (38 px). */
@media (max-width: 420px) {
  .bkmp-proto-chud-row:has(.bkmp-event-hud-btn:not([hidden])) { gap: .25rem; }
  .bkmp-proto-chud-row:has(.bkmp-event-hud-btn:not([hidden])) .bkmp-proto-chud-icon-btn { width: 38px; height: 38px; min-width: 38px; min-height: 38px; }
}
