:root {
  color-scheme: only light;
  --stage-width: 402;
  --stage-height: 874;
  --bg: #f3ead9;
  --surface: #ffffff;
  --ink: #1c2f27;
  --muted: #5b5b52;
  --brand: #5c7357;
  --accent: #b8502b;
  --beige: var(--bg);
  --terracotta: var(--accent);
  --forest: var(--ink);
  --moss: var(--brand);
  --gray: #e8e3da;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 6px 16px rgb(28 49 39 / 0.1);
  --shadow-raised: 0 12px 28px rgb(28 49 39 / 0.18);
  --bottom-nav-height: 88px;
  --bottom-nav-bottom: 10px;
  --bottom-nav-clearance: calc(var(--bottom-nav-height) + var(--bottom-nav-bottom) + 16px + env(safe-area-inset-bottom));
  --stage-scale: 1;
}

* {
  box-sizing: border-box;
}

html,
body,
.mobile-shell,
.screen {
  color-scheme: only light;
}

button,
input {
  color-scheme: only light;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #c05a32;
  outline-offset: 3px;
}

button.tap-feedback {
  transform: scale(0.96);
}

.hidden {
  display: none !important;
}

.absolute {
  position: absolute;
}

.pointer-events-none {
  pointer-events: none;
}

.inset-0 {
  inset: 0;
}

.left-\[-2px\] {
  left: -2px;
}

.left-\[16px\] {
  left: 16px;
}

.left-\[40px\] {
  left: 40px;
}

.left-\[41px\] {
  left: 41px;
}

.top-\[239px\] {
  top: 239px;
}

.top-\[322px\] {
  top: 322px;
}

.top-\[445px\] {
  top: 445px;
}

.top-\[545px\] {
  top: 545px;
}

.right-\[15px\] {
  right: 15px;
}

.bottom-\[12px\] {
  bottom: 12px;
}

.h-\[40px\] {
  height: 40px;
}

.h-\[41px\] {
  height: 41px;
}

.h-\[44px\] {
  height: 44px;
}

.h-\[208px\] {
  height: 208px;
}

.h-\[698px\] {
  height: 698px;
}

.w-\[42px\] {
  width: 42px;
}

.w-\[49px\] {
  width: 49px;
}

.w-\[60px\] {
  width: 60px;
}

.w-\[370px\] {
  width: 370px;
}

.w-\[404px\] {
  width: 404px;
}

.size-\[24px\] {
  width: 24px;
  height: 24px;
}

.size-\[30px\] {
  width: 30px;
  height: 30px;
}

.max-w-none {
  max-width: none;
}

.shrink-0 {
  flex-shrink: 0;
}

.object-cover {
  object-fit: cover;
}

.pr-\[52px\] {
  padding-right: 52px;
}

.font-inter {
  font-family: Inter, system-ui, sans-serif;
}

.text-\[20px\] {
  font-size: 20px;
}

.leading-none {
  line-height: 1;
}

.text-\[\#7b7772\] {
  color: #7b7772;
}

.bg-buscafe-beige {
  background: var(--beige);
}

.bg-buscafe-terracotta {
  background: var(--terracotta);
}

.bg-white {
  background: #ffffff;
}

html,
body {
  min-height: 100%;
}

body {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  overflow-x: hidden;
  padding: max(24px, env(safe-area-inset-top)) env(safe-area-inset-right)
    max(24px, env(safe-area-inset-bottom)) env(safe-area-inset-left);
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}

.is-android-native body {
  padding: 0;
  background: var(--bg);
}

.is-android-native .mobile-shell {
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
}

.is-android-native .screen {
  left: 50%;
  width: 402px;
  height: 874px;
  transform: translateX(-50%) scale(var(--stage-scale));
  transform-origin: top center;
}

.is-android-native .screen.is-active {
  transform: translateX(-50%) scale(var(--stage-scale));
}

.mobile-shell {
  position: relative;
  width: 402px;
  height: 874px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--bg);
  transform-origin: top center;
}

.app-toast {
  position: absolute;
  right: 20px;
  bottom: 96px;
  left: 20px;
  z-index: 60;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgb(28 49 39 / 0.94);
  color: var(--beige);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.checkin-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 80;
  display: grid;
  min-width: 230px;
  min-height: 92px;
  place-items: center;
  padding: 18px 20px;
  border: 5px solid var(--accent);
  border-radius: var(--radius-md);
  background: rgb(243 234 217 / 0.92);
  color: var(--accent);
  font-family: Chango, Inter, sans-serif;
  font-size: 22px;
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-8deg) scale(0.72);
  pointer-events: none;
}

.checkin-stamp.is-visible {
  animation: checkin-stamp-pop 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes checkin-stamp-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-13deg) scale(0.66);
  }

  28% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-7deg) scale(1.08);
  }

  70% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-8deg) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -54%) rotate(-8deg) scale(0.96);
  }
}

@media (min-width: 480px) and (min-height: 920px) {
  .mobile-shell {
    border-radius: 28px;
    box-shadow: 0 28px 80px rgb(0 0 0 / 0.36);
  }
}

