/* ==========================================================================
   Salt & Vinegar Studio — styles
   Mobile-first. Breakpoints: 768px (tablet), 1024px (desktop).
   ========================================================================== */

:root {
  --yellow: #F2C14E;
  --gold: #D9A23A;        /* hover states */
  --mint: #7FD1AE;
  --mint-dark: #5FBF95;
  --white: #FFFFFF;
  --ink: #1E1E24;         /* text + outlines */
  --ink-soft: #3A3A44;
  --salt-shade: #DCDFE6;

  --line: 3px;            /* outline weight on small things */
  --line-lg: 4px;         /* outline weight on cards/images */
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);
  --radius: 22px;
  --radius-pill: 999px;

  --font-head: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 68px;
  --gutter: 20px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--yellow);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(2rem, 6vw, 3.25rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); font-weight: 800;
  padding: 10px 16px; border: var(--line) solid var(--ink); border-radius: var(--radius-pill);
  box-shadow: var(--shadow); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Visible, chunky focus ring everywhere */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  border-radius: 8px;
}

/* ---------- Kicker / sticker labels ---------- */
.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 3px 14px;
  margin-bottom: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg);
}

/* ---------- Buttons: chunky sticker pills ---------- */
.btn {
  --btn-bg: var(--white);
  --btn-bg-hover: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 52px;
  padding: 12px 26px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--btn-bg);
  border: var(--line-lg) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  background: var(--btn-bg-hover);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}
.btn:active {
  transform: translate(4px, 4px) scale(.97, .94);
  box-shadow: 0 0 0 var(--ink);
}
.btn:focus-visible { outline-offset: 5px; border-radius: var(--radius-pill); }
.btn--primary   { --btn-bg: var(--mint);  --btn-bg-hover: var(--mint-dark); }
.btn--secondary { --btn-bg: var(--white); --btn-bg-hover: var(--gold); }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 1rem; border-width: var(--line); }
.btn__meta { font-family: var(--font-body); font-weight: 600; font-size: .85em; opacity: .8; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px 16px; }
.btn-row .btn { flex: 1 1 100%; }
@media (min-width: 480px) { .btn-row .btn { flex: 0 1 auto; } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--yellow);
  border-bottom: var(--line) solid var(--ink);
}
.nav {
  display: flex; align-items: center; gap: 12px;
  min-height: var(--header-h);
  position: relative;
}
.nav__brand { display: block; flex: none; border-radius: 12px; }
.nav__brand img { width: 74px; height: auto; transition: transform .2s ease; }
.nav__brand:hover img { transform: rotate(-4deg) scale(1.04); }

.nav__cta { margin-left: auto; }

.nav__toggle {
  order: 3;
  width: 46px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.nav__toggle:active { transform: translate(3px, 3px); box-shadow: none; }
.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block; width: 20px; height: 3px; border-radius: 3px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -7px; }
.nav__toggle-bars::after { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu: a sheet that unfolds from under the header ---------- */
.nav__pill { display: none; }
.nav__links {
  position: absolute; top: calc(100% + 3px); left: 0; right: 0;
  display: flex; flex-direction: column;
  padding: 6px var(--gutter) 20px;
  background: var(--yellow);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .38s cubic-bezier(.7, 0, .3, 1), visibility 0s linear .38s;
}
.nav__links.is-open {
  visibility: visible;
  clip-path: inset(0 0 -40px 0);   /* -40px lets the crimped edge below show */
  transition: clip-path .5s cubic-bezier(.2, .9, .25, 1), visibility 0s;
}
/* crimped bag edge along the bottom of the sheet */
.nav__links::before, .nav__links::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 100%; height: 20px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 22'%3E%3Cpath d='M0 0h28v4L14 22 0 4z'/%3E%3C/svg%3E") repeat-x 0 0 / 28px 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 22'%3E%3Cpath d='M0 0h28v4L14 22 0 4z'/%3E%3C/svg%3E") repeat-x 0 0 / 28px 100%;
}
.nav__links::before { margin-top: 4px; background: var(--ink); }
.nav__links::after  { margin-top: -1px; background: var(--yellow); }

