/* ==========================================================================
   Fruit Picker — univers cartoon ensoleillé : ciel, nuages, pyramides, fruits
   ========================================================================== */

.page-fruit {
  --sky-1: #2f97ea;
  --sky-2: #6cc0f7;
  --sky-3: #c4e9ff;
  --sand: #f7d98b;
  --sand-2: #efc062;
  --sand-3: #e2a94a;
  --pyr: #f39062;
  --pyr-dark: #d9693f;
  --grass: #61b94a;
  --green: #3c8d2f;
  --green-dark: #24601b;
  --apple: #e2402b;
  --tag: #f26b1d;
  --purple: #6a3fb5;
  --gold: #ffc531;
  --wood: #b8783a;
  --ink: #2b3a1f;
  --muted: #5d6b4c;

  --font-cartoon: "Luckiest Guy", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-display: var(--font-cartoon);

  --nav-fg: #fff;
  --nav-bg: rgba(36, 96, 27, 0.9);
  --nav-border: rgba(255, 255, 255, 0.2);
  --nav-accent: var(--gold);
  --nav-cta-fg: #4a2a00;

  background: var(--sand);
  color: var(--ink);
}
.page-fruit .brand-name { font-family: var(--font-body); font-weight: 900; }
.page-fruit .site-nav:not(.is-scrolled):not(.is-open) .nav-menu a { text-shadow: 0 1px 6px rgba(0, 60, 120, 0.4); }

.cartoon {
  font-family: var(--font-cartoon);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #fff;
  -webkit-text-stroke: 0.14em var(--green);
  paint-order: stroke fill;
  filter: drop-shadow(0 0.07em 0 var(--green-dark));
}

.f-section { position: relative; padding: clamp(80px, 10vw, 130px) 0; }
.f-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 60px); text-align: center; }
.f-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 18px 4px;
  border-radius: 999px;
  font-family: var(--font-cartoon);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--tag);
  box-shadow: 0 4px 0 #b84a0e;
}
.f-title { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.05; }
.f-lead { margin-top: 18px; font-size: clamp(17px, 1.5vw, 19px); font-weight: 600; color: var(--muted); }

.green-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 4px 28px 0;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-cartoon);
  font-size: 21px;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  background: var(--btn, linear-gradient(180deg, #7fd45e, #3c8d2f));
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35), inset 0 -5px 0 rgba(0, 0, 0, 0.18), 0 0 0 4px #fff, 0 12px 24px -8px rgba(0, 40, 0, 0.5);
  transition: transform 0.25s var(--ease-bounce), filter 0.2s;
}
.green-btn:hover { transform: translateY(-3px) scale(1.04); filter: brightness(1.06); }
.green-btn:active { transform: translateY(2px); }
.green-btn svg { width: 22px; height: 22px; margin-top: -4px; }

/* ---------- HERO ---------- */
.fp-hero {
  position: relative;
  min-height: max(780px, 100svh);
  padding: calc(var(--nav-h) + 30px) 0 clamp(200px, 30vh, 300px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 45%, var(--sky-3) 78%);
}
.sun {
  position: absolute;
  top: 9%; right: 9%;
  width: clamp(110px, 13vw, 180px);
  aspect-ratio: 1;
  z-index: -3;
}
.sun::before {
  content: "";
  position: absolute;
  inset: -80%;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 246, 180, 0.35) 0 9deg, transparent 9deg 22.5deg);
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 68%);
  mask-image: radial-gradient(circle, #000 25%, transparent 68%);
  animation: spin 40s linear infinite;
}
.sun::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fffbe0, #ffe36b 45%, #ffc531 75%);
  box-shadow: 0 0 60px 20px rgba(255, 220, 90, 0.6);
}
@keyframes spin { to { transform: rotate(360deg); } }

