/* Squish Jar website. The look follows the game's UI kit (docs/art-style.md): candy colours, ONE plum outline
   colour (#3F1650), a darker lip under everything, a white gloss band on buttons, purple panels with a lighter rim. */
:root {
  --plum: #3f1650;
  --plum-deep: #2a0d3a;
  --panel-top: #5b2b86;
  --panel-bot: #2d1250;
  --rim: rgba(196, 170, 255, .38);
  --well: rgba(22, 6, 44, .5);
  --lav: #e6dcff;
  --gold-1: #ffe27a; --gold-2: #ffb52e; --gold-3: #ff8f12; --gold-lip: #c8590b;
  --pink-1: #ffb3dc; --pink-2: #ff6fb8; --pink-3: #e0489a; --pink-lip: #a52a6c;
  --blue-1: #9fe0ff; --blue-2: #3dbeff; --blue-3: #1f8fe0; --blue-lip: #155fa6;
  --green-1: #b6f58a; --green-2: #62d94c; --green-3: #33b52e; --green-lip: #1f7d22;
  --purple-1: #d2b8ff; --purple-2: #9a6bff; --purple-3: #7140e0; --purple-lip: #4a26a0;
  --round: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-panel: 30px;
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--round);
  font-weight: 700;
  font-size: clamp(1rem, .96rem + .25vw, 1.125rem);
  line-height: 1.55;
  color: #fff;
  background: #4a1d9e;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: var(--gold-1); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 4px solid var(--gold-1); outline-offset: 4px; border-radius: 999px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; }
.skip:focus { left: 12px; background: #fff; color: var(--plum); padding: 10px 14px; border-radius: 12px; }

/* ---------- the sky: violet to pink, sun rays from the top, bokeh bubbles, sparkles ---------- */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(160, 110, 255, .55), transparent 70%),
    linear-gradient(180deg, #3e1a92 0%, #5a26b0 34%, #8a35b8 68%, #c050b4 100%);
}
.sky::before {            /* sun rays */
  content: ""; position: absolute; left: 50%; top: -60vmax; width: 200vmax; height: 200vmax; translate: -50% 0;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .075) 0deg 7deg, transparent 7deg 18deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 0, #000 18%, transparent 52%);
          mask: radial-gradient(circle at 50% 50%, #000 0, #000 18%, transparent 52%);
}
.sky i {                  /* bokeh bubbles */
  position: absolute; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .35), rgba(255, 255, 255, .04) 60%);
}
.sky i:nth-child(1) { width: 70px; height: 70px; left: 6%; top: 18%; }
.sky i:nth-child(2) { width: 34px; height: 34px; left: 88%; top: 12%; }
.sky i:nth-child(3) { width: 110px; height: 110px; left: 78%; top: 58%; opacity: .6; }
.sky i:nth-child(4) { width: 26px; height: 26px; left: 14%; top: 66%; }
.sky i:nth-child(5) { width: 52px; height: 52px; left: 46%; top: 86%; opacity: .7; }
.sky i:nth-child(6) { width: 18px; height: 18px; left: 62%; top: 30%; }
.sky b {                  /* four-point sparkles */
  position: absolute; width: 14px; height: 14px; background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  opacity: .85;
}
.sky b:nth-of-type(1) { left: 22%; top: 9%; }
.sky b:nth-of-type(2) { left: 92%; top: 38%; width: 10px; height: 10px; }
.sky b:nth-of-type(3) { left: 4%; top: 44%; width: 18px; height: 18px; }
.sky b:nth-of-type(4) { left: 70%; top: 78%; }
.sky b:nth-of-type(5) { left: 34%; top: 54%; width: 8px; height: 8px; }

