:root {
  --cream: #fdf8f1;
  --sand: #f6ecdf;
  --peach: #ffe4cc;
  --terracotta: #e07a55;
  --terracotta-dark: #c9643f;
  --sage: #8fb57a;
  --sage-soft: #e6f0dd;
  --honey: #f5b94a;
  --honey-soft: #fdf0d2;
  --rose-soft: #fbe3df;
  --ink: #4a3a30;
  --muted: #8b7b6e;
  --radius: 26px;
  --wrap: 1180px;
  --shadow: 0 14px 34px rgba(120, 84, 52, .12);
  --head: "Fredoka", "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; line-height: 1.15; color: var(--ink); }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); margin: 0 0 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--terracotta); color: #fff;
  font-family: var(--head); font-weight: 600; font-size: 18px;
  padding: 14px 28px; border-radius: 999px;
  box-shadow: 0 8px 18px rgba(224, 122, 85, .3);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(224, 122, 85, .38); }
.btn:active { transform: scale(.97); }
.btn-sm { font-size: 16px; padding: 10px 22px; }
.btn-soft { background: #fff; color: var(--ink); box-shadow: 0 6px 16px rgba(120, 84, 52, .1); }
.btn-soft:hover { background: var(--sand); box-shadow: 0 8px 20px rgba(120, 84, 52, .14); }
.arrow { width: 20px; height: 20px; transition: transform .2s; }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 241, .85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(120, 84, 52, .08);
}
.nav-row { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 700; font-size: 26px; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--terracotta); transform: rotate(-6deg); transition: transform .3s; }
.brand:hover .brand-mark { transform: rotate(6deg) scale(1.05); }
.brand-mark svg { width: 30px; height: 21px; color: #fff; --pad-ink: var(--terracotta); }
.brand.small { font-size: 20px; }
.brand.small .brand-mark { width: 36px; height: 36px; border-radius: 12px; }
.brand.small .brand-mark svg { width: 23px; height: 16px; }
.links { display: flex; gap: 8px; margin-inline: auto; }
.links a { font-weight: 700; color: var(--muted); padding: 8px 18px; border-radius: 999px; transition: background .2s, color .2s; }
.links a:hover { color: var(--ink); background: var(--sand); }
.links a.active { color: var(--terracotta-dark); background: var(--peach); }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--ink); border-radius: 3px; transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; left: -200px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 160, .45), transparent 70%);
}
.hero-row { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(42px, 5vw, 66px); font-weight: 700; margin-bottom: 20px; }
.hl { color: var(--terracotta); position: relative; z-index: 0; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 14px; z-index: -1; border-radius: 8px;
  background: var(--honey-soft);
}
.lead { font-size: 19px; color: var(--muted); max-width: 470px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.scene { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 20px 30px rgba(120, 84, 52, .12)); }