@media (max-width: 401px), (max-height: 873px) {
  body {
    min-height: 100dvh;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
      env(safe-area-inset-left);
  }

  .mobile-shell {
    --stage-scale: min(
      calc((100vw - env(safe-area-inset-left) - env(safe-area-inset-right)) / 402px),
      calc((100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) / 874px)
    );
    width: calc(402px * var(--stage-scale));
    height: calc(874px * var(--stage-scale));
    transform: none;
  }

  .screen {
    width: 402px;
    height: 874px;
    transform: scale(var(--stage-scale)) translateY(8px);
    transform-origin: top left;
  }

  .screen.is-active {
    transform: scale(var(--stage-scale)) translateY(0);
  }
}

@media (max-width: 401px), (max-height: 873px) {
  .is-android-native .mobile-shell {
    --stage-scale: min(100vw / 402px, 100dvh / 874px);
    width: 100vw;
    height: 100dvh;
  }

  .is-android-native .screen,
  .is-android-native .screen.is-active {
    transform: translateX(-50%) scale(var(--stage-scale));
  }
}

.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.985);
  transition:
    opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 320ms ease;
  pointer-events: none;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.is-android-native #screen-home,
.is-android-native #screen-home.is-active {
  left: 0;
  width: 100vw;
  height: 100dvh;
  transform: none;
  transform-origin: center;
}

@media (max-width: 401px), (max-height: 873px) {
  .screen {
    transform: scale(var(--stage-scale)) translateY(8px);
  }

  .screen.is-active {
    transform: scale(var(--stage-scale)) translateY(0);
  }
}

.login-title {
  position: absolute;
  top: calc(291 / 874 * 100%);
  left: 50%;
  width: calc(343 / 402 * 100%);
  transform: translateX(-50%);
  color: var(--terracotta);
  font-family: Chango, Inter, sans-serif;
  font-size: 48px;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
}

.login-field {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 13px;
  width: calc(320 / 402 * 100%);
  height: calc(52 / 874 * 100%);
  padding: 0 16px 0 13px;
  border-radius: 20px;
  background: #d9d9d9;
}

.login-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #6d6a67;
  caret-color: var(--terracotta);
  font-family: Chango, Inter, sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
}

.login-input::placeholder {
  color: #acacac;
  opacity: 1;
}

.password-toggle {
  position: absolute;
  top: 11px;
  right: 15px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.login-button {
  position: absolute;
  top: calc(697 / 874 * 100%);
  left: calc(41 / 402 * 100%);
  width: calc(320 / 402 * 100%);
  height: calc(52 / 874 * 100%);
  border: 0;
  border-radius: 20px;
  background: var(--terracotta);
  color: #fff;
  cursor: pointer;
  font-family: Chango, Inter, sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
}

.login-message {
  position: absolute;
  top: 767px;
  left: 41px;
  width: 320px;
  margin: 0;
  color: #9c3425;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.home-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  height: 112px;
  place-items: center;
  background: var(--forest);
}

.home-header h2 {
  margin: 0;
  color: var(--beige);
  font-family: Chango, Inter, sans-serif;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
}

.is-android-native #screen-home .home-header {
  height: 120px;
}

.is-android-native #screen-home .home-header h2 {
  font-size: 42px;
}

.is-android-native #screen-home .bottom-nav {
  right: 20px;
  bottom: 22px;
  left: 20px;
  width: auto;
}

.map-search {
  position: absolute;
  top: 126px;
  left: 18px;
  z-index: 9;
  display: flex;
  width: 284px;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 50px;
  background: rgb(247 243 235 / 0.96);
  box-shadow: 0 8px 22px rgb(0 0 0 / 0.14);
}

.map-search img {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.map-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #5d5a56;
  font-family: Chango, Inter, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

.map-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.is-android-native #screen-home .map-search {
  top: 132px;
  left: 18px;
  width: min(310px, calc(100vw - 96px));
}

.leaflet-map {
  position: absolute;
  top: 112px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 402px;
  height: 762px;
  overflow: hidden;
  background: #dbe7e9;
}

.is-android-native #screen-home .leaflet-map {
  top: 120px;
  width: 100vw;
  height: calc(100dvh - 120px);
  background: #dbe7e9;
}

.leaflet-container {
  position: absolute !important;
  inset: 0 !important;
  width: 402px !important;
  height: 762px !important;
  background: #dbe7e9;
  font-family: Inter, system-ui, sans-serif;
}

.is-android-native #screen-home .leaflet-container {
  width: 100% !important;
  height: 100% !important;
  background: #dbe7e9;
}

.leaflet-map .leaflet-tile {
  width: 256px !important;
  height: 256px !important;
  max-width: none !important;
  max-height: none !important;
  filter: saturate(0.68) contrast(0.94) brightness(1.05);
}

.leaflet-map .leaflet-tile-container img {
  max-width: none !important;
}

.leaflet-control-container {
  display: none;
}

.is-android-native #screen-home .leaflet-control-container {
  display: block;
}

.is-android-native #screen-home .leaflet-control-attribution {
  margin-bottom: 116px;
  border-radius: 999px 0 0 999px;
  background: rgb(255 255 255 / 0.86);
  color: #53645b;
  font-size: 10px;
}

.locate-button {
  position: absolute;
  z-index: 8;
  right: 18px;
  bottom: calc(var(--bottom-nav-clearance) + 12px);
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 3px solid #d6d6d6;
  border-radius: 999px;
  background: #fff;
  color: #111;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.18);
  cursor: pointer;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.is-android-native #screen-home .locate-button {
  top: auto;
  right: 18px;
  bottom: 128px;
}

