/* ==========================================================================
   Karlzone Napoli — napolitansk pizza
   Delad stilmall
   ========================================================================== */

:root {
  /* Palett */
  --tomato: #c4321f;
  --tomato-dark: #9a2417;
  --basil: #2f6e3e;
  --basil-light: #4a9460;
  --cream: #fdf6ec;
  --cream-dark: #f3e7d3;
  --charcoal: #211b16;
  --ink: #2c241d;
  --muted: #7a6e60;
  --gold: #e6a93c;
  --char: #1b1512;

  --maxw: 1180px;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 24px 50px -22px rgba(33, 27, 22, 0.5);
  --shadow-sm: 0 10px 26px -16px rgba(33, 27, 22, 0.55);
  --shadow-lg: 0 40px 80px -30px rgba(33, 27, 22, 0.55);

  /* Gradienter */
  --grad-warm: linear-gradient(135deg, #e6a93c 0%, #c4321f 60%, #9a2417 100%);
  --grad-tomato: linear-gradient(135deg, #d84a34 0%, #9a2417 100%);
  --grad-cream: linear-gradient(180deg, #fdf6ec 0%, #f6ead6 100%);

  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(154, 36, 23, 0.05) 1px, transparent 0);
  background-size: 22px 22px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

a { color: var(--tomato); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--tomato-dark); }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tomato);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.section-head .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section { padding: 92px 0; }
.section--tight { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head .eyebrow { justify-content: center; }

/* Gradient-text hjälpare */
.text-grad {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede { font-size: 1.18rem; color: var(--muted); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 246, 236, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--cream-dark);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; color: var(--charcoal); }
.brand:hover { color: var(--charcoal); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav__links a {
  color: var(--ink);
  font-weight: 500;
  font-size: .96rem;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--tomato);
  transition: width .25s ease;
}
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--tomato); }

.nav__toggle {
  display: none;
  background: none; border: none;
  font-size: 1.6rem; cursor: pointer; color: var(--charcoal);
  line-height: 1;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  border: 2px solid transparent;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .25s ease, filter .2s ease;
}
.btn--primary {
  background: var(--grad-tomato);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(154, 36, 23, .7);
}
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg);
  transition: left .6s ease;
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(154, 36, 23, .8); }
.btn--primary:hover::after { left: 130%; }
.btn--ghost { border-color: var(--charcoal); color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: var(--cream); transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 560px at 88% -12%, rgba(230, 169, 60, .30), transparent 60%),
    radial-gradient(760px 540px at -8% 112%, rgba(47, 110, 62, .18), transparent 55%),
    radial-gradient(600px 400px at 50% 120%, rgba(196, 50, 31, .10), transparent 60%),
    var(--cream);
}
/* mjuka animerade färgklickar */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
  z-index: 0;
  pointer-events: none;
}
.hero::before { width: 320px; height: 320px; background: rgba(230,169,60,.5); top: -80px; right: 10%; animation: float-blob 14s ease-in-out infinite; }
.hero::after  { width: 260px; height: 260px; background: rgba(196,50,31,.28); bottom: -60px; left: 6%; animation: float-blob 18s ease-in-out infinite reverse; }
@keyframes float-blob { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px, 30px) scale(1.12); } }

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 24px 104px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); margin-bottom: 22px; }
.hero h1 .accent {
  font-style: italic;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede { font-size: 1.22rem; color: var(--muted); max-width: 30rem; margin-bottom: 34px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__art { position: relative; display: flex; justify-content: center; align-items: center; }
/* glödande tallrik bakom pizzan */
.hero__art::before {
  content: "";
  position: absolute;
  inset: 4% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.85), rgba(253,246,236,.2) 65%, transparent 72%);
  box-shadow: 0 40px 80px -20px rgba(154,36,23,.4);
  z-index: 0;
}
.hero__art svg { position: relative; z-index: 1; width: 100%; max-width: 460px; filter: drop-shadow(0 30px 40px rgba(33,27,22,.28)); animation: spin-slow 60s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* svävande ingredienser runt pizzan */
.hero__float { position: absolute; z-index: 2; font-size: 2.2rem; filter: drop-shadow(0 6px 8px rgba(33,27,22,.25)); animation: bob 6s ease-in-out infinite; }
.hero__float--1 { top: 2%; left: 4%; animation-delay: 0s; }
.hero__float--2 { top: 12%; right: 2%; animation-delay: 1.2s; }
.hero__float--3 { bottom: 6%; right: 8%; animation-delay: 2.4s; }
.hero__float--4 { bottom: 2%; left: 10%; animation-delay: 3.1s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }

@media (prefers-reduced-motion: reduce) {
  .hero__art svg, .hero::before, .hero::after, .hero__float { animation: none; }
}

.hero__badge {
  position: absolute;
  bottom: 4%;
  left: 0;
  z-index: 3;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
}
.hero__badge strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--tomato); }
.hero__badge span { color: var(--muted); }