.clouds { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.cloud {
  position: absolute;
  left: 0;
  width: var(--w, 220px);
  color: #fff;
  opacity: var(--o, 0.95);
  filter: drop-shadow(0 10px 0 rgba(120, 180, 230, 0.35));
  animation: cloud-move var(--dur, 80s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes cloud-move {
  from { transform: translateX(-30vw); }
  to { transform: translateX(110vw); }
}

.scene {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(220px, 34vh, 340px);
  z-index: -1;
  pointer-events: none;
}
.scene svg { width: 100%; height: 100%; }

.sky-fruits { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sky-fruit {
  position: absolute;
  top: -110px;
  width: var(--s, 70px);
  border: 0;
  padding: 0;
  background: none;
  pointer-events: auto;
  cursor: grab;
  animation: sky-fall var(--dur, 14s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.sky-fruit svg { width: 100%; height: auto; animation: sway 2.6s ease-in-out infinite alternate; filter: drop-shadow(0 8px 6px rgba(0, 60, 120, 0.25)); }
.sky-fruit .tag {
  position: absolute;
  left: 50%; bottom: -16px;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  margin-left: -15px;
  border-radius: 50%;
  font-family: var(--font-cartoon);
  font-size: 17px;
  line-height: 1;
  padding-top: 3px;
  color: #fff;
  background: var(--tag);
  box-shadow: 0 0 0 3px #fff;
}
.sky-fruit.is-picked { animation-play-state: paused; }
.sky-fruit.is-picked svg, .sky-fruit.is-picked .tag { animation: picked 0.5s var(--ease) forwards; }
@keyframes sky-fall {
  0% { transform: translateY(0); }
  100% { transform: translateY(calc(100svh + 260px)); }
}
@keyframes sway {
  from { transform: rotate(-10deg); }
  to { transform: rotate(10deg); }
}
@keyframes picked {
  to { transform: scale(1.6); opacity: 0; }
}

.fh-inner { position: relative; z-index: 1; }
.crate {
  position: relative;
  width: clamp(110px, 13vw, 150px);
  margin: 0 auto 18px;
  padding: 9px;
  border-radius: 34px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.07) 0 2px, transparent 2px 12px),
    linear-gradient(180deg, #d79a55, var(--wood));
  box-shadow: inset 0 0 0 4px #7a4a1c, 0 0 0 4px #fff, 0 22px 40px -12px rgba(0, 50, 100, 0.5);
  animation: crate-bob 4s ease-in-out infinite;
}
.crate img { border-radius: 26px; }
@keyframes crate-bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}
.fh-title { font-size: clamp(64px, 12vw, 150px); line-height: 0.92; }
.fh-title .row { display: block; }
.fh-title .ch {
  display: inline-block;
  animation: bounce-in 0.9s var(--ease-bounce) both, wave 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.07s), calc(1.3s + var(--i) * 0.1s);
}
@keyframes bounce-in { from { transform: translateY(-120px) rotate(-20deg); opacity: 0; } }
@keyframes wave {
  0%, 60%, 100% { transform: translateY(0) rotate(0); }
  30% { transform: translateY(-12px) rotate(-3deg); }
}
.fh-sub {
  max-width: 36ch;
  margin: 24px auto 0;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 0 rgba(20, 90, 160, 0.35), 0 2px 14px rgba(0, 70, 140, 0.45);
}
.fh-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }
.fh-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.fh-badges > span {
  padding: 6px 15px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: rgba(20, 90, 160, 0.3);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}
.fh-badges .star { color: var(--gold); }

/* ---------- COMMENT JOUER ---------- */
.howto {
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.35) 2px, transparent 3px) 0 0 / 34px 34px,
    linear-gradient(180deg, var(--sand), var(--sand-2));
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 120px; left: 12%; right: 12%;
  border-top: 6px dashed rgba(180, 110, 30, 0.4);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  padding: 26px 24px 30px;
  border-radius: 34px;
  text-align: center;
  background: #fffaf0;
  box-shadow: inset 0 0 0 5px var(--grass), 0 10px 0 var(--green), 0 24px 40px -20px rgba(80, 50, 0, 0.5);
  transition: transform 0.35s var(--ease-bounce);
}
.step:hover { transform: translateY(-8px) rotate(-1deg); }
.step-num {
  position: absolute;
  top: -26px; left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  padding-top: 6px;
  border-radius: 50%;
  font-family: var(--font-cartoon);
  font-size: 32px;
  color: #fff;
  background: var(--tag);
  box-shadow: 0 0 0 5px #fff, 0 6px 0 5px #b84a0e;
}
.step-art { display: grid; place-items: center; height: 170px; margin-top: 16px; }
.step-art svg { height: 150px; width: auto; }
.step h3 { font-family: var(--font-cartoon); font-weight: 400; font-size: 26px; letter-spacing: 0.02em; color: var(--green); margin-top: 6px; }
.step p { margin-top: 8px; font-weight: 600; color: var(--muted); }
.draw-path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 2.8s ease-in-out infinite; }
@keyframes draw {
  0% { stroke-dashoffset: 260; }
  55%, 80% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.bucket-fill { transform-origin: 50% 100%; animation: fill-up 3.2s ease-in-out infinite; }
@keyframes fill-up {
  0% { transform: scaleY(0.1); }
  70%, 100% { transform: scaleY(1); }
}
.bob { animation: crate-bob 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

/* ---------- MINI-JEU ---------- */
.f-demo { background: linear-gradient(180deg, #8fd0f7, var(--sky-2)); padding-top: clamp(110px, 13vw, 170px); }
.f-wave { position: absolute; top: -1px; left: 0; width: 100%; height: clamp(50px, 7vw, 110px); pointer-events: none; }
.f-demo .f-lead { color: #1d4f7a; }
.game {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 34px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 0 8px #fff, 0 0 0 14px var(--grass), 0 40px 70px -30px rgba(0, 40, 90, 0.6);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.game-bg { position: absolute; inset: 0; z-index: -1; transition: opacity 0.8s; }
.game-bg svg { width: 100%; height: 100%; }
.game-bg--forest { opacity: 0; }
.game.is-forest .game-bg--forest { opacity: 1; }
.game.is-forest .game-bg--desert { opacity: 0; }
.game canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hud-circle {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(64px, 11%, 104px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  padding: 0;
  font-family: var(--font-cartoon);
  line-height: 0.95;
  text-align: center;
  color: var(--green);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 5px var(--grass), 0 6px 14px rgba(0, 40, 0, 0.25);
}
.hud-level { top: 4%; left: 2.4%; font-size: clamp(12px, 1.7vw, 19px); }
.hud-level b { display: block; font-weight: 400; font-size: 1.8em; }
.hud-basket { top: 25%; left: 2.4%; overflow: hidden; }
.hud-basket .fill {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--fill, 0%);
  background: linear-gradient(180deg, #ffd25e, #ff9d1c);
  opacity: 0.85;
  transition: height 0.4s var(--ease-bounce);
}
.hud-basket span { position: relative; font-size: clamp(14px, 2vw, 22px); color: var(--green-dark); }
.hud-basket svg { position: relative; width: 46%; margin-bottom: -2px; }
.hud-magnet { top: auto; bottom: 4%; right: 2.4%; cursor: pointer; transition: transform 0.25s var(--ease-bounce); }
.hud-magnet:hover:not(:disabled) { transform: scale(1.08) rotate(-8deg); }
.hud-magnet:disabled { opacity: 0.5; cursor: default; }
.hud-magnet svg { width: 52%; }
.hud-magnet .count {
  position: absolute;
  right: 8%; bottom: 6%;
  display: grid;
  place-items: center;
  width: 36%; height: 36%;
  padding-top: 3px;
  border-radius: 50%;
  font-size: clamp(12px, 1.6vw, 18px);
  color: #fff;
  background: var(--tag);
  box-shadow: 0 0 0 3px #fff;
}
.hud-lives { position: absolute; top: 4%; right: 2.4%; z-index: 2; display: flex; gap: 4px; }
.hud-lives svg { width: clamp(18px, 2.6vw, 28px); transition: opacity 0.3s, transform 0.3s; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25)); }
.hud-lives svg.is-lost { opacity: 0.25; transform: scale(0.75); filter: grayscale(1); }

.g-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  background: rgba(30, 90, 160, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: opacity 0.35s, visibility 0s;
}
.g-overlay[hidden] { display: grid; opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0s 0.35s; }
.g-card { display: grid; justify-items: center; gap: 14px; max-width: 520px; }
.ribbon {
  position: relative;
  padding: 14px 44px 8px;
  border-radius: 22px;
  font-family: var(--font-cartoon);
  font-size: clamp(28px, 5vw, 50px);
  letter-spacing: 0.03em;
  color: #fff;
  -webkit-text-stroke: 0.1em #3a1a7a;
  paint-order: stroke fill;
  background: linear-gradient(180deg, #8d5cd9, var(--purple));
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.3), inset 0 -6px 0 rgba(0, 0, 0, 0.2), 0 0 0 5px #fff, 0 16px 30px -10px rgba(40, 0, 90, 0.6);
}
.stars3 { display: flex; gap: 6px; margin-bottom: -6px; }
.stars3 svg { width: clamp(38px, 6vw, 60px); filter: drop-shadow(0 4px 0 #c27a00); }
.stars3 svg:nth-child(2) { transform: translateY(-14px) scale(1.15); }
.g-card p { font-weight: 800; font-size: clamp(15px, 1.8vw, 19px); color: #fff; text-shadow: 0 2px 8px rgba(0, 40, 90, 0.6); }
.g-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 6px; }

.keypad {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 980px;
  margin: 34px auto 0;
}
.key {
  width: 58px; height: 58px;
  padding: 4px 0 0;
  border: 0;
  border-radius: 50%;
  font-family: var(--font-cartoon);
  font-size: 28px;
  color: #fff;
  background: radial-gradient(circle at 40% 30%, #ff9a52, var(--tag) 65%, #c94f10);
  box-shadow: 0 0 0 4px #fff, 0 6px 0 4px #b84a0e;
  transition: transform 0.15s var(--ease-bounce);
}
.key:active, .key.is-press { transform: translateY(4px) scale(0.95); box-shadow: 0 0 0 4px #fff, 0 2px 0 4px #b84a0e; }
.key.is-miss { animation: shake 0.35s; }
@keyframes shake {
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.f-hint { margin-top: 18px; text-align: center; font-weight: 700; color: #1d4f7a; font-size: 15px; }
.f-hint kbd { display: inline-block; min-width: 26px; padding: 1px 7px; border-radius: 7px; font-family: var(--font-body); font-weight: 900; color: var(--ink); background: #fff; box-shadow: 0 2px 0 #9cc4e4; }

/* ---------- ATOUTS ---------- */
.perks { background: linear-gradient(180deg, var(--sky-2), var(--sky-3) 30%, #e8f7ff); overflow: hidden; isolation: isolate; }
.perks .clouds { z-index: -1; }
.perk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.perk {
  padding: 28px 22px;
  border-radius: 30px;
  text-align: center;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(97, 185, 74, 0.35), 0 22px 40px -24px rgba(0, 60, 120, 0.5);
  transition: transform 0.35s var(--ease-bounce);
}
.perk:hover { transform: translateY(-6px) rotate(1deg); }
.perk-ico {
  display: grid;
  place-items: center;
  width: 84px; height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #eaf8e2;
  box-shadow: inset 0 0 0 4px var(--grass);
}
.perk-ico svg { width: 50px; height: 50px; }
.perk h3 { font-family: var(--font-cartoon); font-weight: 400; font-size: 22px; letter-spacing: 0.02em; color: var(--green); }
.perk p { margin-top: 8px; color: var(--muted); font-weight: 600; font-size: 15.5px; }

/* ---------- GALERIE ---------- */
.f-gallery { background: #e8f7ff; overflow: hidden; }
.f-gallery .gallery > * { width: min(600px, 84vw); }
.f-gallery .device { background: linear-gradient(145deg, #fff, #dbeefa); box-shadow: inset 0 0 0 1px rgba(0, 60, 120, 0.08), 0 30px 50px -30px rgba(0, 60, 120, 0.55); transition: transform 0.4s var(--ease-bounce); }
.f-gallery a:hover .device { transform: translateY(-8px) rotate(-1deg); }
.f-gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.f-gallery-head .f-head { margin: 0; text-align: left; }
.round-key { width: 58px; height: 58px; padding: 0; display: grid; place-items: center; }
.round-key svg { width: 26px; height: 26px; }

/* ---------- FICHE ---------- */
.f-facts { background: linear-gradient(180deg, #e8f7ff, var(--sand)); padding-top: 30px; }
.f-facts-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 40px;
  background: #fffaf0;
  box-shadow: inset 0 0 0 6px var(--grass), 0 12px 0 var(--green), 0 40px 60px -30px rgba(80, 50, 0, 0.5);
}
.f-facts-card h2 { text-align: center; font-size: clamp(30px, 4vw, 40px); margin-bottom: 24px; }
.f-facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.f-fact { padding: 16px 12px 14px; border-radius: 22px; text-align: center; background: #fff; box-shadow: inset 0 0 0 3px #f2e2bd; }
.f-fact small { display: block; font-size: 12px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.f-fact strong { display: block; margin-top: 4px; font-family: var(--font-cartoon); font-weight: 400; font-size: 22px; letter-spacing: 0.02em; color: var(--green-dark); }
.f-privacy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 20px;
  padding: 16px 22px;
  border-radius: 22px;
  background: #e9f5ff;
  color: #1d4f7a;
}
.f-privacy p { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.f-privacy svg { width: 30px; height: 30px; flex: none; }
.f-privacy a { font-weight: 800; color: #1d4f7a; white-space: nowrap; }

/* ---------- CTA ---------- */
.f-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(90px, 11vw, 140px) 0 clamp(220px, 26vw, 300px);
  text-align: center;
  background: linear-gradient(180deg, #8fd0f7, var(--sky-2));
}
.f-cta .scene { height: clamp(160px, 22vw, 260px); }
.f-cta .ribbon { display: inline-block; font-size: clamp(30px, 5vw, 56px); }
.f-cta .f-lead { color: #1d4f7a; max-width: 44ch; margin-inline: auto; }
.f-cta .fh-ctas { margin-top: 26px; }

.page-fruit .site-footer { background: #17330f; color: #dce9d2; border-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 50px; }
  .steps::before { display: none; }
  .perk-grid, .f-facts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .game { aspect-ratio: 4 / 5; border-radius: 26px; }
  .hud-circle { width: 64px; }
  .hud-level { font-size: 12px; }
  .hud-basket { top: 14%; }
  .key { width: 50px; height: 50px; font-size: 24px; }
  .keypad { gap: 12px; max-width: 340px; }
  .perk-grid { grid-template-columns: 1fr; }
  .f-gallery-head { flex-direction: column; align-items: flex-start; }
  .sun { right: 4%; top: 12%; }
}

.f-demo .f-wave path { fill: var(--wave-demo, #efc062); }
.f-cta .f-wave path { fill: var(--wave-cta, #f7d98b); }

/* ==========================================================================
   Mode sombre — « Fruit Picker de nuit »
   ========================================================================== */
:root[data-theme="dark"] .page-fruit {
  --wave-demo: #33270f;
  --wave-cta: #2a2214;
  --ink: #eef3e6;
  --muted: #c9bea4;
  background: #2a2214;
}
:root[data-theme="dark"] .page-fruit .fp-hero { background: linear-gradient(180deg, #081430 0%, #132a5a 48%, #2b4c85 80%); }
:root[data-theme="dark"] .page-fruit .fp-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 25% 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 24px 34px, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 96px 128px, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 170px 64px, #e4ecff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 236px 176px, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 300px 98px, #fff7d6 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 60px 200px, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 140px 20px, #fff 50%, transparent 52%);
  background-size: 330px 230px;
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.55; }
  to { opacity: 1; }
}
:root[data-theme="dark"] .page-fruit .sun::before { opacity: 0.18; }
:root[data-theme="dark"] .page-fruit .sun::after {
  background:
    radial-gradient(circle at 64% 62%, rgba(150, 140, 110, 0.4) 0 9%, transparent 10%),
    radial-gradient(circle at 36% 66%, rgba(150, 140, 110, 0.32) 0 6%, transparent 7%),
    radial-gradient(circle at 58% 30%, rgba(150, 140, 110, 0.3) 0 5%, transparent 6%),
    radial-gradient(circle at 38% 36%, #fffef4, #f1ecd2 55%, #d6cfaa 85%);
  box-shadow: 0 0 60px 16px rgba(220, 230, 255, 0.35);
}
:root[data-theme="dark"] .page-fruit .cloud { color: #7d90b8; filter: drop-shadow(0 8px 0 rgba(10, 20, 50, 0.35)); }
:root[data-theme="dark"] .page-fruit .scene svg { filter: brightness(0.5) saturate(0.85) hue-rotate(-12deg); }
:root[data-theme="dark"] .page-fruit .fh-badges > span { background: rgba(10, 20, 50, 0.45); }

:root[data-theme="dark"] .page-fruit .howto {
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.05) 2px, transparent 3px) 0 0 / 34px 34px,
    linear-gradient(180deg, #2a2214, #33270f);
}
:root[data-theme="dark"] .page-fruit .step { background: #221c12; box-shadow: inset 0 0 0 5px #3c8d2f, 0 10px 0 #24601b, 0 24px 40px -20px rgba(0, 0, 0, 0.7); }
:root[data-theme="dark"] .page-fruit .step h3,
:root[data-theme="dark"] .page-fruit .perk h3 { color: #8ee04c; }
:root[data-theme="dark"] .page-fruit .step p { color: #cdbf9f; }
:root[data-theme="dark"] .page-fruit .step-num { box-shadow: 0 0 0 5px #221c12, 0 6px 0 5px #8a3608; }

:root[data-theme="dark"] .page-fruit .f-demo,
:root[data-theme="dark"] .page-fruit .f-cta { background: linear-gradient(180deg, #102350, #1b3566); }
:root[data-theme="dark"] .page-fruit .f-demo .f-lead,
:root[data-theme="dark"] .page-fruit .f-cta .f-lead,
:root[data-theme="dark"] .page-fruit .f-hint { color: #bcd3f0; }
:root[data-theme="dark"] .page-fruit .game-bg { filter: brightness(0.62) saturate(0.9); }
:root[data-theme="dark"] .page-fruit .game { box-shadow: 0 0 0 8px #1f2f52, 0 0 0 14px #3c8d2f, 0 40px 70px -30px rgba(0, 0, 0, 0.7); }
:root[data-theme="dark"] .page-fruit .key { box-shadow: 0 0 0 4px #1f2f52, 0 6px 0 4px #8a3608; }

:root[data-theme="dark"] .page-fruit .perks { background: linear-gradient(180deg, #1b3566, #12264a 30%, #0f1f3d); }
:root[data-theme="dark"] .page-fruit .perk { background: #16233f; box-shadow: 0 0 0 4px rgba(97, 185, 74, 0.3), 0 22px 40px -24px rgba(0, 0, 0, 0.7); }
:root[data-theme="dark"] .page-fruit .perk p { color: #b8c7dd; }
:root[data-theme="dark"] .page-fruit .perk-ico { background: #1d3618; }

:root[data-theme="dark"] .page-fruit .f-gallery { background: #0f1f3d; }
:root[data-theme="dark"] .page-fruit .f-gallery .device { background: linear-gradient(145deg, #253a60, #13223f); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 50px -30px rgba(0, 0, 0, 0.8); }

:root[data-theme="dark"] .page-fruit .f-facts { background: linear-gradient(180deg, #0f1f3d, #2a2214); }
:root[data-theme="dark"] .page-fruit .f-facts-card { background: #221c12; box-shadow: inset 0 0 0 6px #3c8d2f, 0 12px 0 #24601b, 0 40px 60px -30px rgba(0, 0, 0, 0.7); }
:root[data-theme="dark"] .page-fruit .f-fact { background: #1a150d; box-shadow: inset 0 0 0 3px #4a3d24; }
:root[data-theme="dark"] .page-fruit .f-fact small { color: #c9bea4; }
:root[data-theme="dark"] .page-fruit .f-fact strong { color: #a6e86a; }
:root[data-theme="dark"] .page-fruit .f-privacy { background: rgba(124, 196, 255, 0.1); color: #bcd3f0; }
:root[data-theme="dark"] .page-fruit .f-privacy a { color: #bcd3f0; }