.nav__links li {
  border-bottom: 2px solid rgba(30, 30, 36, .14);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .2s ease, transform .25s ease;
}
.nav__links li:last-child { border-bottom: 0; }
.nav__links.is-open li {
  opacity: 1;
  transform: none;
  transition: opacity .3s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.nav__links.is-open li:nth-child(2) { transition-delay: .08s; }
.nav__links.is-open li:nth-child(3) { transition-delay: .14s; }
.nav__links.is-open li:nth-child(4) { transition-delay: .2s; }

.nav__links a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  padding: 14px 2px;
  text-decoration: none;
  border-radius: 12px;
}
.nav__label { font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; line-height: 1.1; }
.nav__sub   { grid-row: 2; font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.nav__links a::after {
  content: "→";
  grid-row: 1 / span 2; grid-column: 2;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .2s ease, background-color .2s ease;
}
.nav__links a:active::after, .nav__links a:hover::after { background: var(--mint); transform: translateX(4px); }
.nav__links a[aria-current="true"] .nav__label { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Dim the page behind the open menu */
.menu-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(30, 30, 36, .4);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.menu-open .menu-backdrop { opacity: 1; pointer-events: auto; }

/* Without JS, there's no toggle, so just show the links inline */
.no-js .nav__toggle { display: none; }
.no-js .nav__links { visibility: visible; clip-path: none; position: static; flex-direction: row; gap: 8px; padding: 0; background: none; }
.no-js .nav__links::before, .no-js .nav__links::after, .no-js .nav__sub, .no-js .nav__links a::after { display: none; }
.no-js .nav__links li { opacity: 1; transform: none; border: 0; }
.no-js .nav__label { font-size: 1rem; }

/* ---------- Desktop: inline links with a sticker pill that slides between them ---------- */
@media (min-width: 768px) {
  :root { --header-h: 78px; --gutter: 32px; }
  .nav { gap: 28px; }
  .nav__brand img { width: 88px; }
  .nav__toggle { display: none; }
  .menu-backdrop { display: none; }
  .nav__links {
    position: relative; top: auto; left: auto; right: auto;
    flex-direction: row; gap: 4px;
    padding: 0; background: none;
    visibility: visible; clip-path: none; transition: none;
  }
  .nav__links::before, .nav__links::after { display: none; }
  .nav__links li, .nav__links.is-open li { opacity: 1; transform: none; border: 0; transition: none; }
  .nav__links a { display: block; padding: 8px 16px; border-radius: var(--radius-pill); z-index: 1; }
  .nav__links a::after, .nav__sub { display: none; }
  .nav__label { font-size: 1.1rem; font-weight: 600; }
  .nav__links a[aria-current="true"] .nav__label { text-decoration: none; }

  .nav__pill {
    display: block;
    position: absolute; left: 0; top: var(--pt, 0px);
    width: var(--pw, 0px); height: var(--ph, 0px);
    transform: translateX(var(--px, 0px));
    background: var(--white);
    border: var(--line) solid var(--ink);
    border-radius: var(--radius-pill);
    box-shadow: 3px 3px 0 var(--ink);
    opacity: var(--po, 0);
    transition:
      transform .4s cubic-bezier(.34, 1.4, .64, 1),
      width .4s cubic-bezier(.34, 1.4, .64, 1),
      opacity .2s ease;
    pointer-events: none;
  }
  /* beats the generic ".nav__links li" resets above */
  .nav__links li.nav__pill {
    opacity: var(--po, 0);
    transform: translateX(var(--px, 0px));
    transition:
      transform .4s cubic-bezier(.34, 1.4, .64, 1),
      width .4s cubic-bezier(.34, 1.4, .64, 1),
      opacity .2s ease;
  }
  .nav__links.no-anim li.nav__pill { transition: opacity .2s ease; }
  .nav__cta { order: 4; }
}

/* ---------- Section colours ---------- */
.section--yellow { background: var(--yellow); }
.section--mint   { background: var(--mint); }
.section--white  { background: var(--white); }
.section, .hero { position: relative; overflow: clip; }
.section { padding-block: 52px 64px; }
.section > .container, .hero > .container { position: relative; z-index: 1; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 28px; }
@media (min-width: 768px) { .section-head { margin-bottom: 40px; } }
.section-head--left { text-align: left; margin-inline: 0; }
.section-head__lede { font-size: 1.15rem; }

@media (min-width: 768px) { .section { padding-block: 88px 104px; } }

/* ---------- Salt cubes ---------- */
.salt-field { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.salt {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  border: var(--line) solid var(--ink);
  border-radius: 28%;
  background:
    linear-gradient(135deg, var(--white) 0 52%, var(--salt-shade) 52% 100%);
  animation: salt-float 6s ease-in-out var(--d, 0s) infinite;
}
.salt--dark { background: linear-gradient(135deg, #F7F7F9 0 52%, #CFD3DB 52% 100%); }
.salt--wide { display: none; }
@media (min-width: 768px) { .salt--wide { display: block; } }

@keyframes salt-float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50%      { transform: translateY(-12px) rotate(10deg); }
}

/* ---------- Crimped chip-bag dividers ---------- */
.crimp {
  position: relative;
  height: 26px;
  margin-top: -1px;
  background: var(--below);
}
.crimp::before, .crimp::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 22px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 22'%3E%3Cpath d='M0 0h28v4L14 22 0 4z'/%3E%3C/svg%3E") repeat-x 0 0 / 28px 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 22'%3E%3Cpath d='M0 0h28v4L14 22 0 4z'/%3E%3C/svg%3E") repeat-x 0 0 / 28px 100%;
}
.crimp::before { top: 4px; background: var(--ink); }   /* outline */
.crimp::after  { background: var(--above); }          /* the "bag" edge */

/* ---------- Hero ---------- */
.hero { padding-block: 20px 48px; }
.hero__inner { display: grid; gap: 18px; justify-items: center; text-align: center; }
.hero__logo { position: relative; width: min(190px, 52vw); }
@media (max-width: 767px) and (max-height: 700px) { .hero__logo { width: 150px; } }
.hero__logo img {
  width: 100%;
  border-radius: 50%;
  border: var(--line-lg) solid var(--ink);
  box-shadow: var(--shadow-lg);
  background: var(--yellow);
}
.sticker-label {
  position: absolute; right: -14px; bottom: 6px;
  margin: 0;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; line-height: 1.15;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  padding: 6px 12px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(6deg);
  max-width: 9.5em;
  font-size: .8rem;
  right: -26px;
  bottom: 0;
}
.hero__title {
  font-size: clamp(2.6rem, 11vw, 5.4rem);
  letter-spacing: -.01em;
  margin-bottom: .2em;
}
.hero__sub {
  font-size: clamp(1.15rem, 3.6vw, 1.5rem);
  font-weight: 800;
  max-width: 26ch;
  margin-inline: auto;
  margin-bottom: 22px;
}
.hero__fine { margin: 18px 0 0; font-size: .95rem; font-weight: 600; }
.hero .btn-row { justify-content: center; }

@media (min-width: 768px) {
  .hero { padding-block: 56px 80px; }
  .hero__logo { width: 340px; }
  .sticker-label { font-size: 1rem; right: -30px; }
}
@media (min-width: 1024px) {
  .hero { padding-block: 72px 104px; }
  .hero__inner {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    justify-items: start;
    text-align: left;
    gap: 56px;
  }
  .hero__copy { order: -1; }
  .hero__logo { width: 440px; justify-self: center; }
  .hero__sub { margin-inline: 0; }
  .hero .btn-row { justify-content: flex-start; }
}

/* Logo wiggle on hover */
.wiggle-on-hover { transform-origin: 50% 60%; }
.wiggle-on-hover:hover { animation: wiggle .6s ease-in-out; }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-5deg) scale(1.02); }
  40% { transform: rotate(4deg) scale(1.02); }
  60% { transform: rotate(-3deg); }
  80% { transform: rotate(2deg); }
}

