/* ── Stack the Cats — site stylesheet ──────────────────────────────
   Design tokens lifted straight from the game (src/index.css):
   Fredoka display font, sky→grass gradient, coral primary buttons,
   white rounded cards, quirky rotated titles.
   ─────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fredoka-latin.woff2') format('woff2');
}

:root {
  --font-display: 'Fredoka', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Segoe UI', Arial, sans-serif;

  --sky: #9fd4f0;
  --grass: #5fa85a;
  --grass-dark: #4c9348;
  --ink: #2b3a45;
  --navy: #22333f;
  --coral: #e0707a;
  --coral-dark: #c95a64;
  --yellow: #ffd34f;
  --orange: #f0a34f;
  --green: #7de08a;
  --teal: #3fa88f;
  --gold: #d4a93c;
  --night-1: #232540;
  --night-2: #3a3d63;
  --cream: #f7f2e4;
  --card: #ffffff;

  --radius-card: 18px;
  --radius-pill: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}

img {
  max-width: 100%;
}

a {
  color: var(--coral);
}

/* ── Navigation ─────────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(14px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid rgba(224, 112, 122, 0.25);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-brand em {
  font-style: normal;
  font-size: 0.68em;
  color: var(--coral);
  transform: rotate(3deg);
  display: inline-block;
}

.nav-brand img {
  transition: transform 0.25s ease;
}

.nav-brand:hover img {
  transform: rotate(-8deg) scale(1.08);
}

.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(224, 112, 122, 0.12);
}

.nav-links a.active {
  background: var(--coral);
  color: #ffffff;
}

/* Hamburger — desktop hides it, mobile swaps the links for a dropdown. */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 3px solid rgba(224, 112, 122, 0.35);
  border-radius: 14px;
  background: var(--card);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(var(--sky) 62%, var(--grass) 62%);
  padding: clamp(40px, 8vh, 90px) clamp(16px, 5vw, 60px) 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 6vw, 90px);
  max-width: 1150px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hero-copy {
  max-width: 475px;
  text-align: center;
}

.game-title {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 10vw, 96px);
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: 4px;
  animation: title-sway 4s ease-in-out infinite alternate;
  transform-origin: bottom center;
}

.title-word {
  display: block;
}

.title-word-1 {
  transform: rotate(-2.5deg);
}

.title-word-2 {
  font-size: 0.68em;
  transform: rotate(3deg) translateX(0.35em);
}

.title-word-3 {
  transform: rotate(-1.5deg) translateX(-0.12em);
}

@keyframes title-sway {
  from { transform: rotate(-1.4deg); }
  to { transform: rotate(1.4deg); }
}

.hero-tagline {
  margin: 30px auto 40px;
  padding: 10px 25px;
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--ink);
  opacity: 0.85;
  background-color: var(--card);
  border-radius: var(--radius-pill);
}

.hero-tagline .tagline-em {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--coral);
}

/* Per-word jitter — "hold your breath" reads as shaken, like the tower. */
.tagline-em .wj {
  display: inline-block;
}

/* "FREE!" starburst sticker — clip-path makes the spikes, drop-shadow
   follows the clipped shape. Sits on the title and sways along with it. */
.free-badge {
  position: absolute;
  top: -14px;
  right: -34px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--navy);
  background: var(--yellow);
  transform: rotate(-13deg);
  clip-path: polygon(
    50% 0%, 59% 9%, 71% 5%, 75% 17%, 88% 17%, 88% 29%,
    98% 35%, 93% 46%, 100% 55%, 91% 62%, 94% 74%, 82% 76%,
    80% 88%, 68% 84%, 60% 94%, 50% 86%, 40% 94%, 32% 84%,
    20% 88%, 18% 76%, 6% 74%, 9% 62%, 0% 55%, 7% 46%,
    2% 35%, 12% 29%, 12% 17%, 25% 17%, 29% 5%, 41% 9%
  );
  filter: drop-shadow(0 5px 0 rgba(34, 51, 63, 0.35));
  pointer-events: none;
}

/* "Free to play" shout line under the store buttons. */
.free-note {
  margin: 0 auto 16px auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
}

