/* Hungry Gorilla tanıtım sayfası: ethembudak.com/hungry-gorilla/
   Gokki Island sayfasıyla aynı yapı; renkler ve yazı tipi oyundan. */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ink: #23302c;
  --ink-soft: #46524e;
  --muted: #66716d;
  --paper: #fbfaf3;
  --card: #ffffff;
  --line: #e4e6dc;
  --jelly-ink: #2b2836;
  --green: #3fae49;
  --green-dark: #2e8a37;
  --banana: #ffd23f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 "Nunito", ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--jelly-ink); outline-offset: 4px; border-radius: 6px; }

/* --- header & footer ---------------------------------------------------- */

.hg-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hg-doc-page .hg-header { position: static; border-bottom: 1px solid var(--line); }
.hg-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; min-height: 44px; }
.hg-brand img { border-radius: 11px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.hg-header nav { display: flex; gap: 20px; font-size: 14px; font-weight: 700; flex-wrap: wrap; justify-content: flex-end; }
.hg-header nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; opacity: .82; }
.hg-header nav a:hover { opacity: 1; }
.hg-lang { letter-spacing: .06em; font-size: 12px; text-transform: uppercase; }

.hg-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hg-footer a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.hg-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* --- shared type ----------------------------------------------------------- */

.hg-label { margin: 0; font-size: .9rem; font-weight: 800; letter-spacing: .04em; }
.hg-label span {
  display: inline-grid;
  place-items: center;
  width: 37px;
  height: 37px;
  margin-right: .75rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: .85rem;
}
h1, h2, h3 { font-weight: 900; line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); margin: .8rem 0 1rem; text-wrap: balance; }

/* Jelly button, same recipe as the game's buttons */
.hg-button {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 56px;
  padding: .6rem 1.6rem;
  border: 4px solid var(--jelly-ink);
  border-radius: 999px;
  background: linear-gradient(#6fd36f, var(--green) 55%, var(--green-dark));
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), 0 5px 0 var(--jelly-ink);
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
  transition: transform .12s ease, box-shadow .12s ease;
}
.hg-button:hover { transform: translateY(-2px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), 0 7px 0 var(--jelly-ink); }
.hg-button:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), 0 1px 0 var(--jelly-ink); }

/* --- hero ------------------------------------------------------------------ */

.hg-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(255, 246, 196, .55), transparent 70%),
    linear-gradient(#e9f8f1, #c3ebdf 55%, #a3dccb);
}
.hg-hero::before,
.hg-hero::after {
  /* soft jungle canopy blobs */
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 174, 73, .22), transparent 68%);
}
.hg-hero::before { left: -180px; top: 120px; }
.hg-hero::after { right: -200px; top: 320px; }
.hg-hero-copy { position: relative; z-index: 1; padding: 112px 22px 0; }
.hg-hero h1 { margin: .6rem auto .4rem; width: min(560px, 88%); }
.hg-hero h1 img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(31, 82, 71, .25)); }
.hg-intro { max-width: 46ch; margin: 0 auto 1.6rem; font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink-soft); }
.hg-status { margin: 1.2rem 0 0; font-size: .9rem; font-weight: 700; color: var(--ink-soft); }

.hg-stage {
  position: relative;
  width: min(900px, 100%);
  height: clamp(380px, 52vw, 560px);
  margin: 10px auto 0;
}
.hg-stage img { position: absolute; height: auto; }
.hg-stage-vine { height: 100% !important; width: auto; left: 50%; bottom: 0; transform: translateX(-36%); filter: drop-shadow(0 18px 18px rgba(31, 82, 71, .25)); }
.hg-float { filter: drop-shadow(0 10px 10px rgba(31, 82, 71, .2)); animation: hg-float 5s ease-in-out infinite; }
.hg-float-1 { width: clamp(64px, 10vw, 104px); left: 12%; top: 18%; }
.hg-float-2 { width: clamp(58px, 9vw, 92px); right: 13%; top: 8%; animation-delay: -1.6s; }
.hg-float-3 { width: clamp(52px, 8vw, 84px); right: 12%; bottom: 34%; animation-delay: -3.2s; }
.hg-float-4 { width: clamp(56px, 8vw, 86px); left: 20%; bottom: 20%; animation-delay: -2.4s; transform: rotate(-18deg); }
@keyframes hg-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

