/* ============================================================
   BOUKI AK MALIS — Global Stylesheet
   Partnox LLC © 2025
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700&display=swap');

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito', sans-serif;
  background: #FFF8EC;
  color: #1A1A1A;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------- CSS Variables ---------- */
:root {
  --gold:    #F5C430;
  --green:   #4EC818;
  --pink:    #E8468A;
  --forest:  #0B3358;
  --brown:   #7A4C20;
  --teal:    #1ABFB8;
  --cream:   #FFF8EC;
  --white:   #FFFFFF;
  --dark:    #1A1A1A;
  --shadow:  0 8px 24px rgba(0,0,0,0.2);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.3);
  --radius:  16px;
  --radius-pill: 50px;
  --transition: 0.3s ease;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Fredoka One', cursive;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout Utilities ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-dark {
  background: var(--forest);
  color: var(--white);
}

.section-brown {
  background: var(--brown);
  color: var(--white);
}

.section-cream {
  background: var(--cream);
  color: var(--dark);
}

.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green); }
.text-white  { color: var(--white); }
.text-brown  { color: var(--brown); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  white-space: nowrap;
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #F5C842, #E8A020);
  color: var(--forest);
  box-shadow: 0 4px 16px rgba(245,200,66,0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #7DC832, #4EA010);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(125,200,50,0.4);
}

.btn-pink {
  background: linear-gradient(135deg, #E8468A, #C02060);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232,70,138,0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--forest);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--brown);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-cream {
  background: var(--cream);
  color: var(--dark);
}

.card-forest {
  background: var(--forest);
  color: var(--white);
}

.card-gold {
  background: linear-gradient(135deg, #F5C842, #F0A820);
  color: var(--forest);
}

.card-green {
  background: linear-gradient(135deg, #7DC832, #4EA010);
  color: var(--white);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}

.card-icon-green {
  background: var(--green);
}

/* ---------- Section Headings ---------- */
.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading h2 {
  margin-bottom: 12px;
}

.section-heading p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

.heading-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--green));
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--brown);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand img {
  height: 50px;
  width: auto;
}

.nav-brand-name {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: var(--gold);
  line-height: 1.1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cream);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(245,200,66,0.15);
  color: var(--gold);
}

.nav-links a.active {
  border-bottom: 2px solid var(--gold);
  border-radius: 0;
  background: transparent;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--brown);
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-mobile-menu a {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--cream);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition);
}

.nav-mobile-menu a:hover,
.nav-mobile-menu a.active {
  color: var(--gold);
}

.nav-mobile-menu.open {
  display: flex;
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(170deg, #0A74BC 0%, #1BA5D8 35%, #19C2AA 65%, #2BC96A 100%);
  color: var(--white);
  text-align: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}

.hero-home {
  padding: 120px 24px 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-home-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  width: 300px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}

.hero-logo-sm {
  width: 80px;
  margin: 0 auto 24px;
}

.hero h1 {
  color: var(--gold);
  margin-bottom: 16px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto;
}

.hero-short {
  padding: 80px 24px 60px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero background pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(43,201,106,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(232,70,138,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(245,200,66,0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.06) 0%, transparent 35%);
  pointer-events: none;
}

/* ---------- Decorative Elements ---------- */
.deco-leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.deco-leaf {
  position: absolute;
  opacity: 0.25;
}

.deco-leaf-1 { top: 5%; left: 3%; width: 80px; transform: rotate(-20deg); }
.deco-leaf-2 { top: 15%; right: 5%; width: 100px; transform: rotate(30deg); }
.deco-leaf-3 { bottom: 10%; left: 8%; width: 70px; transform: rotate(15deg); }
.deco-leaf-4 { bottom: 20%; right: 3%; width: 90px; transform: rotate(-10deg); }
.deco-leaf-5 { top: 50%; left: 1%; width: 60px; transform: rotate(45deg); }
.deco-leaf-6 { top: 40%; right: 1%; width: 75px; transform: rotate(-35deg); }

.deco-flower {
  position: absolute;
  opacity: 0.2;
}

.deco-flower-1 { top: 8%; left: 15%; width: 50px; }
.deco-flower-2 { bottom: 15%; right: 12%; width: 60px; }

/* ============================================================
   HOME PAGE — SPECIFIC SECTIONS
   ============================================================ */

/* About the Game */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-left: 4px solid var(--gold);
}

.feature-item-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}