.tagline-em .wj-1 { transform: rotate(-2.2deg) translateY(-1px); }
.tagline-em .wj-2 { transform: rotate(1.8deg) translateY(2px); }
.tagline-em .wj-3 { transform: rotate(-1.4deg) translateY(1px); }
.tagline-em .wj-4 { transform: rotate(2.6deg) translateY(-2px); }
.tagline-em .wj-5 { transform: rotate(-2.8deg) translateY(-1px); }
.tagline-em .wj-6 { transform: rotate(1.2deg) translateY(0); }

/* Sun + clouds */
.sun {
  position: absolute;
  top: 48px;
  right: 10%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 60px 24px rgba(255, 211, 79, 0.55);
  z-index: 1;
}

.cloud {
  position: absolute;
  background: #ffffff;
  border-radius: 999px;
  opacity: 0.85;
  z-index: 1;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud-1 {
  top: 70px;
  left: -140px;
  width: 140px;
  height: 44px;
  animation: cloud-drift 55s linear infinite;
}

.cloud-1::before {
  width: 60px;
  height: 60px;
  top: -28px;
  left: 22px;
}

.cloud-1::after {
  width: 44px;
  height: 44px;
  top: -20px;
  left: 72px;
}

.cloud-2 {
  top: 150px;
  left: -100px;
  width: 100px;
  height: 34px;
  animation: cloud-drift 75s linear infinite;
  animation-delay: -30s;
}

.cloud-2::before {
  width: 44px;
  height: 44px;
  top: -20px;
  left: 16px;
}

.cloud-2::after {
  width: 34px;
  height: 34px;
  top: -15px;
  left: 52px;
}

.cloud-3 {
  top: 30px;
  left: -180px;
  width: 180px;
  height: 50px;
  opacity: 0.6;
  animation: cloud-drift 95s linear infinite;
  animation-delay: -60s;
}

.cloud-3::before {
  width: 76px;
  height: 76px;
  top: -34px;
  left: 30px;
}

.cloud-3::after {
  width: 54px;
  height: 54px;
  top: -24px;
  left: 96px;
}

@keyframes cloud-drift {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 300px)); }
}

/* The hero cat tower — stacked game sprites, gently swaying. */
.hero-tower {
  position: relative;
  width: 260px;
  height: 430px;
  flex-shrink: 0;
  animation: tower-sway 5s ease-in-out infinite alternate;
  transform-origin: bottom center;
}

@keyframes tower-sway {
  from { transform: rotate(-1.8deg); }
  to { transform: rotate(1.8deg); }
}

.hero-tower img {
  position: absolute;
  left: 50%;
  filter: drop-shadow(0 6px 6px rgba(34, 51, 63, 0.18));
}

.hero-tower .t-chonk {
  bottom: 0;
  width: 230px;
  transform: translateX(-50%) rotate(1.5deg);
}

.hero-tower .t-paws {
  bottom: 132px;
  width: 205px;
  transform: translateX(-50%) rotate(-4deg);
}

.hero-tower .t-thorns {
  bottom: 236px;
  width: 168px;
  transform: translateX(-50%) rotate(5deg);
}

.hero-tower .t-smokey {
  bottom: 320px;
  width: 140px;
  transform: translateX(-50%) rotate(-6deg);
}

.hero-tower .t-tabby {
  bottom: 368px;
  width: 122px;
  transform: translateX(-50%) rotate(3deg);
  animation: top-cat-bob 3s ease-in-out infinite alternate;
}

@keyframes top-cat-bob {
  from { transform: translateX(-50%) rotate(1deg) translateY(0); }
  to { transform: translateX(-50%) rotate(5deg) translateY(-5px); }
}

/* Ground hill at the bottom of the hero */
.hero-ground {
  position: relative;
  z-index: 2;
  margin-top: -10px;
  height: 90px;
  background: var(--grass);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: scaleX(1.2);
}

/* ── Store buttons ──────────────────────────────────────────────── */

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.store-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 18px;
  background: var(--navy);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-display);
  box-shadow: 0 4px 0 rgba(34, 51, 63, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(34, 51, 63, 0.35);
}

.store-btn:active {
  transform: scale(0.96);
}

.store-btn svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.store-btn-top {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.75;
}

.store-btn-name {
  font-size: 19px;
  font-weight: 700;
}

.store-btn-soon {
  position: absolute;
  top: -10px;
  right: -8px;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  transform: rotate(6deg);
  box-shadow: 0 2px 0 rgba(34, 51, 63, 0.25);
}

