/* ============================================================
   FILO WORLD — 3D / premium depth layer (dev copy)
   Loaded after site.css. Adds depth to the existing layout
   without changing any content or artwork.
   ============================================================ */

:root{
  --d1:0 2px 4px rgba(46,39,66,.06), 0 8px 18px rgba(46,39,66,.10), 0 24px 48px rgba(46,39,66,.10);
  --d2:0 4px 8px rgba(46,39,66,.08), 0 18px 36px rgba(46,39,66,.14), 0 44px 80px rgba(46,39,66,.14);
  --edge:#4A3A6B;
  --gloss:linear-gradient(180deg,rgba(255,255,255,.95) 0%,rgba(255,255,255,.35) 42%,rgba(255,255,255,0) 60%);
}

/* ---------- sky with depth ---------- */
body{
  background:
    radial-gradient(1200px 520px at 50% -10%, #BFE2FB 0%, rgba(191,226,251,0) 70%),
    radial-gradient(900px 420px at 85% 8%, #E8F6FF 0%, rgba(232,246,255,0) 65%),
    linear-gradient(180deg,#B9DDF9 0%,#D9EEFD 34%,#EAF6FE 62%,#F6FBFF 100%);
  background-attachment:fixed;
}
body::after{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(closest-side,rgba(255,255,255,.85),rgba(255,255,255,0)) 12% 18%/420px 160px no-repeat,
    radial-gradient(closest-side,rgba(255,255,255,.7),rgba(255,255,255,0)) 78% 12%/520px 190px no-repeat,
    radial-gradient(closest-side,rgba(255,255,255,.6),rgba(255,255,255,0)) 62% 62%/460px 170px no-repeat,
    radial-gradient(closest-side,rgba(255,255,255,.55),rgba(255,255,255,0)) 18% 78%/380px 150px no-repeat;
}

/* ---------- header: floating glass shelf ---------- */
header{
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.72));
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset, 0 10px 24px rgba(46,39,66,.08);
  border-bottom:1px solid rgba(217,228,243,.9);
}
.brand .dot{box-shadow:0 0 0 3px rgba(110,90,158,.14), 18px 0 0 -4px var(--gold)}
.pill{box-shadow:0 1px 0 #fff inset, 0 6px 14px rgba(46,39,66,.08)}

/* ---------- headings: soft depth ---------- */
h1,h2{text-shadow:0 1px 0 rgba(255,255,255,.9), 0 10px 24px rgba(46,39,66,.10)}

/* ---------- 3D buttons ---------- */
.btn{
  position:relative;border-radius:16px;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-p{
  background:linear-gradient(180deg,#8A74C0 0%,#6E5A9E 46%,#5B4785 100%);
  box-shadow:0 6px 0 #4A3A6B, 0 14px 26px rgba(74,58,107,.34), 0 1px 0 rgba(255,255,255,.55) inset;
}
.btn-p::after{
  content:"";position:absolute;inset:2px 2px 52% 2px;border-radius:14px 14px 999px 999px;
  background:linear-gradient(180deg,rgba(255,255,255,.45),rgba(255,255,255,0));pointer-events:none;
}
.btn-p:hover{transform:translateY(-2px);box-shadow:0 8px 0 #4A3A6B, 0 20px 34px rgba(74,58,107,.38), 0 1px 0 rgba(255,255,255,.55) inset}
.btn-p:active{transform:translateY(4px);box-shadow:0 2px 0 #4A3A6B, 0 8px 16px rgba(74,58,107,.3), 0 1px 0 rgba(255,255,255,.5) inset}
.btn-g{
  background:linear-gradient(180deg,#FFFFFF 0%,#F2F7FE 100%);
  box-shadow:0 5px 0 #DCE7F5, 0 12px 22px rgba(46,39,66,.10), 0 1px 0 #fff inset;
}
.btn-g:hover{transform:translateY(-2px);box-shadow:0 7px 0 #DCE7F5, 0 18px 28px rgba(46,39,66,.14)}
.btn-g:active{transform:translateY(3px);box-shadow:0 2px 0 #DCE7F5, 0 6px 12px rgba(46,39,66,.10)}

/* ---------- hero: a book standing in the light ---------- */
.hero .stage{perspective:1500px}
.hero .stage .spread{
  transform:rotateY(-13deg) rotateX(4deg) rotateZ(-1.4deg);
  transform-origin:60% 60%;
  border-radius:8px;
  box-shadow:0 40px 70px -18px rgba(46,39,66,.45), 0 8px 18px rgba(46,39,66,.18);
  transition:transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s ease;
}
.hero .stage:hover .spread{transform:rotateY(-6deg) rotateX(2deg) rotateZ(-.6deg)}
.hero .stage::after{ /* ground shadow */
  content:"";position:absolute;left:6%;right:2%;bottom:-34px;height:46px;border-radius:50%;
  background:radial-gradient(closest-side,rgba(46,39,66,.28),rgba(46,39,66,0));filter:blur(6px);
}
.hero .stage .mini{
  box-shadow:0 18px 30px -8px rgba(46,39,66,.4), 0 2px 6px rgba(46,39,66,.14);
  border:3px solid rgba(255,255,255,.9);
}
.hero .stage .tag{
  background:linear-gradient(180deg,rgba(74,58,107,.92),rgba(46,39,66,.92));
  box-shadow:0 8px 18px rgba(46,39,66,.3), 0 1px 0 rgba(255,255,255,.25) inset;
}

/* ---------- trust strip: little raised tiles ---------- */
.trust{background:linear-gradient(180deg,#FFFFFF,#F4F9FF);box-shadow:0 1px 0 #fff inset, 0 12px 26px rgba(46,39,66,.07)}
.trust i{box-shadow:0 3px 6px rgba(46,39,66,.18)}

/* ---------- product cards: lifted panels ---------- */
.pcard{
  border:1px solid rgba(217,228,243,.9);
  border-radius:28px;
  box-shadow:0 1px 0 #fff inset, 0 10px 22px rgba(46,39,66,.10), 0 30px 60px -20px rgba(46,39,66,.22);
  transition:transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
  transform-style:preserve-3d;
}
.pcard:hover{
  transform:translateY(-8px) rotateX(1.2deg);
  box-shadow:0 1px 0 #fff inset, 0 18px 34px rgba(46,39,66,.14), 0 46px 80px -24px rgba(46,39,66,.3);
}
.pcard .im{background:linear-gradient(180deg,#F6F1FE 0%,#E9E1F8 100%)}
.pcard .im img{
  border-radius:14px;
  box-shadow:0 16px 26px -10px rgba(46,39,66,.35), 0 2px 0 #fff inset;
  transform:rotate(-.6deg);
  transition:transform .4s ease;
}
.pcard:hover .im img{transform:rotate(0) translateY(-4px)}

/* ---------- age tiles: soft 3D blocks ---------- */
.age{
  border-radius:24px;
  box-shadow:0 1px 0 #fff inset, 0 8px 18px rgba(46,39,66,.10), 0 24px 44px -22px rgba(46,39,66,.28);
  transition:transform .3s ease, box-shadow .3s ease;
}
.age:hover{transform:translateY(-6px);box-shadow:0 1px 0 #fff inset, 0 14px 26px rgba(46,39,66,.14), 0 34px 54px -22px rgba(46,39,66,.3)}
.age .n{
  display:inline-grid;place-items:center;width:64px;height:64px;border-radius:50%;
  color:#fff;font-size:20px;
  background:radial-gradient(circle at 34% 28%,#9C87D2 0%,#6E5A9E 55%,#4A3A6B 100%);
  box-shadow:0 8px 16px rgba(74,58,107,.35), 0 2px 0 rgba(255,255,255,.5) inset;
  margin-bottom:6px;
}

/* ---------- patterns strip: deep panel ---------- */
.strip{
  background:linear-gradient(160deg,#5B4785 0%,#4A3A6B 55%,#3B2E56 100%);
  box-shadow:0 1px 0 rgba(255,255,255,.18) inset, 0 30px 60px -18px rgba(59,46,86,.55);
  border-radius:34px;
}
.strip .ims img{box-shadow:0 22px 40px -12px rgba(0,0,0,.5), 0 2px 0 rgba(255,255,255,.25) inset;transform:rotate(-1.5deg)}
.strip .ims img:nth-child(2){transform:rotate(1.5deg)}

/* ---------- video shell ---------- */
.video .shell{box-shadow:0 30px 60px -20px rgba(46,39,66,.45), 0 1px 0 rgba(255,255,255,.2) inset}
.play{box-shadow:0 14px 30px rgba(46,39,66,.35), 0 1px 0 #fff inset}

/* ---------- product page blocks ---------- */
.gal .main{box-shadow:0 1px 0 #fff inset, 0 26px 50px -18px rgba(46,39,66,.4)}
.gal .main img{box-shadow:0 18px 30px -12px rgba(46,39,66,.35)}
.buy{box-shadow:0 1px 0 #fff inset, 0 14px 30px rgba(46,39,66,.12)}
.btn-dis{box-shadow:0 5px 0 #CFDCEE, 0 10px 18px rgba(46,39,66,.08)}

/* ---------- payment page ---------- */
.pay-step,.pay-card,.pay-note-card,.buy-strip .b{
  border:1px solid rgba(217,228,243,.9);
  box-shadow:0 1px 0 #fff inset, 0 10px 22px rgba(46,39,66,.09), 0 28px 50px -24px rgba(46,39,66,.24);
}
.pay-card{transition:transform .3s ease, box-shadow .3s ease}
.pay-card:hover{transform:translateY(-4px);box-shadow:0 1px 0 #fff inset, 0 16px 30px rgba(46,39,66,.12), 0 40px 64px -26px rgba(46,39,66,.28)}
.pick{box-shadow:0 1px 0 #fff inset, 0 8px 18px rgba(46,39,66,.08)}
.pick.on{
  border-color:var(--pri);
  box-shadow:0 0 0 4px rgba(110,90,158,.14), 0 1px 0 #fff inset, 0 16px 30px rgba(74,58,107,.22);
  transform:translateY(-3px);
}
.pick img{box-shadow:0 10px 18px -8px rgba(46,39,66,.3)}
.ipa{box-shadow:0 1px 0 #fff inset, 0 6px 14px rgba(46,39,66,.06)}
.copy-btn{box-shadow:0 3px 0 #DCE7F5, 0 6px 12px rgba(46,39,66,.08)}
.pay-btn-wa{
  background:linear-gradient(180deg,#41E07A 0%,#25D366 52%,#1EB457 100%);
  box-shadow:0 6px 0 #12833F, 0 14px 26px rgba(18,131,63,.32), 0 1px 0 rgba(255,255,255,.5) inset;
}
.pay-btn-wa:hover{transform:translateY(-2px);box-shadow:0 8px 0 #12833F, 0 20px 32px rgba(18,131,63,.36), 0 1px 0 rgba(255,255,255,.5) inset}
.pay-btn-wa:active{transform:translateY(4px);box-shadow:0 2px 0 #12833F, 0 8px 14px rgba(18,131,63,.28), 0 1px 0 rgba(255,255,255,.45) inset}
.devbar{box-shadow:0 6px 16px rgba(46,39,66,.25)}

/* ---------- footer ---------- */
footer{background:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.6))}

@media (prefers-reduced-motion:reduce){
  .pcard,.age,.pay-card,.pick,.btn,.hero .stage .spread{transition:none}
}
@media (max-width:900px){
  .hero .stage .spread{transform:rotateY(-8deg) rotateX(3deg)}
  .hero .stage::after{display:none}
}

/* ---------- chunky extruded panels (the KidsPlay 3D edge) ---------- */
.pcard{
  box-shadow:0 1px 0 #fff inset, 0 9px 0 #E4ECF8, 0 20px 34px rgba(46,39,66,.14), 0 44px 70px -26px rgba(46,39,66,.28);
}
.pcard:hover{
  box-shadow:0 1px 0 #fff inset, 0 11px 0 #E4ECF8, 0 26px 40px rgba(46,39,66,.16), 0 54px 80px -26px rgba(46,39,66,.3);
}
.age{
  box-shadow:0 1px 0 #fff inset, 0 8px 0 rgba(226,214,245,.85), 0 18px 30px rgba(46,39,66,.12);
}
.ages .row .age:nth-child(1){box-shadow:0 1px 0 #fff inset, 0 8px 0 #CBEAD6, 0 18px 30px rgba(46,39,66,.12)}
.ages .row .age:nth-child(2){box-shadow:0 1px 0 #fff inset, 0 8px 0 #F2DFC0, 0 18px 30px rgba(46,39,66,.12)}
.pay-step,.pay-note-card,.buy-strip .b{
  box-shadow:0 1px 0 #fff inset, 0 7px 0 #E4ECF8, 0 18px 30px rgba(46,39,66,.10);
}
.pay-card{
  box-shadow:0 1px 0 #fff inset, 0 9px 0 #E4ECF8, 0 22px 36px rgba(46,39,66,.12);
}
.pick{box-shadow:0 1px 0 #fff inset, 0 6px 0 #E4ECF8, 0 14px 24px rgba(46,39,66,.08)}
.pick.on{box-shadow:0 0 0 4px rgba(110,90,158,.14), 0 1px 0 #fff inset, 0 8px 0 #D7CDF0, 0 20px 32px rgba(74,58,107,.20)}

/* ---------- open book: spine shading ---------- */
.flip .viewer{perspective:1400px}
.flip .viewer::after{
  content:"";position:absolute;inset:0;pointer-events:none;border-radius:var(--r);
  background:linear-gradient(90deg,rgba(46,39,66,0) 46%,rgba(46,39,66,.18) 50%,rgba(46,39,66,0) 54%),
             linear-gradient(180deg,rgba(255,255,255,.35),rgba(255,255,255,0) 18%);
}
.flip .viewer img{box-shadow:0 34px 60px -22px rgba(46,39,66,.5), 0 6px 14px rgba(46,39,66,.16)}

/* ---------- gallery on product pages ---------- */
.gal .main{transform:rotate(-.8deg)}
.gal .th button{box-shadow:0 4px 0 #E4ECF8, 0 8px 14px rgba(46,39,66,.08)}
.gal .th button.on{box-shadow:0 4px 0 #D7CDF0, 0 10px 18px rgba(74,58,107,.18)}
