:root {
  --bg-top: #05111a;
  --bg-mid: #081621;
  --bg-bottom: #041018;
  --text: #f5f4ef;
  --muted: rgba(245,244,239,0.72);
  --border: rgba(255,255,255,0.10);
  --shadow: 0 18px 50px rgba(0,0,0,0.34);
  --teal: #00c3b4;
  --cyan: #67e8f9;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(ellipse at bottom, rgba(0,195,180,0.09) 0%, transparent 42%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bottom) 100%);
  color: var(--text);
  font-family: "Source Sans 3", sans-serif;
  display: flex;
  justify-content: center;
  padding: 20px 14px 72px;
  overflow-x: hidden;
  position: relative;
}

.bg-soft-glow,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.park-silhouette,
.park-ground {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.bg-soft-glow {
  z-index: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(0,195,180,0.08), transparent 32%),
    radial-gradient(circle at 78% 20%, rgba(86,150,255,0.05), transparent 28%);
  opacity: 0.9;
}

.grain {
  z-index: 0;
  opacity: 0.025;
  background-image:
    linear-gradient(transparent 0, transparent 49%, rgba(255,255,255,0.2) 50%, transparent 51%, transparent 100%);
  background-size: 100% 4px;
  mix-blend-mode: soft-light;
}

.park-silhouette {
  z-index: 0;
  height: 240px;
  opacity: 0.98;
}

.park-silhouette svg {
  width: 100%;
  height: 100%;
  display: block;
}

.park-ground {
  z-index: 0;
  height: 116px;
  background: linear-gradient(to top, rgba(3,10,16,0.97), rgba(3,10,16,0.82) 44%, transparent 100%);
}

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.header {
  padding: 8px 6px 4px;
}

.title {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #f1fffd 10%, #baf6ef 48%, #00c3b4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
          background-clip: text;
}

.tagline {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 460px;
  margin-inline: auto;
}

.primary-btn {
  margin-top: 22px;
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #00c3b4 0%, #19d3c6 100%);
  color: white;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,195,180,0.22);
  font-family: inherit;
  font-weight: 700;
}

.loading-state {
  margin-top: 14px;
  color: #93f5ea;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.card,
.nearby-section {
  margin-top: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.055));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  text-align: left;
}

.card.reveal {
  animation: revealCard 0.35s ease;
}

@keyframes revealCard {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  display: none;
}

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

.trust-badge {
  flex-shrink: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,195,180,0.10);
  border: 1px solid rgba(186,246,239,0.16);
  color: #93f5ea;
  font-size: 0.78rem;
  font-weight: 700;
}

#parkName {
  margin: 0 0 4px;
  font-size: 1.8rem;
  line-height: 1.1;
}

.park-city {
  margin: 0;
  color: rgba(245,244,239,0.58);
  font-size: 0.95rem;
}

.status.open { color: #34d399; }
.status.closed { color: #f87171; }
.status.soon { color: #fbbf24; }

#status {
  margin: 12px 0 8px;
  font-weight: 700;
  font-size: 1.05rem;
}

#hours,
#message {
  color: rgba(245,244,239,0.80);
  margin: 6px 0 0;
  line-height: 1.45;
}

.insight-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0,195,180,0.10);
  border: 1px solid rgba(186,246,239,0.14);
}

.insight-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93f5ea;
  margin-bottom: 6px;
}

.insight-text {
  font-size: 18px;
  font-weight: 800;
  color: white;
}

.insight-reason {
  margin-top: 6px;
  color: rgba(245,244,239,0.76);
  font-size: 13px;
  line-height: 1.4;
}

.main-weather {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.weather-main-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.weather-icon {
  font-size: 22px;
}

.weather-temp {
  font-size: 24px;
  font-weight: 800;
  color: var(--cyan);
}

.weather-condition {
  color: #e2f3f3;
  font-size: 15px;
}

.weather-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: rgba(245,244,239,0.74);
  font-size: 13px;
}

.nearby-section h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-weight: 700;
}

.nearby-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nearby-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}

.nearby-name {
  font-weight: 700;
}

.nearby-distance {
  color: var(--cyan);
  font-size: 14px;
  text-align: right;
}

.nearby-hours {
  color: rgba(245,244,239,0.72);
  font-size: 13px;
  grid-column: 1 / 3;
}

.nearby-weather {
  color: rgba(245,244,239,0.86);
  font-size: 13px;
  grid-column: 1 / 3;
}

.footer {
  text-align: center;
  padding-top: 14px;
  font-size: 0.78rem;
  color: rgba(245,244,239,0.36);
}

@media (max-width: 640px) {
  body { padding: 16px 10px 52px; }
  .header { padding-top: 4px; }
  .tagline { font-size: 0.96rem; max-width: 32ch; }
  .park-silhouette { height: 168px; }
  .park-ground { height: 90px; }
  .card, .nearby-section { border-radius: 18px; padding: 14px; }
  #parkName { font-size: 1.5rem; }
  .weather-temp { font-size: 22px; }
  .park-header { flex-direction: column; }
  .trust-badge { align-self: flex-start; }
}
