/* Cat Me If You Can – Stil. Retro-60er-Krimi trifft Kadıköy: Nachtblau, Sarman-Orange, Creme.
   Farben als Tokens; Dunkelmodus folgt dem System (und data-theme, falls gesetzt). */

:root {
  color-scheme: light;
  --navy: #14213d;
  --orange: #f28c28;
  --orange-d: #c4610f;
  --cream: #fbf3e4;
  --teal: #1f8a8a;
  --yellow: #f6d55c;

  --bg: #f8efdf;
  --surface: #fffdf8;
  --surface-2: #f3e8d4;
  --ink: #1b1b1f;
  --ink-2: #4a4843;
  --muted: #66625a; /* ≥ 4,5 : 1 auch auf --surface-2 (Dank-Feed, Kennzahlen) */
  --line: #e4d8c3;
  --orange-text: #a3500c; /* kleiner oranger Text (Rabatt, XP): ≥ 4,5 : 1 auf Creme */
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 6px 20px rgba(20, 33, 61, .08);
  --primary-bg: var(--orange);
  --primary-ink: var(--navy);
  --link: #0e6c6c;

  /* Diagramme */
  --series-1: #eb6834;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;

  /* Seltenheit */
  --r-common: #9a9488;
  --r-uncommon: #1baf7a;
  --r-rare: #2a78d6;
  --r-epic: #7a5ae0;
  --r-legendary: #e0a400;

  --radius: 18px;
  --nav-h: 68px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --space: 1.25rem; /* Grundabstand: Karten-Innenabstand und Abstand zwischen Karten */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1424;
    --surface: #16213a;
    --surface-2: #1d2a47;
    --ink: #f5efe3;
    --ink-2: #d2ccbf;
    --muted: #a39e93;
    --line: #2a3756;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --link: #6fd0c8;
    --orange-text: #f5a04a;
    --series-1: #d95926;
    --grid: #2c2c2a;
    --axis: #383835;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1424;
  --surface: #16213a;
  --surface-2: #1d2a47;
  --ink: #f5efe3;
  --ink-2: #d2ccbf;
  --muted: #a39e93;
  --line: #2a3756;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --link: #6fd0c8;
  --orange-text: #f5a04a;
  --series-1: #d95926;
  --grid: #2c2c2a;
  --axis: #383835;
}

* { box-sizing: border-box; }
:lang(ar), :lang(fa) { --font: "Vazirmatn", "Manrope", system-ui, sans-serif; --font-display: "Vazirmatn", "Unbounded", system-ui, sans-serif; }
:lang(ar) body, :lang(fa) body { line-height: 1.75; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  font-feature-settings: "ss01";
  min-height: 100dvh;
  overflow-x: hidden;
}
body.has-modal { overflow: hidden; }
a { color: var(--link); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .75rem; text-wrap: balance; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.1rem; font-weight: 800; }
p { margin: .4rem 0; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea {
  width: 100%;
  padding: .7rem .8rem;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  min-height: 44px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
textarea { resize: vertical; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.pad { padding: 1rem; }
.pad-x { padding: 0 1rem; }
.warn { color: #b3541e; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 1rem; top: .5rem; z-index: 100; background: var(--surface); padding: .5rem; }

/* ---------------------------------------------------------------- Kopf & Navigation */

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: .6rem;
  padding: calc(env(safe-area-inset-top) + .5rem) 1rem .5rem;
  background: var(--navy); color: var(--cream);
}
.brand { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; margin-inline-end: auto; }
.wordmark { display: flex; flex-direction: column; line-height: .95; }
.wordmark b { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.wordmark i { color: var(--orange); font-style: normal; font-family: var(--font-display); font-size: .74rem; font-weight: 500; letter-spacing: .01em; }
.me-pill { display: flex; align-items: center; gap: .45rem; color: var(--cream); text-decoration: none; font-size: .8rem; }
.me-pill .lvl { opacity: .85; }
.avatar {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange); color: var(--navy); font-weight: 800;
}
.avatar.big { width: 64px; height: 64px; font-size: 1.8rem; flex: none; }

main { max-width: 680px; margin: 0 auto; padding: 1.25rem 1rem calc(var(--nav-h) + env(safe-area-inset-bottom) + 2rem); }
main:focus { outline: none; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(20, 33, 61, .08);
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .45rem 0 .55rem;
  color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600;
}
.tabs a.on { color: var(--ink); }
.tabs a.on svg { color: var(--orange-d); }
.tab-catch-btn {
  display: grid; place-items: center; width: 62px; height: 62px; margin-top: -26px;
  border-radius: 50%; background: var(--navy); border: 4px solid var(--orange);
  box-shadow: 0 6px 18px rgba(242, 140, 40, .45);
}
.tab-catch-btn img { width: 44px; height: 44px; border-radius: 12px; }
body[data-route="catch"] .top, body[data-route="catch"] .tabs { display: none; }
body[data-route="catch"] main { padding: 0; max-width: none; }

/* ---------------------------------------------------------------- Bausteine */

.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: var(--space); margin: 0 0 var(--space); border: 1px solid var(--line);
}
.card > header { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.viz-card > header [data-toggle] { min-height: 44px; padding: 0 .3rem; flex: none; } /* „Tabelle“ wie im Monatsbericht: ≥ 44 px */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px;
  border: 2px solid var(--navy); background: var(--surface); color: var(--ink);
  font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--primary-bg); color: var(--primary-ink); border-color: var(--primary-bg); box-shadow: 0 3px 0 var(--orange-d); }
.btn.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--orange-d); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.danger-soft { border-color: #d03b3b; color: #b52a2a; background: transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.danger-soft { border-color: #f47c7c; color: #ff8f8f; } }
:root[data-theme="dark"] .btn.danger-soft { border-color: #f47c7c; color: #ff8f8f; }
.btn.small { min-height: 36px; padding: .3rem .8rem; font-size: .85rem; }
.btn.big { font-size: 1.1rem; padding: .8rem 1.4rem; }
/* Dunkelmodus: Navy-Rand wäre auf dunklem Grund unsichtbar – Zweitknöpfe („Auf der Karte zeigen“, „Teilen“,
   „Link kopieren“, „Abbrechen“) bekommen überall denselben hellen Rand wie die Hilfe-Knöpfe */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.primary, .ghost, .danger-soft) { border-color: var(--ink-2); } }
