/* A1 mobile — welcome inside phone frame */

.m-welcome {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.m-welcome-map {
  position: relative;
  flex: 1 1 52%;
  min-height: 240px;
  overflow: hidden;
  background: var(--map-land);
}

.m-welcome-map .map-canvas {
  position: absolute;
  inset: -4%;
  animation: m-map-drift 16s ease-in-out infinite alternate;
}

@keyframes m-map-drift {
  from { transform: scale(1.02) translate(0, 0); }
  to { transform: scale(1.06) translate(-1%, 1%); }
}

.m-welcome-map .map-water {
  position: absolute;
  background: var(--map-water);
  border-radius: 40% 60% 55% 45%;
}

.m-welcome-map .map-park {
  position: absolute;
  background: var(--map-park);
  border-radius: 30%;
}

.m-welcome-map .map-road {
  position: absolute;
  background: var(--map-road);
  border-radius: 2px;
}

.m-welcome-map .map-road.major {
  background: var(--map-road-major);
}

.m-welcome-map .map-label {
  position: absolute;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--map-label);
}

.m-welcome-pin {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 9px 0 4px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  box-shadow: var(--shadow-pin);
  transform: translate(-50%, -100%);
  animation: m-pin-soft 3.2s ease-in-out infinite;
}

.m-welcome-pin:nth-of-type(2) { animation-delay: 0.35s; }
.m-welcome-pin:nth-of-type(3) { animation-delay: 0.8s; }

@keyframes m-pin-soft {
  0%, 100% { transform: translate(-50%, -100%); }
  50% { transform: translate(-50%, -108%); }
}

.m-welcome-pin .pin-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary-container);
  color: var(--color-primary);
}

.m-welcome-pin .pin-ico svg {
  width: 12px;
  height: 12px;
}

.m-welcome-pin .pin-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.74rem;
  font-weight: 700;
}

.m-welcome-pin .pin-rating svg {
  width: 10px;
  height: 10px;
  color: var(--color-primary);
}

.m-welcome-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--color-background) 55%, transparent) 55%,
    var(--color-background) 100%
  );
}

.m-welcome-body {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  padding: 8px 22px calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--color-background);
}

.m-welcome-brand {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  animation: m-rise 0.65s ease-out both;
}

.m-welcome-brand span {
  color: var(--color-primary);
}

.m-welcome-headline {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  animation: m-rise 0.65s ease-out 0.06s both;
}

.m-welcome-lead {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--color-on-surface-variant);
  animation: m-rise 0.65s ease-out 0.12s both;
}

.m-welcome-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: m-rise 0.65s ease-out 0.18s both;
}

.m-welcome-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.btn-ghost {
  background: var(--color-surface);
  border-color: var(--color-outline);
  color: var(--color-on-surface);
}

.m-welcome-foot {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-on-surface-variant);
  animation: m-rise 0.65s ease-out 0.24s both;
}

.m-welcome-foot a {
  color: var(--color-primary);
  font-weight: 650;
}

@keyframes m-rise {
  from { transform: translateY(8px); opacity: 0.01; }
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .m-welcome-map .map-canvas,
  .m-welcome-pin,
  .m-welcome-brand,
  .m-welcome-headline,
  .m-welcome-lead,
  .m-welcome-cta,
  .m-welcome-foot {
    animation: none;
  }
}
