/* Ekef El Tounes v1.1, built for safety. One map, one shutter, the country playing live, in Derja and in French.
   House design law: a state is a word, a dot, a wash or light; no outlined cards or chips, no stripes down a side,
   no icons in tinted squares, no rules under rows, no pills behind words. Two typefaces drawn for Arabic and Latin
   together: Kufam (a Kufic design, the script tradition of Kairouan) for display, Readex Pro for reading. Motion has
   a reason (the camera lives inside the shutter, a capture lands where it was filmed) and leaves faster than it came.
   ADDED BY Claude (Opus 5.5) 2026-10-20. */

@font-face { font-family: "Readex"; src: url("/safe/fonts/readex.woff2") format("woff2"); font-weight: 160 700; font-display: swap; }
@font-face { font-family: "Kufam"; src: url("/safe/fonts/kufam.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --ink: #070a10;
  --ink-2: #0d121b;
  --glass: rgba(11, 15, 23, 0.86);   /* quiet even where the blur is off (low-power modes, some web views) */
  --text: #f3f5f8;
  --muted: #a3acba;
  --faint: #687386;
  --red: #e70013;
  --red-wash: rgba(231, 0, 19, 0.16);
  --amber: #ffb833;
  --wash: rgba(255, 255, 255, 0.055);
  --wash-2: rgba(255, 255, 255, 0.09);
  --wash-3: rgba(255, 255, 255, 0.14);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ui: "Readex", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Kufam", "Readex", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --lift: 0 18px 50px rgba(2, 4, 9, 0.55);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font: 400 16px/1.45 var(--ui);
  overflow: hidden; overscroll-behavior: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html[dir="rtl"] body { line-height: 1.6; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
.hidden { display: none !important; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 12px; }
h2, h3 { text-wrap: balance; }
.lead, .fine, .card-caption { text-wrap: pretty; }

/* the map is its own stacking level: whatever it draws (markers included) stays inside it */
#map { position: fixed; inset: 0; z-index: 0; isolation: isolate; }
.maplibregl-ctrl-attrib { background: rgba(7, 10, 16, 0.6) !important; color: var(--faint) !important; font-size: 10px; }
.maplibregl-ctrl-attrib a { color: var(--muted) !important; }
.maplibregl-ctrl-bottom-right, .maplibregl-ctrl-bottom-left { bottom: calc(var(--safe-b) + 150px) !important; }

/* the map is read through two soft washes, never through boxes */
.wash { position: fixed; left: 0; right: 0; z-index: 15; pointer-events: none; }
.wash-top { top: 0; height: calc(var(--safe-t) + 112px); background: linear-gradient(180deg, rgba(7, 10, 16, .82), rgba(7, 10, 16, 0)); }
.wash-bottom { bottom: 0; height: calc(var(--safe-b) + 220px); background: linear-gradient(0deg, rgba(7, 10, 16, .9) 18%, rgba(7, 10, 16, 0)); }

/* ---------------------------------------------------------------- the opening */
#opening { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--ink);
  transition: background-color .5s var(--ease-out), opacity .4s var(--ease-out); }
#opening.handing { background-color: rgba(7, 10, 16, 0); }
#opening.gone { opacity: 0; pointer-events: none; }
#opening-map { position: absolute; top: 9vh; left: 0; width: 100vw; height: 66vh; will-change: transform; }
#opening-govs path { fill: var(--red); fill-opacity: 0; stroke: var(--red); stroke-width: .28; stroke-linejoin: round; }
#opening.handing #opening-govs path { transition: stroke .5s var(--ease-out); stroke: rgba(29, 37, 52, .9); }
.opening-text { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-b) + 12vh); text-align: center; }
.opening-word { font: 800 15px/1 var(--display); letter-spacing: .32em; opacity: 0; animation: rise .5s var(--ease-out) .55s forwards; }
.opening-line { margin-top: 12px; color: var(--muted); font-size: 16px; opacity: 0; animation: rise .5s var(--ease-out) .8s forwards; }
#opening.handing .opening-text { transition: opacity .25s var(--ease-out); opacity: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- top bar */
#top { position: fixed; z-index: 20; top: calc(var(--safe-t) + 8px); inset-inline: 10px; display: flex; align-items: center;
  gap: 4px; pointer-events: none; }