/* scene animation */
.cloud { animation: cloud 14s ease-in-out infinite alternate; }
.c2 { animation-duration: 18s; animation-direction: alternate-reverse; }
.sun { animation: glow 5s ease-in-out infinite; transform-origin: 430px 140px; }
.smoke circle { animation: smoke 4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.smoke circle:nth-child(2) { animation-delay: 1.3s; }
.smoke circle:nth-child(3) { animation-delay: 2.6s; }
.window rect { animation: flicker 3.5s ease-in-out infinite; }
.w2 rect { animation-delay: 1.4s; }
.tree { transform-box: fill-box; transform-origin: bottom center; animation: sway 6s ease-in-out infinite; }
.t2 { animation-delay: -3s; }
.float { animation: float 5s ease-in-out infinite; }
.f2 { animation-delay: -1.6s; }
.f3 { animation: none; }
@keyframes cloud { to { transform: translateX(40px); } }
@keyframes glow { 50% { transform: scale(1.06); } }
@keyframes smoke { 0% { opacity: 0; transform: translateY(14px) scale(.6); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-26px) scale(1.3); } }
@keyframes flicker { 50% { fill: #ffe39a; } }
@keyframes sway { 50% { transform: rotate(2.5deg); } }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- Values ---------- */
.values { padding: 30px 0 70px; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { background: #fff; border-radius: 22px; padding: 26px 24px; box-shadow: 0 4px 14px rgba(120, 84, 52, .06); transition: transform .3s, box-shadow .3s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value b { display: block; font-family: var(--head); font-weight: 600; font-size: 19px; margin: 14px 0 4px; }
.value p { margin: 0; color: var(--muted); font-size: 15px; }
.v-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; }
.v-ico svg { width: 24px; height: 24px; }
.peach { background: var(--peach); color: var(--terracotta); }
.sage { background: var(--sage-soft); color: #6f9a5c; }
.honey { background: var(--honey-soft); color: #d99a25; }
.rose { background: var(--rose-soft); color: #d9706a; }
.mint { background: linear-gradient(160deg, #eaf4e2, #d9ead0); }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2, .about h2, .contact h2 { font-size: clamp(30px, 3.2vw, 42px); }
.sub { color: var(--muted); font-size: 18px; margin: 10px 0 0; }

/* ---------- Games ---------- */
.games { padding: 70px 0; background: var(--sand); border-radius: 48px 48px 0 0; }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.game { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 18px rgba(120, 84, 52, .08); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.game:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.game-pic { height: 220px; display: grid; place-items: center; padding: 18px; }
.game-pic img { max-height: 190px; width: auto; filter: drop-shadow(0 8px 12px rgba(80, 60, 30, .2)); transition: transform .35s; }
.game:hover .game-pic img { transform: rotate(-2deg) scale(1.05); }
.soon-ico { width: 120px; transition: transform .35s; }
.game:hover .soon-ico { transform: scale(1.08); }
.steam path { animation: steam 2.6s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: 1.3s; }
@keyframes steam { 50% { transform: translateY(-4px); opacity: .25; } }
.leaf { transform-box: fill-box; animation: sway 4s ease-in-out infinite; }
.l1 { transform-origin: right bottom; }
.l2 { transform-origin: left bottom; animation-delay: -2s; }
.game-body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.game-body h3 { font-size: 22px; margin: 12px 0 8px; }
.game-body p { color: var(--muted); font-size: 15.5px; margin: 0 0 16px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--sand); color: var(--muted); }
.pill.out { background: var(--sage-soft); color: #5e8a4b; }
.text-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--terracotta-dark); }

/* ---------- About ---------- */
.about { padding: 0 0 80px; background: var(--sand); }
.about-card { background: #fff; border-radius: 34px; padding: 52px 56px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: center; box-shadow: 0 6px 18px rgba(120, 84, 52, .06); }
.about h2 { margin-bottom: 16px; }
.about-copy p:not(.eyebrow) { color: var(--muted); margin: 0 0 14px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { background: var(--cream); border-radius: 18px; padding: 16px 22px; border: 2px dashed #efdcc6; }
.facts b { display: block; font-family: var(--head); font-weight: 600; font-size: 20px; color: var(--terracotta); }
.facts span { color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { padding: 80px 0; }
.contact-box {
  background: linear-gradient(120deg, var(--peach), var(--honey-soft));
  border-radius: 34px; padding: 46px 56px;
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
}
.contact-box h2 { margin-bottom: 6px; }
.contact-box p { color: #7a6250; margin: 0; max-width: 460px; }

/* ---------- Footer ---------- */
.footer { padding: 30px 0 36px; border-top: 1px solid rgba(120, 84, 52, .1); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 26px; flex-wrap: wrap; font-weight: 600; color: var(--muted); }
.footer nav a:hover { color: var(--terracotta); }
.copy { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.shown { opacity: 1; transform: none; }
.value-grid .reveal:nth-child(2), .game-grid .reveal:nth-child(2) { transition-delay: .1s; }
.value-grid .reveal:nth-child(3), .game-grid .reveal:nth-child(3) { transition-delay: .2s; }
.value-grid .reveal:nth-child(4) { transition-delay: .3s; }
.game.reveal.shown:hover { transform: translateY(-6px); }
.value.reveal.shown:hover { transform: translateY(-4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: 1fr 1fr; }
  .about-card { grid-template-columns: 1fr; padding: 40px; }
}

@media (max-width: 820px) {
  .nav-cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 4px; margin: 0;
    background: var(--cream); padding: 10px 20px 20px;
    box-shadow: 0 14px 24px rgba(120, 84, 52, .12);
    transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .nav.open .links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.open .burger span:nth-child(2) { opacity: 0; }
  .nav.open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero { padding-top: 30px; }
  .hero-row { grid-template-columns: 1fr; gap: 20px; }
  .hero-art { order: -1; max-width: 520px; margin: 0 auto; }
  .contact-box { padding: 36px 28px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .value-grid, .game-grid { grid-template-columns: 1fr; }
  .games { border-radius: 32px 32px 0 0; }
  .about-card { padding: 30px 24px; border-radius: 26px; }
  .foot-row { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
