:root {
  --ink: #26203a;
  --muted: #615a72;
  --cream: #fff6ea;
  --card: #ffffff;
  --line: #f0e2cf;
  --red: #ef4f3c;
  --orange: #ff8a3d;
  --sun: #ffcf3f;
  --sky: #4aa3ff;
  --sky-deep: #2f6fe0;
  --grape: #7b4dff;
  --mint: #22c3a0;
  --pink: #ff6fae;
  --radius: 26px;
  --shadow: 0 14px 34px rgba(38, 32, 58, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: var(--sky-deep); }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }

/* --- header ------------------------------------------------------------------------------ */
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  position: relative;
  z-index: 2;
}

header.top .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
}

header.top .brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }

nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}
nav a:hover { background: rgba(255, 255, 255, 0.55); }
nav a.lang { background: var(--ink); color: #fff; }

/* --- hero ------------------------------------------------------------------------------- */
.sky {
  position: relative;
  background: linear-gradient(180deg, #4aa3ff 0%, #8ccaff 55%, #ffe3c2 100%);
  overflow: hidden;
  padding-bottom: 56px;
}

.sky .cloud {
  position: absolute;
  background: #fff;
  border-radius: 999px;
  opacity: 0.85;
  animation: drift linear infinite;
}
.sky .cloud::before, .sky .cloud::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
}
.sky .cloud::before { width: 55%; height: 160%; left: 14%; top: -70%; }
.sky .cloud::after { width: 40%; height: 120%; right: 12%; top: -45%; }
.sky .c1 { width: 180px; height: 46px; top: 120px; animation-duration: 60s; }
.sky .c2 { width: 120px; height: 32px; top: 260px; animation-duration: 45s; animation-delay: -20s; }
.sky .c3 { width: 230px; height: 56px; top: 420px; animation-duration: 80s; animation-delay: -50s; opacity: 0.7; }
@keyframes drift { from { transform: translateX(-260px); } to { transform: translateX(110vw); } }

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: center;
  padding-top: 12px;
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 0.9fr 1.1fr; }
}

.hero-copy { text-align: center; }
@media (min-width: 900px) { .hero-copy { text-align: left; } }

.logo {
  display: block;
  font-size: clamp(3.4rem, 11vw, 6.2rem);
  font-weight: 800;
  line-height: 1;
  margin: 0;
  color: #ffd86b;
  letter-spacing: 2px;
  text-shadow:
    0 4px 0 #5a2412, 3px 0 0 #5a2412, -3px 0 0 #5a2412, 0 -3px 0 #5a2412,
    3px 4px 0 #5a2412, -3px 4px 0 #5a2412, 0 10px 18px rgba(60, 20, 10, 0.35);
  animation: bob 3.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-6px) rotate(-1deg); } }

.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.15;
  margin: 18px 0 8px;
  color: #fff;
  text-shadow: 0 2px 0 rgba(38, 32, 58, 0.45);
}