/* ---------- Stats strip ---------- */
.stats {
  position: relative;
  background:
    radial-gradient(600px 300px at 50% -40%, rgba(230,169,60,.18), transparent 70%),
    var(--charcoal);
  color: var(--cream);
  overflow: hidden;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats__grid > div { position: relative; }
.stats__grid > div:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 42px;
  background: rgba(253,246,236,.14);
}
.stat__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { font-size: .92rem; color: rgba(253,246,236,.7); letter-spacing: .04em; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(33,27,22,.04);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-warm);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 2;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card__media { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.card__media svg { width: 100%; height: 100%; transition: transform .4s ease; }
.card:hover .card__media svg { transform: scale(1.06); }
.card__body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.card__tag {
  align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--basil); background: rgba(47,110,62,.1);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 12px;
}
.card__body h3 { font-size: 1.35rem; margin-bottom: 8px; }
.card__body p { color: var(--muted); font-size: .98rem; }
.card__meta { margin-top: 16px; display: flex; gap: 16px; font-size: .85rem; color: var(--muted); }
.card__meta b { color: var(--ink); font-weight: 600; }

/* Step cards */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px dashed var(--cream-dark);
}
.step:last-child { border-bottom: none; }
.step__num {
  counter-increment: step;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--tomato); color: #fff;
  font-family: var(--font-display); font-size: 1.5rem;
}
.step__num::before { content: counter(step); }
.step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { color: var(--muted); }

/* Feature list with icons */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature__icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(230,169,60,.22), rgba(196,50,31,.14));
  box-shadow: inset 0 0 0 1px rgba(196,50,31,.12), 0 10px 20px -12px rgba(196,50,31,.5);
  margin-bottom: 18px; font-size: 1.7rem;
  transition: transform .25s ease;
}
.feature:hover .feature__icon { transform: translateY(-4px) rotate(-6deg); }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .97rem; }

/* ---------- Recipe layout ---------- */
.recipe { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.recipe__aside {
  position: sticky; top: 92px;
  background: #fff; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
}
.recipe__aside h3 { font-size: 1.1rem; margin-bottom: 16px; }
.ingredients { list-style: none; }
.ingredients li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--cream-dark);
  font-size: .97rem;
}
.ingredients li:last-child { border-bottom: none; }
.ingredients .amt { font-weight: 600; color: var(--tomato); white-space: nowrap; }
.recipe__main h2 { font-size: 1.9rem; margin: 0 0 18px; }
.recipe__main h3 { font-size: 1.3rem; margin: 32px 0 10px; }
.recipe__main p { margin-bottom: 14px; color: var(--ink); }
.meta-row { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--cream-dark); }
.meta-row div { font-size: .9rem; color: var(--muted); }
.meta-row b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--charcoal); }

.callout {
  background: rgba(230,169,60,.12);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: .97rem;
}
.callout strong { color: var(--tomato-dark); }

/* Page hero (subpages) */
.pagehero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 420px at 88% -25%, rgba(230,169,60,.28), transparent 60%),
    radial-gradient(600px 360px at 6% 120%, rgba(196,50,31,.12), transparent 60%),
    var(--grad-cream);
  padding: 74px 0 64px; text-align: center;
}
.pagehero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--grad-warm);
  opacity: .5;
}
.pagehero .eyebrow { justify-content: center; }
.pagehero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 14px; }
.pagehero p { color: var(--muted); font-size: 1.12rem; max-width: 560px; margin: 0 auto; }

/* ---------- Dough calculator ---------- */
.calc {
  background: var(--charcoal);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow);
}
.calc h3 { color: var(--cream); font-size: 1.5rem; margin-bottom: 6px; }
.calc__sub { color: rgba(253,246,236,.65); margin-bottom: 26px; font-size: .96rem; }
.calc__controls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.field label { display: block; font-size: .85rem; margin-bottom: 7px; color: rgba(253,246,236,.85); font-weight: 500; }
.field input, .field select {
  width: 100%; padding: 11px 13px;
  border-radius: var(--radius-sm); border: 1px solid rgba(253,246,236,.2);
  background: rgba(253,246,236,.06); color: var(--cream);
  font-size: 1rem; font-family: var(--font-body);
}
.field input:focus, .field select:focus { outline: 2px solid var(--gold); border-color: transparent; }
.field--range output { float: right; color: var(--gold); font-weight: 600; }
input[type="range"] { accent-color: var(--gold); padding: 0; }

