/* Total Control TD — colours from the key art */
:root {
  --sky: #ff9a4a;
  --sun: #ffd98a;
  --cream: #fff6d8;
  --ink: #2b1640;
  --ink-deep: #1d1036;
  --red: #e8402a;
  --gold: #ffd23f;
  --grass: #6cc24a;
  --text: #3a2a4a;
  --panel: #fffaf0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: #fff1dc;
}
img, video { max-width: 100%; display: block; }
a { color: var(--red); }

/* chunky cartoon headings like the logo */
h2, h3, .stat b {
  font-family: "Luckiest Guy", "Arial Black", sans-serif;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.1;
}
h2 {
  font-size: clamp(34px, 5vw, 54px);
  text-align: center;
  color: var(--cream);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink-deep);
  margin: 0 0 32px;
}
h3 { font-size: clamp(26px, 3vw, 34px); color: var(--ink); margin: 0 0 12px; }

/* buttons */
.btn {
  display: inline-block;
  font-family: "Luckiest Guy", "Arial Black", sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--cream);
  background: var(--red);
  border: 4px solid var(--ink);
  border-radius: 14px;
  padding: 12px 26px 8px;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--ink-deep);
  transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--ink-deep); }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--ink-deep); }
.btn-alt { background: #3d7be0; }
.btn-small { font-size: 16px; padding: 8px 16px 5px; border-width: 3px; box-shadow: 0 4px 0 var(--ink-deep); }
.btn.soon { background: #9a8fa8; cursor: default; }
.btn.soon::after { content: " · soon"; font-size: .7em; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cta.left { justify-content: flex-start; }

/* navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 24px;
  background: var(--ink);
  box-shadow: 0 3px 0 var(--ink-deep);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font-family: "Luckiest Guy", sans-serif; font-size: 22px; color: var(--cream); padding-top: 4px; }
.nav nav { display: flex; gap: 20px; margin-left: auto; }
.nav nav a { color: var(--cream); text-decoration: none; font-weight: 800; }
.nav nav a:hover { color: var(--gold); }

/* hero */
.hero {
  min-height: min(82vh, 720px);
  display: flex; align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 170, 90, .75) 0%, rgba(255, 170, 90, .35) 38%, rgba(255, 170, 90, 0) 55%),
    url("img/hero.webp") 12% center / cover no-repeat,
    var(--sky);
  border-bottom: 6px solid var(--ink);
}
.hero-inner { width: min(640px, 92vw); margin-left: 5vw; padding: 48px 0; text-align: center; }
.logo { width: 100%; height: auto; filter: drop-shadow(0 6px 0 rgba(29, 16, 54, .35)); }
.tagline { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: var(--ink); margin: 20px 0 28px; }
.tagline strong { color: var(--red); }
.platform { margin-top: 18px; font-weight: 800; color: var(--ink); opacity: .75; }

/* sections */
.section { width: min(1100px, 92vw); margin: 0 auto; padding: 80px 0 40px; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9;
  border: 6px solid var(--ink); border-radius: 20px; overflow: hidden;
  box-shadow: 0 10px 0 var(--ink-deep);
  background: #000;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  width: min(1100px, 92vw); margin: 60px auto 0;
}
.stat {
  text-align: center; padding: 18px 8px 14px;
  background: var(--gold); border: 4px solid var(--ink); border-radius: 18px;
  box-shadow: 0 6px 0 var(--ink-deep);
}
.stat b { display: block; font-size: 52px; color: var(--red); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.stat span { font-weight: 800; color: var(--ink); }

.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
  margin-bottom: 70px;
}
.feature.flip video { order: 2; }
.feature video, .wide-video {
  width: 100%; border: 5px solid var(--ink); border-radius: 18px;
  box-shadow: 0 8px 0 var(--ink-deep);
}
.small { font-size: 16px; opacity: .8; }

/* cast */
.cast { text-align: center; }
.lead { font-weight: 800; color: var(--ink); margin: 28px 0 10px; }
.sprites { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sprites img {
  width: 76px; height: 76px; padding: 6px;
  background: var(--panel); border: 3px solid var(--ink); border-radius: 16px;
  transition: transform .15s;
}
.sprites.big img { width: 96px; height: 96px; }
.sprites img:hover { transform: translateY(-6px) rotate(-4deg); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery a { border: 4px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 0 6px 0 var(--ink-deep); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .2s; }
.gallery a:hover img { transform: scale(1.05); }
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(29, 16, 54, .92); padding: 4vw;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border: 5px solid var(--cream); border-radius: 12px; }
.lightbox button {
  position: absolute; top: 16px; right: 24px;
  font-size: 48px; line-height: 1; color: var(--cream); background: none; border: 0; cursor: pointer;
}

/* modes */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.card {
  background: var(--panel); border: 4px solid var(--ink); border-radius: 18px; padding: 24px;
  box-shadow: 0 6px 0 var(--ink-deep);
}
.card h3 { color: var(--red); }

/* press */
.press { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.press img { width: 100%; height: auto; border: 5px solid var(--ink); border-radius: 18px; box-shadow: 0 8px 0 var(--ink-deep); }
dl { display: grid; grid-template-columns: 130px 1fr; gap: 6px 16px; margin: 0 0 20px; }
dt { font-weight: 800; color: var(--ink); }
dd { margin: 0; }

/* join + footer */
.join {
  margin-top: 60px; padding: 70px 4vw;
  background: var(--sky) url("img/hero_small.webp") center / cover;
  border-top: 6px solid var(--ink); border-bottom: 6px solid var(--ink);
}
footer { background: var(--ink); color: var(--cream); text-align: center; padding: 28px 4vw; font-size: 15px; }
.disclaimer { font-style: italic; opacity: .85; }

/* phones */
@media (max-width: 800px) {
  body { font-size: 17px; overflow-x: hidden; }
  .brand span { display: none; }
  .btn { font-size: 19px; padding: 10px 18px 6px; }
  .stat b { font-size: 40px; }
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .hero {
    min-height: auto;
    background: linear-gradient(180deg, rgba(255, 154, 74, .9) 0%, rgba(255, 154, 74, .5) 100%), url("img/hero_small.webp") 70% center / cover, var(--sky);
  }
  .hero-inner { margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature, .press { grid-template-columns: 1fr; gap: 20px; }
  .feature.flip video { order: 0; }
  .gallery, .cards { grid-template-columns: 1fr; }
  .press img { max-width: 280px; margin: 0 auto; }
  dl { grid-template-columns: 110px 1fr; }
}
