/* Help Zee Get to LYNQ or Treat. Mobile first, same palette and fonts as the site. */
:root {
  --pumpkin: #F07B22;
  --navy: #16294A;
  --deep-navy: #0F1D38;
  --night: #0b1428;
  --cream: #FCF3D8;
  --lime: #A2E068;
  --purple: #8E44D6;
  --ink: #0D0D10;
  --line: rgba(252, 243, 216, 0.16);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Nunito", sans-serif;
  background: radial-gradient(120% 60% at 50% 0%, #1d1440 0%, var(--night) 60%) fixed, var(--night);
  color: var(--cream);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}
h1, h2, h3, .btn, .slot-num, .tag { font-family: "Fredoka", sans-serif; }
a { color: var(--lime); }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { max-width: 520px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { padding: 14px 0 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.top a { color: var(--pumpkin); font-weight: 800; text-decoration: none; font-size: 0.95rem; }
.top .small-btn { background: none; border: 0; color: var(--cream); opacity: 0.8; font-weight: 700; font-size: 0.9rem; text-decoration: underline; padding: 8px 0; }

.reset-link { background: none; border: 0; color: var(--cream); opacity: 0.75; text-decoration: underline; font-weight: 700; padding: 12px; min-height: 44px; }

.hero { text-align: center; padding: 8px 0 4px; }
.hero h1 {
  font-family: "Creepster", "Fredoka", cursive; font-weight: 400;
  font-size: clamp(2.1rem, 10vw, 2.9rem); line-height: 1.05; color: var(--lime);
  letter-spacing: 0.02em; text-shadow: 0 3px 0 #000, 0 0 18px rgba(162, 224, 104, 0.35);
}
.hero h1 span { color: var(--pumpkin); }
.hero p { font-weight: 700; opacity: 0.9; margin-top: 6px; }

/* Five pail slots */
.slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 16px 0 6px; }
.slot {
  aspect-ratio: 1; border-radius: 16px; border: 3px dashed rgba(252, 243, 216, 0.35);
  display: grid; place-items: center; position: relative; background: rgba(255, 255, 255, 0.04);
}
.slot img { width: 78%; height: 78%; object-fit: contain; opacity: 0; transform: scale(0.4) rotate(-20deg); transition: all 0.5s cubic-bezier(.2, 1.6, .4, 1); }
.slot-num { position: absolute; font-size: 1.3rem; font-weight: 700; opacity: 0.45; }
.slot.is-on { border: 3px solid var(--lime); background: rgba(162, 224, 104, 0.14); }
.slot.is-on img { opacity: 1; transform: none; }
.slot.is-on .slot-num { display: none; }
.slot.is-new { animation: pop 0.8s ease 0.2s both; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.count-line { text-align: center; font-weight: 800; font-size: 1rem; opacity: 0.9; }

/* Cards */
.card {
  background: linear-gradient(180deg, var(--navy), var(--deep-navy));
  border: 2px solid var(--line); border-radius: 22px; padding: 18px 16px; margin: 16px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.tag { display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); background: var(--pumpkin); border-radius: 999px; padding: 3px 12px; }
.tag.lime { background: var(--lime); }
.rhyme { font-family: "Fredoka", sans-serif; font-size: 1.3rem; font-weight: 500; line-height: 1.35; margin: 12px 0 14px; }
.stop { display: flex; align-items: center; gap: 12px; background: var(--cream); color: var(--ink); border-radius: 16px; padding: 10px 12px; }
.stop-logo { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 12px; background: #fff; object-fit: contain; padding: 4px; }
.stop-badge { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 12px; background: var(--purple); color: #fff; display: grid; place-items: center; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.8rem; }
.stop h3 { font-size: 1.15rem; line-height: 1.2; }
.stop p { font-weight: 800; font-size: 0.95rem; color: #3a3a46; }

.peek { margin-top: 12px; font-size: 0.95rem; }
.peek summary { cursor: pointer; font-weight: 800; opacity: 0.85; padding: 6px 0; }
.peek p { margin-top: 4px; }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 56px; padding: 12px 18px; border-radius: 16px; border: 0;
  font-size: 1.15rem; font-weight: 700; text-decoration: none; text-align: center;
  background: var(--pumpkin); color: var(--ink); box-shadow: 0 4px 0 #9a4a0f;
}
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #9a4a0f; }
.btn.lime { background: var(--lime); box-shadow: 0 4px 0 #5f8f33; }
.btn.ghost { background: transparent; color: var(--cream); border: 2px solid var(--line); box-shadow: none; }
.btn[disabled] { opacity: 0.6; }
.btns { display: grid; gap: 12px; margin-top: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Found a sign */
.found h2 { font-size: 1.7rem; text-align: center; line-height: 1.15; color: var(--lime); }
.found .sub { text-align: center; font-weight: 800; margin-top: 2px; }
.chapter-img { border-radius: 18px; margin: 14px 0 10px; border: 3px solid var(--lime); aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; background: #111; }
.chapter-name { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--pumpkin); }
.story { font-size: 1.1rem; font-weight: 600; }
.note { background: rgba(162, 224, 104, 0.12); border: 2px solid rgba(162, 224, 104, 0.4); border-radius: 16px; padding: 12px 14px; margin-top: 14px; font-weight: 700; }
.oops { background: rgba(142, 68, 214, 0.18); border-color: rgba(142, 68, 214, 0.6); }

/* Finish */
.finish h2 { font-family: "Creepster", "Fredoka", cursive; font-weight: 400; font-size: clamp(2rem, 9.5vw, 2.7rem); color: var(--lime); text-align: center; line-height: 1.1; text-shadow: 0 3px 0 #000; }
.story-box { position: relative; border-radius: 18px; overflow: hidden; border: 3px solid var(--pumpkin); margin: 14px 0; background: #000; aspect-ratio: 1; }
.story-box video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.story-box.is-video { aspect-ratio: 16 / 9; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.is-on img { animation: kb 4.2s ease-out both; }
@keyframes kb { from { transform: scale(1.12); } to { transform: scale(1); } }
.slide p { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); font-weight: 800; font-size: 1rem; }
.slide p b { display: block; color: var(--lime); font-family: "Fredoka", sans-serif; font-size: 0.95rem; }

/* Form */
.form label { display: block; font-weight: 800; margin: 12px 0 4px; }
.form label small { font-weight: 600; opacity: 0.75; }
.form input[type=text], .form input[type=tel], .form input[type=email] {
  width: 100%; min-height: 52px; border-radius: 14px; border: 2px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-size: 17px; padding: 10px 14px;
}
.form input:focus { outline: 3px solid var(--lime); outline-offset: 1px; }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 700 !important; margin-top: 16px !important; }
.check input { width: 28px; height: 28px; flex: 0 0 28px; accent-color: var(--lime); margin-top: 2px; }
.privacy { font-size: 0.92rem; opacity: 0.9; margin-top: 12px; }
.form-msg { margin-top: 12px; font-weight: 800; min-height: 1.5em; }
.form-msg.err { color: #ffb4a0; }
.entered { text-align: center; }
.entered h3 { font-size: 1.5rem; color: var(--lime); }

/* Intro overlay */
.intro { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; align-items: center; justify-content: center; }
.intro video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.intro .play {
  position: absolute; left: 50%; bottom: calc(64px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(78vw, 320px); min-height: 72px; font-size: 1.3rem;
}
.intro .skip {
  position: absolute; right: 14px; top: calc(14px + env(safe-area-inset-top)); z-index: 2;
  background: rgba(0, 0, 0, 0.6); border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 999px;
  color: #fff; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.05rem; padding: 10px 20px; min-height: 48px;
}

/* Modals */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(5, 8, 18, 0.88); overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(16px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
.modal-inner { max-width: 520px; margin: 0 auto; background: linear-gradient(180deg, var(--navy), var(--deep-navy)); border: 2px solid var(--line); border-radius: 22px; padding: 18px 16px; position: relative; }
.modal h2 { font-size: 1.5rem; padding-right: 44px; color: var(--lime); }
.modal .x { position: absolute; right: 10px; top: 10px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.1); font-size: 1.8rem; line-height: 1; }
.steps { margin: 12px 0 4px 1.3em; font-weight: 700; }
.steps li { margin: 8px 0; }

/* Selfie */
.frames { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.frames button { flex: 0 0 auto; border: 2px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 0.92rem; min-height: 44px; }
.frames button.is-on { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.selfie-stage { margin: 10px 0; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 4 / 5; display: grid; place-items: center; }
.selfie-stage canvas, .selfie-stage img { width: 100%; height: 100%; object-fit: contain; -webkit-touch-callout: default; }
.selfie-empty { text-align: center; padding: 20px; opacity: 0.85; font-weight: 700; }
.selfie-empty img { width: 46%; margin: 0 auto 10px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; font-size: 100px; cursor: pointer; }
.stays { text-align: center; font-weight: 800; font-size: 0.95rem; margin-top: 10px; color: var(--lime); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(200%); opacity: 0; visibility: hidden; z-index: 60; background: var(--lime); color: var(--ink); font-weight: 800; padding: 12px 18px; border-radius: 14px; transition: transform 0.3s ease; max-width: 90vw; text-align: center; }
.toast.is-on { transform: translateX(-50%); opacity: 1; visibility: visible; }

/* Footer */
.foot { text-align: center; padding: 26px 16px 34px; border-top: 1px solid var(--line); margin-top: 26px; font-weight: 700; }
.foot .vg { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; margin-bottom: 10px; }
.foot a { color: var(--cream); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.foot a:hover { color: var(--lime); }
.foot .ig { width: 22px; height: 22px; }
.foot .site { color: var(--pumpkin); font-family: "Fredoka", sans-serif; font-size: 1.05rem; }
.foot .credit { font-size: 0.9rem; margin: 0; }
.foot .credit a { min-height: 36px; opacity: 0.9; }
.slide.end-card { background: radial-gradient(circle at 50% 40%, #1d1440, #0b1428); }
.slide.end-card img { object-fit: contain; height: 70%; margin: 6% auto 0; }
.slide.end-card.is-on img { animation: none; }
.slide.end-card p { background: none; text-align: center; }
.foot small { display: block; opacity: 0.6; margin-top: 4px; }

/* Rules page */
.rules h1 { font-size: 1.9rem; color: var(--lime); line-height: 1.15; margin: 10px 0 6px; }
.rules h2 { font-size: 1.2rem; color: var(--pumpkin); margin: 18px 0 4px; }
.rules p, .rules li { font-size: 1rem; }
.rules ul { margin-left: 1.2em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
