/* PawCam shell screens (fe-shell): top bar, shelter, profile, adoption +
   going-home sequence, camera host / foster banner / link prompt, switcher,
   album, empty states. Tokens come from base.css. */

.page {
  min-height: 100vh;
  min-height: 100dvh;
  animation: view-in 0.35s var(--ease-out);
}

.page--cam {
  background: var(--bg);
}

/* ---- Top bar ----------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--safe-top);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
}

.topbar--warm {
  background: rgba(251, 246, 239, 0.84);
  box-shadow: 0 1px 0 var(--line);
}

.topbar--cam {
  background: rgba(11, 12, 14, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: var(--bar-h);
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 max(8px, var(--safe-right)) 0 max(14px, var(--safe-left));
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.bar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  min-width: 44px;
  padding: 0 10px;
  border-radius: 22px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}

.bar-link:hover {
  background: var(--chip);
}

.bar-link-text {
  display: none;
}

.bar-link--label .bar-link-text {
  display: inline;
}

.bar-link[aria-current="page"] {
  color: var(--accent-ink);
}

@media (min-width: 720px) {
  .bar-link-text {
    display: inline;
  }
  .bar-link {
    padding: 0 14px;
  }
}

.bar-back {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  margin-left: -8px;
  padding: 0 12px 0 4px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--fg);
  font-size: 16px;
  font-weight: 600;
}

.bar-back:hover {
  background: var(--chip);
}

.cam-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  max-width: 190px;
  margin-right: 2px;
  padding: 0 10px 0 5px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: var(--chip);
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.cam-pill:hover {
  border-color: var(--faint);
}

.cam-pill .thumb {
  width: 30px;
  height: 30px;
}

.cam-pill .icon {
  flex: none;
  opacity: 0.7;
}

.cam-pill-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cam-pill-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.cam-pill--link {
  padding-right: 12px;
  background: var(--card);
  box-shadow: var(--shadow-1);
  border-color: var(--line);
}

/* ---- Empty / info states ------------------------------------------------ */

.empty-state {
  min-height: calc(100dvh - var(--bar-h) - var(--safe-top));
  max-width: 540px;
  margin: 0 auto;
  padding: 32px 24px calc(56px + var(--safe-bottom));
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  margin-bottom: 4px;
}

.empty-title {
  font-size: clamp(26px, 7vw, 36px);
  line-height: 1.12;
  text-wrap: balance;
}

.empty-state--cam .empty-title {
  font-family: var(--font-display);
  font-weight: 600;
}

.empty-text {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  text-wrap: pretty;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.empty-card {
  margin-top: 20px;
  padding: 36px 24px;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

.empty-card .empty-title {
  font-size: 24px;
  font-weight: 700;
}

.empty-card .btn {
  margin-top: 6px;
}

/* ---- Shelter ----------------------------------------------------------- */

.shelter {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 18px 16px calc(40px + var(--safe-bottom));
}

.shelter-hero {
  display: grid;
  gap: 12px;
  padding: 10px 4px 22px;
  max-width: 720px;
}

.face-stack {
  display: flex;
  margin-bottom: 6px;
}

.face {
  width: 46px;
  height: 46px;
  margin-left: -12px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 4px 12px -4px rgba(80, 50, 20, 0.35);
}

.face:first-child {
  margin-left: 0;
}


.filters {
  display: flex;
  gap: 8px;
  margin: 0 -16px;
  padding: 4px 16px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* fade the right edge so the off-screen chips read as "scroll for more" */
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
}

@media (min-width: 720px) {
  .filters {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.filter-group + .filter-group {
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
}

.filter-label {
  margin-right: 2px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.result-count {
  min-height: 0;
  font-size: 14px;
  color: var(--muted);
}

.result-count:empty {
  display: none;
}

.dog-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 12px;
  margin-top: 8px;
}

@media (min-width: 720px) {
  .shelter {
    padding: 32px 28px calc(56px + var(--safe-bottom));
  }
  .dog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 20px;
  }
}

@media (min-width: 1040px) {
  .dog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dog-card {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
}

.dog-card-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transform: translateZ(0);
}

.dog-card-photo > .photo {
  position: absolute;
  inset: 0;
}

.dog-card-photo .badge {
  position: absolute;
  left: 8px;
  top: 8px;
}

a.dog-card:active .dog-card-photo {
  transform: scale(0.98);
  transition: transform 0.15s var(--ease);
}

@media (hover: hover) {
  a.dog-card:hover .photo img {
    transform: scale(1.035);
  }
}

.dog-card-body {
  padding: 10px 4px 0;
}

.dog-card-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.dog-card-breed {
  font-size: 14px;
  line-height: 1.3;
  color: var(--muted);
}

.dog-card-meta {
  margin-top: 1px;
  font-size: 13px;
  color: var(--muted);
}

.trait-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.dog-card.is-arriving .dog-card-photo {
  box-shadow: none;
  border: 1.5px dashed var(--line-strong);
}

.dog-card.is-arriving .dog-card-photo > .photo {
  background: repeating-linear-gradient(135deg, #f3e9dd 0 12px, #efe3d4 12px 24px);
}

.dog-card.is-arriving .dog-card-name {
  color: var(--muted);
}

.dog-card.is-more .dog-card-photo {
  background: rgba(255, 255, 255, 0.55);
}

.more-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted);
  text-wrap: balance;
}

.more-inner .icon {
  color: var(--accent);
  opacity: 0.75;
}

.grid-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 40px 16px;
  color: var(--muted);
  text-align: center;
}

.shelter-foot {
  max-width: 560px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---- Profile ----------------------------------------------------------- */

.profile {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 10px 16px 0;
}

.profile-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  transform: translateZ(0);
}

.profile-photo .photo {
  width: 100%;
  height: 100%;
}

.profile-info {
  padding: 24px 4px 0;
}

.profile-name {
  margin-top: 8px;
}

.profile-breed {
  margin-top: 4px;
  font-size: 18px;
  color: var(--muted);
}

.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.fact {
  padding: 10px 6px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-1);
  text-align: center;
}