/* ---------- Game card component ---------- */
.games-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 460px));
  justify-content: center;
}
.game-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: var(--line-lg) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.game-card:hover { transform: translate(-2px, -2px) rotate(-.4deg); box-shadow: 8px 8px 0 var(--ink); }
.game-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-bottom: var(--line-lg) solid var(--ink);
  background: var(--yellow);
  overflow: hidden;
}
.game-card__media img { width: 100%; height: 100%; object-fit: cover; }
.game-card__body { display: flex; flex-direction: column; gap: 2px; padding: 22px 22px 26px; flex: 1; }
.game-card__tag {
  align-self: flex-start;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .06em;
  background: var(--yellow);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 2px 12px;
  margin-bottom: 12px;
}
.game-card__tag--new { background: var(--mint); }
.game-card__title { font-size: 1.55rem; }
.game-card__desc { margin-bottom: .6em; }
.game-card__actions { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; }
.game-card__actions .btn { width: 100%; }

/* Coming-soon state */
.game-card--soon .game-card__media {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 120%, var(--gold) 0 38%, transparent 38.5%),
    var(--yellow);
}
.mystery-bag { height: 88%; width: auto; transform: rotate(-6deg); }
.mystery-bag .steam path { animation: steam 2.4s ease-in-out infinite; }
.mystery-bag .steam path:nth-child(2) { animation-delay: -.8s; }
.mystery-bag .steam path:nth-child(3) { animation-delay: -1.6s; }
@keyframes steam {
  0%, 100% { opacity: .25; transform: translateY(4px); }
  50%      { opacity: 1;   transform: translateY(-3px); }
}
.game-card--soon:hover .mystery-bag { animation: wiggle .6s ease-in-out; }

/* ---------- About ---------- */
.about { display: grid; gap: 28px; align-items: center; margin-bottom: 36px; }
.about__lede { font-size: 1.2rem; }
.about__punch {
  display: inline-block;
  font-family: var(--font-head); font-weight: 600; font-size: 1.3rem;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: 16px;
  padding: 10px 18px;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}