.locate-button svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.8;
}

.map-legend {
  position: absolute;
  top: 184px;
  left: 14px;
  z-index: 8;
  display: grid;
  gap: 5px;
  padding: 9px 11px;
  border-radius: 16px;
  background: rgb(243 235 221 / 0.94);
  color: #1c3127;
  box-shadow: 0 8px 22px rgb(0 0 0 / 0.15);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.is-android-native #screen-home .map-legend {
  top: 190px;
  left: 18px;
}

.map-legend summary {
  cursor: pointer;
  list-style: none;
}

.map-legend summary::-webkit-details-marker {
  display: none;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
}

.legend-dot-cafe {
  background: #c05a32;
}

.legend-dot-selected {
  background: #1c3127;
  border-radius: 3px;
}

.legend-dot-user {
  background: #5b7358;
  border: 2px solid #1c3127;
}

.buscafe-marker {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.25);
}

.buscafe-marker span {
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #c05a32;
  border: 2px solid #fff;
}

.buscafe-marker.is-visited span {
  background: #5b7358;
}

.buscafe-marker.is-selected {
  background: #1c3127;
  color: var(--beige);
  box-shadow:
    0 0 0 5px rgb(192 90 50 / 0.26),
    0 8px 18px rgb(0 0 0 / 0.3);
  animation: selected-marker-pulse 1.5s ease-in-out infinite;
}

.buscafe-marker.is-selected::before {
  position: absolute;
  top: 10px;
  left: 8px;
  width: 15px;
  height: 10px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 5px 5px;
  content: "";
}

.buscafe-marker.is-selected::after {
  position: absolute;
  top: 11px;
  right: 6px;
  width: 6px;
  height: 7px;
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  content: "";
}

.buscafe-marker.is-selected span {
  width: 24px;
  height: 24px;
  background: transparent;
}

@keyframes selected-marker-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgb(192 90 50 / 0.22),
      0 8px 18px rgb(0 0 0 / 0.3);
  }

  50% {
    box-shadow:
      0 0 0 9px rgb(192 90 50 / 0.12),
      0 8px 18px rgb(0 0 0 / 0.3);
  }
}

.bottom-nav {
  position: absolute;
  z-index: 20;
  bottom: var(--bottom-nav-bottom);
  left: 13px;
  display: flex;
  width: 376px;
  height: var(--bottom-nav-height);
  align-items: center;
  justify-content: space-around;
  padding: 14px 18px 18px;
}

.is-android-native .bottom-nav {
  right: 20px;
  bottom: 22px;
  left: 20px;
  width: auto;
}

.is-android-native .map-status {
  bottom: 210px;
}

.is-android-native .map-cafe-card {
  bottom: 128px;
}

.bottom-nav::before {
  position: absolute;
  inset: 10px 0;
  z-index: -1;
  border-radius: 99px;
  background: var(--moss);
  box-shadow: 0 4px 4px 8px rgb(0 0 0 / 0.1);
  content: "";
}

.bottom-nav button {
  position: relative;
  display: grid;
  min-width: 86px;
  min-height: 58px;
  grid-template-rows: 35px auto;
  gap: 3px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--beige);
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.bottom-nav button.is-active {
  background: var(--beige);
  color: var(--forest);
  transform: translateY(-2px);
}

.bottom-nav button.is-active::after {
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--beige);
  transform: translateX(-50%);
  content: "";
}

.bottom-nav button.is-active img {
  filter: brightness(0) saturate(100%) invert(16%) sepia(16%) saturate(948%) hue-rotate(101deg) brightness(96%)
    contrast(90%);
  transform: scale(0.9);
}

