/* ============================================
   FLUFFY GAME — Design System
   Palette: cream base, lavender + coral + mint accents
   Type: Baloo 2 (display, bubbly) + Quicksand (body)
   Signature: organic "blob" shapes throughout
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Quicksand:wght@400;500;600;700&display=swap');

:root{
  --cream:      #FFF8F0;
  --cream-soft: #FFF1E3;
  --plum:       #3D2A5C;
  --plum-soft:  #6B5690;
  --lavender:   #B8A9E8;
  --lavender-deep: #9C87DB;
  --coral:      #FF8FA8;
  --coral-deep: #FF6B8D;
  --mint:       #6FE0B8;
  --butter:     #FFD97D;
  --white:      #FFFFFF;

  --blob-1: 63% 37% 54% 46% / 55% 48% 52% 45%;
  --blob-2: 38% 62% 63% 37% / 41% 44% 56% 59%;
  --blob-3: 50% 50% 42% 58% / 60% 38% 62% 40%;

  --shadow-soft: 0 12px 32px rgba(61,42,92,0.12);
  --shadow-lift: 0 20px 44px rgba(61,42,92,0.18);

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

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--cream);
  color: var(--plum);
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,
.display{
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  color: var(--plum);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p{ margin: 0 0 1em; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
button{ font-family: inherit; cursor: pointer; border:none; background:none; }

.container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  font-size: 1rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover{ transform: translateY(-3px); }
.btn-primary{
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(255,111,141,0.4);
}
.btn-primary:hover{ box-shadow: 0 14px 30px rgba(255,111,141,0.5); background: var(--coral-deep); }
.btn-ghost{
  background: var(--white);
  color: var(--plum);
  box-shadow: var(--shadow-soft);
}
.btn-ghost:hover{ box-shadow: var(--shadow-lift); }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,248,240,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(61,42,92,0.06);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 24px;
  gap: 20px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-family:'Baloo 2', cursive;
  font-weight:800;
  font-size: 1.4rem;
  color: var(--plum);
}
.brand-mark{
  width:42px; height:42px;
  background: linear-gradient(135deg, var(--lavender), var(--coral));
  border-radius: var(--blob-1);
  display:flex; align-items:center; justify-content:center;
  font-size: 1.3rem;
  animation: breathe 6s ease-in-out infinite;
}
.nav-links{
  display:flex;
  align-items:center;
  gap: 6px;
  list-style:none;
  margin:0; padding:0;
  flex-wrap: wrap;
}
.nav-links a{
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--plum-soft);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a.active{
  background: var(--lavender);
  color: var(--white);
}
.nav-toggle{ display:none; }

@media (max-width: 860px){
  .nav-links{
    position: fixed; inset: 72px 16px auto 16px;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    box-shadow: var(--shadow-lift);
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ text-align:center; }
  .nav-toggle{
    display:flex; align-items:center; justify-content:center;
    width:44px; height:44px;
    border-radius: 14px;
    background: var(--lavender);
    color:var(--white);
    font-size:1.3rem;
  }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items:center;
}
.hero-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: var(--butter);
  color: var(--plum);
  font-weight:700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.hero h1{
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  max-width: 12ch;
}
.hero p.lead{
  font-size: 1.15rem;
  color: var(--plum-soft);
  max-width: 46ch;
}
.hero-actions{ display:flex; gap:14px; margin-top: 26px; flex-wrap:wrap; }

.hero-blob-wrap{
  position:relative;
  display:flex; align-items:center; justify-content:center;
  min-height: 320px;
}
.hero-blob{
  width: 300px; height: 300px;
  background: linear-gradient(160deg, var(--lavender) 0%, var(--coral) 100%);
  border-radius: var(--blob-1);
  animation: breathe 7s ease-in-out infinite;
  display:flex; align-items:center; justify-content:center;
  font-size: 5.5rem;
  box-shadow: var(--shadow-lift);
}
.hero-blob-2, .hero-blob-3{
  position:absolute;
  border-radius: var(--blob-2);
}
.hero-blob-2{
  width: 90px; height:90px; top: 10%; right: 8%;
  background: var(--mint);
  animation: float 5s ease-in-out infinite;
}
.hero-blob-3{
  width: 70px; height:70px; bottom: 6%; left: 4%;
  background: var(--butter);
  border-radius: var(--blob-3);
  animation: float 6.5s ease-in-out infinite reverse;
}

@keyframes breathe{
  0%,100%{ border-radius: var(--blob-1); transform: scale(1); }
  50%{ border-radius: var(--blob-2); transform: scale(1.03); }
}
@keyframes float{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce){
  .hero-blob, .brand-mark, .hero-blob-2, .hero-blob-3{ animation: none; }
}

@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-blob-wrap{ order:-1; min-height:220px; }
  .hero-blob{ width:220px; height:220px; font-size:4rem; }
}

/* ---------- Stats strip ---------- */
.stats-strip{
  display:flex; flex-wrap:wrap; gap: 14px;
  margin-top: 40px;
}
.stat-pill{
  background: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight:700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
  color: var(--plum-soft);
}