.wrap { width: min(1120px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- header and footer bars ---------- */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { width: 46px; height: 46px; border-radius: 13px; border: 3px solid var(--plum); box-shadow: 0 4px 0 var(--plum-deep); }
.brand span { white-space: nowrap; font-weight: 900; font-size: 1.2rem; letter-spacing: .02em; text-shadow: 0 2px 0 var(--plum), 0 -2px 0 var(--plum), 2px 0 0 var(--plum), -2px 0 0 var(--plum), 0 4px 0 var(--plum); }
.nav { display: flex; gap: 10px; }

/* ---------- candy buttons (UIKit): gradient face, plum outline, darker lip, gloss band ---------- */
.btn {
  --c1: var(--gold-1); --c2: var(--gold-2); --c3: var(--gold-3); --lip: var(--gold-lip);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 18px 12px;
  border: 4px solid var(--plum); border-radius: 999px;
  background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 48%, var(--c3) 100%);
  box-shadow: inset 0 -7px 0 var(--lip), 0 5px 0 var(--plum);
  color: #fff; font-weight: 900; text-decoration: none; letter-spacing: .03em; text-transform: uppercase;
  text-shadow: 0 2px 0 var(--plum), 0 -2px 0 var(--plum), 2px 0 0 var(--plum), -2px 0 0 var(--plum), 2px 2px 0 var(--plum), -2px 2px 0 var(--plum), 0 4px 0 var(--plum);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn::after {             /* gloss band */
  content: ""; position: absolute; z-index: -1; left: 14%; right: 14%; top: 5px; height: 30%;
  border-radius: 999px; background: rgba(255, 255, 255, .55);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 -4px 0 var(--lip), 0 2px 0 var(--plum); }
.btn.sm { min-height: 40px; padding: 6px 14px 10px; font-size: .9rem; }
.btn.pink { --c1: var(--pink-1); --c2: var(--pink-2); --c3: var(--pink-3); --lip: var(--pink-lip); }
.btn.blue { --c1: var(--blue-1); --c2: var(--blue-2); --c3: var(--blue-3); --lip: var(--blue-lip); }
.btn.green { --c1: var(--green-1); --c2: var(--green-2); --c3: var(--green-3); --lip: var(--green-lip); }
.btn.purple { --c1: var(--purple-1); --c2: var(--purple-2); --c3: var(--purple-3); --lip: var(--purple-lip); }
.btn[aria-current="page"] { filter: saturate(1.15) brightness(1.08); }

.cta {                    /* the big PLAY-sized button */
  min-height: 0; padding: 14px 34px 22px; border-width: 5px;
  box-shadow: inset 0 -10px 0 var(--gold-lip), 0 7px 0 var(--plum), 0 16px 30px rgba(42, 13, 58, .35);
  flex-direction: column; gap: 2px;
}
.cta img { height: clamp(34px, 7vw, 46px); width: auto; }
.cta small { font-size: .78rem; letter-spacing: .08em; }
.cta:active { box-shadow: inset 0 -6px 0 var(--gold-lip), 0 3px 0 var(--plum); }

/* ---------- pills (like the Goo / stars counters) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 16px 5px 6px; border-radius: 999px;
  background: linear-gradient(180deg, #3b1668, #26093f);
  border: 3px solid var(--plum); box-shadow: inset 0 0 0 2px var(--rim), 0 4px 0 var(--plum-deep);
  font-weight: 900; font-size: .95rem; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
}
.chip img { width: 30px; height: 30px; object-fit: contain; }

/* ---------- panels with a ribbon title ---------- */
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bot));
  border: 5px solid var(--plum); border-radius: var(--r-panel);
  box-shadow: inset 0 0 0 3px var(--rim), inset 0 3px 0 4px rgba(255, 255, 255, .06), 0 9px 0 var(--plum-deep), 0 24px 50px rgba(30, 6, 50, .35);
  padding: clamp(46px, 7vw, 64px) clamp(16px, 4vw, 40px) clamp(22px, 4vw, 38px);
}
.ribbon {
  position: absolute; left: 50%; top: 0; translate: -50% -55%;
  display: flex; align-items: center; justify-content: center;
  height: clamp(54px, 9vw, 74px); padding: 0 clamp(16px, 4vw, 30px);
  background: linear-gradient(180deg, var(--pink-1) 0%, var(--pink-2) 45%, var(--pink-3) 100%);
  border: 5px solid var(--plum); border-radius: 18px;
  box-shadow: inset 0 -6px 0 var(--pink-lip), 0 6px 0 var(--plum);
  margin: 0; max-width: 92%;
}
.ribbon::before, .ribbon::after {   /* folded tails */
  content: ""; position: absolute; top: 18px; z-index: -1; width: 34px; height: 74%;
  background: var(--pink-3); border: 5px solid var(--plum);
}
.ribbon::before { left: -26px; border-radius: 10px 0 0 10px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 34% 50%); }
.ribbon::after { right: -26px; border-radius: 0 10px 10px 0; clip-path: polygon(0 0, 100% 0, 66% 50%, 100% 100%, 0 100%); }
.ribbon img { height: clamp(26px, 5vw, 40px); width: auto; max-width: 100%; }
.ribbon.purple { background: linear-gradient(180deg, var(--purple-1), var(--purple-2) 45%, var(--purple-3)); box-shadow: inset 0 -6px 0 var(--purple-lip), 0 6px 0 var(--plum); }
.ribbon.purple::before, .ribbon.purple::after { background: var(--purple-3); }
.ribbon.blue { background: linear-gradient(180deg, var(--blue-1), var(--blue-2) 45%, var(--blue-3)); box-shadow: inset 0 -6px 0 var(--blue-lip), 0 6px 0 var(--plum); }
.ribbon.blue::before, .ribbon.blue::after { background: var(--blue-3); }
.ribbon.green { background: linear-gradient(180deg, var(--green-1), var(--green-2) 45%, var(--green-3)); box-shadow: inset 0 -6px 0 var(--green-lip), 0 6px 0 var(--plum); }
.ribbon.green::before, .ribbon.green::after { background: var(--green-3); }
.ribbon.gold { background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 45%, var(--gold-3)); box-shadow: inset 0 -6px 0 var(--gold-lip), 0 6px 0 var(--plum); }
.ribbon.gold::before, .ribbon.gold::after { background: var(--gold-3); }