.bottom-nav button img {
  max-width: 42px;
  max-height: 34px;
  object-fit: contain;
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.bottom-nav button span {
  color: currentColor;
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.gps-overlay {
  position: absolute;
  inset: 0;
  z-index: 18;
  background: rgb(47 47 47 / 0.42);
}

.gps-card {
  position: absolute;
  top: 318px;
  left: 30px;
  width: 336px;
  min-height: 232px;
  padding: 27px 30px 24px;
  border-radius: 15px;
  background: #fff;
}

.gps-card h3 {
  margin: 0 0 12px;
  color: #000;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.gps-card p {
  width: 261px;
  margin: 0;
  color: #000;
  font-size: 20px;
  line-height: 1.18;
}

.gps-actions {
  position: absolute;
  right: 27px;
  bottom: 25px;
  left: 27px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.gps-actions button {
  min-width: 86px;
  min-height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
}

.gps-primary {
  color: var(--terracotta);
}

.gps-secondary {
  color: #777;
  font-size: 16px !important;
}

.map-status {
  position: absolute;
  z-index: 19;
  right: 18px;
  bottom: calc(var(--bottom-nav-clearance) + 88px);
  left: 18px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgb(28 49 39 / 0.92);
  color: var(--beige);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.map-cafe-card {
  position: absolute;
  z-index: 22;
  right: 18px;
  bottom: calc(var(--bottom-nav-clearance) + 16px);
  left: 18px;
  display: grid;
  min-height: 218px;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 22px 14px 82px;
  border-radius: 22px;
  background: rgb(243 235 221 / 0.96);
  box-shadow: 0 14px 32px rgb(0 0 0 / 0.22);
  transform: translateY(var(--sheet-drag-y, 0));
  touch-action: pan-y;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.map-cafe-card::before {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: rgb(28 47 39 / 0.26);
  transform: translateX(-50%);
  content: "";
}

.map-cafe-card.is-dragging {
  transition: none;
}

.map-cafe-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1c3127;
  cursor: pointer;
}

.map-cafe-close svg {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

.map-cafe-card img {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
}

.map-cafe-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding-right: 22px;
}

.map-cafe-info strong {
  display: -webkit-box;
  overflow: hidden;
  color: #191715;
  font-family: Chango, Inter, sans-serif;
  font-size: 14px;
  line-height: 1.1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.map-cafe-info span,
.map-cafe-info small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 6px;
  color: #666;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.map-cafe-distance {
  margin-top: 7px;
  color: var(--forest);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
}

.map-cafe-hint {
  position: absolute;
  right: 14px;
  bottom: 60px;
  left: 14px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.map-cafe-actions {
  position: absolute;
  right: 14px;
  bottom: 11px;
  left: 14px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 8px;
}

.map-cafe-checkin,
.map-cafe-secondary {
  min-height: 48px;
  border: 0;
  border-radius: 20px;
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 160ms ease,
    opacity 160ms ease;
}

.map-cafe-checkin {
  background: #b85c33;
  color: #fff;
  font-family: Chango, Inter, sans-serif;
  font-size: 13px;
}

.map-cafe-secondary {
  background: #fff;
  color: #1c3127;
  font-size: 12px;
  font-weight: 900;
}

.map-cafe-checkin:disabled {
  background: #8f9991;
  cursor: default;
  opacity: 0.92;
}

.placeholder-panel {
  position: absolute;
  top: 190px;
  left: 32px;
  display: grid;
  width: 338px;
  place-items: center;
  gap: 12px;
  text-align: center;
}

.placeholder-panel svg {
  width: 64px;
  height: 64px;
  color: var(--terracotta);
}

.placeholder-panel h2 {
  margin: 0;
  font-family: Chango, Inter, sans-serif;
  font-size: 26px;
  line-height: 1.12;
}

.placeholder-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.profile-panel {
  position: absolute;
  top: 104px;
  left: -10px;
  width: 421px;
  height: 1080px;
  border-radius: 54px;
  background: var(--bg);
}

.profile-maria-hero,
.profile-maria-items {
  display: none;
}

.profile-maria-hero {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 402px;
  height: 184px;
  overflow: hidden;
  background: #560084;
}

.profile-maria-hero span {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: #9300e7;
}

.profile-maria-hero span:first-child {
  top: -70px;
  left: -74px;
  width: 150px;
  height: 150px;
}

.profile-maria-hero span:last-child {
  top: 47px;
  right: -44px;
  width: 126px;
  height: 126px;
}

#screen-profile {
  background: var(--bg);
  overflow-x: hidden;
  overflow-y: hidden;
}

.profile-scroll {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: var(--bottom-nav-clearance);
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.profile-scroll::-webkit-scrollbar {
  display: none;
}

.profile-scroll-spacer {
  position: absolute;
  top: 1200px;
  left: 0;
  width: 1px;
  height: 120px;
  pointer-events: none;
}

.profile-logout {
  position: absolute;
  top: 23px;
  right: 20px;
  z-index: 25;
  min-width: 58px;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #1c3127;
  color: #f3ebdd;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

#screen-profile .bottom-nav {
  z-index: 30;
}

.profile-avatar {
  position: absolute;
  top: 52px;
  left: 126px;
  z-index: 3;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 8px solid var(--surface);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 30%, rgb(255 255 255 / 0.22), transparent 34%),
    linear-gradient(145deg, var(--moss), var(--forest));
  box-shadow: var(--shadow-raised);
  color: var(--beige);
  font-family: Chango, Inter, sans-serif;
  font-size: 34px;
  letter-spacing: 0;
}

.profile-avatar span {
  transform: translateY(2px);
}

.profile-banner {
  position: absolute;
  top: 209px;
  left: 57px;
  display: grid;
  width: 288px;
  height: 58px;
  place-items: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.profile-banner strong {
  display: block;
  max-width: 244px;
  overflow: hidden;
  color: #1c3127;
  font-family: Chango, Inter, sans-serif;
  font-size: 17px;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-stat {
  position: absolute;
  top: 282px;
  left: 50%;
  display: grid;
  width: 292px;
  height: 96px;
  grid-template-columns: 68px 60px;
  grid-template-rows: 46px 32px;
  justify-content: center;
  align-items: center;
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transform: translateX(-50%);
}

.profile-stat img {
  grid-column: 1;
  grid-row: 1;
  width: 47px;
  height: 47px;
  justify-self: center;
}

.profile-stat strong {
  grid-column: 2;
  grid-row: 1;
  font-family: Chango, Inter, sans-serif;
  font-size: 32px;
  line-height: 1;
}

.profile-stat span {
  grid-column: 1 / 3;
  grid-row: 2;
  justify-self: center;
  font-family: Chango, Inter, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.profile-title {
  position: absolute;
  margin: 0;
  color: #000;
  font-family: Chango, Inter, sans-serif;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

.favorites-title {
  top: 414px;
  left: 24px;
}

.profile-favorite-count {
  position: absolute;
  top: 409px;
  right: 24px;
  display: grid;
  min-width: 58px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #5b7358;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.profile-favorite-note {
  position: absolute;
  top: 441px;
  left: 24px;
  margin: 0;
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.items-title {
  top: 610px;
  left: 24px;
}

.profile-strip {
  position: absolute;
  left: 12px;
  display: flex;
  gap: 12px;
  width: 378px;
  height: 111px;
  overflow: hidden;
}

.favorites-strip {
  top: 472px;
}

.items-strip {
  top: 656px;
}

.profile-strip > span,
.profile-favorite-card {
  width: 118px;
  height: 111px;
  flex: 0 0 auto;
  background: var(--surface);
}

.profile-empty-favorite {
  display: flex;
  width: 100% !important;
  height: 111px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.profile-empty-favorite strong {
  color: #1c3127;
  font-family: Chango, Inter, sans-serif;
  font-size: 13px;
  line-height: 1.1;
}

.profile-empty-favorite span {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.profile-empty-favorite button {
  width: fit-content;
  min-width: 86px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #b85c33;
  color: #fff;
  cursor: pointer;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 900;
}

.profile-favorite-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 0;
  color: #191715;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.profile-favorite-card:active {
  transform: translateY(1px) scale(0.98);
}

.profile-favorite-card img {
  width: 100%;
  height: 68px;
  object-fit: cover;
}

.profile-favorite-card strong {
  display: -webkit-box;
  overflow: hidden;
  padding: 8px 8px 0;
  font-family: Chango, Inter, sans-serif;
  font-size: 10px;
  line-height: 1.1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-favorite-open {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #5b7358;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.profile-progress {
  position: absolute;
  left: 12px;
  display: grid;
  width: 378px;
  height: 111px;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-progress div {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 14px 28px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.profile-progress div:first-child::before,
.profile-progress div:first-child::after {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  height: 8px;
  border-radius: 999px;
  content: "";
}

.profile-progress div:first-child::before {
  background: #e7e1d8;
}

.profile-progress div:first-child::after {
  width: var(--progress, 0%);
  max-width: calc(100% - 28px);
  background: var(--terracotta);
}

.profile-progress strong {
  display: -webkit-box;
  overflow: hidden;
  color: #1c3127;
  font-family: Chango, Inter, sans-serif;
  font-size: 16px;
  line-height: 1.05;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-progress span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#screen-profile.is-maria-profile {
  background: var(--bg);
}

#screen-profile.is-maria-profile .profile-maria-hero {
  display: block;
}

#screen-profile.is-maria-profile .profile-panel {
  top: 108px;
  left: 0;
  width: 402px;
  height: 766px;
  border-radius: 32px 32px 0 0;
  background: var(--bg);
}

#screen-profile.is-maria-profile .profile-logout,
#screen-profile.is-maria-profile .profile-banner,
#screen-profile.is-maria-profile .profile-favorite-count,
#screen-profile.is-maria-profile .profile-favorite-note,
#screen-profile.is-maria-profile .items-title,
#screen-profile.is-maria-profile .items-strip {
  display: none;
}

#screen-profile.is-maria-profile .profile-avatar {
  top: 64px;
  left: 143px;
  width: 116px;
  height: 116px;
  font-size: 28px;
}

#screen-profile.is-maria-profile .profile-stat {
  top: 185px;
  width: 230px;
  height: 68px;
  grid-template-columns: 50px 42px;
  grid-template-rows: 28px 30px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#screen-profile.is-maria-profile .profile-stat img {
  width: 32px;
  height: 32px;
}

#screen-profile.is-maria-profile .profile-stat strong {
  font-size: 25px;
}

#screen-profile.is-maria-profile .profile-stat span {
  font-size: 24px;
}

#screen-profile.is-maria-profile .favorites-title {
  top: 256px;
  left: 15px;
  font-size: 20px;
}

#screen-profile.is-maria-profile .favorites-strip {
  top: 279px;
  left: 9px;
  gap: 14px;
  width: 430px;
  height: 56px;
}

#screen-profile.is-maria-profile .profile-strip > span,
#screen-profile.is-maria-profile .profile-favorite-card {
  width: 69px;
  height: 56px;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

#screen-profile.is-maria-profile .profile-favorite-card img,
#screen-profile.is-maria-profile .profile-favorite-card strong,
#screen-profile.is-maria-profile .profile-favorite-open {
  display: none;
}

#screen-profile.is-maria-profile .profile-empty-favorite {
  display: grid;
  width: 430px !important;
  height: 56px;
  grid-template-columns: repeat(5, 69px);
  gap: 14px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#screen-profile.is-maria-profile .profile-empty-favorite::before,
#screen-profile.is-maria-profile .profile-empty-favorite::after,
#screen-profile.is-maria-profile .profile-empty-favorite strong,
#screen-profile.is-maria-profile .profile-empty-favorite span,
#screen-profile.is-maria-profile .profile-empty-favorite button {
  display: block;
  width: 69px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  color: transparent;
  box-shadow: none;
  content: "";
}

#screen-profile.is-maria-profile .profile-empty-favorite button {
  min-width: 0;
  cursor: pointer;
}

#screen-profile.is-maria-profile .profile-maria-items {
  position: absolute;
  top: 347px;
  left: 0;
  display: block;
  width: 402px;
}