.hero .lead { font-size: 1.2rem; color: #10213f; margin: 0 0 22px; font-weight: 600; }

.stores { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
@media (min-width: 900px) { .hero .stores { justify-content: flex-start; } }
.store { display: inline-block; line-height: 0; transition: transform 0.15s; }
.store:hover { transform: translateY(-3px) scale(1.03); }
.store img { display: block; }
/* Apple's badge has no padding; Google's PNG has a built-in margin, so it is drawn larger. */
.badge-apple { height: 54px; width: auto; }
.badge-play { height: 80px; width: auto; margin: -13px -10px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
@media (min-width: 900px) { .chips { justify-content: flex-start; } }
.chip {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* The real game, one click away (/play) */
.mini-card {
  position: relative;
  display: block;
  background: linear-gradient(160deg, #7b4dff, #4a2fc0);
  border-radius: 32px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(50, 20, 120, 0.35);
  border: 5px solid rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: transform 0.15s;
}
.mini-card:hover { transform: translateY(-4px) rotate(-0.5deg); }
.mini-card .label {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--sun);
  color: var(--ink);
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  z-index: 2;
}
.mini-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 22px;
}
.play-overlay {
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 18, 60, 0.1), rgba(30, 18, 60, 0.6));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  text-align: center;
  padding: 0 16px;
  font-weight: 600;
}
.play-overlay strong {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  line-height: 1.1;
  text-shadow: 0 3px 0 #2a1650;
}
.play-btn {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  padding-left: 8px;
  background: linear-gradient(180deg, #4fd36a, #2ea64a);
  box-shadow: 0 6px 0 #1f7a35, 0 10px 20px rgba(0, 0, 0, 0.3);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .play-btn { animation: none; } }

.btn {
  font: inherit;
  font-weight: 800;
  font-size: 1.35rem;
  border: 0;
  border-radius: 999px;
  padding: 10px 34px;
  color: #fff;
  background: linear-gradient(180deg, #4fd36a, #2ea64a);
  box-shadow: 0 6px 0 #1f7a35, 0 10px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.1s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #1f7a35; }

/* --- sections ---------------------------------------------------------------------------- */
section { padding-block: 72px 24px; }
section h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 8px;
  text-align: center;
}
section .sub { text-align: center; color: var(--muted); font-size: 1.15rem; margin: 0 auto 28px; max-width: 640px; }

.steps { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  text-align: center;
}
.step .n {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.step:nth-child(1) .n { background: var(--red); }
.step:nth-child(2) .n { background: var(--orange); }
.step:nth-child(3) .n { background: var(--grape); }
.step h3 { margin: 0; font-size: 1.35rem; }
.step p { margin: 4px 0 0; color: var(--muted); }

.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 16px 18px;
  margin: 0 -16px;
  scrollbar-width: thin;
}
.shots img {
  flex: 0 0 auto;
  width: min(84vw, 560px);
  height: auto;
  aspect-ratio: 20 / 9;
  object-fit: cover;
  border-radius: 22px;
  scroll-snap-align: center;
  box-shadow: var(--shadow);
}

.band { background: linear-gradient(180deg, #fff1df, #ffe3cf); padding-block: 64px; margin-top: 48px; }

.features { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  border-radius: var(--radius);
  padding: 22px;
  color: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.feature::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -30px;
  bottom: -40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.feature h3 { margin: 0 0 4px; font-size: 1.35rem; }
.feature p { margin: 0; opacity: 0.95; }
.f1 { background: linear-gradient(150deg, #ff6a4d, #e2463a); }
.f2 { background: linear-gradient(150deg, #4aa3ff, #2f6fe0); }
.f3 { background: linear-gradient(150deg, #ffb23f, #f07a2a); }
.f4 { background: linear-gradient(150deg, #8f6bff, #6236e0); }
.f5 { background: linear-gradient(150deg, #ff7fb8, #e94f95); }
.f6 { background: linear-gradient(150deg, #2fd3ae, #129b7c); }

.arenas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .arenas { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .arenas { grid-template-columns: repeat(5, 1fr); } }
.arena {
  margin: 0;
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(38, 32, 58, 0.12);
  transition: transform 0.15s;
  position: relative;
}
.arena:hover { transform: translateY(-4px) rotate(-0.6deg); }
.arena img { display: block; width: 100%; height: auto; aspect-ratio: 27 / 16; object-fit: cover; }
.arena figcaption { padding: 8px 12px 10px; font-weight: 700; line-height: 1.2; }
.arena figcaption small { display: block; color: var(--muted); font-weight: 600; }
.arena .new {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--sun);
  border-radius: 999px;
  padding: 0 10px;
  font-weight: 800;
  font-size: 0.85rem;
}
h3.group { text-align: center; font-size: 1.4rem; margin: 30px 0 14px; }

.update { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
@media (min-width: 760px) { .update { grid-template-columns: repeat(4, 1fr); } }
.update div {
  background: var(--card);
  border: 3px solid #ffb86b;
  border-radius: 22px;
  padding: 16px 18px;
}
.update h3 { margin: 0 0 4px; font-size: 1.2rem; }
.update p { margin: 0; color: var(--muted); }

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--card);
  border-radius: 18px;
  padding: 14px 20px;
  margin-bottom: 10px;
  box-shadow: 0 6px 16px rgba(38, 32, 58, 0.08);
}
.faq summary { font-weight: 800; font-size: 1.15rem; cursor: pointer; }
.faq p { margin: 8px 0 2px; color: var(--muted); }

.cta {
  background: linear-gradient(135deg, #ff8a3d, #ef4f3c 55%, #c2307a);
  color: #fff;
  text-align: center;
  border-radius: 34px;
  padding: 40px 20px;
  margin: 0 0 56px;
  box-shadow: var(--shadow);
}
.cta h2 { color: #fff; }
.cta p { margin: 0 0 18px; font-size: 1.2rem; }

/* --- documents (privacy, terms) ----------------------------------------------------------- */
article.doc {
  background: var(--card);
  border-radius: 24px;
  padding: 8px 24px 24px;
  margin: 12px 0 32px;
  box-shadow: var(--shadow);
}
article.doc h1 { margin-bottom: 0; }
article.doc .updated { color: var(--muted); margin-top: 4px; }
article.doc h2 { margin-top: 28px; font-size: 1.2rem; text-align: left; }
.lang-switch { margin: 8px 0 0; color: var(--muted); }

footer {
  padding: 26px 0 44px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}
footer a { color: var(--muted); margin: 0 8px; }

@media (prefers-reduced-motion: reduce) {
  .sky .cloud, .logo { animation: none; }
}

/* Small phones: the section links go, the language switch stays. */
@media (max-width: 560px) {
  nav a:not(.lang) { display: none; }
}

/* --- Sumoty Party (/party) ----------------------------------------------------------------- */
.logo-party { font-size: clamp(2.6rem, 8.5vw, 4.6rem); }
.party-card { margin: 0; }
.party-card img { aspect-ratio: 20 / 9; }

.levels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) { .levels { grid-template-columns: 1fr 1fr; } }
.levels li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: start;
  background: var(--card);
  border-radius: 20px;
  padding: 14px 18px;
  box-shadow: 0 8px 20px rgba(38, 32, 58, 0.12);
}
.levels .n {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grape);
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
}
.levels li:nth-child(5n+1) .n { background: var(--red); }
.levels li:nth-child(5n+2) .n { background: var(--orange); }
.levels li:nth-child(5n+3) .n { background: var(--sky-deep); }
.levels li:nth-child(5n+4) .n { background: var(--mint); }
.levels li:nth-child(5n+5) .n { background: var(--pink); }
.levels h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.levels p { margin: 2px 0 0; color: var(--muted); }

/* "Also from Sumoty" card on the home pages */
.also {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--card);
  border: 3px solid #ffb86b;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  max-width: 760px;
  margin: 0 auto;
  transition: transform 0.15s;
}
.also:hover { transform: translateY(-3px); }
.also img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }
.also-copy { flex: 1 1 260px; display: flex; flex-direction: column; line-height: 1.35; }
.also-copy small { color: var(--muted); font-weight: 700; font-size: 0.95rem; }
.also-copy strong { font-size: 1.5rem; }
.also-copy span { color: var(--muted); }
.also-go {
  background: linear-gradient(180deg, #4fd36a, #2ea64a);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 20px;
  box-shadow: 0 4px 0 #1f7a35;
  white-space: nowrap;
}

/* Several "Also from Sumoty" cards stacked */
.also-list { display: grid; gap: 16px; }
.also-list .also { width: 100%; }

/* --- Sumoty Jam (/jam) --------------------------------------------------------------------- */
.jam-card { margin: 0 auto; width: min(100%, 380px); }
.jam-card img { aspect-ratio: 1; }
.shots.shots-tall img { width: min(62vw, 270px); aspect-ratio: 9 / 20; }
.shots-soon { margin-top: 0; }
.jellies li { grid-template-columns: 1fr; border-left: 6px solid var(--grape); }
.jellies li:nth-child(5n+1) { border-left-color: var(--red); }
.jellies li:nth-child(5n+2) { border-left-color: var(--orange); }
.jellies li:nth-child(5n+3) { border-left-color: var(--sky-deep); }
.jellies li:nth-child(5n+4) { border-left-color: var(--mint); }
.jellies li:nth-child(5n+5) { border-left-color: var(--pink); }
@media (min-width: 760px) { .update.boosters { grid-template-columns: repeat(3, 1fr); } }
.boosters { margin-bottom: 8px; }
