:root{
      --p0:#FDF2FF; --p1:#F7E4FF; --p2:#E4D4FF; --b1:#D8F2FF; --b2:#BCE7FF; --pink:#FF8EC3; --purple:#A57CFF; --blue:#53C6FF; --gold:#FFD66E; --ink:#281a55;
      --glass: rgba(255,255,255,.7);
      --shadow: 0 14px 40px rgba(60,20,140,.18);
      --r-xl: 32px;
    }

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

    html,body{height:100%; max-width:100%; overflow-x:hidden;}
    body{
      font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
      color:var(--ink);
      font-size: 1.3rem;
      line-height: 1.7;
      background:
        radial-gradient(700px 500px at 10% 10%, var(--p1), transparent 70%),
        radial-gradient(600px 450px at 90% 15%, var(--b1), transparent 70%),
        radial-gradient(800px 650px at 20% 90%, var(--p2), transparent 70%),
        linear-gradient(180deg, var(--p0), var(--b2));
      background-attachment: fixed;
      overflow-x:hidden;
    }

    /* Confetti / sticker shapes */
:root {
  --purple: #7a4bff;
  --blue: #5dc8ff;
  --ink: #4c32a3;         /* main link color */
  --ink-strong: #2d2080;  /* hover/active */
}

/* =========================
   NAVBAR SPARKLE THEME
   ========================= */
.navbar-fun {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.65);
  transition: background 0.4s ease, box-shadow 0.4s ease;
  padding-bottom: 0.5rem;
  padding-top: 0.5rem;
}

.navbar-fun.scrolled {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Keep padding at top on mobile */
@media (max-width: 767.98px) {
  header#home {
    padding-top: 1rem !important;
  }
}

/* Brand */
.navbar-fun .navbar-brand {
  display: inline-flex;
  align-items: center;
  width: clamp(118px, 14vw, 168px);
  aspect-ratio: 1629 / 570;
  overflow: hidden;
  position: relative;
  padding: 0;
  transition: filter 0.3s ease, transform 0.3s ease;
}
.navbar-fun .navbar-brand:hover {
  filter: drop-shadow(0 0 8px rgba(122,75,255,0.42));
  transform: translateY(-1px);
}
.navbar-fun .navbar-brand img {
  display: block;
  position: absolute;
  left: -10.5%;
  top: -77.5%;
  width: 140.4%;
  max-width: none;
  height: auto;
}

/* Links - DESKTOP ONLY */
@media (min-width: 768px) {
  .navbar-fun .nav-link {
    position: relative;
    font-weight: 800;
    color: var(--ink) !important;
    margin: 0 .75rem;
    transition: color 0.3s ease;
  }
  .navbar-fun .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0%;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--purple), var(--blue));
    transform: translateX(-50%);
    transition: width 0.35s ease;
  }
  .navbar-fun .nav-link:hover,
  .navbar-fun .nav-link.active {
    color: var(--ink-strong) !important;
  }
  .navbar-fun .nav-link:hover::after,
  .navbar-fun .nav-link.active::after {
    width: 80%;
    box-shadow: 0 0 8px rgba(120, 90, 255, 0.5);
  }
}


/* =========================
   MOBILE MENU - ALL IN ONE
   ========================= */
@media (max-width: 767.98px) {
  /* Hamburger toggler */
  .navbar-fun .navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    background: transparent;
  }
  .navbar-fun .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
  }
  .navbar-fun .navbar-toggler-icon {
    display: none;
  }
  .navbar-fun .navbar-toggler span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background: #4c32a3;
    transition: all 0.3s ease;
    border-radius: 2px;
    left: 0;
  }
  .navbar-fun .navbar-toggler span:nth-child(1) {
    top: 0;
  }
  .navbar-fun .navbar-toggler span:nth-child(2) {
    top: 9px;
  }
  .navbar-fun .navbar-toggler span:nth-child(3) {
    top: 18px;
  }
  .navbar-fun .navbar-toggler[aria-expanded="true"] span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
  }
  .navbar-fun .navbar-toggler[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .navbar-fun .navbar-toggler[aria-expanded="true"] span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
  }

  /* Mobile menu dropdown */
  .navbar-fun .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .navbar-fun .navbar-collapse {
    background: white !important;
    margin-top: 0 !important;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-bottom: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .navbar-fun .nav-link {
    display: block !important;
    width: 100% !important;
    padding: 14px 0 !important;
    margin: 0 !important;
    text-align: center !important;
    color: #5838a8 !important;
    font-weight: 700 !important;
    background: white !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: color 0.3s ease !important;
    position: relative !important;
  }
  .navbar-fun .nav-link::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 4px !important;
    width: 0% !important;
    height: 3px !important;
    border-radius: 3px !important;
    background: linear-gradient(90deg, var(--purple), var(--blue)) !important;
    transform: translateX(-50%) !important;
    transition: width 0.35s ease !important;
  }

  .navbar-fun .nav-link:hover,
  .navbar-fun .nav-link:focus,
  .navbar-fun .nav-link:active {
    color: var(--ink-strong) !important;
    background: white !important;
    border: none !important;
    box-shadow: none !important;
  }
  .navbar-fun .nav-link:hover::after,
  .navbar-fun .nav-link:focus::after,
  .navbar-fun .nav-link:active::after {
    width: 60% !important;
    box-shadow: 0 0 8px rgba(120, 90, 255, 0.5) !important;
  }
}

