:root {
  --blue: #0b4db4;
  --blue-deep: #062a66;
  --blue-soft: #1a6cff;
  --ice: #e8f2ff;
  --ink: #f4f8ff;
  --muted: rgba(244, 248, 255, 0.62);
  --orange: #ff8a3d;
  --panel: rgba(8, 28, 68, 0.55);
  --font: "Noto Sans SC", "Outfit", system-ui, sans-serif;
  --display: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  --num: "Outfit", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--blue-deep);
  color: var(--ink);
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  padding:
    env(safe-area-inset-top, 0)
    env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.blob {
  pointer-events: none;
  position: fixed;
  border-radius: 50%;
  filter: blur(50px);
  z-index: 0;
}

.blob.a {
  width: 280px;
  height: 280px;
  top: -60px;
  right: -40px;
  background: rgba(26, 108, 255, 0.55);
  animation: floaty 9s ease-in-out infinite;
}

.blob.b {
  width: 320px;
  height: 320px;
  bottom: -80px;
  left: -60px;
  background: rgba(255, 138, 61, 0.22);
  animation: floaty 11s ease-in-out infinite reverse;
}

@keyframes floaty {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-12px, 18px); }
}

.app {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  margin: 0 auto;
  min-height: 100dvh;
  padding: 1.25rem 1.1rem 2rem;
}

.screen[hidden] { display: none !important; }

.screen {
  animation: rise 0.45s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.brand {
  font-family: var(--num);
  font-weight: 800;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: #8ec2ff;
  margin: 18vh 0 1rem;
  text-indent: 0.28em;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 11vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 0.85rem;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.hero-lead {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.fine {
  margin-top: 1.1rem;
  font-size: 0.72rem;
  color: rgba(244, 248, 255, 0.45);
  text-align: center;
  line-height: 1.5;
}

.btn {
  appearance: none;
  border: none;
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  font: 700 1rem var(--font);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn.primary {
  color: #062a66;
  background: linear-gradient(135deg, #fff7ef, #ffd7b0 40%, var(--orange));
  box-shadow: 0 12px 32px rgba(255, 138, 61, 0.35);
}

.btn.ghost {
  margin-top: 0.55rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.back {
  appearance: none;
  border: none;
  background: transparent;
  color: #8ec2ff;
  font: 700 0.9rem var(--font);
  cursor: pointer;
  margin-bottom: 1rem;
  padding: 0.35rem 0;
}

.sec-title {
  font-family: var(--display);
  font-size: 1.85rem;
  margin-bottom: 0.35rem;
}

.sec-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.field-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--panel);
  color: var(--ink);
  padding: 0.75rem 0.95rem;
  font: 600 0.95rem var(--font);
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: rgba(255, 138, 61, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.18);
}

.parks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.park {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  text-align: left;
  border-radius: 14px;
  padding: 0.7rem 0.75rem;
  cursor: pointer;
  min-height: 64px;
  transition: 0.15s ease;
}

.park strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.park em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.35;
}

.park.on {
  border-color: transparent;
  background: linear-gradient(145deg, rgba(26, 108, 255, 0.55), rgba(255, 138, 61, 0.28));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.card-wrap {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.card-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
}

.actions { margin-top: 0.25rem; }

@media (min-width: 720px) {
  body {
    background:
      radial-gradient(700px 400px at 70% 10%, rgba(26, 108, 255, 0.35), transparent 50%),
      radial-gradient(600px 400px at 10% 90%, rgba(255, 138, 61, 0.15), transparent 45%),
      var(--blue-deep);
  }

  .brand { margin-top: 12vh; }
}
