/* Self-hosted fonts (no requests to Google). Lilita One + Nunito, SIL Open Font License. */
@font-face { font-family: 'Lilita One'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/lilita-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lilita One'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/lilita-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(../fonts/nunito-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(../fonts/nunito-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --orange: #F5872A;
  --tabby: #8B5A3C;
  --cream: #FFF4E6;
  --pink: #F4A6A6;
  --red: #E8211B;
  --yellow: #FFD23F;
  --ink: #1E1A17;
  --paper: #FFFBF5;
  --muted: #6B5A4E;
  --night: #1a1420;
  --violet: #7a3cff;
  --border: 3px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --radius: 18px;
  --display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .4em; letter-spacing: .5px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px dashed var(--red); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 244, 230, .92); backdrop-filter: blur(8px); border-bottom: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand img { height: 60px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 6px; }
.site-header nav a { font-weight: 800; text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.site-header nav a:hover { background: #fff; }
.site-header nav .nav-cta { background: var(--yellow); border: var(--border); box-shadow: 2px 2px 0 var(--ink); }

/* Buttons + tags */
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; text-decoration: none; padding: 11px 20px; border: var(--border); border-radius: 999px; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; white-space: nowrap; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-secondary { background: #fff; color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.ctas-center { justify-content: center; }
.tag { display: inline-block; font: 800 12px/1 var(--body); letter-spacing: 1px; background: var(--red); color: #fff; padding: 6px 10px; border-radius: 999px; border: 2px solid var(--ink); margin-bottom: 10px; }
.tag-dark { background: var(--violet); }

/* Hero */
.hero { padding: 40px 0 56px; }
.hero-intro { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.hero-intro h1 { font-size: clamp(40px, 6vw, 68px); }
.hero-intro h1 span { color: var(--orange); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.hero-intro p { font-size: 19px; color: var(--muted); }

.slider { position: relative; background: #fff; border: var(--border); border-radius: calc(var(--radius) + 6px); box-shadow: 8px 8px 0 var(--ink); touch-action: pan-y; }
.slides { position: relative; display: grid; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 32px; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .45s, visibility 0s; }
.slide-img { width: 100%; height: auto; aspect-ratio: 460 / 215; object-fit: cover; border: var(--border); border-radius: var(--radius); }
.slide-card h2 { font-size: clamp(30px, 3.5vw, 44px); }
.slide-card p { color: var(--muted); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: var(--border); background: var(--yellow); font: 28px/1 var(--display); cursor: pointer; box-shadow: 2px 2px 0 var(--ink); z-index: 2; }
.slider-arrow.prev { left: -22px; }
.slider-arrow.next { right: -22px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: -46px; display: flex; justify-content: center; gap: 10px; }
.slider-dots button { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; padding: 0; cursor: pointer; }
.slider-dots button[aria-current="true"] { background: var(--orange); width: 32px; border-radius: 999px; }

/* Sections */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(34px, 4.5vw, 52px); }
.section-head p { color: var(--muted); font-size: 18px; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: #fff; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s; }
.card:hover { transform: translateY(-4px) rotate(-.4deg); }
.card-img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; border-bottom: var(--border); }
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 24px; }
.card-body p { font-size: 15px; color: var(--muted); flex: 1; }
.card-body .btn { padding: 9px 14px; font-size: 14px; }
.img-fallback { display: grid; place-items: center; aspect-ratio: 460 / 215; background: var(--pink); font: 20px var(--display); padding: 12px; text-align: center; }

/* 100 Cats */
.section-cats { background: var(--paper); border-top: var(--border); border-bottom: var(--border); }
.series-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 860px; margin: 0 auto 40px; }
.series-stats div { background: var(--yellow); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; text-align: center; }
.series-stats div:nth-child(2) { background: var(--pink); }
.series-stats div:nth-child(3) { background: var(--orange); }
.series-stats div:nth-child(4) { background: #fff; }
.series-stats strong { display: block; font: 40px/1 var(--display); }
.series-stats span { font-weight: 800; font-size: 14px; }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.country { position: relative; display: block; background: #fff; border: var(--border); border-radius: 14px; overflow: hidden; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s; }
.country:hover { transform: translateY(-3px); }
.country-img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; border-bottom: 2px solid var(--ink); }
.country-name { display: block; padding: 8px 10px; font-weight: 800; font-size: 15px; }
.country.soon { opacity: .7; }
.country.soon .country-img { filter: grayscale(.8); }
.country .badge { position: absolute; top: 6px; right: 6px; background: var(--ink); color: #fff; font: 800 11px/1 var(--body); padding: 5px 8px; border-radius: 999px; }

/* Coming soon */
.section-dark { background: var(--night); color: #efe6ff; }
.coming-soon-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.coming-soon-card h2 { font-size: clamp(34px, 4vw, 52px); color: #fff; }
.coming-soon-card p { color: #c9bde0; }
.coming-img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; border: 3px solid var(--violet); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--violet); }
.section-dark .btn-primary { background: var(--violet); color: #fff; border-color: #fff; box-shadow: 4px 4px 0 #fff; }

/* Other games */
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.mini-card { background: #fff; border: var(--border); border-radius: 14px; overflow: hidden; text-decoration: none; font-weight: 800; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s; }
.mini-card:hover { transform: translateY(-3px); }
.mini-img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; border-bottom: 2px solid var(--ink); }
.mini-card span { display: block; padding: 10px 12px; font-size: 15px; }

/* About + contact */
.section-about { background: var(--paper); border-top: var(--border); }
.about-inner { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; max-width: 980px; }
.about-inner h2 { font-size: clamp(32px, 4vw, 46px); }
.about-inner p { font-size: 18px; }
.section-contact { text-align: center; background: var(--orange); border-top: var(--border); }
.section-contact h2 { font-size: clamp(38px, 5vw, 60px); }
.section-contact p { font-size: 19px; font-weight: 600; }
.section-contact .btn-primary { background: var(--yellow); }
.load-error { grid-column: 1 / -1; text-align: center; font-weight: 800; }

.site-footer { background: var(--ink); color: var(--cream); padding: 24px 0; font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Hidden cats */
.hidden-cat { position: absolute; z-index: 5; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; width: 64px; min-height: 44px; opacity: .55; transition: opacity .2s, transform .2s; }
.hidden-cat svg { width: 100%; height: auto; display: block; }
.hidden-cat:hover, .hidden-cat:focus-visible { opacity: 1; }
.hidden-cat:not(.found) .fill { fill: #fff; }
.hidden-cat .fill { transition: fill .5s; }
.hidden-cat.found { opacity: 1; cursor: default; }
.hidden-cat.just-found { animation: cat-pop .5s ease-out; }
@keyframes cat-pop { 0% { transform: scale(1); } 40% { transform: scale(1.5) rotate(-8deg); } 100% { transform: scale(1); } }
.cat-hero { top: -47px; left: 62%; width: 78px; }
.cat-games { right: 40px; bottom: -88px; width: 84px; }
.cat-cats100 { right: 24px; top: -18px; width: 84px; }
.cat-about { right: 8px; bottom: -78px; width: 50px; }

.cat-counter { position: fixed; right: 16px; bottom: 16px; z-index: 60; background: #fff; border: var(--border); border-radius: 999px; box-shadow: var(--shadow); padding: 8px 14px; font-weight: 800; font-size: 15px; }
.cat-counter.is-complete { background: var(--yellow); }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; }

/* Responsive */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .slide { grid-template-columns: 1fr; gap: 18px; }
  .coming-soon-card { grid-template-columns: 1fr; gap: 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .about-logo { width: 180px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-inner { height: 64px; }
  .brand img { height: 48px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .series-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .slide { padding: 14px; }
  .slide-card p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .slider-arrow { display: none; }
  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .btn { white-space: normal; text-align: center; }
  .cat-hero { left: auto; right: 24px; }
  .site-footer { padding-bottom: 76px; }
}

/* Policy pages */
.policy { max-width: 820px; padding-top: 48px; padding-bottom: 80px; }
.policy h1 { font-size: clamp(36px, 5vw, 54px); }
.policy h2 { font-size: 24px; margin-top: 1.6em; }
.policy-updated { color: var(--muted); font-weight: 600; }
.policy ul { padding-left: 1.2em; }
.policy code { background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 0 5px; font-size: .9em; }
.not-found { text-align: center; padding: 40px 0; }
.not-found img { width: 200px; margin: 0 auto 16px; }