/* Hide toggler on desktop */
@media (min-width: 768px) {
  .navbar-fun .navbar-toggler {
    display: none;
  }
}
    /* Stickers */
    .sticker{ display:inline-flex; gap:.5rem; align-items:center; padding:.55rem 1rem; border-radius:999px; background:linear-gradient(90deg, var(--pink), var(--purple)); color:white; box-shadow:0 10px 24px rgba(255,140,200,.35); font-weight:900; }
    
    /* FIXED: Sparkle buttons - vibrant gradient, RICHER hover, thin border */
    .btn-sparkle{ 
      background: linear-gradient(135deg, #a78bfa, #60a5fa); 
      border: none;
      color: white; 
      border-radius: 999px; 
      padding: .9rem 1.4rem; 
      font-weight: 900; 
      box-shadow: 0 8px 20px rgba(165, 124, 255, 0.25);
      transition: all 0.4s ease;
      position: relative;
    }
    .btn-sparkle::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 999px;
      padding: 1.5px;
      background: linear-gradient(135deg, #9333ea, #2563eb);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      opacity: 0;
      transition: opacity 0.4s ease;
    }
    .btn-sparkle:hover {
      background: white;
      color: transparent;
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-image: linear-gradient(135deg, #9333ea, #2563eb);
    }
    .btn-sparkle:hover::before {
      opacity: 1;
    }
    .btn-sparkle:active {
      transform: none;
    }

    /* Disabled state for buy/release buttons */
    .btn-sparkle.is-disabled {
      pointer-events: none;
      opacity: 0.6;
      cursor: not-allowed;
      filter: grayscale(0.3);
    }

    /* FIXED: Contact buttons - dark blue-gray text, fills on hover with white text */
    .btn-cloud { 
      background: rgba(255,255,255,0.85); 
      border: none;
      border-radius: 999px;
      padding: 0.75rem 1.3rem;
      font-weight: 700;
      color: #334155 !important;
      transition: none;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      position: relative;
      text-decoration: none;
    }
    .btn-cloud i {
      transition: none;
    }
    .btn-cloud:hover {
      background: linear-gradient(135deg, #a78bfa, #60a5fa);
      color: white !important;
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(165, 124, 255, 0.25);
    }
    .btn-cloud:hover i {
      color: white !important;
    }
    .btn-cloud:active {
      transform: translateY(0);
    }

    /* FIXED: Social media icon buttons - dark blue-gray icons, WHITE on hover */
    .btn-fairy-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: rgba(255,255,255,0.85);
      border: none;
      transition: none;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      position: relative;
    }
    .btn-fairy-icon i {
      position: relative;
      z-index: 1;
      color: #334155 !important;
      transition: none;
    }
    .btn-fairy-icon:hover {
      background: linear-gradient(135deg, #a78bfa, #60a5fa);
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(165, 124, 255, 0.3);
    }
    .btn-fairy-icon:hover i {
      color: white !important;
    }
    .btn-fairy-icon:active {
      transform: translateY(0);
    }

    /* Glass cards */
    .glass{ background:var(--glass); backdrop-filter: blur(12px); border:1px solid rgba(255,255,255,.65); border-radius: var(--r-xl); box-shadow: var(--shadow); }

    .section {
      padding-top: 3rem;
      padding-bottom: 3rem;
    }

    .section-heading {
      font-family: "Baloo 2", system-ui;
      font-weight: 800;
      letter-spacing: .5px;
      color: var(--ink-strong);
    }

    .card-glass {
      background: rgba(255,255,255,.62);
      border: 1px solid rgba(255,255,255,.72);
      box-shadow: var(--shadow);
      backdrop-filter: blur(12px);
    }

    #carouselMagic .carousel-control-prev,
    #carouselMagic .carousel-control-next {
      width: clamp(48px, 8vw, 82px);
      opacity: 1;
    }

    #carouselMagic .carousel-control-prev-icon,
    #carouselMagic .carousel-control-next-icon {
      width: 3rem;
      height: 3rem;
      border-radius: 50%;
      background-color: rgba(45, 32, 128, .72);
      background-size: 52% 52%;
      box-shadow: 0 8px 22px rgba(45, 32, 128, .28);
      backdrop-filter: blur(6px);
      transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
    }

    #carouselMagic .carousel-control-prev:hover .carousel-control-prev-icon,
    #carouselMagic .carousel-control-next:hover .carousel-control-next-icon {
      background-color: rgba(122, 75, 255, .9);
      box-shadow: 0 10px 26px rgba(122, 75, 255, .34);
      transform: scale(1.06);
    }

    .rounded-2xl {
      border-radius: var(--r-xl);
    }

    .heading{ font-family:"Baloo 2", system-ui; font-weight:800; letter-spacing:.5px; }

    /* Larger subtitle and lead text */
    .lead-soft, .text-muted, p {
      font-size: 1.15em;
      line-height: 1.7;
    }
    
    h3, h4, h5 {
      margin-bottom: 0.75rem;
    }

    /* Princess badges */
    .badge-crown{ 
      background: linear-gradient(90deg, var(--p2), var(--b2));
      color: var(--ink);
      font-weight:900; 
      border-radius:999px; 
      padding:.35rem .75rem; 
      display: inline-block;
      white-space: nowrap;
      margin: 0.25rem 0.25rem;
    }

    /* Characters */
    .char-card img{ border-radius: 18px; }
    .char-name{ font-family:"Baloo 2"; font-size: 1.25rem; font-weight:800; }

    /* 4-spread preview grid */
    .preview4 img{ border-radius: 18px; width:100%; height:100%; object-fit:cover; }


    /* Round author/illustrator */
    .circle-card{ text-align:center; }
    .circle-card .avatar{ width:160px; height:160px; border-radius:50%; object-fit:cover; border:8px solid rgba(255,255,255,.85); box-shadow: 0 12px 28px rgba(90,50,160,.22); }

    .footer{ color:#5e54a8; }

    /* Quote styling - larger and more elegant */
    .quote {
      font-family: "Italianno", cursive;
      font-size: 2.5rem;
      line-height: 1.4;
      color: var(--ink);
      font-weight: 400;
    }

    html { scroll-behavior: smooth; }

    /* Hero  */
    .hero{position:relative; overflow:hidden; border-radius:28px; min-height:clamp(420px,54vw,620px); box-shadow:var(--shadow);}
    .hero-bg{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:60% 50%;}
    .hero-overlay {
      position:absolute; inset:0;
      background:
        radial-gradient(60% 60% at 65% 45%, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 60%),
        linear-gradient(180deg, rgba(155,124,255,.10) 0%, rgba(174,227,255,.06) 100%);
    }

    

    /* Title: anchor by % (not padding) */
    .hero-content{position:absolute; inset:0; pointer-events:none;}  /* container for stacking */
    .title-script,
    .title-art-wrap {
      position: absolute;
      left: clamp(24px, 8%, 120px);
      top: clamp(36px, 11%, 96px);
    }
    .title-script {
      font-family: "Italianno", cursive;
      font-size: clamp(52px, 6.8vw, 110px);
      line-height: .9;
      color: var(--ink);
      pointer-events: auto;
    }
    .title-art-wrap {
      display: block;
      width: clamp(230px, 33vw, 430px);
      aspect-ratio: 1875 / 918;
      overflow: hidden;
      pointer-events: auto;
      filter: drop-shadow(0 8px 14px rgba(74, 45, 130, .16));
    }
    .title-art {
      position: absolute;
      left: -9.1%;
      top: -48%;
      display: block;
      width: 121.9%;
      max-width: none;
      height: auto;
    }

    /* Tablet tuning */
    @media (max-width: 992px) {
      .title-script,
      .title-art-wrap {
        left: clamp(20px, 7%, 80px);
        top: clamp(34px, 13%, 100px);
      }
      .title-script {
        font-size: clamp(44px, 8vw, 96px);
      }
      .title-art-wrap {
        width: clamp(210px, 43vw, 390px);
      }
    }

    /* Mobile tuning */
    @media (max-width: 600px) {
      .title-script,
      .title-art-wrap {
        left: 6%;
        top: 10%;
      }
      .title-script {
        font-size: clamp(36px, 10vw, 72px);
      }
      .title-art-wrap {
        width: clamp(176px, 52vw, 240px);
      }
      
      .hero-content {
        padding: 1rem !important;
      }
    }


    /* FIXED: Round author/illustrator - NO colored border, NO grow effect on images */
    .round-card{
      text-align:center;
    }
    .round-card img{
      width:140px;
      height:140px;
      border-radius:50%;
      object-fit:cover;
      object-position: center 40%;
      border:6px solid rgba(255,255,255,.8);
      box-shadow:0 10px 20px rgba(100,60,160,.2);
      transition: box-shadow 0.35s ease;
      transform: scale(0.85);
    }
    .round-card:hover img {
      box-shadow: 0 12px 28px rgba(165, 124, 255, 0.3);
    }
    .round-card h5{
      font-family:"Baloo 2", system-ui;
      margin-top:10px;
      color:#5838a8;
    }

    /* ========================= 
       MOBILE OPTIMIZATIONS 
       ========================= */
    
    /* Tablet and below (including iPad Pro) */
    @media (max-width: 1199.98px) {
      body {
        font-size: 1.2rem;
      }
      
      .heading {
        font-size: 1.75rem;
        text-align: center;
      }
      
      .glass {
        padding: 2rem 1.5rem !important;
      }
      
      /* Badge container - ensure proper wrapping */
      .badge-crown {
        margin: 0.35rem 0.35rem;
        font-size: 0.95rem;
      }
      
      /* Center all text content on tablet */
      #about .col-xl-6:first-child,
      #buy .col-xl-6 {
        text-align: center;
      }
      
      /* Center buttons */
      #about .btn-sparkle,
      #buy .d-flex {
        justify-content: center;
      }
    }
    
    /* Mobile specific */
    @media (max-width: 767.98px) {
      body {
        font-size: 1.15rem;
      }

      body,
      main,
      section,
      header,
      footer {
        max-width: 100%;
        overflow-x: hidden;
      }
      
      /* Consistent padding for all containers on mobile */
      .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100vw !important;
        width: 100% !important;
      }
      
      /* Better spacing on mobile */
      section {
        padding: 2rem 0 !important;
      }
      
      .glass {
        padding: 1.5rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100%;
        width: auto;
      }

      .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
      }

      .row > * {
        padding-left: 0 !important;
        padding-right: 0 !important;
        min-width: 0;
      }

      p {
        overflow-wrap: break-word;
      }

      #about .glass,
      #buy .glass,
      #author .glass,
      #contact .glass {
        max-width: calc(100vw - 2rem);
        margin-left: auto !important;
        margin-right: auto !important;
      }

      #about p,
      #buy p,
      #contact p {
        max-width: calc(100vw - 5rem);
        margin-left: auto;
        margin-right: auto;
      }

      #about .img-fluid,
      #buy .img-fluid {
        max-width: calc(100vw - 5rem);
      }

      img,
      .img-fluid {
        max-width: 100%;
      }
      
      /* Hero adjustments */
      .hero {
        min-height: 380px;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100%;
      }

      .hero-bg {
        object-position: 56% 50%;
      }
      
      /* Quote section */
      .quote {
        font-size: 1.8rem !important;
        line-height: 1.5;
      }
      
      /* Ensure all sections are centered */
      #about, #buy, #contact, #author {
        text-align: center;
      }
      
      /* Stack buttons vertically with proper spacing */
      #buy .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem !important;
      }
      
      #buy .btn-sparkle {
        width: 100%;
        max-width: 280px;
      }
      
      #contact .d-flex {
        flex-direction: column;
        gap: 0.75rem !important;
      }
      
      #contact .btn-cloud {
        width: 100%;
        max-width: 280px;
      }
      
      /* Author cards - better mobile layout */
      .round-card {
        margin-bottom: 1.5rem;
      }
      
      .round-card img {
        width: 120px;
        height: 120px;
        margin: 0 auto;
      }
      
      /* Social icons in author section */
      .round-card .d-flex {
        justify-content: center !important;
      }
      
      /* Better badge spacing */
      .badge-crown {
        display: inline-block;
        margin: 0.25rem !important;
      }
      
      /* Carousel controls - make more visible on mobile */
      .carousel-control-prev,
      .carousel-control-next {
        width: 15%;
      }

      #carouselMagic .carousel-control-prev-icon,
      #carouselMagic .carousel-control-next-icon {
        width: 2.4rem;
        height: 2.4rem;
      }
      
      /* Headings */
      .heading {
        font-size: 1.6rem;
        margin-bottom: 1rem;
      }
      
      h3.heading {
        font-size: 1.5rem;
      }
      
      h5 {
        font-size: 1.25rem;
      }
    }
    
    /* Small mobile devices */
    @media (max-width: 575.98px) {
      body {
        font-size: 1.1rem;
      }
      
      .hero {
        min-height: 320px;
      }
      
      .title-script {
        font-size: clamp(32px, 12vw, 64px) !important;
      }
      .title-art-wrap {
        width: clamp(160px, 54vw, 220px);
      }
      
      .navbar-fun .navbar-brand {
        width: clamp(104px, 30vw, 135px);
      }
      
      /* Even more compact spacing */
      .glass {
        padding: 1.25rem !important;
      }
      
      section {
        padding: 1.5rem 0 !important;
      }
      
      .heading {
        font-size: 1.4rem;
      }
      
      .quote {
        font-size: 1.5rem !important;
      }
    }