.feature-item-text h4 {
  font-family: 'Fredoka One', cursive;
  color: var(--brown);
  margin-bottom: 4px;
}

.feature-item-text p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* How to Play */
.step-card {
  text-align: center;
  background: var(--brown);
  border-radius: var(--radius);
  padding: 40px 24px 32px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.step-card:hover {
  transform: translateY(-6px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gold);
  color: var(--forest);
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  border-radius: 50%;
  margin-bottom: 12px;
}

.step-card .card-icon {
  margin-bottom: 20px;
}

.step-card h3 {
  color: var(--gold);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

/* Screenshots Placeholder */
.screenshots-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}

.phone-frame {
  width: 200px;
  height: 380px;
  border: 3px solid var(--brown);
  border-radius: 28px;
  background: #e0d5c5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  width: 60px;
  height: 8px;
  background: var(--brown);
  border-radius: 4px;
  opacity: 0.5;
}

.phone-frame-icon {
  font-size: 3rem;
  opacity: 0.4;
}

.phone-frame-caption {
  font-family: 'Fredoka One', cursive;
  color: var(--brown);
  opacity: 0.6;
  font-size: 0.9rem;
}

/* Download CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--gold), var(--pink));
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.mission-card {
  text-align: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 36px 24px;
  transition: background var(--transition), transform var(--transition);
}

.mission-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.mission-card .card-icon {
  background: rgba(245,200,66,0.2);
  border: 2px solid var(--gold);
}

.mission-card h3 {
  color: var(--gold);
  margin-bottom: 10px;
}

.character-card {
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.character-card:hover {
  transform: translateY(-6px);
}

.character-emoji {
  font-size: 5rem;
  display: block;
  margin-bottom: 16px;
}

.character-card h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.character-card.bouki {
  background: linear-gradient(135deg, #F5C842, #F0A820);
  color: var(--forest);
}

.character-card.malis {
  background: linear-gradient(135deg, #7DC832, #4EA010);
  color: var(--white);
}

/* Company info section */
.company-info-grid {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.company-info-text {
  flex: 1;
  min-width: 240px;
}

.company-info-text h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.9);
}

.info-row span.icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   LEGAL PAGES (Privacy Policy / Terms of Service)
   ============================================================ */
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 90px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}

.legal-toc h3 {
  font-family: 'Fredoka One', cursive;
  color: var(--brown);
  margin-bottom: 16px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-toc ul {
  list-style: none;
  padding: 0;
}

.legal-toc ul li {
  margin-bottom: 4px;
}

.legal-toc ul li a {
  display: block;
  color: var(--dark);
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.legal-toc ul li a:hover {
  background: rgba(245,200,66,0.15);
  color: var(--brown);
}

.legal-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
}

.legal-content h1 {
  font-family: 'Fredoka One', cursive;
  color: var(--brown);
  margin-bottom: 8px;
  font-size: 2.2rem;
}

.legal-meta {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--cream);
}

.legal-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-family: 'Fredoka One', cursive;
  color: var(--brown);
  font-size: 1.4rem;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
}

.legal-section h3 {
  font-family: 'Fredoka One', cursive;
  color: var(--forest);
  font-size: 1.1rem;
  margin: 20px 0 8px;
}

.legal-section p {
  color: #333;
  font-size: 0.97rem;
  line-height: 1.8;
}

.legal-section ul {
  list-style: disc;
  padding-left: 24px;
  margin: 12px 0;
}

.legal-section ul li {
  margin-bottom: 6px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form h2 {
  font-family: 'Fredoka One', cursive;
  color: var(--brown);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0d5c5;
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--dark);
  background: #fafafa;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,200,66,0.2);
  background: var(--white);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--pink);
}

.form-error {
  color: var(--pink);
  font-size: 0.85rem;
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  background: rgba(125,200,50,0.1);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--forest);
  font-weight: 700;
  display: none;
  margin-top: 16px;
}

.form-success.visible {
  display: block;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B5E3C' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-3px);
}

