:root {
  --bg-start: #1b1030;
  --bg-end: #3a1b4d;
  --pink: #ff6fb0;
  --lilac: #c68cff;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #f5f0ff;
  --text-muted: #cbbfe0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(160deg, var(--bg-start), var(--bg-end) 60%, #241338);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  opacity: 0.12;
  font-size: 6rem;
  font-weight: bold;
  color: var(--pink);
  animation: float 14s ease-in-out infinite;
}

.shape.ball { top: 8%; left: 6%; animation-delay: 0s; }
.shape.code { top: 65%; left: 82%; font-size: 4rem; animation-delay: 2s; }
.shape.sigma { top: 20%; left: 85%; animation-delay: 4s; }
.shape.heart { top: 78%; left: 10%; color: var(--lilac); animation-delay: 6s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(8deg); }
}

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 8rem 1.5rem 2.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin: 0 0 1rem;
}

.highlight { color: var(--pink); }

.subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.6;
}

.about-details {
  margin: 2rem auto 0;
  max-width: 26rem;
}

.about-details summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--pink);
  color: var(--pink);
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.about-details summary::-webkit-details-marker {
  display: none;
}

.about-details summary::after {
  content: '▾';
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.about-details[open] summary::after {
  transform: rotate(180deg);
}

.about-details summary:hover {
  background: var(--pink);
  color: #1b1030;
}

.about-content {
  margin-top: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  text-align: left;
}

.about-content ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.scroll-cue {
  display: inline-block;
  margin-top: 3rem;
  color: var(--lilac);
  text-decoration: none;
  font-size: 0.95rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

main {
  position: relative;
  z-index: 1;
}

.match-section, .ask-section {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 5rem;
  text-align: center;
}

.match-section h2, .ask-section h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.75rem;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--pink);
}

.card .icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0.25rem 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.card .small {
  font-size: 0.85rem;
  opacity: 0.8;
}

.highlight-card {
  border-color: var(--pink);
  background: linear-gradient(160deg, rgba(255,111,176,0.12), rgba(198,140,255,0.08));
}

.cta-text {
  margin-top: 3rem;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.btn-primary {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, var(--pink), var(--lilac));
  color: #1b1030;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(255, 111, 176, 0.35);
}

.ask-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.ask-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 30rem;
  margin: 0 auto;
  text-align: left;
}

.ask-form label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.ask-form input,
.ask-form select,
.ask-form textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}

.ask-form input:focus,
.ask-form select:focus,
.ask-form textarea:focus {
  outline: none;
  border-color: var(--pink);
}

.ask-form select option {
  background: #2a1640;
  color: var(--text);
}

.map-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: -0.4rem 0 0;
}

#county-map {
  width: min(92vw, 44rem);
  aspect-ratio: 3 / 2;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
}

.leaflet-container {
  background: transparent;
  font-family: inherit;
  border-radius: 16px;
}

.leaflet-control-attribution {
  background: rgba(20, 10, 30, 0.6) !important;
  color: var(--text-muted) !important;
  font-size: 0.65rem !important;
}

.leaflet-control-attribution a {
  color: var(--lilac) !important;
}

.leaflet-control-zoom a {
  background: rgba(30, 15, 45, 0.9) !important;
  color: var(--text) !important;
  border-color: var(--card-border) !important;
}

.leaflet-control-zoom a:hover {
  background: var(--pink) !important;
  color: #1b1030 !important;
}

.leaflet-tooltip {
  background: rgba(30, 15, 45, 0.95) !important;
  color: var(--text) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.leaflet-tooltip-top:before {
  border-top-color: rgba(30, 15, 45, 0.95) !important;
}

.selection-hint {
  font-size: 0.9rem;
  color: var(--pink);
  margin: -0.4rem 0 0;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
}

.activity-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.activity-option:hover {
  border-color: var(--pink);
}

.activity-option.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.activity-option input {
  accent-color: var(--pink);
}

.form-success {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--pink);
  font-weight: 600;
}

.btn-secondary {
  display: inline-block;
  margin-top: 0.5rem;
  background: transparent;
  border: 1px solid var(--pink);
  color: var(--pink);
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  background: var(--pink);
  color: #1b1030;
}

.hidden { display: none; }

#fireworks-canvas {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.disclaimer {
  margin-top: 0.5rem;
  color: var(--pink);
}

@media (max-width: 600px) {
  .hero { padding: 5rem 1.25rem 4rem; }
  .shape { font-size: 3.5rem; }
}
