.beach-loop {
  min-height: 100%;
  background:
    radial-gradient(circle at 50% -10%, rgba(39, 195, 165, 0.18), transparent 38%),
    var(--bg);
}

.beach-loop [hidden] {
  display: none !important;
}

.loop-shell {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 18px 14px 48px;
}

.loop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.loop-brand {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.loop-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-3));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 18px 18px;
  box-shadow: 0 22px 55px rgba(3, 12, 20, 0.32);
}

.loop-kicker {
  margin: 0 0 5px;
  color: var(--emerald);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.loop-card h1 {
  font-size: clamp(1.55rem, 7vw, 2.15rem);
  line-height: 1.08;
}

.loop-intro {
  margin: 8px 0 18px;
  color: var(--muted);
}

.prediction-list {
  display: grid;
  gap: 8px;
}

.prediction-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  padding: 11px 12px;
  background: var(--inset);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
}

.prediction-row strong {
  text-transform: capitalize;
}

.prediction-value {
  color: var(--text);
  font-weight: 800;
  text-transform: capitalize;
}

.prediction-note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.72rem;
}

.loop-muted {
  margin: 0;
  color: var(--muted);
}

.reality-flow {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

.here-button,
.difference-grid button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.here-button {
  min-height: 58px;
  background: var(--emerald);
  color: #05241f;
  font-size: 1.05rem;
}

.here-button:disabled {
  cursor: wait;
  filter: grayscale(0.7);
  opacity: 0.55;
}

.difference-step h2 {
  margin-bottom: 11px;
  font-size: 1.1rem;
}

.difference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.difference-grid button {
  min-height: 54px;
  padding: 9px;
  background: var(--panel-2);
  border-color: var(--border);
  font-size: 0.82rem;
}

.difference-grid button:first-child,
.difference-grid button:last-child {
  grid-column: 1 / -1;
}

.difference-grid button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.here-button:focus-visible,
.difference-grid button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.thanks-state {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 12px;
}

.thanks-state strong {
  color: var(--score-good);
  font-size: 1.05rem;
}

.thanks-state span,
.flow-status,
.privacy-note {
  color: var(--muted);
  font-size: 0.74rem;
}

.flow-status {
  min-height: 1.2em;
  margin: 10px 0 0;
}

.flow-status.is-error {
  color: var(--score-poor);
}

.privacy-note {
  margin: 14px 0 0;
  text-align: center;
}

/* Regional context strip — what we already know, above what we're asking.
   Chip-sized on purpose: this page is the capture instrument, and context
   must never push "I'm Here" below the fold. */
.area-strip {
  margin: 10px 0 2px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--inset);
}

.area-rings {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mini-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

/* Mini versions of the shared compass-tick gauge (styles.css owns the ring
   itself; these override only the size, like .dual-rings / .fishidx-band do). */
.area-strip .hero-gauge { width: 76px; height: 76px; }
.area-strip .hero-gauge .score-number { font-size: 1.3rem; }
.area-strip .hero-gauge .score-caption { font-size: 0.48rem; }

.mini-ring-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.area-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.area-strip .area-note {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 5px;
}

/* Place picker — switch between the V1 validation locations. */
.place-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
}

.place-chip {
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--inset);
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}

.place-chip.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #05241f;
  font-weight: 600;
}

/* Choose-mode: generic entries (nav / sticky bar) ask "Which beach are you
   at?" — the same picker renders as full-width tappable buttons. */
.place-picker.choose-mode {
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  margin-top: 14px;
}
.place-picker.choose-mode .place-chip {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #E7F0F7);
  padding: 14px 16px;
  border-radius: 12px;
  text-align: center;
  white-space: normal;
}
.place-picker.choose-mode .place-chip:hover {
  border-color: var(--emerald);
}

@media (max-width: 380px) {
  .difference-grid {
    grid-template-columns: 1fr;
  }

  .difference-grid button:first-child,
  .difference-grid button:last-child {
    grid-column: auto;
  }
}
