/* ===== Fart Buddies – website styles (matches the game's UI) ===== */

:root {
  --ink: #2b1a10;          /* dark brown outline used on all game UI */
  --sky-top: #4fa8f0;
  --sky-bottom: #bfe6ff;
  --sand: #f6cf92;
  --sand-dark: #e3a964;
  --water: #29b6e0;
  --water-dark: #1595c4;
  --rail: #d9553f;
  --orange: #f6824b;
  --orange-dark: #d8602c;
  --green: #7ccf2e;
  --green-dark: #4f9f17;
  --blue: #3fb5ee;
  --blue-dark: #1d88c4;
  --yellow: #ffd23f;
  --yellow-dark: #e0a800;
  --cream: #fff8e8;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Baloo 2", "Arial Rounded MT Bold", sans-serif;
  color: var(--ink);
  background: var(--sand);
  font-weight: 600;
  line-height: 1.4;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Buttons (chunky, outlined, with a "lip" like GameButton/GameButtonLip) ===== */
.btn {
  --fill: var(--orange);
  --lip: var(--orange-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: .5px;
  text-shadow: 0 2px 0 rgba(43,26,16,.45);
  background: var(--fill);
  border: 4px solid var(--ink);
  border-radius: 18px;
  box-shadow: inset 0 -7px 0 var(--lip), inset 0 4px 0 rgba(255,255,255,.35), 0 6px 0 var(--ink);
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-3px) scale(1.03); filter: brightness(1.06); }
.btn:active {
  transform: translateY(5px);
  box-shadow: inset 0 -3px 0 var(--lip), inset 0 3px 0 rgba(255,255,255,.3), 0 1px 0 var(--ink);
}
.btn-orange { --fill: var(--orange); --lip: var(--orange-dark); }
.btn-green  { --fill: var(--green);  --lip: var(--green-dark); }
.btn-blue   { --fill: var(--blue);   --lip: var(--blue-dark); }
.btn-yellow { --fill: var(--yellow); --lip: var(--yellow-dark); }
.btn-big    { font-size: 1.6rem; padding: 18px 34px; border-radius: 22px; }
.btn-small  { font-size: 1.05rem; padding: 9px 18px; border-radius: 14px; }

.btn-icon {
  width: 24px; height: 28px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 50% 50% 45% 45% / 55% 55% 45% 45%;
  position: relative;
}
.btn-icon::after {
  content: ""; position: absolute; top: -9px; left: 9px;
  width: 7px; height: 9px; background: var(--green);
  border: 2px solid var(--ink); border-radius: 0 8px 0 8px;
}

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 28px;
  background: var(--cream);
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 4px 0 rgba(43,26,16,.15);
}
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 26px; font-size: 1.15rem; font-weight: 700; }
.nav-links a { position: relative; padding: 4px 2px; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px;
  background: var(--orange); border-radius: 4px; transform: scaleX(0); transition: transform .2s;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  padding: 60px 20px 220px;
  background: linear-gradient(var(--sky-top), var(--sky-bottom) 75%);
  overflow: hidden;
  text-align: center;
}
.hero-inner { position: relative; z-index: 3; max-width: 900px; margin: 0 auto; }
.hero-logo {
  width: min(680px, 92%); margin: 0 auto;
  filter: drop-shadow(0 10px 0 rgba(43,26,16,.25));
  animation: bob 3.2s ease-in-out infinite;
}
.hero-tag {
  font-weight: 800;
  margin-top: 10px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--yellow);
  -webkit-text-stroke: 8px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink);
  transform: rotate(-2deg);
}
.hero-sub {
  max-width: 620px; margin: 18px auto 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1.2rem; color: var(--ink);
  background: rgba(255,248,232,.85);
  border: 3px solid var(--ink); border-radius: 18px;
  padding: 14px 20px;
}
.hero-btns { margin-top: 30px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.hero-puff {
  position: absolute; right: 6%; bottom: 150px; z-index: 4;
  width: 150px;
  animation: puff 1.6s ease-in-out infinite;
}

/* sand + water stripes at the bottom of the hero */
.sand, .water { position: absolute; left: -5%; right: -5%; }
.sand {
  bottom: 90px; height: 120px; z-index: 1;
  background: var(--sand);
  border-top: 5px solid var(--ink);
  border-radius: 50% 50% 0 0 / 60px 60px 0 0;
}
.water {
  bottom: 0; height: 130px; z-index: 2;
  background:
    radial-gradient(ellipse 60px 26px at 60px 40px, rgba(255,255,255,.35) 60%, transparent 62%) 0 0 / 180px 90px,
    linear-gradient(var(--water), var(--water-dark));
  border-top: 8px solid var(--rail);
  box-shadow: inset 0 5px 0 var(--ink), 0 -5px 0 var(--ink);
  animation: flow 6s linear infinite;
}

/* clouds */
.cloud {
  position: absolute; z-index: 1;
  width: 180px; height: 60px; background: #fff;
  border-radius: 60px; opacity: .95;
  animation: drift linear infinite;
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; background: #fff; border-radius: 50%;
}
.cloud::before { width: 80px; height: 80px; top: -40px; left: 28px; }
.cloud::after  { width: 100px; height: 100px; top: -55px; left: 72px; }
.c1 { top: 70px;  left: -200px; animation-duration: 48s; }
.c2 { top: 210px; left: -200px; transform: scale(.7); animation-duration: 64s; animation-delay: -30s; }
.c3 { top: 130px; left: -200px; transform: scale(1.2); animation-duration: 80s; animation-delay: -55s; }

/* ===== Sections ===== */
.section { padding: 80px 24px; }
.section-water {
  background:
    radial-gradient(ellipse 70px 30px at 70px 45px, rgba(255,255,255,.18) 60%, transparent 62%) 0 0 / 200px 100px,
    var(--water);
  border-top: 5px solid var(--ink);
  border-bottom: 5px solid var(--ink);
}
.section-sand { background: var(--sand); }

.title {
  font-weight: 800;
  letter-spacing: .5px;
  text-align: center;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: #fff;
  -webkit-text-stroke: 8px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink);
  margin-bottom: 44px;
}