.about__art { justify-self: center; width: min(180px, 50vw); }
.about__art img {
  border-radius: 50%;
  border: var(--line-lg) solid var(--ink);
  box-shadow: var(--shadow-lg);
  background: var(--mint);
}
@media (min-width: 768px) {
  .about { grid-template-columns: 1.6fr 1fr; gap: 48px; }
  .about__art { width: 300px; }
}

.values { display: grid; gap: 20px; }
@media (min-width: 768px) { .values { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.value-card {
  background: var(--white);
  border: var(--line-lg) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
  transition: transform .15s ease;
}
.value-card:nth-child(1) { transform: rotate(-1deg); }
.value-card:nth-child(2) { transform: rotate(.8deg); }
.value-card:nth-child(3) { transform: rotate(-.6deg); }
.value-card:hover { transform: rotate(0) translateY(-3px); }
.value-card__icon { width: 52px; height: 52px; margin-bottom: 12px; }
.value-card p { margin: 0; }

/* ---------- Creators ---------- */
.creators { display: grid; gap: 36px; align-items: center; }
.creators .section-head { margin-bottom: 28px; }
@media (min-width: 1024px) { .creators { grid-template-columns: 1.25fr 1fr; gap: 64px; } }

.creator-card {
  background: var(--white);
  border: var(--line-lg) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 26px 24px 24px;
  transform: rotate(1deg);
}
.creator-card h3 { font-size: 1.5rem; }
.perks { display: grid; gap: 12px; margin-bottom: 22px; }
.perk { position: relative; padding-left: 40px; }
.perk::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  font-weight: 800; font-size: .95rem;
  background: var(--mint);
  border: var(--line) solid var(--ink);
  border-radius: 50%;
}
.perk:nth-child(2)::before { background: var(--yellow); }
.creators__email { margin: 20px 0 24px; font-weight: 600; }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .95em;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 1px 8px;
  display: inline-block;
  overflow-wrap: anywhere;
  user-select: all;
}
.credit-note {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800;
  background: var(--mint);
  border: var(--line) solid var(--ink);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  margin: 0;
}
.credit-note__star { font-size: 1.5rem; line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding-block: 40px 48px; }
.site-footer :focus-visible { outline-color: var(--yellow); }
.footer { display: grid; justify-items: center; text-align: center; gap: 18px; }
.footer__brand img { width: 108px; }
.footer__tagline { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--yellow); margin: 0; }

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.social {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 6px 16px 6px 8px;
  font-family: var(--font-head); font-weight: 600;
  color: var(--ink); text-decoration: none;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: 3px 3px 0 var(--yellow);
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
}
.social svg {
  width: 30px; height: 30px; padding: 5px;
  fill: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.social:hover { background: var(--gold); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--yellow); }
.social:active { transform: translate(3px, 3px) scale(.97); box-shadow: 0 0 0 var(--yellow); }