/* ── Generic sections & cards ────────────────────────────────────── */

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 80px) clamp(16px, 4vw, 32px);
}

.section-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: 2px;
  text-align: center;
  color: var(--ink);
}

.section-title .w {
  display: inline-block;
}

.section-title .w1 { transform: rotate(-1.5deg); }
.section-title .w2 { transform: rotate(1.5deg); }

.section-sub {
  margin: 0 auto 34px;
  max-width: 540px;
  text-align: center;
  font-size: 17px;
  opacity: 0.75;
}

.card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: 0 4px 0 rgba(43, 58, 69, 0.1);
}

/* ── How to play ─────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.step-card {
  text-align: center;
  position: relative;
  padding-top: 34px;
}

.step-num {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--coral);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 40px;
  box-shadow: 0 3px 0 var(--coral-dark);
}

.step-card h3 {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 1px;
}

.step-card p {
  margin: 0;
  font-size: 15px;
  opacity: 0.8;
}

.step-icon {
  font-size: 40px;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

/* ── Meet the cats ───────────────────────────────────────────────── */

.cats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 200px;
  padding: 16px 14px;
  border: 3px solid transparent;
  border-radius: var(--radius-card);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(43, 58, 69, 0.1);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.cat-card:hover {
  transform: translateY(-4px) rotate(-1deg);
  border-color: var(--coral);
}

.cat-card.specialist {
  background: linear-gradient(160deg, var(--night-2), var(--night-1));
  border-color: var(--gold);
  color: #f0ead8;
}

.cat-card.specialist:hover {
  border-color: var(--coral);
}

.cat-card-img {
  width: 96px;
  height: 80px;
  object-fit: contain;
}

.cat-card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 1px;
}

.cat-card-blurb {
  font-size: 12px;
  line-height: 1.3;
  opacity: 0.75;
  text-align: center;
  min-height: 31px;
}

.cat-card-traits {
  font-size: 11px;
  font-weight: bold;
  color: var(--coral);
}

.cat-card.specialist .cat-card-traits {
  color: var(--gold);
}

.cat-card-star {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--night-1);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
  white-space: nowrap;
}

.cat-card.specialist .cat-card-img {
  margin-top: 18px;
}

.cat-card.meow-pop {
  animation: meow-pop 0.35s ease-out;
}

@keyframes meow-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08) rotate(-2deg); }
  100% { transform: scale(1); }
}

/* ── Worlds ──────────────────────────────────────────────────────── */

.worlds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px 25px;
}

.world-card {
  padding: 0;
  overflow: hidden;
  text-align: center;
}

.world-card img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  object-position: bottom;
}

.world-card-body {
  padding: 12px 14px 16px;
}

.world-card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 1px;
}

.world-card-blurb {
  font-size: 12px;
  opacity: 0.7;
  font-style: italic;
}

/* ── Features strip ──────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: 0 4px 0 rgba(43, 58, 69, 0.1);
}

.feature-icon {
  font-size: 26px;
  line-height: 1.2;
}

.feature-item h3 {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.feature-item p {
  margin: 0;
  font-size: 13px;
  opacity: 0.75;
}

/* ── CTA band ────────────────────────────────────────────────────── */

.cta-band {
  background: linear-gradient(160deg, var(--night-2), var(--night-1));
  color: #f0ead8;
  text-align: center;
  padding: clamp(80px, 7vh, 100px) 40px;
}

.cta-band .section-title {
  color: var(--yellow);
}

.cta-band p {
  margin: 12px auto 24px auto;
  max-width: 440px;
  opacity: 0.85;
}

.cta-band .free-note {
  color: var(--cream);
}

/* ── High scores page ────────────────────────────────────────────── */

.scores-hero {
  background: linear-gradient(var(--sky), #cfeebf);
  padding: clamp(36px, 6vh, 64px) 20px clamp(30px, 5vh, 50px);
  text-align: center;
}

.scores-hero .game-title {
  font-size: clamp(40px, 7vw, 64px);
}

/* Keep the wobble, drop the sideways nudge — lines read as centred. */
.scores-hero .title-word-3 {
  transform: rotate(-1.5deg);
}

.scores-hero p {
  margin: 10px auto 0;
  max-width: 460px;
  font-size: 17px;
  opacity: 0.8;
}

.scores-note {
  margin: 26px auto 0;
  font-size: 13px;
  opacity: 0.65;
}

.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.podium-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 190px;
  padding: 18px 14px;
  border-radius: var(--radius-card);
  background: var(--card);
  border: 3px solid transparent;
  box-shadow: 0 4px 0 rgba(43, 58, 69, 0.1);
  text-align: center;
}