.fact-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact-value {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.profile-section {
  margin-top: 30px;
}

.trait-cards {
  list-style: none;
  display: grid;
  gap: 10px;
}

.trait-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-1);
}

.trait-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.trait-name {
  font-size: 16px;
  font-weight: 700;
}

.trait-blurb {
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.bio {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.55;
  color: var(--fg);
  text-wrap: pretty;
}

.likes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.like {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: var(--card);
  box-shadow: var(--shadow-1);
  font-size: 15px;
  font-weight: 500;
}

.like .icon {
  flex: none;
  color: var(--accent);
}

.grownup-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.grownup-fig figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.grownup-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-1);
}

.grownup-arrow {
  color: var(--faint);
}

.grownup-note {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

.cta-bar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  margin: 30px -20px 0;
  padding: 26px 20px calc(14px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(251, 246, 239, 0) 0, rgba(251, 246, 239, 0.94) 20px, var(--bg) 34px);
}

.cta-note {
  margin-top: 8px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

@media (min-width: 900px) {
  .profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 56px;
    padding: 32px 32px 72px;
  }
  .profile-photo {
    position: sticky;
    top: calc(var(--bar-h) + var(--safe-top) + 28px);
  }
  .profile-info {
    padding-top: 8px;
  }
  .cta-bar {
    position: static;
    margin: 34px 0 0;
    padding: 0;
    background: none;
  }
  .cta-note {
    text-align: left;
  }
}

/* ---- Adoption ---------------------------------------------------------- */

.page--adopt {
  background: radial-gradient(130% 55% at 50% 0%, #fff1e2 0%, var(--bg) 62%);
}

.adopt-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: calc(var(--bar-h) + var(--safe-top));
  padding: var(--safe-top) 12px 0;
}

.adopt-bar .bar-back {
  justify-self: start;
  margin-left: 0;
}

.steps {
  display: flex;
  gap: 6px;
}

.step-dot {
  width: 24px;
  height: 5px;
  border-radius: 3px;
  background: var(--line-strong);
  transition: background-color 0.3s;
}

.step-dot.is-on {
  background: var(--accent-strong);
}

.adopt {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  padding: 4px 22px calc(32px + var(--safe-bottom));
  text-align: center;
}

.adopt-portrait {
  width: 172px;
  height: 172px;
  margin: 6px 0 10px;
  padding: 5px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #ffd6b0, #ff8a65, #ffc590, #ffe1c4, #ffd6b0);
  box-shadow: 0 22px 50px -20px rgba(212, 68, 31, 0.5);
  animation: portrait-in 0.7s var(--ease-out) both;
}

