/* =========================================================
   Dishwasher Avocado Studios: "Avocado Toybox" design tokens
   Colours mirror The Press in-game UITheme.cs and the Stitch
   design system (projects/4782999095783468541).
   ========================================================= */
:root {
  --ink: #1f2a44;
  --ink-soft: rgba(31, 42, 68, .72);
  --cream: #fff6e9;
  --cream-dark: #efe3cf;
  --surface: #ffffff;
  --lip: #e2d6c2;
  --mint: #00c897;
  --mint-dark: #00a07a;
  --mint-band: #5bc49a;
  --cash: #ffc93c;
  --cash-dark: #e0a800;
  --molten: #ff8a3d;
  --molten-dark: #d96a22;
  --cool: #4cc9f0;
  --cool-dark: #2aa3c9;
  --sky: #7cc8ec;
  --danger: #ff5c5c;

  --radius: 28px;
  --radius-sm: 16px;
  --font-display: "Luckiest Guy", "Arial Black", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }
:focus-visible { outline: 4px solid var(--cool); outline-offset: 3px; border-radius: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.center { text-align: center; }

/* ---------- Type ---------- */
/* The game's signature headline: white fill, navy outline, hard drop shadow */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .01em;
  color: #fff;
  -webkit-text-stroke: .14em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 .09em 0 var(--ink);
  line-height: 1;
}
.display--ink { color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; }
.h-xl { font-size: clamp(3rem, 9vw, 6.2rem); }
.h-lg { font-size: clamp(2.3rem, 6vw, 3.8rem); }
.h-md { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); font-weight: 800; }
.muted { color: var(--ink-soft); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .06em;
  color: var(--ink);
  background: var(--cash);
  padding: .35em .9em .2em;
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--cash-dark);
}

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: .03em;
  text-decoration: none;
  color: var(--ink);
  background: var(--cash);
  border: 0;
  border-radius: 999px;
  padding: .75em 1.5em .6em;
  box-shadow: 0 6px 0 var(--cash-dark);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 8px 0 var(--cash-dark); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--cash-dark); }
