/* The home page. Fonts are the game's own, served from this site (no third parties). */
@font-face { font-family: "Lilita One"; src: url("fonts/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Variable.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

body.home { display: block; padding: 0; margin: 0; text-align: center; overflow-x: hidden;
            font-family: "Nunito", -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 700;
            background: #2B211B; }
body.home section { position: relative; padding: 96px 16px; }
.big, .huge { font-family: "Lilita One", sans-serif; font-weight: 400; color: var(--cream); line-height: 1.02;
              margin: 0 auto 14px; letter-spacing: 0.01em; text-shadow: 0 5px 0 #120C09; }
.big { font-size: clamp(40px, 7.5vw, 84px); max-width: 900px; }
.huge { font-size: clamp(36px, 10.5vw, 170px); white-space: nowrap; }
.yellow { color: var(--mustard); }
.kicker { margin: 0 0 8px; color: var(--mustard); font-weight: 900; text-transform: uppercase; letter-spacing: 0.14em; font-size: 14px; }
.sub { max-width: 560px; margin: 0 auto; font-size: clamp(17px, 2.2vw, 21px); color: #E8DCC4; }
.button { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 24px; letter-spacing: 0.02em; cursor: pointer; }
.button.inline { display: inline-block; margin: 0; padding: 12px 22px; font-size: 20px; }
.ghost { font: 800 16px "Nunito", sans-serif; color: var(--cream); background: rgba(255,244,220,0.12); border: 2px solid rgba(255,244,220,0.5);
         border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.ghost:hover { background: rgba(255,244,220,0.22); }

/* ---------- 1. The hunt ---------- */
.hunt { height: 100vh; height: 100svh; min-height: 560px; padding: 0 !important; overflow: hidden; cursor: none; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.hunt-park { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; pointer-events: none; }
.hunt-dark { position: absolute; inset: 0; background: rgba(18, 12, 9, 0.62); pointer-events: none; transition: opacity 0.6s;
             -webkit-mask-image: radial-gradient(circle var(--r, 130px) at var(--lx, 26%) var(--ly, 24%), transparent 97%, #000 100%);
                     mask-image: radial-gradient(circle var(--r, 130px) at var(--lx, 26%) var(--ly, 24%), transparent 97%, #000 100%); }
.hunt-lens { position: absolute; left: var(--lx, 26%); top: var(--ly, 24%); width: calc(var(--r, 130px) * 2); height: calc(var(--r, 130px) * 2);
             box-sizing: content-box; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; transition: opacity 0.4s;
             border: 16px solid var(--mustard); background: rgba(169, 212, 220, 0.16);
             box-shadow: 0 0 0 6px #3B2A1E, inset 0 0 0 5px #3B2A1E, inset 0 -10px 24px rgba(59,42,30,0.18), 0 16px 0 6px rgba(18,12,9,0.45); }
.hunt-lens::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 9px solid transparent;
                     border-top-color: rgba(255,255,255,0.85); border-left-color: rgba(255,255,255,0.85); transform: rotate(-20deg);
                     -webkit-mask-image: linear-gradient(135deg, #000 30%, transparent 55%); mask-image: linear-gradient(135deg, #000 30%, transparent 55%); }
.hunt-lens::after { content: ""; position: absolute; width: 34px; height: calc(var(--r, 130px) * 0.95); border-radius: 18px;
                    background: repeating-linear-gradient(0deg, #F2B33D 0 9px, #C98A22 9px 13px) bottom / 100% 62% no-repeat, var(--mustard);
                    border: 6px solid #3B2A1E; left: calc(50% + (var(--r, 130px) + 14px) * 0.707); top: calc(50% + (var(--r, 130px) + 14px) * 0.707);
                    transform: translate(-50%, 0) rotate(-45deg); z-index: -1;
                    transform-origin: top center; box-shadow: 0 8px 0 rgba(18,12,9,0.45); }
.hunt.found .hunt-dark, .hunt.found .hunt-lens { opacity: 0; }
.hunt.found { cursor: default; }
.hunt-ring { position: absolute; border-radius: 50%; border: 9px solid var(--mustard); box-shadow: 0 6px 0 #3B2A1E, inset 0 6px 0 rgba(59,42,30,0.6);
             transform: translate(-50%, -50%) scale(0); transition: transform 0.45s cubic-bezier(.3,1.6,.5,1); pointer-events: none; }
.hunt.found .hunt-ring { transform: translate(-50%, -50%) scale(1); }
.hunt.hinting .hunt-ring { transform: translate(-50%, -50%) scale(1); border-color: rgba(255,199,68,0.9); border-style: dashed; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.miss { position: absolute; font: 900 54px "Nunito"; color: #E2603F; text-shadow: 0 4px 0 #3B2A1E; transform: translate(-50%, -50%);
        pointer-events: none; animation: miss 0.7s forwards; }
@keyframes miss { 0% { transform: translate(-50%, -50%) scale(1.8); } 25% { transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -80%); } }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.topbar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
          padding: max(14px, env(safe-area-inset-top)) 20px 14px; pointer-events: none; }
.toplogo { width: 130px; filter: drop-shadow(0 4px 0 #120C09); }
.pill { pointer-events: auto; cursor: pointer; font: 900 15px "Nunito"; color: #3B2A1E; background: var(--mustard); border: 3px solid #3B2A1E;
        border-radius: 999px; padding: 8px 16px; text-decoration: none; box-shadow: 0 4px 0 #3B2A1E; }

.hunt-card { position: absolute; left: 20px; bottom: 28px; max-width: 520px; text-align: left; padding: 22px 24px 20px;
             background: rgba(43, 33, 27, 0.86); border: 3px solid #120C09; border-radius: 28px; box-shadow: 0 8px 0 #120C09;
             backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: default; }
.hunt-card .big { font-size: clamp(38px, 5.4vw, 66px); margin: 0 0 10px; text-align: left; }
.hunt-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.mini-hood { width: 44px; height: 76px; object-fit: contain; }
.hint { margin: 0; color: #E8DCC4; font-size: 16px; flex: 1; min-width: 200px; }
.timer { font: 400 30px "Lilita One"; color: var(--mustard); min-width: 96px; font-variant-numeric: tabular-nums; }
.scroll-cue { position: absolute; right: 22px; bottom: 26px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
              background: var(--cream); color: #3B2A1E; font: 900 26px "Nunito"; text-decoration: none; border: 3px solid #3B2A1E;
              box-shadow: 0 4px 0 #3B2A1E; animation: bob 1.6s ease-in-out infinite; cursor: pointer; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- 2. Band ---------- */
.band { background: var(--mustard); border-top: 4px solid #3B2A1E; border-bottom: 4px solid #3B2A1E; overflow: hidden;
        transform: rotate(-2deg) scale(1.04); margin: -18px 0; position: relative; z-index: 2; box-shadow: 0 8px 0 #120C09; }
.band-track { display: flex; width: max-content; animation: band 26s linear infinite; padding: 14px 0; }
.band-track span { font: 400 30px "Lilita One"; color: #3B2A1E; white-space: nowrap; padding-right: 28px; }
@keyframes band { to { transform: translateX(-50%); } }

/* ---------- 3. Lineup ---------- */
.lineup { background: radial-gradient(circle at 50% 0%, #4A372C, #2B211B 70%); padding-top: 120px !important; }
.stage { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.8vw, 20px); max-width: 1000px; margin: 40px auto 0;
         padding: clamp(16px, 3vw, 34px); border: 4px solid #3B2A1E; border-radius: 36px; box-shadow: 0 10px 0 #120C09;
         background: linear-gradient(rgba(43,33,27,0.45), rgba(43,33,27,0.7)), url("media/park-classic.jpg") 40% 60% / 180% auto; }
.stage button { position: relative; cursor: pointer; border: 4px solid #3B2A1E; border-radius: 24px; padding: 26px 6px 12px;
                background: radial-gradient(ellipse 55% 9% at 50% 90%, rgba(59,42,30,0.22), transparent 70%), var(--cream);
                box-shadow: 0 7px 0 #3B2A1E; transition: transform 0.2s, background-color 0.2s; }
.stage button:nth-child(odd) { transform: rotate(-2deg); }
.stage button:nth-child(even) { transform: rotate(2deg); }
.stage button:hover { transform: translateY(-10px) rotate(0deg); }
.stage button::before { content: attr(data-n); position: absolute; top: 8px; left: 10px; width: 28px; height: 28px; border-radius: 50%;
                        background: var(--mustard); border: 3px solid #3B2A1E; font: 400 16px/22px "Lilita One"; color: #3B2A1E; }
.stage img { display: block; width: 100%; height: clamp(110px, 16vw, 170px); object-fit: contain; }
.stage button.wrong { animation: shake 0.4s; background-color: #E6DCC8; }
.stage button.wrong img { filter: grayscale(0.85); opacity: 0.45; }
.stage button.wrong::after { content: "✕"; position: absolute; inset: 0; display: grid; place-items: center; font: 900 clamp(60px, 9vw, 110px) "Nunito";
                             color: #E2603F; text-shadow: 0 5px 0 #3B2A1E; }
.stage button.right { background-color: var(--mustard); background-image: none; transform: translateY(-12px) scale(1.06);
                      box-shadow: 0 7px 0 #3B2A1E, 0 0 0 8px rgba(255,199,68,0.35), 0 0 50px rgba(255,199,68,0.6); }
.stage button.right::after { content: attr(data-yes); position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%) rotate(-6deg);
                             font: 400 22px "Lilita One"; color: #3B2A1E; background: var(--cream); border: 3px solid #3B2A1E; border-radius: 12px; padding: 2px 12px; }
@keyframes shake { 25% { transform: translateX(-8px) rotate(-4deg); } 75% { transform: translateX(8px) rotate(4deg); } }
.verdict { min-height: 34px; margin: 22px 0 0; font: 400 28px "Lilita One"; color: var(--mustard); }

/* ---------- 4. Watch ---------- */
.watch { display: flex; gap: 60px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: left; }
.watch-text { max-width: 440px; }
.watch-text .big { text-align: left; margin-left: 0; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { font-size: 19px; color: #E8DCC4; margin: 12px 0; padding-left: 38px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--mustard);
                    color: #3B2A1E; display: grid; place-items: center; font-weight: 900; font-size: 15px; border: 2px solid #3B2A1E; }
.phone { position: relative; width: min(320px, 80vw); padding: 4px; border-radius: 58px;
         background: linear-gradient(145deg, #8d8d93, #3a3a3e 22%, #1f1f22 50%, #3a3a3e 78%, #9a9aa0);
         box-shadow: 0 40px 70px rgba(0,0,0,0.55), 0 0 0 1px #0d0d0f; }
.phone::before, .phone::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #6f6f75, #2b2b2e); }
.phone::before { left: -4px; top: 21%; height: 9%; box-shadow: 0 calc(min(320px, 80vw) * 0.24) 0 #4a4a4f, 0 calc(min(320px, 80vw) * 0.42) 0 #4a4a4f; }
.phone::after { right: -4px; top: 30%; height: 14%; }
.bezel { position: relative; padding: 10px; border-radius: 54px; background: #050505; }
/* The video is 9:16; a 9:17.5 screen still reads as a phone and only trims a sliver at the sides, never the titles. */
.bezel video { display: block; width: 100%; aspect-ratio: 9 / 17.5; border-radius: 44px; object-fit: cover; background: #1A1411; }
.island { position: absolute; top: 22px; left: 50%; width: 30%; height: 26px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.sound { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); font: 800 15px "Nunito"; border: 2px solid #3B2A1E;
         background: var(--cream); color: #3B2A1E; border-radius: 999px; padding: 8px 14px; cursor: pointer; box-shadow: 0 3px 0 #3B2A1E; }

/* ---------- 5. Daily ---------- */
.daily { display: flex; gap: 60px; align-items: center; justify-content: center; flex-wrap: wrap-reverse; }
.daily-text { max-width: 520px; text-align: left; }
.daily-text .big, .daily-text .sub { text-align: left; margin-left: 0; }
.daily-card { max-width: 360px; background: var(--cream); color: #3B2A1E; border: 4px solid #3B2A1E; border-radius: 30px; padding: 26px 34px; box-shadow: 0 10px 0 #120C09;
              transform: rotate(-4deg); }
.daily .daily-card p, .daily .daily-card .daily-n, .daily .daily-card .daily-score { color: #3B2A1E; }
.daily-n { font: 400 30px "Lilita One"; margin: 0; }
.daily-key { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 14px 0 0; padding-top: 12px;
             border-top: 2px dashed rgba(59,42,30,0.25); font-size: 14px; font-weight: 800; color: #7D6A5C !important; }
.daily-grid { font-size: 40px; letter-spacing: 4px; margin: 10px 0; }
.daily-score { margin: 0; font-size: 20px; font-weight: 900; }

/* ---------- 6. Party ---------- */
.party { background: none; }
.tv { width: min(760px, 92vw); margin: 34px auto 0; padding: 14px; background: #120C09; border: 4px solid #3B2A1E; border-radius: 26px;
      box-shadow: 0 10px 0 #0b0705; }
.tv-screen { aspect-ratio: 16 / 9; border-radius: 14px; background: url("media/park-classic.jpg") 30% 40% / 260% auto; position: relative; overflow: hidden; }
.tv-pin { position: absolute; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: translate(-50%, -100%) rotate(-45deg) scale(0);
          border: 3px solid #3B2A1E; transition: transform 0.35s cubic-bezier(.3,1.6,.5,1); }
.tv-pin.on { transform: translate(-50%, -100%) rotate(-45deg) scale(1); }
.phones { display: flex; justify-content: center; gap: clamp(8px, 3vw, 28px); margin: 34px auto 26px; }
.mini-phone { width: clamp(64px, 16vw, 110px); aspect-ratio: 9 / 17; background: var(--cream); border: 4px solid #3B2A1E; border-radius: 20px;
              box-shadow: 0 6px 0 #120C09; display: grid; place-items: center; transform: translateY(30px); opacity: 0;
              transition: transform 0.5s cubic-bezier(.3,1.6,.5,1), opacity 0.3s; }
.mini-phone img { width: 70%; }
.mini-phone.on { transform: none; opacity: 1; }

/* ---------- 7. Winter ---------- */
.winter { min-height: 92vh; overflow: hidden; display: grid; place-items: center; padding: 0 16px !important; }
.winter-park { position: absolute; inset: -10% -4%; background: url("media/park-winter.jpg") center / cover; transform: translateY(var(--par, 0px)); }
.winter::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(20,35,60,0.6) 0%, rgba(20,35,60,0.35) 45%, rgba(20,30,50,0.65) 100%); }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.winter-text { position: relative; z-index: 2; width: 100%; max-width: 900px; min-width: 0; }
.winter .huge { color: #fff; text-shadow: 0 6px 0 #29405e, 0 0 40px rgba(170,210,255,0.6); }
.winter .kicker { color: #CFE8FF; }
.winter .sub { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }

/* ---------- 8. Get ---------- */
.get { padding-bottom: 0 !important; overflow: hidden; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: 720px; margin: 34px auto; text-align: left; }
.plan { background: var(--cream); color: #3B2A1E; border: 4px solid #3B2A1E; border-radius: 26px; box-shadow: 0 8px 0 #120C09; padding: 20px 24px; }
.plan.plus { background: var(--mustard); transform: rotate(1.5deg); }
.plan h3 { font: 400 30px "Lilita One"; margin: 0 0 4px; }
.plan .price { margin: 0 0 6px; font-weight: 900; color: #3B2A1E; }
.plan ul { margin: 6px 0 0; padding-left: 20px; }
.plan li { margin: 5px 0; }
.get .button { max-width: 380px; }
.facts { font-size: 15px; color: #C9B9A2; }
.links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 26px 0 30px; }
.links a { color: #3B2A1E; background: var(--cream); border: 3px solid #3B2A1E; border-radius: 999px; padding: 8px 18px; font-weight: 900;
           text-decoration: none; box-shadow: 0 4px 0 #3B2A1E; }
/* The park peeks over the footer: everyone pops up from behind its edge, Hood in the middle. */
.crowd { display: flex; justify-content: center; align-items: flex-end; height: 156px; margin: 20px -16px 0; overflow: hidden; }
.crowd img { height: 120px; margin: 0 -6px; flex: none; transform: translateY(44px); cursor: pointer;
             transition: transform 0.35s cubic-bezier(.3,1.6,.5,1); }
.crowd img.flip { scale: -1 1; }
.crowd img.star { height: 140px; margin: 0 6px; z-index: 2; transform: translateY(36px); }
.crowd img:hover { transform: translateY(6px) rotate(-3deg); }
body.home footer { padding: 26px 16px 40px; background: #1d1612; position: relative; border-top: 4px solid #3B2A1E; }
body.home footer, body.home footer a { color: #C9B9A2; }

/* ---------- Scroll-in ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 700px) {
  .stage { grid-template-columns: repeat(3, 1fr); }
  .crowd { height: 128px; }
  .crowd img { height: 96px; margin: 0 -8px; transform: translateY(36px); }
  .crowd img.star { height: 112px; transform: translateY(30px); }
  .hunt-card { left: 10px; right: 10px; bottom: 12px; padding: 16px 18px 14px; border-radius: 22px; }
  .hint { font-size: 14px; min-width: 0; }
  .mini-hood { width: 32px; height: 56px; }
  .scroll-cue { display: none; }
  .toplogo { width: 100px; }
  body.home section { padding: 72px 16px; }
  .watch, .daily { gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .band-track, .scroll-cue, .hunt.hinting .hunt-ring { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