.adopt-portrait--sm {
  width: 132px;
  height: 132px;
}

.adopt-portrait .photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--bg);
}


.adopt-title {
  font-size: clamp(30px, 8.2vw, 44px);
}

.adopt-lede {
  max-width: 34ch;
}

.name-form {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  text-align: left;
}

.name-input {
  width: 100%;
  height: 66px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  box-shadow: var(--shadow-1);
  color: var(--fg);
  font: 600 27px/1 var(--font-display);
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.name-input:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 5px var(--accent-soft), var(--shadow-1);
}

.name-form .field-hint {
  text-align: center;
}

.commitment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(212, 68, 31, 0.14);
  font-size: 15px;
  line-height: 1.45;
  color: var(--fg);
}

.commitment .icon {
  flex: none;
  margin-top: 1px;
  color: var(--accent);
}

/* Certificate */

.adopt--papers {
  gap: 10px;
}

.certificate {
  width: 100%;
  margin: 12px 0 4px;
  padding: 9px;
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 0 34px 60px -32px rgba(90, 60, 30, 0.55), 0 2px 6px rgba(90, 60, 30, 0.08);
  transform: rotate(-0.6deg);
  animation: cert-in 0.8s var(--ease-out) both;
}

.cert-inner {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 22px 16px 16px;
  border-radius: 15px;
  border: 1.5px solid #ead8bf;
  outline: 1px solid #f2e5d3;
  outline-offset: -7px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 236, 214, 0.55), transparent 60%),
    repeating-linear-gradient(45deg, rgba(200, 160, 110, 0.035) 0 2px, transparent 2px 9px);
}

.cert-photo {
  width: 78px;
  height: 78px;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px -8px rgba(90, 60, 30, 0.55);
}

.cert-photo .photo {
  width: 100%;
  height: 100%;
}


.cert-org {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a0714a;
}

.cert-title {
  margin: 2px 0 10px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: #3a2a1e;
}

.cert-line {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: #8a735f;
}

.cert-name {
  max-width: 100%;
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 44px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent-ink);
}

.cert-detail {
  margin-bottom: 10px;
  font-size: 13px;
  color: #6f5a48;
}

.cert-forever {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: #3a2a1e;
}

.cert-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #e3cfb4;
}

.cert-no,
.cert-sign {
  display: grid;
  gap: 2px;
}

.cert-no {
  text-align: left;
}

.cert-sign {
  text-align: right;
}

.cert-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a08670;
}

.cert-value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #3a2a1e;
}

.cert-signature {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  color: #3a2a1e;
}

.cert-seal {
  width: 66px;
  height: 66px;
  filter: drop-shadow(0 5px 7px rgba(160, 60, 20, 0.28));
  animation: seal-in 0.6s var(--ease-out) 0.45s both;
}

.seal-edge {
  fill: var(--accent-strong);
}

.seal-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 1.4;
}

.seal-ring--thin {
  stroke-width: 0.8;
  stroke-dasharray: 1.6 2.2;
}

.seal-paw path,
.seal-paw ellipse {
  fill: #fff;
}

.adopt-actions {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-top: 16px;
}

/* ---- Going home -------------------------------------------------------- */

.gohome {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: #07080a;
  color: #fff;
}

.gohome-sky,
.gohome-sky > span,
.gohome-lights {
  position: absolute;
  inset: 0;
}

.sky-night {
  background: radial-gradient(130% 75% at 50% 112%, #3d2c52 0%, #1b1628 46%, #0b0a10 100%);
  transition: opacity 1.4s var(--ease);
}

.sky-dusk {
  opacity: 0;
  background: radial-gradient(130% 80% at 50% 118%, #ff9c5c 0%, #8a4250 34%, #231824 72%, #0f0c12 100%);
  transition: opacity 1.4s var(--ease);
}

.gohome-lights {
  overflow: hidden;
  transition: opacity 1.1s var(--ease);
}

.light {
  position: absolute;
  left: 0;
  border-radius: 50%;
  filter: blur(7px);
  animation: drift linear infinite;
  will-change: transform;
}

.gohome-glow {
  position: absolute;
  left: 50%;
  bottom: -38%;
  width: 150vmax;
  height: 90vmax;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 196, 128, 0.5), rgba(255, 160, 96, 0.14) 58%, transparent);
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}