#top > * { pointer-events: auto; }
.grow { flex: 1; pointer-events: none !important; }
.brand { flex: none; display: flex; align-items: center; gap: 9px; height: 44px; padding-inline: 8px; }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.brand-word { font: 800 13px/1 var(--display); letter-spacing: .16em; white-space: nowrap; direction: ltr; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.live-count { display: flex; align-items: center; gap: 7px; height: 44px; padding-inline: 8px; font-size: 13px; font-weight: 500;
  white-space: nowrap; font-variant-numeric: tabular-nums; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: breath 2.4s ease-in-out infinite; }
@keyframes breath { 50% { opacity: .3; } }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  transition: transform .14s var(--ease-out), opacity .14s var(--ease-out); }
.icon-btn:active { transform: scale(.92); opacity: .7; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .55)); }

/* ---------------------------------------------------------------- the dock and the shutter */
#dock { position: fixed; z-index: 20; left: 0; right: 0; bottom: calc(var(--safe-b) + 18px); display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center; padding-inline: 22px; pointer-events: none; }
#dock > * { pointer-events: auto; }
.dock-side { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px;
  font-size: 12.5px; font-weight: 500; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); transition: transform .14s var(--ease-out); }
.dock-side:active { transform: scale(.94); }
.dock-side > svg { width: 28px; height: 28px; fill: var(--text); filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .55)); }
.sos-disc { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--red);
  font: 800 14px/1 var(--display); letter-spacing: .06em; direction: ltr; box-shadow: 0 8px 24px rgba(231, 0, 19, .35); }
.dock-side.sos { gap: 5px; }
.dock-side.sos > span:last-child { margin-top: -2px; }
.shutter { position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5); touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform .16s var(--ease-out); }
.shutter:active { transform: scale(.95); }
.shutter-core { width: 64px; height: 64px; border-radius: 50%; background: #fff;
  transition: transform .18s var(--ease-out), background-color .2s var(--ease-out), border-radius .2s var(--ease-out); }
.shutter.big { width: 96px; height: 96px; background: rgba(255, 255, 255, .2); }
.shutter.big .shutter-core { width: 74px; height: 74px; }
.shutter.recording .shutter-core { background: var(--red); transform: scale(.6); border-radius: 18px; }
.shutter .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.shutter .ring circle { fill: none; stroke: var(--red); stroke-width: 5; stroke-dasharray: 289; stroke-dashoffset: 289; }
.hint { position: fixed; z-index: 19; left: 0; right: 0; bottom: calc(var(--safe-b) + 116px); padding-inline: 24px; text-align: center;
  font-size: 13px; color: var(--muted); text-shadow: 0 1px 8px rgba(0, 0, 0, .8); transition: opacity .5s var(--ease-out); pointer-events: none; }
.hint.gone { opacity: 0; }

