@font-face { font-family: "Bubbles"; src: url("fonts/RubikBubbles-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Baloo"; src: url("fonts/Baloo2.ttf") format("truetype"); font-weight: 400 800; font-display: swap; }

:root {
  --sky: #2f8ff0;
  --sky-light: #8fd0ff;
  --grass: #5dbb3a;
  --grass-dark: #2e8c25;
  --orange: #ff9a1f;
  --pink: #ff4f7b;
  --yellow: #ffd23f;
  --ink: #1d2a1a;
  --card: rgba(0, 0, 0, 0.28);
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Baloo", ui-rounded, system-ui, sans-serif;
  font-weight: 600;
  color: var(--white);
  background: var(--sky) url("img/bg.jpg") center top / cover fixed;
  line-height: 1.5;
}
a { color: var(--yellow); }
img { max-width: 100%; display: block; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Outlined bubble titles, like in the game */
.bubble {
  font-family: "Bubbles", "Baloo", sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--white);
  -webkit-text-stroke: 2px rgba(20, 20, 20, 0.85);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
  margin: 0;
}

/* Header */
header { padding: 16px 0; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.brand span { font-family: "Bubbles", sans-serif; font-size: 22px; -webkit-text-stroke: 1.5px rgba(20,20,20,.85); paint-order: stroke fill; text-shadow: 0 3px 0 rgba(0,0,0,.4); }
.lang { display: flex; gap: 6px; }
.lang button {
  font: inherit; font-weight: 800; cursor: pointer;
  border: 2px solid rgba(255,255,255,.7); border-radius: 999px;
  background: rgba(0,0,0,.25); color: var(--white); padding: 4px 12px;
}
.lang button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--white); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 24px; padding: 24px 0 48px; }
.hero h1 { font-size: clamp(48px, 8vw, 88px); line-height: 1; }
.hero .tag { font-family: "Bubbles", sans-serif; color: var(--yellow); font-size: clamp(20px, 3vw, 28px); -webkit-text-stroke: 1.5px rgba(20,20,20,.85); paint-order: stroke fill; margin: 10px 0 18px; }
.hero p { font-size: 19px; max-width: 520px; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.hero-art {
  /* Box has the tree's exact aspect ratio, so percentages below land on the same spot of the
     artwork at any size. Grip point on the branch: 70% across, 39.3% down (measured). */
  position: relative; height: 460px; aspect-ratio: 780 / 1400; margin-left: auto; margin-right: 22%;
}
.hero-art .tree { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-art .monky {
  /* Monky is 33% of the tree height (width = 33% x 1400/780 x 324/700 = 27.4% of the box);
     his gripping foot (53%, 3% of his image) sits on the grip point, drawn behind the branch. */
  position: absolute; left: 55.5%; top: 36%; width: 27.4%; z-index: 0;
  transform-origin: 53% 3%;
  animation: swing 2.2s ease-in-out infinite alternate;
}
@keyframes swing { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .monky { animation: none; } }

.store {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 10px;
  background: #000; color: #fff; text-decoration: none; padding: 10px 18px; border-radius: 14px;
  border: 2px solid rgba(255,255,255,.8); box-shadow: 0 6px 0 rgba(0,0,0,.35);
  font-weight: 800; font-size: 18px;
}
.store svg { width: 26px; height: 26px; fill: #fff; }
.store small { display: block; font-size: 12px; font-weight: 600; opacity: .85; line-height: 1; }

/* Sections */
section { padding: 40px 0; }
section h2 { font-size: clamp(30px, 5vw, 44px); text-align: center; margin-bottom: 24px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--card); border: 2px solid rgba(255,255,255,.45); border-radius: 24px;
  padding: 18px; text-align: center; backdrop-filter: blur(6px);
}
.card img { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 8px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.3)); }
.card h3 { font-family: "Bubbles", sans-serif; font-weight: 400; color: var(--yellow); margin: 0 0 4px; font-size: 22px; -webkit-text-stroke: 1px rgba(20,20,20,.8); paint-order: stroke fill; }
.card p { margin: 0; font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border: 2px solid rgba(255,255,255,.45); border-radius: 24px; padding: 20px; backdrop-filter: blur(6px); }
.feature h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; color: var(--yellow); }
.feature p { margin: 0; }

.shots { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory; }
.shots img { width: 240px; flex: none; border-radius: 26px; border: 4px solid #fff; box-shadow: 0 10px 24px rgba(0,0,0,.3); scroll-snap-align: start; }

/* Text pages (privacy, support) */
.panel {
  background: linear-gradient(#5cbf45, #2e8c25); border: 4px solid rgba(255,255,255,.7); border-radius: 32px;
  padding: clamp(20px, 4vw, 40px); margin: 16px 0 48px; box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.panel h1 { font-size: clamp(34px, 6vw, 52px); margin-bottom: 6px; }
.panel h2 { font-size: 22px; font-weight: 800; color: var(--yellow); margin: 26px 0 6px; text-align: left; font-family: "Baloo", sans-serif; }
.panel p, .panel li { font-size: 17px; }
.panel .muted { opacity: .85; font-size: 15px; }
.faq details { background: rgba(0,0,0,.18); border-radius: 18px; padding: 14px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; }

/* Footer */
footer { background: rgba(0,0,0,.35); padding: 28px 0; margin-top: 24px; }
footer .bar { flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--white); text-decoration: none; font-weight: 800; }
footer a:hover { text-decoration: underline; }

[data-lang] { display: none; }
html[lang="en"] [data-lang="en"], html[lang="tr"] [data-lang="tr"] { display: revert; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-art { height: 360px; margin: 0 auto; transform: translateX(-12%); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
}

/* Keep per-language labels hidden even where a component sets its own display. */
html[lang="en"] [data-lang="tr"], html[lang="tr"] [data-lang="en"] { display: none !important; }
html[lang="en"] .store small[data-lang="en"], html[lang="tr"] .store small[data-lang="tr"] { display: block; }