.gohome[data-phase="arrive"] .sky-dusk {
  opacity: 1;
}

.gohome[data-phase="install"] .sky-dusk {
  opacity: 0.55;
}

.gohome[data-phase="arrive"] .gohome-glow,
.gohome[data-phase="install"] .gohome-glow {
  opacity: 1;
}

.gohome:not([data-phase="drive"]) .gohome-lights {
  opacity: 0;
}

.gohome[data-phase="connect"] .sky-night,
.gohome[data-phase="connect"] .sky-dusk,
.gohome[data-phase="connect"] .gohome-glow {
  opacity: 0;
}

.gohome-skip {
  position: absolute;
  z-index: 3;
  top: calc(var(--safe-top) + 12px);
  right: calc(var(--safe-right) + 14px);
  height: 38px;
  padding: 0 18px;
  border-radius: 19px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.gohome-skip:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

.gohome-stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 0;
  padding-top: calc(var(--safe-top) + 64px);
}

.gohome-stage > * {
  grid-area: 1 / 1;
}

.gohome-window {
  position: relative;
  width: min(60vw, 280px, 38vh);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 34px 80px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: bob 1.15s ease-in-out infinite;
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), filter 1s var(--ease);
}

.gohome-window .photo {
  width: 100%;
  height: 100%;
}

.window-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0) 64%, rgba(255, 255, 255, 0.08) 100%);
  transition: opacity 1s;
}

.gohome[data-phase="arrive"] .gohome-window {
  animation: none;
  transform: scale(1.04);
  filter: sepia(0.18) saturate(1.1);
}

.gohome[data-phase="arrive"] .window-glare {
  opacity: 0;
}

.gohome[data-phase="install"] .gohome-window,
.gohome[data-phase="connect"] .gohome-window {
  animation: none;
  opacity: 0;
  transform: scale(0.9);
}

.gohome-device {
  position: relative;
  display: grid;
  place-items: center;
  width: 156px;
  height: 156px;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.6s var(--ease) 0.15s, transform 0.7s var(--ease-out) 0.15s;
}

.gohome[data-phase="install"] .gohome-device {
  opacity: 1;
  transform: none;
}

.device-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track,
.ring-fill {
  fill: none;
  stroke-width: 3;
}

.ring-track {
  stroke: rgba(255, 255, 255, 0.12);
}

.ring-fill {
  stroke: #ffcf9a;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.gohome[data-phase="install"] .ring-fill {
  animation: ring-fill 1.9s var(--ease) 0.25s forwards;
}