.footer__support { margin: 0; font-weight: 600; color: #E4E4EA; }
.footer__support a { color: var(--yellow); font-weight: 800; overflow-wrap: anywhere; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.footer__links a {
  display: inline-block; padding: 8px 2px;
  color: var(--white); font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.footer__links a:hover { color: var(--yellow); }
.footer__legal { font-size: .95rem; color: #E4E4EA; }
.footer__legal p { margin: 0 0 6px; }
.footer__joke { color: var(--mint); font-weight: 600; }
.footer__disclaimer { font-size: .82rem; color: #B9B9C4; max-width: 46ch; margin-inline: auto !important; }

/* ==========================================================================
   MOTION: fire dividers, scroll reveals, parallax, tickers, progress bar
   All of it is switched off under prefers-reduced-motion (see bottom).
   ========================================================================== */

/* ---------- Header: scroll progress (a chip riding a mint bar) ---------- */
.site-header { transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 0 rgba(30, 30, 36, .12); }
.scroll-progress { --p: 0; position: absolute; left: 0; right: 0; bottom: -4px; height: 5px; pointer-events: none; }
.scroll-progress__bar {
  position: absolute; inset: 0;
  background: var(--mint-dark);
  transform-origin: 0 50%;
  transform: scaleX(var(--p));
}
.scroll-progress__chip {
  position: absolute; top: 50%; left: calc(var(--p) * 100%);
  width: 22px; height: 14px; margin: -7px 0 0 -11px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
  transform: rotate(calc(var(--p) * 1080deg));
}

/* ---------- Fire dividers ---------- */
.crimp { z-index: 2; }
.crimp::before, .crimp::after {
  -webkit-mask-position: var(--shift, 0px) 0;
          mask-position: var(--shift, 0px) 0;
}
/* Sear: a gold heat-shine that runs along the crimped edge once as it scrolls in */
.crimp__heat {
  position: absolute; left: 0; right: 0; top: 0; height: 22px; z-index: 1;
  pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 22'%3E%3Cpath d='M0 0h28v4L14 22 0 4z'/%3E%3C/svg%3E") repeat-x var(--shift, 0px) 0 / 28px 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 22'%3E%3Cpath d='M0 0h28v4L14 22 0 4z'/%3E%3C/svg%3E") repeat-x var(--shift, 0px) 0 / 28px 100%;
  background: linear-gradient(90deg,
    transparent 0 38%,
    rgba(217, 162, 58, .0) 40%,
    var(--gold) 46%,
    #FFE7A8 50%,
    var(--gold) 54%,
    rgba(217, 162, 58, .0) 60%,
    transparent 62% 100%) no-repeat;
  background-size: 300% 100%;
  background-position: 100% 0;
  opacity: 0;
}
.is-lit .crimp__heat { animation: sear 1.4s cubic-bezier(.45, 0, .2, 1) .1s both; }
@keyframes sear {
  0%   { opacity: 1; background-position: 100% 0; }
  85%  { opacity: 1; }
  100% { opacity: 0; background-position: 0 0; }
}

/* Little fryer under the mystery bag */
.fryer-flames {
  position: absolute; left: 50%; bottom: -4px;
  width: 34%; transform: translateX(-50%);
  display: flex; justify-content: space-between; align-items: flex-end;
  pointer-events: none;
}
.fryer-flames svg {
  width: 26%; height: auto; aspect-ratio: 2 / 3;
  transform-origin: 50% 100%;
  animation: simmer var(--fd, 800ms) ease-in-out infinite alternate;
}
.fryer-flames svg:nth-child(2) { width: 32%; }
@keyframes simmer {
  from { transform: scaleY(.9); }
  to   { transform: scaleY(1.05); }
}

/* ---------- Scroll tickers ---------- */
.tickers { position: relative; z-index: 1; background: var(--white); overflow: clip; padding-block: 28px 44px; }
@media (min-width: 768px) { .tickers { padding-block: 44px 64px; } }
.ticker {
  margin-inline: -60px;
  overflow: hidden;
  white-space: nowrap;
  border-block: var(--line-lg) solid var(--ink);
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  letter-spacing: .02em;
  padding-block: 8px;
}
.ticker--a { background: var(--ink); color: var(--yellow); transform: rotate(-2.5deg); }
.ticker--b { background: var(--mint); color: var(--ink); transform: rotate(2deg); margin-top: -12px; }
.ticker__track { display: inline-flex; will-change: transform; }
.ticker__track > span { flex: none; padding-right: .35em; }

/* ---------- Hero intro (transform only, so it never delays paint) ---------- */
.hero__logo { animation: drop-in .9s cubic-bezier(.34, 1.56, .64, 1) .05s backwards; }
.hero__copy > * { animation: rise .75s cubic-bezier(.34, 1.56, .64, 1) backwards; }
.hero__copy > :nth-child(1) { animation-delay: .1s; }
.hero__copy > :nth-child(2) { animation-delay: .2s; }
.hero__copy > :nth-child(3) { animation-delay: .3s; }
.hero__copy > :nth-child(4) { animation-delay: .4s; }
.hero__copy > :nth-child(5) { animation-delay: .5s; }
.sticker-label { animation: slap-in .5s cubic-bezier(.34, 1.56, .64, 1) .85s backwards; }
@keyframes drop-in { from { transform: translateY(-70px) scale(.7) rotate(-16deg); } }
@keyframes rise    { from { transform: translateY(44px) scale(.94); } }
@keyframes slap-in { from { transform: scale(2.2) rotate(24deg); opacity: 0; } }

/* ---------- Scroll reveals: stickers slapping onto the page ---------- */
html:not(.no-js) [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(36px) scale(.9) rotate(-4deg);
}
html:not(.no-js) [data-reveal="spin"]:not(.is-in) { transform: scale(.3) rotate(-160deg); }
html:not(.no-js) [data-reveal="slap"]:not(.is-in) { transform: scale(1.3) rotate(6deg); }
html:not(.no-js) [data-reveal]:not(.reveal-done) {
  transition:
    opacity .4s ease var(--rd, 0ms),
    transform .8s cubic-bezier(.34, 1.56, .64, 1) var(--rd, 0ms);
}

/* Parallax items move via the individual translate/rotate properties,
   so they stack on top of hover/float animations instead of fighting them. */
[data-parallax] { will-change: translate, rotate; }

/* ==========================================================================
   OPENING SCENE: the exploding chip bag
   Timeline (s): 0.1 bag drops · 0.3 "Grab a friend." · 0.8 "Open a bag."
                 0.9 bag puffs up and shakes harder and harder
                 1.55 BANG: flash, chips + salt fly out, a starburst hole tears open
                 from the middle and the homepage is revealed underneath
   Only shown when <html> has .has-intro (set by the inline script in <head>).
   ========================================================================== */
.intro { display: none; }
.has-intro .intro {
  display: block;
  position: fixed; inset: 0; z-index: 200;
  cursor: pointer;
  overflow: hidden;
  pointer-events: auto;
}

/* --- The mint panel, with a starburst-shaped hole that blasts open --- */
.intro__panel {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: var(--mint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='50.0,0.0 56.4,13.6 67.1,3.0 68.5,18.0 82.1,11.7 78.3,26.2 93.3,25.0 84.8,37.3 99.2,41.3 87.0,50.0 99.2,58.7 84.8,62.7 93.3,75.0 78.3,73.8 82.1,88.3 68.5,82.0 67.1,97.0 56.4,86.4 50.0,100.0 43.6,86.4 32.9,97.0 31.5,82.0 17.9,88.3 21.7,73.8 6.7,75.0 15.2,62.7 0.8,58.7 13.0,50.0 0.8,41.3 15.2,37.3 6.7,25.0 21.7,26.2 17.9,11.7 31.5,18.0 32.9,3.0 43.6,13.6'/%3E%3C/svg%3E") center / 0 0 no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='50.0,0.0 56.4,13.6 67.1,3.0 68.5,18.0 82.1,11.7 78.3,26.2 93.3,25.0 84.8,37.3 99.2,41.3 87.0,50.0 99.2,58.7 84.8,62.7 93.3,75.0 78.3,73.8 82.1,88.3 68.5,82.0 67.1,97.0 56.4,86.4 50.0,100.0 43.6,86.4 32.9,97.0 31.5,82.0 17.9,88.3 21.7,73.8 6.7,75.0 15.2,62.7 0.8,58.7 13.0,50.0 0.8,41.3 15.2,37.3 6.7,25.0 21.7,26.2 17.9,11.7 31.5,18.0 32.9,3.0 43.6,13.6'/%3E%3C/svg%3E") center / 0 0 no-repeat, linear-gradient(#000 0 0);
          mask-composite: exclude;
  -webkit-mask-size: 0 0, 100% 100%;   /* explicit so the hole size can animate */
          mask-size: 0 0, 100% 100%;
  animation:
    panel-shake .35s ease-out 1.55s,
    blast-open .75s cubic-bezier(.5, 0, .3, 1) 1.62s forwards;
}
@keyframes blast-open {
  to {
    -webkit-mask-size: 180vmax 180vmax, 100% 100%;
            mask-size: 180vmax 180vmax, 100% 100%;
  }
}
@keyframes panel-shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-10px, 6px); }
  40% { transform: translate(9px, -7px); }
  60% { transform: translate(-6px, -4px); }
  80% { transform: translate(4px, 5px); }
}

/* Charcoal outline riding the edge of the hole (same size curve as the mask) */
.intro__ring {
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0;
  transform: translate(-50%, -50%);
  max-width: none;   /* override the global img/svg max-width so it can outgrow the screen */
  overflow: visible;
  pointer-events: none;
  animation: ring-open .75s cubic-bezier(.5, 0, .3, 1) 1.62s forwards;
}
@keyframes ring-open { to { width: 180vmax; height: 180vmax; } }

/* Comic "POW" flash */
.intro__flash {
  position: absolute; left: 50%; top: 50%;
  width: min(78vmin, 560px); height: min(78vmin, 560px);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  animation: flash .5s cubic-bezier(.3, .8, .4, 1) 1.55s forwards;
}
@keyframes flash {
  0%   { transform: translate(-50%, -50%) scale(.1) rotate(0); }
  35%  { transform: translate(-50%, -50%) scale(1.1) rotate(10deg); }
  100% { transform: translate(-50%, -50%) scale(0) rotate(40deg); }
}

/* Hero waits (frozen on its first frame) until the bag pops */
.intro-hold body { overflow: hidden; }
.intro-hold .hero__logo,
.intro-hold .hero__copy > *,
.intro-hold .sticker-label { animation-play-state: paused; }

/* --- Stage: two lines + the bag --- */
.intro__stage { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 20px; }
.intro__line {
  position: relative; z-index: 2;
  margin: 0;
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2rem, 9vw, 3.6rem);
  line-height: 1;
  color: var(--ink);
}
.intro__line--1 {
  transform: rotate(-3deg);
  animation:
    intro-line .5s cubic-bezier(.34, 1.56, .64, 1) .3s backwards,
    line-blow-up .3s ease-in 1.55s forwards;
}
.intro__line--2 {
  transform: rotate(2deg);
  animation:
    intro-line .5s cubic-bezier(.34, 1.56, .64, 1) .8s backwards,
    line-blow-down .3s ease-in 1.55s forwards;
}
@keyframes intro-line     { from { opacity: 0; transform: translateY(24px) scale(.6) rotate(-10deg); } }
@keyframes line-blow-up   { to { opacity: 0; transform: translateY(-120px) scale(1.4) rotate(-14deg); } }
@keyframes line-blow-down { to { opacity: 0; transform: translateY(120px) scale(1.4) rotate(12deg); } }

.intro__stage picture { display: block; width: min(220px, 56vw); }
@media (min-width: 768px) { .intro__stage picture { width: 290px; } .intro__stage { gap: 20px; } }
.intro__bag {
  position: relative; z-index: 1;
  width: 100%;
  border-radius: 50%;
  border: var(--line-lg) solid var(--ink);
  box-shadow: var(--shadow-lg);
  background: var(--yellow);
  animation:
    bag-drop .6s cubic-bezier(.34, 1.56, .64, 1) .1s backwards,
    bag-puff .65s ease-in .9s,
    bag-burst .16s ease-out 1.55s forwards;
}
@keyframes bag-drop { from { transform: translateY(-75vh) rotate(-25deg) scale(.6); } }
/* Puffs up while the shaking gets more and more violent */
@keyframes bag-puff {
  0%   { transform: scale(1) rotate(0); }
  15%  { transform: scale(1.03, 1.05) rotate(-2deg) translateX(-2px); }
  30%  { transform: scale(1.07, 1.05) rotate(3deg) translateX(3px); }
  45%  { transform: scale(1.1, 1.13) rotate(-4deg) translateX(-4px); }
  60%  { transform: scale(1.16, 1.12) rotate(6deg) translateX(5px); }
  72%  { transform: scale(1.19, 1.23) rotate(-7deg) translateX(-6px); }
  84%  { transform: scale(1.26, 1.2) rotate(8deg) translateX(6px); }
  92%  { transform: scale(1.28, 1.3) rotate(-9deg) translateX(-7px); }
  100% { transform: scale(1.32, 1.3) rotate(4deg); }
}
@keyframes bag-burst {
  from { transform: scale(1.32, 1.3); opacity: 1; }
  to   { transform: scale(1.9); opacity: 0; }
}

/* --- Debris: chips and salt flung at the screen --- */
.intro__debris { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.intro__bit {
  position: absolute;
  width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border: var(--line) solid var(--ink);
  opacity: 0;
  animation: debris 1.15s cubic-bezier(.25, .6, .4, 1) calc(1.55s + var(--dl)) both;
}
.intro__bit--chip {
  height: calc(var(--s) * .72);
  margin-top: calc(var(--s) * -.36);
  border-radius: 52% 46% 56% 42% / 48% 58% 40% 52%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .55) 0 12%, transparent 13%),
    radial-gradient(circle at 60% 60%, var(--yellow) 0 45%, var(--gold) 46% 100%);
}
.intro__bit--salt {
  border-radius: 28%;
  background: linear-gradient(135deg, var(--white) 0 52%, var(--salt-shade) 52% 100%);
}
@keyframes debris {
  0%   { opacity: 0; transform: translate(0, 0) scale(.2) rotate(0); }
  6%   { opacity: 1; }
  100% { opacity: 1; transform: translate(var(--tx), var(--ty)) scale(1.5) rotate(var(--r)); }
}

.intro__hint {
  position: absolute; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom));
  margin: 0; text-align: center;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .03em;
  color: var(--ink);
  opacity: .75;
  animation: intro-hint .4s ease .7s backwards;
}
@keyframes intro-hint { from { opacity: 0; } }

