/* Навигатор фестиваля «Собаки, которые любят».
   Tokens follow the fund's logo: warm paper, graphite, heart red.
   Inside Telegram app.js maps the user's theme onto the same tokens. */
:root {
  color-scheme: light;
  /* The fund's site: yellow #ffd11b, green #226c1c, black type; logo heart red. */
  --primary: #ffd11b;
  --primary-press: #f5c400;
  --on-primary: #1b1814;
  --primary-soft: #fff4c7;
  --primary-ink: #7d5e00;
  --heart: #d1323a;
  --heart-soft: #fde6e4;
  --green: #226c1c;
  --green-soft: #e3efdf;
  --bg: #fff9ee;
  --surface: #fff;
  --ink: #1e1b16;
  --ink-2: #625a4e;
  --ink-3: #776c5e;
  --line: #efe4d1;
  --surface-2: #f7f0e3;
  --ok: #226c1c;
  --ok-soft: #e3efdf;
  --shadow-1: 0 1px 2px rgb(90 66 20 / .06), 0 2px 10px rgb(90 66 20 / .04);
  --shadow-2: 0 12px 32px rgb(90 66 20 / .12);
  --r-s: 12px;
  --r-m: 16px;
  --r-l: 22px;
  --r-xl: 30px;
  --gap: 16px;
  --tabbar: 62px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 400 15px/1.45 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
a, button, input, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 2px; border-radius: var(--r-s); }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 24px; height: 24px; flex: none; }
.icon-s { width: 18px; height: 18px; flex: none; }

/* ---------- Layout ---------- */
#main { max-width: 640px; margin: 0 auto; padding: calc(12px + var(--safe-top)) var(--gap) calc(var(--tabbar) + var(--safe-bottom) + 28px); outline: none; }
body[data-route="animal"] #main { padding: 0 0 calc(96px + var(--safe-bottom)); }
.screen { animation: enter .22s var(--ease) both; }
.screen.pushed { animation-name: push; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
@keyframes push { from { opacity: 0; transform: translateX(18px); } }
.stack { display: grid; gap: 12px; }
.section { margin-top: 30px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 2px 12px; }
.section-head h2 { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.link-more { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin: -12px -8px -12px 0; padding: 0 8px; color: var(--green); font-weight: 600; font-size: 15px; }
.title-xl { margin: 6px 2px 4px; font-family: var(--round); font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
h1, h2, .tile strong, .datecard b, .event time, .brandbar strong { font-family: var(--round); }
.subtitle { margin: 0 2px; color: var(--ink-2); font-size: 15px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; line-height: 1.4; }

/* ---------- Brand bar ---------- */
.brandbar { display: flex; align-items: center; gap: 12px; min-height: 52px; margin-bottom: 14px; }
.brandbar img { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); }
.brandbar strong { display: block; font-size: 17px; line-height: 1.2; letter-spacing: -.015em; }
.brandbar span { display: block; color: var(--ink-2); font-size: 13px; }
.demo-badge { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 700; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-1); }
.card-pad { padding: 18px; }
.card-pad > p { margin: 6px 0 0; }
.card-pad > strong { display: block; font-size: 16px; }
.card-pad > .btn { margin-top: 16px; }
.hero { position: relative; overflow: hidden; padding: 22px 20px 20px; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-1); }
.hero { background: linear-gradient(160deg, #fff 0%, #fffaf0 100%); }
.hero::after { content: ""; position: absolute; right: -70px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, #ffeaa0 0%, #fff3cc 55%, transparent 70%); z-index: 0; }
.hero::before { content: ""; position: absolute; left: -40px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, var(--green-soft) 0%, transparent 70%); z-index: 0; }
.hero .greeting { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; }
.hero > * { position: relative; z-index: 1; }
.hero-top { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-ink); font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--heart); }
.hero h1 { margin: 8px 0 6px; font-size: 30px; line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
.hero h1::first-letter { text-transform: uppercase; }
.datecard { flex: none; width: 84px; padding: 10px 0 12px; border-radius: 20px; background: var(--primary); color: var(--on-primary); text-align: center; box-shadow: 0 10px 22px rgb(214 168 0 / .30); transform: rotate(3deg); }
.datecard b { display: block; font-size: 38px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.datecard span { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; }
.facts-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.facts-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.facts-list .icon-s { margin-top: 1px; color: var(--ink-3); }
.facts-list .pending { color: var(--ink-2); }
.actions { display: flex; gap: 10px; margin-top: 18px; }
.actions > * { flex: 1; }
.hero-note { margin: 10px 2px 0; color: var(--ink-2); font-size: 13px; text-align: center; }
.hero-links { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; margin-top: 6px; }
.text-link { display: inline-flex; align-items: center; min-height: 36px; color: var(--green); font-size: 14px; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: var(--r-m); font-size: 16px; font-weight: 650; letter-spacing: -.01em; transition: transform .12s, background .15s, opacity .15s; user-select: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:active { background: var(--primary-press); }
.btn-green { background: var(--green); color: #fff; }
.btn-secondary { background: var(--surface-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-block { width: 100%; }
.btn > span { display: inline-flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; }
.float-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: rgb(20 18 16 / .38); backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%); }
.float-btn[aria-pressed="true"] { color: #fff; background: var(--heart); }

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 12px; min-height: 104px; padding: 14px; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-1); transition: transform .12s; }
.tile:active { transform: scale(.98); }
.tile-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--ink); }
.tile:nth-child(1) .tile-icon { background: var(--primary-soft); color: var(--primary-ink); }
.tile:nth-child(2) .tile-icon { background: var(--heart-soft); color: var(--heart); }
.tile:nth-child(3) .tile-icon { background: var(--green-soft); color: var(--green); }
.tile:nth-child(4) .tile-icon { background: var(--surface-2); color: var(--ink); }
.tile strong { display: block; font-size: 16px; line-height: 1.25; letter-spacing: -.01em; }
.tile small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 13px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- Carousel ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 10px; overflow-x: auto; margin: 0 calc(-1 * var(--gap)); padding: 2px var(--gap) 6px; scroll-snap-type: x mandatory; scroll-padding: var(--gap); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.mini { display: block; }
.mini .photo { aspect-ratio: 1; border-radius: var(--r-l); }
.mini strong { display: block; margin: 8px 2px 0; font-size: 15px; line-height: 1.25; }
.mini small { display: block; margin: 1px 2px 0; color: var(--ink-2); font-size: 13px; }

/* ---------- Chips & segments ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gap)); padding: 2px var(--gap); scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 550; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, color .15s, box-shadow .15s; }
.chip .count { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.chip[aria-pressed="true"] .count { color: inherit; opacity: .75; }
.chip:disabled { opacity: .45; }
.chip.fav[aria-pressed="true"] { background: var(--heart); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; line-height: 1.2; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); }
.seg button { min-height: 36px; padding: 0 8px; border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 600; transition: background .15s, color .15s; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .08); }
.seg .count { margin-left: 4px; color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Search toolbar ---------- */
.toolbar { position: sticky; top: 0; z-index: 4; display: grid; gap: 10px; margin: 0 calc(-1 * var(--gap)); padding: calc(10px + var(--safe-top)) var(--gap) 10px; background: color-mix(in srgb, var(--bg) 95%, transparent); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); }
.toolbar.scrolled { box-shadow: 0 1px 0 var(--line); }
.search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px 0 12px; border-radius: 12px; background: var(--surface-2); }
.search .icon-s { color: var(--ink-3); }
.search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font-size: 16px; }
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); }
.result-bar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: 4px 2px 6px; }
.result-bar h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-2); }