.device-body {
  position: relative;
  width: 74px;
  height: 98px;
  border-radius: 37px;
  background: linear-gradient(160deg, #fbfaf7 0%, #dedad2 100%);
  box-shadow: inset 0 -7px 12px rgba(0, 0, 0, 0.12), 0 20px 34px -12px rgba(0, 0, 0, 0.7);
}

.device-lens {
  position: absolute;
  left: 50%;
  top: 21px;
  width: 38px;
  height: 38px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 33%, #7a8db2 0%, #243049 30%, #080b12 68%);
  box-shadow: 0 0 0 4px #1d1f24, 0 0 0 5px rgba(255, 255, 255, 0.25);
}

.device-led {
  position: absolute;
  left: 50%;
  bottom: 17px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #ffb13b;
  box-shadow: 0 0 8px #ffb13b;
}

.gohome[data-phase="install"] .device-led {
  animation: led-blink 0.5s steps(2, jump-none) 4, led-ready 0.3s ease 2s forwards;
}

.gohome-feed {
  position: relative;
  display: grid;
  place-items: center;
  width: min(86vw, 540px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #0b0c0e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 34px 80px -24px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease-out);
}

.gohome[data-phase="connect"] .gohome-feed {
  opacity: 1;
  transform: none;
}

.feed-noise {
  position: absolute;
  inset: -50%;
  background-image:
    repeating-radial-gradient(circle at 17% 32%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
  animation: noise 0.3s steps(3) infinite;
}

.feed-bars {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.feed-bars i {
  width: 4px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.feed-bars i:nth-child(1) {
  height: 25%;
}
.feed-bars i:nth-child(2) {
  height: 50%;
}
.feed-bars i:nth-child(3) {
  height: 75%;
}
.feed-bars i:nth-child(4) {
  height: 100%;
}

.gohome[data-phase="connect"] .feed-bars i {
  animation: bar-on 0.25s ease forwards;
}
.gohome[data-phase="connect"] .feed-bars i:nth-child(1) {
  animation-delay: 0.3s;
}
.gohome[data-phase="connect"] .feed-bars i:nth-child(2) {
  animation-delay: 0.6s;
}
.gohome[data-phase="connect"] .feed-bars i:nth-child(3) {
  animation-delay: 0.9s;
}
.gohome[data-phase="connect"] .feed-bars i:nth-child(4) {
  animation-delay: 1.2s;
}

.feed-label {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.82);
  transition: opacity 0.3s;
}

.feed-live {
  position: absolute;
  top: 12px;
  left: 12px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.gohome.is-live .feed-live {
  opacity: 1;
  transform: none;
}

.gohome.is-live .feed-label {
  opacity: 0;
}

.gohome-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 18px;
  min-height: 250px;
  padding: 20px 24px calc(34px + var(--safe-bottom));
  text-align: center;
  align-content: start;
}

.gohome-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 46px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  transition: opacity 0.22s var(--ease), transform 0.3s var(--ease);
}

.gohome-sub {
  max-width: 32ch;
  margin: 8px auto 0;
  font-size: 17px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.74);
  text-wrap: balance;
  transition: opacity 0.22s var(--ease), transform 0.3s var(--ease);
}

.gohome .is-swapping {
  opacity: 0;
  transform: translateY(6px);
}

.gohome-checks {
  list-style: none;
  display: none;
  gap: 9px;
  justify-items: start;
}

.gohome[data-phase="install"] .gohome-checks {
  display: grid;
}

.gohome-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}

.check-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: transparent;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}

.gohome-check.is-done {
  color: #fff;
}

.gohome-check.is-done .check-mark {
  background: #34c759;
  border-color: #34c759;
  color: #fff;
  transform: scale(1.08);
}

.gohome-route {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 360px);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.gohome[data-phase="install"] .gohome-route,
.gohome[data-phase="connect"] .gohome-route {
  display: none;
}

.route-end--home {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.4s;
}

.gohome[data-phase="arrive"] .route-end--home {
  color: #ffd2a6;
}

.route-track {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
}

.route-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffcf9a, #ff8a5c);
}

.route-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 207, 154, 0.3), 0 0 16px rgba(255, 207, 154, 0.9);
}

.gohome[data-phase="drive"] .route-fill {
  animation: route-fill 3.4s linear forwards;
}

.gohome[data-phase="drive"] .route-dot {
  animation: route-dot 3.4s linear forwards;
}

.gohome[data-phase="arrive"] .route-fill {
  width: 100%;
  animation: route-fill-end 0.9s var(--ease-out) both;
}

.gohome[data-phase="arrive"] .route-dot {
  left: 100%;
  animation: route-dot-end 0.9s var(--ease-out) both;
}

@media (min-height: 760px) {
  .gohome-bottom {
    padding-bottom: calc(52px + var(--safe-bottom));
  }
}

.gohome.is-reduced .light,
.gohome.is-reduced .gohome-window,
.gohome.is-reduced .feed-noise {
  animation: none !important;
}

.gohome.is-reduced .light {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .gohome .light,
  .gohome .gohome-window,
  .gohome .feed-noise,
  .gohome .route-fill,
  .gohome .route-dot,
  .certificate,
  .cert-seal,
  .adopt-portrait,
  .page {
    animation: none !important;
  }
  .gohome[data-phase="drive"] .route-fill {
    width: 70%;
  }
  .gohome[data-phase="drive"] .route-dot {
    left: 70%;
  }
}

/* ---- Camera host: placeholder, foster banner, link prompt --------------- */

.cam-main {
  max-width: var(--page-max);
  margin: 0 auto;
}

.cam-host {
  position: relative;
}

.cam-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  aspect-ratio: 4 / 5;
  margin: 12px;
  overflow: hidden;
  border-radius: 22px;
  background: #111316;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

@media (min-width: 720px) {
  .cam-placeholder {
    aspect-ratio: 16 / 9;
    margin: 20px 24px;
  }
}

.cam-placeholder-bg {
  position: absolute;
  inset: -24px;
  filter: blur(26px) brightness(0.42) saturate(0.85);
}

