/* Vetto app */
html, body { height: 100%; }
body {
  background:
    radial-gradient(120% 70% at 85% -10%, rgba(30, 120, 255, 0.22), transparent 60%),
    radial-gradient(90% 60% at -10% 110%, rgba(155, 92, 255, 0.16), transparent 60%),
    var(--ink-950);
  background-attachment: fixed;
  overscroll-behavior: none;
}

.shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

/* top bar */
.bar {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 4px;
  view-transition-name: bar;
}
.bar[hidden] { display: none; }
.bar__logo {
  width: 44px; height: 44px; padding: 2px;
  border: 0; background: none; border-radius: 13px; cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  transition: transform 160ms var(--ease-out);
}
.bar__logo img { width: 40px; height: 40px; border-radius: 11px; pointer-events: none; }
.bar__logo:active { transform: scale(0.92); }
.bar__title {
  text-align: center;
  font: 600 0.95rem/1 var(--font-ui);
  color: var(--text-2);
}
.bar__icon {
  width: 44px; height: 44px; border: 0; border-radius: 14px;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(150, 180, 255, 0.06); color: var(--text);
  justify-self: end;
}
.bar__icon svg { width: 22px; height: 22px; }

/* screens */
#screens { flex: 1; display: flex; flex-direction: column; }
.screen {
  display: none;
  flex: 1;
  flex-direction: column;
  gap: 22px;
  padding: 18px 22px 28px;
  view-transition-name: screen;
}
.screen.is-active { display: flex; }

