:root {
  --red:      #da291c;
  --red-dark: #b31f14;
  --green:    #1a8a4a;
  --green-dk: #126938;
  --gold:     #ffc72c;

  --ink:      #101012;
  --ink-2:    #5c5c64;
  --ink-3:    #9a9aa4;
  --line:     rgba(16,16,18,.10);
  --surface:  #ffffff;
  --surface-2:#f4f4f6;
  --scrim:    rgba(16,16,18,.28);

  --shadow-s: 0 1px 2px rgba(16,16,18,.06), 0 4px 14px rgba(16,16,18,.09);
  --shadow-m: 0 2px 6px rgba(16,16,18,.07), 0 14px 40px rgba(16,16,18,.14);

  --r-pill: 999px;
  --r-card: 18px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --spring: cubic-bezier(.18,1.28,.42,1);

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* Light is the default. Dark is opt-in via the toggle, never automatic. */
:root[data-theme="dark"] {
    --ink:      #f3f3f5;
    --ink-2:    #a6a6b0;
    --ink-3:    #6e6e78;
    --line:     rgba(255,255,255,.12);
    --surface:  #191a1d;
    --surface-2:#232429;
    --scrim:    rgba(0,0,0,.5);
    --shadow-s: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.35);
    --shadow-m: 0 2px 6px rgba(0,0,0,.4), 0 14px 40px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: "Helvetica Neue", HelveticaNeue, Helvetica, -apple-system,
               "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.011em;
  color: var(--ink);
  background: var(--surface-2);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- map ---------- */

#map { position: fixed; inset: 0; background: var(--surface-2); z-index: 0; }

.leaflet-container { font: inherit; background: var(--surface-2); }

.leaflet-control-attribution {
  background: color-mix(in srgb, var(--surface) 80%, transparent) !important;
  color: var(--ink-3) !important;
  font-size: 10px !important;
  padding: 2px 7px !important;
  border-radius: var(--r-pill) 0 0 0;
  backdrop-filter: blur(8px);
}
.leaflet-control-attribution a { color: var(--ink-2) !important; }

.leaflet-control-zoom { border: 0 !important; box-shadow: var(--shadow-s) !important; border-radius: 14px !important; overflow: hidden; }
.leaflet-control-zoom a {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
  width: 38px !important; height: 38px !important;
  line-height: 36px !important;
  font-weight: 500 !important;
}
.leaflet-control-zoom a:hover { background: var(--surface-2) !important; }
@media (max-width: 720px) { .leaflet-control-zoom { display: none !important; } }

/* raster fallback (no WebGL): desaturate so the pins carry the colour */
#map.is-raster .leaflet-tile-pane {
  filter: grayscale(1) brightness(1.06) contrast(.9);
}
:root[data-theme="dark"] #map.is-raster .leaflet-tile-pane {
  filter: grayscale(1) invert(1) brightness(.86) contrast(.92);
}

/* ---------- pins ---------- */

.pin { position: relative; width: 26px; height: 34px; }

.pin__body {
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--red);
  box-shadow: 0 2px 5px rgba(16,16,18,.3);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.pin__dot {
  position: absolute; left: 9px; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  transition: transform .26s var(--spring);
}
.pin__check {
  position: absolute; left: 7.5px; top: 9px;
  width: 11px; height: 6px;
  border-left: 2.6px solid #fff;
  border-bottom: 2.6px solid #fff;
  transform: rotate(-45deg) scale(0);
  transform-origin: 50% 50%;
  transition: transform .32s var(--spring);
}

.pin--visited .pin__body { background: var(--green); }
.pin--visited .pin__dot  { transform: scale(0); }
.pin--visited .pin__check{ transform: rotate(-45deg) scale(1); }

.pin--sel .pin__body { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 16%, transparent), 0 4px 12px rgba(16,16,18,.35); }

.pin-marker { animation: pinDrop .42s var(--spring) backwards; }
@keyframes pinDrop {
  from { opacity: 0; transform: translate3d(0,-16px,0) scale(.5); }
  to   { opacity: 1; transform: none; }
}

.pin-marker.is-pop .pin__body { animation: pinPop .42s var(--spring); }
@keyframes pinPop {
  0%   { transform: rotate(-45deg) scale(1); }
  38%  { transform: rotate(-45deg) scale(1.38); }
  100% { transform: rotate(-45deg) scale(1); }
}

/* user location dot */
.me { width: 18px; height: 18px; }
.me__dot {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #2b7fff;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.35);
}
.me__halo {
  position: absolute; left: -13px; top: -13px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(43,127,255,.22);
  animation: halo 2.6s var(--ease) infinite;
}
@keyframes halo {
  0%   { transform: scale(.45); opacity: .85; }
  70%  { transform: scale(1);   opacity: 0; }
  100% { transform: scale(1);   opacity: 0; }
}