.cam-placeholder-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.cam-placeholder-hud {
  position: absolute;
  top: 14px;
  left: 16px;
}

.cam-placeholder-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.cam-placeholder-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

.cam-placeholder-title {
  font-size: 19px;
  font-weight: 700;
}

.cam-placeholder-text {
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
}

.foster {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 12px 12px 0;
}

.foster-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 176, 136, 0.22);
  background: linear-gradient(135deg, rgba(255, 164, 112, 0.17) 0%, rgba(255, 90, 54, 0.07) 48%, rgba(255, 255, 255, 0.03) 100%);
}

.foster-face {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 196, 160, 0.55);
}


.foster .kicker--warm {
  color: #ffb899;
  font-size: 11px;
}

.foster-lede {
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.84);
  text-wrap: pretty;
}

.foster-lede strong {
  color: #fff;
}

.foster-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.foster-actions .btn {
  min-height: 46px;
  padding: 0 12px;
  font-size: 15px;
}

@media (min-width: 720px) {
  .foster {
    padding: 16px 24px 0;
  }
  .foster-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 12px 14px;
  }
  .foster-actions {
    grid-column: auto;
    display: flex;
  }
}

/* In this layout fe-cam's side panel (cam.css, same query) already shows
   "Adopt <name>" + "Meet all the dogs" — don't repeat them in the banner. */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .foster-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .foster-actions {
    display: none;
  }
}

.link-prompt {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - var(--bar-h) - var(--safe-top));
  padding: 24px 20px calc(32px + var(--safe-bottom));
  background: radial-gradient(90% 50% at 50% 0%, rgba(255, 90, 54, 0.1), transparent 70%);
}

.link-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 420px);
  text-align: center;
}

.link-photo {
  position: relative;
  width: 172px;
  aspect-ratio: 3 / 4;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.link-photo .photo {
  width: 100%;
  height: 100%;
}

.link-photo .live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.link-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

.link-meta {
  font-size: 15px;
  color: var(--muted);
  text-wrap: balance;
}

.link-actions {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
}

.notice {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 90, 54, 0.12);
  color: #ffb8a6;
  font-size: 14px;
  line-height: 1.45;
}

/* ---- Camera switcher sheet ---------------------------------------------- */

.sheet--cams .dialog-body {
  padding: 10px 16px 18px;
}

.cam-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 2px 0 16px;
}

.cam-row {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card-2);
}

.cam-row.is-active {
  border-color: rgba(255, 90, 54, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 90, 54, 0.2) inset;
}

.cam-row-head {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-right: 6px;
}

.cam-row-main {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 10px 6px 10px 10px;
  border: 0;
  border-radius: 18px;
  background: none;
  text-align: left;
}

.cam-row-text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.cam-row-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cam-row-name {
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cam-row-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ff7a70;
}

.cam-row-live .live-dot {
  width: 6px;
  height: 6px;
}

.cam-row-sub {
  text-wrap: pretty;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.cam-actions {
  display: grid;
  margin: 0 10px 10px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--chip);
  animation: pop-in 0.2s var(--ease-out);
}

.action {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.action + .action {
  box-shadow: 0 -1px 0 var(--line);
}

.action:hover {
  background: rgba(255, 255, 255, 0.05);
}

.action .icon {
  flex: none;
  opacity: 0.8;
}

.action--danger {
  color: var(--danger);
}

.cam-rename {
  display: grid;
  gap: 6px;
  padding: 0 10px 12px;
}

.cam-rename-row {
  display: flex;
  gap: 8px;
}

.cam-rename-row .field-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  font-size: 16px;
}

.cam-rename-row .btn {
  min-height: 46px;
  padding: 0 14px;
}

.cams-footer {
  display: grid;
  gap: 12px;
}

.cams-footer .fineprint {
  text-align: center;
}

/* ---- Album ------------------------------------------------------------- */

.album {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px calc(48px + var(--safe-bottom));
}

.album-head {
  display: grid;
  gap: 10px;
  padding: 8px 4px 6px;
}

.album-dog {
  margin-top: 22px;
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-1);
}

.album-dog-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.album-dog-title {
  min-width: 0;
}

