/* Gravity Chef website. The game's own look (scripts/ui_theme.gd): Fredoka, cream panels, ink text,
   orange titles with a dark-orange outline, glossy green/orange buttons, ribbon headings. Phone first. */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #3b2a20;
  --ink-soft: #6b5546;
  --orange: #ff8a3d;
  --orange-dark: #c0502a;
  --red: #e8412c;
  --green: #4cb944;
  --green-dark: #2f8a2a;
  --brown: #8a5a3b;
  --cream: #fffaf0;
  --cream-2: #fff3dc;
  --wood: #b5784c;
  --wood-dark: #6b4423;
  --radius: 24px;
  --shadow: 0 6px 0 rgba(59, 42, 32, 0.18), 0 14px 30px rgba(59, 42, 32, 0.14);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--cream-2);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); }
a:hover { color: var(--red); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 12px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid rgba(138, 90, 59, 0.18);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.2rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 14px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--cream-2); color: var(--orange-dark); }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
         background: var(--cream); padding: 10px 20px 18px; border-bottom: 3px solid rgba(138, 90, 59, 0.18); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.1rem; }
  .nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 14px;
    background: var(--cream-2); color: var(--ink); font: inherit; font-size: 1.5rem; cursor: pointer;
  }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 28px; border-radius: 18px; border: 3px solid var(--ink);
  font: inherit; font-weight: 700; font-size: 1.15rem; color: #fff; text-decoration: none; cursor: pointer;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  background: linear-gradient(#ffa35e, var(--orange) 55%, #f07126);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 5px 0 var(--orange-dark);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 1px 0 var(--orange-dark); }
