/* =========================================================
   Gazzini Games – home page
   Brand: lime #A8FA23 on near-black, Baloo 2 display font
   ========================================================= */

@font-face {
  font-family: "Baloo 2";
  src: url("../assets/fonts/baloo2-latin.woff") format("woff");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --lime: #a8fa23;
  --lime-dark: #5c8913;
  --ink: #0b0d08;
  --ink-2: #14170f;
  --ink-3: #1d2116;
  --line: #2b3121;
  --text: #eef3e6;
  --muted: #a3ab96;
  --bmm: #8b3fd1;
  --bmm-2: #ff7a1a;
  --fp: #3fae3a;
  --fp-2: #ffd23f;
  --radius: 22px;
  --maxw: 1120px;
  --display: "Baloo 2", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--lime); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 8, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar__brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.25rem;
}
.topbar__brand img { width: 36px; height: 36px; }
.topbar__nav { display: flex; gap: 6px; }
.topbar__nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.topbar__nav a:hover { background: var(--ink-3); color: var(--lime); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  padding: 12px 24px; border-radius: 999px; text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--lime); color: var(--ink); box-shadow: 0 8px 28px rgba(168, 250, 35, .28); }
.btn--primary:hover { box-shadow: 0 12px 34px rgba(168, 250, 35, .42); }
.btn--ghost { color: var(--text); border: 2px solid var(--line); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--play { background: #fff; color: #111; }
.btn--play svg { width: 20px; height: 20px; fill: currentColor; }
.btn--play:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
.btn--link { padding-left: 4px; padding-right: 4px; color: #fff; font-size: 1rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.btn--link:hover { transform: none; color: var(--lime); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 72px 22px 96px;
}
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 640px; z-index: -1;
  background:
    radial-gradient(closest-side, rgba(168, 250, 35, .20), transparent 70%) 50% 30% / 720px 520px no-repeat;
}
.hero__logo {
  width: 168px; height: 168px; margin: 0 auto 26px;
  filter: drop-shadow(0 0 36px rgba(168, 250, 35, .35));
  animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) both;
}
.hero__eyebrow {
  margin: 0 0 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700;
}
.hero__title { font-size: clamp(2.8rem, 8vw, 5.4rem); font-weight: 800; letter-spacing: -.01em; }
.hero__title span { color: var(--lime); }
.hero__lead { max-width: 620px; margin: 18px auto 30px; color: var(--muted); font-size: 1.15rem; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Section heads ---------- */
.section-head { text-align: center; margin-bottom: 40px; }
.section-head__kicker {
  margin: 0 0 4px; color: var(--lime); font-family: var(--display);
  font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .9rem;
}
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }

/* ---------- Games ---------- */
.games { max-width: var(--maxw); margin: 0 auto; padding: 20px 22px 90px; }

.game {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.15fr; align-items: center;
  border-radius: var(--radius);
  margin-bottom: 36px; min-height: 440px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  isolation: isolate;
}
.game:nth-of-type(even) { grid-template-columns: 1.15fr 1fr; }
.game:nth-of-type(even) .game__art { order: 2; }

.game--bmm {
  background:
    linear-gradient(90deg, rgba(25, 8, 38, .25) 0%, rgba(25, 8, 38, .92) 48%, #190826 100%),
    url("../assets/img/bmm-bg.webp") left center / 50% auto no-repeat,
    #190826;
  border: 1px solid #3c1d58;
}
.game--fp {
  background:
    linear-gradient(270deg, rgba(10, 46, 18, .15) 0%, rgba(10, 46, 18, .9) 48%, #0a2e12 100%),
    url("../assets/img/fp-bg.webp") right 60% / 52% auto no-repeat,
    #0a2e12;
  border: 1px solid #1f5a29;
}

.game__art { position: relative; height: 100%; min-height: 380px; display: grid; place-items: center; }
.game__icon {
  width: 220px; height: 220px; border-radius: 48px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 0 5px rgba(255, 255, 255, .12);
  transform: rotate(-4deg);
}
.game__logo { width: min(380px, 85%); filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .45)); }

