@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700&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.2; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.3); }
}

/* 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 {
  display: block;
  padding: 9px 12px;
  background: linear-gradient(135deg, #66DD44, #44aa33);
  border-radius: 12px;
  color: #fff !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.3);
  margin-top: auto;
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 16px rgba(102, 221, 68, 0.5);
}

.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: #4a7a40;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.15s;
}

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

.footer-tagline {
  color: #3a5a30;
  margin-bottom: 8px;
  font-size: 12px;
}

.site-footer a {
  color: #5a8a50;
  font-weight: 600;
}

/* 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: #5a8a50;
  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: #99bb88;
  margin-bottom: 14px;
  font-size: 15px;
}

.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); }
}