.well { background: var(--well); border-radius: 22px; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .25), inset 0 0 0 2px rgba(255, 255, 255, .05); }
.lead { text-align: center; max-width: 46ch; margin: 0 auto 26px; color: var(--lav); font-size: 1.08em; }

section { margin-block: clamp(70px, 11vw, 120px); }

/* ---------- hero ---------- */
.hero { display: grid; gap: 28px; align-items: center; justify-items: center; text-align: center; margin-top: 8px; }
.hero-copy { display: grid; justify-items: center; gap: 18px; }
.logo { width: min(520px, 92vw); height: auto; filter: drop-shadow(0 10px 0 rgba(42, 13, 58, .25)); }
.tagline { width: min(440px, 84vw); height: auto; margin-top: -10px; }
.hero .chips { justify-content: center; max-width: 520px; }
.stage { position: relative; display: grid; place-items: center; padding: 10px 0 20px; }
.phone {
  position: relative; width: min(290px, 70vw); aspect-ratio: 480 / 1040;
  padding: 9px; border-radius: 46px;
  background: linear-gradient(160deg, #4a2370, #1d0a33);
  border: 5px solid var(--plum);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18), 0 10px 0 var(--plum-deep), 0 34px 70px rgba(26, 4, 46, .5);
}
.phone::before {          /* dynamic island */
  content: ""; position: absolute; z-index: 2; top: 18px; left: 50%; translate: -50% 0;
  width: 30%; height: 20px; border-radius: 999px; background: #120420;
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; background: #2d1250; }
.float { position: absolute; width: clamp(70px, 20vw, 130px); height: auto; filter: drop-shadow(0 8px 0 rgba(42, 13, 58, .3)); }
.float.l { left: max(-30px, calc(50% - 250px)); bottom: 12%; }
.float.r { right: max(-34px, calc(50% - 262px)); top: 6%; width: clamp(84px, 24vw, 150px); }
.float.s { left: max(-10px, calc(50% - 220px)); top: 14%; width: clamp(44px, 12vw, 70px); }
@media (prefers-reduced-motion: no-preference) {
  .float { animation: bob 3.2s ease-in-out infinite; }
  .float.r { animation-delay: -1.1s; }
  .float.s { animation-delay: -2s; animation-duration: 2.6s; }
  @keyframes bob { 50% { transform: translateY(-12px) rotate(-3deg) scale(1.03, .97); } }
}

/* ---------- how it works ---------- */
.steps { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; counter-reset: s; }
.step { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding: 16px 18px; }
.step .art { position: relative; height: 92px; display: grid; place-items: center; }
.step .art img { width: 76px; height: auto; }
.step .art.pair img { width: 54px; position: absolute; }
.step .art.pair img:first-child { left: 0; top: 8px; }
.step .art.pair img:last-child { right: 0; bottom: 4px; }
.step h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.step h3 img { height: 34px; width: auto; }
.step h3::before {        /* gold number medallion */
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3b0, var(--gold-2) 55%, var(--gold-3));
  border: 3px solid var(--plum); color: var(--plum); font-weight: 900; font-size: 1.05rem;
}
.step p { margin: 0; color: var(--lav); }

/* ---------- tier ladder ---------- */
.ladder { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 6px 4px; padding: 26px 10px 18px; margin: 0; list-style: none; }
.ladder li { display: grid; justify-items: center; gap: 6px; width: 23%; min-width: 64px; max-width: 120px; }
.ladder img { height: auto; filter: drop-shadow(0 5px 0 rgba(42, 13, 58, .35)); }
.ladder span { font-weight: 900; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--lav); }
.ladder li:nth-child(1) img { width: 34%; }
.ladder li:nth-child(2) img { width: 42%; }
.ladder li:nth-child(3) img { width: 50%; }
.ladder li:nth-child(4) img { width: 58%; }
.ladder li:nth-child(5) img { width: 66%; }
.ladder li:nth-child(6) img { width: 76%; }
.ladder li:nth-child(7) img { width: 88%; }
.ladder li:nth-child(8) img { width: 100%; }
.ladder li:nth-child(8) span { color: var(--gold-1); }
.recipe { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 18px; padding: 16px; text-align: center; }
.recipe img { width: 58px; height: auto; }
.recipe .op { font-size: 2rem; font-weight: 900; color: var(--gold-1); text-shadow: 0 3px 0 var(--plum); }
.recipe p { flex-basis: 100%; margin: 4px 0 0; color: var(--lav); }