#screen-profile.is-maria-profile .profile-maria-items h3 {
  position: static;
  margin: 0 0 12px 15px;
  font-size: 20px;
}

#screen-profile.is-maria-profile .profile-maria-item-strip {
  display: flex;
  gap: 14px;
  width: 430px;
  padding-left: 9px;
  overflow: hidden;
}

#screen-profile.is-maria-profile .profile-maria-item-strip span {
  width: 69px;
  height: 56px;
  flex: 0 0 auto;
  background: #fff;
}

#screen-profile.is-maria-profile .bottom-nav {
  bottom: var(--bottom-nav-bottom);
}

#screen-profile.is-maria-profile .profile-maria-items {
  display: none;
}

#screen-profile.is-maria-profile .profile-maria-hero {
  display: block;
}

#screen-profile.is-maria-profile .profile-panel {
  top: 104px;
  left: -10px;
  width: 421px;
  height: 1080px;
  border-radius: 54px;
  background: var(--bg);
}

#screen-profile.is-maria-profile .profile-logout {
  display: block;
}

#screen-profile.is-maria-profile .profile-avatar {
  top: 52px;
  left: 126px;
  width: 150px;
  height: 150px;
  font-size: 34px;
}

#screen-profile.is-maria-profile .profile-banner {
  top: 209px;
  left: 57px;
  display: grid;
  width: 288px;
  height: 58px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#screen-profile.is-maria-profile .profile-stat {
  top: 282px;
  width: 292px;
  height: 96px;
  grid-template-columns: 68px 60px;
  grid-template-rows: 46px 32px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