.contact-info-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(245,200,66,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-text h4 {
  font-family: 'Fredoka One', cursive;
  color: var(--brown);
  margin-bottom: 4px;
}

.contact-info-text p, .contact-info-text a {
  color: #555;
  font-size: 0.95rem;
}

.contact-info-text a:hover {
  color: var(--brown);
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--white);
  font-size: 1.1rem;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--gold);
  color: var(--forest);
  transform: translateY(-3px);
}

/* ============================================================
   SUPPORT / FAQ PAGE
   ============================================================ */
.search-bar-wrap {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.search-bar {
  width: 100%;
  padding: 16px 24px 16px 52px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-pill);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: box-shadow var(--transition);
}

.search-bar:focus {
  outline: none;
  box-shadow: 0 4px 24px rgba(245,200,66,0.3);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  pointer-events: none;
}

/* FAQ Categories */
.faq-category {
  margin-bottom: 48px;
}

.faq-category-title {
  font-family: 'Fredoka One', cursive;
  color: var(--brown);
  font-size: 1.4rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--gold);
}

/* Accordion */
.accordion-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid #eee;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: none;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
  gap: 12px;
}

.accordion-trigger:hover {
  background: rgba(245,200,66,0.08);
}

.accordion-trigger.open {
  background: rgba(245,200,66,0.1);
  color: var(--brown);
}

.accordion-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform var(--transition);
  color: var(--brown);
  font-style: normal;
}

.accordion-trigger.open .accordion-icon {
  transform: rotate(45deg);
  background: var(--gold);
  color: var(--forest);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-body.open {
  max-height: 1000px;
}

.accordion-body-inner {
  padding: 0 24px 20px;
  color: #444;
  font-size: 0.97rem;
  line-height: 1.8;
  border-top: 1px solid #f0e8d8;
}

/* ============================================================
   WAVE DIVIDERS
   ============================================================ */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -2px;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--forest);
  color: var(--white);
}

.footer-top {
  padding: 60px 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand img {
  height: 50px;
  width: auto;
}

.footer-brand-name {
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  color: var(--gold);
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  font-family: 'Fredoka One', cursive;
  color: var(--gold);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-col p,
.footer-col address {
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--green);
  margin: 0 24px;
  opacity: 0.4;
}

.footer-bottom {
  text-align: center;
  padding: 20px 24px;
  font-size: 0.85rem;
  color: var(--gold);
  opacity: 0.9;
}

.footer-email {
  color: var(--green);
  font-weight: 700;
}

.footer-email:hover {
  color: var(--gold);
}

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 220px 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   RESPONSIVE — TABLET (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Container */
  .container { padding: 0 20px; }

  /* Sections */
  .section { padding: 48px 0; }
  .section-heading { margin-bottom: 32px; }
  .section-heading p { font-size: 1rem; }

  /* Nav */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { padding: 10px 20px; }
  .nav-brand img { height: 42px; }
  .nav-brand-name { font-size: 1.15rem; }

  /* Hero — compact, no min-height forcing full screen */
  .hero-home {
    padding: 72px 20px 52px;
    min-height: unset;
  }
  .hero-short { padding: 64px 20px 48px; min-height: unset; }
  .hero-logo { width: 180px; margin-bottom: 20px; }
  .hero h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); margin-bottom: 10px; }
  .hero p { font-size: 1rem; }

  /* Store buttons — full width, properly stacked */
  .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
  }
  .store-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    min-height: 52px;
    padding: 12px 24px;
  }
  .store-btn-inner { align-items: center; }
  .btn-group .btn { width: 100%; max-width: 300px; justify-content: center; }

  /* APK download button */
  .apk-download-btn {
    display: inline-flex !important;
    margin: 4px auto 0;
  }

  /* Grids — single column */
  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .grid-3 { grid-template-columns: 1fr; gap: 20px; }

  /* About wooden panel — full width, no max-width constraint */
  .wood-panel { max-width: 100% !important; }

  /* How to Play wooden panel cards — centered, constrained */
  .section-dark .grid-3 .wood-panel {
    max-width: 380px;
    margin: 0 auto;
  }

  /* CTA banner — tighter padding */
  .cta-banner { padding: 52px 20px 60px; }
  .cta-banner h2 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .cta-banner p { font-size: 1rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid .footer-col:first-child { grid-column: auto; }
  .footer-top { padding: 48px 20px 32px; }
  .footer-bottom { padding: 16px 20px; flex-direction: column; gap: 8px; text-align: center; }

  /* Legal */
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-content { padding: 28px 20px; }

  /* Contact form */
  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  /* About — company info */
  .company-info-grid { flex-direction: column; }

  /* Support accordion — full width */
  .accordion-item { border-radius: 10px; }

  /* Screenshots fallback */
  .screenshots-grid { gap: 16px; }
  .phone-frame { width: 160px; height: 300px; }
}