/* --- chapters --------------------------------------------------------------- */

.hg-chapter { padding: clamp(56px, 8vw, 112px) max(22px, calc((100% - 1180px) / 2)); overflow: clip; }
.hg-chapter-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(26px, 6vw, 88px); align-items: center; }
.hg-chapter:nth-child(even) .hg-chapter-inner { grid-template-columns: 1.15fr .85fr; }
.hg-chapter:nth-child(even) .hg-chapter-copy { order: 2; }
.hg-chapter-copy > p:not(.hg-label) { max-width: 40ch; margin: 0 0 1rem; font-size: 1.08rem; color: var(--ink-soft); }
.hg-list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .7rem; max-width: 40ch; }
.hg-list li { display: grid; grid-template-columns: 44px 1fr; gap: .8rem; align-items: center; font-size: 1.02rem; color: var(--ink-soft); }
.hg-list img { width: 44px; height: 44px; }
.hg-list strong { color: var(--ink); }

.hg-chapter-stage { position: relative; min-width: 0; aspect-ratio: 1.3; isolation: isolate; }
.hg-chapter-stage::before {
  content: "";
  position: absolute;
  inset: 3% 5% 6%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
}
.hg-chapter-stage img { position: absolute; height: auto; }
.hg-prop { filter: drop-shadow(0 16px 14px rgba(32, 42, 40, .16)); }

