/* ============================================================
   Beutefilter (Loot Filter) — Übersicht, Detail, Editor
   Basis-Klassen (chub-*, page-hero, btn) kommen aus content-hub.css / main.css.
   ============================================================ */

.lf-page { padding: 0 0 2.5rem; }
.lf-hero__logo { width: 56px; height: 56px; display: grid; place-items: center; color: var(--gold-bright, #d40b06); }
.lf-hero__logo svg { width: 40px; height: 40px; }
.lf-preview-badge {
    display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.6rem;
    padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
    color: #f3d27a; background: rgba(196, 162, 78, 0.12); border: 1px solid rgba(196, 162, 78, 0.35);
}

/* ---------- Toolbar (Liste) ---------- */
.lf-toolbar {
    display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 0 0 1.25rem;
}
.lf-toolbar__tabs { display: inline-flex; gap: 0.25rem; padding: 0.2rem; background: var(--bg-panel); border: 1px solid var(--border, #2a2a35); border-radius: 8px; }
.lf-toolbar__tab {
    background: transparent; border: 0; color: var(--text-secondary); padding: 0.4rem 0.85rem; border-radius: 6px; cursor: pointer; font: inherit; font-size: 0.88rem;
}
.lf-toolbar__tab--active { background: var(--bg-panel-hover); color: var(--text-primary); }
.lf-toolbar__spacer { flex: 1 1 auto; }
.lf-toolbar input, .lf-toolbar select {
    background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border, #2a2a35);
    border-radius: 6px; padding: 0.45rem 0.7rem; font: inherit; font-size: 0.88rem; min-width: 160px;
}

/* ---------- Karten ---------- */
.lf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.lf-card {
    display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem 1.1rem;
    background: var(--bg-panel); border: 1px solid var(--border, #2a2a35); border-radius: 10px;
    transition: border-color 0.15s, transform 0.15s;
}
.lf-card:hover { border-color: rgba(196, 162, 78, 0.45); transform: translateY(-2px); }
.lf-card__head { display: flex; gap: 0.7rem; align-items: center; min-width: 0; }
.lf-card__class { width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; background: var(--bg-secondary); border: 1px solid var(--border, #2a2a35); overflow: hidden; }
.lf-card__class img { width: 100%; height: 100%; object-fit: cover; }
.lf-card__class svg { width: 22px; height: 22px; color: var(--text-dimmed); }
.lf-card__title { margin: 0; font-size: 1rem; line-height: 1.3; min-width: 0; }
.lf-card__title a { color: var(--text-primary); text-decoration: none; }
.lf-card__title a:hover { color: #f3d27a; }
.lf-card__by { font-size: 0.8rem; color: var(--text-dimmed); }
.lf-card__by a { color: var(--text-secondary); text-decoration: none; }
.lf-card__desc { margin: 0; font-size: 0.86rem; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lf-card__meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; font-size: 0.78rem; color: var(--text-dimmed); margin-top: auto; }
.lf-card__actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.lf-card__rules { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.lf-chip {
    display: inline-flex; align-items: center; gap: 0.3rem; max-width: 100%; padding: 0.15rem 0.5rem; border-radius: 999px;
    font-size: 0.72rem; background: var(--bg-secondary); border: 1px solid var(--border, #2a2a35); color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lf-chip__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 4px currentColor; }
.lf-vis { font-size: 0.72rem; padding: 0.1rem 0.45rem; border-radius: 999px; border: 1px solid var(--border, #2a2a35); color: var(--text-dimmed); }
.lf-vis--public { color: #7fd48a; border-color: rgba(127, 212, 138, 0.4); }
.lf-vis--unlisted { color: #e7c46a; border-color: rgba(231, 196, 106, 0.4); }
.lf-empty { padding: 2.5rem 1rem; text-align: center; color: var(--text-dimmed); border: 1px dashed var(--border, #2a2a35); border-radius: 10px; }
.lf-pager { display: flex; justify-content: center; gap: 0.4rem; margin-top: 1.5rem; }

/* ---------- Code-Box ---------- */
.lf-codebox { position: relative; background: #0d0e12; border: 1px solid var(--border, #2a2a35); border-radius: 8px; padding: 0.85rem 1rem; }
.lf-codebox pre { margin: 0; max-height: 140px; overflow: auto; white-space: pre-wrap; word-break: break-all; font-size: 0.74rem; line-height: 1.45; color: var(--text-secondary); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.lf-codebox__bar { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.lf-codebox__bar .btn { gap: 0.4rem; }
.lf-codebox__hint { font-size: 0.8rem; color: var(--text-dimmed); margin: 0; }
.btn--copied { background: rgba(127, 212, 138, 0.15) !important; border-color: rgba(127, 212, 138, 0.5) !important; color: #7fd48a !important; }

/* ---------- Detail ---------- */
.lf-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.lf-detail__side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 90px; }
.lf-panel { background: var(--bg-panel); border: 1px solid var(--border, #2a2a35); border-radius: 10px; padding: 1.1rem 1.2rem; }
.lf-panel h2, .lf-panel h3 { margin: 0 0 0.75rem; font-size: 1rem; }
.lf-panel ol { margin: 0; padding-left: 1.2rem; font-size: 0.88rem; color: var(--text-secondary); display: grid; gap: 0.35rem; }
.lf-note { font-size: 0.82rem; color: var(--text-dimmed); border-left: 3px solid rgba(196, 162, 78, 0.5); padding-left: 0.7rem; margin: 0.75rem 0 0; }
.lf-detail__desc { color: var(--text-secondary); white-space: pre-line; margin: 0 0 1.25rem; }
.lf-author { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; }
.lf-author img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.lf-author a { color: var(--text-primary); text-decoration: none; }

/* Regel-Liste (Detail + Editor teilen die Optik) */
.lf-rules { display: grid; gap: 0.5rem; counter-reset: lfrule; }
.lf-rule {
    display: grid; grid-template-columns: 28px 14px minmax(0, 1fr); gap: 0.7rem; align-items: start;
    padding: 0.7rem 0.85rem; border: 1px solid var(--border, #2a2a35); border-radius: 8px; background: var(--bg-secondary);
}
.lf-rule--disabled { opacity: 0.5; }
.lf-rule__no { counter-increment: lfrule; font-size: 0.75rem; color: var(--text-dimmed); padding-top: 0.15rem; }
.lf-rule__no::before { content: counter(lfrule); }
.lf-rule__color { width: 14px; height: 14px; border-radius: 3px; margin-top: 0.2rem; box-shadow: 0 0 6px currentColor; }
.lf-rule__body { min-width: 0; }
.lf-rule__title { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: baseline; font-weight: 600; font-size: 0.92rem; }
.lf-rule__title .lf-vis { font-weight: 400; }
.lf-rule__conds { margin: 0.35rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.2rem; font-size: 0.82rem; color: var(--text-secondary); }
.lf-rule__conds li::before { content: '›'; color: var(--text-dimmed); margin-right: 0.4rem; }
.lf-rule__conds .lf-ids { color: var(--text-dimmed); }
.lf-rule__conds .lf-unknown { color: #e7c46a; }

/* ---------- Editor ---------- */
.lf-editor { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.lf-editor__side { display: flex; flex-direction: column; gap: 1rem; }
.lf-editor__main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.lf-field { display: grid; gap: 0.3rem; margin-bottom: 0.75rem; }
.lf-field label { font-size: 0.8rem; color: var(--text-dimmed); }
.lf-field input[type="text"], .lf-field textarea, .lf-field select, .lf-field input[type="number"] {
    background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border, #2a2a35); border-radius: 6px;
    padding: 0.5rem 0.7rem; font: inherit; font-size: 0.9rem; width: 100%; box-sizing: border-box;
}
.lf-field textarea { min-height: 80px; resize: vertical; }
.lf-field--row { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.lf-import textarea { min-height: 90px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.74rem; }
.lf-import__bar { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.lf-import__msg { font-size: 0.82rem; color: var(--text-dimmed); }
.lf-import__msg--ok { color: #7fd48a; }
.lf-import__msg--err { color: #ff7b7b; }

.lf-rulelist { display: grid; gap: 0.4rem; counter-reset: lfrule; }
.lf-rulelist__item {
    display: grid; grid-template-columns: 24px 12px minmax(0, 1fr) auto; gap: 0.5rem; align-items: center;
    padding: 0.5rem 0.65rem; border: 1px solid var(--border, #2a2a35); border-radius: 8px; background: var(--bg-secondary); cursor: pointer;
}
.lf-rulelist__item:hover { border-color: rgba(196, 162, 78, 0.4); }
.lf-rulelist__item--active { border-color: var(--gold-bright, #d40b06); background: var(--bg-panel-hover); }
.lf-rulelist__item--disabled .lf-rulelist__name { opacity: 0.5; text-decoration: line-through; }
.lf-rulelist__no { counter-increment: lfrule; font-size: 0.72rem; color: var(--text-dimmed); }
.lf-rulelist__no::before { content: counter(lfrule); }
.lf-rulelist__dot { width: 12px; height: 12px; border-radius: 3px; box-shadow: 0 0 5px currentColor; }
.lf-rulelist__name { font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-rulelist__sub { font-size: 0.72rem; color: var(--text-dimmed); display: block; }
.lf-rulelist__tools { display: flex; gap: 0.15rem; }
.lf-iconbtn {
    background: transparent; border: 1px solid transparent; color: var(--text-dimmed); width: 26px; height: 26px; border-radius: 5px; cursor: pointer;
    display: grid; place-items: center; padding: 0;
}
.lf-iconbtn:hover { color: var(--text-primary); border-color: var(--border, #2a2a35); background: var(--bg-panel); }
.lf-iconbtn svg { width: 14px; height: 14px; }
.lf-iconbtn--danger:hover { color: #ff7b7b; }
.lf-rulelist__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.6rem; }
.lf-rulelist__head h3 { margin: 0; }
.lf-count { font-size: 0.78rem; color: var(--text-dimmed); }
.lf-count--over { color: #ff7b7b; font-weight: 600; }
.lf-hint { font-size: 0.8rem; color: var(--text-dimmed); margin: 0.4rem 0 0; }

.lf-ruleedit__head { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 0.75rem; align-items: end; }
.lf-color { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; }
.lf-color input[type="color"] { width: 40px; height: 32px; border: 1px solid var(--border, #2a2a35); border-radius: 6px; background: var(--bg-input); padding: 2px; cursor: pointer; }
.lf-swatch { width: 22px; height: 22px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.15); cursor: pointer; }
.lf-swatch:hover { transform: scale(1.1); }
.lf-toggle { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; cursor: pointer; }

.lf-conds { display: grid; gap: 0.6rem; margin-top: 0.5rem; }
.lf-cond { border: 1px solid var(--border, #2a2a35); border-radius: 8px; background: var(--bg-secondary); padding: 0.65rem 0.8rem; }
.lf-cond__head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.lf-cond__head strong { font-size: 0.88rem; flex: 1; }
.lf-cond__body { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; align-items: center; font-size: 0.86rem; }
.lf-cond__body input[type="number"] { width: 90px; background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border, #2a2a35); border-radius: 6px; padding: 0.35rem 0.5rem; font: inherit; }
.lf-checks { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; }
.lf-checks label { display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer; }
.lf-cond__add { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.4rem; }
.lf-cond__add .btn { font-size: 0.8rem; padding: 0.35rem 0.65rem; }

/* Picker (Affixe / Typen / Uniques) */
.lf-picker { width: 100%; }
.lf-picker__search { width: 100%; box-sizing: border-box; background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border, #2a2a35); border-radius: 6px; padding: 0.4rem 0.6rem; font: inherit; font-size: 0.85rem; margin-bottom: 0.4rem; }
.lf-picker__list { max-height: 210px; overflow: auto; border: 1px solid var(--border, #2a2a35); border-radius: 6px; background: var(--bg-panel); padding: 0.25rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.1rem; }
.lf-picker__item { display: flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.4rem; border-radius: 4px; font-size: 0.82rem; cursor: pointer; }
.lf-picker__item:hover { background: var(--bg-panel-hover); }
.lf-picker__item--on { color: #f3d27a; }
.lf-picker__item small { color: var(--text-dimmed); margin-left: auto; }
.lf-picker__selected { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.4rem; }
.lf-picker__selected .lf-chip { cursor: pointer; }
.lf-picker__selected .lf-chip:hover { border-color: #ff7b7b; color: #ff7b7b; }

.lf-editor__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.lf-editor__status { font-size: 0.82rem; color: var(--text-dimmed); }
.lf-editor__status--dirty { color: #e7c46a; }
.lf-editor__empty { padding: 2rem 1rem; text-align: center; color: var(--text-dimmed); }

@media (max-width: 1024px) {
    .lf-detail { grid-template-columns: 1fr; }
    .lf-detail__side { position: static; }
    .lf-editor { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .lf-ruleedit__head { grid-template-columns: 1fr; }
    .lf-field--row { grid-template-columns: 1fr; }
    .lf-toolbar input, .lf-toolbar select { min-width: 0; flex: 1 1 140px; }
}

/* ---------- Live-Vorschau ---------- */
.lf-preview { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1rem; align-items: start; }
.lf-preview__form { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.5rem 0.8rem; font-size: 0.84rem; }
.lf-preview__form label { display: grid; gap: 0.2rem; color: var(--text-dimmed); }
.lf-preview__form label.lf-toggle { display: inline-flex; align-items: center; align-self: end; color: var(--text-secondary); }
.lf-preview__form input[type="number"], .lf-preview__form select, .lf-preview__form input[type="search"] {
    background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border, #2a2a35); border-radius: 6px; padding: 0.35rem 0.5rem; font: inherit; width: 100%; box-sizing: border-box;
}
.lf-preview__affixes { grid-column: 1 / -1; }
.lf-preview__result { display: grid; gap: 0.5rem; }
.lf-preview__ground {
    height: 120px; border-radius: 8px; display: grid; place-items: center;
    background: radial-gradient(ellipse at center, #2b241c 0%, #15120e 70%);
    border: 1px solid var(--border, #2a2a35); position: relative; overflow: hidden;
}
.lf-preview__ground::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(0,0,0,0.5)); }
.lf-preview__ground--hidden::before { content: '∅'; color: var(--text-dark); font-size: 2rem; }
.lf-preview__label {
    position: relative; z-index: 1; padding: 0.3rem 0.7rem; border: 1px solid currentColor; border-radius: 3px;
    background: rgba(0, 0, 0, 0.75); font-weight: 600; font-size: 0.9rem; text-shadow: 0 0 6px currentColor; letter-spacing: 0.02em;
}
.lf-preview__label--nolabel { width: 10px; height: 10px; padding: 0; border-radius: 50%; background: currentColor; }
.lf-preview__verdict { margin: 0; font-size: 0.82rem; color: var(--text-secondary); }
.lf-preview__none { color: var(--text-dimmed); }
.lf-rulelist__item--hit { box-shadow: inset 3px 0 0 #7fd48a; }
.lf-rule--hit { border-color: rgba(127, 212, 138, 0.6); box-shadow: inset 3px 0 0 #7fd48a; }
@media (max-width: 900px) { .lf-preview { grid-template-columns: 1fr; } }

/* ---------- Katalog-Auswahl: Leiste, Gruppen, Set-Teile (14.11.2026) ---------- */
.lf-picker__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; margin-bottom: 0.4rem; }
.lf-picker__bar .lf-picker__search { flex: 1 1 200px; width: auto; margin: 0; }
.lf-picker__bar .lf-toggle { font-size: 0.8rem; color: var(--text-dimmed); white-space: nowrap; }
.lf-picker__bar .btn { letter-spacing: 0.02em; }
.lf-picker__list { max-height: 260px; align-content: start; }
.lf-picker__group { grid-column: 1 / -1; position: sticky; top: -0.25rem; z-index: 1; padding: 0.3rem 0.4rem 0.2rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent, #c4a24e); background: var(--bg-panel, #13151a); border-bottom: 1px solid var(--border, #2a2a35); }
.lf-picker__group small { color: var(--text-dimmed); font-weight: 400; margin-left: 0.3rem; }
.lf-picker__item small + small { margin-left: 0.4rem; }
.lf-picker__sub { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; padding: 0.15rem 0.4rem 0.45rem 1.7rem; font-size: 0.78rem; color: var(--text-dimmed); }
.lf-picker__sub label { display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer; }
/* Farbe zählt nur bei „Einfärben“ — sonst zurückgenommen statt irreführend leuchtend */
.lf-rule__color--off, .lf-rulelist__dot--off { opacity: 0.25; box-shadow: none; }
.lf-field--muted .lf-color { opacity: 0.45; }
.lf-ids strong { font-weight: 600; color: var(--text-primary); }

/* ---------- Öffentliche Rubrik (15.11.2026): Karten, Liste, Detailseite ---------- */
.lf-toolbar { align-items: center; }
.lf-toolbar__tab { text-decoration: none; display: inline-flex; align-items: center; }
.lf-toolbar__go { white-space: nowrap; }
.lf-count-line { margin: 0 0 0.75rem; font-size: 0.82rem; color: var(--text-dimmed); }
.lf-card__headtext { min-width: 0; }
.lf-card__title { overflow-wrap: anywhere; }
.lf-card__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.lf-card__chips .lf-chip { font-size: 0.72rem; }
.lf-card__colors { display: inline-flex; gap: 3px; margin-left: 0.2rem; }
.lf-card__colors i { width: 10px; height: 10px; border-radius: 2px; display: block; box-shadow: 0 0 4px rgba(0, 0, 0, 0.6); }
.lf-card__meta span, .lf-card__meta time { display: inline-flex; align-items: center; gap: 0.25rem; }
.lf-card__meta time { margin-left: auto; }
.lf-card .role-badge { font-size: 0.62rem; vertical-align: middle; }
.lf-empty--big { display: grid; justify-items: center; gap: 0.9rem; padding: 2.5rem 1rem; text-align: center; }
.lf-empty--big p { margin: 0; }
.lf-about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem; align-items: start; }
.lf-faq details { border-top: 1px solid var(--border, #2a2a35); padding: 0.6rem 0; }
.lf-faq details:first-of-type { border-top: 0; padding-top: 0; }
.lf-faq summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--text-primary); }
.lf-faq p { margin: 0.45rem 0 0; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; }
.lf-hero__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.lf-fav { display: inline-flex; align-items: center; gap: 0.45rem; }
.lf-fav--on { color: #ff6b6b; border-color: rgba(255, 107, 107, 0.5); }
.lf-fav__count { font-variant-numeric: tabular-nums; padding-left: 0.45rem; border-left: 1px solid var(--border, #2a2a35); color: var(--text-dimmed); }
.lf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; margin: 0.9rem 0 0; }
.lf-stats div { display: grid; gap: 0.1rem; }
.lf-stats dt { font-size: 0.72rem; color: var(--text-dimmed); text-transform: uppercase; letter-spacing: 0.05em; }
.lf-stats dd { margin: 0; font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.lf-report { justify-self: start; color: var(--text-dimmed); }
.lf-related { margin-top: 2rem; }
.lf-related__title { font-size: 1.1rem; margin: 0 0 0.9rem; }
.lf-comments { margin-top: 1.25rem; }
.lf-codebox__bar .lf-codebox__hint { flex: 1 1 220px; }
@media (max-width: 900px) {
    .lf-about__grid { grid-template-columns: 1fr; }
    .lf-toolbar input[type="search"] { flex: 1 1 100%; }
}

/* ---------- Build-Planer, Reiter „Loot-Filter“ (15.11.2026): Auswahl aus der Rubrik + Regeln des Codes ---------- */
.lf-bt { margin: 0.75rem 0; }
.lf-bt[hidden] { display: none; }
.lf-bt__bar { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lf-bt__panel { margin-top: 0.75rem; padding: 0.9rem; background: var(--bg-panel, #13151a); border: 1px solid var(--border, #2a2a35); border-radius: 10px; }
.lf-bt__panel[hidden] { display: none; }
.lf-bt__filters { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; margin-bottom: 0.75rem; }
.lf-bt__filters .lf-picker__search { flex: 1 1 200px; width: auto; margin: 0; }
.lf-bt__filters .lf-toggle { font-size: 0.82rem; color: var(--text-dimmed); white-space: nowrap; }
.lf-bt__list { display: grid; gap: 0.35rem; max-height: 320px; overflow: auto; }
.lf-bt__row, .lf-bt__card { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.7rem; border: 1px solid var(--border, #2a2a35); border-radius: 8px; background: var(--bg-secondary, #0f1014); }
.lf-bt__rowmain, .lf-bt__cardmain { flex: 1 1 auto; min-width: 0; display: grid; gap: 0.1rem; }
.lf-bt__rowtitle, .lf-bt__title { color: var(--text-primary); text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-bt__rowtitle:hover, .lf-bt__title:hover { color: #f3d27a; }
.lf-bt__by { font-size: 0.78rem; color: var(--text-dimmed); display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.lf-bt__by a { color: var(--text-secondary); text-decoration: none; }
.lf-bt__kicker { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent, #c4a24e); font-weight: 700; }
.lf-bt__card { border-color: rgba(196, 162, 78, 0.35); }
.lf-bt__outdated { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.5rem; padding: 0.5rem 0.7rem; border-left: 3px solid #e7c46a; background: rgba(231, 196, 106, 0.07); font-size: 0.85rem; color: var(--text-secondary); }
.lf-bt__publish { font-size: 0.85rem; }
.lf-bt__publish a { color: var(--text-secondary); }
.lf-bt__rules { margin-top: 0.75rem; }
.lf-bt__rules > summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; padding: 0.35rem 0; }
.lf-bt__rules .lf-rules { margin-top: 0.5rem; }

/* =====================================================================================================================
   Editor im Spiel-Look (15.11.2026, nach Screenshots des Spielfensters): Titelleiste, links „Ausgewählter Beutefilter“
   (goldene Kopfleiste) mit der Regelliste, rechts der Regeleditor (silberne Kopfleiste) mit der Tabelle Bedingung |
   Eigenschaft, unten „Änderungen speichern“; Auswahlfenster für Typen, Affixe, Uniques und Talismansets.
   Grafiken aus dem Explorer (UI-Szene LootFilter, /assets/img/ui/explorer/<Handle>.webp): Hintergründe 99117164 / 99117165,
   Kopfleisten 2639145196 / 2639145197, Knöpfe 2262359647 (rot) / 2396611276 (hellrot, gewählt) / 996846888 (dunkel) /
   4210157723 (gesperrt), rote Quadrate 6426785 (leer) / 3552318516 (•••) / 1289203808 (Feder) / 4287852126 (Lupe),
   Symbol Duplizieren 982015971.
   ===================================================================================================================== */
.lf-editor--game { display: flex; flex-direction: column; align-items: stretch; gap: 1.25rem; }
/* Aufbau der Seite (Entwurf A, 15.11.2026) mit den Bausteinen der Seite: Leiste wie die Filterleiste der Guides, Abschnittsköpfe
   in Versalien mit Haarlinie (wie .chub--guides .chub-section__head), Code und Test ohne Kästen */
.lf-hero .lf-editor__actions { flex-direction: row; align-items: center; gap: 0.9rem; }
.lf-bar { background: rgba(10, 10, 15, 0.45); border: 1px solid var(--border-color, #2a2a35); border-radius: 8px; padding: 0.85rem 1rem 1rem; }
.lf-ed-details { display: flex; flex-direction: column; gap: 0.75rem; }
.lf-ed-details__row { display: grid; grid-template-columns: minmax(0, 1fr) 230px auto; gap: 0.85rem; align-items: end; }
.lf-ed-details__row--desc { grid-template-columns: minmax(0, 1fr) auto; }
.lf-ed-details .lf-field { margin: 0; }
.lf-ed-details .lf-field input[type="text"], .lf-ed-details .lf-field select, .lf-ed-details .lf-field textarea { min-height: 40px; }
.lf-field__label { font-size: 0.8rem; color: var(--text-dimmed); }
.lf-ed-desc textarea { min-height: 40px; height: 40px; resize: vertical; }
.lf-ed-vishint { margin: 0; padding-bottom: 0.6rem; font-size: 0.82rem; max-width: 34ch; }
.lf-seg { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--border-color, #2a2a35); border-radius: 8px; background: rgba(10, 10, 15, 0.4); }
.lf-seg button { min-height: 32px; padding: 0.3rem 0.85rem; border: 1px solid transparent; border-radius: 5px; background: none; color: var(--text-secondary); font: 700 0.84rem/1.2 var(--font-body); white-space: nowrap; cursor: pointer; }
.lf-seg button:hover { color: var(--text-primary); }
.lf-seg button[aria-pressed="true"] { background: var(--red, #a50905); border-color: var(--red-bright, #d40b06); color: #fff; }
.lf-ed-import { display: flex; flex-direction: column; gap: 0.6rem; }
.lf-ed-import[hidden] { display: none; }
.lf-ed-import__sub { margin: 0; }
.lf-ed-import textarea { box-sizing: border-box; width: 100%; min-height: 84px; resize: vertical; background: var(--bg-input); color: var(--text-primary);
    border: 1px solid var(--border-color, #2a2a35); border-radius: 6px; padding: 0.5rem 0.6rem; }
.lf-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0.9rem 0 -0.2rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-color, #2a2a35); }
.lf-sec--action { align-items: center; margin-top: 0; }
.lf-sec__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 0.85rem; min-width: 0; }
.lf-sec__title { margin: 0; font-family: var(--font-body); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #9a978e; }
.lf-sec__sub { margin: 0; font-size: 0.9rem; color: var(--text-dimmed); }
.lf-ed-code { margin-top: 0.9rem; }
.lf-ed-code__pre { margin: 1rem 0 0; padding: 0.75rem 0.9rem; max-height: 132px; overflow: auto; background: #0d0e12; border: 1px solid var(--border-color, #2a2a35); border-radius: 6px;
    white-space: pre-wrap; word-break: break-all; font: 0.78rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text-secondary); }
.lf-ed-code > .lf-hint { margin: 0.6rem 0 0; font-size: 0.85rem; }
.lf-ed-test { margin-top: 0.6rem; border-top: 1px solid var(--border-color, #2a2a35); border-bottom: 1px solid var(--border-color, #2a2a35); }
.lf-ed-test > summary { padding: 0.85rem 0.25rem; cursor: pointer; font-weight: 700; }
.lf-ed-test > summary span { margin-left: 0.5rem; font-weight: 400; font-size: 0.9rem; color: var(--text-dimmed); }
.lf-ed-test > #lf-preview { padding: 0.25rem 0 1.1rem; }
@media (max-width: 1100px) {
    .lf-ed-details__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .lf-ed-title, .lf-ed-details__row--desc { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
    .lf-ed-vishint { padding-bottom: 0; max-width: none; }
}
@media (max-width: 700px) {
    .lf-hero .lf-editor__actions { flex-wrap: wrap; }
    .lf-ed-details__row { grid-template-columns: minmax(0, 1fr); }
    .lf-seg { display: flex; }
    .lf-seg button { flex: 1 1 0; padding: 0.3rem 0.4rem; }
    .lf-sec, .lf-sec--action { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .lf-ed-test > summary span { display: block; margin: 0.15rem 0 0; }
}
/* Rubrik im Aufbau von /builds: Klassenkarten (.class-grid--filter aus main.css) und Filterleiste (.builds-toolbar) */
.lf-classes { margin-bottom: 1rem; }
.lf-classes .class-card { text-decoration: none; }
.lf-toolbar2 a.home-builds__tab, .lf-toolbar2 a.filter-bar__type-tab { display: inline-flex; align-items: center; text-decoration: none; }
.lf-toolbar2__search { display: flex; align-items: center; gap: 0.4rem; flex: 1 1 260px; justify-content: flex-end; }
.lf-toolbar2__search input[type="search"] { flex: 1 1 auto; max-width: 320px; min-width: 0; padding: 0.4rem 0.75rem; font: inherit; font-size: 0.83rem; line-height: 1.2; color: var(--text-primary);
    background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border-color, #2a2a35); border-radius: 6px; }
.lf-toolbar2__search input[type="search"]:focus { outline: none; border-color: rgba(196, 162, 78, 0.5); }
.lf-toolbar2__search .btn { padding: 0.4rem 0.8rem; font-size: 0.83rem; }
@media (max-width: 700px) {
    .lf-toolbar2__search { flex-basis: 100%; justify-content: stretch; }
    .lf-toolbar2__search input[type="search"] { max-width: none; }
}

/* Detailseite im Aufbau einer Build-Seite: Kopf mit Kennzahlen-Leiste, Aktionsleiste, Fenster wie im Spiel (nur lesen) */
.lf-vhero { margin-bottom: 0.9rem; border: 1px solid rgba(196, 162, 78, 0.18); border-radius: var(--border-radius-lg, 10px); background: rgba(10, 10, 15, 0.55); overflow: hidden; }
.lf-vhero__top { position: relative; display: flex; align-items: center; gap: 1.25rem; padding: 1.1rem 1.375rem; }
.lf-vhero__top > * { position: relative; }
.lf-vhero__top > .page-hero__glow { position: absolute; }
.lf-vhero__icon { flex: none; width: 80px; height: 80px; display: grid; place-items: center; color: var(--gold-bright, #d40b06); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border-color, #2a2a35); border-radius: 8px; }
.lf-vhero__icon img { width: 72px; height: 72px; object-fit: contain; }
.lf-vhero__icon svg { width: 44px; height: 44px; }
.lf-vhero__text { flex: 1; min-width: 0; }
.lf-vhero__text .page-hero__title { margin-bottom: 0.35rem; overflow-wrap: anywhere; }
.lf-vhero__sub { margin: 0 0 0.45rem; font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-secondary); }
.lf-vhero__by { margin: 0; font-size: 0.92rem; color: var(--text-secondary); }
.lf-vhero__by a { color: var(--text-primary); text-decoration: underline dotted; text-underline-offset: 3px; }
.lf-vhero__date { color: var(--text-dimmed); font-size: 0.85rem; }
.lf-vhero__badges { flex: none; align-self: flex-start; }
.lf-vhero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--border-color, #2a2a35); background: rgba(0, 0, 0, 0.3); }
.lf-vhero__stats div { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 1.375rem; }
.lf-vhero__stats div + div { border-left: 1px solid var(--border-color, #2a2a35); }
.lf-vhero__stats dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }
.lf-vhero__stats dd { margin: 0; font-size: 0.88rem; font-variant-numeric: tabular-nums; color: var(--text-dimmed); }
.lf-vhero__stats dd b { font-size: 0.95rem; color: var(--text-primary); }
.lf-vbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; margin-bottom: 1.1rem; padding: 0.75rem 1rem;
    background: rgba(10, 10, 15, 0.55); border: 1px solid rgba(196, 162, 78, 0.18); border-radius: var(--border-radius-lg, 10px); }
.lf-vbar__main, .lf-vbar__side { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.lf-vbar .btn { text-decoration: none; }
.lf-view .lf-sec:first-of-type { margin-top: 0; }
.lf-view .lf-detail__desc { margin: 0; max-width: 92ch; }
.lf-view__plain > summary span { margin-left: 0.5rem; font-weight: 400; color: var(--text-dimmed); }
.lf-view__plain > .lf-rules { padding: 0.25rem 0 1.1rem; }
.lf-view .lf-ed-code { margin-top: 0.4rem; }
.lf-view__nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0; }
.lf-view__nav .btn { text-decoration: none; }
.lf-view .lf-ed-howto + .lf-hint { margin: 0.8rem 0 0; font-size: 0.82rem; }
/* Fenster nur zum Lesen: Zeilen ohne Bedienknöpfe, Werte als Felder */
.lfg--view .lfg-modal__head h3 { margin: 0 -110px; font-family: inherit; font-size: 1.1rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; color: #f6ead0; text-shadow: 0 1px 2px #000, 0 0 8px rgba(0, 0, 0, 0.8); }
.lfg--view .lfg-modal__body { min-height: 380px; }
.lfg.lfg--view .lf-rulelist__item { grid-template-columns: 20px minmax(0, 1fr); gap: 0.6rem; padding: 0 0.3rem; }
.lfg--view .lf-rulelist__item:focus-visible { outline: 1px solid var(--lfg-gold); outline-offset: 1px; }
/* Schritte zum Einfügen im Spiel (Detailseite) */
.lf-ed-howto { margin: 0.9rem 0 0; padding: 0; list-style: none; counter-reset: lfhow; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem 1.5rem; font-size: 0.88rem; color: var(--text-secondary); }
.lf-ed-howto li { counter-increment: lfhow; position: relative; padding-left: 1.8rem; line-height: 1.45; }
.lf-ed-howto li::before { content: counter(lfhow); position: absolute; left: 0; top: 0.05rem; width: 1.3rem; height: 1.3rem; display: grid; place-items: center; border-radius: 50%;
    font-size: 0.74rem; font-weight: 700; color: var(--text-primary); border: 1px solid var(--border-color, #2a2a35); background: var(--bg-secondary); }
@media (max-width: 700px) { .lf-ed-howto { grid-template-columns: minmax(0, 1fr); } }
.lfg-check { box-sizing: border-box; width: 20px; height: 20px; position: relative; background: linear-gradient(#0a0a0a, #1a1918); border: 1px solid #5d5547; box-shadow: inset 0 0 0 2px #000; }
.lfg-check--on { border-color: #a59a84; }
.lfg-check--on::after { content: ''; position: absolute; left: 6px; top: 1px; width: 6px; height: 12px; border: solid var(--lfg-bright); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.lfg-value { box-sizing: border-box; display: inline-flex; align-items: center; min-height: 30px; padding: 0.2rem 0.6rem; background: var(--lfg-field); color: #e9dcc0; border: 1px solid var(--lfg-edge); box-shadow: inset 0 0 0 1px #000; font-size: 0.86rem; }
.lfg-value--wide { flex: 1 1 auto; min-width: 0; }
.lfg--view .lfg-colordot { cursor: default; display: inline-block; }
.lfg--view .lfg-view__edit { flex: 1 1 auto; display: flex; flex-direction: column; }
.lfg--view .lfg-rulename { padding-left: 0; padding-right: 0; }
.lfg .lfg-condrow--view { grid-template-columns: calc(37% - 0.5rem) minmax(0, 1fr); align-items: start; }
.lfg-condrow--view .lfg-value { width: 100%; }
.lfg-condrow--view .lfg-prop { padding-top: 0.3rem; line-height: 1.5; color: #e9dcc0; }
.lfg-condrow--view .lf-ids { color: #e9dcc0; }
@media (max-width: 700px) {
    .lf-vhero__top { flex-wrap: wrap; padding: 0.9rem 1rem; }
    .lf-vhero__icon { width: 56px; height: 56px; }
    .lf-vhero__icon img { width: 50px; height: 50px; }
    .lf-vhero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lf-vhero__stats div { padding: 0.55rem 1rem; }
    .lf-vhero__stats div:nth-child(3) { border-left: 0; }
    .lf-vhero__stats div:nth-child(n+3) { border-top: 1px solid var(--border-color, #2a2a35); }
    .lf-vbar__main .btn, .lf-vbar__side .lf-fav { flex: 1 1 auto; }
    .lfg .lfg-condrow--view { grid-template-columns: minmax(0, 1fr); }
}

/* Erklärteile für Suche und KI-Antworten: „Beutefilter in Kürze“ (Rubrik), Bedingungen + Fragen (Editor) */
.lf-facts { margin-top: 1rem; }
.lf-facts ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; font-size: 0.92rem; color: var(--text-secondary); }
.lf-facts__links { margin: 0.9rem 0 0; font-size: 0.9rem; color: var(--text-dimmed); }
.lf-facts__links a { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--gold-dark, #7a0704); text-underline-offset: 3px; }
.lf-facts__links a:hover { color: #fff; text-decoration-color: var(--gold-bright, #d40b06); }
.lf-ed-about { margin-top: 1.4rem; }
.lf-ed-about__lead { margin: 1rem 0 1.2rem; max-width: 92ch; font-size: 0.98rem; line-height: 1.6; color: var(--text-secondary); }
.lf-ed-about__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem 2rem; align-items: start; }
.lf-ed-about h3 { margin: 0 0 0.7rem; font-size: 1.05rem; }
.lf-ed-about__tablewrap { overflow-x: auto; border: 1px solid var(--border-color, #2a2a35); border-radius: 8px; }
.lf-ed-about__table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.lf-ed-about__table th, .lf-ed-about__table td { padding: 0.5rem 0.75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-color, #2a2a35); }
.lf-ed-about__table thead th { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dimmed); background: rgba(10, 10, 15, 0.45); }
.lf-ed-about__table tbody th { font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.lf-ed-about__table tbody td { color: var(--text-secondary); }
.lf-ed-about__table tbody tr:last-child th, .lf-ed-about__table tbody tr:last-child td { border-bottom: 0; }
.lf-ed-about .lf-faq details { padding: 0.6rem 0; border-bottom: 1px solid var(--border-color, #2a2a35); }
.lf-ed-about .lf-faq summary { cursor: pointer; font-weight: 700; }
.lf-ed-about .lf-faq details p { margin: 0.5rem 0 0; font-size: 0.92rem; line-height: 1.55; color: var(--text-secondary); }
@media (max-width: 900px) {
    .lf-ed-about__grid { grid-template-columns: minmax(0, 1fr); }
    .lf-ed-about__table tbody th { white-space: normal; }
}
.lfg { --lfg-text: #d8cbb0; --lfg-bright: #f1e5c8; --lfg-dim: #948a76; --lfg-gold: #e0b45c; --lfg-line: #26231f; --lfg-field: #0a0a0a; --lfg-edge: #3b362d;
    font-family: var(--font-heading, serif); color: var(--lfg-text); letter-spacing: 0.01em; }
.lfg-window { background: #0b0b0b; border: 1px solid #2c2924; box-shadow: 0 0 0 1px #000, 0 14px 34px rgba(0, 0, 0, 0.55); }
.lfg-titlebar { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 6px 0 14px; background: linear-gradient(#1d1c1b, #121111); border-bottom: 1px solid #000;
    font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lfg-bright); }
.lfg-panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; padding: 6px 6px 0; }
.lfg-foot { display: flex; justify-content: center; padding: 0.55rem; }
.lfg-foot { position: relative; }
.lfg-foot .lfg-btn { min-width: 150px; }
.lfg-foot__status { position: absolute; left: calc(50% + 100px); top: 50%; transform: translateY(-50%); font-size: 0.8rem; color: var(--lfg-dim); white-space: nowrap; }
.lfg-foot__status.lf-editor__status--dirty { color: #e7c46a; }
.lfg-modal { position: relative; min-width: 0; display: flex; flex-direction: column; background: linear-gradient(#171615, #0f0e0e); border: 1px solid var(--lfg-line); }
.lfg-modal__head { flex: 0 0 auto; box-sizing: border-box; height: 50px; display: grid; place-items: center; border-style: solid; border-width: 0 130px 0 140px;
    border-image: url(/assets/img/ui/explorer/2639145196.webp) 0 260 0 280 fill / 0 130px 0 140px stretch; }
.lfg-modal__head--silver { border-image-source: url(/assets/img/ui/explorer/2639145197.webp); }
.lfg-modal__head h2 { margin: 0 -110px; font-family: inherit; font-size: 1.1rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
    color: #f6ead0; text-shadow: 0 1px 2px #000, 0 0 8px rgba(0, 0, 0, 0.8); }
.lfg-modal__head--silver h2 { color: #f4efe2; text-shadow: 0 1px 2px #000, 0 0 10px rgba(0, 0, 0, 0.95), 0 0 3px #000; }
.lfg-modal__body { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; padding: 0.7rem 0.7rem 0.6rem; min-height: 540px; }
.lfg-modal__body::before { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: url(/assets/img/ui/explorer/99117164.webp) center 62% / min(94%, 600px) auto no-repeat; }
.lfg-modal--rule .lfg-modal__body::before { background-image: url(/assets/img/ui/explorer/99117165.webp); }
.lfg-modal__body > * { position: relative; }
.lfg-note { margin: auto 0 0; padding-top: 0.9rem; font-size: 0.8rem; color: var(--lfg-dim); text-align: center; }
.lfg .lf-hint { color: var(--lfg-dim); }
.lfg #lf-ruleedit { flex: 1 1 auto; display: flex; flex-direction: column; }
.lfg-empty { margin: auto; padding: 2.5rem 1rem; display: flex; flex-direction: column; gap: 0.55rem; text-align: center; color: var(--lfg-dim); }
.lfg-empty strong { font-weight: 400; font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase; color: #cfc2a6; }
.lfg-empty span { max-width: 48ch; margin: 0 auto; font-size: 0.85rem; line-height: 1.5; }
.lfg-empty span:empty { display: none; }

/* Zeilen, Felder, Auswahlfelder */
.lfg-row { display: flex; align-items: center; gap: 0.5rem; min-height: 32px; margin-bottom: 0.6rem; }
.lfg-row__right { margin-left: auto; display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
.lfg-cap { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lfg-bright); white-space: nowrap; }
.lfg-combo { flex: 1 1 auto; min-width: 0; }
.lfg-combo input, .lfg-num input, .lfg-rulename input { box-sizing: border-box; height: 30px; width: 100%; padding: 0 0.5rem; background: var(--lfg-field); color: #efe3c6; border: 1px solid var(--lfg-edge);
    border-radius: 0; box-shadow: inset 0 0 0 1px #000; font: inherit; font-size: 0.88rem; outline: none; }
.lfg-combo input:focus, .lfg-num input:focus, .lfg-rulename input:focus, .lfg-select select:focus, .lfg-pickfield:focus-visible { border-color: var(--lfg-gold); outline: none; }
.lfg-combo input::placeholder { color: #7d7362; }
.lfg-select { position: relative; display: inline-flex; min-width: 0; }
.lfg-select select { -webkit-appearance: none; appearance: none; box-sizing: border-box; width: 100%; height: 30px; padding: 0 34px 0 0.5rem; background: var(--lfg-field); color: #e9dcc0;
    border: 1px solid var(--lfg-edge); border-radius: 0; box-shadow: inset 0 0 0 1px #000; font: inherit; font-size: 0.84rem; cursor: pointer; text-overflow: ellipsis; }
.lfg-select select option { background: #0d0d0d; color: var(--lfg-text); }
.lfg-select select option:disabled { color: #5d564a; }
.lfg-select::before { content: ''; position: absolute; right: 3px; top: 3px; width: 24px; height: 24px; pointer-events: none; background: url(/assets/img/ui/explorer/6426785.webp) center / 128% 128% no-repeat; }
.lfg-select::after { content: ''; position: absolute; right: 10px; top: 12px; pointer-events: none; border: 5px solid transparent; border-top: 7px solid var(--lfg-bright); border-bottom: 0; }
.lfg-count { font-size: 0.95rem; color: var(--lfg-text); letter-spacing: 0.08em; white-space: nowrap; }
.lfg-count b { font-weight: 400; color: var(--lfg-gold); }
.lfg-count.lf-count--over, .lfg-count.lf-count--over b { color: #ff7b7b; }

/* Knöpfe: rote Knöpfe mit Text, rote Quadrate mit Symbol */
.lfg-btn { flex: 0 0 auto; box-sizing: border-box; height: 32px; border-style: solid; border-width: 10px 12px; border-radius: 0; background: none; box-shadow: none; margin: 0; padding: 0 0.45rem;
    border-image: url(/assets/img/ui/explorer/2262359647.webp) 60 50 60 60 fill / 10px 12px stretch;
    color: #f0e3c7; font: inherit; font-size: 0.82rem; line-height: 12px; white-space: nowrap; cursor: pointer; }
.lfg-btn:hover:not(:disabled) { border-image-source: url(/assets/img/ui/explorer/2396611276.webp); color: #fff; }
.lfg-btn:disabled { border-image-source: url(/assets/img/ui/explorer/4210157723.webp); color: #6f675a; cursor: default; }
.lfg-sq { flex: 0 0 auto; display: inline-grid; place-items: center; box-sizing: border-box; width: 32px; height: 32px; padding: 0; margin: 0; border: 0; border-radius: 0; cursor: pointer; text-decoration: none;
    color: var(--lfg-bright); background: url(/assets/img/ui/explorer/6426785.webp) center / 128% 128% no-repeat; }
.lfg-sq--sm { width: 26px; height: 26px; }
.lfg-sq:hover:not(:disabled) { filter: brightness(1.35); }
.lfg-sq:disabled { opacity: 0.35; cursor: default; }
.lfg-sq--x::before { content: '\2715'; font: 700 14px/1 Arial, sans-serif; text-shadow: 0 1px 1px #000; }
.lfg-sq--sm.lfg-sq--x::before { font-size: 12px; }
.lfg-sq--up::before, .lfg-sq--down::before { content: ''; border: 5px solid transparent; }
.lfg-sq--up::before { border-bottom: 7px solid var(--lfg-bright); border-top: 0; }
.lfg-sq--down::before { border-top: 7px solid var(--lfg-bright); border-bottom: 0; }
.lfg-sq--dup::before { content: ''; width: 13px; height: 13px; background: url(/assets/img/ui/explorer/982015971.webp) center / contain no-repeat; }
.lfg-sq--edit { background-image: url(/assets/img/ui/explorer/1289203808.webp); background-size: 100% 100%; }
.lfg-sq--search { background-image: url(/assets/img/ui/explorer/4287852126.webp); background-size: 100% 100%; }
.lfg-sq--menu { background-image: url(/assets/img/ui/explorer/3552318516.webp); background-size: 100% 100%; }
.lfg-menuwrap { position: relative; display: inline-flex; }
.lfg-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; min-width: 190px; display: flex; flex-direction: column; padding: 0.25rem; background: #0d0d0d; border: 1px solid var(--lfg-edge); box-shadow: 0 8px 24px #000; }
.lfg-menu[hidden] { display: none; }
.lfg-menu button { background: none; border: 0; padding: 0.45rem 0.6rem; text-align: left; color: var(--lfg-text); font: inherit; font-size: 0.88rem; cursor: pointer; }
.lfg-menu button:hover { color: var(--lfg-gold); background: #1a1816; }

/* Kästchen wie im Spiel */
.lfg input[type="checkbox"] { -webkit-appearance: none; appearance: none; flex: 0 0 auto; width: 20px; height: 20px; margin: 0; position: relative; cursor: pointer; vertical-align: middle;
    background: linear-gradient(#0a0a0a, #1a1918); border: 1px solid #5d5547; border-radius: 0; box-shadow: inset 0 0 0 2px #000; }
.lfg input[type="checkbox"]:hover:not(:disabled) { border-color: var(--lfg-gold); }
.lfg input[type="checkbox"]:checked { border-color: #a59a84; }
.lfg input[type="checkbox"]:checked::after { content: ''; position: absolute; left: 6px; top: 1px; width: 6px; height: 12px; border: solid var(--lfg-bright); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.lfg input[type="checkbox"]:disabled { opacity: 0.4; cursor: default; }

/* Regelliste: jede Regel eine Leiste, die gewählte rot */
.lfg .lf-rulelist { display: flex; flex-direction: column; gap: 3px; max-height: 640px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #4a4338 #0b0b0b; }
.lfg .lf-rulelist__item { flex: 0 0 auto; box-sizing: border-box; display: grid; grid-template-columns: 26px 26px 20px minmax(0, 1fr) auto; gap: 0.4rem; align-items: center; height: 40px; padding: 0 1px;
    border-radius: 0; background: none; border-style: solid; border-width: 7px 8px; border-image: url(/assets/img/ui/explorer/996846888.webp) 60 50 60 60 fill / 7px 8px stretch; cursor: pointer; }
.lfg .lf-rulelist__item:hover { border-image-source: url(/assets/img/ui/explorer/2262359647.webp); }
.lfg .lf-rulelist__item--active, .lfg .lf-rulelist__item--active:hover { border-image-source: url(/assets/img/ui/explorer/2396611276.webp); background: none; }
.lfg .lf-rulelist__item--hit { box-shadow: inset 3px 0 0 #6fd26f; }
.lfg .lf-rulelist__text { display: flex; align-items: center; gap: 0.45rem; min-width: 0; padding-left: 0.2rem; }
.lfg .lf-rulelist__vis { flex: 0 0 auto; font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lfg-bright); white-space: nowrap; }
.lfg .lf-rulelist__dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1px #000; }
.lfg .lf-rulelist__name { font-size: 0.88rem; color: #efe3c6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lfg .lf-rulelist__item--disabled .lf-rulelist__text { opacity: 0.5; }
.lfg .lf-rulelist__item--disabled .lf-rulelist__name { opacity: 1; text-decoration: none; }
.lfg .lf-rulelist__tools { display: inline-flex; gap: 0.4rem; }

/* Regeleditor */
.lfg-rulename { position: relative; display: flex; align-items: center; justify-content: center; min-height: 32px; margin: 0 0 0.6rem; padding: 0 40px 0.6rem; border-bottom: 1px solid var(--lfg-line); }
.lfg-rulename__text { font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: #f4ead2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lfg-rulename input { width: min(100%, 380px); text-align: center; }
.lfg-rulename .lfg-sq { position: absolute; right: 0; top: 0; }
.lfg-row__right .lfg-select { width: 180px; }
.lfg-colorlabel { margin-left: 0.5rem; font-size: 0.92rem; color: var(--lfg-bright); white-space: nowrap; }
.lfg-colordot { flex: 0 0 auto; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 1px #000, 0 0 0 2px #3a3530; }
.lfg-colordot:hover, .lfg-colordot:focus-visible { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--lfg-gold); outline: none; }
.lfg-condhead { display: grid; grid-template-columns: 37% minmax(0, 1fr); margin-bottom: 0.45rem; border-bottom: 1px solid var(--lfg-line); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lfg-bright); }
.lfg-condhead span { padding: 0.15rem 0.3rem 0.45rem; }
.lfg-condhead span + span { border-left: 1px solid var(--lfg-line); padding-left: 0.6rem; }
.lfg-conds { display: flex; flex-direction: column; gap: 0.35rem; }
.lfg-condrow { display: grid; grid-template-columns: calc(37% - 0.5rem) minmax(0, 1fr) 32px; gap: 0.5rem; align-items: center; padding: 0.45rem 0.35rem; background: rgba(0, 0, 0, 0.38); border: 1px solid #1f1d1a; }
.lfg-condrow > .lfg-select { margin-right: 0.3rem; }
.lfg-prop { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 1rem; min-width: 0; font-size: 0.86rem; }
.lfg-num { display: inline-flex; align-items: center; gap: 0.5rem; }
.lfg-num input { width: 76px; height: 28px; }
.lfg-inline { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; }
.lfg-inline .lfg-select select { min-width: 66px; height: 28px; }
.lfg-inline .lfg-select::before { top: 2px; }
.lfg-inline .lfg-select::after { top: 11px; }
.lfg .lf-checks { gap: 0.5rem 1.2rem; }
.lfg .lf-checks label { gap: 0.5rem; color: #c9bda3; }
.lfg .lf-checks label:has(input:checked) { color: #fff3d6; }
.lfg-pickfield { flex: 1 1 100%; box-sizing: border-box; display: flex; align-items: center; gap: 0.4rem; min-width: 0; height: 34px; padding: 0 0 0 0.55rem; background: var(--lfg-field); border: 1px solid var(--lfg-edge);
    box-shadow: inset 0 0 0 1px #000; cursor: pointer; }
.lfg-pickfield:hover { border-color: #6a604f; }
.lfg-pickfield__text { flex: 1 1 auto; min-width: 0; text-align: right; font-size: 0.85rem; color: var(--lfg-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lfg-pickfield--set .lfg-pickfield__text { text-align: left; color: #efe3c6; }
.lfg-pickfield__text b { font-weight: 400; color: var(--lfg-gold); margin-right: 0.2rem; }

/* Auswahlfenster */
.lfg-noscroll { overflow: hidden; }
.lfg-pick { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 1rem; background: rgba(0, 0, 0, 0.74); }
.lfg-pick[hidden] { display: none; }
.lfg-pick__box { box-sizing: border-box; width: min(820px, 100%); max-height: min(86vh, 860px); display: flex; flex-direction: column; background: linear-gradient(#181716, #0e0d0d); border: 1px solid var(--lfg-edge); box-shadow: 0 0 0 1px #000, 0 20px 60px #000; }
.lfg-pick__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; padding: 0.75rem 0.9rem; border-bottom: 1px solid #000; }
.lfg-pick__count { font-size: 0.9rem; color: #efe3c6; white-space: nowrap; }
.lfg-pick__count b { font-weight: 400; color: var(--lfg-gold); }
.lfg-pick__search { display: flex; align-items: center; min-width: 0; max-width: 360px; height: 30px; padding-left: 1px; background: var(--lfg-field); border: 1px solid var(--lfg-edge); box-shadow: inset 0 0 0 1px #000; }
.lfg-pick__search input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 0.5rem; background: none; border: 0; outline: none; color: #efe3c6; font: inherit; font-size: 0.88rem; -webkit-appearance: none; appearance: none; }
.lfg-pick__search input::-webkit-search-cancel-button { display: none; }
.lfg-pick__all { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; white-space: nowrap; cursor: pointer; }
.lfg-pick__body { flex: 1 1 auto; min-height: 220px; overflow-y: auto; padding: 0.4rem 0.7rem 0.6rem; background: #0b0b0b; scrollbar-width: thin; scrollbar-color: #4a4338 #0b0b0b; }
.lfg-pick__ghead { position: sticky; top: -0.4rem; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; padding: 0.4rem 0.6rem;
    background: linear-gradient(#1f1e1c, #151413); border: 1px solid var(--lfg-line); cursor: pointer; }
.lfg-pick__ghead label { justify-self: start; display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.7rem; letter-spacing: 0.06em; color: var(--lfg-dim); cursor: pointer; }
.lfg-pick__ghead label input[type="checkbox"] { width: 16px; height: 16px; }
.lfg-pick__ghead label input[type="checkbox"]:checked::after { left: 4px; top: 0; width: 5px; height: 10px; border-width: 0 2px 2px 0; }
.lfg-pick__gname { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lfg-bright); text-align: center; }
.lfg-pick__gcount { justify-self: end; font-size: 0.85rem; letter-spacing: 0.06em; }
.lfg-pick__gcount b { font-weight: 400; color: var(--lfg-gold); }
.lfg-pick__arrow { border: 5px solid transparent; border-top: 6px solid #b8ab8f; border-bottom: 0; transition: transform 0.15s; }
.lfg-pick__group.is-closed .lfg-pick__arrow { transform: rotate(-90deg); }
.lfg-pick__group.is-closed .lfg-pick__items { display: none; }
.lfg-pick__group + .lfg-pick__group { margin-top: 0.35rem; }
/* eine Spalte wie im Spiel; nur die Gegenstandstypen stehen nebeneinander. Die Zeile unter dem Zeiger bekommt den hellen Rahmen. */
.lfg-pick__items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 0; padding: 0.45rem 0.6rem 0.6rem; }
.lfg-pick__items--item_type { display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem; padding: 0.55rem 0.9rem 0.7rem; }
.lfg-pick__items label { display: flex; align-items: center; gap: 0.8rem; min-width: 0; padding: 0.42rem 0.55rem; font-size: 0.92rem; color: #c9bda3; cursor: pointer; border: 1px solid transparent; }
.lfg-pick__items label:hover:not(.is-off) { border-color: #e9cfc0; box-shadow: 0 0 6px rgba(233, 207, 192, 0.25), inset 0 0 6px rgba(233, 207, 192, 0.12); }
.lfg-pick__items label:hover, .lfg-pick__items label:has(input:checked) { color: #fff3d6; }
.lfg-pick__items label.is-off { opacity: 0.4; cursor: default; }
.lfg-pick__items small { margin-left: 0.3rem; font-size: 0.72rem; color: #c0a1d8; }
.lfg-pick__items small.lfg-pick__cls { color: var(--lfg-dim); }
.lfg-pick__none { margin: 0; padding: 1.2rem; text-align: center; color: var(--lfg-dim); font-size: 0.88rem; }
.lfg-pick__foot { display: flex; justify-content: center; gap: 0.8rem; padding: 0.7rem; border-top: 1px solid #000; }
.lfg-pick__foot .lfg-btn { min-width: 116px; }

/* Farbfenster (UI-Szene ModalColorPicker): Zeiger 2808411329, Rahmen der Farbprobe 3696250357, Ecken 4146987251 / 3713853190 /
   1477700437 / 1526734248 (TooltipFrameLight), Raute 3579511171 */
.lfg-pick__box.lfg-cp { position: relative; width: min(372px, 100%); max-height: none; padding: 10px; background: #0d0d0d; border: 3px solid #23282a; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #000, 0 20px 60px #000; }
.lfg-cp__corner { position: absolute; width: 43px; height: 43px; pointer-events: none; background: center / 100% 100% no-repeat; }
.lfg-cp__corner--tl { left: -8px; top: -8px; background-image: url(/assets/img/ui/explorer/4146987251.webp); }
.lfg-cp__corner--tr { right: -8px; top: -8px; background-image: url(/assets/img/ui/explorer/3713853190.webp); }
.lfg-cp__corner--bl { left: -8px; bottom: -8px; background-image: url(/assets/img/ui/explorer/1477700437.webp); }
.lfg-cp__corner--br { right: -8px; bottom: -8px; background-image: url(/assets/img/ui/explorer/1526734248.webp); }
.lfg-cp__head { position: relative; display: grid; place-items: center; height: 40px; margin-bottom: 12px; background: linear-gradient(#cfcfcb, #a9aaa6 60%, #8f908c); box-shadow: inset 0 0 0 1px #5b5c59, inset 0 0 12px rgba(0, 0, 0, 0.35), 0 1px 0 #000; }
.lfg-cp__head::before, .lfg-cp__head::after { content: ''; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: url(/assets/img/ui/explorer/3579511171.webp) center / contain no-repeat; filter: brightness(0.35); }
.lfg-cp__head::before { left: 18px; }
.lfg-cp__head::after { right: 18px; }
.lfg-cp__head h2 { margin: 0; font-family: inherit; font-size: 1.05rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: #121212; }
.lfg-cp__hex { display: flex; align-items: center; justify-content: center; gap: 0.7rem; padding: 0.7rem; margin-bottom: 10px; background: #121212; border: 1px solid #1f1f1f; }
.lfg-cp__hex > span { font-size: 1.15rem; color: #a59a84; }
.lfg-cp__hex input { box-sizing: border-box; width: 118px; height: 32px; padding: 0 0.5rem; background: #1b1b1b; color: #f2f2f2; border: 1px solid #3a3a3a; border-radius: 0; box-shadow: inset 0 0 0 1px #000;
    font: 0.95rem/1 Arial, Helvetica, sans-serif; letter-spacing: 0.02em; text-transform: uppercase; outline: none; }
.lfg-cp__hex input:focus { border-color: var(--lfg-gold); }
.lfg-cp__sample { position: relative; flex: 0 0 auto; width: 36px; height: 36px; background: url(/assets/img/ui/explorer/3696250357.webp) center / 100% 100% no-repeat; }
.lfg-cp__sample b { position: absolute; inset: 6px; border-radius: 50%; }
.lfg-cp__body { display: flex; justify-content: center; gap: 26px; padding: 16px 14px 16px 18px; background: #121212; border: 1px solid #1f1f1f; }
.lfg-cp__sv { position: relative; flex: 0 0 auto; width: 200px; height: 200px; cursor: crosshair; touch-action: none; outline: none; border: 2px solid #2b3031; box-shadow: 0 0 0 1px #000;
    background: linear-gradient(to top, #000, rgba(0, 0, 0, 0)), linear-gradient(to left, #fff, rgba(255, 255, 255, 0)), var(--lfg-hue, #f00); }
.lfg-cp__sv:focus-visible, .lfg-cp__hue:focus-visible { border-color: var(--lfg-gold); }
.lfg-cp__cursor { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; pointer-events: none; background: url(/assets/img/ui/explorer/2808411329.webp) center / 100% 100% no-repeat; }
.lfg-cp__hue { position: relative; flex: 0 0 auto; width: 26px; height: 200px; cursor: ns-resize; touch-action: none; outline: none; border: 2px solid #2b3031; box-shadow: 0 0 0 1px #000;
    background: linear-gradient(to top, #f00, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00); }
.lfg-cp__mark { position: absolute; left: -15px; right: -15px; height: 0; pointer-events: none; }
.lfg-cp__mark::before, .lfg-cp__mark::after { content: ''; position: absolute; top: -8px; border: 8px solid transparent; filter: drop-shadow(0 0 1px #000); }
.lfg-cp__mark::before { left: 0; border-left: 12px solid #9a9d9a; border-right: 0; }
.lfg-cp__mark::after { right: 0; border-right: 12px solid #9a9d9a; border-left: 0; }
.lfg-cp .lfg-pick__foot { margin-top: 10px; padding: 0.75rem 0.5rem 0.4rem; border-top: 1px solid #1f1f1f; }

@media (max-width: 1100px) {
    .lfg-panes { grid-template-columns: minmax(0, 1fr); }
    .lfg-modal__body { min-height: 0; }
    .lfg-modal--rule .lfg-modal__body { min-height: 320px; }
    .lfg .lf-rulelist { max-height: 420px; }
}
@media (max-width: 640px) {
    .lfg-modal__head { height: 40px; border-width: 0 104px 0 112px; border-image-width: 0 104px 0 112px; }
    .lfg-modal__head h2 { font-size: 0.9rem; letter-spacing: 0.1em; margin: 0 -90px; }
    .lfg-modal__body { padding: 0.6rem 0.5rem; }
    .lfg-row { flex-wrap: wrap; }
    .lfg-foot { flex-direction: column; align-items: center; gap: 0.35rem; }
    .lfg-foot__status { position: static; transform: none; }
    .lfg-btn { font-size: 0.74rem; padding: 0 0.2rem; }
    .lfg-row__right .lfg-select { width: 150px; }
    .lfg-condhead { display: none; }
    .lfg-condrow { grid-template-columns: minmax(0, 1fr) 32px; }
    .lfg-condrow > .lfg-select { margin-right: 0; }
    .lfg-condrow > .lfg-prop { grid-column: 1 / -1; grid-row: 2; }
    .lfg .lf-rulelist__item { grid-template-columns: 26px 26px 20px minmax(0, 1fr) auto; gap: 0.25rem; }
    .lfg .lf-rulelist__tools { gap: 0.2rem; }
    .lfg-pick { padding: 0.4rem; }
    .lfg-pick__top { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
    .lfg-pick__search { max-width: none; }
    .lfg-pick__items { grid-template-columns: minmax(0, 1fr); padding: 0.3rem 0.4rem; }
    .lfg-pick__ghead { grid-template-columns: auto minmax(0, 1fr) auto auto; }
}
