:root {
  --ink: #3B2A33; --cream: #FFF4DE; --cream-2: #FFFDF7; --ketchup: #E8423A; --ketchup-d: #B32A2A;
  --mustard: #F9B928; --mint: #5CD6B5; --teal: #2E9C9F; --teal-d: #1F6F73; --sky: #4AA8F0;
  --bg-top: #C9EEE8; --bg-bot: #86D1CB; --green: #4CCB6A; --green-d: #2F9E4E; --gold: #FFD54A;
  --radius: 28px; --shadow: 0 10px 0 rgba(59, 42, 51, .18), 0 24px 40px rgba(59, 42, 51, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--cream); font-family: "Nunito", system-ui, sans-serif; font-weight: 700;
  line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, .btn, .brand span, .num, .tag { font-family: "Lilita One", system-ui, sans-serif; font-weight: 400; letter-spacing: .3px; }
h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; text-align: center; margin: 0 0 14px; }
.sub { text-align: center; margin: 0 auto 36px; max-width: 560px; opacity: .8; }
section { padding: clamp(64px, 9vw, 120px) clamp(16px, 5vw, 64px); position: relative; }

/* ---------- buttons (candy style, same as the game) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  font-size: 26px; color: #fff; padding: 18px 40px; border-radius: 999px; border: 4px solid var(--ink);
  background: linear-gradient(#7fe39a, var(--green) 55%, #3fb35c); box-shadow: 0 8px 0 var(--green-d), 0 8px 0 3px var(--ink), 0 18px 30px rgba(0,0,0,.18);
  text-shadow: 0 3px 0 rgba(59,42,51,.45); transition: transform .15s ease, box-shadow .15s ease; position: relative;
}
.btn::after { content: ""; position: absolute; left: 14%; right: 14%; top: 6px; height: 34%; border-radius: 999px; background: linear-gradient(rgba(255,255,255,.65), rgba(255,255,255,0)); }
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn:active { transform: translateY(5px); box-shadow: 0 3px 0 var(--green-d), 0 3px 0 3px var(--ink); }
.btn-small { font-size: 18px; padding: 10px 22px; box-shadow: 0 5px 0 var(--green-d), 0 5px 0 3px var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px); background: rgba(255, 244, 222, .82); backdrop-filter: blur(14px); border-bottom: 3px solid rgba(59,42,51,.08);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 10px; box-shadow: 0 3px 0 rgba(59,42,51,.25); }
.brand span { font-size: 24px; }
.links { display: flex; gap: 28px; }
.links a { text-decoration: none; font-weight: 800; opacity: .8; }
.links a:hover { opacity: 1; color: var(--ketchup); }
@media (max-width: 820px) { .links { display: none; } }

/* ---------- hero ---------- */
.hero {
  min-height: min(calc(100vh - 64px), 940px); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; overflow: hidden;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.55), transparent 50%), linear-gradient(var(--bg-top), var(--bg-bot));
  padding-bottom: 160px;
}
.hero::before { /* diner wall tiles */
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.35) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.35) 2px, transparent 2px);
  background-size: 72px 72px;
}
.floor {
  position: absolute; left: -5%; right: -5%; bottom: 0; height: 150px; transform: perspective(500px) rotateX(48deg); transform-origin: bottom;
  background: repeating-conic-gradient(var(--cream) 0 25%, #F2B8A8 0 50%) 0 0 / 120px 120px; border-top: 16px solid var(--ketchup);
}
.hero-copy { position: relative; z-index: 2; max-width: 640px; }
.logo { width: min(520px, 88vw); filter: drop-shadow(0 10px 0 rgba(59,42,51,.18)); }
.wobble { animation: wobble 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes wobble { 0%,100% { transform: rotate(-2deg) } 50% { transform: rotate(2.5deg) translateY(-4px) } }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; margin: 10px 0 18px; color: var(--cream); text-shadow: 0 4px 0 var(--ink), 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 -3px 0 var(--ink), 0 10px 0 rgba(59,42,51,.25); }
h1 span { color: var(--mustard); }
.lead { font-size: clamp(17px, 2vw, 20px); max-width: 560px; margin: 0 0 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 16px; border-radius: 16px; text-decoration: none;
  background: var(--ink); color: #fff; border: 3px solid var(--ink); box-shadow: 0 6px 0 rgba(0,0,0,.25); transition: transform .15s;
}
.store:hover { transform: translateY(-3px); }
.store svg { width: 30px; height: 30px; fill: #fff; }
.store span { display: flex; flex-direction: column; font-family: "Lilita One"; font-size: 22px; line-height: 1.05; }
.store small { font-family: "Nunito"; font-weight: 800; font-size: 11px; letter-spacing: 1px; opacity: .8; }
.store.soon { opacity: .6; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 900; font-size: 14px; box-shadow: 0 4px 0 rgba(59,42,51,.2); }
.hero-phone { position: relative; z-index: 2; display: flex; justify-content: center; }
.phone {
  width: min(330px, 78vw); aspect-ratio: 9 / 19.5; border-radius: 48px; padding: 12px; background: var(--ink);
  box-shadow: 0 0 0 4px #5a4651 inset, 0 30px 60px rgba(59,42,51,.35), 0 12px 0 rgba(59,42,51,.25); transform: rotate(3deg);
  animation: float 6s ease-in-out infinite;
}
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: #86D1CB; }
@keyframes float { 0%,100% { transform: rotate(3deg) translateY(0) } 50% { transform: rotate(1deg) translateY(-14px) } }
.wob-peek { position: absolute; width: 170px; left: max(-20px, calc(50% - 280px)); bottom: -40px; animation: peek 4s ease-in-out infinite; filter: drop-shadow(0 8px 0 rgba(59,42,51,.2)); }
@keyframes peek { 0%,100% { transform: rotate(-6deg) } 50% { transform: rotate(6deg) translateY(-8px) } }
.floaties { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.floaties img { position: absolute; left: var(--x); top: var(--y); width: clamp(60px, 8vw, 110px); transform: rotate(var(--r)); animation: drift 7s ease-in-out infinite; animation-delay: var(--d); opacity: .95; z-index: 1; filter: drop-shadow(0 6px 0 rgba(59,42,51,.15)); }
@keyframes drift { 0%,100% { transform: translateY(0) rotate(var(--r)) } 50% { transform: translateY(-22px) rotate(calc(var(--r) + 10deg)) } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-copy { margin: 0 auto; } .stores, .chips { justify-content: center; } .lead { margin-left: auto; margin-right: auto; }
  .logo { margin: 0 auto; } .wob-peek { width: 120px; left: 4%; }
}

/* ---------- how ---------- */
.how { background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 40px auto 0; }
.step { background: #fff; border: 4px solid var(--ink); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); position: relative; text-align: center; transition: transform .2s; }
.step:hover { transform: translateY(-6px) rotate(-1deg); }
.step img { width: 130px; height: 120px; object-fit: contain; margin: 0 auto 6px; }
.step h3 { font-size: 30px; margin: 6px 0; }
.num { position: absolute; top: -22px; left: 22px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: #fff; background: var(--ketchup); border: 4px solid var(--ink); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 1100px; margin: 0 auto; padding-top: 0; }
.feature { display: flex; gap: 20px; align-items: center; background: linear-gradient(#fff, var(--cream-2)); border: 4px solid var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature img { width: 110px; height: 110px; object-fit: contain; flex: none; }
.feature h3 { font-size: 26px; margin: 0 0 6px; }
.feature p { margin: 0; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* ---------- screens ---------- */
.screens { background: linear-gradient(var(--teal), var(--teal-d)); color: #fff; overflow: hidden; }
.screens h2 { color: var(--cream); text-shadow: 0 4px 0 var(--ink); }
.rail { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px max(16px, calc(50% - 560px)) 40px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail figure { flex: 0 0 auto; width: min(260px, 66vw); margin: 0; scroll-snap-align: center; text-align: center; }
.rail img { width: 100%; aspect-ratio: 9 / 20; object-fit: cover; border-radius: 30px; border: 8px solid var(--ink); box-shadow: 0 20px 40px rgba(0,0,0,.3); transition: transform .25s; }
.rail figure:hover img { transform: translateY(-8px) rotate(-1.5deg); }
.rail figcaption { margin-top: 14px; font-family: "Lilita One"; font-size: 22px; color: var(--cream); }
.rail-nav { display: flex; justify-content: center; gap: 14px; }
.arrow { width: 56px; height: 56px; border-radius: 50%; border: 4px solid var(--ink); background: var(--mustard); color: var(--ink); font: 900 32px/1 "Nunito"; cursor: pointer; box-shadow: 0 5px 0 rgba(0,0,0,.25); }
.arrow:active { transform: translateY(3px); }

/* ---------- restaurants ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1150px; margin: 40px auto 0; }
.rest {
  min-height: 340px; border-radius: var(--radius); border: 4px solid var(--ink); padding: 26px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(transparent 35%, rgba(255,255,255,.95) 75%), var(--bg) center/cover; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.rest h3 { font-size: 34px; margin: 6px 0 4px; color: var(--c); }
.rest p { margin: 0; }
.tag { position: absolute; top: 18px; left: 18px; background: var(--c); color: #fff; border: 3px solid var(--ink); padding: 4px 12px; border-radius: 999px; font-size: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ---------- regulars ---------- */
.regulars { background: linear-gradient(#FFE9A8, var(--cream)); }
.people { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; max-width: 1150px; margin: 0 auto; }
.people figure { margin: 0; background: #fff; border: 4px solid var(--ink); border-radius: 24px; padding: 14px 10px 16px; text-align: center; box-shadow: var(--shadow); transition: transform .2s; }
.people figure:hover { transform: translateY(-6px) rotate(2deg); }
.people img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.people b { display: block; font-family: "Lilita One"; font-weight: 400; font-size: 20px; }
.people figcaption { font-size: 14px; }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .people { grid-template-columns: repeat(2, 1fr); } }

/* ---------- trailer ---------- */
.trailer { background: var(--ink); color: var(--cream); }
.trailer h2 { color: var(--cream); }
.tv { max-width: 980px; margin: 30px auto 0; border-radius: 30px; overflow: hidden; border: 8px solid #5a4651; box-shadow: 0 30px 60px rgba(0,0,0,.4); background: #000; }
.tv video { width: 100%; display: block; aspect-ratio: 16 / 9; }

/* ---------- faq ---------- */
.faq { max-width: 860px; margin: 0 auto; }
details { background: #fff; border: 4px solid var(--ink); border-radius: 22px; margin: 14px 0; padding: 4px 22px; box-shadow: 0 6px 0 rgba(59,42,51,.15); }
summary { cursor: pointer; list-style: none; font-family: "Lilita One"; font-size: 22px; padding: 14px 0; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 30px; color: var(--ketchup); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 16px; }

/* ---------- final ---------- */
.final { text-align: center; background: radial-gradient(circle at 50% 30%, #ffffff66, transparent 55%), linear-gradient(var(--bg-top), var(--bg-bot)); }
.final .cheer { width: 220px; margin: 0 auto 10px; animation: peek 3s ease-in-out infinite; }
.final p { font-size: 20px; margin: 0 0 28px; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--cream); padding: 40px clamp(16px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; gap: 10px; align-items: center; font-family: "Lilita One"; font-size: 22px; }
.foot-brand img { border-radius: 8px; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; opacity: .85; } .foot nav a:hover { opacity: 1; color: var(--mustard); }
.fine { width: 100%; margin: 6px 0 0; font-size: 13px; opacity: .55; font-weight: 600; }

/* ---------- legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 20px 90px; }
.legal h1 { color: var(--ink); text-shadow: none; font-size: clamp(36px, 5vw, 52px); }
.legal h2 { text-align: left; font-size: 28px; margin: 36px 0 8px; }
.legal p, .legal li { font-weight: 600; }
.legal .updated { opacity: .6; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-weight: 600; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px; border-bottom: 2px solid rgba(59,42,51,.12); vertical-align: top; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,1.4,.4,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
