:root {
  --cream: #fff2d8;
  --cream-2: #fff8ec;
  --cream-3: #ffe7bd;
  --green: #28563b;
  --green-2: #1d4430;
  --green-3: #173626;
  --orange: #f49a38;
  --orange-2: #c5741f;
  --ink: #1f2a22;
  --mute: #5c6b60;
  --navy: #111938;
  --radius: 28px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.75 "Baloo Bhaijaan 2", "Fredoka", system-ui, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--green); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---- header ---- */
header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); }
.brand img { width: 44px; height: 44px; }
.brand span { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 20px; line-height: 1.1; }
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: flex-end; }
nav a { font-weight: 700; text-decoration: none; }
nav a:hover { color: var(--orange-2); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: var(--green-3); font-weight: 800;
  padding: 10px 24px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 5px 0 var(--orange-2);
  transition: transform .1s, box-shadow .1s;
}
.btn:active { transform: translateY(5px); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn.ghost:active { transform: none; }
.btn.dark { background: var(--green); color: var(--cream-2); box-shadow: 0 5px 0 var(--green-3); }

/* ---- hero ---- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
  padding: 24px 0 56px;
}
.eyebrow {
  display: inline-block; background: var(--cream-3); color: var(--green); font-weight: 800;
  border-radius: 999px; padding: 2px 14px; font-size: 15px;
}
.hero h1 {
  color: var(--green); font-size: clamp(38px, 6.4vw, 66px); line-height: 1.15; margin: 14px 0 12px;
}
.hero h1 em { font-style: normal; color: var(--orange-2); }
.hero p.lead { color: var(--mute); font-size: 19px; margin: 0 0 24px; max-width: 520px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.hero-art .blob {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd59a, var(--orange) 70%);
  box-shadow: 0 30px 60px -30px rgba(197, 116, 31, .7);
}
.hero-art .mascot { position: absolute; inset: 12% 12% 6%; width: 76%; height: auto; filter: drop-shadow(0 18px 18px rgba(23, 54, 38, .25)); }
.hero-art .char { position: absolute; width: 22%; height: auto; animation: bob 4s ease-in-out infinite; }
.hero-art .c1 { top: 0; inset-inline-start: 2%; }
.hero-art .c2 { top: 8%; inset-inline-end: -2%; animation-delay: -1.3s; }
.hero-art .c3 { bottom: 4%; inset-inline-start: -4%; animation-delay: -2.4s; }
.hero-art .c4 { bottom: 0; inset-inline-end: 6%; animation-delay: -.7s; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .char { animation: none; } }

/* centred hero (game page, 404) */
.hero-center { text-align: center; padding: 28px 0 40px; }
.hero-center h1 { color: var(--green); font-size: clamp(30px, 6vw, 46px); line-height: 1.2; margin: 18px 0 8px; }
.hero-center p { color: var(--mute); font-size: 19px; margin: 0 auto 8px; max-width: 600px; }

/* ---- sections ---- */
section { margin: 0 0 64px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
h2 { color: var(--green); font-size: clamp(28px, 4vw, 38px); line-height: 1.25; margin: 0 0 8px; }
.section-head p { color: var(--mute); margin: 0; font-size: 18px; }
h3 { color: var(--green); font-size: 22px; line-height: 1.3; margin: 0 0 6px; }

.card {
  background: var(--cream-2); border-radius: var(--radius); padding: 24px;
  box-shadow: 0 14px 34px -22px rgba(40, 86, 59, .5);
}

/* values strip */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { text-align: center; padding: 26px 20px; }
.value .ico { font-size: 36px; line-height: 1; }
.value h3 { margin-top: 10px; }
.value p { color: var(--mute); margin: 0; }

/* featured game */
.featured {
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; padding: 0;
  background: var(--navy); color: #fff8ec;
}
.featured .info { padding: 32px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.featured .info h3 { color: #fff8ec; font-size: 30px; margin: 0; }
.featured .info p { color: #c9d0ec; margin: 0; }
.featured .app { display: flex; align-items: center; gap: 14px; }
.featured .app img { width: 72px; height: 72px; border-radius: 18px; }
.featured .tag { color: var(--orange); font-weight: 800; font-size: 15px; }
.featured .games { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; padding: 0; list-style: none; }
.featured .games li {
  display: flex; align-items: center; gap: 6px; background: #1f2c5e; border-radius: 999px;
  padding: 4px 12px 4px 6px; font-weight: 700; font-size: 15px;
}
.featured .games li img { width: 28px; height: 28px; }
.featured .games li.more { background: transparent; box-shadow: inset 0 0 0 2px #3d5094; padding-inline: 12px; color: #c9d0ec; }
.featured .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.featured .ctas .btn.ghost { color: #fff8ec; box-shadow: inset 0 0 0 2px #fff8ec; }
.featured .shot { position: relative; min-height: 320px; }
.featured .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.featured .shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, var(--navy) 0, transparent 30%);
}

.soon {
  margin-top: 16px; display: flex; align-items: center; gap: 16px;
  border: 2px dashed #e0c48f; background: transparent; box-shadow: none;
}
.soon .ico { font-size: 34px; }
.soon p { margin: 0; color: var(--mute); }

/* what we do */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service { display: flex; gap: 16px; align-items: flex-start; }
.service .ico {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  background: var(--cream-3); font-size: 28px;
}
.service p { color: var(--mute); margin: 0; }

/* characters */
.chars { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chars img { width: 92px; height: 92px; transition: transform .2s; }
.chars img:hover { transform: translateY(-6px) rotate(-4deg); }

/* contact */
.contact {
  text-align: center; background: var(--green); color: var(--cream-2); padding: 44px 24px;
}
.contact h2 { color: var(--cream-2); }
.contact p { color: #cfe3d6; margin: 0 0 22px; }
.contact .mail { font-family: "Fredoka", sans-serif; font-size: clamp(18px, 3.4vw, 26px); }

/* legal pages */
.legal { background: var(--cream-2); border-radius: 28px; padding: 26px; margin-bottom: 26px; }
.legal h1 { color: var(--green); font-size: 30px; line-height: 1.25; margin: 0 0 4px; }
.legal h3 { margin: 26px 0 6px; font-size: 20px; }
.legal .date { color: var(--mute); margin: 0 0 18px; }
.legal ul { padding-inline-start: 22px; }
.legal li { margin: 4px 0; }
.wrap.narrow { max-width: 880px; }

[lang="en"] { font-family: "Fredoka", system-ui, sans-serif; font-size: 16px; }
footer {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  color: var(--mute); padding: 10px 0 40px; font-size: 15px;
}
footer > div { flex-basis: 100%; text-align: center; }

/* older pages (game page, 404) */
.game { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.game img { width: 96px; height: 96px; border-radius: 22px; }
.game h3 { margin: 0; }
.game p { margin: 4px 0 12px; color: var(--mute); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 8px; }
  .hero p.lead { margin-inline: auto; }
  .hero .ctas { justify-content: center; }
  .hero-art { max-width: 340px; grid-row: 1; }
  .featured { grid-template-columns: 1fr; }
  .featured .shot { min-height: 220px; grid-row: 1; }
  .featured .shot::after { background: linear-gradient(to top, var(--navy) 0, transparent 40%); }
  .values, .services { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand span { font-size: 17px; }
  nav { gap: 2px 12px; font-size: 15px; }
  .featured .info { padding: 22px; }
  .chars img { width: 72px; height: 72px; }
  .game { grid-template-columns: 72px 1fr; }
  .game img { width: 72px; height: 72px; border-radius: 18px; }
}