.hg-climb { background: #e2f4dc; }
.hg-climb .hg-p0 { height: 104%; width: auto; left: 50%; bottom: -4%; transform: translateX(-62%); }
.hg-climb .hg-p1 { width: 16%; right: 8%; top: 6%; animation: hg-float 4s ease-in-out infinite; }

.hg-bananas { background: #fff3c4; }
.hg-bananas .hg-phone { left: 50%; top: 50%; translate: -50% -50%; }
.hg-bananas .hg-p1 { width: 17%; left: 6%; top: 14%; transform: rotate(-14deg); }
.hg-bananas .hg-p2 { width: 13%; right: 8%; top: 30%; transform: rotate(16deg); }
.hg-bananas .hg-p3 { width: 15%; left: 12%; bottom: 10%; transform: rotate(8deg); }

.hg-powers { background: #def0ff; }
.hg-powers .hg-p0 { height: 100%; width: auto; left: 50%; bottom: -2%; transform: translateX(-40%); }
.hg-powers .hg-p1 { width: 19%; left: 4%; top: 12%; }
.hg-powers .hg-p2 { width: 17%; right: 2%; top: 40%; }
.hg-powers .hg-p3 { width: 15%; left: 12%; bottom: 8%; }
.hg-powers .hg-float { position: absolute; }

.hg-skins { background: #fde6ee; }
.hg-skins .hg-chapter-stage { aspect-ratio: 1.5; }
.hg-skins .hg-chapter-stage img { height: 66%; width: auto; bottom: 10%; }
.hg-skins .hg-s0 { left: 0; }
.hg-skins .hg-s1 { left: 19%; bottom: 22% !important; }
.hg-skins .hg-s2 { left: 39%; z-index: 1; height: 74% !important; }
.hg-skins .hg-s3 { left: 59%; bottom: 22% !important; }
.hg-skins .hg-s4 { right: 0; }

.hg-night { background: linear-gradient(#b0546b 0%, #7d3f5c 34%, #2f3570 66%, #1b2246 100%); color: #fff8ef; }
.hg-night .hg-chapter-copy > p:not(.hg-label) { color: #f3e7ee; }
.hg-night .hg-chapter-stage::before { background: rgba(255, 255, 255, .1); }
.hg-night .hg-phone { top: 50%; }
.hg-night .hg-ph0 { left: 4%; translate: 0 -46%; rotate: -8deg; }
.hg-night .hg-ph1 { left: 50%; translate: -50% -54%; z-index: 1; width: clamp(150px, 31%, 260px); }
.hg-night .hg-ph2 { right: 4%; translate: 0 -46%; rotate: 8deg; }

/* Phone frame around a real screenshot */
.hg-phone {
  position: absolute;
  width: clamp(130px, 27%, 230px);
  margin: 0;
  padding: 7px;
  border-radius: 34px;
  background: #15161a;
  box-shadow: 0 0 0 2px #3a3b42, 0 24px 44px -14px rgba(15, 20, 30, .55);
}
.hg-phone img { position: static !important; display: block; width: 100%; height: auto; border-radius: 27px; }
.hg-bananas .hg-phone { width: clamp(150px, 34%, 260px); }

/* --- promise cards & story ---------------------------------------------- */

.hg-section { width: min(1180px, calc(100% - 44px)); margin: 0 auto; padding: clamp(64px, 9vw, 120px) 0 0; }
.hg-section > h2 { margin-top: 0; }
.hg-lead { max-width: 52ch; margin: 0 0 32px; font-size: 1.1rem; color: var(--ink-soft); }
.hg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hg-grid article {
  padding: 26px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hg-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, #fff27a, #ff9f1c 35%, #d4f76b 65%, #3fae49);
}
.hg-grid h3 { margin: 6px 0 8px; font-size: 1.2rem; }
.hg-grid p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 15.5px; }

.hg-finale { width: min(1180px, calc(100% - 44px)); margin: clamp(64px, 9vw, 120px) auto 0; }
.hg-finale-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(20px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px) clamp(28px, 6vw, 80px) 0;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 85% 100%, rgba(255, 246, 196, .6), transparent 70%),
    linear-gradient(135deg, #e9f8f1, #a3dccb);
}
.hg-finale h2 { margin: 0 0 14px; }
.hg-finale p { max-width: 46ch; margin: 0 0 24px; font-size: 1.1rem; color: var(--ink-soft); }
.hg-finale-inner > div { padding-bottom: clamp(32px, 5vw, 64px); }
.hg-finale-inner > img { display: block; width: clamp(150px, 20vw, 240px); height: auto; align-self: end; margin-bottom: -6%; }
.hg-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hg-stats li {
  display: grid;
  min-width: 108px;
  padding: 12px 18px;
  border: 3px solid var(--jelly-ink);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 0 var(--jelly-ink);
  text-align: center;
}
.hg-stats strong { font-size: 1.9rem; line-height: 1.05; font-weight: 900; color: var(--green-dark); }
.hg-stats span { font-size: .85rem; font-weight: 800; color: var(--ink-soft); }
.hg-finale .hg-status { margin-top: 22px; }
.og-section { --og-accent: var(--green-dark); }

/* --- privacy & support ------------------------------------------------------ */

.hg-doc { width: min(760px, calc(100% - 44px)); margin: 0 auto; padding: 56px 0 96px; }
.hg-doc h1 { margin: 0 0 12px; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.hg-updated { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.hg-doc .hg-lead { margin: 0 0 28px; font-size: 1.15rem; }
.hg-doc .hg-updated { margin: 0 0 24px; }
.hg-doc section { padding: 22px 0; border-top: 1px solid var(--line); }
.hg-doc h2 { margin: 0 0 8px; font-size: 1.2rem; letter-spacing: -.01em; }
.hg-doc p { margin: 0; line-height: 1.65; color: var(--ink-soft); }
.hg-contact { margin-top: 32px !important; font-weight: 800; color: var(--ink) !important; }
.hg-contact a { text-decoration: underline; text-underline-offset: 3px; }

/* --- responsive & motion ------------------------------------------------------ */

@media (max-width: 860px) {
  .hg-chapter-inner, .hg-chapter:nth-child(even) .hg-chapter-inner { grid-template-columns: minmax(0, 1fr); }
  .hg-chapter:nth-child(even) .hg-chapter-copy { order: 0; }
  .hg-grid { grid-template-columns: 1fr; }
  .hg-finale-inner { grid-template-columns: 1fr; }
  .hg-finale-inner > img { justify-self: center; width: 130px; margin-bottom: 0; }
  .hg-finale-inner > div { padding-bottom: 8px; }
  .hg-header { flex-wrap: wrap; gap: 0 12px; padding-top: 6px; }
  .hg-header nav { gap: 14px; }
  .hg-hero-copy { padding-top: 124px; }
}
@media (max-width: 480px) {
  .hg-header nav a:not(.hg-lang) { font-size: 13px; }
  .hg-chapter-stage { aspect-ratio: 1.05; }
  .hg-skins .hg-chapter-stage { aspect-ratio: 1.2; }
  .hg-phone { border-radius: 24px; padding: 5px; }
  .hg-phone img { border-radius: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hg-float, .hg-climb .hg-p1 { animation: none; }
  .hg-button { transition: none; }
}