.btn--white { background: #fff; box-shadow: 0 6px 0 var(--lip); }
.btn--white:hover { box-shadow: 0 8px 0 var(--lip); }
.btn--white:active { box-shadow: 0 1px 0 var(--lip); }
.btn--mint { background: var(--mint); color: #fff; box-shadow: 0 6px 0 var(--mint-dark); }
.btn--mint:hover { box-shadow: 0 8px 0 var(--mint-dark); }
.btn--mint:active { box-shadow: 0 1px 0 var(--mint-dark); }
.btn--sm { font-size: .95rem; padding: .6em 1.15em .45em; }

/* Google Play badge, styled to sit with the chunky buttons */
.store-badge {
  display: inline-flex; align-items: center; gap: .8rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 18px;
  padding: .7rem 1.3rem .7rem 1rem;
  box-shadow: 0 6px 0 #0f1626;
  transition: transform .12s, box-shadow .12s;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #0f1626; }
.store-badge:active { transform: translateY(5px); box-shadow: 0 1px 0 #0f1626; }
.store-badge small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; opacity: .85; line-height: 1.1; }
.store-badge strong { display: block; font-size: 1.3rem; font-weight: 900; line-height: 1.1; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 8px 0 var(--lip);
  padding: 28px;
}
.sticker {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: .04em;
  color: var(--ink);
  background: var(--cash);
  border: 4px solid var(--ink);
  border-radius: 999px;
  padding: .45em 1em .3em;
  box-shadow: 0 5px 0 var(--ink);
  transform: rotate(-5deg);
}
.sticker--mint { background: var(--mint); color: #fff; }
.sticker--molten { background: var(--molten); color: #fff; }

.grid { display: grid; gap: 24px; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Bands ---------- */
.band-mint { background: var(--mint-band); }
.band-sky { background: linear-gradient(180deg, #6fc0ea 0%, #8fd3f2 100%); }
.band-ink { background: var(--ink); color: #fff; }
/* Soft scalloped edge at the bottom of a band, like the game's conveyor lip */
.band-edge { position: relative; }
.band-edge::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px;
  background: radial-gradient(circle at 22px 0, transparent 21px, var(--cream) 22px) 0 0 / 44px 26px repeat-x;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 246, 233, .92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--cream-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1; letter-spacing: .02em; }
.brand-name span { display: block; font-size: .72rem; letter-spacing: .14em; color: var(--mint-dark); margin-top: 3px; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 28px; font-weight: 800; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--mint-dark); }
.nav-cta { display: none; }
.nav-toggle {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 0; border-radius: 14px;
  background: #fff; color: var(--ink);
  box-shadow: 0 4px 0 var(--lip);
  cursor: pointer;
}
.mobile-menu { border-top: 3px solid var(--cream-dark); background: var(--cream); }
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 12px 20px 20px; }
.mobile-menu a:not(.btn) { display: block; padding: 12px 0; font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.mobile-menu .btn { margin-top: 8px; width: 100%; }
@media (min-width: 820px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Studio hero + dishwasher animation ---------- */
.hero { padding: 64px 0 96px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero p.lede { color: var(--ink); max-width: 34ch; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.dishwasher-stage { position: relative; max-width: 420px; margin: 0 auto; width: 100%; }
.dishwasher-stage svg { width: 100%; height: auto; overflow: visible; }
.dw-body { animation: dw-shake 6s infinite; transform-origin: 50% 100%; transform-box: fill-box; }
.dw-door { animation: dw-door 6s infinite; transform-origin: 50% 100%; transform-box: fill-box; }
.dw-avocado { animation: dw-avocado 6s infinite; transform-origin: 50% 100%; transform-box: fill-box; }
.dw-bubble { animation: dw-bubble 6s infinite; transform-box: fill-box; transform-origin: center; opacity: 0; }
.dw-bubble:nth-of-type(2) { animation-delay: .15s; }
.dw-bubble:nth-of-type(3) { animation-delay: .3s; }
.dw-bubble:nth-of-type(4) { animation-delay: .45s; }
.dw-bubble:nth-of-type(5) { animation-delay: .6s; }
@keyframes dw-shake {
  0%, 8% { transform: none; }
  10%, 14%, 18%, 22%, 26%, 30% { transform: rotate(-2deg) translateX(-3px); }
  12%, 16%, 20%, 24%, 28%, 32% { transform: rotate(2deg) translateX(3px); }
  34%, 100% { transform: none; }
}
@keyframes dw-door {
  0%, 33% { transform: none; }
  37%, 88% { transform: perspective(600px) rotateX(-70deg); }
  95%, 100% { transform: none; }
}
@keyframes dw-avocado {
  0%, 34% { transform: translateY(150px) scale(.6); opacity: 0; }
  35% { opacity: 1; }
  44% { transform: translateY(-120px) scale(1.05) rotate(-8deg); }
  52% { transform: translateY(0) scale(1.18, .82); }
  57% { transform: translateY(-18px) scale(.94, 1.06); }
  62%, 86% { transform: translateY(0) scale(1); opacity: 1; }
  93%, 100% { transform: translateY(150px) scale(.6); opacity: 0; }
}
@keyframes dw-bubble {
  0%, 12% { opacity: 0; transform: translateY(0) scale(.4); }
  20% { opacity: .95; }
  36% { opacity: 0; transform: translateY(-70px) scale(1.2); }
  100% { opacity: 0; }
}

/* ---------- Game cards ---------- */
.game-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.game-card__art { position: relative; aspect-ratio: 1024 / 500; background: var(--sky); }
.game-card__art img { width: 100%; height: 100%; object-fit: cover; }
.game-card__art .sticker { position: absolute; top: 14px; right: 14px; font-size: .85rem; }
.game-card__body { padding: 24px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-card__body .btn { align-self: flex-start; margin-top: auto; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { background: var(--cream); border-radius: 999px; padding: .2em .8em; font-size: .85rem; font-weight: 800; }

.game-card--soon {
  background: transparent;
  border: 4px dashed var(--lip);
  box-shadow: none;
  display: grid; place-items: center;
  text-align: center;
  padding: 40px 28px;
  min-height: 320px;
}
.game-card--soon .mystery {
  width: 96px; height: 96px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 28px;
  background: var(--cash);
  box-shadow: 0 6px 0 var(--cash-dark);
  font-family: var(--font-display); font-size: 3.2rem; color: #fff;
  -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill;
  animation: bob 3s ease-in-out infinite;
}

/* ---------- Value stickers ---------- */
.value { text-align: center; }
.value .icon {
  width: 72px; height: 72px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 22px;
  font-size: 2rem;
}
.value h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: .02em; margin-bottom: 8px; }

/* ---------- Game page hero ---------- */
.game-hero { padding: 56px 0 110px; overflow: hidden; }
.game-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .game-hero-grid { grid-template-columns: 1fr 1fr; } }
.title-pill {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  letter-spacing: .03em;
  background: var(--cash);
  color: var(--ink);
  border: 5px solid var(--ink);
  border-radius: 999px;
  padding: .4em 1.1em .25em;
  box-shadow: 0 7px 0 var(--ink);
  transform: rotate(-2deg);
}
.product-pile { position: relative; aspect-ratio: 1 / .85; max-width: 520px; margin: 0 auto; width: 100%; }
.product-pile img { position: absolute; filter: drop-shadow(0 14px 0 rgba(31, 42, 68, .15)); }
.float { animation: bob 3.6s ease-in-out infinite; }
.float-2 { animation-delay: -1.2s; }
.float-3 { animation-delay: -2.4s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(var(--r, 0deg)); } }

/* How it plays */
.step { position: relative; padding-top: 40px; }
.step-num {
  position: absolute; top: -22px; left: 24px;
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%;
  background: var(--mint); color: #fff;
  font-family: var(--font-display); font-size: 1.7rem;
  box-shadow: 0 5px 0 var(--mint-dark);
}
.step h3, .feature h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; letter-spacing: .02em; margin-bottom: 10px; }
.outcomes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; justify-content: center; }

.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .icon {
  flex: 0 0 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 18px;
  font-size: 1.7rem;
}
.bg-cash { background: var(--cash); box-shadow: 0 5px 0 var(--cash-dark); }
.bg-mint { background: var(--mint); box-shadow: 0 5px 0 var(--mint-dark); }
.bg-molten { background: var(--molten); box-shadow: 0 5px 0 var(--molten-dark); }
.bg-cool { background: var(--cool); box-shadow: 0 5px 0 var(--cool-dark); }

/* Product parade */
.parade { display: flex; gap: 12px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory; }
.parade figure { flex: 0 0 150px; margin: 0; text-align: center; scroll-snap-align: start; }
.parade img { width: 150px; height: 150px; object-fit: contain; transition: transform .2s; }
.parade figure:hover img { transform: translateY(-8px) rotate(-4deg); }
.parade figcaption { font-weight: 900; font-size: .95rem; }

/* ---------- Gallery + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .gallery { grid-template-columns: repeat(6, 1fr); } }
.shot {
  display: block; width: 100%; aspect-ratio: 9 / 16;
  padding: 0; border: 0; cursor: zoom-in;
  border-radius: 22px; overflow: hidden;
  background: #fff;
  box-shadow: 0 7px 0 var(--lip);
  transition: transform .18s;
}
.shot:hover { transform: translateY(-6px) rotate(-1.5deg); }
.shot img { width: 100%; height: 100%; object-fit: cover; }

.lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: none; align-items: center; justify-content: center;
  background: rgba(31, 42, 68, .88);
  padding: 16px;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-height: 84vh; width: auto; max-width: calc(100vw - 32px); border-radius: 26px; box-shadow: 0 10px 0 rgba(0, 0, 0, .25); }
.lightbox figcaption { color: #fff; font-weight: 800; }
.lightbox-btn {
  position: absolute;
  width: 54px; height: 54px; display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: #fff; color: var(--ink);
  box-shadow: 0 5px 0 var(--lip);
  cursor: pointer;
}
.lightbox-btn[data-lightbox-close] { top: 16px; right: 16px; }
.lightbox-btn[data-lightbox-prev] { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-btn[data-lightbox-next] { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Press kit ---------- */
.press-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .press-grid { grid-template-columns: .9fr 1.1fr; } }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin: 0; }
.facts dt { font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--mint-dark); }
.facts dd { margin: 2px 0 0; font-weight: 800; overflow-wrap: anywhere; }
.downloads { display: grid; gap: 16px; align-content: start; list-style: none; margin: 0; padding: 0; }
@media (min-width: 560px) { .downloads { grid-template-columns: 1fr 1fr; } }
.download {
  display: flex; gap: 16px; align-items: center;
  text-decoration: none;
  height: 100%;
  transition: transform .15s;
}
.download:hover { transform: translateY(-3px); }
.download .thumb { flex: 0 0 64px; height: 64px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; font-family: var(--font-display); }
.download .thumb img { width: 100%; height: 100%; object-fit: cover; }
.download strong { display: block; font-size: 1.05rem; font-weight: 900; }
.download span.meta { display: block; font-size: .85rem; color: var(--ink-soft); }
.download--main { background: var(--cash); box-shadow: 0 8px 0 var(--cash-dark); }
.download--main span.meta { color: var(--ink); }
.copy-box { background: var(--cream); border-radius: var(--radius-sm); padding: 16px 18px; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #dfe4ef; padding: 56px 0 28px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cash); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-title { font-family: var(--font-display); font-size: 1rem; letter-spacing: .06em; color: var(--cash); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .socials { display: flex; gap: 10px; }
[hidden] { display: none !important; }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 14px; background: rgba(255, 255, 255, .08);
}
.socials a:hover { background: var(--cash); color: var(--ink); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 2px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: #aab3c5; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 56px 0 72px; }
.legal { max-width: 760px; margin: -40px auto 0; position: relative; }
.legal .card { padding: clamp(24px, 5vw, 48px); }
.legal h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: .02em; margin: 2.2em 0 .5em; }
.legal h2:first-of-type { margin-top: 1em; }
.legal h3 { font-size: 1.1rem; font-weight: 900; margin: 1.6em 0 .4em; }
.legal p, .legal li { font-weight: 600; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal a { color: var(--mint-dark); font-weight: 800; }
.legal .summary { background: var(--cream); border-radius: var(--radius-sm); padding: 18px 22px; }
.legal .summary ul { margin: .4em 0 0; }
.table-wrap { overflow-x: auto; margin: 1em 0 1.5em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 2px solid var(--cream-dark); }
.legal th { font-weight: 900; background: var(--cream); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .dw-avocado { opacity: 1; transform: none; }
}