/* ============================================================
   RESPONSIVE — SMALL PHONES (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  /* Container */
  .container { padding: 0 16px; }

  /* Sections */
  .section { padding: 40px 0; }
  .section-heading { margin-bottom: 28px; }

  /* Nav */
  .nav-inner { padding: 8px 16px; }
  .nav-brand img { height: 36px; }
  .nav-brand-name { font-size: 1rem; }
  .nav-mobile-menu { padding: 12px 16px 20px; }

  /* Hero */
  .hero-home { padding: 56px 16px 44px; }
  .hero-short { padding: 52px 16px 40px; }
  .hero-logo { width: 150px; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .hero p { font-size: 0.95rem; }

  /* Store buttons */
  .store-btn { max-width: 100%; padding: 11px 20px; }
  .store-btn-main { font-size: 0.95rem; }

  /* APK button */
  .apk-download-btn { font-size: 0.78rem; padding: 7px 14px; }

  /* Section headings */
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* Bubbles showcase — full width on small phones */
  .bubbles-showcase { max-width: 100%; padding: 0 8px; }
  .bubbles-showcase-panel { padding: 20% 13% 12%; }
  .showcase-label { font-size: 1rem; }
  .showcase-sublabel { font-size: 0.78rem; }
  .showcase-bubbles img { width: 46px; height: 46px; }
  .showcase-bubble-lg { width: 72px !important; height: 72px !important; }

  /* CTA */
  .cta-banner { padding: 44px 16px 52px; }

  /* Footer */
  .footer-top { padding: 40px 16px 28px; }
  .footer-brand-name { font-size: 1.2rem; }

  /* Legal */
  .legal-content { padding: 24px 16px; }
  .contact-form { padding: 24px 16px; }

  /* Feature items in wood panel */
  .feature-item { padding: 12px 14px; gap: 10px; }
  .feature-item-text h4 { font-size: 0.8rem; }
  .feature-item-text p { font-size: 0.7rem; }

  /* Wood panel how-to cards */
  .section-dark .grid-3 .wood-panel { max-width: 100%; }
}

/* ============================================================
   UTILITY / MISC
   ============================================================ */
.badge {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  font-family: 'Fredoka One', cursive;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  vertical-align: middle;
  margin-left: 8px;
}

.highlight {
  color: var(--gold);
}

.divider {
  border: none;
  border-top: 2px solid rgba(255,255,255,0.1);
  margin: 32px 0;
}

/* Scroll-to-top feel for legal pages */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--gold);
  color: var(--forest);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  border: none;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

/* Smooth reveal for page load */
.page-wrap {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Store badge buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  text-decoration: none;
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.08);
}

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

.store-btn-google {
  background: linear-gradient(135deg, #7DC832, #4EA010);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(125,200,50,0.4);
}

.store-btn-apple {
  background: linear-gradient(135deg, #F5C842, #E8A020);
  color: var(--forest);
  box-shadow: 0 4px 16px rgba(245,200,66,0.4);
}

.store-btn-coming-soon {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(30%);
}

.store-btn-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-btn-sub {
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.85;
}

.store-btn-main {
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
}

/* ============================================================
   GAME ASSETS — Characters, Bubbles, Wooden Panels
   ============================================================ */

/* --- Animations --- */
@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0)    rotate(0deg)  scale(1); }
  35%       { transform: translateY(-22px) rotate(4deg)  scale(1.03); }
  70%       { transform: translateY(-10px) rotate(-2deg) scale(0.97); }
}

