/* Sammlung / Herbar */
.tabs{grid-template-columns:repeat(4,1fr)}
.tabs button{font-size:11px}
:root{--t0:#2E8B57;--t1:#2B7A9B;--t2:#C98A10;--t3:#7A4FB5}
@media (prefers-color-scheme:dark){:root{--t0:#4FA676;--t1:#4E9CC0;--t2:#D9A13A;--t3:#A584DB}}

.lvl{display:flex;gap:16px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:var(--r-md);padding:14px 16px;margin-top:6px}
.lvl__ring{--p:0;flex:0 0 64px;height:64px;border-radius:50%;display:grid;place-items:center;
  background:conic-gradient(var(--leaf) calc(var(--p)*1%),var(--soft) 0)}
.lvl__ring b{width:50px;height:50px;border-radius:50%;background:var(--card);display:grid;place-items:center;font:700 22px/1 var(--display)}
.lvl__txt{flex:1;min-width:0;display:grid;gap:4px}
.lvl__txt strong{font:660 20px/1.1 var(--display)}
.lvl__txt span{font-size:13px;color:var(--muted)}
.lvl__txt .meter{height:8px;margin-top:4px}

.cstats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:10px}
.cstats div{background:var(--card);border:1px solid var(--line);border-radius:var(--r-sm);padding:10px 6px;text-align:center}
.cstats b{display:block;font:680 22px/1 var(--display);font-variant-numeric:tabular-nums}
.cstats span{display:block;font-size:11px;color:var(--muted);margin-top:4px;line-height:1.2}
.cstats .is-hot b{color:var(--rust)}

.quest{margin-top:10px;border-radius:var(--r-md);padding:14px 16px;background:color-mix(in srgb,var(--shoot) 22%,var(--card));border:1px solid color-mix(in srgb,var(--shoot) 50%,var(--line));display:grid;gap:6px}
.quest__k{font-size:12px;font-weight:700;color:var(--muted)}
.quest strong{font:620 17px/1.25 var(--display)}
.quest__bar{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}
.quest__bar em{font-style:normal;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.quest.is-done{background:color-mix(in srgb,var(--leaf) 14%,var(--card))}

.badges{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px}
.badge{display:grid;justify-items:center;gap:4px;text-align:center;padding:10px 4px;border-radius:var(--r-sm);background:var(--card);border:1px solid var(--line);opacity:.55}
.badge svg{width:30px;height:30px;fill:none;stroke:var(--muted);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.badge span{font-size:11px;line-height:1.2;font-weight:700}
.badge em{font-style:normal;font-size:11px;color:var(--muted)}
.badge.is-got{opacity:1;border-color:color-mix(in srgb,var(--leaf) 45%,var(--line))}
.badge.is-got svg{stroke:var(--leaf);fill:color-mix(in srgb,var(--shoot) 35%,transparent)}

.row-h{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.seg--sm{margin:0;grid-template-columns:auto auto}
.seg--sm button{min-height:34px;padding:4px 12px;font-size:12px}

.specs{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.spec{background:var(--card);border:1px solid var(--line);border-radius:var(--r-md);padding:8px 8px 10px;display:grid;gap:3px;position:relative}
.spec__img{aspect-ratio:1;border-radius:10px;overflow:hidden;background:var(--soft);margin-bottom:4px;box-shadow:0 0 0 3px var(--card),0 0 0 5px var(--tc)}
.spec__img img{width:100%;height:100%;object-fit:cover;display:block}
.spec__img span{display:grid;place-items:center;height:100%;font:680 32px/1 var(--display);color:var(--leaf)}
.spec strong{font:620 15px/1.2 var(--display);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.spec i{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.spec__tag{justify-self:start;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;color:#fff;background:var(--tc)}
.spec__n{position:absolute;top:14px;right:14px;font-size:11px;font-weight:700;background:color-mix(in srgb,var(--ink) 70%,transparent);color:var(--paper);padding:2px 7px;border-radius:999px}
.tier-0{--tc:var(--t0)}.tier-1{--tc:var(--t1)}.tier-2{--tc:var(--t2)}.tier-3{--tc:var(--t3)}

/* Sammel-Knopf auf dem besten Treffer */
.btn.collect{flex:1 1 100%;background:var(--ink);color:var(--paper)}
.btn.collect.is-done{background:var(--soft);color:var(--leaf);border-color:transparent}

/* Enthüllung */
.reveal{position:fixed;inset:0;z-index:20;background:color-mix(in srgb,#08160F 72%,transparent);display:grid;place-items:center;padding:20px;animation:rv-in .2s ease}
.reveal.is-out{opacity:0;transition:opacity .2s}
.reveal__card{width:min(340px,100%);background:var(--card);border-radius:22px;padding:22px 20px 18px;text-align:center;display:grid;gap:6px;justify-items:center;
  box-shadow:0 0 0 6px var(--tc),0 30px 80px rgba(0,0,0,.45);animation:rv-card .55s cubic-bezier(.2,1.4,.4,1)}
.reveal__k{margin:0;font:700 14px/1 var(--display);color:var(--tc);letter-spacing:.02em}
.reveal__img{width:150px;height:150px;border-radius:50%;overflow:hidden;background:var(--soft);margin:6px 0;box-shadow:0 0 0 4px var(--card),0 0 0 7px var(--tc)}
.reveal__img img{width:100%;height:100%;object-fit:cover}
.reveal__card h2{margin:4px 0 0;font-size:24px;line-height:1.1}
.reveal__card i{color:var(--muted)}
.reveal__tag{margin:6px 0 0;display:flex;gap:10px;align-items:center}
.reveal__tag b{font:700 20px/1 var(--display);color:var(--leaf)}
.reveal__x{margin:2px 0;font-weight:700;font-size:14px;background:var(--soft);border-radius:999px;padding:6px 12px}
.reveal .btn{margin-top:10px;width:100%}
@keyframes rv-in{from{opacity:0}}
@keyframes rv-card{from{transform:scale(.6) rotate(-6deg);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.reveal,.reveal__card{animation:none}}

/* Giftig-Hinweis */
.tox{border-radius:var(--r-sm);background:color-mix(in srgb,var(--amber) 13%,var(--card));border:1px solid color-mix(in srgb,var(--amber) 45%,var(--line));font-size:14px}
.tox summary{display:flex;gap:8px;align-items:center;padding:9px 12px;cursor:pointer;font-weight:700;list-style:none;min-height:42px}
.tox summary::-webkit-details-marker{display:none}
.tox summary::after{content:"";margin-left:auto;width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg) translateY(-2px);flex:none}
.tox[open] summary::after{transform:rotate(-135deg) translateY(-2px)}
.tox svg{width:18px;height:18px;flex:none;fill:none;stroke:var(--amber);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.tox--hi{background:color-mix(in srgb,var(--rust) 11%,var(--card));border-color:color-mix(in srgb,var(--rust) 50%,var(--line))}
.tox--hi svg{stroke:var(--rust)}
.tox p{margin:0 12px 10px}
.tox--sm{display:inline-flex;gap:5px;align-items:center;padding:3px 9px 3px 7px;font-size:12px;font-weight:700;border-radius:999px;max-width:100%;margin-top:4px}
.tox--sm span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tox--sm svg{width:14px;height:14px}

/* Fundkarte */
.mapbox{height:320px;border-radius:var(--r-md);overflow:hidden;border:1px solid var(--line);background:var(--soft);position:relative;z-index:0}
.mapbox .leaflet-popup-content{font:14px/1.35 var(--text);color:#10291E}
.mapbox .leaflet-control-attribution{font-size:10px}

/* Teilen in der Sammlung */
.spec__row{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:2px}
.spec__share{flex:none;width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:var(--card);display:grid;place-items:center;cursor:pointer;color:var(--ink)}
.spec__share svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.spec__share:disabled{opacity:.5}
.reveal__act{display:grid;grid-template-columns:1fr 1.4fr;gap:8px;width:100%;margin-top:10px}
.reveal__act .btn{margin:0;width:auto}
.reveal__geo{margin:2px 0 0}