.stack { display: grid; gap: 8px; }
.stack--center { text-align: center; justify-items: center; }
.h-screen { font-size: clamp(1.6rem, 6.4vw, 2rem); font-weight: 700; }
.lead { color: var(--text-2); font-size: 1.02rem; max-width: 36ch; }
.stack--center .lead { margin-inline: auto; }
.actions { margin-top: auto; display: grid; gap: 12px; padding-top: 8px; }
.fineprint { color: var(--text-3); font-size: 0.82rem; text-align: center; }
.fineprint--left { text-align: start; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--text-3); vertical-align: middle; }
.dot--ok { background: var(--ok); }
.btn--amber { --bg: var(--amber-ink); --fg: #fff; box-shadow: none; }

/* splash */
.screen--splash { align-items: center; justify-content: center; gap: 18px; min-height: 100dvh; }
.splash__logo { width: 112px; height: 112px; border-radius: 30px; box-shadow: var(--shadow-2); animation: splashIn 900ms var(--ease-out) both; }
.splash__motto { font: 500 1.05rem/1.3 var(--font-display); color: var(--text-2); animation: fadeUp 700ms 350ms var(--ease-out) both; }
@keyframes splashIn { from { transform: scale(0.82); filter: blur(8px); opacity: 0; } to { transform: none; filter: none; opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* login */
.screen--login { justify-content: center; gap: 34px; min-height: 100dvh; }
.login__brand { display: grid; justify-items: center; gap: 10px; text-align: center; }
.login__logo { width: 84px; height: 84px; border-radius: 24px; box-shadow: var(--shadow-2); }
.login__word { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.login__motto { color: var(--text-2); font-family: var(--font-display); font-weight: 500; }
.login__form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: 0.9rem; color: var(--text-2); font-weight: 500; }
.field__input {
  font: 500 1.08rem/1 var(--font-ui);
  color: var(--text);
  background: rgba(10, 20, 64, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  min-height: 56px;
  padding: 0 18px;
  text-align: right;
  transition: border-color 160ms, box-shadow 160ms;
}
.field__input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(30, 200, 255, 0.16); }
.form-error { color: #ffc2c8; font-size: 0.92rem; }
.shake { animation: shake 380ms var(--ease-out); }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.steps li {
  font-size: 0.78rem; color: var(--text-3); font-weight: 500;
  padding-top: 10px; position: relative;
}
.steps li::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: 4px;
  background: rgba(150, 180, 255, 0.14);
}
.steps li.is-on { color: var(--text); }
.steps li.is-on::before { background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.steps li.is-done::before { background: var(--cyan-deep); }

/* radar / pairing */
.radar { position: relative; width: 220px; height: 220px; margin: 6px auto; display: grid; place-items: center; }
.radar__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(30, 200, 255, 0.45);
  opacity: 0; transform: scale(0.35);
}
.radar.is-scanning .radar__ring { animation: ping 2.4s var(--ease-out) infinite; }
.radar.is-scanning .radar__ring:nth-child(2) { animation-delay: 0.8s; }
.radar.is-scanning .radar__ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes ping { 0% { opacity: 0.9; transform: scale(0.35); } 100% { opacity: 0; transform: scale(1); } }
.radar__core {
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--ink-700), var(--ink-900));
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-1);
  color: var(--cyan);
  transition: background 400ms var(--ease-out), color 400ms;
}
.radar__core svg { width: 38px; height: 38px; }
.radar.is-found .radar__core { background: var(--cyan); color: var(--cyan-ink); }
.pair-status { text-align: center; min-height: 3.2em; }
.pair-status__line { font-weight: 600; font-size: 1.08rem; }
.pair-status__hint { color: var(--amber); font-size: 0.9rem; margin-top: 6px; }
.found {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(28, 45, 120, 0.55), rgba(14, 26, 79, 0.55));
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-1);
  animation: rise 520ms var(--ease-out) both;
}
.found__scooter { width: 96px; flex: none; }
.found__name { font: 700 1.04rem/1.25 var(--font-display); }
.found__meta { color: var(--text-2); font-size: 0.86rem; margin-top: 4px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

/* consent */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; color: var(--text-2); }
.facts svg {
  width: 40px; height: 40px; padding: 9px; border-radius: 12px;
  background: rgba(30, 200, 255, 0.1); color: var(--cyan);
}
.check { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 0.95rem; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--line-strong); color: transparent;
  transition: background 160ms, color 160ms, box-shadow 160ms;
}
.check__box svg { width: 18px; height: 18px; }
.check input:checked + .check__box { background: var(--cyan); color: var(--cyan-ink); box-shadow: none; }
.check input:focus-visible + .check__box { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* doc */
.doc-pick, .doc-cap, .doc-result { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.doc-pick[hidden], .doc-cap[hidden], .doc-result[hidden] { display: none; }
.route {
  display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 14px;
  text-align: start; color: var(--text);
  padding: 18px; border: 0; border-radius: var(--r-lg); cursor: pointer;
  background: rgba(14, 26, 79, 0.6);
  box-shadow: inset 0 0 0 1px var(--line);
  font: inherit;
  transition: transform 160ms var(--ease-out), background 200ms;
}
.route:active { transform: scale(0.985); }
.route > svg:first-child { width: 44px; height: 44px; padding: 10px; border-radius: 13px; background: rgba(150, 180, 255, 0.08); color: var(--text-2); }
.route--primary { background: linear-gradient(180deg, rgba(28, 45, 120, 0.85), rgba(19, 33, 94, 0.85)); box-shadow: inset 0 0 0 1px rgba(30, 200, 255, 0.45), var(--shadow-1); }
.route--primary > svg:first-child { background: var(--cyan); color: var(--cyan-ink); }
.route__text { display: grid; gap: 2px; }
.route__text strong { font-size: 1.06rem; }
.route__text span { color: var(--text-2); font-size: 0.88rem; }
.route__go { width: 20px; height: 20px; color: var(--text-3); }

.docframe {
  position: relative; aspect-ratio: 1.586; width: 100%;
  border-radius: var(--r-md); overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(150, 180, 255, 0.04) 0 10px, transparent 10px 20px), rgba(6, 12, 43, 0.8);
  box-shadow: inset 0 0 0 1px var(--line);
}
.docframe img { width: 100%; height: 100%; object-fit: cover; }
.docframe__empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--text-3); font-size: 0.92rem; }
.docframe__empty svg { width: 54px; height: 54px; color: var(--text-2); opacity: 0.6; }
.docframe__c { position: absolute; width: 26px; height: 26px; border: 3px solid var(--cyan); }
.docframe__c--tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.docframe__c--tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.docframe__c--bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.docframe__c--br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.docframe__sweep {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(30, 200, 255, 0.0) 40%, rgba(30, 200, 255, 0.35) 50%, rgba(30, 200, 255, 0) 51%, transparent 100%);
  background-size: 100% 220%;
  animation: sweep 1.4s var(--ease-in-out) infinite;
  mix-blend-mode: screen;
}
@keyframes sweep { from { background-position: 0 120%; } to { background-position: 0 -20%; } }
.scan-line { text-align: center; color: var(--text-2); min-height: 1.5em; font-weight: 500; }