/* ---------- Animal grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pet { position: relative; }
.pet-link { display: block; border-radius: var(--r-l); }
.photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r-l); background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.photo img.ready { opacity: 1; }
.photo .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); }
.photo .ph .icon { width: 40px; height: 40px; }
.pet .badge { position: absolute; left: 8px; top: 8px; padding: 4px 9px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 650; }
.pet .heart { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; display: grid; place-items: center; }
.pet .heart span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: rgb(20 18 16 / .34); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .15s, background .15s; }
.pet .heart[aria-pressed="true"] span { background: var(--heart); }
.pet .heart:active span { transform: scale(.88); }
.pet h3 { margin: 9px 2px 0; font-size: 16px; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pet .meta { margin: 1px 2px 0; color: var(--ink-2); font-size: 13px; }
.pet p { margin: 5px 2px 0; color: var(--ink-2); font-size: 13px; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sentinel { height: 1px; }
.end-note { margin: 22px 0 0; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ---------- Skeleton ---------- */
.sk { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r-s); }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgb(255 255 255 / .35), transparent); animation: shimmer 1.3s infinite; }
.sk::after { background: linear-gradient(90deg, transparent, rgb(255 255 255 / .7), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-photo { aspect-ratio: 4 / 5; border-radius: var(--r-l); }
.sk-line { height: 14px; margin-top: 10px; }
.sk-line.short { width: 55%; }
.sk-hero { height: 220px; border-radius: var(--r-xl); }
.sk-tile { height: 104px; border-radius: var(--r-l); }

/* ---------- Lists ---------- */
.list { overflow: hidden; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-1); }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 14px 12px 16px; text-align: left; }
.row + .row { box-shadow: inset 0 1px 0 var(--line); }
.row .grow { flex: 1; min-width: 0; }
.row .chev { color: var(--ink-3); }
.row strong { display: block; font-size: 16px; font-weight: 550; line-height: 1.3; }
.row small { display: block; color: var(--ink-2); font-size: 13px; }
details.row { display: block; padding: 0; }
details summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px 12px 16px; list-style: none; cursor: pointer; font-size: 16px; font-weight: 550; line-height: 1.3; }
details summary::-webkit-details-marker { display: none; }
details summary .chev { margin-left: auto; transition: transform .2s; }
details[open] summary .chev { transform: rotate(90deg); }
details .answer { margin: -4px 16px 16px; color: var(--ink-2); font-size: 15px; white-space: pre-line; }