/* Fallback skip for browsers without the Web Animations API */
.intro.is-skipping { opacity: 0; transition: opacity .3s ease; }

/* ==========================================================================
   LEGAL PAGES (privacy.html, terms.html)
   ========================================================================== */
.legal { background: var(--yellow); padding-block: 32px 64px; }
@media (min-width: 768px) { .legal { padding-block: 56px 96px; } }
.legal__card {
  max-width: 780px; margin-inline: auto;
  background: var(--white);
  border: var(--line-lg) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px 20px 32px;
}
@media (min-width: 768px) { .legal__card { padding: 48px 56px 52px; } }
.legal__card h1 { font-size: clamp(2.2rem, 8vw, 3.4rem); margin-bottom: .2em; }
.legal__card h2 { font-size: clamp(1.3rem, 4vw, 1.6rem); margin: 1.8em 0 .5em; scroll-margin-top: calc(var(--header-h) + 12px); }
.legal__card p, .legal__card li { font-size: 1.02rem; }
.legal__card ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.legal__card li { margin-bottom: .45em; }
.legal__card a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__card a:hover { background: var(--yellow); }
.legal__updated { font-weight: 700; color: var(--ink-soft); margin-bottom: 24px; }
.legal__tldr {
  background: var(--mint);
  border: var(--line) solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px 20px 6px;
  margin-bottom: 8px;
}
.legal__tldr h2 { margin-top: 0; font-size: 1.25rem; }
.legal-page .nav__cta { margin-left: auto; }

