/* Shared mobile phone frame for phase1 mockups */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body.mobile-body {
  font-family: var(--font-body);
  color: var(--color-on-background);
  background:
    radial-gradient(ellipse at 18% 12%, color-mix(in srgb, var(--color-primary) 14%, transparent), transparent 42%),
    radial-gradient(ellipse at 82% 88%, color-mix(in srgb, var(--map-water) 35%, transparent), transparent 40%),
    var(--color-background);
  -webkit-font-smoothing: antialiased;
  overflow: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.mobile-stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 16px 40px;
}

.phone {
  width: 390px;
  max-width: calc(100vw - 24px);
  height: 844px;
  max-height: min(844px, calc(100vh - 72px));
  padding: 12px;
  border-radius: 40px;
  background: #1a1a1a;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 60px rgba(26, 26, 26, 0.28);
}

[data-theme="dark"] .phone {
  background: #0a0a0a;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 60px rgba(0, 0, 0, 0.55);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--color-background);
  color: var(--color-on-background);
  display: flex;
  flex-direction: column;
}

.phone-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 12px 22px 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--color-on-surface);
  pointer-events: none;
}

.phone-status.is-light-on-map {
  color: var(--color-on-surface);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .phone-status.is-light-on-map {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.phone-home {
  position: absolute;
  left: 50%;
  bottom: 6px;
  z-index: 20;
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-on-surface) 35%, transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.stage-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-on-surface-variant);
  letter-spacing: 0.02em;
}

.mock-tag {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 70;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  border: 1px solid var(--color-outline);
  color: var(--color-on-surface-variant);
  pointer-events: none;
  line-height: 1.2;
}

.mock-tag a {
  pointer-events: auto;
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 420px) {
  .mobile-stage {
    padding: 12px 0 24px;
  }

  .phone {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  .phone-screen {
    border-radius: 0;
  }
}