/* ---------------------------------------------------------------- full screens */
.screen { position: fixed; inset: 0; z-index: 40; background: #05070b; }
#viewfinder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#viewfinder.front { transform: scaleX(-1); }
.cam-top { position: absolute; top: calc(var(--safe-t) + 8px); inset-inline: 8px; display: flex; align-items: center; gap: 6px; }
.cam-where { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; font-size: 13px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.cam-where span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.where-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.cam-where[data-state="wait"] .where-dot { animation: breath 1.2s ease-in-out infinite; }
.cam-where[data-state="ok"] .where-dot { background: #fff; }
.cam-where[data-state="bad"] .where-dot { background: var(--red); }
.cam-where[data-state="bad"] { color: #ffd0d4; }
.cam-bottom { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-b) + 30px); display: grid; place-items: center; }
.rec { position: absolute; top: calc(var(--safe-t) + 62px); left: 50%; transform: translateX(-50%); display: flex; align-items: center;
  gap: 8px; font: 600 15px/1 var(--ui); font-variant-numeric: tabular-nums; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); direction: ltr; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: breath 1s infinite; }

.review-media { position: absolute; inset: 0 0 auto 0; height: 50%; background: #05070b; overflow: hidden; }
.review-media img, .review-media video { width: 100%; height: 100%; object-fit: cover; }
.sheet { background: var(--glass); backdrop-filter: blur(28px) saturate(1.25); -webkit-backdrop-filter: blur(28px) saturate(1.25);
  border-radius: 28px 28px 0 0; padding: 22px 20px calc(var(--safe-b) + 16px); box-shadow: 0 -20px 60px rgba(0, 0, 0, .5); }
.review-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 64%; overflow-y: auto;
  animation: up .34s var(--ease-drawer); }
.sheet h2 { margin: 0 0 14px; font: 700 24px/1.2 var(--display); letter-spacing: -.01em; }
html[dir="rtl"] .sheet h2 { letter-spacing: 0; font-size: 25px; }
.sheet h3 { margin: 18px 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.sheet h3:first-child { margin-top: 0; }

/* the eight kinds: a word and its glyph; the chosen one lights in its own colour */
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.kind { display: flex; align-items: center; gap: 10px; min-height: 50px; padding-inline: 12px; border-radius: 16px;
  background: var(--wash); font-size: 15px; font-weight: 500; color: var(--text); text-align: start;
  opacity: 0; animation: rise .32s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 30ms);
  transition: background-color .16s var(--ease-out), color .16s var(--ease-out), transform .12s var(--ease-out); }
.kind:active { transform: scale(.97); }
.kind svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--kc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kind[aria-checked="true"] { background: var(--wash-3); background: color-mix(in srgb, var(--kc) 24%, transparent); color: var(--kc); }
.kinds:has(.kind[aria-checked="true"]) .kind:not([aria-checked="true"]) { color: var(--muted); }

.field { width: 100%; margin: 12px 0 0; padding: 14px 15px; border-radius: 15px; border: 0; background: var(--wash-2);
  color: var(--text); font: inherit; caret-color: var(--red); transition: background-color .16s var(--ease-out); }
.field:focus { background: var(--wash-3); outline: none; }
.field::placeholder { color: var(--faint); }
.primary { display: block; width: 100%; margin-top: 12px; min-height: 54px; padding: 14px; border-radius: 18px;
  background: var(--kc, var(--red)); color: #fff; font: 700 16px/1.2 var(--display);
  transition: transform .14s var(--ease-out), background-color .2s var(--ease-out), opacity .2s var(--ease-out); }
html[dir="rtl"] .primary { font-size: 17px; }
.primary[data-light="1"] { color: #15110a; }
.primary:active { transform: scale(.97); }
.primary:disabled { background: var(--wash-2); color: var(--faint); }
.secondary { display: block; width: 100%; margin-top: 10px; min-height: 50px; padding: 13px; border-radius: 18px; background: var(--wash-2);
  font-weight: 600; transition: transform .14s var(--ease-out); }
.secondary:active { transform: scale(.97); }
.text { display: block; width: 100%; margin-top: 8px; padding: 12px; color: var(--muted); font-size: 15px; }
.text.inline { width: auto; margin: 0; padding: 8px 4px; color: var(--text); font-weight: 600; }
.fine { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.lead { margin: 0 0 8px; color: var(--muted); }
.error { min-height: 1.2em; margin: 8px 0 0; color: #ffc6cc; font-size: 14px; }
.field-label { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }

.modal { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto;
  animation: up .32s var(--ease-drawer); box-shadow: 0 0 0 100vmax rgba(2, 3, 6, .5), 0 -20px 60px rgba(0, 0, 0, .5); }
.modal.out { animation: down .19s var(--ease-out) forwards; }
@media (min-width: 720px) { .modal { left: calc(50% - 220px); right: auto; width: 440px; bottom: 24px; border-radius: 28px; }
  .modal.out { animation: fade-out .19s var(--ease-out) forwards; } }
@keyframes up { from { transform: translateY(48px); opacity: 0; } }
@keyframes down { to { transform: translateY(36px); opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

/* ---------------------------------------------------------------- the live player */
body.playing #top, body.playing #dock, body.playing #hint, body.playing .wash { display: none; }
#player { background: transparent; }
.player-track { position: absolute; inset: 0; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; }
.player-track::-webkit-scrollbar { display: none; }
.card { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center;
  padding: calc(var(--safe-t) + 64px) 22px calc(var(--safe-b) + 92px); }
.card-media { position: relative; width: min(100%, 460px); height: 100%; border-radius: 26px; overflow: hidden; background: #05070b;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7); }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; }
.card-media img.kb { animation: kb 9s var(--ease-out) both; }
@keyframes kb { from { transform: scale(1.08); } to { transform: scale(1); } }
.card-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 11, .86)); }
.card-meta > * { opacity: 0; transform: translateY(6px); }
.card.on .card-meta > * { animation: rise .36s var(--ease-out) forwards; }
.card.on .card-meta > :nth-child(2) { animation-delay: 50ms; }
.card.on .card-meta > :nth-child(3) { animation-delay: 100ms; }
.card.on .card-meta > :nth-child(4) { animation-delay: 150ms; }
.card-kind { display: flex; align-items: center; gap: 9px; font: 700 23px/1.15 var(--display); }
.card-kind .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--kc, var(--red)); }
.card-where { margin-top: 4px; color: #dde3eb; font-size: 14px; }
.card-trust { display: flex; align-items: center; gap: 9px; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.card-trust .dots { display: flex; gap: 4px; direction: ltr; }
.card-trust .w { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.card-trust.ok { color: #fff; }
.card-trust.ok .w { background: var(--kc, #fff); }
.card-caption { margin-top: 9px; font-size: 15px; }
.card-actions { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.card-actions button { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; transition: transform .14s var(--ease-out); }
.card-actions button:active { transform: scale(.9); }
.card-actions svg { width: 23px; height: 23px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .7)); }
.card-sound { position: absolute; inset-inline-start: 12px; top: 12px; display: flex; align-items: center; gap: 6px; padding: 6px;
  font-size: 12.5px; font-weight: 500; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.card-sound svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linejoin: round;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .7)); }
.player-top { position: absolute; top: calc(var(--safe-t) + 8px); inset-inline: 8px; display: flex; align-items: center; gap: 6px; z-index: 2; }
.scope { flex: 1; display: flex; justify-content: center; gap: 20px; font-weight: 600; }
.scope button { color: var(--muted); text-shadow: 0 1px 8px rgba(0, 0, 0, .8); padding: 10px 2px; white-space: nowrap; font-size: 15px;
  transition: color .16s var(--ease-out); }
.scope button.scope-on { color: #fff; }
#player-auto.on svg { fill: var(--red); stroke: var(--red); }
.player-empty { position: absolute; inset-inline: 32px; top: 50%; transform: translateY(-50%); text-align: center;
  font: 600 18px/1.4 var(--display); color: var(--text); text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }

/* ---------------------------------------------------------------- lists */
.langs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
#me-out, #me-in { margin-top: 24px; }
.lang { display: flex; align-items: center; gap: 12px; min-height: 52px; padding-inline: 14px; border-radius: 16px; background: var(--wash);
  font-size: 16px; font-weight: 500; text-align: start; transition: background-color .16s var(--ease-out), transform .12s var(--ease-out); }
.lang:active { transform: scale(.98); }
.lang .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--wash-3); }
.lang[aria-checked="true"] { background: var(--wash-3); }
.lang[aria-checked="true"] .dot { background: var(--red); }
.me-list { display: flex; flex-direction: column; gap: 8px; }
.me-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--wash); }
.me-item img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: #05070b; }
.me-item .t { flex: 1; min-width: 0; font-size: 14.5px; }
.me-item .t .dot { display: inline-block; width: 8px; height: 8px; margin-inline-end: 7px; border-radius: 50%; background: var(--kc, var(--red)); }
.me-item .s { font-size: 12.5px; color: var(--muted); }
.me-empty { padding: 6px 2px 2px; color: var(--muted); }
.me-list.small .me-item { padding: 9px 12px; }
.links { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }
.links a { color: var(--muted); text-decoration: none; }
.call { display: flex; align-items: center; gap: 16px; margin-top: 8px; min-height: 60px; padding-inline: 16px; border-radius: 18px;
  background: var(--wash); color: var(--text); text-decoration: none; font-size: 17px; font-weight: 600; transition: transform .12s var(--ease-out); }
.call:active { transform: scale(.98); }
.call-num { min-width: 58px; font: 800 27px/1 var(--display); color: var(--red); font-variant-numeric: tabular-nums; direction: ltr; }
.layer-list, .pulse-list { display: flex; flex-direction: column; gap: 6px; }
.layer { display: flex; align-items: center; gap: 12px; min-height: 50px; padding-inline: 14px; border-radius: 16px; background: var(--wash); text-align: start; }
.layer .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lc, #fff); opacity: .3; transition: opacity .16s var(--ease-out); }
.layer[aria-pressed="true"] .dot { opacity: 1; }
.layer[aria-pressed="true"] { background: var(--wash-2); }
.layer .name { flex: 1; }
.layer .state { font-size: 13px; color: var(--muted); }
.pulse { min-height: 48px; padding-inline: 14px; border-radius: 16px; background: var(--wash); text-align: start; transition: transform .12s var(--ease-out); }
.pulse:active { transform: scale(.98); }

/* ---------------------------------------------------------------- map markers */
/* a marker is placed by the map's own transform and position: never set either on it (FIXED BY Claude (Opus 5.5)
   2026-10-20: a position: relative here put every picture a screen-width away in right-to-left pages) */
.thumb { width: 46px; height: 46px; border-radius: 13px; overflow: hidden; background: #05070b; box-shadow: 0 6px 20px rgba(0, 0, 0, .6);
  cursor: pointer; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; animation: land .26s var(--ease-out); }
.thumb .dot { position: absolute; inset-inline-end: 4px; bottom: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--kc, var(--red)); }
@keyframes land { from { transform: scale(.9); opacity: 0; } }
/* your own capture while the faces are hidden: your picture, blurred, breathing in its kind's light */
.pending-pin { width: 38px; height: 38px; border-radius: 50%; background: #fff center / cover no-repeat;
  box-shadow: 0 0 0 0 var(--kc, #fff), 0 8px 24px rgba(0, 0, 0, .6); filter: blur(1.6px) saturate(.6);
  animation: wait 1.6s ease-in-out infinite; }
@keyframes wait { 50% { box-shadow: 0 0 22px 4px var(--kc, #fff), 0 8px 24px rgba(0, 0, 0, .6); opacity: .82; } }
.flight { position: fixed; z-index: 70; left: 0; top: 0; width: 132px; height: 132px; border-radius: 50%; pointer-events: none;
  background: #fff center / cover no-repeat; box-shadow: 0 18px 48px rgba(0, 0, 0, .6); will-change: transform; }

.toast { position: fixed; z-index: 95; left: 50%; bottom: calc(var(--safe-b) + 128px); max-width: min(88vw, 420px); padding: 12px 16px;
  border-radius: 18px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font-size: 14.5px; text-align: center; box-shadow: var(--lift);
  opacity: 0; transform: translate(-50%, 10px); transition: opacity .16s var(--ease-out), transform .16s var(--ease-out); }
.toast.in { opacity: 1; transform: translate(-50%, 0); transition-duration: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; }
  .kind, .card-meta > * { opacity: 1; transform: none; }
}
