@font-face { font-family: Nunito; src: url('/whiskerworld/assets/fonts/AtkinsonHyperlegible-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: Nunito; src: url('/whiskerworld/assets/fonts/AtkinsonHyperlegible-Bold.ttf') format('truetype'); font-weight: 600 900; font-display: swap; }
@font-face { font-family: Fredoka; src: url('/whiskerworld/assets/fonts/Bitter-Variable.ttf') format('truetype'); font-weight: 400 800; font-display: swap; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #0a1a10;
  color: #e8f0e0;
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

a { color: #ffcc44; text-decoration: none; }
a:hover { color: #ffe888; }

/* Animated starfield background */
.stars {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.stars span {
  position: absolute;
  background: #ccee66;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.12; transform: scale(1); }
  100% { opacity: 0.55; transform: scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  .stars span { animation: none; opacity: 0.22; }
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, #0e2818 0%, #081a0e 100%);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #66DD44;
  box-shadow: 0 4px 20px rgba(102, 221, 68, 0.2);
}

.site-header h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(to right, #66DD44, #ffcc44, #ff8844);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-nav {
  display: flex;
  gap: 8px;
}

.site-nav a {
  color: #aaccaa;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 16px;
  border-radius: 20px;
  transition: all 0.2s;
}

.site-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Hero area */
.hero {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 22px 24px 10px;
}

.hero h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(102, 221, 68, 0.4);
}

.hero h2 .wave { display: inline-block; animation: wave-text 2s ease-in-out infinite; }
.hero h2 .wave:nth-child(2) { animation-delay: 0.1s; }
.hero h2 .wave:nth-child(3) { animation-delay: 0.2s; }
.hero h2 .wave:nth-child(4) { animation-delay: 0.3s; }
.hero h2 .wave:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave-text {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero p {
  font-size: 16px;
  color: #99bb88;
  max-width: 500px;
  margin: 0 auto 10px;
}

.trust-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.trust-badges span {
  font-size: 13px;
  font-weight: 700;
  color: #66DD44;
  background: rgba(102,221,68,0.1);
  border: 1px solid rgba(102,221,68,0.25);
  border-radius: 20px;
  padding: 4px 12px;
}

/* Game grid */
.main {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px 30px;
}

.section-label {
  font-family: 'Fredoka', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #ffcc44;
  margin-bottom: 16px;
  padding-left: 4px;
}

/* In-grid category headings spanning full row */
.grid-heading {
  grid-column: 1 / -1;
  font-family: 'Fredoka', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #ffcc44;
  padding: 10px 0 6px;
  border-bottom: 2px solid rgba(255, 204, 68, 0.18);
  letter-spacing: 0.3px;
}
.grid-heading:first-child { padding-top: 2px; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 12px;
}

.game-card {
  background: linear-gradient(145deg, rgba(20,50,30,0.7), rgba(10,30,15,0.85));
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(102, 221, 68, 0.25);
  border-color: rgba(102, 221, 68, 0.4);
}

.card-preview {
  height: 108px;
  overflow: hidden;
  position: relative;
  display: block;
  text-decoration: none;
}

.card-preview canvas {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.2s;
}

.card-preview:hover canvas {
  transform: scale(1.04);
}

.card-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.game-card .tags {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.game-card .tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tag-typing { background: #2a6040; color: #66ffaa; }
.tag-arcade { background: #604020; color: #ffbb44; }
.tag-learn { background: #203060; color: #66aaff; }
.tag-age { background: rgba(255,255,255,0.07); color: #aabbaa; }

.play-btn, .read-btn {
  display: block;
  padding: 9px 12px;
  background: linear-gradient(135deg, #66DD44, #44aa33);
  border-radius: 12px;
  color: #07140f !important;
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 10px rgba(102, 221, 68, 0.22);
  margin-top: auto;
}

.play-btn:hover, .read-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(102, 221, 68, 0.38);
}

.coming-soon {
  display: block;
  padding: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  color: #5a7a50;
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: default;
}

/* Cat preview canvas */
.tux-preview {
  background: linear-gradient(180deg, #0a1a10 0%, #0e2818 60%, #103420 100%);
}

/* About blurb */
.about-blurb {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 24px;
  text-align: center;
}

.about-blurb p {
  font-size: 15px;
  color: #6a8a60;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 28px 24px;
  color: #3a5a30;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-game-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
  margin-bottom: 12px;
}

.footer-game-links a {
  color: #9fcf93;
  font-size: 13px;
  font-weight: 700;
  transition: color 0.15s;
}

.footer-game-links a:hover { color: #c8f7bb; }

.footer-tagline {
  color: #bdd6bd;
  margin-bottom: 8px;
  font-size: 13px;
}

.site-footer a {
  color: #9fcf93;
  font-weight: 700;
}

/* Privacy page */
.prose {
  position: relative;
  z-index: 10;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 24px;
  line-height: 1.8;
}

.prose h1 {
  font-family: 'Fredoka', sans-serif;
  color: #ffcc44;
  font-size: 32px;
  margin-bottom: 8px;
}

.prose .subtitle {
  color: #bdd6bd;
  font-size: 14px;
  margin-bottom: 30px;
}

.prose h2 {
  font-family: 'Fredoka', sans-serif;
  color: #66DD44;
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 20px;
}

.prose p, .prose ul {
  color: #cfe6cf;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.7;
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin-bottom: 4px;
}

.prose li::marker {
  color: #66DD44;
}

.prose strong {
  color: #c0e0b0;
}

/* Floating shapes decoration */
.floater {
  position: fixed;
  border-radius: 50%;
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
  animation: floater-drift 20s ease-in-out infinite;
}

@keyframes floater-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(120deg); }
  66% { transform: translateY(20px) rotate(240deg); }
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0 12px;
}

.blog-card {
  background: linear-gradient(145deg, rgba(20,50,30,0.72), rgba(10,30,15,0.9));
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 221, 68, 0.35);
  box-shadow: 0 10px 30px rgba(102, 221, 68, 0.18);
}

.blog-card h2 {
  margin-top: 0;
  color: #fff;
}

.blog-card p {
  flex: 1;
}

.blog-card .play-btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: 8px;
}

.article-meta {
  color: #5a8a50;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.kid-version {
  background: rgba(255, 204, 68, 0.08);
  border: 2px solid rgba(255, 204, 68, 0.25);
  border-radius: 14px;
  padding: 18px;
  margin: 28px 0;
}

.kid-version h2 {
  color: #ffcc44;
  margin-top: 0;
}

.blog-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.print-card,
.related-panel {
  background: rgba(255, 204, 68, 0.08);
  border: 2px solid rgba(255, 204, 68, 0.22);
  border-radius: 14px;
  padding: 18px;
  margin: 24px 0;
}

.related-panel {
  background: rgba(102, 221, 68, 0.08);
  border-color: rgba(102, 221, 68, 0.22);
}

.print-card h2,
.related-panel h2 {
  margin-top: 0;
}

.print-btn {
  border: 0;
  cursor: pointer;
  padding: 10px 16px;
  background: linear-gradient(135deg, #66DD44, #44aa33);
  border-radius: 12px;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(102, 221, 68, 0.3);
}

.resource-page .print-card {
  break-inside: avoid;
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .site-footer,
  .stars,
  .floater,
  .no-print,
  .print-btn,
  .blog-nav {
    display: none !important;
  }

  .prose {
    max-width: none;
    padding: 0;
    color: #111;
  }

  .prose h1,
  .prose h2,
  .prose p,
  .prose ul,
  .prose li,
  .prose strong {
    color: #111;
  }

  .print-card {
    border: 2px solid #111;
    background: #fff;
    page-break-inside: avoid;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .blog-card {
    min-height: auto;
  }
}

/* CMS portal system */
.cms-body {
  background:
    radial-gradient(circle at 12% 8%, rgba(102,221,68,0.10), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(255,204,68,0.08), transparent 26%),
    linear-gradient(180deg, #0c1c13 0%, #102719 48%, #152f1c 100%);
}
.cms-header { position: sticky; top: 0; }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: 'Fredoka', sans-serif; font-size: 25px; font-weight: 800; }
.brand-mark img { border-radius: 8px; }
.brand-mark span { background: linear-gradient(to right, #66DD44, #ffcc44, #ff8844); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cms-main { position: relative; z-index: 5; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 26px 0 44px; }
.cms-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr); gap: 26px; align-items: center; padding: 30px; border: 2px solid rgba(102,221,68,0.24); background: linear-gradient(145deg, rgba(15,50,28,0.86), rgba(9,26,14,0.92)); border-radius: 22px; box-shadow: 0 20px 60px rgba(0,0,0,0.24); }
.cms-hero.compact-hero { display: block; max-width: 900px; margin: 0 auto 22px; text-align: center; }
.cms-hero h1 { font-family: 'Fredoka', sans-serif; font-size: clamp(40px, 7vw, 84px); line-height: 0.95; color: #fff; margin: 6px 0 12px; letter-spacing: 0; }
.cms-hero h2, .content-band h2, .article-content h2, .section-heading h2 { font-family: 'Fredoka', sans-serif; color: #fff; letter-spacing: 0; }
.hero-copy, .cms-hero p, .content-band p, .cms-card p, .article-content p, .article-content li { color: #cfe6cf; }
.eyebrow { margin: 0 0 6px; color: #ffcc44 !important; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.ghost-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 14px; border-radius: 12px; color: #ffe26a !important; border: 1px solid rgba(255,226,106,0.42); background: rgba(255,255,255,0.06); font-weight: 800; }
.hero-game-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-game-stack a { min-height: 130px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; border-radius: 16px; border: 1px solid rgba(255,255,255,0.12); background: linear-gradient(160deg, rgba(255,255,255,0.13), rgba(255,255,255,0.04)); }
.hero-game-stack span { font-size: 36px; margin-bottom: auto; }
.hero-game-stack strong { font-family: 'Fredoka', sans-serif; font-size: 18px; }
.hero-game-stack small { color: #aacbaa; font-weight: 800; }
.content-band { margin-top: 22px; padding: 24px; border-top: 1px solid rgba(255,255,255,0.08); }
.calm-band { border-radius: 18px; background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.08); }
.inline-band { padding-left: 0; padding-right: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.results-heading { align-items: flex-start; flex-direction: column; justify-content: flex-start; gap: 4px; }
.section-heading h2 { font-size: 30px; margin: 0; }
.section-heading a { font-weight: 900; }
.cms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.games-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.compact-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cms-card { overflow: hidden; background: linear-gradient(145deg, rgba(28,68,40,0.86), rgba(12,32,18,0.94)); border: 1px solid rgba(255,255,255,0.13); border-radius: 14px; box-shadow: 0 10px 26px rgba(0,0,0,0.14); }
.cms-card-body { display: flex; flex-direction: column; min-height: 220px; padding: 16px; }
.cms-card h3 { font-family: 'Fredoka', sans-serif; font-size: 21px; line-height: 1.05; margin: 5px 0 8px; color: #fff; }
.cms-card h3 a { color: #fff; }
.meta-row, .tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.meta-row span, .tag-row span, .pair-pill { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,0.07); color: #dff2db; font-size: 12px; font-weight: 800; }
.tag-row { margin: 12px 0; }
.pair-pill { color: #07140f; background: #ffe26a; width: fit-content; margin-top: 8px; }
.related-mini { margin: 8px 0 12px; color: #bdd6bd; font-size: 13px; }
.game-thumb { position: relative; min-height: 135px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(145deg, #133d23, #0b2113 55%, #241407); }
.game-thumb-icon { position: relative; z-index: 2; font-size: 58px; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.28)); }
.game-thumb-shine { position: absolute; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(255,226,106,0.25), transparent 60%); transform: translate(36px, -30px); }
.collection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.collection-grid.small { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.collection-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.collection-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.075); border: 1px solid rgba(255,255,255,0.12); color: #f2fff0; font-weight: 850; }
.collection-chip span { font-size: 18px; }
.collection-chip.active, .collection-chip:hover { border-color: rgba(102,221,68,0.55); background: rgba(102,221,68,0.16); color: #fff; }
.collection-card { min-height: 132px; padding: 15px; border-radius: 16px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); color: #eaffea; }
.collection-card.active, .collection-card:hover { border-color: rgba(102,221,68,0.5); background: rgba(102,221,68,0.12); }
.collection-card span { font-size: 28px; display: block; }
.collection-card strong { display: block; color: #fff; font-family: 'Fredoka', sans-serif; font-size: 18px; margin: 6px 0 3px; }
.collection-card small { color: #ffe26a; font-weight: 900; }
.collection-card p { margin-top: 6px; font-size: 13px; }
.split-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr); gap: 18px; align-items: start; }
.trust-panel { display: grid; gap: 8px; padding: 18px; border-radius: 16px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); }
.trust-panel strong { color: #fff; font-family: 'Fredoka', sans-serif; font-size: 20px; }
.trust-panel span { color: #07140f; background: #66dd44; border-radius: 999px; padding: 7px 10px; font-weight: 900; }
.local-filter { display: grid; grid-template-columns: auto minmax(180px, 1fr) minmax(160px, 220px); gap: 10px; align-items: center; margin: 0 0 14px; }
.local-filter label { color: #ffe26a; font-weight: 900; }
.local-filter input, .local-filter select { width: 100%; min-height: 42px; border: 1px solid rgba(255,255,255,0.16); border-radius: 12px; background: rgba(0,0,0,0.24); color: #fff; padding: 9px 11px; font: 800 15px 'Nunito', sans-serif; }
.empty-note { padding: 18px; text-align: center; color: #ffe26a; }
.cms-footer { position: relative; z-index: 5; display: grid; gap: 10px; width: min(1180px, calc(100% - 32px)); margin: 20px auto 0; color: #bdd6bd; }
.footer-links { line-height: 1.8; }
.article-shell { width: min(900px, calc(100% - 32px)); margin: 0 auto; position: relative; z-index: 5; padding: 24px 0 46px; }
.breadcrumbs { margin: 0 0 14px; color: #aacbaa; font-weight: 800; }
.article-hero { padding: 28px; border-radius: 20px; border: 1px solid rgba(102,221,68,0.26); background: linear-gradient(145deg, rgba(22,58,34,0.88), rgba(8,22,13,0.96)); }
.article-hero h1 { font-family: 'Fredoka', sans-serif; color: #fff; font-size: clamp(34px, 6vw, 62px); line-height: 1; margin: 4px 0 12px; }
.article-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.article-tools a { border-radius: 999px; padding: 8px 11px; background: rgba(255,255,255,0.08); color: #ffe26a; font-weight: 900; }
.article-content { margin-top: 18px; padding: 24px; border-radius: 18px; background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.09); }
.article-content h2 { font-size: 30px; margin-bottom: 10px; }
.article-content h3 { color: #ffe26a; font-family: 'Fredoka', sans-serif; margin: 18px 0 8px; font-size: 22px; }
.article-content p, .article-content li { font-size: 18px; line-height: 1.65; }
.article-content ul { margin: 10px 0 0 22px; }
.kid-version { background: rgba(102,221,68,0.09); border-color: rgba(102,221,68,0.25); }
@media (max-width: 780px) {
  .cms-main { width: min(100% - 20px, 1180px); padding-top: 14px; }
  .cms-hero, .split-band { grid-template-columns: 1fr; }
  .cms-hero { padding: 20px; }
  .hero-game-stack { grid-template-columns: 1fr 1fr; }
  .content-band { padding: 18px 4px; }
  .section-heading { align-items: start; flex-direction: column; }
  .local-filter { grid-template-columns: 1fr; }
  .site-nav a { padding: 7px 10px; }
  .brand-mark { font-size: 22px; }
  .article-shell { width: min(100% - 20px, 900px); }
  .article-hero, .article-content { padding: 18px; }
}
@media (max-width: 520px) {
  .hero-game-stack, .cms-grid, .games-grid, .articles-grid, .collection-grid { grid-template-columns: 1fr; }
  .cms-hero h1 { font-size: 42px; }
}

/* --------------------------------------------------------------------------
   Smart Cat clubhouse — canonical public CMS design
   Scoped so individual games keep their own visual systems.
   -------------------------------------------------------------------------- */
@font-face { font-family: "Atkinson"; src: url("/whiskerworld/assets/fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/whiskerworld/assets/fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bitter Local"; src: url("/whiskerworld/assets/fonts/Bitter-Variable.ttf") format("truetype"); font-weight: 500 850; font-display: swap; }

.clubhouse-body {
  --paper: #fff9e9;
  --paper-deep: #f2e6c9;
  --ink: #173149;
  --ink-soft: #4e625f;
  --leaf: #2e684e;
  --leaf-dark: #214c3c;
  --coral: #d76555;
  --mustard: #efb83f;
  --sky: #78b9c2;
  --line: #cdbf9f;
  --shadow: #193b3030;
  margin: 0;
  background-color: var(--paper);
  background-image: url("/assets/site/clubhouse-wallpaper.svg");
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Atkinson", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
.clubhouse-body *, .clubhouse-body *::before, .clubhouse-body *::after { box-sizing: border-box; }
.clubhouse-body a { color: var(--leaf-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.clubhouse-body a:hover { color: #173149; }
.clubhouse-body img { display: block; max-width: 100%; }
.clubhouse-body button, .clubhouse-body input, .clubhouse-body select { font: inherit; }
.clubhouse-body :focus-visible { outline: 4px solid var(--mustard); outline-offset: 3px; }
.clubhouse-body [hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-160%); background: #fff; border: 3px solid var(--ink); border-radius: 8px; font-weight: 700; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.ui-icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.clubhouse-header { position: sticky; z-index: 40; top: 0; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px max(22px, calc((100% - 1240px)/2)); background: rgba(255,249,233,.97); border-bottom: 2px solid var(--ink); box-shadow: 0 5px 0 #2e684e22; }
.clubhouse-brand { display: flex; align-items: center; gap: 10px; color: var(--ink) !important; text-decoration: none; }
.clubhouse-brand img { image-rendering: auto; }
.clubhouse-brand span { display: grid; line-height: 1; }
.clubhouse-brand strong { font: 800 23px/1 "Bitter Local", Georgia, serif; }
.clubhouse-brand small { margin-top: 4px; color: var(--coral); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.clubhouse-nav { display: flex; align-items: center; gap: 8px; }
.clubhouse-nav a { min-height: 48px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; color: var(--ink); border: 2px solid transparent; border-radius: 10px; text-decoration: none; font-weight: 700; }
.clubhouse-nav a:first-child { color: #fff; background: var(--leaf); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.clubhouse-nav a:hover { background: var(--paper-deep); border-color: var(--ink); }
.clubhouse-nav a:first-child:hover { background: var(--leaf-dark); color: #fff; }
.menu-button { display: none; min-height: 46px; align-items: center; gap: 7px; padding: 8px 12px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 9px; font-weight: 700; }

.clubhouse-main { position: relative; width: min(1240px, calc(100% - 32px)); min-height: 60vh; margin: 0 auto; padding: 34px 0 70px; }
.kicker { margin: 0 0 8px !important; color: var(--coral) !important; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.clubhouse-body h1, .clubhouse-body h2, .clubhouse-body h3 { color: var(--ink); font-family: "Bitter Local", Georgia, serif; text-wrap: balance; }
.clubhouse-body h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.045em; }
.clubhouse-body h2 { font-size: clamp(1.75rem, 3vw, 2.65rem); line-height: 1.08; letter-spacing: -.025em; }
.clubhouse-body h3 { font-size: 1.35rem; line-height: 1.15; }
.home-hero { min-height: 560px; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; overflow: hidden; background: #f4dfaa; border: 3px solid var(--ink); border-radius: 18px 18px 80px 18px; box-shadow: 8px 9px 0 var(--leaf); }
.home-hero__copy { z-index: 2; padding: clamp(30px, 5vw, 68px); }
.home-hero h1 { margin: 0 0 20px; }
.home-hero h1 em { color: var(--leaf); font-style: normal; }
.home-hero__copy>p:not(.kicker) { max-width: 540px; color: var(--ink-soft); font-size: 1.16rem; }
.home-hero__art { align-self: stretch; min-height: 450px; background: var(--sky); border-left: 3px solid var(--ink); }
.home-hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.action { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; color: var(--ink) !important; background: #fff; border: 2px solid var(--ink); border-radius: 9px; box-shadow: 3px 3px 0 var(--ink); text-decoration: none; font-weight: 700; cursor: pointer; }
.action:hover { transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--ink); }
.action--play { color: #fff !important; background: var(--leaf); }
.action--paper { background: var(--mustard); }
.text-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.text-link .ui-icon { width: 1em; transition: transform .18s ease; }
.text-link:hover .ui-icon { transform: translateX(3px); }
.trust-list { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: .9rem; font-weight: 700; }
.trust-list li::before { content: "✓"; margin-right: 7px; color: var(--leaf); }

.page-section { position: relative; padding: 74px 18px 0; }
.page-section::before { content: ""; position: absolute; top: 34px; left: 18px; width: 58px; height: 6px; background: var(--mustard); border: 2px solid var(--ink); border-radius: 999px; transform: rotate(-2deg); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-title h2, .section-title p { margin: 0; }
.starter-grid, .game-library { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.game-library { grid-template-columns: repeat(4, minmax(0,1fr)); }
.game-tile { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: #fffdf6; border: 2px solid var(--ink); border-radius: 13px; box-shadow: 5px 5px 0 #2e684e2b; }
.game-tile__art { aspect-ratio: 16/10; overflow: hidden; background: #d7e5d2; border-bottom: 2px solid var(--ink); }
.game-tile__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.game-tile:hover .game-tile__art img { transform: scale(1.025); }
.game-tile__body { flex: 1; display: flex; flex-direction: column; padding: 16px; }
.game-tile__meta, .game-tile__details { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-soft); font-size: .75rem; font-weight: 700; }
.game-tile__meta span, .game-tile__details span { display: inline-flex; align-items: center; gap: 4px; }
.game-tile h3 { margin: 10px 0 7px; }
.game-tile h3 a { color: var(--ink); text-decoration: none; }
.game-tile p { flex: 1; margin: 0 0 15px; color: var(--ink-soft); font-size: .92rem; line-height: 1.45; }
.game-tile__details { padding-top: 11px; margin-bottom: 14px; border-top: 1px solid var(--line); }
.game-tile .action { width: 100%; box-shadow: none; }
.browse-strip { margin: 74px 18px 0; padding: 30px; display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 28px; color: #fff; background: var(--leaf); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 var(--mustard); }
.browse-strip h2 { margin: 0; color: #fff; }
.browse-strip .kicker { color: #ffd474 !important; }
.browse-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.browse-links a { min-height: 48px; display: flex; align-items: center; padding: 8px 14px; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 9px; text-decoration: none; font-weight: 700; }
.family-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(28px,5vw,72px); align-items: start; }
.family-intro { position: sticky; top: 110px; padding: 28px; background: #dceacb; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 5px 5px 0 var(--coral); }
.family-intro h2 { margin: 0 0 12px; }
.family-intro .action { margin-top: 12px; }
.guide-stack, .guide-list { display: grid; gap: 16px; }
.guide-row { min-width: 0; display: grid; grid-template-columns: 160px minmax(0,1fr); overflow: hidden; background: #fffdf6; border: 2px solid var(--ink); border-radius: 12px; }
.guide-row__art { overflow: hidden; background: #d9e9e8; border-right: 2px solid var(--ink); }
.guide-row__art img { width: 100%; height: 100%; object-fit: cover; }
.guide-row__copy { padding: 16px 18px; }
.guide-row h3 { margin: 0 0 7px; }
.guide-row h3 a { color: var(--ink); text-decoration: none; }
.guide-row p:not(.kicker) { margin: 0 0 8px; color: var(--ink-soft); font-size: .92rem; }

.library-head, .editorial-head { margin: 15px 0 34px; padding: 24px 0 32px; border-bottom: 3px solid var(--ink); }
.library-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.library-head h1, .editorial-head h1 { margin: 0 0 12px; }
.library-head p:not(.kicker), .editorial-head>p:not(.kicker) { max-width: 760px; margin: 0; color: var(--ink-soft); font-size: 1.08rem; }
.library-doodle { display: flex; gap: 6px; transform: rotate(-4deg); }
.library-doodle span { width: 52px; height: 52px; display: grid; place-items: center; color: #fff; background: var(--coral); border: 2px solid var(--ink); border-radius: 8px; font: 800 1.4rem "Bitter Local"; box-shadow: 3px 3px 0 var(--ink); }
.library-doodle span:nth-child(2) { background: var(--mustard); color: var(--ink); transform: translateY(-8px); }
.library-doodle span:nth-child(3) { background: var(--sky); }
.game-finder, .guide-tools { padding: 22px; background: var(--paper-deep); border: 2px solid var(--ink); border-radius: 12px; }
.search-box { min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #fff; border: 2px solid var(--ink); border-radius: 9px; }
.search-box input { width: 100%; min-width: 0; color: var(--ink); background: transparent; border: 0; outline: 0; }
.quick-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.filter-chip { min-height: 42px; padding: 7px 13px; color: var(--ink) !important; background: #fff; border: 2px solid var(--ink); border-radius: 8px; text-decoration: none; font-weight: 700; cursor: pointer; }
.filter-chip.is-active, .filter-chip:hover { color: #fff !important; background: var(--leaf); }
.more-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 18px; }
.more-filters label { display: grid; gap: 5px; font-weight: 700; }
.more-filters select { min-height: 46px; padding: 7px 10px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 8px; }
.library-results { padding-left: 0; padding-right: 0; }
.game-library>.ad-band { grid-column: 1/-1; }
.empty-state { padding: 48px 24px; text-align: center; background: #fff; border: 2px dashed var(--line); border-radius: 12px; }
.empty-state h2 { margin: 0 0 8px; }
.ad-band { min-height: 190px; margin: 74px 18px 0; padding: 54px 16px; display: grid; place-items: center; background: #f6f0df; border: 1px solid #d5c9ad; }
.ad-band>span { display: block; margin-bottom: 8px; color: #6f786f; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }

.editorial-head { max-width: 860px; margin-left: auto; margin-right: auto; text-align: center; }
.featured-guide { max-width: 1020px; margin: 0 auto 34px; }
.guide-row--featured { grid-template-columns: 1.05fr .95fr; }
.guide-row--featured .guide-row__art { min-height: 360px; }
.guide-row--featured .guide-row__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px,5vw,56px); }
.guide-row--featured h3 { font-size: clamp(1.9rem,3vw,3rem); }
.guide-tools { max-width: 1020px; margin: 0 auto; }
.guide-library { max-width: 1020px; margin: 0 auto; }
.guide-library .guide-row { grid-template-columns: 220px minmax(0,1fr); }

.parent-hero { display: grid; grid-template-columns: 1fr .8fr; align-items: center; overflow: hidden; background: #dceacb; border: 3px solid var(--ink); border-radius: 16px; }
.parent-hero>div { padding: clamp(30px,5vw,68px); }
.parent-hero h1 { margin: 0 0 16px; }
.parent-hero img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-left: 3px solid var(--ink); }
.parent-jumps { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.parent-jumps a { padding: 9px 13px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 8px; text-decoration: none; font-weight: 700; }
.parent-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.parent-cards a { min-height: 230px; display: flex; flex-direction: column; padding: 24px; color: var(--ink); background: #fffdf6; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 5px 5px 0 var(--mustard); text-decoration: none; }
.parent-cards span { color: var(--coral); font: 800 2rem "Bitter Local"; }
.parent-cards strong { margin: auto 0 8px; font: 750 1.35rem/1.15 "Bitter Local"; }
.parent-cards p { margin: 0; color: var(--ink-soft); }
.goal-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.goal-links a { min-height: 100px; display: flex; align-items: end; padding: 18px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 10px; text-decoration: none; font: 700 1.15rem "Bitter Local"; }
.goal-links a:nth-child(2n) { background: #f4dfaa; }

.printable-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.print-sheet { min-height: 430px; padding: 38px; background: #fff; border: 3px solid var(--ink); box-shadow: 7px 7px 0 var(--paper-deep); }
.print-sheet h2 { margin: 0 0 18px; }
.print-sheet li { margin: 9px 0; }

.article-layout { max-width: 1080px; margin: 0 auto; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; color: var(--ink-soft); font-size: .85rem; }
.article-lead { display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; background: #f4dfaa; border: 3px solid var(--ink); border-radius: 15px; }
.article-lead>div { padding: clamp(28px,5vw,58px); }
.article-lead h1 { margin: 0 0 18px; font-size: clamp(2.35rem,5vw,4.4rem); }
.article-lead p:not(.kicker) { color: var(--ink-soft); font-size: 1.08rem; }
.article-lead>img { width: 100%; height: 100%; min-height: 410px; object-fit: cover; border-left: 3px solid var(--ink); }
.byline { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--ink-soft); font-size: .8rem; font-weight: 700; }
.article-columns { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 46px; align-items: start; margin-top: 40px; }
.article-toc { position: sticky; top: 110px; display: grid; gap: 10px; padding: 18px; background: var(--paper-deep); border: 2px solid var(--ink); border-radius: 9px; }
.article-toc a { font-size: .88rem; }
.article-copy { min-width: 0; font-family: "Atkinson", system-ui, sans-serif; }
.article-copy h2 { margin: 48px 0 14px; padding-top: 12px; border-top: 2px solid var(--ink); }
.article-copy h2:first-child { margin-top: 0; }
.article-copy h3 { margin: 30px 0 10px; }
.article-copy p, .article-copy li { color: #293f43; font-size: 1.08rem; line-height: 1.72; }
.article-copy li { margin: 8px 0; }
.article-copy a { text-decoration: underline; }
.article-copy .ad-band { margin-left: 0; margin-right: 0; }
.article-note { margin-top: 50px; padding: 28px; background: #dceacb; border: 2px solid var(--ink); border-radius: 10px; }
.article-note h2 { margin: 0 0 10px; padding: 0; border: 0; }
.info-layout { max-width: 920px; margin: 0 auto; }
.info-sections { display: grid; gap: 18px; }
.info-sections section { padding: 28px; background: #fffdf6; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 5px 5px 0 var(--paper-deep); }
.info-sections h2 { margin: 0 0 10px; font-size: 1.7rem; }
.info-sections p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; }

.clubhouse-footer { width: min(1240px,calc(100% - 32px)); margin: 0 auto 24px; padding: 40px; display: grid; grid-template-columns: 1.7fr repeat(3,1fr); gap: 36px; color: #e8f2e6; background: var(--leaf-dark); border: 3px solid var(--ink); border-radius: 16px; }
.clubhouse-footer>div:not(.footer-brand) { display: grid; align-content: start; gap: 8px; }
.clubhouse-footer strong { color: #fff; }
.clubhouse-footer a { color: #e8f2e6; }
.footer-brand { display: flex; gap: 13px; align-items: start; }
.footer-brand p { max-width: 390px; margin: 5px 0 0; color: #c9ddcc; font-size: .88rem; }

@media (max-width: 980px) {
  .game-library { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .starter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .starter-grid .game-tile:last-child { display: none; }
  .clubhouse-footer { grid-template-columns: 1.5fr 1fr 1fr; }
  .clubhouse-footer>div:last-child { grid-column: 2/4; grid-template-columns: repeat(4,auto); }
}
@media (max-width: 760px) {
  .clubhouse-header { min-height: 68px; padding: 8px 14px; }
  .clubhouse-brand strong { font-size: 20px; }
  .clubhouse-brand img { width: 38px; height: 38px; }
  .menu-button { display: inline-flex; }
  .clubhouse-nav { position: absolute; top: calc(100% + 2px); left: 10px; right: 10px; display: none; padding: 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 0 0 12px 12px; box-shadow: 5px 5px 0 var(--leaf); }
  .clubhouse-nav.is-open { display: grid; }
  .clubhouse-nav a { width: 100%; }
  .clubhouse-main { width: min(100% - 20px,1240px); padding-top: 18px; }
  .home-hero, .parent-hero, .article-lead { grid-template-columns: 1fr; border-radius: 14px; box-shadow: 4px 5px 0 var(--leaf); }
  .home-hero__copy { padding: 30px 22px; }
  .home-hero__art { min-height: 300px; border-top: 3px solid var(--ink); border-left: 0; }
  .parent-hero img, .article-lead>img { min-height: 280px; border-top: 3px solid var(--ink); border-left: 0; }
  .page-section { padding: 52px 4px 0; }
  .section-title { align-items: start; flex-direction: column; gap: 8px; }
  .starter-grid, .game-library { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .starter-grid .game-tile:last-child { display: flex; grid-column: 1/-1; }
  .browse-strip { margin: 52px 4px 0; grid-template-columns: 1fr; padding: 24px 18px; }
  .family-section { grid-template-columns: 1fr; }
  .family-intro { position: static; }
  .library-head { align-items: start; }
  .library-doodle { display: none; }
  .guide-row--featured { grid-template-columns: 1fr; }
  .guide-row--featured .guide-row__art { min-height: 230px; border-right: 0; border-bottom: 2px solid var(--ink); }
  .parent-cards { grid-template-columns: 1fr; }
  .parent-cards a { min-height: 170px; }
  .article-columns { grid-template-columns: 1fr; gap: 20px; }
  .article-toc { position: static; }
  .printable-grid { grid-template-columns: 1fr; }
  .clubhouse-footer { padding: 28px 22px; grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .clubhouse-footer>div:last-child { grid-column: auto; grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .clubhouse-body { font-size: 16px; }
  .clubhouse-main { width: min(100% - 14px,1240px); }
  .home-hero h1 { font-size: 2.55rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .trust-list { display: grid; gap: 5px; }
  .starter-grid, .game-library { grid-template-columns: 1fr; }
  .starter-grid .game-tile:last-child { grid-column: auto; }
  .browse-links, .more-filters, .goal-links { grid-template-columns: 1fr; }
  .game-tile { display: grid; grid-template-columns: 116px minmax(0,1fr); }
  .game-tile__art { height: 100%; min-height: 210px; aspect-ratio: auto; border-right: 2px solid var(--ink); border-bottom: 0; }
  .game-tile__body { padding: 13px; }
  .game-tile p { display: none; }
  .game-tile__details { display: grid; }
  .guide-row, .guide-library .guide-row { grid-template-columns: 92px minmax(0,1fr); }
  .guide-row__copy { padding: 13px; }
  .guide-row p:not(.kicker) { display: none; }
  .guide-row h3 { font-size: 1.1rem; }
  .print-sheet { min-height: 0; padding: 26px 20px; }
  .clubhouse-footer { grid-template-columns: 1fr; }
  .clubhouse-footer>div:last-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .clubhouse-body *, .clubhouse-body *::before, .clubhouse-body *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  .clubhouse-body { background: #fff; color: #000; }
  .clubhouse-header, .clubhouse-footer, .no-print, .ad-band { display: none !important; }
  .clubhouse-main { width: 100%; padding: 0; }
  .editorial-head { border: 0; text-align: left; }
  .printable-grid { display: block; }
  .print-sheet { min-height: 0; margin: 0 0 18mm; padding: 10mm; border: 2px solid #000; box-shadow: none; break-inside: avoid; }
}