:root[data-theme="dark"] .btn:not(.primary, .ghost, .danger-soft) { border-color: var(--ink-2); }
.btn:disabled { opacity: .55; cursor: default; }
.link { background: none; border: 0; color: var(--link); cursor: pointer; padding: 0; font-weight: 600; }
.back { background: none; border: 0; color: var(--link); font-weight: 700; padding: .3rem 0 .6rem; cursor: pointer; min-height: 40px; }
/* Pfeile zeigen in Leserichtung: auf Arabisch/Persisch gespiegelt */
.dir-ic { display: inline-block; }
[dir="rtl"] .dir-ic { transform: scaleX(-1); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.row { display: flex; gap: .5rem; }
.row input { flex: 1; }

.chip {
  display: inline-flex; align-items: center; gap: .25rem; padding: .12rem .55rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.chip.demo { background: var(--yellow); color: #3b2f00; }
.chip.glass { background: rgba(20, 33, 61, .62); color: #fff; backdrop-filter: blur(6px); }
.chip.glass.bad { background: rgba(176, 40, 40, .8); }
.st-active { background: rgba(12, 163, 12, .14); color: #0b6b0b; }
.st-needs_help { background: rgba(208, 59, 59, .15); color: #a72424; }
.st-in_care { background: rgba(250, 178, 25, .2); color: #7a5300; }
.st-adopted { background: rgba(42, 120, 214, .15); color: #1d5ba8; }
.st-missing, .st-deceased { background: var(--surface-2); color: var(--muted); }
.sev-none { background: rgba(12, 163, 12, .14); color: #0b6b0b; }
.sev-mild { background: rgba(250, 178, 25, .22); color: #7a5300; }
.sev-attention { background: rgba(236, 131, 90, .22); color: #8f3b14; }
.sev-urgent { background: rgba(208, 59, 59, .18); color: #a72424; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .st-active, :root:not([data-theme="light"]) .sev-none { color: #7ee07e; }
  :root:not([data-theme="light"]) .st-needs_help, :root:not([data-theme="light"]) .sev-urgent { color: #ff9a9a; }
  :root:not([data-theme="light"]) .st-in_care, :root:not([data-theme="light"]) .sev-mild { color: #ffd479; }
  :root:not([data-theme="light"]) .sev-attention { color: #ffb08f; }
  :root:not([data-theme="light"]) .st-adopted { color: #9cc4ff; }
  :root:not([data-theme="light"]) .warn { color: #ffb08f; }
}

.stars { letter-spacing: 1px; font-size: .9rem; }
.stars.r-common { color: var(--r-common); }
.stars.r-uncommon { color: var(--r-uncommon); }
.stars.r-rare { color: var(--r-rare); }
.stars.r-epic { color: var(--r-epic); }
.stars.r-legendary { color: var(--r-legendary); }

.catimg { display: block; object-fit: cover; border-radius: 14px; background: var(--surface-2); aspect-ratio: 1; }
.catimg.xs { width: 34px; border-radius: 8px; }
.catimg.sm { width: 56px; border-radius: 12px; flex: none; }
.catimg.md { width: 100%; }
.catimg.xl { width: 100%; max-width: 360px; margin: 0 auto; border-radius: 20px; }

.seg { display: flex; background: var(--surface-2); border-radius: 999px; padding: 4px; margin: 0 0 .9rem; gap: 4px; }
.seg > * {
  flex: 1; text-align: center; padding: .55rem .4rem; border-radius: 999px; text-decoration: none; color: var(--ink-2);
  font-weight: 700; border: 0; background: none; cursor: pointer; font-size: .9rem; min-height: 40px;
}
.seg > .on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg.small > * { font-size: .8rem; padding: .35rem .3rem; min-height: 34px; }

.empty { text-align: center; padding: 2.5rem 1rem; }
.big-emoji { font-size: 3.4rem; line-height: 1; margin-bottom: .6rem; }
.loading { display: grid; place-items: center; min-height: 40vh; }
.spinner-cat { display: inline-block; font-size: 2.6rem; animation: bob 1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-8deg); } }

.boot { display: grid; place-items: center; min-height: 100dvh; background: var(--navy); color: var(--cream); font-family: var(--font-display); }
.boot img { animation: bob 1.2s ease-in-out infinite; }

/* ---------------------------------------------------------------- Heute */

.hero-card {
  display: flex; gap: 1.25rem; align-items: center; padding: 1.5rem 1.25rem; margin-bottom: var(--space);
  background: var(--navy); color: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow);
  background-image: radial-gradient(circle at 85% 15%, rgba(242, 140, 40, .25), transparent 45%);
}
.hero-card h1 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; text-wrap: balance; }
.hero-card p { color: #e8dfcf; }
.hero-side { flex: 1; min-width: 0; }
.ring-wrap { position: relative; width: 132px; flex: none; }
.ring { width: 132px; height: 132px; display: block; }
.hero-card .btn { white-space: nowrap; }
/* sehr schmale Handys (320 px): Ring über den Text statt daneben */
@media (max-width: 359px) {
  .hero-card { flex-direction: column; text-align: center; }
  .hero-side { width: 100%; }
}
.ring-track { fill: none; stroke: rgba(251, 243, 228, .18); stroke-width: 14; }
.ring-fill { fill: none; stroke: var(--orange); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.ring-text { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 44px; gap: 2px; }
.ring-text b { font-size: 2.3rem; font-family: var(--font-display); }
.quests { list-style: none; margin: 0; padding: 0; }
.quests li { display: grid; grid-template-columns: 28px 1fr auto auto; gap: .5rem; align-items: center; padding: .5rem 0; border-top: 1px solid var(--line); }
.quests li:first-child { border-top: 0; }
.q-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 900; color: #fff; }
.quests li.done .q-check { background: var(--good); border-color: var(--good); }
.quests li.done .q-text { text-decoration: line-through; color: var(--muted); }
.q-prog { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: .85rem; }
.q-xp { font-size: .75rem; font-weight: 800; color: var(--orange-text); }
.strip { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .3rem; scroll-snap-type: x mandatory; }
.strip-item { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 68px; flex: none; text-decoration: none; color: var(--ink); font-size: .74rem; scroll-snap-align: start; }
.strip-item span { max-width: 68px; overflow: hidden; font-weight: 700; text-align: center; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; } /* 2 Zeilen: „Чёрно-белая“, „Smoking (Schwarz-Weiß)“ */
.strip-item small { color: var(--muted); }
.cafes { list-style: none; padding: 0; margin: 0; }
.cafes li { display: grid; grid-template-columns: 36px 1fr auto; gap: .6rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); }
.cafes li:first-child { border-top: 0; }
.cafes li.dim { opacity: .55; }
.cafes li.muted { display: block; } /* „Noch keine.“ nicht in die erste schmale Spalte */
.cafe-ico { font-size: 1.5rem; }
.cafe-deal { display: flex; flex-direction: column; align-items: flex-end; }
.cafe-deal b { font-family: var(--font-display); color: var(--orange-d); font-size: 1.2rem; }
.cafe-deal small { color: var(--muted); font-size: .72rem; }
.help-teaser { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); font-weight: 700; border-color: rgba(208, 59, 59, .4); }
.help-teaser .big { font-size: 1.6rem; }
.help-teaser .chev { margin-inline-start: auto; font-size: 1.6rem; color: var(--muted); }

/* ---------------------------------------------------------------- KediDex */

.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .5rem; }
.type { text-align: center; font-size: .7rem; font-weight: 700; color: var(--muted); }
.type img { width: 100%; border-radius: 14px; filter: grayscale(1) brightness(.35) contrast(.8); opacity: .55; }
.type.got { color: var(--ink); }
.type.got img { filter: none; opacity: 1; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .9rem; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: .5rem; border-radius: 16px;
  background: var(--surface); border: 2px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
}
.tile.r-uncommon { border-color: var(--r-uncommon); }
.tile.r-rare { border-color: var(--r-rare); }
.tile.r-epic { border-color: var(--r-epic); }
.tile.r-legendary { border-color: var(--r-legendary); background: linear-gradient(160deg, rgba(224, 164, 0, .14), var(--surface) 40%); }
.tile-name { font-weight: 800; margin-top: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-sub { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-legend, .tile-status { position: absolute; top: .8rem; font-size: 1.2rem; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.tile-legend { inset-inline-start: .8rem; }
.tile-status { inset-inline-end: .8rem; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .8rem; }
.filters input { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- Katzenprofil & Karte */

.cat-hero { display: grid; gap: .8rem; margin-bottom: .9rem; }
@media (min-width: 560px) { .cat-hero { grid-template-columns: 220px 1fr; align-items: center; } }
.cat-hero h1 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; text-wrap: balance; }
.cat-hero .chips { margin: .3rem 0; display: flex; gap: .3rem; flex-wrap: wrap; }
.legend { color: var(--r-legendary); font-weight: 800; }
.facts { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: .45rem .9rem; margin: .4rem 0; }
.facts dt { color: var(--muted); font-size: .85rem; max-width: 11em; overflow-wrap: break-word; hyphens: auto; }
.facts dd { overflow-wrap: anywhere; }
.facts dd { margin: 0; font-weight: 600; }
.bcs { display: inline-flex; align-items: center; gap: .4rem; }
.bcs-track { display: inline-flex; gap: 2px; }
.bcs-track i { width: 10px; height: 14px; border-radius: 3px; background: var(--surface-2); }
.bcs-track i.low { background: var(--serious); }
.bcs-track i.ok { background: var(--good); }
.bcs-track i.high { background: var(--warning); }
.bcs-track i.vhigh { background: var(--critical); }
.disclaimer, .note { font-size: .8rem; color: var(--muted); }
.note { background: var(--surface-2); padding: .5rem .7rem; border-radius: 10px; }
.note.warn { color: #8f3b14; background: rgba(236, 131, 90, .15); }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: grid; grid-template-columns: 36px 1fr auto; gap: .5rem; align-items: center; padding: .5rem 0; border-top: 1px solid var(--line); }
.rank li:first-child { border-top: 0; }
.rank li.me { background: rgba(242, 140, 40, .12); border-radius: 10px; padding-inline-start: .4rem; }
.rank-n { font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; }
.rank-name { font-weight: 700; display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.rank-v { font-weight: 800; font-variant-numeric: tabular-nums; }
.timeline, .log, .helplist { list-style: none; padding: 0; margin: 0; }
.timeline li, .helplist li { display: flex; gap: .7rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.timeline li:first-child, .helplist li:first-child { border-top: 0; }
.timeline .dot { width: 12px; height: 12px; margin: .4rem 22px; border-radius: 50%; background: var(--orange); flex: none; }
.helplist a { display: flex; gap: .7rem; color: var(--ink); text-decoration: none; }
.log li { padding: .35rem 0; font-size: .88rem; border-top: 1px dashed var(--line); }
.minimap { height: 210px; border-radius: 14px; overflow: hidden; margin-bottom: .4rem; z-index: 0; }

.mapview { position: relative; margin: -.8rem -.75rem 0; height: calc(100dvh - var(--nav-h) - 64px - env(safe-area-inset-bottom)); }
.map-el { position: absolute; inset: 0; z-index: 0; }
.map-el.picking { cursor: crosshair; outline: 4px solid var(--orange); outline-offset: -4px; }
.map-ctrl {
  position: absolute; top: .6rem; inset-inline-end: .6rem; z-index: 500; display: flex; flex-direction: column; gap: .2rem;
  background: var(--surface); padding: .5rem .7rem; border-radius: 14px; box-shadow: var(--shadow); font-size: .85rem;
}
.map-ctrl label { display: flex; gap: .4rem; align-items: center; }
.map-ctrl input { width: auto; min-height: 0; }
.map-suggest { position: absolute; inset-inline-start: .6rem; bottom: 2rem; z-index: 500; box-shadow: var(--shadow); }
.map-note { position: absolute; left: 0; right: 0; bottom: 0; z-index: 500; margin: 0; padding: .2rem .6rem; font-size: .7rem; background: rgba(255, 253, 248, .85); color: #4a4843; }
.pin-cat span {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--c); border: 3px solid var(--ring); box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
  color: #fff; font-size: 11px; font-weight: 900; text-shadow: 0 0 2px #000;
}
.pin-place span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .35); font-size: 17px; }
.pin-place.cafe span { background: var(--navy); border: 3px solid var(--orange); }
.pop { display: flex; gap: .6rem; color: #1b1b1f; text-decoration: none; min-width: 200px; }
.leaflet-popup-content { margin: 10px 12px; }

/* ---------------------------------------------------------------- Statistik & Diagramme */

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-bottom: var(--space); }
@media (min-width: 560px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stats-grid.small { margin: 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .7rem .8rem; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card .stat { box-shadow: none; background: var(--surface-2); border: 0; }
.stat-l { font-size: .76rem; color: var(--muted); font-weight: 600; }
.stat-v { font-size: 1.55rem; font-weight: 800; }
.stat-s { font-size: .75rem; color: var(--muted); }
.viz { display: block; overflow: visible; touch-action: pan-y; direction: ltr; } /* Achsen bleiben auch auf Arabisch/Persisch links → rechts; text-anchor würde sonst kippen */
.viz .grid { stroke: var(--grid); stroke-width: 1; }
.viz .axis { stroke: var(--axis); stroke-width: 1; }
.viz .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.viz .lbl { fill: var(--ink-2); font-size: 12px; }
.viz .val { fill: var(--ink); font-size: 12px; font-weight: 700; }
.viz .okband { fill: var(--good); opacity: .08; }
.viz-tip {
  position: fixed; z-index: 2000; pointer-events: none; display: none;
  background: var(--navy); color: #fff; padding: .35rem .6rem; border-radius: 8px; font-size: .8rem; box-shadow: var(--shadow); max-width: 260px;
}
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tbl th, .tbl td { padding: .4rem .3rem; border-bottom: 1px solid var(--line); text-align: start; }
.tbl th { color: var(--muted); font-weight: 700; white-space: nowrap; }
.tbl td.num, .tbl th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Kamera */

.cam { position: fixed; inset: 0; background: #000; overflow: hidden; color: #fff; }
.cam-video, .cam-overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap;
  padding: calc(env(safe-area-inset-top) + .6rem) .7rem .6rem;
  background: linear-gradient(rgba(0, 0, 0, .55), transparent);
}
.cam-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 48px; min-height: 48px; padding: .3rem; border-radius: 16px; background: rgba(20, 33, 61, .6);
  color: #fff; text-decoration: none; font-size: 1.3rem; border: 0; cursor: pointer; backdrop-filter: blur(6px);
}
.cam-btn span { font-size: .62rem; font-weight: 700; }
.cam-reticle { position: absolute; left: 50%; top: 42%; width: 62vmin; height: 62vmin; transform: translate(-50%, -50%); z-index: 1; pointer-events: none; transition: opacity .25s; }
.cam-reticle i { position: absolute; width: 22%; height: 22%; border: 4px solid rgba(255, 255, 255, .85); }
.cam-reticle i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 18px 0 0 0; }
.cam-reticle i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 18px 0 0; }
.cam-reticle i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 18px; }
.cam-reticle i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 18px 0; }
.cam[data-state="locked"] .cam-reticle { opacity: 0; }
.cam-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem calc(env(safe-area-inset-bottom) + 1.2rem); background: linear-gradient(transparent, rgba(0, 0, 0, .6));
}
.today-pill { font-size: .95rem; font-weight: 800; }
.shutter {
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%;
  border: 6px solid #fff; background: var(--orange); color: var(--navy); cursor: pointer; box-shadow: 0 0 0 4px rgba(0, 0, 0, .25);
  transition: transform .15s;
}
.shutter b { font-size: .82rem; font-weight: 800; }
.shutter .yarn { font-size: 2rem; line-height: 1; }
.shutter:active { transform: scale(.92); }
.shutter:disabled { background: #777; }
.cam[data-state="locked"] .shutter { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(242, 140, 40, .35); } }
.cam-fallback { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; text-align: center; background: var(--navy); }
.cam-fallback[hidden], .cam-busy[hidden] { display: none; }
.cam-busy { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(20, 33, 61, .55); font-weight: 800; font-size: 1.1rem; }
.cam-busy .spinner-cat { font-size: 4rem; }
.thrown {
  position: absolute; z-index: 4; font-size: 2.6rem; transform: translate(-50%, -50%);
  animation: throw .65s cubic-bezier(.3, .2, .4, 1) forwards, wiggle .5s .7s ease-in-out 3;
}
@keyframes throw {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(calc(-50% + var(--dx) * .5), calc(-50% + var(--dy) * .5 - 120px)) scale(.8) rotate(200deg); }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.6) rotate(400deg); }
}
@keyframes wiggle {
  0%, 100% { margin-left: 0; }
  25% { margin-left: -10px; }
  75% { margin-left: 10px; }
}
.flash { position: absolute; inset: 0; z-index: 6; background: #fff; animation: flash .35s ease-out forwards; pointer-events: none; }
@keyframes flash { to { opacity: 0; } }

/* ---------------------------------------------------------------- Sammelkarte */

.modal-wrap { position: fixed; inset: 0; z-index: 1000; background: rgba(13, 20, 36, .7); display: flex; align-items: flex-end; justify-content: center; padding: 0; overflow-y: auto; }
@media (min-width: 560px) { .modal-wrap { align-items: center; padding: 1rem; } }
.modal {
  position: relative; width: 100%; max-width: 480px; max-height: 100dvh; overflow-y: auto; background: var(--surface);
  border-radius: 24px 24px 0 0; box-shadow: var(--shadow); animation: up .3s ease-out;
}
@media (min-width: 560px) { .modal { border-radius: 24px; max-height: 92dvh; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.modal-x { position: absolute; inset-inline-end: .6rem; top: .6rem; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; font-size: 1rem; }
.modal form.pad { display: grid; gap: .7rem; }
.catcard { padding: 1.1rem 1rem 1.2rem; border-top: 10px solid var(--r-common); border-radius: 24px 24px 0 0; }
.catcard.r-uncommon { border-color: var(--r-uncommon); }
.catcard.r-rare { border-color: var(--r-rare); }
.catcard.r-epic { border-color: var(--r-epic); }
.catcard.r-legendary { border-color: var(--r-legendary); background: linear-gradient(170deg, rgba(224, 164, 0, .18), var(--surface) 35%); }
.catcard-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; padding-inline-end: 2.8rem; }
.rarity-name { color: var(--muted); font-weight: 700; }
.burst {
  font-family: var(--font-display); background: var(--orange); color: var(--navy); padding: .25rem .7rem; border-radius: 8px;
  transform: rotate(-4deg); box-shadow: 3px 3px 0 var(--navy); animation: pop .5s ease-out;
}
@keyframes pop { 0% { transform: scale(0) rotate(-20deg); } 70% { transform: scale(1.2) rotate(-2deg); } }
.again { font-weight: 800; color: var(--teal); }
.catcard-photo { margin-bottom: .6rem; }
.catcard-name { text-align: center; }
.catcard-name h2 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; margin: .3rem 0; }
.flavor { font-style: italic; color: var(--ink-2); }
.namebox { background: rgba(242, 140, 40, .14); border: 2px dashed var(--orange); border-radius: 16px; padding: .8rem; margin: .7rem 0; }
.ideas { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.chip.idea { border: 0; cursor: pointer; background: var(--surface); }
.xpbox { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .6rem; }
.xpbox .xp { color: var(--orange-d); font-size: 1.3rem; font-family: var(--font-display); }
.xpbox .prog { font-weight: 800; background: var(--navy); color: var(--cream); padding: .15rem .6rem; border-radius: 999px; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 10; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall 2.2s ease-in forwards; }
@keyframes fall { to { top: 105%; transform: rotate(720deg); } }

/* ---------------------------------------------------------------- Gutschein */

.voucher {
  position: relative; margin-bottom: .9rem; padding: 1.1rem; border-radius: 24px; text-align: center; overflow: hidden;
  background: var(--navy); color: var(--cream); box-shadow: var(--shadow);
  background-image: repeating-linear-gradient(-45deg, rgba(242, 140, 40, .07) 0 12px, transparent 12px 24px);
}
.voucher header { display: flex; align-items: center; gap: .6rem; text-align: start; }
.voucher header img { border-radius: 10px; }
.voucher header small { display: block; opacity: .8; }
.v-discount { font-family: var(--font-display); font-size: 2.6rem; color: var(--orange); margin: .6rem 0; text-shadow: 3px 3px 0 rgba(0, 0, 0, .35); }
.v-qr { background: #fff; width: 220px; max-width: 70vw; margin: 0 auto; padding: 8px; border-radius: 16px; }
.v-qr svg { display: block; width: 100%; height: auto; }
.v-code { margin: .6rem 0; }
.v-code small { display: block; opacity: .7; }
.v-code b { font-size: 1.6rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.v-live { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255, 255, 255, .1); padding: .3rem .8rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.paw { display: inline-block; animation: dance 1.4s ease-in-out infinite; }
@keyframes dance { 25% { transform: rotate(-20deg) translateY(-3px); } 75% { transform: rotate(20deg) translateY(-3px); } }
.v-state { font-weight: 800; }
.v-cats { margin-top: .6rem; }
.v-cats .strip { justify-content: center; flex-wrap: wrap; }
.voucher.redeemed .v-qr, .voucher.expired .v-qr { filter: grayscale(1) opacity(.35); }
.voucher.redeemed::after, .voucher.expired::after {
  content: attr(data-stamp); position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg);
}

/* ---------------------------------------------------------------- Profil */

.profile-head { display: flex; gap: 1rem; align-items: center; }
.profile-head h1 { margin: 0; }
.xpbar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: .4rem 0 .2rem; max-width: 280px; }
.xpbar i { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: .6rem .3rem; border-radius: 14px; background: var(--surface-2); opacity: .55; }
.badge.on { opacity: 1; background: rgba(242, 140, 40, .15); outline: 2px solid var(--orange); }
.b-ico { font-size: 1.8rem; }
.badge b { font-size: .76rem; max-width: 100%; overflow-wrap: break-word; hyphens: auto; } /* lange Wörter (ru „Первооткрыватель“) umbrechen statt abschneiden */
.badge small { font-size: .7rem; color: var(--muted); }
.settings { display: grid; gap: .7rem; }
.settings label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
.settings label.check { display: flex; align-items: center; gap: .5rem; }
.settings label.check input { width: 22px; min-height: 22px; }
.settings-group { padding: 0; margin: 0; border: 0; min-width: 0; }
.settings-group legend { margin-bottom: .35rem; font-weight: 700; }
.links { font-size: .9rem; }
.prose p { margin: .5rem 0; }

/* ---------------------------------------------------------------- Onboarding */

.onboarding {
  min-height: 100dvh; background: var(--navy); color: var(--cream); padding: calc(env(safe-area-inset-top) + 1.5rem) 1.2rem 2rem;
  background-image: radial-gradient(circle at 50% 0, rgba(242, 140, 40, .3), transparent 55%);
}
.onb-inner { max-width: 520px; margin: 0 auto; text-align: center; }
.onb-logo { border-radius: 30px; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); animation: bob 2.4s ease-in-out infinite; }
.onb-title { margin: .8rem 0 0; line-height: .9; }
.onb-title span { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 11vw, 3.6rem); letter-spacing: -.02em; }
.onb-title em { display: block; color: var(--orange); font-style: normal; font-family: var(--font-display); font-size: clamp(1.3rem, 6vw, 1.9rem); font-weight: 500; margin-top: .35rem; }
.onb-slogan { font-size: 1.1rem; opacity: .9; }
.onboarding h2 { margin-top: 1.2rem; font-size: 1.2rem; }
.onboarding a { color: var(--yellow); }
.langs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .3rem; background: rgba(255, 255, 255, .08); padding: 5px; border-radius: 22px; margin: 1rem 0; max-width: 100%; }
.langs button { border: 0; background: transparent; color: var(--cream); padding: .45rem .85rem; border-radius: 999px; font-weight: 700; cursor: pointer; min-height: 40px; font-family: var(--font); }
.langs button:lang(ar), .langs button:lang(fa) { font-family: "Vazirmatn", var(--font); }
.langs button.on { background: var(--orange); color: var(--navy); }
.onb-rules { list-style: none; padding: 0; margin: 1.5rem 0; text-align: start; display: grid; gap: .65rem; }
.onb-rules li { background: rgba(255, 255, 255, .07); padding: .6rem .8rem; border-radius: 12px; }
.onb-form { text-align: start; margin: 1.6rem 0 .8rem; display: grid; gap: .7rem; }
.onb-form input { width: 100%; }
.account-login { text-align: start; }
.account-login form { margin-top: 1rem; }
.onb-form label { font-weight: 700; display: block; margin-bottom: .3rem; }
.onb-form input { background: #fff; color: #1b1b1f; border-color: transparent; }
.onb-rules-pop { position: fixed; inset: 0; z-index: 50; overflow-y: auto; background: var(--bg); color: var(--ink); padding: 1rem; text-align: start; }

/* ---------------------------------------------------------------- Toasts */

.toasts { position: fixed; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px); transform: translateX(-50%); z-index: 3000; display: grid; gap: .4rem; width: min(92vw, 420px); }
.toast { background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: 14px; box-shadow: var(--shadow); font-weight: 600; animation: up .25s ease-out; transition: opacity .3s; }
.toast.success { background: #0b6b3a; }
.toast.error { background: #a72424; }
.toast.out { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- Zustand melden */

.report-box { margin-top: var(--space); padding: 1rem; border-radius: 16px; background: var(--surface-2); display: grid; gap: .6rem; }
.report-box h3 { margin: 0; font-size: 1.05rem; }
.cond { display: flex; flex-wrap: wrap; gap: .45rem; }
.cond-chip {
  position: relative; display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .75rem; min-height: 40px;
  border-radius: 999px; background: var(--surface); border: 2px solid var(--line); font-size: .88rem; font-weight: 600; cursor: pointer;
}
.cond-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cond-chip:has(input:checked) { border-color: var(--orange); background: rgba(242, 140, 40, .16); }
.cond-chip.sev-urgent:has(input:checked) { border-color: var(--critical); background: rgba(208, 59, 59, .14); }
.cond-chip.sev-attention:has(input:checked) { border-color: var(--serious); }
.cond-chip:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.cond-note { min-height: 42px; }
.report-done { margin: 0; font-weight: 700; }
.last-report { background: var(--surface-2); padding: .4rem .7rem; border-radius: 10px; }

/* Zahlen und gemischte Texte in Rechts-nach-links-Sprachen nicht verdrehen */
.ring-text { direction: ltr; }
.q-prog, .q-xp, .xp, .prog, .rank-v, .stat-v, .v-code b, .today-pill, .lvl, .chip, .stars { unicode-bidi: isolate; }
:dir(rtl) .q-xp, :dir(rtl) .xp, :dir(rtl) .q-prog { direction: ltr; }

/* ── Erweiterung: share ── */
/* „Link kopieren“: Rückfall-Dialog mit dem Link zum Markieren (öffentliche Seite: css/catpage.css) */
.share-link { margin: .4rem 0 0; font-size: .9rem; text-align: start; }

/* ── Erweiterung: cafe ── */
/* Café-QR: Karte „Dein QR-Code“ in partner.html (js/views/cafe.js); Druckvorlagen: css/print.css */
.cafe-kit .kit-qr { display: grid; place-items: center; margin: .9rem auto .6rem; width: min(232px, 72%); padding: 10px; background: #fff; border: 4px solid var(--orange); border-radius: 18px; line-height: 0; }
.cafe-kit .kit-qr:empty { aspect-ratio: 1; }
.cafe-kit .kit-qr svg { width: 100%; height: auto; display: block; }
.cafe-kit .kit-link { font-size: clamp(.72rem, 3.4vw, .9rem); text-align: center; color: var(--ink-2); background: var(--surface-2); border-color: transparent; }
.cafe-kit .kit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .6rem 0 0; }
.cafe-kit .kit-actions .btn { padding-inline: .6rem; font-size: .92rem; }
.cafe-kit .kit-h { font-size: 1rem; margin: 1.1rem 0 .4rem; }
.kit-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.kit-stats li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; background: var(--surface-2); border-radius: 14px; padding: .65rem .9rem; }
.kit-stat-l { display: grid; font-weight: 700; font-size: .92rem; }
.kit-stat-l small { color: var(--muted); font-weight: 600; font-size: .78rem; unicode-bidi: isolate; }
.kit-stat-v { font-family: var(--font-display); font-size: 1.55rem; line-height: 1; unicode-bidi: isolate; }
@media (max-width: 340px) { .cafe-kit .kit-actions { grid-template-columns: 1fr; } }
/* „Willkommen von Café X“ im Onboarding (über den QR-Code eines Cafés gekommen) */
.onb-cafe { display: flex; align-items: flex-start; gap: .7rem; margin: 1.2rem 0 0; padding: .8rem 1rem; text-align: start; border-radius: 14px; background: rgba(242, 140, 40, .16); border: 2px solid var(--orange); line-height: 1.4; }
.onb-cafe b { color: var(--yellow); }
.onb-cafe-ic { font-size: 1.5rem; line-height: 1.1; flex: none; }

/* ── Erweiterung: routes ── */
/* Katzen-Spaziergänge (js/views/routes.js): Karte auf „Heute“, Knopf auf der Karte, Liste, Wegkarte */
.walks-teaser { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); border-color: rgba(31, 138, 138, .5); }
.walks-teaser .big { font-size: 1.6rem; flex: none; }
.walks-teaser > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.walks-teaser small { color: var(--muted); font-size: .85rem; }
.walks-teaser .chev { margin-inline-start: auto; font-size: 1.6rem; color: var(--muted); flex: none; }
.map-walks { position: absolute; inset-inline-start: .6rem; bottom: calc(2rem + 54px); z-index: 500; box-shadow: var(--shadow); }
.walks-head, .walk-head { margin-bottom: var(--space); }
/* Seitentitel überall gleich: Spaziergänge, Kadıköy-Zahlen, Hilfe-Radar, Regeln, Druckvorlagen (BRAND: Unbounded für Überschriften) */
.walks-head h1, .walk-head h1, #view > h1.pad-x, .prose > h1, .pk-controls h1 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: .4rem; }
.walks-head p { color: var(--ink-2); margin: 0; }
.walk-card.best { border: 2px solid var(--orange); }
.walk-best { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .4rem; margin: 0 0 .7rem; padding: .35rem .7rem; border-radius: 12px; background: rgba(242, 140, 40, .15); font-size: .9rem; }
.walk-best small { color: var(--ink-2); font-size: .82rem; }
.walk-top { display: flex; gap: .75rem; align-items: flex-start; }
.walk-top h2 { margin: 0 0 .3rem; font-size: 1.15rem; }
.walk-ico { font-size: 1.9rem; line-height: 1.1; flex: none; }
.walk-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.walk-meta span { unicode-bidi: isolate; background: var(--surface-2); border-radius: 999px; padding: .1rem .65rem; font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.walk-story { margin: .75rem 0; color: var(--ink-2); }
.walk-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.walk-facts li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .3rem; align-items: start; }
.walk-help a, .walk-mine { font-weight: 700; }
.walk-help a { display: inline-block; padding-block: .65rem; margin-block: -.65rem; }
.walk-deal { font-weight: 800; color: var(--orange-text); unicode-bidi: isolate; white-space: nowrap; }
.walk-ends { margin: .8rem 0 0; }
.walk-ends > span:not(.dir-ic) { unicode-bidi: isolate; }
.walk-actions .btn { flex: 1 1 10rem; }
.walk-map { position: relative; height: min(50vh, 420px); min-height: 240px; border-radius: var(--radius); overflow: hidden; margin: 0 0 .5rem; border: 1px solid var(--line); background: var(--surface-2); z-index: 0; }
.walk-legend { display: flex; align-items: center; gap: .55rem; margin: .25rem 0; }
.walk-dash { width: 28px; flex: none; border-top: 4px dashed var(--orange); }
.walk-heat-dot { width: 16px; height: 16px; flex: none; border-radius: 50%; background: rgba(235, 104, 52, .45); }
.walk-cta { text-align: center; margin: .9rem 0 0; }
.walk-cta .btn { width: 100%; max-width: 420px; }
.walk-cta p { margin: .35rem 0 0; }
.walk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: .6rem; margin: var(--space) 0; }
.walk-stats .stat-l { overflow-wrap: anywhere; hyphens: auto; }
.walk-tips ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.walk-note { text-align: center; margin-bottom: 1rem; }
.walk-end-chip { background: rgba(242, 140, 40, .16); }
.walk-pin span {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #fffdf8; border: 3px solid var(--navy); box-shadow: 0 1px 6px rgba(0, 0, 0, .35); font-size: 18px;
}
.walk-pin.start span { border-color: #0ca30c; }
.walk-pin.finish span { border-color: var(--orange); }

/* ── Erweiterung: impact ── */
/* Herz mit Dank-Zahl in der Kopfzeile (js/views/impact.js) */
.feed-bell {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; color: var(--cream); text-decoration: none;
}
.feed-bell:hover, .feed-bell[aria-current="page"] { background: rgba(251, 243, 228, .12); }
.feed-bell.has-new svg { fill: var(--orange); stroke: var(--orange); }
.feed-n {
  position: absolute; top: 2px; inset-inline-end: 0; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px; border: 2px solid var(--navy);
  background: var(--orange); color: var(--navy); font-size: .7rem; font-weight: 800; line-height: 1; unicode-bidi: isolate;
}
.feed-n[hidden] { display: none; }
/* Sehr schmale Handys (320 px): Platz für das Herz – das Level steht im Profil und im Titel des Knopfs */
@media (max-width: 359px) {
  .top:has(.feed-bell) { gap: .4rem; }
  .top:has(.feed-bell) .me-pill .lvl { display: none; }
}
/* Dank-Feed #/feed */
.feed-card h1, .impact-card h2 { display: flex; align-items: center; gap: .45rem; }
.feed-card h1 { font-family: var(--font-display); font-size: clamp(1.15rem, 5.6vw, 1.35rem); font-weight: 700; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.feed-item { border-radius: 16px; background: var(--surface-2); }
.feed-item.unread { background: rgba(242, 140, 40, .14); box-shadow: inset 4px 0 0 var(--orange); }
[dir="rtl"] .feed-item.unread { box-shadow: inset -4px 0 0 var(--orange); }
.feed-link { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem .8rem; color: var(--ink); text-decoration: none; min-height: 44px; }
.feed-body { display: grid; gap: .15rem; min-width: 0; }
.feed-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; }
.feed-name { font-weight: 800; overflow-wrap: anywhere; }
.feed-when { margin-inline-start: auto; }
.feed-msg { font-weight: 600; line-height: 1.4; }
.chip.new { background: var(--orange); color: var(--navy); }
.feed-empty { text-align: center; padding: .6rem 0 .2rem; }
.feed-empty .big-emoji { font-size: 2.6rem; }
/* Deine Wirkung (Profil, Feed) und die Zeile auf „Heute“ */
.impact-list { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; gap: .45rem; }
.impact-list li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; line-height: 1.4; }
.impact-ic { flex: none; width: 1.6rem; text-align: center; font-size: 1.15rem; }
.impact-list li.im-helped { color: #0b6b3a; }
.impact-thanks { color: var(--muted); font-size: .9rem; }
.impact-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .6rem 0 0; font-weight: 700; }
.impact-links a { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; }
.impact-line { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); font-weight: 700; border-color: rgba(12, 163, 12, .35); line-height: 1.35; }
.impact-line .big { font-size: 1.6rem; flex: none; }
.impact-line .chev { margin-inline-start: auto; font-size: 1.6rem; color: var(--muted); }
.impact-kicker { display: block; color: var(--muted); font-size: .75rem; font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .impact-list li.im-helped { color: #7ee07e; } }
:root[data-theme="dark"] .impact-list li.im-helped { color: #7ee07e; }
/* Katzenprofil: „braucht Hilfe“ für alle, schnelle Hilfe für Freiwillige */
.help-hint { margin: 0 0 var(--space); padding: .9rem 1rem; border-radius: var(--radius); background: rgba(208, 59, 59, .1); border: 2px solid rgba(208, 59, 59, .35); }
.help-hint p { margin: 0 0 .35rem; }
.help-hint .guide-link { margin-top: .3rem; }
.help-hint .guide-link.btn.small { min-height: 44px; } /* Tippfläche wie alle Knöpfe */
.care-card h2 { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.care-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: .6rem; }
.care-btn { flex-direction: column; gap: .15rem; min-height: 64px; padding: .5rem .45rem; border-radius: 16px; text-align: center; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; hyphens: auto; }
.care-btn > span:first-child { font-size: 1.3rem; line-height: 1; }
/* Dunkelmodus: Navy-Rand der Knöpfe wäre auf dunklem Grund unsichtbar */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.care-btn, .help-hint .guide-link.btn) { border-color: var(--ink-2); background: var(--surface-2); } }
:root[data-theme="dark"] :is(.care-btn, .help-hint .guide-link.btn) { border-color: var(--ink-2); background: var(--surface-2); }
/* Hilfe-Leitfaden (#/guide, Fenster, guide.html) */
.guide-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-weight: 700; }
.guide-link.btn { color: var(--ink); }
.cond-guide { margin: 0; }
.guide-head { text-align: center; margin-bottom: 1rem; }
.guide-ic { display: block; font-size: 2.4rem; line-height: 1; margin-bottom: .4rem; }
.guide-head h1, .guide-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin-bottom: .4rem; }
.guide-lead { font-size: 1.08rem; font-weight: 700; color: var(--link); max-width: 34ch; margin: 0 auto; text-wrap: balance; }
.guide-grid { display: grid; gap: .7rem; }
@media (min-width: 560px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
.guide-sec { background: var(--surface-2); border-radius: 16px; padding: .8rem .9rem; }
.guide-sec.tone-care { background: rgba(208, 59, 59, .08); box-shadow: inset 0 0 0 2px rgba(208, 59, 59, .25); }
.guide-sec h2, .guide-sec h3 { font-size: 1.02rem; font-weight: 800; margin: 0 0 .4rem; display: flex; align-items: center; gap: .4rem; }
.guide-sec-ic { font-size: 1.3rem; }
.guide-sec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.guide-sec li { position: relative; padding-inline-start: 1.4rem; line-height: 1.45; }
.guide-sec li::before { content: "•"; position: absolute; inset-inline-start: .3rem; color: var(--orange-d); font-weight: 900; }
.guide-sec li.mk-yes::before { content: "✓"; inset-inline-start: .1rem; color: var(--good); }
.guide-sec li.mk-no::before { content: "✕"; inset-inline-start: .1rem; color: var(--critical); }
.guide-photo { margin: 1rem 0 0; padding: .7rem .9rem; border-radius: 14px; background: rgba(31, 138, 138, .12); font-weight: 600; }
.guide-cta { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.guide-cta .big { font-size: 1.6rem; }
.guide-cta .chev { margin-inline-start: auto; font-size: 1.6rem; color: var(--muted); }
.guide-pop:focus { outline: none; }
.guide-pop .guide-head { padding-inline-end: 2.4rem; padding-inline-start: 2.4rem; }
.guide-page main { padding-bottom: 2.5rem; }
.guide-page .guide-langs { display: flex; margin: 0 auto 1rem; width: fit-content; background: var(--surface-2); }
.guide-page .guide-langs button { color: var(--ink); }
.guide-page .guide-langs button.on { color: var(--navy); }
.guide-play p { margin: 0; }
.maker { text-align: center; margin: 1.5rem 0 0; }

/* ── Erweiterung: report ── */
/* Link „Monatsbericht“ in der Statistik (die Seite selbst: css/report.css) */
.report-teaser { border-color: rgba(31, 138, 138, .45); }
.report-teaser > span:nth-child(2) { display: grid; gap: .1rem; }
.report-teaser small { font-weight: 600; color: var(--muted); font-size: .8rem; }

/* ── Erweiterung: perf ── */


/* ── Erweiterung: qr-setup ── */
/* „Auf dem Handy spielen“ im Profil: nur auf breiten Bildschirmen (am Handy ist man schon am Handy) */
.phone-card { display: none; }
@media (min-width: 900px) {
  .phone-card:not(:empty) { display: flex; align-items: center; gap: 1.2rem; }
  .phone-card h3 { margin: 0 0 .3rem; font-size: 1rem; }
}
.phone-qr { flex: none; width: 168px; aspect-ratio: 1; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(20, 33, 61, .12); }
.phone-qr svg { display: block; width: 100%; height: 100%; }
.onb-invite { border-color: var(--teal); background: rgba(31, 138, 138, .2); }

/* Community missing/found board: the same warm paper, independent from game rewards. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.lost-home { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink); border-color: rgba(31, 138, 138, .4); background: linear-gradient(125deg, var(--surface), var(--surface-2)); }
.lost-home > span:last-child { display: grid; gap: .35rem; min-width: 0; }
.lost-home b { font-size: 1.08rem; font-weight: 850; }
.lost-home small { color: var(--muted); line-height: 1.5; }
.lost-home em { font-style: normal; font-size: .85rem; color: var(--link); font-weight: 800; }
.lost-home-symbol { position: relative; display: grid; place-items: center; flex: none; width: 68px; height: 68px; border-radius: 21px; background: var(--navy); color: var(--cream); font-size: 3.9rem; font-family: Georgia, serif; line-height: 1; }
.lost-home-symbol i { font-size: 1.1rem; position: absolute; inset-inline-end: 6px; bottom: 8px; font-style: normal; }
.lost-heading { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.lost-heading > div { flex: 1 1 250px; }
.lost-heading h1 { font-size: clamp(1.65rem, 5vw, 2rem); margin-bottom: .55rem; }
.lost-heading p { color: var(--muted); font-size: .92rem; max-width: 45ch; }
.lost-eyebrow { display: block; color: var(--link); text-transform: uppercase; letter-spacing: .08em; font-size: .65rem; font-weight: 850; margin-bottom: .6rem; }
.lost-tabs { display: flex; align-items: stretch; gap: .25rem; background: var(--surface-2); border-radius: 16px; padding: .3rem; margin-bottom: .8rem; }
.lost-tabs a { flex: 1; display: grid; place-items: center; min-height: 46px; padding: .45rem .3rem; color: var(--muted); text-align: center; text-decoration: none; font-size: .78rem; font-weight: 800; border-radius: 12px; line-height: 1.35; }
.lost-tabs a[aria-current] { color: var(--ink); background: var(--surface); box-shadow: 0 2px 5px rgba(20, 33, 61, .1); }
.lost-search { display: flex; gap: .5rem; margin-bottom: 1rem; }
.lost-search input { min-width: 0; }
.lost-search button { min-width: 48px; flex: none; font-size: 1.6rem; padding-inline: .8rem; }
.lost-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.lost-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: box-shadow .18s; }
.lost-card:hover { box-shadow: 0 4px 20px rgba(20, 33, 61, .18); }
.lost-card-image { position: relative; aspect-ratio: 1.25; background: var(--surface-2); display: grid; place-items: center; font-size: 3rem; }
.lost-card-image img { width: 100%; height: 100%; object-fit: cover; }
.lost-card-image .lost-status { position: absolute; inset-inline-start: .6rem; bottom: .6rem; box-shadow: 0 1px 6px rgba(0, 0, 0, .2); }
.lost-card-body { display: flex; flex-direction: column; flex: 1; padding: .85rem; }
.lost-kind { color: var(--orange-text); font-weight: 850; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.lost-card h2 { margin: .3rem 0 .4rem; font-size: 1.05rem; overflow-wrap: anywhere; }
.lost-area { margin: 0; font-size: .85rem; font-weight: 650; overflow-wrap: anywhere; }
.lost-card-body > .small { font-size: .72rem; }
.lost-card-description { margin: .5rem 0 .7rem; font-size: .8rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.lost-reports { color: var(--link); font-size: .7rem; font-weight: 800; margin-top: auto; }
.lost-status.lost-open { background: var(--cream); color: var(--navy); }
.lost-status.lost-reunited { background: #d5eee7; color: #135a4f; }
.lost-status.lost-closed { background: #e7e7e7; color: #3d3d3d; }
.lost-state, .lost-empty { text-align: center; padding: 2.3rem 1rem; background: var(--surface); border: 1px dashed var(--line); border-radius: 20px; }
.lost-empty > span { display: block; font-size: 2.5rem; margin-bottom: .9rem; }
.lost-empty h2 { font-size: 1rem; color: var(--muted); margin-bottom: 1rem; }
.lost-note { color: var(--muted); font-size: .78rem; line-height: 1.55; margin: .85rem 0; }
.lost-form { display: grid; gap: 1.1rem; }
.lost-form fieldset, .lost-location { padding: 0; margin: 0; border: 0; min-width: 0; }
.lost-form legend, .lost-location legend { font-weight: 800; font-size: .9rem; padding: 0; margin-bottom: .45rem; }
.lost-field { display: grid; gap: .4rem; min-width: 0; }
.lost-field > span { font-weight: 800; font-size: .9rem; }
.lost-field small { font-weight: 500; font-size: .75rem; }
.lost-kind-picker { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.lost-kind-picker legend { grid-column: 1 / -1; }
.lost-kind-picker label { cursor: pointer; position: relative; }
.lost-kind-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.lost-kind-picker span { display: flex; justify-content: center; align-items: center; min-height: 52px; border: 2px solid var(--line); border-radius: 14px; padding: .4rem; text-align: center; font-size: .8rem; font-weight: 800; }
.lost-kind-picker input:checked + span { border-color: var(--teal); color: var(--link); background: rgba(31, 138, 138, .08); }
.lost-kind-picker input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.lost-file { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; min-height: 0; }
.lost-photo-field > .btn { margin-top: .7rem; }
.lost-photo-preview { display: block; width: min(100%, 320px); height: auto; border-radius: 16px; margin-top: .9rem; border: 2px solid var(--line); }
.lost-crop-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: .6rem; }
.lost-crop-controls label { font-weight: 800; color: var(--link); font-size: 1rem; }
.lost-crop-controls input { display: block; width: 100%; min-height: 36px; padding: 0; accent-color: var(--teal); }
.lost-linked { display: flex; gap: .8rem; align-items: center; background: var(--surface-2); padding: .7rem; border-radius: 14px; font-size: .8rem; }
.lost-linked img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; flex: none; }
.lost-linked b { display: block; margin-top: .25rem; font-size: .95rem; }
.lost-form-error, [data-status-error], [data-report-error], [data-reply-error], [data-abuse-error] { color: var(--orange-text); font-size: .85rem; font-weight: 700; }
.lost-pick-map { margin-top: .7rem; }
.lost-location-state { padding: .45rem .7rem; background: var(--surface-2); border-radius: 10px; display: inline-block; }
.lost-detail-hero { border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 1rem; }
.lost-detail-photo { aspect-ratio: 1.45; position: relative; display: grid; place-items: center; background: var(--surface-2); font-size: 4rem; }
.lost-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.lost-detail-photo .lost-status { position: absolute; bottom: .85rem; inset-inline-start: 1rem; padding: .3rem .75rem; }
.lost-detail-heading { position: relative; padding: 1.2rem; }
.lost-detail-heading h1 { margin: .3rem 0 .5rem; overflow-wrap: anywhere; }
.lost-detail-heading .btn { margin-top: .7rem; }
.lost-description, .lost-report-note, .lost-message p { white-space: pre-wrap; overflow-wrap: anywhere; }
.lost-description { font-size: .95rem; line-height: 1.7; }
.lost-detail-map { height: 210px; border-radius: 16px; margin-top: 1rem; overflow: hidden; }
.lost-report-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.lost-report-actions .btn { flex: 1; }
.lost-report-form { scroll-margin-top: 90px; }
.lost-report-form form { display: grid; gap: 1rem; }
.lost-report { padding: 1rem 0; border-top: 1px solid var(--line); }
.lost-report:first-of-type { margin-top: .9rem; }
.lost-report header { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .7rem; }
.lost-report header > b { font-size: .9rem; }
.lost-report time { color: var(--muted); font-size: .72rem; }
.lost-report-note { font-size: .87rem; padding: .7rem; margin-top: .5rem; border-inline-start: 3px solid var(--teal); background: var(--surface-2); border-radius: 0 12px 12px 0; }
[dir="rtl"] .lost-report-note { border-radius: 12px 0 0 12px; }
.lost-messages { display: grid; gap: .5rem; margin: .7rem 0; }
.lost-message { max-width: 90%; justify-self: start; border: 1px solid var(--line); border-radius: 14px 14px 14px 2px; background: var(--surface-2); padding: .65rem .8rem; }
.lost-message.is-mine { justify-self: end; border-color: rgba(31, 138, 138, .3); border-radius: 14px 14px 2px 14px; background: rgba(31, 138, 138, .08); }
.lost-message b { color: var(--link); font-size: .65rem; text-transform: uppercase; }
.lost-message p { font-size: .85rem; margin: .25rem 0; }
.lost-reply { display: grid; gap: .5rem; }
.lost-reply button { justify-self: end; }
.lost-abuse { border-top: 1px solid var(--line); margin: 1rem 0; padding: .6rem 0; }
.lost-abuse summary { color: var(--muted); font-size: .8rem; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.lost-abuse form { display: grid; gap: .7rem; padding: .6rem 0; }
.lost-abuse button { justify-self: start; }
.lost-pagination { display: flex; justify-content: center; gap: .7rem; margin-top: 1rem; }
.lost-hidden { border-inline-start: 3px solid var(--orange-text); background: var(--surface-2); padding: .7rem; border-radius: 12px; }
.lost-confirm { width: min(92vw, 430px); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem; box-shadow: 0 16px 60px rgba(0, 0, 0, .35); }
.lost-confirm::backdrop { background: rgba(13, 20, 36, .65); }
.lost-confirm h2 { margin-bottom: .8rem; }
.lost-confirm p { color: var(--muted); }
.lost-confirm .actions { justify-content: flex-end; margin-top: 1.3rem; }
.lost-page [hidden] { display: none !important; }
@media (max-width: 370px) { .lost-grid { grid-template-columns: 1fr; } .lost-home-symbol { width: 54px; height: 54px; font-size: 3rem; } }
@media (prefers-reduced-motion: reduce) { .lost-card { transition: none; } }

/* Captured-photo review: the frame matches the public crop; all controls work by keyboard. */
.capture-review-modal .modal { width: min(100% - 1rem, 540px); }
.capture-mark-photo { position: relative; width: 100%; background: #14213d; border-radius: 14px; overflow: hidden; }
.capture-mark-photo img { display: block; width: 100%; height: auto; cursor: crosshair; }
.capture-mark-box { position: absolute; border: 3px solid #f28c28; border-radius: 8px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .25); pointer-events: none; }
.capture-mark-controls { display: grid; gap: .65rem; padding: .75rem 0; }
.capture-mark-controls[hidden] { display: none; }
.capture-mark-controls label { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(120px, 1.3fr); align-items: center; gap: .5rem; font-size: .85rem; }
.capture-mark-controls input { width: 100%; min-height: 36px; accent-color: #f28c28; padding: 0; }
.capture-review [data-error] { color: var(--danger, #b34239); }

/* Show the actual shutter frame while its pixels are inspected. */
.capture-frozen-preview { display: block; width: min(88%, 640px); max-height: 58vh; object-fit: contain; border: 2px solid #f28c28; border-radius: 18px; background: #0a0f1b; }
.capture-frozen-preview[hidden], .capture-mark-box[hidden] { display: none; }
.cam-busy:has(.capture-frozen-preview:not([hidden])) { background: rgba(10,15,27,.94); gap: 1rem; padding: 20px; }
.cam-busy:has(.capture-frozen-preview:not([hidden])) .spinner-cat { font-size: 1.8rem; }
.cam-busy p { max-width: 560px; text-align: center; }
.capture-detected-box { position: absolute; pointer-events: none; border: 2px dashed #fff; border-radius: 8px; }
.capture-detected-box b { display: inline-block; min-width: 24px; padding: 2px 5px; background: #14213d; color: #fff; border-radius: 4px; }
.capture-choices { display: flex; flex-wrap: wrap; gap: .5rem; padding-block: .75rem; }
.capture-choices [aria-pressed=true] { background: #f28c28; color: #0a0f1b; }
.capture-photo-consent { margin-block: 1rem; padding: 1rem; border: 1px solid rgba(242,140,40,.3); border-radius: 16px; }
.capture-photo-consent h3 { font-size: .95rem; }
.capture-photo-consent img { display: block; width: 100%; max-height: 200px; object-fit: contain; border-radius: 10px; margin-block: .75rem; background: #0a0f1b; }
.capture-photo-consent img[hidden] { display: none; }
.capture-photo-consent label { display: flex; align-items: flex-start; gap: .65rem; font-size: .85rem; }
.capture-photo-consent label + label { margin-top: .75rem; }
.capture-photo-consent input { flex: 0 0 auto; margin-top: .25rem; width: 20px; height: 20px; }
.capture-photo-consent details { font-size: .8rem; margin-top: .75rem; }
.cam-top:has([data-photo-settings]) { flex-wrap: wrap; gap: .4rem; }
.cam-top [data-photo-settings] { min-height: 40px; max-width: 100%; white-space: normal; }
.capture-auto-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }
.capture-auto-actions[hidden] { display: none; }
.capture-auto-actions .btn { color: #fff; border-color: rgba(255,255,255,.6); background: #14213d; min-height: 44px; }
.cat-identity { margin-block: 1rem; padding: 1rem; border: 1px solid rgba(242,140,40,.35); border-radius: 18px; }
.cat-identity h3 { margin-top: 0; }
.cat-identity-options summary { min-height: 44px; padding-block: .7rem; cursor: pointer; font-size: .9rem; font-weight: 700; }
.cat-identity-options summary::marker { color: var(--orange-text); }
.cat-identity-options summary:focus-visible { outline: 2px solid var(--orange-text); outline-offset: 3px; border-radius: 6px; }
.cat-identity-options[open] { border-top: 1px solid var(--line); }
.cat-identity [data-identity-message]:empty { display: none; }
.cat-identity-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.cat-identity-pair figure { margin: 0; min-width: 0; }
.cat-identity-pair img { width: 100%; height: 140px; object-fit: contain; border-radius: 12px; background: #0a0f1b; }
.cat-identity-pair figcaption { font-size: .8rem; margin-block: .5rem; }
.cat-identity-candidate { padding-block: 1rem; border-top: 1px solid rgba(255,255,255,.1); }
.cat-identity-candidate .actions { margin-top: .5rem; }
@media (max-width: 420px) { .cat-identity { padding: .75rem; } .cat-identity-pair img { height: 110px; } }
