:root {
  --ink: #0b3d3a;
  --ink-deep: #072826;
  --arena: #124e48;
  --arena-soft: #1a635b;
  --lime: #b6e03a;
  --lime-deep: #8fbf1f;
  --mango: #ffc93c;
  --mango-deep: #f0a800;
  --coral: #ff6b5a;
  --cream: #fff6df;
  --cream-soft: #f3ead2;
  --brown: #2c1a12;
  --brown-soft: #4a3124;
  --text: #f7f1e4;
  --muted: rgba(247, 241, 228, 0.78);
  --line: rgba(255, 246, 223, 0.14);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1120px;
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 10% -10%, rgba(182, 224, 58, 0.12), transparent 55%),
    radial-gradient(800px 400px at 90% 0%, rgba(255, 201, 60, 0.1), transparent 50%),
    linear-gradient(180deg, var(--ink-deep), var(--ink) 30%, #0e4541 100%);
  line-height: 1.55;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--mango);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--cream);
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  background: rgba(7, 40, 38, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 201, 60, 0.55);
  background: #111;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
}

.site-nav a:hover {
  color: var(--lime);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 6px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 40, 38, 0.92) 0%, rgba(7, 40, 38, 0.72) 42%, rgba(7, 40, 38, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 40, 38, 0.15) 0%, rgba(7, 40, 38, 0.55) 55%, rgba(7, 40, 38, 0.95) 100%);
}

.hero-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 6.5rem 0 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 320px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.hero-copy {
  min-width: 0;
  padding-bottom: 0.5rem;
}

/* Phone mockup */
.hero-phone {
  justify-self: end;
  transform: rotate(4deg);
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.45));
  animation: phone-float 4.5s ease-in-out infinite;
}

.phone-frame {
  position: relative;
  width: min(280px, 72vw);
  aspect-ratio: 9 / 18.5;
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(160deg, #1a1a1c 0%, #0a0a0b 55%, #222 100%);
  border: 2px solid rgba(255, 246, 223, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 6px rgba(7, 40, 38, 0.35);
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 18px;
  border-radius: 999px;
  background: #050505;
  z-index: 3;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #0b3d3a;
}

.phone-play {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.phone-bg {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  animation: play-pan 10s ease-in-out infinite alternate;
}

.phone-hud {
  position: absolute;
  top: 34px;
  left: 10px;
  right: 10px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.hud-score,
.hud-live {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.5rem;
  border-radius: 8px;
  background: rgba(7, 40, 38, 0.72);
  color: var(--cream);
  border: 1px solid rgba(255, 246, 223, 0.18);
}

.hud-live {
  color: #7dff9a;
  animation: live-blink 1.4s ease-in-out infinite;
}

.phone-snake {
  position: absolute;
  width: 18%;
  border-radius: 50%;
  border: 2px solid rgba(44, 26, 18, 0.55);
  background: #111;
  z-index: 2;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

.phone-snake.s1 {
  width: 22%;
  animation: snake-path-a 5.5s linear infinite;
}

.phone-snake.s2 {
  width: 16%;
  animation: snake-path-b 7s linear infinite;
}

.phone-snake.s3 {
  width: 15%;
  animation: snake-path-c 6.2s linear infinite;
}

.phone-fruit {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 10px rgba(255, 201, 60, 0.45);
}

.phone-fruit.f1 {
  background: #ff5a5a;
  animation: fruit-bob 3.2s ease-in-out infinite;
  top: 28%;
  left: 62%;
}

.phone-fruit.f2 {
  background: #ffc93c;
  animation: fruit-bob 2.6s ease-in-out 0.4s infinite;
  top: 58%;
  left: 22%;
}

.phone-fruit.f3 {
  background: #b6e03a;
  animation: fruit-bob 3.8s ease-in-out 0.8s infinite;
  top: 72%;
  left: 70%;
}

.phone-bar {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 36%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  z-index: 3;
}

@keyframes phone-float {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-10px); }
}

@keyframes play-pan {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.14) translate(-4%, -3%); }
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes fruit-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.15); }
}

@keyframes snake-path-a {
  0%   { top: 62%; left: 18%; transform: rotate(-10deg); }
  25%  { top: 40%; left: 48%; transform: rotate(20deg); }
  50%  { top: 28%; left: 30%; transform: rotate(-5deg); }
  75%  { top: 52%; left: 58%; transform: rotate(28deg); }
  100% { top: 62%; left: 18%; transform: rotate(-10deg); }
}

@keyframes snake-path-b {
  0%   { top: 34%; left: 58%; transform: rotate(15deg); }
  35%  { top: 55%; left: 35%; transform: rotate(-25deg); }
  70%  { top: 68%; left: 55%; transform: rotate(10deg); }
  100% { top: 34%; left: 58%; transform: rotate(15deg); }
}

@keyframes snake-path-c {
  0%   { top: 48%; left: 70%; transform: rotate(-20deg); }
  40%  { top: 30%; left: 45%; transform: rotate(15deg); }
  80%  { top: 60%; left: 28%; transform: rotate(-30deg); }
  100% { top: 48%; left: 70%; transform: rotate(-20deg); }
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--lime);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 10vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--mango);
  text-shadow:
    0 3px 0 var(--brown),
    0 8px 0 rgba(44, 26, 18, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.tagline {
  margin: 1rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--cream);
}