.critter { position: absolute; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45)); animation: bob 4s ease-in-out infinite; }
.critter--1 { width: 104px; left: 6%;  top: 8%;   animation-delay: -1s; }
.critter--2 { width: 96px;  right: 6%; bottom: 10%; animation-delay: -2.5s; }
.critter--3 { width: 104px; left: 9%;  bottom: 6%; animation-delay: -.4s; }
.fruit { width: 72px; }
.fruit--1 { left: 10%;  top: 12%; }
.fruit--2 { right: 10%; top: 10%; animation-delay: -1.6s; }
.fruit--3 { left: 14%;  bottom: 12%; animation-delay: -2.8s; }
.fruit--4 { right: 14%; bottom: 14%; animation-delay: -.9s; }

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }

.game__body { padding: 44px 48px; }
.game__tag {
  display: inline-block; margin: 0 0 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.game--bmm .game__tag { background: rgba(255, 122, 26, .16); color: #ffb37a; }
.game--fp  .game__tag { background: rgba(255, 210, 63, .16); color: var(--fp-2); }
.game__title { font-size: clamp(2.1rem, 4.4vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.game--bmm .game__title { color: #d6a8ff; }
.game--fp  .game__title { color: #9dee6a; }
.game__desc { margin: 0 0 16px; color: #dfe3d8; }
.game__features { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 6px; }
.game__features li { position: relative; padding-left: 28px; color: #eef0ea; font-weight: 600; }
.game__features li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%;
}
.game--bmm .game__features li::before { background: radial-gradient(circle at 35% 35%, #ffb37a, var(--bmm-2)); }
.game--fp  .game__features li::before { background: radial-gradient(circle at 35% 35%, #c4ff8c, var(--fp)); }
.game__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ---------- About ---------- */
.about { background: var(--ink-2); border-block: 1px solid var(--line); }
.about__inner { max-width: 820px; margin: 0 auto; padding: 80px 22px; text-align: center; }
.about h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 16px; }
.about p { color: var(--muted); font-size: 1.1rem; margin: 0 0 36px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats li { background: var(--ink-3); border: 1px solid var(--line); border-radius: 18px; padding: 20px 12px; }
.stats strong { display: block; font-family: var(--display); font-size: 2rem; color: var(--lime); line-height: 1.1; }
.stats span { color: var(--muted); font-size: .9rem; }

/* ---------- Contact ---------- */
.contact { max-width: var(--maxw); margin: 0 auto; padding: 90px 22px; }
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  background: var(--ink-2); border: 1px solid var(--line); border-top: 4px solid var(--lime);
  border-radius: 18px; padding: 26px 24px;
}
.contact-card--bmm { border-top-color: var(--bmm); }
.contact-card--fp  { border-top-color: var(--fp); }
.contact-card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.contact-card p { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.contact-card__email { font-weight: 700; word-break: break-all; text-underline-offset: 3px; }
.contact-card--single { max-width: 560px; margin: 0 auto; text-align: center; padding: 34px 28px; }
.contact-card--single h3 { font-size: 1.7rem; }
.contact-card--single .contact-card__email { font-size: 1.35rem; }
.contact__address { text-align: center; color: var(--muted); margin: 32px 0 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); text-align: center; padding: 40px 22px 50px; color: var(--muted); font-size: .92rem; }
.footer__logo { width: 56px; height: 56px; margin: 0 auto 16px; opacity: .9; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; margin: 0 0 8px; }
.footer__links a { color: var(--text); text-decoration: none; }
.footer__links a:hover { color: var(--lime); text-decoration: underline; }
.footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .game, .game:nth-of-type(even) { grid-template-columns: 1fr; min-height: 0; }
  .game:nth-of-type(even) .game__art { order: 0; }
  .game__art { min-height: 300px; }
  .game--bmm {
    background:
      linear-gradient(180deg, rgba(25, 8, 38, .2) 0%, rgba(25, 8, 38, .95) 300px, #190826 100%),
      url("../assets/img/bmm-bg.webp") center top / 100% auto no-repeat, #190826;
  }
  .game--fp {
    background:
      linear-gradient(180deg, rgba(10, 46, 18, .1) 0%, rgba(10, 46, 18, .95) 300px, #0a2e12 100%),
      url("../assets/img/fp-bg.webp") center 70% / 100% auto no-repeat, #0a2e12;
  }
  .game__body { padding: 8px 26px 34px; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .topbar__brand span { display: none; }
  .topbar__nav a { padding: 8px 10px; }
  .stats { grid-template-columns: 1fr; }
  .game__icon { width: 170px; height: 170px; border-radius: 38px; }
  .critter--1, .critter--3 { width: 80px; }
  .critter--2 { width: 74px; }
  .fruit { width: 56px; }
}

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