.onboarding-screen {
  min-height: 100%;
  height: 100%;
  padding: calc(20px + var(--safe-top)) 18px calc(20px + var(--safe-bottom));
  background:
    radial-gradient(circle at top right, rgba(255, 205, 132, 0.28), transparent 34%),
    linear-gradient(180deg, #fffaf4 0%, #fff2e7 100%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  overflow: hidden;
}

.onboarding-brand {
  display: flex;
  justify-content: center;
}

.onboarding-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.brand-pill--onboarding {
  min-height: 52px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.82);
}

.onboarding-main {
  display: grid;
  align-items: center;
}

.location-focus-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 170, 118, 0.24);
  border-radius: 32px;
  box-shadow: 0 32px 60px rgba(153, 110, 73, 0.16);
  padding: 34px 22px;
}

.location-focus-card::before {
  content: "";
  position: absolute;
  inset: auto -70px -90px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 188, 124, 0.24) 0%, rgba(255, 188, 124, 0) 72%);
  pointer-events: none;
}

.location-focus__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.location-focus-card h1 {
  max-width: 8ch;
  font-size: clamp(2.2rem, 8vw, 3rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.location-focus__copy {
  max-width: 18ch;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}

.location-focus-card .primary-button-lg {
  max-width: 280px;
  width: 100%;
  min-height: 56px;
}

.permission-card {
  background: rgba(255, 248, 240, 0.92);
  border-radius: 22px;
  border: 1px solid rgba(255, 185, 146, 0.22);
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}

.permission-card[data-tone="loading"] {
  background: rgba(255, 242, 232, 0.95);
}

.permission-card[data-tone="error"] {
  background: rgba(255, 239, 236, 0.95);
}

.permission-pill {
  display: none;
}

.permission-card h2 {
  font-size: 0.98rem;
  font-weight: 800;
}

.permission-card p {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.permission-card .ghost-button {
  justify-self: flex-start;
}

.onboarding-countdown-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 420px) {
  .onboarding-screen {
    padding-left: 22px;
    padding-right: 22px;
  }

  .location-focus-card {
    padding: 42px 28px;
  }
}