/* ==========================================================================
   MOBILE POLISH
   ========================================================================== */

/* Kill the 300ms double-tap delay on anything tappable */
a, button { touch-action: manipulation; }

/* Notch / home-indicator safe areas (viewport-fit=cover) */
.nav { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.site-footer { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }

/* Value cards become a swipeable row on phones instead of a tall stack */
@media (max-width: 767px) {
  .values {
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter));
    padding: 8px var(--gutter) 22px;
    scrollbar-width: none;
  }
  .values::-webkit-scrollbar { display: none; }
  .value-card { scroll-snap-align: start; }
  .values:focus-visible { outline-offset: -4px; border-radius: var(--radius); }

  /* Socials as a tidy 2×2 grid */
  .socials { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 340px; }
  .socials li:first-child { grid-column: 1 / -1; }  /* Roblox community gets its own row */
  .socials li:last-child:nth-child(even) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }  /* centre an odd one out */
  .social { width: 100%; justify-content: center; white-space: nowrap; }

  .about__lede { font-size: 1.1rem; }
  .about__punch { font-size: 1.15rem; }
  .game-card__title { font-size: 1.4rem; }
}

/* Touch screens: no sticky hover states; give feedback on press instead */
@media (hover: none) {
  .btn:hover { background: var(--btn-bg); transform: none; box-shadow: var(--shadow); }
  .btn:active { background: var(--btn-bg-hover); transform: translate(4px, 4px) scale(.97, .94); box-shadow: 0 0 0 var(--ink); }
  .social:hover { background: var(--white); transform: none; box-shadow: 3px 3px 0 var(--yellow); }
  .social:active { background: var(--gold); transform: translate(3px, 3px) scale(.97); box-shadow: 0 0 0 var(--yellow); }
  .game-card:hover { transform: none; box-shadow: var(--shadow-lg); }
  .value-card:nth-child(1):hover { transform: rotate(-1deg); }
  .value-card:nth-child(2):hover { transform: rotate(.8deg); }
  .value-card:nth-child(3):hover { transform: rotate(-.6deg); }
  .nav__brand:hover img { transform: none; }
  .wiggle-on-hover:hover, .game-card--soon:hover .mystery-bag { animation: none; }
  .wiggle-on-hover:active { animation: wiggle .6s ease-in-out; }  /* tap the logo to wiggle it */
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .btn:hover, .btn:active, .social:hover, .social:active,
  .game-card:hover, .value-card:hover { transform: none; }
  .crimp__heat { display: none; }
  .ticker__track { will-change: auto; }
  [data-parallax] { will-change: auto; }
}

