/* Rocket Kudu studio site: Thunder Thumb's cartoon look (sunburst, ink
   outlines, Luckiest Guy) so the studio and its games feel like one family. */
@font-face { font-family: "Luckiest Guy"; src: url("fonts/luckiest-guy.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #14081f;
  --sun: #ffd400;
  --orange: #ffb400;
  --red: #ff3b5c;
  --cream: #fff8e7;
  --card: #ffffff;
  --muted: #5a4a68;
  --purple: #7b2ff7;
  --fur: #b07a45;
  --fur-dark: #6b4423;
}

* { box-sizing: border-box; }
html { background: var(--orange); }
body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.55), transparent 42%),
    repeating-conic-gradient(from 0deg at 50% 18%, var(--sun) 0deg 10deg, var(--orange) 10deg 20deg);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--purple); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 28px 16px 8px; }
.mascot { width: min(300px, 78vw); height: auto; display: block; margin: 0 auto -10px; overflow: visible; }
.mascot .ink { stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; paint-order: stroke fill; }
.mascot .white { fill: #ffffff; }
.mascot .red { fill: var(--red); }
.mascot .metal { fill: #8f86a3; }
.mascot .window { fill: #5ff6ff; }
.mascot .glint { fill: #ffffff; }
.mascot .fur { fill: var(--fur); }
.mascot .snout { fill: var(--fur-dark); }
.mascot .ink-dot { fill: var(--ink); }
.mascot .ear-in { fill: #f3a6a0; }
.mascot .eye-white { fill: #ffffff; stroke: var(--ink); stroke-width: 3; }
.mascot .smile { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.mascot .stripe { fill: none; stroke: #ffffff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.mascot .horn-ink { fill: none; stroke: var(--ink); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.mascot .horn { fill: none; stroke: #f1e3bf; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.mascot .scarf { fill: var(--purple); }
.mascot .flame-out { fill: #ff7a00; }
.mascot .flame-in { fill: #fff36b; }
.mascot .speed { stroke: rgba(255, 255, 255, 0.9); stroke-width: 7; }
.mascot g:not(.speed) { animation: bob 2.6s ease-in-out infinite; transform-box: fill-box; }
@keyframes bob { 50% { translate: 0 -6px; } }

.name {
  margin: 0;
  font: 400 clamp(52px, 15vw, 96px)/0.95 "Luckiest Guy", "Fredoka", system-ui, sans-serif;
  color: #ffffff;
  -webkit-text-stroke: 7px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 7px 0 var(--ink);
  transform: rotate(-4deg);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.name span { color: var(--sun); }
.tagline {
  display: inline-block;
  margin: 22px 0 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font: 700 16px "Fredoka", system-ui, sans-serif;
}

/* ---------- Content ---------- */
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 8px; display: grid; gap: 28px; }
h2 {
  margin: 0 0 12px;
  font: 400 34px/1 "Luckiest Guy", "Fredoka", system-ui, sans-serif;
  color: #ffffff;
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink);
  text-align: center;
  text-transform: uppercase;
}
h3 { margin: 0 0 6px; font: 700 24px/1.2 "Fredoka", system-ui, sans-serif; }

.games { display: grid; gap: 18px; }
.game {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background: var(--card);
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 7px 0 var(--ink);
  padding: 18px;
}
.game p { margin: 0 0 10px; }
.game-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 16px;
  border: 3px solid var(--ink);
  background: repeating-conic-gradient(from 0deg at 50% 50%, var(--sun) 0deg 12deg, var(--orange) 12deg 24deg);
  overflow: hidden;
}
.game-art .bolt { position: absolute; width: 46%; height: auto; fill: #ff8a00; stroke: var(--ink); stroke-width: 8; stroke-linejoin: round; paint-order: stroke fill; transform: rotate(12deg); }
.game-logo {
  position: relative;
  margin: 0;
  text-align: center;
  font: 400 38px/0.9 "Luckiest Guy", "Fredoka", system-ui, sans-serif;
  text-transform: uppercase;
  color: #ffffff;
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink);
  transform: rotate(-5deg);
}
.game-logo span { color: var(--sun); font-size: 44px; }
.art-24 { background: repeating-conic-gradient(from 0deg at 50% 50%, #8fd3ff 0deg 12deg, #5ab8f5 12deg 24deg); }
.art-24 .game-logo span { font-size: 72px; }
.art-duel { background: linear-gradient(180deg, var(--red) 0 50%, var(--purple) 50% 100%); }
.art-buckets { background: repeating-conic-gradient(from 0deg at 50% 50%, #9be564 0deg 12deg, #6fcf3c 12deg 24deg); }
.art-buckets .game-logo span { font-size: 36px; }
.soon {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sun);
  border: 2px solid var(--ink);
  font: 700 15px "Fredoka", system-ui, sans-serif;
}
.links { font-size: 15px; }
.game.more { grid-template-columns: 1fr; text-align: center; color: var(--muted); font: 700 18px "Fredoka", system-ui, sans-serif; border-style: dashed; box-shadow: none; background: rgba(255, 255, 255, 0.75); }
.game.more p { margin: 0; }

.contact { background: var(--cream); border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 7px 0 var(--ink); padding: 18px; text-align: center; }
.contact p { margin: 0; }
.contact a { font-weight: 700; overflow-wrap: anywhere; }

.footer { text-align: center; padding: 24px 16px 36px; font: 700 14px "Fredoka", system-ui, sans-serif; }
.footer p { margin: 0; }
/* the footer's "South Africa": a link to the hidden extras that looks like plain text */
a.quiet { color: inherit; text-decoration: none; }
.extras ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; font: 700 20px "Fredoka", system-ui, sans-serif; }

@media (max-width: 560px) {
  .game { grid-template-columns: 1fr; }
  .game-art { max-width: 260px; width: 100%; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot g:not(.speed) { animation: none; }
}