@keyframes charBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* --- Floating bubble field (decorative layer) --- */
.bubble-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.bubble-float {
  position: absolute;
  width:  var(--size, 80px);
  height: var(--size, 80px);
  object-fit: contain;
  border-radius: 50%;          /* clips square bg on non-transparent PNGs */
  animation: bubbleFloat var(--dur, 5s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

/* --- Hero character flanking --- */
.hero-chars {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 3;
}

.hero-char {
  position: absolute;
  bottom: 0;
  width: 210px;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.5));
  animation: charBob var(--bob-dur, 3.2s) ease-in-out infinite;
  animation-delay: var(--bob-delay, 0s);
}

.hero-char-left  { left: 32px; }
.hero-char-right { right: 32px; }

/* --- Wooden Panel Card --- */
.wood-panel {
  position: relative;
  display: block;
}

.wood-panel-img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Content overlaid on the cream interior of panne-small (squarish) */
.wood-panel-body {
  position: absolute;
  top: 20%;
  left: 13%;
  right: 13%;
  bottom: 9%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--dark);
}

/* For panne-medium / panne-long (portrait) — slightly tighter top for leaves */
.wood-panel-body-tall {
  top: 16%;
  left: 10%;
  right: 10%;
  bottom: 8%;
}

/* Step number badge inside wood panel */
.wp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: var(--forest);
  font-family: 'Fredoka One', cursive;
  font-size: 0.95rem;
  border-radius: 50%;
  margin: 6px auto 4px;
  flex-shrink: 0;
}

/* --- CTA Parachute character ---
   The CTA section must have overflow:visible for this to show fully.
   The character hangs above the section boundary — the parachute appears
   over the wave divider above, Bouki's body sits inside the banner. */
.parachute-char {
  position: absolute;
  top: -110px;        /* high enough so the full parachute dome is visible */
  right: 6%;
  width: 260px;
  pointer-events: none;
  z-index: 2;
  animation: charBob 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.3));
  user-select: none;
}

/* --- Character cards with real images (About page) --- */
.character-img-card {
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  position: relative;
  overflow: hidden;
}

.character-img-card:hover { transform: translateY(-6px); }

.character-img-card.bouki {
  background: linear-gradient(160deg, #F5E070 0%, #F0A820 100%);
  color: var(--forest);
}

.character-img-card.malis {
  background: linear-gradient(160deg, #9EE040 0%, #4EA010 100%);
  color: var(--white);
}

.character-img-card .char-img {
  width: 170px;
  margin: 0 auto 16px;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.2));
  animation: charBob 3.2s ease-in-out infinite;
}

.character-img-card h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  margin-bottom: 14px;
}

/* --- Bouki face expression (inline small mascot) --- */
.bouki-expression {
  width: 64px;
  height: 64px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

/* --- Game bubbles showcase --- */
.bubbles-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

/* Panel uses the wooden frame as a CSS background so content flows
   naturally in padding — no absolute overlay, no overflow issues.
   aspect-ratio: 2/3 matches panne-medium.png (1024×1536) exactly,
   keeping the wood borders pixel-perfect at any size. */
.bubbles-showcase-panel {
  background: url('../panne-medium.png') center / 100% 100% no-repeat;
  aspect-ratio: 2 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Insets calibrated to the cream interior of panne-medium:
     top clears the leaf decoration, sides clear the wood border,
     bottom clears the wicker weave. */
  padding: 24% 16% 16%;
  box-sizing: border-box;
  gap: 8px;
  overflow: hidden;
}

.showcase-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.showcase-bubbles img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  animation: bubbleFloat var(--dur, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.showcase-bubble-lg {
  width: 80px !important;
  height: 80px !important;
}

.showcase-label {
  font-family: 'Fredoka One', cursive;
  color: var(--brown);
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
}

.showcase-sublabel {
  font-size: 0.78rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .hero-char         { width: 160px; }
  .hero-char-left    { left: 12px; }
  .hero-char-right   { right: 12px; }
  .parachute-char    { width: 200px; top: -80px; right: 3%; }
}

@media (max-width: 900px) {
  .bubbles-showcase { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .bubbles-showcase-panel { padding: 22% 14% 16%; gap: 6px; }
  .showcase-bubbles img { width: 52px; height: 52px; }
  .showcase-bubble-lg { width: 80px !important; height: 80px !important; }
  .showcase-label { font-size: 1.05rem; }
  .showcase-sublabel { font-size: 0.8rem; }
}

@media (max-width: 768px) {
  .hero-char         { display: none; }
  .parachute-char    { display: none; }
  .bubble-float      { opacity: 0.5; }
  /* Reduce floating bubble count visually — fewer distractions on small screens */
  .bubble-field .bubble-float:nth-child(n+5) { display: none; }
}

/* ============================================================
   APK DIRECT DOWNLOAD BUTTON
   Shown only when manifest.json confirms an APK exists.
   Android-only concept — styled as a subtle secondary link.
   ============================================================ */
.apk-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background var(--transition), border-color var(--transition);
}

.apk-download-btn:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.8);
}