/* ---------- Links that aren't set up yet (SITE_CONFIG value is empty) ---------- */
.is-unavailable { cursor: not-allowed; position: relative; }
.btn.is-unavailable, .social.is-unavailable { background: repeating-linear-gradient(-45deg, var(--white) 0 10px, #F4F1E6 10px 20px); }
.btn.is-unavailable:hover, .social.is-unavailable:hover { background: repeating-linear-gradient(-45deg, var(--white) 0 10px, #F4F1E6 10px 20px); transform: rotate(-1.5deg); }
.btn.is-unavailable:active, .social.is-unavailable:active { transform: none; box-shadow: var(--shadow); }
.soon-badge {
  display: inline-block; margin-left: .25em;
  font-family: var(--font-head); font-weight: 700; font-size: .68rem; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--yellow); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius-pill);
  padding: 4px 8px; transform: rotate(4deg);
}
.btn--primary.is-unavailable .soon-badge { background: var(--mint); }
.is-nope { animation: nope .4s ease; }
@keyframes nope { 0%,100% { translate: 0 0; } 20% { translate: -6px 0; } 40% { translate: 5px 0; } 60% { translate: -4px 0; } 80% { translate: 2px 0; } }
@media (prefers-reduced-motion: reduce) { .is-nope { animation: none; } .btn.is-unavailable:hover, .social.is-unavailable:hover { transform: none; } }