.album-dog-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.album-dog-meta {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.growth {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.growth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.growth-row .icon {
  color: var(--accent);
}

.growth-when {
  color: var(--accent-ink);
  white-space: nowrap;
}

.stage-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.stage-card {
  margin: 0;
}

.stage-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: var(--chip);
  transform: translateZ(0);
}

.stage-photo > .photo {
  position: absolute;
  inset: 0;
}

.stage-card.is-locked .photo img {
  filter: blur(14px) saturate(0.75) brightness(1.05);
  transform: scale(1.18);
}

.stage-card.is-locked .photo-missing {
  display: none;
}

.stage-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(42, 33, 28, 0.2), rgba(42, 33, 28, 0.5));
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.stage-card.is-current .stage-photo {
  box-shadow: 0 0 0 3px var(--accent), 0 10px 22px -10px rgba(212, 68, 31, 0.6);
}

.stage-cap {
  display: grid;
  margin-top: 8px;
  text-align: center;
}

.stage-name {
  font-size: 14px;
  font-weight: 700;
}

.stage-when {
  font-size: 12px;
  color: var(--muted);
}

.stage-card.is-current .stage-when {
  color: var(--accent-ink);
  font-weight: 600;
}

.snaps {
  margin-top: 24px;
}

.snaps-title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}

.snap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

@media (min-width: 720px) {
  .album {
    padding: 36px 28px calc(64px + var(--safe-bottom));
  }
  .album-dog {
    padding: 24px;
  }
  .snap-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .stage-row {
    gap: 16px;
  }
}

.snap {
  appearance: none;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--chip);
}

.snap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

@media (hover: hover) {
  .snap:hover img {
    transform: scale(1.04);
  }
}

.snaps-empty {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.snaps-empty .icon {
  flex: none;
  margin-top: 1px;
}

.album-dog--orphans .section-title {
  font-size: 17px;
  margin-bottom: 4px;
}

.album-dog--orphans .fineprint {
  margin-bottom: 12px;
}

/* Snapshot viewer (full-screen dialog) */

.viewer {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  background: rgba(8, 9, 11, 0.97);
  color: #fff;
}

.viewer[open] {
  animation: pop-in 0.22s var(--ease-out);
}

.viewer .dialog-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  height: 100%;
  padding: calc(var(--safe-top) + 8px) 12px calc(var(--safe-bottom) + 18px);
}

.viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-left: 6px;
}

.viewer-title {
  display: grid;
}

.viewer-name {
  font-weight: 700;
}

.viewer-date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.viewer .icon-btn {
  color: #fff;
}

.viewer .icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.viewer-img {
  display: grid;
  place-items: center;
  min-height: 0;
}

.viewer-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.viewer-caption {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.viewer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ---- Keyframes --------------------------------------------------------- */

@keyframes drift {
  from {
    transform: translateX(110vw);
  }
  to {
    transform: translateX(-30vw);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-0.35deg);
  }
  50% {
    transform: translateY(-3px) rotate(0.35deg);
  }
}

@keyframes ring-fill {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes led-blink {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.25;
  }
}

@keyframes led-ready {
  to {
    background: #34c759;
    box-shadow: 0 0 10px #34c759;
    opacity: 1;
  }
}

@keyframes noise {
  0% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(-3%, 2%);
  }
  66% {
    transform: translate(2%, -3%);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes bar-on {
  to {
    background: #fff;
  }
}

@keyframes route-fill {
  from {
    width: 0;
  }
  to {
    width: 76%;
  }
}

@keyframes route-dot {
  from {
    left: 0;
  }
  to {
    left: 76%;
  }
}

@keyframes route-fill-end {
  from {
    width: 76%;
  }
  to {
    width: 100%;
  }
}

@keyframes route-dot-end {
  from {
    left: 76%;
  }
  to {
    left: 100%;
  }
}

@keyframes portrait-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cert-in {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(1.2deg);
  }
  to {
    opacity: 1;
    transform: rotate(-0.6deg);
  }
}

@keyframes seal-in {
  from {
    opacity: 0;
    transform: scale(1.5) rotate(-18deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Save-link nudge (camera-host.js) reuses the foster banner layout, but its
   buttons must stay visible in the desktop side-panel layout too. */
.foster--save .foster-inner {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .foster--save .foster-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .foster--save .foster-actions {
    display: grid;
    grid-column: auto;
    grid-template-columns: auto auto;
  }
}