.calc__result {
  margin-top: 28px; padding-top: 26px;
  border-top: 1px solid rgba(253,246,236,.15);
}
.calc__result h4 { color: var(--gold); font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.calc__table { width: 100%; border-collapse: collapse; }
.calc__table td { padding: 12px 0; border-bottom: 1px solid rgba(253,246,236,.1); }
.calc__table tr:last-child td { border-bottom: none; }
.calc__table .ing { color: rgba(253,246,236,.85); }
.calc__table .val { text-align: right; font-family: var(--font-display); font-size: 1.45rem; color: var(--cream); }
.calc__table .pct { text-align: right; color: rgba(253,246,236,.5); font-size: .85rem; width: 70px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--grad-warm);
  color: #fff; text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.14) 1px, transparent 0);
  background-size: 26px 26px;
  opacity: .5;
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 520px; margin: 0 auto 28px; font-size: 1.08rem; }
.cta-band .btn--ghost { border-color: #fff; color: #fff; }
.cta-band .btn--ghost:hover { background: #fff; color: var(--tomato); }

/* ---------- Footer ---------- */
.footer { background: var(--char); color: rgba(253,246,236,.7); padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer .brand { color: var(--cream); margin-bottom: 14px; }
.footer .brand:hover { color: var(--cream); }
.footer p { font-size: .95rem; max-width: 28rem; }
.footer h4 { color: var(--cream); font-family: var(--font-body); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; }
.footer a { color: rgba(253,246,236,.7); font-size: .95rem; }
.footer a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid rgba(253,246,236,.12); padding-top: 22px; text-align: center; font-size: .85rem; color: rgba(253,246,236,.5); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   Pizza Rush — spelet
   ========================================================================== */
.game {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  max-width: 920px;
  margin: 0 auto;
}

.game__hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 12px;
}
.hud__stat {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-align: center;
}
.hud__stat--time { background: var(--charcoal); }
.hud__stat--time .hud__label,
.hud__stat--time .hud__val { color: var(--cream); }
.hud__label { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hud__val { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--charcoal); line-height: 1.2; }

.game__timebar { height: 8px; border-radius: 999px; background: var(--cream-dark); overflow: hidden; margin-bottom: 20px; }
.game__timebar-fill { height: 100%; width: 100%; background: var(--gold); border-radius: 999px; transition: width 1s linear, background .3s ease; }

.game__order {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  background: rgba(196,50,31,.07);
  border: 1px dashed rgba(196,50,31,.3);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 22px;
}
.order__label { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.order__name { font-family: var(--font-display); font-size: 1.5rem; color: var(--tomato); margin-right: 6px; }
.order__need { display: flex; flex-wrap: wrap; gap: 7px; }
.need-chip { background: #fff; border: 1px solid var(--cream-dark); border-radius: 999px; padding: 4px 11px; font-size: .85rem; font-weight: 500; }

.game__board { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }

.game__pizza-wrap { position: relative; }
.game__pizza {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: #e8c98a;
  box-shadow: inset 0 0 0 14px #e2bf78, var(--shadow-sm);
  overflow: hidden;
  transition: transform .15s ease;
}
.game__pizza.has-sauce::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #d23a24, #b42a18);
}
.topping {
  position: absolute;
  font-size: 1.5rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
  animation: pop .25s ease;
}
@keyframes pop { from { transform: translate(-50%,-50%) scale(0); } to { transform: translate(-50%,-50%) scale(1); } }

.flash-good { animation: flashGood .5s ease; }
.flash-bad  { animation: flashBad .45s ease; }
@keyframes flashGood { 0%,100%{ box-shadow: inset 0 0 0 14px #e2bf78, var(--shadow-sm);} 50%{ box-shadow: inset 0 0 0 14px #4a9460, 0 0 0 6px rgba(74,148,96,.5);} }
@keyframes flashBad  { 0%,100%{ transform: translateX(0);} 20%{ transform: translateX(-8px);} 40%{ transform: translateX(8px);} 60%{ transform: translateX(-6px);} 80%{ transform: translateX(6px);} }

.g-toast {
  position: absolute;
  left: 50%; top: 8px;
  transform: translate(-50%, -12px);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
  z-index: 5;
}
.g-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.g-toast.is-good { background: var(--basil); }
.g-toast.is-bad  { background: var(--tomato); }

.controls__hint { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.game__palette { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.ing-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 6px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-size: .8rem; font-weight: 500; color: var(--ink);
  transition: transform .12s ease, border-color .15s ease, background .15s ease;
}
.ing-btn:hover { transform: translateY(-2px); border-color: var(--gold); }
.ing-btn.is-on { border-color: var(--basil); background: rgba(47,110,62,.1); }
.ing-btn__emoji { font-size: 1.5rem; }

.game__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.game__actions .btn { flex: 1; justify-content: center; }

.game__overlay {
  position: absolute; inset: 0;
  background: rgba(33,27,22,.82);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  z-index: 10;
}
.game__overlay.is-show { display: flex; }
.overlay__card { background: var(--cream); border-radius: var(--radius); padding: 36px; text-align: center; max-width: 420px; }
.overlay__card h2 { font-size: 1.8rem; margin-bottom: 12px; }
.overlay__card p { color: var(--muted); margin-bottom: 22px; }

@media (max-width: 720px) {
  .game__board { grid-template-columns: 1fr; }
  .game__pizza { max-width: 260px; }
  .game__hud { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lede { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__art { order: -1; }
  .hero__badge { position: static; margin: 18px auto 0; width: max-content; }
  .grid--3, .features { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .recipe { grid-template-columns: 1fr; }
  .recipe__aside { position: static; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .nav__links {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    background: var(--cream);
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--cream-dark);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform .3s ease;
  }
  .nav__links.is-open { transform: none; }
  .nav__toggle { display: block; }
  .grid--3, .grid--2, .features { grid-template-columns: 1fr; }
  .calc { padding: 26px; }
  .calc__controls { grid-template-columns: 1fr; }
  .calc__table .val { font-size: 1.25rem; }
}