/* ---------- Section headings ---------- */
.section{ padding: 56px 0; }
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.section-head h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); margin:0; }
.section-head .sub{ color: var(--plum-soft); margin:6px 0 0; }

/* ---------- Category pills ---------- */
.category-row{
  display:flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  scrollbar-width: thin;
}
.category-pill{
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--plum-soft);
  box-shadow: var(--shadow-soft);
  transition: all .18s ease;
  white-space: nowrap;
}
.category-pill .count{
  background: var(--cream-soft);
  color: var(--plum-soft);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
}
.category-pill.active, .category-pill:hover{
  background: var(--plum);
  color: var(--white);
  transform: translateY(-2px);
}
.category-pill.active .count, .category-pill:hover .count{
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

/* ---------- Search ---------- */
.search-bar{
  display:flex;
  align-items:center;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  box-shadow: var(--shadow-soft);
  max-width: 420px;
}
.search-bar input{
  border:none; outline:none; background:none;
  font-family:'Quicksand', sans-serif;
  font-weight:600;
  font-size: 1rem;
  width:100%;
  color: var(--plum);
}

/* ---------- Game grid ---------- */
.game-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px;
  margin-top: 26px;
}
.game-card{
  background: var(--white);
  border-radius: var(--radius-card);
  overflow:hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
  display:flex;
  flex-direction:column;
}
.game-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.game-thumb{
  position:relative;
  aspect-ratio: 4/3;
  display:flex; align-items:center; justify-content:center;
  font-size: 3rem;
  background: linear-gradient(150deg, var(--lavender), var(--mint));
}
.game-thumb.coral{ background: linear-gradient(150deg, var(--coral), var(--butter)); }
.game-thumb.mint{ background: linear-gradient(150deg, var(--mint), var(--lavender)); }
.game-thumb.butter{ background: linear-gradient(150deg, var(--butter), var(--coral)); }
.game-badge{
  position:absolute; top:10px; left:10px;
  background: var(--plum);
  color:var(--white);
  font-size: 0.68rem;
  font-weight:700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.game-badge.soon{ background: rgba(61,42,92,0.55); }
.game-body{ padding: 14px 16px 16px; flex:1; display:flex; flex-direction:column; gap:6px; }
.game-title{ font-family:'Baloo 2',cursive; font-weight:700; font-size: 1rem; }
.game-meta{ font-size: 0.78rem; color: var(--plum-soft); font-weight:600; }
.play-btn{
  margin-top: auto;
  text-align:center;
  padding: 9px;
  border-radius: var(--radius-pill);
  background: var(--cream-soft);
  color: var(--plum);
  font-weight:700;
  font-size: 0.85rem;
  transition: background .15s ease, color .15s ease;
}
.game-card:hover .play-btn{ background: var(--coral); color: var(--white); }

.game-tip{
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--plum-soft);
  background: var(--cream-soft);
  border-radius: 10px;
  padding: 7px 9px;
  margin-top: 2px;
}
.game-tip strong{ color: var(--plum); }

.load-more-wrap{ display:flex; justify-content:center; margin-top: 34px; }