/* In the CTA section the background is dark green — same pill style fits */
.apk-download-btn-cta {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
}

/* ============================================================
   PLATFORM-AWARE STORE BUTTONS
   JS detects Android/iOS and applies these classes dynamically.
   Desktop visitors always see both buttons at full size.
   ============================================================ */

/* The secondary (non-native) store button — muted but still clickable */
.store-btn-secondary {
  opacity: 0.55;
  transform: scale(0.88);
  box-shadow: none !important;
  filter: grayscale(0.25);
  transition:
    opacity var(--transition),
    transform var(--transition),
    box-shadow var(--transition),
    filter var(--transition);
}

.store-btn-secondary:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1);
  box-shadow: var(--shadow-lg) !important;
  filter: none;
}

/* "Also available on…" text injected below each .btn-group on mobile */
.store-also-text {
  width: 100%;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  margin-top: 10px;
  /* Inherits color from parent section */
  opacity: 0.75;
}

/* On dark sections (hero, CTA banner) */
.hero .store-also-text,
.cta-banner .store-also-text,
.section-dark .store-also-text {
  color: var(--white);
}

/* On light sections */
.section-cream .store-also-text {
  color: var(--dark);
}

.store-also-link {
  font-weight: 700;
  text-decoration: underline;
  color: inherit;
  transition: opacity var(--transition);
}

.store-also-link:hover {
  opacity: 1;
}

/* ============================================================
   SCREENSHOTS GALLERY — Real gameplay strip
   ============================================================ */

.section-ocean {
  background: linear-gradient(160deg, #093B66 0%, #0A5A8C 50%, #0B7BA8 100%);
  color: var(--white);
}

.screenshots-hint {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 24px 12px;
  margin-top: -4px !important;
  margin-bottom: 0 !important;
}

.screenshots-strip-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.screenshots-strip-wrap::before,
.screenshots-strip-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.screenshots-strip-wrap::before {
  left: 0;
  background: linear-gradient(to right, #093B66, transparent);
}

.screenshots-strip-wrap::after {
  right: 0;
  background: linear-gradient(to left, #0B7BA8, transparent);
}

.screenshots-strip {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 16px 80px 36px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(245,200,66,0.5) transparent;
  cursor: grab;
}

.screenshots-strip:active {
  cursor: grabbing;
}

.screenshots-strip::-webkit-scrollbar {
  height: 5px;
}

.screenshots-strip::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.screenshots-strip::-webkit-scrollbar-thumb {
  background: rgba(245,200,66,0.55);
  border-radius: 3px;
}

.screenshot-item {
  scroll-snap-align: center;
  flex-shrink: 0;
  width: 200px;
  text-align: center;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.screenshot-item:hover {
  transform: translateY(-14px) scale(1.05);
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.6));
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,0.5));
}

.screenshot-caption {
  font-family: 'Fredoka One', cursive;
  color: var(--gold);
  font-size: 0.9rem;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .screenshot-item { width: 160px; }
  .screenshots-strip { padding: 12px 40px 28px; gap: 16px; }
  .screenshots-strip-wrap::before,
  .screenshots-strip-wrap::after { width: 40px; }
}

@media (max-width: 480px) {
  .screenshot-item { width: 140px; }
  .screenshots-strip { padding: 10px 20px 22px; gap: 12px; }
  .screenshots-strip-wrap::before,
  .screenshots-strip-wrap::after { width: 20px; }
}