#screen-profile.is-maria-profile .profile-stat img {
  width: 47px;
  height: 47px;
}

#screen-profile.is-maria-profile .profile-stat strong {
  font-size: 32px;
}

#screen-profile.is-maria-profile .profile-stat span {
  font-size: 24px;
}

#screen-profile.is-maria-profile .favorites-title {
  top: 414px;
  left: 24px;
  font-size: 24px;
}

#screen-profile.is-maria-profile .profile-favorite-count {
  top: 409px;
  right: 24px;
  display: grid;
}

#screen-profile.is-maria-profile .profile-favorite-note {
  top: 441px;
  left: 24px;
  display: block;
}

#screen-profile.is-maria-profile .favorites-strip {
  top: 472px;
  left: 12px;
  gap: 12px;
  width: 378px;
  height: 111px;
}

#screen-profile.is-maria-profile .profile-strip > span,
#screen-profile.is-maria-profile .profile-favorite-card {
  width: 118px;
  height: 111px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: none;
}

#screen-profile.is-maria-profile .profile-favorite-card img {
  display: block;
}

#screen-profile.is-maria-profile .profile-favorite-card strong {
  display: -webkit-box;
}

#screen-profile.is-maria-profile .profile-favorite-open {
  display: grid;
}

#screen-profile.is-maria-profile .profile-empty-favorite {
  display: flex;
  width: 100% !important;
  height: 111px;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

#screen-profile.is-maria-profile .profile-empty-favorite::before,
#screen-profile.is-maria-profile .profile-empty-favorite::after {
  display: none;
}

#screen-profile.is-maria-profile .profile-empty-favorite strong,
#screen-profile.is-maria-profile .profile-empty-favorite span,
#screen-profile.is-maria-profile .profile-empty-favorite button {
  width: auto;
  height: auto;
  color: inherit;
}

#screen-profile.is-maria-profile .profile-empty-favorite strong {
  color: #1c3127;
}

#screen-profile.is-maria-profile .profile-empty-favorite button {
  min-width: 86px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  background: #b85c33;
  color: #fff;
}

#screen-profile.is-maria-profile .items-title {
  top: 610px;
  left: 24px;
  display: block;
  font-size: 24px;
}

#screen-profile.is-maria-profile .profile-progress.items-strip {
  top: 656px;
  left: 12px;
  display: grid;
  width: 378px;
  height: 111px;
}

.pokedex-search {
  position: absolute;
  top: 23px;
  left: 26px;
  z-index: 7;
  display: flex;
  width: 356px;
  min-height: 48px;
  align-items: center;
  gap: 20px;
  padding: 0 18px;
  border-radius: 50px;
  background: #f7f3eb;
}

.pokedex-search img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.pokedex-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #777;
  font-family: Chango, Inter, sans-serif;
  font-size: 20px;
  letter-spacing: 0;
}

.pokedex-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.pokedex-filter {
  position: absolute;
  top: 82px;
  left: 13px;
  z-index: 8;
  width: 52px;
  height: 52px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px;
}

.pokedex-filter img,
.filter-close img {
  width: 100%;
  height: 100%;
}

.pokedex-chips {
  position: absolute;
  top: 88px;
  left: 67px;
  display: flex;
  gap: 8px;
  width: 315px;
  min-height: 48px;
  overflow: hidden;
}