.lede {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translateY(-2px);
  color: inherit;
}

.btn:active {
  transform: translateY(0);
}

.btn-play {
  background: var(--lime);
  color: var(--brown);
  border-color: rgba(44, 26, 18, 0.25);
}

.btn-play:hover {
  background: var(--lime-deep);
  color: var(--brown);
}

.btn-apk {
  background: var(--mango);
  color: var(--brown);
  border-color: rgba(44, 26, 18, 0.2);
}

.btn-apk:hover {
  background: var(--mango-deep);
  color: var(--brown);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  color: var(--cream);
}

.section-lede {
  margin: 0.65rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.features {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 78, 72, 0.55), transparent);
}

.feature-list {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

.feature-list li {
  max-width: 22rem;
}

.feature-list img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255, 201, 60, 0.45);
  background: #0a0a0a;
  margin-bottom: 0.9rem;
}

.feature-list h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--mango);
}

.feature-list p {
  margin: 0;
  color: var(--muted);
}

.characters {
  background:
    radial-gradient(600px 280px at 50% 0%, rgba(255, 107, 90, 0.12), transparent 60%),
    rgba(0, 0, 0, 0.12);
}

.char-grid {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}

.char-grid li {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  text-align: center;
}

.char-grid img {
  width: min(100%, 110px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid rgba(182, 224, 58, 0.35);
  background: #101010;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.char-grid li:hover img {
  transform: translateY(-4px) scale(1.04);
  border-color: var(--mango);
}

.char-grid span {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--cream-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about p {
  color: var(--muted);
  font-size: 1.05rem;
}

.about strong {
  color: var(--cream);
}

.bullet-list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--cream);
  font-weight: 700;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--lime);
}

.about-panel {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 40, 38, 0.55);
}

.about-panel dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.about-panel dl > div {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.about-panel dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.about-panel dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lime);
  font-weight: 800;
}

.about-panel dd {
  margin: 0;
  font-weight: 700;
  color: var(--cream);
}

.download {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(700px 300px at 50% 100%, rgba(182, 224, 58, 0.16), transparent 65%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18));
}

.download-inner {
  text-align: center;
  display: grid;
  justify-items: center;
}

.download-mascot {
  border-radius: 50%;
  border: 3px solid rgba(255, 201, 60, 0.5);
  background: #111;
  margin-bottom: 0.8rem;
  animation: bob 3.2s ease-in-out infinite;
}

.download .section-lede {
  margin-bottom: 1.4rem;
}

.download .cta-row {
  justify-content: center;
}

.fineprint {
  margin: 1.2rem 0 0;
  color: rgba(247, 241, 228, 0.55);
  font-size: 0.88rem;
}

.fineprint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--cream-soft);
  font-size: 0.84em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  background: rgba(4, 24, 22, 0.85);
}

.footer-inner {
  display: grid;
  gap: 1.1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(182, 224, 58, 0.4);
  background: #111;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.footer-nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
}

.footer-nav a:hover {
  color: var(--lime);
}

.copyright {
  margin: 0;
  color: rgba(247, 241, 228, 0.5);
  font-size: 0.9rem;
}

.copyright a {
  color: inherit;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .feature-list {
    grid-template-columns: 1fr;
  }

  .char-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1rem 1rem;
    background: rgba(7, 40, 38, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid var(--line);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 5rem 0 3.2rem;
  }

  .hero-copy {
    order: 1;
  }

  .hero-phone {
    order: 0;
    justify-self: center;
    transform: rotate(2deg);
    margin-bottom: 0.5rem;
  }

  .phone-frame {
    width: min(210px, 58vw);
  }

  .lede {
    margin-inline: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .hero-veil {
    background:
      linear-gradient(180deg, rgba(7, 40, 38, 0.35) 0%, rgba(7, 40, 38, 0.7) 40%, rgba(7, 40, 38, 0.96) 100%),
      linear-gradient(90deg, rgba(7, 40, 38, 0.75), rgba(7, 40, 38, 0.45));
  }

  .char-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .char-grid img,
  .download-mascot,
  .hero-phone,
  .phone-bg,
  .phone-snake,
  .phone-fruit,
  .hud-live {
    transition: none;
    animation: none;
  }
}

/* Legal / support pages */
.page-main {
  padding: 3.5rem 0 4.5rem;
}

.page-card {
  width: min(820px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(7, 40, 38, 0.55);
}

.page-card h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.1;
  color: var(--mango);
}

.page-meta {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-card h2 {
  margin: 1.8rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--lime);
}

.page-card h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1.05rem;
  color: var(--cream);
}

.page-card p,
.page-card li {
  color: var(--muted);
}

.page-card ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.2rem;
}

.page-card li + li {
  margin-top: 0.35rem;
}

.contact-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--cream);
}

.contact-list strong {
  color: var(--lime);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-home {
  display: inline-block;
  margin-bottom: 1.2rem;
  font-weight: 800;
  color: var(--cream);
  text-decoration: none;
}

.back-home:hover {
  color: var(--lime);
}
