:root {
  --bg: #fffaf8;
  --surface: #ffffff;
  --surface-alt: #fff1ef;
  --ink: #1f1d2b;
  --muted: #6f6b7b;
  --brand: #ff4d5a;
  --brand-dark: #df3445;
  --gold: #ffbf47;
  --line: rgba(31, 29, 43, 0.09);
  --shadow: 0 20px 50px rgba(31, 29, 43, 0.08);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
a { color: inherit; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.announcement {
  text-align: center;
  font-size: 0.9rem;
  padding: 10px 16px;
  background: #211f30;
  color: #fff;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #ff6170, #ff3144);
  box-shadow: inset 0 2px 6px rgba(255,255,255,.35);
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}
.hero {
  padding: 56px 0 24px;
}
.hero-grid, .booking-grid, .qr-grid, .two-col {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero h1, h2 {
  line-height: 1.05;
  margin: 0 0 14px;
}
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); max-width: 13ch; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
.hero-copy, .section-copy { color: var(--muted); font-size: 1.07rem; line-height: 1.7; max-width: 64ch; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  color: var(--brand-dark);
  font-size: .8rem;
  margin-bottom: 14px;
}
.hero-actions, .filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.primary-btn, .secondary-btn, .ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.primary-btn { background: var(--brand); color: white; box-shadow: var(--shadow); }
.primary-btn:hover { background: var(--brand-dark); }
.secondary-btn, .ghost-btn {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
.small { padding: 10px 16px; }
.feature-chips {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.feature-chips li, .simple-list li {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
}
.hero-card, .stat-card, .tracker-card, .form-card, .qr-card, .location-panel, .machine-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card { padding: 18px; }
.machine-preview {
  padding: 18px;
  min-height: 430px;
  background: linear-gradient(180deg, #fff 0%, #fff4f3 100%);
}
.machine-top {
  border-radius: 20px 20px 14px 14px;
  padding: 24px;
  background: linear-gradient(135deg, #ff5c68, #ff3447);
  color: white;
  text-align: center;
}
.stars { color: #ffe09a; letter-spacing: .2em; margin-bottom: 10px; }
.machine-logo { font-size: 2.4rem; font-weight: 900; }
.machine-sub { opacity: .95; }
.machine-window {
  margin-top: 18px;
  min-height: 220px;
  border-radius: 18px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
  font-size: 2.4rem;
  gap: 12px;
}
.machine-cta { margin-top: 16px; color: var(--muted); text-align: center; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 20px auto 48px;
}
.stat-card {
  padding: 22px;
  display: grid;
  gap: 8px;
}
.stat-card strong { font-size: 1.5rem; }
.stat-card span { color: var(--muted); }
.section { padding: 78px 0; }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}
.filters select, .form-card input, .form-card textarea, .form-card select, .qr-label input, .modal-card input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font: inherit;
}
.locator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr);
  gap: 20px;
}
#map {
  height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.location-panel { padding: 18px; }
.location-list {
  display: grid;
  gap: 12px;
  max-height: 500px;
  overflow: auto;
  padding-right: 6px;
}
.location-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.location-item h4 { margin: 0 0 8px; }
.location-item p { margin: 4px 0; color: var(--muted); }
.tag {
  display: inline-block;
  margin-right: 8px;
  margin-top: 6px;
  padding: 7px 10px;
  background: #fff3d6;
  border-radius: 999px;
  font-size: .83rem;
}
.tracker-grid, .collectible-grid {
  display: grid;
  gap: 20px;
}
.tracker-grid { grid-template-columns: 1.2fr .8fr; }
.tracker-card, .form-card, .qr-card { padding: 22px; }
.progress-wrap {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: #ffe5e8;
  overflow: hidden;
  margin: 18px 0 10px;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff6673, #ff3347);
  border-radius: inherit;
}
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.check-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: white;
  display: grid;
  gap: 8px;
  cursor: pointer;
}
.check-card.active { outline: 2px solid var(--brand); background: #fff8f7; }
.check-card span:first-child { font-size: 1.7rem; }
.tiers {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.tiers li {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tier { width: 18px; height: 18px; border-radius: 999px; display: inline-block; }
.common { background: #ffb1b7; }
.rare { background: #7e8dff; }
.ultra { background: #ffc857; }
.legendary { background: #2ed3a2; }
.pull-result {
  margin-top: 16px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  padding: 20px;
  text-align: center;
  background: #fff;
}
.collectible-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}
.collectible-card {
  padding: 20px;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.collectible-card .badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #1f1d2b;
  color: white;
  font-size: .8rem;
}
.collectible-card h3 { margin: 14px 0 8px; }
.collectible-card p { color: var(--muted); }
.form-card { display: grid; gap: 14px; }
.form-card label { display: grid; gap: 8px; font-weight: 600; }
.form-note { color: var(--muted); font-size: .9rem; margin: 0; }
.simple-list { list-style: none; padding: 0; display: grid; gap: 12px; color: var(--muted); }
.qr-label { display: grid; gap: 8px; font-weight: 600; margin-bottom: 12px; }
.qr-card { display: grid; place-items: center; min-height: 280px; }
#qrcode { padding: 14px; border-radius: 18px; background: white; }
.site-footer {
  padding: 36px 0 50px;
  background: #201d2f;
  color: white;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 22px;
}
.footer-brand .brand-mark { background: linear-gradient(135deg, #ff6978, #ff4153); }
.modal {
  border: none;
  border-radius: 24px;
  padding: 0;
  width: min(520px, calc(100% - 24px));
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.modal::backdrop { background: rgba(20,18,31,.55); }
.modal-card { padding: 24px; position: relative; }
.close-modal {
  position: absolute;
  right: 14px;
  top: 14px;
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.hidden { display: none; }
.leaflet-popup-content-wrapper { border-radius: 16px; }
@media (max-width: 980px) {
  .hero-grid, .booking-grid, .qr-grid, .tracker-grid, .two-col, .locator-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats, .collectible-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head, .nav-wrap { align-items: start; flex-direction: column; }
  .nav { width: 100%; }
}
@media (max-width: 640px) {
  .stats, .collectible-grid, .sticker-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero h1 { max-width: none; }
  .section, .hero { padding-left: 0; padding-right: 0; }
  #map { height: 420px; }
}