.pokedex-chips button {
  min-width: 89px;
  min-height: 48px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 20px;
  background: #fbf8f1;
  color: var(--muted);
  cursor: pointer;
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.pokedex-chips button:active,
.filter-option:active,
.filter-actions button:active,
.login-button:active,
.map-cafe-checkin:active {
  transform: scale(0.97);
}

.pokedex-chips button.is-selected {
  background: #b85c33;
  color: #fff;
  transform: translateY(-1px);
}

.pokedex-cards {
  position: absolute;
  top: 146px;
  right: 13px;
  bottom: var(--bottom-nav-clearance);
  left: 13px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 251px;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 16px;
  scrollbar-width: none;
}

.pokedex-cards::-webkit-scrollbar {
  display: none;
}

.pokedex-card {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: var(--surface);
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.pokedex-card:has(.card-open:active) {
  transform: translateY(1px) scale(0.99);
}

.pokedex-card:has(.card-open:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.pokedex-card.is-hidden {
  display: none;
}

.pokedex-empty-state {
  grid-column: 1 / -1;
  display: flex;
  min-height: 196px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 24px 22px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.pokedex-loading-state,
.pokedex-data-notice {
  grid-column: 1 / -1;
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.pokedex-loading-state strong,
.pokedex-data-notice strong {
  color: #1c3127;
  font-family: Chango, Inter, sans-serif;
  font-size: 18px;
  line-height: 1.08;
}

.pokedex-loading-state span,
.pokedex-data-notice span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.pokedex-loading-state::after {
  width: 52px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c05a32 45%, #d9d9d9 45%);
  content: "";
  animation: loading-bar 900ms ease-in-out infinite alternate;
}

.pokedex-card-skeleton {
  position: relative;
  overflow: hidden;
  min-height: 251px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.pokedex-card-skeleton::before,
.pokedex-card-skeleton::after {
  position: absolute;
  border-radius: 999px;
  background: #e8e3da;
  content: "";
}

.pokedex-card-skeleton::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 158px;
  border-radius: 0;
  background: linear-gradient(100deg, #e8e3da 20%, #f8f4ec 40%, #e8e3da 62%);
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.pokedex-card-skeleton::after {
  right: 18px;
  bottom: 54px;
  left: 14px;
  height: 12px;
  box-shadow: 0 24px 0 #e8e3da;
}

@keyframes skeleton-shimmer {
  from {
    background-position: 160% 0;
  }

  to {
    background-position: -60% 0;
  }
}

@keyframes loading-bar {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(56px);
  }
}

.pokedex-empty-state.is-hidden {
  display: none;
}

.pokedex-empty-state strong {
  color: #1c3127;
  font-family: Chango, Inter, sans-serif;
  font-size: 20px;
  line-height: 1.05;
}

.pokedex-empty-state span {
  max-width: 240px;
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.pokedex-empty-state button {
  min-width: 118px;
  min-height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: #b85c33;
  color: #fff;
  cursor: pointer;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.pokedex-card-small {
  width: auto;
  height: auto;
}

.pokedex-card-large {
  width: auto;
  height: auto;
}

.card-a {
  top: auto;
  left: auto;
}

.card-b {
  top: auto;
  left: auto;
}

.card-c {
  top: auto;
  left: auto;
}

.card-d {
  top: auto;
  left: auto;
}

.card-open {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.card-photo,
.card-info {
  position: absolute;
  left: 0;
  width: 100%;
}

.card-photo {
  top: 0;
  height: 158px;
  background: linear-gradient(100deg, #ddd7cc 20%, #f8f4ec 40%, #ddd7cc 62%);
  background-size: 220% 100%;
  background-position: center;
  filter: blur(6px);
  opacity: 0.72;
  transition:
    filter 180ms ease,
    opacity 180ms ease;
}

.card-photo.is-loading {
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.card-photo.is-loaded {
  background-size: cover;
  filter: none;
  opacity: 1;
  animation: none;
}

.pokedex-card.is-unvisited .card-photo {
  filter: grayscale(0.72) saturate(0.62);
  opacity: 0.86;
}

.card-visited-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--moss);
  color: var(--beige);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 3px 9px rgb(0 0 0 / 0.18);
}

.card-info {
  bottom: 0;
  height: 93px;
  border-radius: 0;
  background: var(--surface);
  padding: 14px 12px 12px;
  text-align: left;
}

.pokedex-card-large .card-photo {
  height: 158px;
}

.pokedex-card-large .card-info {
  height: 93px;
  padding: 14px 12px 12px;
}

.card-info strong,
.card-info small,
.card-meta {
  display: block;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.card-info strong {
  color: #191715;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.12;
  -webkit-line-clamp: 2;
}

.card-info small {
  margin-top: 5px;
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  -webkit-line-clamp: 1;
}

.pokedex-card-large .card-info strong {
  font-size: 13px;
}

.pokedex-card-large .card-info small {
  font-size: 11px;
}

.card-meta {
  position: absolute;
  bottom: 13px;
  left: 12px;
  color: #191715;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  -webkit-line-clamp: 1;
}

.card-heart {
  position: absolute;
  top: 10px;
  right: 9px;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.16);
  cursor: pointer;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.card-heart.small {
  top: 10px;
  right: 9px;
  width: 48px;
  height: 48px;
}

.card-heart svg {
  width: 21px;
  height: 21px;
  color: #d9233f;
  fill: transparent;
  stroke-width: 2.4;
}

.card-heart.is-favorite svg {
  fill: currentColor;
}

.card-heart.favorite-pulse,
.detail-heart.favorite-pulse {
  animation: favorite-button-pop 360ms ease;
}

.card-heart.favorite-pulse svg,
.detail-heart.favorite-pulse .detail-heart-icon,
.detail-heart.favorite-pulse svg {
  animation: favorite-icon-pop 360ms ease;
}

@keyframes favorite-button-pop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.13);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes favorite-icon-pop {
  0% {
    transform: scale(0.84);
  }

  45% {
    transform: scale(1.18);
  }

  100% {
    transform: scale(1);
  }
}

.filter-panel {
  position: absolute;
  top: 69px;
  left: 14px;
  width: 379px;
  height: 688px;
  padding: 34px 24px 26px;
  overflow-y: auto;
  background: var(--bg);
  scrollbar-gutter: stable;
}

.filter-panel h2,
.filter-panel h3 {
  margin: 0;
  color: #191715;
  font-family: Chango, Inter, sans-serif;
  letter-spacing: 0;
}

.filter-panel h2 {
  font-size: 27px;
  line-height: 1;
}

.filter-section {
  margin-top: 24px;
}

.filter-section h3 {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-option {
  min-width: 86px;
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.filter-option.is-selected {
  background: #b85c33;
  color: #fff;
}

.filter-actions {
  position: sticky;
  bottom: -26px;
  display: flex;
  gap: 14px;
  margin-top: 22px;
  padding: 16px 0 18px;
  background: var(--bg);
}

.filter-actions button {
  height: 48px;
  border: 0;
  border-radius: 24px;
  cursor: pointer;
  font-family: Chango, Inter, sans-serif;
  font-size: 16px;
}

.filter-clear {
  width: 124px;
  background: var(--surface);
  color: var(--muted);
}

.filter-apply {
  flex: 1;
  background: #b85c33;
  color: #fff;
}

.filter-close {
  position: absolute;
  top: 72px;
  right: 22px;
  z-index: 9;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 12px;
}

.detail-hero {
  position: absolute;
  top: 0;
  left: -71px;
  width: 522px;
  height: 522px;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

.detail-back {
  position: absolute;
  top: 19px;
  left: 20px;
  z-index: 8;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.94);
  color: #1c3127;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.2);
  cursor: pointer;
}

.detail-back svg {
  width: 31px;
  height: 31px;
  stroke-width: 2.7;
}

.detail-heart {
  position: absolute;
  top: 12px;
  left: 312px;
  width: 71px;
  height: 67px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: center;
}

.detail-heart img:first-child,
.detail-heart .detail-heart-icon,
.detail-heart svg {
  position: absolute;
}

.detail-heart img:first-child {
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-heart .detail-heart-icon,
.detail-heart svg {
  top: 12px;
  left: 13px;
  width: 45px;
  height: 43px;
  color: #d50035;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 2.4;
  transition:
    fill 160ms ease,
    transform 160ms ease;
}

.detail-heart.is-favorite .detail-heart-icon,
.detail-heart.is-favorite svg {
  fill: currentColor;
  transform: scale(0.94);
}

.detail-sheet {
  position: absolute;
  top: 368px;
  left: -15px;
  width: 432px;
  height: 732px;
  border-radius: 60px;
  background: var(--bg);
  transform: translateY(var(--detail-sheet-offset, 0px));
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.detail-sheet.is-dragging {
  transition: none;
}

.detail-handle {
  position: absolute;
  top: 8px;
  left: 61px;
  width: 300px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: transparent;
  color: var(--muted);
  cursor: grab;
  font-size: 11px;
  font-weight: 900;
  touch-action: none;
}

.detail-handle::before {
  position: absolute;
  top: 4px;
  left: 12px;
  right: 12px;
  height: 10px;
  border-radius: 30px;
  background: #807d7d;
  content: "";
}

.detail-handle span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: center;
}

.detail-sheet.is-dragging .detail-handle {
  cursor: grabbing;
}

.detail-sheet.is-collapsed .detail-gallery {
  opacity: 0.72;
}

.detail-gallery {
  position: absolute;
  top: -75px;
  left: 70px;
  display: flex;
  gap: 21px;
}

.detail-gallery button {
  display: grid;
  width: 83px;
  height: 57px;
  place-items: center;
  padding: 0;
  border: 0;
  background: #d9d9d9;
  cursor: pointer;
  overflow: hidden;
  transition:
    outline-color 160ms ease,
    transform 160ms ease;
}

.detail-gallery button.is-selected {
  outline: 4px solid #b85c33;
  outline-offset: -4px;
  transform: translateY(-3px);
}

.detail-gallery button:active {
  transform: translateY(-2px) scale(0.96);
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-sheet h2 {
  position: absolute;
  top: 62px;
  left: 39px;
  width: 335px;
  margin: 0;
  color: #000;
  font-family: Chango, Inter, sans-serif;
  font-size: 20px;
  line-height: 1.06;
}

.detail-sheet p {
  position: absolute;
  top: 126px;
  left: 39px;
  width: 354px;
  margin: 0;
  color: #000;
  font-size: 15px;
  line-height: 1.24;
}

.detail-sheet h3 {
  position: absolute;
  top: 292px;
  left: 39px;
  margin: 0;
  color: var(--muted);
  font-family: Chango, Inter, sans-serif;
  font-size: 20px;
  line-height: 1;
}

.detail-tags {
  position: absolute;
  top: 334px;
  left: 28px;
  display: flex;
  width: 348px;
  flex-wrap: wrap;
  gap: 11px 15px;
}

.detail-tags span {
  display: grid;
  min-width: 88px;
  max-width: 158px;
  height: 39px;
  place-items: center;
  padding: 0 14px;
  border-radius: 20px;
  background: #b85c33;
  color: #fff;
  font-family: Chango, Inter, sans-serif;
  font-size: 14px;
  line-height: 1;
  text-align: center;
}

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