/* ---------- worlds carousel ---------- */
.worlds {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 230px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 22px; margin: 0 -4px; list-style: none;
  scrollbar-width: thin; scrollbar-color: var(--pink-2) transparent;
}
.worlds li { scroll-snap-align: center; }
.world {
  margin: 0;
  position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 560 / 712;
  border: 5px solid var(--plum); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .25), 0 8px 0 var(--plum-deep);
}
.world img { width: 100%; height: 100%; object-fit: cover; }
.world figcaption {
  position: absolute; left: 50%; bottom: 12px; translate: -50% 0; white-space: nowrap;
  padding: 4px 16px 7px; border-radius: 999px; border: 4px solid var(--plum);
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 50%, var(--gold-3)); box-shadow: inset 0 -5px 0 var(--gold-lip), 0 4px 0 var(--plum);
  font-weight: 900; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem;
  text-shadow: 0 2px 0 var(--plum), 0 -2px 0 var(--plum), 2px 0 0 var(--plum), -2px 0 0 var(--plum), 0 3px 0 var(--plum);
}

/* ---------- feature cards ---------- */
.cards { display: grid; gap: 16px; }
.card { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; padding: 16px 18px; }
.card img { width: 74px; height: auto; }
.card h3 { margin: 0 0 2px; font-size: 1.15rem; font-weight: 900; color: var(--gold-1); text-transform: uppercase; letter-spacing: .03em; }
.card p { margin: 0; color: var(--lav); }

/* ---------- the gold "no nagging" panel ---------- */
.panel.gold {
  background: linear-gradient(180deg, #ffe58f, #ffbf3f 55%, #ff9a1f);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5), inset 0 -10px 0 var(--gold-lip), 0 9px 0 var(--plum-deep), 0 24px 50px rgba(30, 6, 50, .35);
  color: var(--plum); text-align: center;
}
.panel.gold p { max-width: 50ch; margin: 0 auto 18px; font-size: 1.08em; }
.panel.gold .chips { justify-content: center; }
.panel.gold .chip { color: #fff; }
.no { text-decoration: line-through 3px var(--pink-2); }

.closer { display: grid; justify-items: center; gap: 22px; text-align: center; }
.closer .logo { width: min(320px, 70vw); }

/* ---------- documents (support, privacy) ---------- */
.doc { max-width: 820px; margin: 64px auto 0; }
.doc .updated { text-align: center; color: var(--lav); margin: 0 0 22px; }
.qa { display: grid; gap: 14px; }
.qa > div { padding: 16px 20px; }
.qa h2 { margin: 0 0 6px; font-size: 1.12rem; font-weight: 900; color: var(--gold-1); letter-spacing: .01em; }
.qa p { margin: 0; color: var(--lav); }
.qa p + p { margin-top: 8px; }
.qa strong { color: #fff; }
.doc .contact { text-align: center; margin-top: 24px; }

.site-footer { margin-top: clamp(70px, 10vw, 110px); padding-block: 22px 36px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.site-footer .nav { flex-wrap: wrap; justify-content: center; }
.site-footer small { color: var(--lav); opacity: .8; }

@media (max-width: 400px) { .brand span { display: none; } }

/* ---------- bigger screens ---------- */
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px 18px 24px; }
  .step .art { width: 120px; height: 110px; }
  .step .art img { width: 96px; }
  .step .art.pair img { width: 64px; }
  .step h3 { justify-content: center; }
  .ladder { flex-wrap: nowrap; gap: 8px; padding-inline: 18px; }
  .ladder li { width: auto; flex: 1 1 0; min-width: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .worlds { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 10px 0 0; }
}
@media (min-width: 980px) {
  .hero { grid-template-columns: 1.1fr .9fr; text-align: left; justify-items: stretch; margin-top: 20px; }
  .hero-copy { justify-items: center; }
  .stage { padding: 30px 0; }
  .phone { width: 300px; }
}
.doc .contact .updated { margin: 16px auto 0; max-width: 48ch; }
