@layer vhq {
  /* gemeinsame Basis: Quests */
  html body #view .adventure-quests { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto 60px auto minmax(0, 1fr) !important; align-content: start !important; gap: 10px !important; height: 100% !important; min-height: 0 !important; overflow: hidden !important; padding: 14px 16px !important; border: 1px solid rgba(214,178,106,.5) !important; border-radius: 14px !important; background: linear-gradient(180deg, rgba(14,12,26,.9), rgba(8,7,15,.94)) !important; }
  html body #view .adventure-quests > * { min-width: 0 !important; grid-column: 1 !important; grid-row: auto !important; }
  html body #view .adventure-quests > header { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 12px !important; min-height: 0 !important; height: auto !important; padding: 0 !important; }
  html body #view .adventure-quests > header .eyebrow { font: 800 10.5px/1 Manrope, sans-serif !important; letter-spacing: .22em !important; color: #d9b866 !important; }
  html body #view .adventure-quests > header h1 { font: 700 clamp(22px, 2.2vw, 28px)/1.05 Cinzel, Georgia, serif !important; color: #f6dfa4 !important; margin: 4px 0 0 !important; }
  html body #view .adventure-quests > header > span:last-child { padding: 7px 14px !important; border-radius: 999px !important; border: 1px solid rgba(214,178,106,.5) !important; background: rgba(10,9,20,.8) !important; font: 800 11px/1 Manrope, sans-serif !important; letter-spacing: .14em !important; color: #f6dfa4 !important; }
  /* Questgeber: schlanke Leiste */
  html body #view .adventure-questgivers { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-auto-rows: 60px !important; gap: 10px !important; height: 60px !important; min-height: 0 !important; max-height: 60px !important; align-self: start !important; align-content: start !important; }
  html body #view .adventure-questgiver { display: flex !important; align-items: center !important; gap: 12px !important; height: 60px !important; min-height: 0 !important; padding: 8px 14px 8px 8px !important; border: 1px solid rgba(214,178,106,.32) !important; border-radius: 12px !important; background: linear-gradient(90deg, rgba(10,9,20,.92), rgba(10,9,20,.6)), var(--giver-art) center 20% / cover !important; overflow: hidden !important; }
  html body #view .adventure-questgiver img { width: 44px !important; height: 44px !important; border-radius: 50% !important; border: 2px solid rgba(214,178,106,.6) !important; object-fit: cover !important; flex: 0 0 44px !important; }
  html body #view .adventure-questgiver > span { display: flex !important; flex-direction: column !important; gap: 3px !important; min-width: 0 !important; }
  html body #view .adventure-questgiver b { font: 700 15px/1 Cinzel, Georgia, serif !important; color: #f6dfa4 !important; }
  html body #view .adventure-questgiver small { font: 500 11px/1.2 Manrope, sans-serif !important; color: #b9b2c4 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  html body #view .adventure-questgiver em { font: 800 10px/1 Manrope, sans-serif !important; font-style: normal !important; letter-spacing: .08em !important; color: #9be8b6 !important; }
  /* Filter */
  html body #view .adventure-quest-filters { display: flex !important; gap: 8px !important; height: auto !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
  html body #view .adventure-quest-filters button { min-height: 36px !important; padding: 0 18px !important; border-radius: 999px !important; border: 1px solid rgba(214,178,106,.3) !important; background: rgba(20,17,32,.9) !important; color: #cfc7d8 !important; font: 800 11px/1 Manrope, sans-serif !important; letter-spacing: .14em !important; }
  html body #view .adventure-quest-filters button.active, html body #view .adventure-quest-filters button[aria-pressed="true"] { background: linear-gradient(180deg, #f0d286, #b98a3a) !important; color: #20140a !important; border-color: #f6dfa4 !important; box-shadow: 0 0 16px rgba(246,200,110,.35) !important; }
  html body #view .adventure-quest-scroll { min-height: 0 !important; height: 100% !important; overflow-y: auto !important; padding: 2px 4px 2px 0 !important; scrollbar-width: thin !important; scrollbar-color: #b98a3a transparent !important; }
  html body #view .adventure-quest-grid { display: grid !important; gap: 10px !important; height: auto !important; grid-auto-rows: min-content !important; align-content: start !important; align-items: start !important; }
  /* Karte: gemeinsam */
  html body #view .adventure-quest-card { position: relative !important; display: flex !important; flex-direction: column !important; gap: 8px !important; height: auto !important; min-height: 0 !important; padding: 0 !important; border: 1px solid rgba(214,178,106,.3) !important; border-radius: 12px !important; background: linear-gradient(180deg, rgba(22,19,36,.96), rgba(10,9,20,.98)) !important; overflow: hidden !important; box-shadow: 0 6px 18px rgba(0,0,0,.4) !important; }
  html body #view .adventure-quest-card.active { border-color: #f6dfa4 !important; box-shadow: 0 0 0 1px #f6dfa4, 0 0 20px rgba(246,223,164,.3) !important; }
  html body #view .adventure-quest-card.ready { border-color: #9be8b6 !important; box-shadow: 0 0 0 1px #9be8b6, 0 0 22px rgba(120,205,150,.4) !important; }
  html body #view .adventure-quest-card.complete { opacity: .6 !important; }
  html body #view .adventure-quest-art { position: relative !important; flex: 0 0 auto !important; background: var(--quest-art) center / cover no-repeat !important; min-height: 0 !important; }
  html body #view .adventure-quest-art::after { content: "" !important; position: absolute !important; inset: 0 !important; background: linear-gradient(0deg, rgba(10,9,20,.92), rgba(10,9,20,.1) 80%) !important; }
  html body #view .adventure-quest-art span { position: absolute !important; left: 10px !important; bottom: 6px !important; z-index: 1 !important; font: 800 9.5px/1 Manrope, sans-serif !important; letter-spacing: .16em !important; color: #d9b866 !important; text-transform: uppercase !important; }
  html body #view .adventure-quest-card > header { display: flex !important; align-items: center !important; gap: 10px !important; padding: 0 12px !important; min-height: 0 !important; height: auto !important; }
  html body #view .adventure-quest-card > header img { width: 34px !important; height: 34px !important; border-radius: 50% !important; border: 2px solid rgba(214,178,106,.5) !important; flex: 0 0 34px !important; }
  html body #view .adventure-quest-card > header > span { flex: 1 1 auto !important; min-width: 0 !important; display: flex !important; flex-direction: column !important; gap: 3px !important; }
  html body #view .adventure-quest-card > header small { font: 700 10px/1.2 Manrope, sans-serif !important; color: #b9a577 !important; letter-spacing: .08em !important; text-transform: uppercase !important; }
  html body #view .adventure-quest-card > header h3 { font: 700 15px/1.15 Cinzel, Georgia, serif !important; color: #f3e2b8 !important; margin: 0 !important; overflow-wrap: anywhere !important; }
  html body #view .adventure-quest-card .quest-inspect { flex: 0 0 26px !important; width: 26px !important; height: 26px !important; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important; font: 700 12px/1 Georgia, serif !important; }
  html body #view .adventure-quest-card ul { display: flex !important; flex-direction: column !important; gap: 6px !important; margin: 0 !important; padding: 0 12px !important; list-style: none !important; }
  html body #view .adventure-quest-card li { display: block !important; margin: 0 !important; }
  html body #view .adventure-quest-card li > span { display: flex !important; justify-content: space-between !important; gap: 8px !important; font: 600 12px/1.2 Manrope, sans-serif !important; color: #cfc7d8 !important; }
  html body #view .adventure-quest-card li b { font-weight: 600 !important; }
  html body #view .adventure-quest-card li em { font: 800 11px/1.2 Manrope, sans-serif !important; font-style: normal !important; color: #f6dfa4 !important; white-space: nowrap !important; }
  html body #view .adventure-quest-card li > i { display: block !important; height: 5px !important; margin-top: 3px !important; border-radius: 99px !important; background: rgba(255,255,255,.12) !important; overflow: hidden !important; }
  html body #view .adventure-quest-card li u { display: block !important; height: 100% !important; background: linear-gradient(90deg, #d9b866, #f6dfa4) !important; text-decoration: none !important; }
  html body #view .adventure-quest-card .quest-category-label { margin: 0 12px !important; align-self: flex-start !important; padding: 3px 8px !important; border-radius: 999px !important; border: 1px solid rgba(110,170,230,.5) !important; background: rgba(20,40,70,.6) !important; color: #9cc8ff !important; font: 800 9px/1 Manrope, sans-serif !important; letter-spacing: .1em !important; }
  html body #view .adventure-quest-card > footer { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important; margin-top: auto !important; padding: 8px 12px 10px !important; border-top: 1px solid rgba(214,178,106,.18) !important; min-height: 0 !important; height: auto !important; }
  html body #view .adventure-quest-card > footer > span { display: flex !important; flex-direction: column !important; gap: 3px !important; }
  html body #view .adventure-quest-card > footer small { font: 800 9px/1 Manrope, sans-serif !important; letter-spacing: .18em !important; color: #b9a577 !important; }
  html body #view .adventure-quest-card > footer b { font: 700 12.5px/1.1 Manrope, sans-serif !important; color: #f4efe6 !important; }
  html body #view .adventure-quest-card > footer .button { min-height: 34px !important; height: 34px !important; padding: 0 16px !important; border-radius: 9px !important; font: 800 11px/1 Cinzel, serif !important; letter-spacing: .12em !important; }
  @media (max-width: 860px) {
    html body #view .adventure-quests { display: flex !important; flex-direction: column !important; height: auto !important; overflow: visible !important; }
    html body #view .adventure-questgivers { display: flex !important; overflow-x: auto !important; scrollbar-width: none !important; }
    html body #view .adventure-questgiver { flex: 0 0 220px !important; }
    html body #view .adventure-quest-scroll { overflow: visible !important; height: auto !important; }
    html body #view .adventure-quest-grid { grid-template-columns: 1fr !important; }
  }
}
@layer vhq {
  /* C · Plakate: 3 große Bildkarten, Text über dem Bild */
  html body #view .adventure-quest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  html body #view .adventure-quest-card { min-height: 230px !important; background: #0a0912 !important; justify-content: flex-end !important; }
  html body #view .adventure-quest-art { position: absolute !important; inset: 0 !important; height: auto !important; z-index: 0 !important; }
  html body #view .adventure-quest-art::after { background: linear-gradient(0deg, rgba(8,7,15,.97) 38%, rgba(8,7,15,.35) 80%) !important; }
  html body #view .adventure-quest-art span { top: 10px !important; bottom: auto !important; padding: 4px 9px !important; border-radius: 999px !important; background: rgba(10,9,20,.8) !important; border: 1px solid rgba(214,178,106,.4) !important; }
  html body #view .adventure-quest-card > header, html body #view .adventure-quest-card ul, html body #view .adventure-quest-card > footer, html body #view .adventure-quest-card .quest-category-label { position: relative !important; z-index: 1 !important; }
  html body #view .adventure-quest-card > footer { border-top: 0 !important; background: transparent !important; }
  html body #view .adventure-quest-card > header { margin-top: auto !important; }
  html body #view .adventure-quest-card > footer { margin-top: 0 !important; }
}
@layer vhq {
  @media (max-width: 860px) {
    html body #view .adventure-quest-grid { grid-template-columns: minmax(0, 1fr) !important; }
    html body #view .adventure-quest-card { min-height: 220px !important; }
  }
}