/* ---------- Feature cards ---------- */
.feature-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
  gap: 22px;
}
.feature-card{
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.feature-icon{
  width:52px; height:52px;
  border-radius: var(--blob-3);
  background: var(--cream-soft);
  display:flex; align-items:center; justify-content:center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.feature-card h3{ font-size: 1.1rem; margin-bottom: 6px; }
.feature-card p{ color: var(--plum-soft); font-size: 0.94rem; margin:0; }

/* ---------- FAQ ---------- */
.faq-item{
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
  overflow:hidden;
}
.faq-q{
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 22px;
  font-family:'Baloo 2',cursive;
  font-weight:600;
  font-size: 1rem;
}
.faq-q .icon{ transition: transform .2s ease; color: var(--coral); font-size:1.3rem; }
.faq-item.open .faq-q .icon{ transform: rotate(45deg); }
.faq-a{
  max-height:0;
  overflow:hidden;
  transition: max-height .25s ease;
  padding: 0 22px;
  color: var(--plum-soft);
}
.faq-item.open .faq-a{ max-height: 200px; padding-bottom: 18px; }

/* ---------- Simple content pages (about/contact/legal) ---------- */
.page-hero{
  padding: 60px 0 30px;
  text-align:center;
}
.page-hero h1{ font-size: clamp(2rem,4vw,2.8rem); }
.page-hero p{ color: var(--plum-soft); max-width: 56ch; margin: 0 auto; }

.content-block{
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 4vw, 48px);
  margin-bottom: 24px;
}
.content-block h2{ font-size: 1.4rem; margin-top: 1.4em; }
.content-block h2:first-child{ margin-top:0; }
.content-block ul{ padding-left: 1.2em; }
.content-block li{ margin-bottom: 0.5em; }

.about-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 20px;
  margin: 30px 0;
}
.value-card{
  background: var(--cream-soft);
  border-radius: 20px;
  padding: 22px;
}
.value-card .emoji{ font-size:1.8rem; margin-bottom:8px; }

.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 760px){ .contact-grid{ grid-template-columns:1fr; } }

.form-field{ margin-bottom: 16px; }
.form-field label{ display:block; font-weight:700; margin-bottom:6px; font-size:0.9rem; }
.form-field input, .form-field textarea{
  width:100%;
  font-family:'Quicksand',sans-serif;
  font-weight:600;
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid var(--cream-soft);
  background: var(--cream);
  color: var(--plum);
  outline:none;
  transition: border-color .15s ease;
}
.form-field input:focus, .form-field textarea:focus{ border-color: var(--lavender); }
.form-field textarea{ min-height: 120px; resize: vertical; }

.contact-info-card{
  background: linear-gradient(160deg, var(--lavender), var(--coral));
  border-radius: var(--radius-card);
  padding: 30px;
  color: var(--white);
}
.contact-info-card h3{ color: var(--white); }
.contact-info-row{ display:flex; gap:12px; align-items:flex-start; margin-bottom:16px; }
.contact-info-row .ic{ font-size:1.3rem; }

/* ---------- Modal (game play) ---------- */
.play-modal{
  position: fixed; inset:0;
  background: rgba(61,42,92,0.55);
  display:none;
  align-items:center; justify-content:center;
  z-index: 1000;
  padding: 20px;
}
.play-modal.open{ display:flex; }
.play-modal-inner{
  background: var(--cream);
  border-radius: 24px;
  width:100%; max-width: 900px;
  overflow:hidden;
  box-shadow: var(--shadow-lift);
}
.play-modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 20px;
}
.play-modal-head h3{ margin:0; }
.play-modal-close{
  width:36px; height:36px;
  border-radius:50%;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-size: 1.1rem;
}
.play-modal-frame{
  aspect-ratio: 16/9;
  width:100%;
  background: var(--plum);
  display:flex; align-items:center; justify-content:center;
  color: var(--white);
  text-align:center;
  padding: 24px;
}
.play-modal-frame iframe{ width:100%; height:100%; border:0; }
.play-tips{
  display:none;
  padding: 14px 20px 20px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--plum-soft);
  background: var(--cream-soft);
}
.play-tips strong{ display:block; margin-bottom: 4px; color: var(--plum); font-family:'Baloo 2',cursive; }
.play-tips p{ margin:0; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--plum);
  color: rgba(255,255,255,0.82);
  padding: 56px 0 26px;
  margin-top: 40px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
@media (max-width: 760px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
.footer-brand{ display:flex; align-items:center; gap:10px; font-family:'Baloo 2',cursive; font-weight:800; color:var(--white); font-size:1.2rem; margin-bottom:10px; }
.footer-col h4{ color: var(--white); font-family:'Baloo 2',cursive; font-size:0.95rem; margin-bottom:14px; }
.footer-col ul{ list-style:none; padding:0; margin:0; }
.footer-col li{ margin-bottom: 10px; }
.footer-col a{ color: rgba(255,255,255,0.75); font-size:0.9rem; transition:color .15s ease; }
.footer-col a:hover{ color: var(--butter); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  flex-wrap:wrap; gap:10px;
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 3px solid var(--lavender-deep);
  outline-offset: 2px;
}