.idcard {
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(28, 45, 120, 0.9), rgba(10, 20, 64, 0.95));
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-2);
  padding: 18px; display: grid; gap: 16px;
  animation: rise 560ms var(--ease-out) both;
}
.idcard__head { display: flex; align-items: center; gap: 12px; }
.idcard__badge { width: 40px; height: 40px; border-radius: 50%; background: var(--ok); color: #003322; display: grid; place-items: center; flex: none; }
.idcard__badge svg { width: 22px; height: 22px; }
.idcard__kind { font: 700 1.08rem/1.2 var(--font-display); }
.idcard__sub { color: var(--text-3); font-size: 0.84rem; }
.idcard__body { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; }
.idcard__face { width: 88px; height: 110px; border-radius: 14px; background: var(--ink-850); box-shadow: inset 0 0 0 1px var(--line); object-fit: cover; }
.idcard__data { margin: 0; display: grid; gap: 8px; }
.idcard__data div { display: grid; gap: 1px; }
.idcard__data dt { color: var(--text-3); font-size: 0.78rem; }
.idcard__data dd { margin: 0; font-weight: 600; }
.masked { letter-spacing: 0.12em; color: var(--text-2); text-align: right; }
.verdicts { list-style: none; margin: 0; padding: 14px 0 0; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.verdicts li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.verdicts svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(62, 227, 168, 0.16); color: var(--ok); }
.verdicts li.is-warn svg { background: rgba(255, 178, 36, 0.16); color: var(--amber); }

/* face / key window */
.screen--face { gap: 18px; }
.key { position: relative; width: min(78vw, 300px); aspect-ratio: 100 / 110; margin: 4px auto 0; }
.key__window {
  position: absolute; inset: 0;
  clip-path: url(#keyclip);
  background: radial-gradient(circle at 50% 35%, var(--ink-700), var(--ink-900));
}
.key__window video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.key__veil {
  position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(160deg, var(--cyan), var(--violet));
  transition: opacity 420ms var(--ease-out);
}
.key.is-match .key__veil { opacity: 1; }
.key.is-fail .key__veil { opacity: 1; background: linear-gradient(160deg, var(--amber), var(--amber-2)); }
.key__lock {
  position: absolute; width: 30%; left: 35%; top: 30%;
  color: var(--cyan-ink); opacity: 0; transform: scale(0.6);
  transition: opacity 360ms 120ms var(--ease-out), transform 520ms 120ms var(--ease-out);
}
.key.is-match .key__lock, .key.is-fail .key__lock { opacity: 1; transform: none; }
.key.is-fail .key__lock { color: var(--amber-ink); }
.key__ring { position: absolute; inset: -4%; width: 108%; height: 108%; overflow: visible; }
.key__ring path { fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.key__ring .key__track { stroke: rgba(150, 180, 255, 0.2); stroke-width: 3; }
.key__ring .key__progress {
  stroke: url(#g-key); stroke-width: 5;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset 600ms var(--ease-out);
}
.key.is-searching .key__track { animation: breathe 1.8s var(--ease-in-out) infinite; }
@keyframes breathe { 50% { stroke: rgba(30, 200, 255, 0.55); } }
.key.is-fail .key__progress { stroke: var(--amber); }
.face-status { text-align: center; min-height: 3.4em; }
.face-status__line { font-weight: 600; font-size: 1.12rem; }
.face-status__score { margin-top: 4px; color: var(--cyan); font: 600 0.95rem/1.3 var(--font-display); }

/* home */
.screen--home { gap: 18px; }
.scooter {
  border-radius: var(--r-xl);
  padding: 20px 20px 16px;
  background: linear-gradient(170deg, rgba(28, 45, 120, 0.75), rgba(10, 20, 64, 0.85));
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2);
}
.scooter__top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.scooter__owner { color: var(--text-2); font-size: 0.9rem; }
.scooter__name { font-size: 1.22rem; font-weight: 700; margin-top: 2px; text-align: right; }
.scooter__art { margin: 10px auto 4px; width: 88%; }
.scooter__stats { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.scooter__stats dt { color: var(--text-3); font-size: 0.76rem; }
.scooter__stats dd { margin: 2px 0 0; font: 700 1.05rem/1.2 var(--font-display); }
.scooter__stats dd.ok { font-family: var(--font-ui); font-size: 0.95rem; display: flex; align-items: center; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 0.86rem; font-weight: 600; white-space: nowrap; }
.pill svg { width: 16px; height: 16px; }
.pill--locked { background: rgba(150, 180, 255, 0.1); color: var(--text-2); }
.pill--live { background: var(--cyan); color: var(--cyan-ink); }

.slide {
  position: relative; height: 68px; border-radius: 999px;
  background: rgba(10, 20, 64, 0.85);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  display: grid; place-items: center; overflow: hidden;
  touch-action: none; user-select: none; cursor: grab;
}
.slide__text { font-weight: 600; color: var(--text-2); padding-inline-end: 40px; animation: nudge 2.4s var(--ease-in-out) infinite; }
@keyframes nudge { 0%, 100% { opacity: 0.55; transform: translateX(0); } 50% { opacity: 1; transform: translateX(-6px); } }
.slide__thumb {
  position: absolute; top: 6px; right: 6px;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(160deg, var(--cyan), var(--violet));
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(1, 6, 30, 0.5);
  transition: transform 360ms var(--ease-out);
  will-change: transform;
}
.slide__thumb svg { width: 26px; height: 26px; }
.slide.is-dragging .slide__thumb { transition: none; }

.activity { display: grid; gap: 10px; }
.activity__title { font: 600 0.95rem/1 var(--font-ui); color: var(--text-2); }
.activity__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.activity__list li {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: var(--r-md);
  background: rgba(14, 26, 79, 0.55); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.92rem;
}
.activity__list svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(30, 200, 255, 0.12); color: var(--cyan); }
.activity__list li.is-block svg { background: rgba(255, 178, 36, 0.14); color: var(--amber); }
.activity__list time { color: var(--text-3); font-size: 0.8rem; }
.activity__empty { color: var(--text-3); font-size: 0.9rem; }

/* unlocked drench */
.screen--unlocked {
  align-items: center; justify-content: center; text-align: center; gap: 14px;
  background: linear-gradient(165deg, #2ad4ff, #1e9bff 55%, #7b5cff);
  color: var(--cyan-ink);
  min-height: 100dvh; margin: 0;
}
.burst { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.25); box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.12); animation: pop 640ms var(--ease-out) both; }
.burst__lock { width: 78px; height: 78px; color: #00243a; overflow: visible; }
.burst__shackle { transform-origin: 16px 10.5px; animation: shackle 700ms 260ms var(--ease-out) both; }
@keyframes shackle { from { transform: none; } to { transform: translateY(-3px) rotate(-28deg); } }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.unlocked__title { font-size: 2.4rem; font-weight: 800; animation: fadeUp 600ms 200ms var(--ease-out) both; }
.unlocked__sub { font-weight: 600; opacity: 0.85; animation: fadeUp 600ms 320ms var(--ease-out) both; }
.unlocked__motto { margin-top: 18px; font: 600 1.1rem/1.3 var(--font-display); animation: fadeUp 600ms 520ms var(--ease-out) both; }

/* blocked drench */
.screen--blocked {
  align-items: center; text-align: center; justify-content: center; gap: 16px;
  background: linear-gradient(165deg, #ffc23d, #ff9f1c 60%, #ff7a1a);
  color: var(--amber-ink); min-height: 100dvh;
}
.blocked__icon { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; background: rgba(43, 26, 0, 0.12); animation: pop 520ms var(--ease-out) both, knock 520ms 520ms var(--ease-out); }
.blocked__icon svg { width: 64px; height: 64px; }
@keyframes knock { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.blocked__title { font-size: 2.3rem; font-weight: 800; }
.blocked__reason { font-size: 1.12rem; font-weight: 600; max-width: 30ch; }
.blocked__facts { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; font-weight: 500; }
.blocked__facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-inline-end: 10px; vertical-align: middle; }
.screen--blocked .actions { width: 100%; }

/* ride */
.screen--ride { align-items: center; text-align: center; gap: 16px; }
.ride__label { color: var(--cyan); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ride__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.ride__time { font-size: 3.6rem; font-weight: 800; letter-spacing: -0.03em; }
.gauge { position: relative; width: 240px; }
.gauge path { transition: stroke-dashoffset 900ms var(--ease-out); }
.gauge__value { position: absolute; inset: auto 0 6px; display: grid; justify-items: center; font: 800 2.4rem/1 var(--font-display); }
.gauge__value small { font: 500 0.82rem/1.4 var(--font-ui); color: var(--text-2); }
.ride__banner {
  width: 100%; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--amber); color: var(--amber-ink); font-weight: 600; text-align: start;
  animation: rise 420ms var(--ease-out) both;
}
.ride__list { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 10px; text-align: start; }
.ride__list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; color: var(--text-2); font-size: 0.94rem; }
.ride__list svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(150, 180, 255, 0.08); color: var(--text); }
.screen--ride .actions { width: 100%; }

/* sheets */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; }
.sheet[hidden] { display: none; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(2, 5, 20, 0.55); backdrop-filter: blur(4px); animation: fadeIn 240ms var(--ease-out) both; }
.sheet__panel {
  position: relative; width: 100%; max-width: 480px; margin: 0 auto;
  background: var(--ink-900); border-radius: 28px 28px 0 0;
  box-shadow: inset 0 1px 0 var(--line-strong), 0 -20px 60px rgba(0, 0, 0, 0.5);
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  display: grid; gap: 12px;
  animation: sheetUp 420ms var(--ease-out) both;
}
.sheet.is-closing .sheet__panel { animation: sheetDown 260ms var(--ease-in-out) both; }
.sheet.is-closing .sheet__scrim { animation: fadeOut 260ms both; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.sheet__grab { width: 40px; height: 5px; border-radius: 5px; background: var(--line-strong); margin: 0 auto 6px; }
.menu { display: grid; }
.menu a, .menu button {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 6px; border: 0; background: none; color: var(--text);
  font: 500 1.02rem/1 var(--font-ui); text-decoration: none; cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.menu a:last-child, .menu button:last-child { border-bottom: 0; }
.menu svg { width: 22px; height: 22px; color: var(--text-2); }

.panel__title { font-size: 1.1rem; }
.panel__engine { color: var(--text-2); font-size: 0.88rem; }
.panel__hint { color: var(--text-3); font-size: 0.82rem; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 14px; background: rgba(150, 180, 255, 0.08); }
.seg button { border: 0; background: none; color: var(--text-2); font: 600 0.92rem/1 var(--font-ui); min-height: 42px; border-radius: 10px; cursor: pointer; transition: background 200ms, color 200ms; }
.seg button.is-on { background: var(--ink-700); color: var(--text); box-shadow: var(--shadow-1); }
.toggle { display: flex; align-items: center; gap: 12px; font-size: 0.94rem; color: var(--text-2); padding: 6px 2px; }
.toggle input { width: 22px; height: 22px; accent-color: var(--cyan); }

/* toast */
.toast {
  position: fixed; inset: auto 16px calc(18px + env(safe-area-inset-bottom)); z-index: 60;
  max-width: 448px; margin: 0 auto;
  padding: 14px 18px; border-radius: 16px;
  background: rgba(19, 33, 94, 0.96); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-2);
  font-weight: 500; text-align: center;
  animation: rise 360ms var(--ease-out) both;
}

/* view transitions */
::view-transition-old(screen) { animation: vtOut 220ms var(--ease-in-out) both; }
::view-transition-new(screen) { animation: vtIn 420ms var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; transform: scale(0.985); filter: blur(2px); } }
@keyframes vtIn { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
html.vt-back ::view-transition-new(screen) { animation-name: vtInBack; }
@keyframes vtInBack { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(screen), ::view-transition-new(screen) { animation: none; }
  .slide__text { animation: none; opacity: 1; }
}

/* ===== v3 micro-interactions ===== */
.screen.is-active .facts li,
.screen.is-active .activity__list li,
.screen.is-active .verdicts li,
.screen.is-active .ride__list li { animation: rise 520ms var(--ease-out) both; }
.screen.is-active .facts li:nth-child(2), .screen.is-active .activity__list li:nth-child(2), .screen.is-active .verdicts li:nth-child(2), .screen.is-active .ride__list li:nth-child(2) { animation-delay: 70ms; }
.screen.is-active .facts li:nth-child(3), .screen.is-active .activity__list li:nth-child(3), .screen.is-active .verdicts li:nth-child(3), .screen.is-active .ride__list li:nth-child(3) { animation-delay: 140ms; }
.screen.is-active .facts li:nth-child(4), .screen.is-active .activity__list li:nth-child(4) { animation-delay: 210ms; }
.screen.is-active .activity__list li:nth-child(n+5) { animation-delay: 260ms; }
.scooter__art { animation: hover 5s var(--ease-in-out) infinite; }
@keyframes hover { 50% { transform: translateY(-4px); } }
.screen--home.is-active .scooter { animation: rise 600ms var(--ease-out) both; }
.screen--home.is-active .slide { animation: rise 600ms 120ms var(--ease-out) both; }
@media (hover: hover) {
  .route:hover { background: rgba(28, 45, 120, 0.75); }
  .route:hover .route__go { transform: translateX(-4px); color: var(--text); }
  .activity__list li:hover { background: rgba(28, 45, 120, 0.6); }
  .menu a:hover, .menu button:hover { color: var(--cyan); }
}
.route__go { transition: transform 300ms var(--ease-out), color 200ms; }
.activity__list li { transition: background 240ms; }
.field__input:hover { border-color: rgba(150, 180, 255, 0.4); }
@media (prefers-reduced-motion: reduce) { .scooter__art { animation: none; } }