/* ---------- brand ---------- */

.brand {
  position: fixed; z-index: 500;
  top: calc(12px + var(--safe-t)); left: 12px;
}
.brand__btn {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 6px 0 14px;
  background: var(--surface);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-s);
  transition: transform .22s var(--spring);
}
.brand__btn:active { transform: scale(.96); }
.brand__mark { font-size: 16px; letter-spacing: -.02em; }
.brand__mark i { font-style: normal; color: var(--red); }
.brand__count {
  min-width: 28px; height: 28px; padding: 0 8px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  font-size: 13px; font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.brand__count.has { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }

/* ---------- progress ---------- */

.progress {
  position: fixed; z-index: 500;
  top: calc(12px + var(--safe-t));
  left: 50%; transform: translateX(-50%);
  width: min(420px, calc(100vw - 24px));
  padding: 11px 15px 12px;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-s);
  opacity: 1;
  transition: opacity .32s var(--ease), transform .38s var(--spring);
}
.progress[hidden-soft] { }
.progress.is-hidden {
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(-14px) scale(.96);
}
.progress__row { display: flex; align-items: baseline; gap: 10px; }
.progress__text {
  margin: 0; flex: 1 1 auto;
  font-size: 14px; letter-spacing: -.012em;
  color: var(--ink);
}
.progress__text b { font-weight: 500; }
.progress__text .dim { color: var(--ink-3); }
.progress__num {
  flex: 0 0 auto;
  font-size: 13px; font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}
.progress__track {
  margin-top: 9px; height: 5px; border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
}
.progress__fill {
  height: 100%; width: 0%;
  border-radius: 3px;
  background: var(--green);
  transition: width .7s var(--ease), background .4s var(--ease);
}
.progress.is-complete .progress__fill {
  background: linear-gradient(90deg, var(--green), var(--gold), var(--green));
  background-size: 220% 100%;
  animation: shine 2.4s var(--ease) infinite;
}
@keyframes shine { from { background-position: 140% 0; } to { background-position: -40% 0; } }

.progress.is-loading .progress__track { position: relative; }
.progress.is-loading .progress__track::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 12%, transparent), transparent);
  animation: sweep 1.15s linear infinite;
}
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

@media (max-width: 720px) {
  .progress {
    top: auto;
    bottom: calc(14px + var(--safe-b));
    width: calc(100vw - 24px);
  }
  .progress.is-hidden { transform: translateX(-50%) translateY(14px) scale(.96); }
  .progress.is-pushed { transform: translateX(-50%) translateY(-100%) scale(.96); opacity: 0; pointer-events: none; }
}

/* ---------- floating controls ---------- */

.controls {
  position: fixed; z-index: 500;
  right: 12px; bottom: calc(28px + var(--safe-b));
  display: flex; flex-direction: column; gap: 10px;
}
@media (max-width: 720px) {
  .controls { bottom: calc(92px + var(--safe-b)); }
}
.ctrl {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--surface);
  border-radius: 50%;
  box-shadow: var(--shadow-s);
  transition: transform .22s var(--spring), background .2s var(--ease);
}
.ctrl:active { transform: scale(.9); }
.ctrl svg { width: 21px; height: 21px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; }
.ctrl svg .ring { stroke-width: 1.5; opacity: .45; }
.ctrl.is-busy svg { animation: spin 1s linear infinite; }

/* the toggle shows the theme you'd switch *to* */
#themeBtn .ctrl__sun { display: none; }
#themeBtn .ctrl__moon { display: block; }
:root[data-theme="dark"] #themeBtn .ctrl__sun { display: block; }
:root[data-theme="dark"] #themeBtn .ctrl__moon { display: none; }
#themeBtn svg { animation: themeIn .34s var(--spring); }
@keyframes themeIn { from { transform: rotate(-70deg) scale(.4); opacity: 0; } }

/* ---------- scope outline ---------- */

.scope-outline {
  fill: var(--red);
  fill-opacity: .045;
  stroke: var(--red);
  stroke-opacity: .55;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 7 6;
  animation: outlineIn .55s var(--ease);
}
@keyframes outlineIn {
  from { stroke-opacity: 0; fill-opacity: 0; stroke-dashoffset: 26; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.mcmap-dots { position: absolute; left: 0; top: 0; pointer-events: none; transform-origin: 0 0; }

/* ---------- hint ---------- */

.hint {
  position: fixed; z-index: 480;
  left: 50%; transform: translateX(-50%);
  top: calc(84px + var(--safe-t));
  padding: 7px 14px;
  font-size: 12.5px; color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-s);
  animation: fadeIn .3s var(--ease);
}
@media (max-width: 720px) { .hint { top: calc(64px + var(--safe-t)); } }
@keyframes fadeIn { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } }

/* ---------- panel ---------- */

.panel {
  position: fixed; z-index: 600;
  top: 12px; right: 12px;
  width: 344px;
  max-height: calc(100vh - 24px);
  padding: 22px 22px calc(18px + var(--safe-b));
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-m);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(calc(100% + 20px));
  opacity: 0;
  visibility: hidden;
  transition: transform .42s var(--ease), opacity .3s var(--ease), visibility .42s;
}
.panel.is-open { transform: none; opacity: 1; visibility: visible; }

.panel__grab { display: none; }
.panel__close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2);
  transition: transform .2s var(--spring);
}
.panel__close:active { transform: scale(.88); }
.panel__close svg { width: 15px; height: 15px; fill: none; stroke: var(--ink-2); stroke-width: 1.9; stroke-linecap: round; }

.panel__head { padding-right: 40px; }
.panel__badge {
  display: inline-block;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 11.5px; letter-spacing: .01em;
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: var(--red);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.panel__badge.is-visited { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.panel__name {
  margin: 12px 0 0; font-size: 22px; font-weight: 500;
  letter-spacing: -.022em; line-height: 1.16;
}
.panel__addr { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); }

.stars { display: flex; gap: 4px; margin-top: 22px; }
.stars button {
  width: 38px; height: 38px; padding: 0;
  background: no-repeat center/26px 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.4l2.66 5.4 5.96.87-4.31 4.2 1.02 5.93L12 17l-5.33 2.8 1.02-5.93-4.31-4.2 5.96-.87z' fill='none' stroke='%239a9aa4' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform .22s var(--spring);
}
.stars button:active { transform: scale(.86); }
.stars button.on {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.4l2.66 5.4 5.96.87-4.31 4.2 1.02 5.93L12 17l-5.33 2.8 1.02-5.93-4.31-4.2 5.96-.87z' fill='%23ffc72c' stroke='%23ffc72c' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  animation: starPop .34s var(--spring);
}
@keyframes starPop { 0%{transform:scale(1)} 40%{transform:scale(1.3)} 100%{transform:scale(1)} }
.stars__hint { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); min-height: 18px; }

.visit {
  margin-top: 20px; width: 100%; height: 52px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--ink); color: var(--surface);
  border-radius: 14px;
  font-size: 15.5px; letter-spacing: -.01em;
  transition: transform .22s var(--spring), background .3s var(--ease), color .3s var(--ease);
}
.visit:active { transform: scale(.975); }
.visit.is-on { background: var(--green); color: #fff; }
.visit__check {
  width: 19px; height: 19px; display: grid; place-items: center;
  transform: scale(0); width: 0;
  transition: transform .3s var(--spring), width .3s var(--ease);
}
.visit.is-on .visit__check { transform: scale(1); width: 19px; }
.visit__check svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.maps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.maps__btn {
  height: 44px; display: grid; place-items: center;
  background: var(--surface-2);
  border-radius: 12px;
  font-size: 14px; color: var(--ink);
  transition: transform .2s var(--spring), background .2s var(--ease);
}
.maps__btn:active { transform: scale(.97); }

.facts { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.facts:empty { display: none; }
.facts div { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; font-size: 13px; }
.facts dt { color: var(--ink-3); flex: 0 0 auto; }
.facts dd { margin: 0; text-align: right; color: var(--ink-2); }

@media (max-width: 720px) {
  .panel {
    top: auto; left: 0; right: 0; bottom: 0;
    width: auto; max-height: 82vh;
    border-radius: 22px 22px 0 0;
    padding: 8px 20px calc(22px + var(--safe-b));
    transform: translateY(100%);
  }
  .panel.is-open { transform: none; }
  .panel__grab {
    display: block; width: 38px; height: 4px; margin: 4px auto 14px;
    border-radius: 2px; background: var(--line);
  }
  .panel__close { top: 16px; }
}

/* ---------- stats sheet ---------- */

.sheet {
  position: fixed; inset: 0; z-index: 700;
  display: grid; place-items: center;
  padding: 16px;
  background: var(--scrim);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s;
}
.sheet.is-open { opacity: 1; visibility: visible; }
.sheet__card {
  position: relative;
  width: min(380px, 100%);
  padding: 24px 22px 20px;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow-m);
  transform: translateY(14px) scale(.97);
  transition: transform .38s var(--spring);
}
.sheet.is-open .sheet__card { transform: none; }
.sheet__title { margin: 0 0 18px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.sheet__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet__grid div {
  padding: 14px; border-radius: 14px; background: var(--surface-2);
}
.sheet__grid b { display: block; font-size: 26px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sheet__grid span { font-size: 12.5px; color: var(--ink-3); }
.sheet__note { margin: 16px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; }
.sheet__reset {
  margin-top: 12px; width: 100%; height: 42px;
  border-radius: 12px; background: var(--surface-2);
  font-size: 14px; color: var(--red);
  transition: transform .2s var(--spring);
}
.sheet__reset:active { transform: scale(.97); }

/* ---------- intro ---------- */

.intro {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  padding: 20px;
  background: var(--surface);
  transition: opacity .5s var(--ease), visibility .5s;
}
.intro.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }

.intro__card { width: min(340px, 100%); text-align: center; }
.intro__pin {
  width: 44px; height: 44px; margin: 0 auto 22px; position: relative;
  animation: introDrop .8s var(--spring) both;
}
.intro__pin span {
  position: absolute; inset: 0;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--red);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--red) 34%, transparent);
}
.intro__pin::after {
  content: ""; position: absolute; left: 16px; top: 16px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--surface);
}
@keyframes introDrop {
  0%   { opacity: 0; transform: translateY(-40px) scale(.7); }
  100% { opacity: 1; transform: none; }
}