/* ---------- Program ---------- */
.timeline { display: grid; gap: 10px; }
.event { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 16px; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-1); }
.event time { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.event time small { display: block; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.event h3 { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 650; }
.event .where { display: flex; gap: 5px; align-items: flex-start; margin-top: 4px; color: var(--ink-2); font-size: 13px; }
.event p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.event.live { box-shadow: inset 0 0 0 2px var(--ok); }
.event.done { opacity: .55; }
.event.cancelled h3 { text-decoration: line-through; color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.status.live { color: var(--ok); }
.status.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.status.cancelled { color: var(--heart); }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Empty & error ---------- */
.empty { display: grid; justify-items: center; gap: 6px; padding: 36px 20px; text-align: center; }
.empty .art { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 8px; border-radius: 28px; background: var(--primary); color: var(--on-primary); transform: rotate(-4deg); }
.empty .art .icon { width: 34px; height: 34px; }
.empty h2 { margin: 0; font-size: 19px; letter-spacing: -.015em; }
.empty p { max-width: 300px; margin: 0 0 10px; color: var(--ink-2); }

/* ---------- Animal page ---------- */
.pet-hero { position: relative; }
.pet-hero .photo { aspect-ratio: 1; max-height: 62vh; width: 100%; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.pet-hero .photo::after { content: ""; position: absolute; inset: 0 0 auto; height: 96px; background: linear-gradient(rgb(0 0 0 / .32), transparent); pointer-events: none; }
.hero-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; gap: 8px; padding: calc(10px + var(--safe-top)) 12px 0; }
.hero-bar .spacer { flex: 1; }
.pet-body { max-width: 640px; margin: 0 auto; padding: 18px var(--gap) 0; }
.pet-body h1 { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.pet-body .meta { margin-top: 4px; color: var(--ink-2); font-size: 16px; }
.pet-body .chips { margin-top: 14px; }
.lead { margin: 18px 0 0; padding: 16px 18px; border-radius: var(--r-l); background: linear-gradient(160deg, #fff, #fffbea); box-shadow: var(--shadow-1); font-size: 17px; line-height: 1.45; letter-spacing: -.01em; }
.lead small { display: block; margin-bottom: 6px; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.checks { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.checks .icon-s { color: var(--ok); }
.story { margin-top: 22px; }
.about-text p { margin: 0; font-size: 16px; line-height: 1.55; white-space: pre-line; }
.about-text.clamped p { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.story h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.02em; }
.story p { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.55; white-space: pre-line; }
.story.clamped p { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.story .btn-ghost { min-height: 44px; padding: 0; margin-top: 2px; }
.note { margin: 22px 2px 0; color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; gap: 10px; max-width: 640px; margin: 0 auto; padding: 10px var(--gap) calc(10px + var(--safe-bottom)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); box-shadow: 0 -1px 0 var(--line); }
.cta-bar .btn-primary { flex: 1; }
.cta-bar .btn-secondary { width: 48px; padding: 0; }

/* ---------- Tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(6px + var(--safe-bottom)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 -1px 0 var(--line); }
@supports not (color: color-mix(in srgb, red, blue)) { .tabbar, .toolbar, .cta-bar { background: var(--surface); } }
.tabbar a { display: grid; justify-items: center; gap: 2px; min-height: 50px; padding-top: 2px; border-radius: 12px; color: var(--ink-2); font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a svg { box-sizing: content-box; padding: 3px 16px; border-radius: 999px; transition: background .2s; }
.tabbar a[aria-current="page"] svg { background: var(--primary); }
body[data-route="animal"] .tabbar { display: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + var(--safe-bottom) + 18px); z-index: 10; width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r-m); background: var(--ink); color: var(--surface); font-size: 15px; box-shadow: var(--shadow-2); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body[data-route="animal"] .toast { bottom: calc(84px + var(--safe-bottom)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.card-pad > .btn-ghost { min-height: 40px; padding: 0; margin-top: 4px; }