.btn.green { background: linear-gradient(#78d96b, var(--green) 55%, #39a332); box-shadow: inset 0 3px 0 rgba(255,255,255,.45), 0 5px 0 var(--green-dark); }
.btn.green:active { box-shadow: inset 0 3px 0 rgba(255,255,255,.45), 0 1px 0 var(--green-dark); }
.btn.store { background: linear-gradient(#4a3a30, #2a1d16); box-shadow: inset 0 2px 0 rgba(255,255,255,.18), 0 5px 0 #000; cursor: default; }
.btn.store:hover { transform: none; }
.btn.store small { display: block; font-size: 0.78rem; font-weight: 500; opacity: 0.85; line-height: 1.1; }
.btn.store span { text-align: left; line-height: 1.15; }
.btn.store .play { width: 28px; height: 28px; flex: none; }

/* ---------------------------------------------------------------- headings */
.title {
  font-weight: 700; color: #fff; letter-spacing: 0.01em; line-height: 1.1;
  -webkit-text-stroke: 0; paint-order: stroke fill;
  text-shadow:
    3px 0 0 var(--orange-dark), -3px 0 0 var(--orange-dark), 0 3px 0 var(--orange-dark), 0 -3px 0 var(--orange-dark),
    2px 2px 0 var(--orange-dark), -2px 2px 0 var(--orange-dark), 2px -2px 0 var(--orange-dark), -2px -2px 0 var(--orange-dark),
    0 6px 0 rgba(59, 42, 32, 0.25);
}
.ribbon {
  position: relative; display: inline-block; margin: 0 auto 28px; padding: 12px 40px 14px;
  background: linear-gradient(#ffa35e, var(--orange) 60%, #f07126);
  border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), 0 5px 0 var(--orange-dark);
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
}
.ribbon.green { background: linear-gradient(#78d96b, var(--green) 60%, #39a332); box-shadow: inset 0 3px 0 rgba(255,255,255,.4), 0 5px 0 var(--green-dark); }
.section-head { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; margin: 0 auto 36px; text-align: center; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: #f6e2c4 url("../img/bg_home_kitchen.webp") center 30% / cover no-repeat;
  padding: 36px 0 0;
}
.hero::before {         /* soft cream glow behind the logo, like the game's title screen */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 28%, rgba(255, 248, 230, 0.92), rgba(255, 244, 222, 0.55) 45%, rgba(255, 240, 215, 0.25) 75%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: end; gap: 24px; }
.hero-copy { padding-bottom: 64px; }
.logo { position: relative; width: min(520px, 100%); margin: 0 0 8px -8px; }
.logo img { width: 100%; filter: drop-shadow(0 8px 14px rgba(59, 42, 32, 0.25)); }
.tm { font-weight: 700; color: var(--ink); text-shadow: 0 0 3px #fff3dc, 0 0 6px #fff3dc; font-size: 0.85rem; letter-spacing: 0.02em; }
.logo .tm { position: absolute; left: 84%; top: 59%; font-size: clamp(0.8rem, 2.2vw, 1.15rem); }
.tagline { font-size: clamp(1.45rem, 3.4vw, 2.05rem); margin: 6px 0 12px; }
.hero p.sub { font-size: 1.2rem; color: var(--ink); max-width: 520px; margin: 0 0 26px; font-weight: 500; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-art { position: relative; align-self: end; display: flex; justify-content: center; }
.hero-art .chef { width: min(400px, 90%); filter: drop-shadow(0 18px 18px rgba(59, 42, 32, 0.28)); animation: bob 3.2s ease-in-out infinite; }
.hero-art .cat { position: absolute; right: 0; bottom: 18px; width: min(190px, 40%); filter: drop-shadow(0 10px 10px rgba(59, 42, 32, 0.25)); }
.float-food { position: absolute; width: 64px; filter: drop-shadow(0 6px 6px rgba(59, 42, 32, 0.2)); animation: tumble 6s ease-in-out infinite; }
.counter-edge { height: 26px; background: linear-gradient(var(--wood), var(--wood-dark)); border-top: 4px solid #d79a68; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes tumble { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-16px) rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .chef, .float-food { animation: none; } }
@media (max-width: 760px) {
  .hero { padding-top: 20px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .logo { margin: 0 auto 6px; width: min(420px, 92%); }
  .hero p.sub { margin-inline: auto; }
  .cta { justify-content: center; }
  .hero-copy { padding-bottom: 8px; }
  .hero-art .chef { width: min(300px, 74%); }
  .hero-art .cat { width: 32%; right: 2%; }
  .float-food { width: 48px; }
}

/* ---------------------------------------------------------------- sections */
section { padding: 72px 0; }
.band-cream { background: var(--cream); }
.band-wood {
  background: repeating-linear-gradient(90deg, #c48a5c 0 120px, #bd8355 120px 240px);
  border-block: 6px solid var(--wood-dark);
}
.card { background: var(--cream); border: 3px solid rgba(59, 42, 32, 0.85); border-radius: var(--radius); box-shadow: var(--shadow); }

/* how to play */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { padding: 26px 22px 24px; text-align: center; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -20px; left: 50%; translate: -50%; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 1.3rem;
  background: var(--green); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--green-dark);
}
.step .pics { height: 110px; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 8px; }
.step .pics img { max-height: 96px; width: auto; }
.step h3 { margin: 4px 0 6px; font-size: 1.35rem; }
.step p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 34px; } }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 10px 4px 26px; }
@media (max-width: 900px) {
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-inline: -20px; padding-inline: 20px; }
  .shots .phone { flex: none; width: 64%; max-width: 260px; }
}
.phone {
  margin: 0; scroll-snap-align: center; border-radius: 34px; padding: 10px; background: #2a1d16;
  box-shadow: 0 16px 30px rgba(59, 42, 32, 0.35);
}
.phone img { border-radius: 26px; width: 100%; }
.phone figcaption { color: #fff; text-align: center; font-weight: 600; padding: 8px 0 2px; font-size: 0.98rem; }

/* worlds */
.worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.world { overflow: hidden; display: flex; flex-direction: column; }
.world .scene { position: relative; aspect-ratio: 4 / 3; background-size: cover; background-position: center 22%; border-bottom: 3px solid rgba(59,42,32,.85); }
.world .scene .critic { position: absolute; right: 12px; bottom: -6px; width: 34%; filter: drop-shadow(0 8px 8px rgba(0,0,0,.3)); }
.world .scene .num {
  position: absolute; left: 14px; top: 14px; background: var(--red); color: #fff; font-weight: 700; border-radius: 999px;
  padding: 4px 14px; border: 3px solid var(--ink);
}
.world .body { padding: 18px 20px 22px; }
.world h3 { margin: 0 0 6px; font-size: 1.45rem; }
.world p { margin: 0; color: var(--ink-soft); }
.world .items { display: flex; gap: 6px; margin-top: 12px; }
.world .items img { width: 38px; }
.soon { text-align: center; margin-top: 26px; color: #fff; font-weight: 600; font-size: 1.1rem; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
@media (max-width: 900px) { .worlds { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* characters */
.cast { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.who { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; padding: 22px; }
.who img { width: 170px; justify-self: center; }
.who h3 { margin: 0 0 4px; font-size: 1.6rem; }
.who .role { color: var(--orange-dark); font-weight: 700; margin: 0 0 8px; }
.who p { margin: 0; color: var(--ink-soft); }
.critics { display: flex; justify-content: center; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.critics figure { margin: 0; text-align: center; width: 150px; }
.critics img { width: 120px; margin: 0 auto 6px; }
.critics figcaption { font-weight: 600; }
@media (max-width: 860px) { .cast { grid-template-columns: 1fr; } .who { grid-template-columns: 120px 1fr; } .who img { width: 120px; } }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 22px; display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
.feature img { width: 64px; }
.feature h3 { margin: 0 0 4px; font-size: 1.2rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* closing call to action */
.closing { text-align: center; background: linear-gradient(#ffe3c2, #ffd2a4); }
.closing img { width: 160px; margin: 0 auto 10px; }
.closing .cta { justify-content: center; margin-top: 18px; }

/* ---------------------------------------------------------------- text pages (privacy, support, ...) */
.page-hero { background: var(--cream); padding: 44px 0 28px; text-align: center; border-bottom: 3px solid rgba(138,90,59,.18); }
.page-hero h1 { margin: 0; font-size: clamp(2rem, 6vw, 3rem); }
.page-hero p { margin: 10px 0 0; color: var(--ink-soft); }
.doc { max-width: 780px; margin: 0 auto; padding: 40px 0 70px; }
.doc h2 { font-size: 1.45rem; margin: 34px 0 8px; color: var(--orange-dark); }
.doc h3 { font-size: 1.15rem; margin: 22px 0 6px; }
.doc p, .doc li { font-size: 1.05rem; }
.doc ul { padding-left: 1.3em; }
.doc .note { background: var(--cream); border-left: 6px solid var(--orange); padding: 14px 18px; border-radius: 12px; }
.faq details { background: var(--cream); border: 3px solid rgba(59,42,32,.85); border-radius: 18px; padding: 0 20px; margin: 12px 0; box-shadow: 0 4px 0 rgba(59,42,32,.15); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; padding: 16px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--orange-dark); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) { margin-top: 0; }
.contact-card { display: flex; gap: 20px; align-items: center; padding: 22px; margin: 10px 0 30px; }
.contact-card img { width: 110px; flex: none; }
.contact-card p { margin: 4px 0; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: #2f2119; color: #f3e3cf; padding: 40px 0 34px; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.site-footer a { color: #ffc28f; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #ffd9b5; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.site-footer .legal { font-size: 0.88rem; opacity: 0.8; margin: 8px 0 0; }
.site-footer .brand { color: #fff; }
.site-footer .brand sup { font-size: 0.55rem; margin-left: -6px; align-self: flex-start; margin-top: 6px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } .site-footer nav { justify-content: flex-start; } }

/* reveal on scroll (js/site.js adds .in); without JS everything simply shows */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