.podium-card img {
  width: 88px;
  height: 74px;
  object-fit: contain;
}

.podium-first {
  border-color: var(--gold);
  transform: translateY(-14px);
  background: linear-gradient(170deg, #fff8e1, #ffffff 60%);
}

.podium-second { border-color: #b8c4cc; }
.podium-third { border-color: #d99a5b; }

.podium-medal {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  padding: 3px 12px;
  border-radius: 12px;
}

.podium-first .podium-medal { background: var(--gold); color: var(--night-1); }
.podium-second .podium-medal { background: #b8c4cc; color: var(--navy); }
.podium-third .podium-medal { background: #d99a5b; color: #ffffff; }

.podium-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.5px;
}

.podium-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--coral);
  line-height: 1;
}

.podium-meta {
  font-size: 12px;
  opacity: 0.7;
}

.scores-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 3px 0 rgba(43, 58, 69, 0.08);
}

.score-rank {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(159, 212, 240, 0.4);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-row:nth-child(-n + 3) .score-rank {
  background: var(--gold);
  color: var(--night-1);
}

.score-cat {
  width: 52px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.score-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.score-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-meta {
  font-size: 12px;
  opacity: 0.65;
}

.score-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--coral);
  flex-shrink: 0;
}

.scores-empty {
  text-align: center;
  padding: 20px 10px 40px;
}

.scores-empty img {
  width: 150px;
  opacity: 0.9;
}

.scores-empty p {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  opacity: 0.7;
}

/* ── Legal pages ─────────────────────────────────────────────────── */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(30px, 6vh, 60px) clamp(16px, 4vw, 32px);
}

.legal-card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: clamp(22px, 5vw, 44px);
  box-shadow: 0 4px 0 rgba(43, 58, 69, 0.1);
}

.legal-card h1 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 40px);
  letter-spacing: 2px;
}

.legal-updated {
  margin: 0 0 24px;
  font-size: 13px;
  opacity: 0.6;
}

.legal-card h2 {
  margin: 28px 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--coral);
}

.legal-card p,
.legal-card li {
  font-size: 15px;
}

.legal-card ul {
  padding-left: 22px;
}

/* ── Footer ──────────────────────────────────────────────────────── */

.site-footer {
  background: var(--navy);
  color: #d8e6ee;
  padding: 44px 20px 30px;
  text-align: center;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
}

.footer-links a {
  color: #d8e6ee;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--yellow);
  text-decoration: underline;
}

.footer-quip {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  opacity: 0.7;
}

.footer-legal {
  margin: 0;
  font-size: 12px;
  opacity: 0.5;
}

/* ── Small screens ───────────────────────────────────────────────── */

@media (max-width: 640px) {
  .nav-brand span {
    font-size: 18px;
  }

  .nav-toggle {
    display: block;
  }

  /* Links become a floating dropdown card under the nav bar. */
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 10px;
    right: 10px;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border-radius: var(--radius-card);
    background: var(--card);
    box-shadow: 0 8px 24px rgba(34, 51, 63, 0.28);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .site-nav.nav-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    text-align: center;
    padding: 12px 16px;
  }

  .hero-tower {
    width: 210px;
    height: 360px;
  }

  .hero-tower .t-chonk { width: 190px; }
  .hero-tower .t-paws { width: 168px; bottom: 108px; }
  .hero-tower .t-thorns { width: 138px; bottom: 194px; }
  .hero-tower .t-smokey { width: 116px; bottom: 264px; }
  .hero-tower .t-tabby { width: 100px; bottom: 302px; }

  .free-badge {
    top: -10px;
    right: -14px;
    width: 88px;
    height: 88px;
    font-size: 21px;
  }

  .podium-first {
    transform: none;
  }

  .score-value {
    font-size: 19px;
  }
}

/* ── Reduced motion ──────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .game-title,
  .hero-tower,
  .hero-tower .t-tabby,
  .cloud,
  .cat-card.meow-pop {
    animation: none;
  }
}