.intro__title { margin: 0; font-size: 34px; font-weight: 500; letter-spacing: -.035em; animation: rise .6s .1s var(--ease) both; }
.intro__title i { font-style: normal; color: var(--red); }
.intro__sub { margin: 10px 0 24px; font-size: 15px; color: var(--ink-2); line-height: 1.5; animation: rise .6s .18s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.intro__go {
  width: 100%; height: 52px; border-radius: 14px;
  background: var(--ink); color: var(--surface);
  font-size: 15.5px;
  animation: rise .6s .3s var(--ease) both;
  transition: transform .22s var(--spring);
}
.intro__go:active { transform: scale(.975); }
.intro__skip {
  margin-top: 12px; width: 100%; height: 40px;
  font-size: 14px; color: var(--ink-3);
  animation: rise .6s .36s var(--ease) both;
}

/* ---------- search ---------- */

.search {
  position: fixed; z-index: 520;
  top: calc(62px + var(--safe-t)); left: 12px;
  width: 260px;
}
.search__icon {
  position: absolute; left: 13px; top: 12px;
  width: 17px; height: 17px; pointer-events: none;
  fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round;
}
#searchInput {
  width: 100%; height: 41px;
  padding: 0 36px 0 38px;
  font: inherit; font-size: 14px; color: var(--ink);
  background: var(--surface);
  border: 0; border-radius: var(--r-pill);
  box-shadow: var(--shadow-s);
  outline: none;
  transition: box-shadow .25s var(--ease);
}
#searchInput::placeholder { color: var(--ink-3); }
#searchInput:focus { box-shadow: var(--shadow-m); }

.search__clear {
  position: absolute; right: 7px; top: 7px;
  width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2);
}
.search__clear svg { width: 12px; height: 12px; fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linecap: round; }

.search__results {
  list-style: none; margin: 8px 0 0; padding: 5px;
  max-height: min(52vh, 400px); overflow-y: auto;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-m);
  display: none;
  animation: resIn .22s var(--ease);
}
.search__results.is-open { display: block; }
@keyframes resIn { from { opacity: 0; transform: translateY(-6px); } }

.search__results li {
  padding: 8px 11px;
  border-radius: 10px;
  cursor: pointer;
  display: flex; align-items: baseline; gap: 8px;
  transition: background .14s var(--ease);
}
.search__results li:hover,
.search__results li.on { background: var(--surface-2); }
.search__results b { font-weight: 500; font-size: 14px; }
.search__results span { font-size: 11.5px; color: var(--ink-3); flex: 1 1 auto; }
.search__results em { font-style: normal; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.search__empty { padding: 10px 11px; font-size: 13px; color: var(--ink-3); }

@media (max-width: 720px) {
  .search { top: calc(60px + var(--safe-t)); left: 12px; right: 12px; width: auto; }
}

/* ---------- language switch ---------- */

.lang {
  display: flex;
  gap: 3px;
  padding: 3px;
  margin: 0 auto 20px;
  width: fit-content;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  animation: rise .6s .22s var(--ease) both;
}
.lang__opt {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  color: var(--ink-3);
  transition: color .2s var(--ease), background .28s var(--ease), transform .2s var(--spring);
}
.lang__opt:active { transform: scale(.95); }
.lang__opt.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-s);
}
.lang--sheet { margin: 16px auto 0; animation: none; }

/* ---------- toast ---------- */

.toast {
  position: fixed; z-index: 800;
  left: 50%; bottom: calc(24px + var(--safe-b));
  transform: translate(-50%, 20px);
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  background: var(--ink); color: var(--surface);
  border-radius: var(--r-pill);
  font-size: 13.5px;
  box-shadow: var(--shadow-m);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .4s var(--spring);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 720px) { .toast { bottom: calc(96px + var(--safe-b)); } }

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