/* feature cards */
.cards {
  max-width: 1150px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px;
}
.card {
  --fill: var(--cream);
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 26px;
  padding: 26px 22px 30px;
  text-align: center;
  box-shadow: 0 8px 0 var(--ink);
  transition: transform .18s;
}
.card:hover { transform: translateY(-6px) rotate(-1deg); }
.card h3 { font-weight: 800; font-size: 1.6rem; margin: 10px 0 8px; }
.card p { font-family: "Nunito", system-ui, sans-serif; font-size: 1.02rem; }
.card-emoji {
  width: 86px; height: 86px; margin: 0 auto;
  display: grid; place-items: center;
  font-size: 2.6rem;
  border: 4px solid var(--ink); border-radius: 50%;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.15);
}
.card-green  .card-emoji { background: var(--green); }
.card-orange .card-emoji { background: var(--orange); }
.card-blue   .card-emoji { background: var(--blue); }
.card-yellow .card-emoji { background: var(--yellow); }

/* screenshots */
.gallery {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.shot {
  border: 5px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 9px 0 var(--ink);
  background: var(--ink);
  transition: transform .2s;
}
.shot:nth-child(odd)  { transform: rotate(-1.2deg); }
.shot:nth-child(even) { transform: rotate(1.2deg); }
.shot:hover { transform: rotate(0) scale(1.03); }
.shot img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* how to play */
.steps {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px;
}
.step {
  background: var(--cream);
  border: 4px solid var(--ink); border-radius: 24px;
  padding: 34px 20px 24px; text-align: center; position: relative;
  box-shadow: 0 7px 0 var(--ink);
}
.step-num {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  width: 52px; height: 52px; display: grid; place-items: center;
  font-size: 1.8rem; font-weight: 800; color: #fff;
  background: var(--orange);
  border: 4px solid var(--ink); border-radius: 50%;
  box-shadow: inset 0 -5px 0 var(--orange-dark);
  text-shadow: 0 2px 0 var(--ink);
}
.step h3 { font-weight: 800; font-size: 1.5rem; margin-bottom: 6px; }
.step p { font-family: "Nunito", system-ui, sans-serif; }

/* call to action */
.cta {
  position: relative;
  padding: 90px 24px;
  text-align: center;
  background: linear-gradient(var(--orange), var(--orange-dark));
  border-bottom: 5px solid var(--ink);
}
.cta h2 {
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3rem);
  color: #fff; margin-bottom: 28px;
  -webkit-text-stroke: 8px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink);
}
.cta .btn { --fill: var(--green); --lip: var(--green-dark); }
.cta-puff { width: 120px; margin: 0 auto 16px; animation: puff 1.6s ease-in-out infinite; }

/* support */
.panel {
  max-width: 640px; margin: 0 auto;
  background: var(--cream);
  border: 4px solid var(--ink); border-radius: 26px;
  padding: 32px; text-align: center;
  box-shadow: 0 8px 0 var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1.1rem;
  display: grid; gap: 20px; justify-items: center;
}
.panel .btn { font-family: "Baloo 2", sans-serif; }
.small { font-size: .95rem; opacity: .8; }

/* footer */
.footer {
  background: var(--ink); color: var(--cream);
  text-align: center; padding: 40px 20px;
  font-family: "Nunito", system-ui, sans-serif;
}
.footer-logo { width: 200px; margin: 0 auto 16px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 12px; font-family: "Baloo 2", sans-serif; font-size: 1.1rem; }
.footer-links a:hover { color: var(--yellow); }

/* privacy page */
.doc {
  max-width: 820px; margin: 50px auto 80px;
  background: var(--cream);
  border: 4px solid var(--ink); border-radius: 26px;
  padding: 40px;
  box-shadow: 0 8px 0 var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
}
.doc h1 { font-family: "Baloo 2", sans-serif; font-size: 2.4rem; margin-bottom: 6px; }
.doc h2 { font-family: "Baloo 2", sans-serif; font-size: 1.5rem; margin: 28px 0 8px; }
.doc p, .doc li { margin-bottom: 10px; }
.doc ul { padding-left: 22px; }
.doc .btn { margin-top: 24px; font-family: "Baloo 2", sans-serif; }

/* ===== Animations ===== */
@keyframes bob   { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes puff  { 0%,100% { transform: scale(1) rotate(-6deg); } 50% { transform: scale(1.1) rotate(6deg); } }
@keyframes drift { from { translate: 0 0; } to { translate: calc(100vw + 400px) 0; } }
@keyframes flow  { from { background-position: 0 0, 0 0; } to { background-position: 180px 0, 0 0; } }

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

/* ===== Mobile ===== */
@media (max-width: 760px) {
  .nav { padding: 8px 16px; }
  .nav-links { display: none; }
  .nav-logo img { height: 40px; }
  .hero { padding-bottom: 200px; }
  .hero-puff { width: 96px; right: 4%; bottom: 140px; }
  .btn-big { font-size: 1.25rem; padding: 14px 22px; }
  .gallery { grid-template-columns: 1fr; }
  .section { padding: 60px 16px; }
  .doc { margin: 24px 16px 60px; padding: 24px; }
}

/* ===== Contact page ===== */
.contact-wrap {
  min-height: 80vh;
  padding: 60px 20px 90px;
  background: linear-gradient(var(--sky-top), var(--sky-bottom));
  text-align: center;
}
.contact-puff { width: 110px; margin: 0 auto 6px; animation: puff 1.6s ease-in-out infinite; }
.form {
  max-width: 560px; margin: 0 auto;
  background: var(--cream);
  border: 4px solid var(--ink); border-radius: 26px;
  padding: 32px;
  box-shadow: 0 8px 0 var(--ink);
  display: grid; gap: 10px;
  text-align: left;
}
.form label { font-size: 1.15rem; margin-top: 8px; }
.form input, .form select, .form textarea {
  width: 100%;
  font-family: "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 1.05rem;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink); border-radius: 14px;
  padding: 12px 14px;
  box-shadow: inset 0 3px 0 rgba(43,26,16,.08);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(246,130,75,.3);
}
.form .btn { justify-self: center; margin-top: 18px; }
.form .honey { display: none; }
