/* v7733q6 — q5 FAIL 7.9: real p1 hero→tiles tighten + cover band smudge + album label size */
/* P0 dots: ABOVE egg (≥12px), high contrast, big, high z — KEEP from q5 */
#hpDots{
  position:absolute!important;left:0!important;right:0!important;
  bottom:calc(env(safe-area-inset-bottom) + 112px)!important;
  display:flex!important;justify-content:center!important;align-items:center!important;
  gap:14px!important;z-index:60!important;pointer-events:auto!important;
  visibility:visible!important;opacity:1!important;height:auto!important;
  transform:none!important;
}
#hpDots i{
  display:block!important;width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important;
  border-radius:50%!important;padding:14px!important;margin:0!important;
  box-sizing:content-box!important;background-clip:content-box!important;
  background-color:#ffffff!important;
  box-shadow:0 0 0 3px #2b2240,0 4px 10px #0008!important;
  opacity:1!important;visibility:visible!important;cursor:pointer!important;
  flex:0 0 auto!important;
}
#hpDots i.on{
  width:32px!important;min-width:32px!important;border-radius:10px!important;
  background-color:#ffe56a!important;
  box-shadow:0 0 0 3px #2b2240,0 4px 12px #0009!important;
}
#home.hp2 #hpDots{display:flex!important;visibility:visible!important;opacity:1!important;z-index:60!important}
#hpHint{display:none!important}

/* swipe track — tuck INTO hero fade (kill dead purple + cover smudge) */
#home .bigbtns.hpg{
  overflow-x:auto!important;overflow-y:hidden!important;
  scroll-snap-type:x mandatory!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-x!important;
  overscroll-behavior-x:contain!important;
  cursor:grab!important;
  margin-top:auto!important;
  /* tall phone: pull hard into fade so first-open isn't dead purple */
  transform:translateY(-148px)!important;
  margin-bottom:calc(env(safe-area-inset-bottom) + 148px)!important;
  padding-bottom:4px!important;
  flex:0 0 auto!important;
  position:relative!important;z-index:2!important; /* sit above hero fade / smudge */
}
#home .bigbtns.hpg.is-drag{cursor:grabbing!important;scroll-snap-type:none!important;user-select:none!important}
#home .hpage{overflow:visible!important;scroll-snap-align:center!important;scroll-snap-stop:always!important}

/* TALLER hero + fade that stays opaque longer so soft pixels meet tiles (q5 shrank hero = worse band) */
#home #homeHero{
  left:50%!important;transform:translateX(-50%)!important;
  width:min(130vw,680px)!important;
  height:min(56vh,480px)!important;
  top:calc(env(safe-area-inset-top) + 88px)!important;
  background-size:cover!important;background-position:center 22%!important;
  -webkit-mask-image:linear-gradient(to right,transparent 0%,#000 22%,#000 78%,transparent 100%),linear-gradient(to bottom,#000 0%,#000 72%,transparent 100%),radial-gradient(ellipse 68% 68% at 50% 42%,#000 42%,transparent 86%);
  mask-image:linear-gradient(to right,transparent 0%,#000 22%,#000 78%,transparent 100%),linear-gradient(to bottom,#000 0%,#000 72%,transparent 100%),radial-gradient(ellipse 68% 68% at 50% 42%,#000 42%,transparent 86%);
  -webkit-mask-composite:source-in,source-in;mask-composite:intersect;
  z-index:0!important;pointer-events:none!important;
}

/* p1 labels */
#home .hpage.p1{justify-content:center!important;padding-left:18px!important;padding-right:18px!important;gap:14px!important;box-sizing:border-box!important;align-items:flex-start!important}
#home .hpage.p1 button.big{
  align-items:center!important;display:flex!important;flex-direction:column!important;
}
#home .hpage.p1 button.big .art{flex:0 0 auto!important}
#home .hpage.p1 button.big .tlbl{
  display:flex!important;align-items:center!important;justify-content:center!important;
  margin-top:10px!important;min-height:1.45em;height:1.45em;line-height:1.3!important;
  text-align:center!important;max-width:100%!important;box-sizing:border-box!important;
  position:relative!important;left:auto!important;right:auto!important;transform:none!important;
}

/* p2: keep q5 baselines + equal label type size (Album was optically smaller) */
#home .hpage.p2{
  display:grid!important;
  grid-template-columns:repeat(2,min(28vw,120px))!important;
  grid-template-rows:auto auto!important;
  gap:28px 28px!important;
  justify-content:center!important;justify-items:center!important;
  align-content:start!important;align-items:start!important;
  padding:4px 20px 8px!important;
}
#home .hpage.p2 #goGallery,#home .hpage.p2 #goPuzzle,#home .hpage.p2 #goDraw,#home .hpage.p2 #goPot{
  width:min(28vw,120px)!important;max-width:min(28vw,120px)!important;
}
#home .hpage.p2 button.big{
  align-items:center!important;justify-content:flex-start!important;
  display:flex!important;flex-direction:column!important;
  width:100%!important;height:auto!important;
}
#home .hpage.p2 button.big .art{
  width:100%!important;aspect-ratio:1/1!important;flex:0 0 auto!important;
  height:auto!important;
}
#home .hpage.p2 button.big .tlbl,
#home .hpage.p2 #goGallery .tlbl,
#home .hpage.p2 #goGallery.v7610g .tlbl,
#home .hpage #goGallery.v7610g .tlbl{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;text-align:center!important;
  /* identical type to siblings — beat font:inherit on Gallery */
  font:800 13px/1.25 system-ui,sans-serif!important;
  font-size:13px!important;font-weight:800!important;letter-spacing:0!important;
  margin-top:10px!important;margin-left:0!important;margin-right:0!important;
  padding:4px 10px!important;box-sizing:border-box!important;
  min-height:2.1em!important;height:2.1em!important;
  position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;
  transform:none!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  background:linear-gradient(180deg,#fff,#f3e9ff)!important;
  box-shadow:0 3px 0 #c9b2ef,0 6px 14px #1a053a40!important;
  border:2px solid #fff!important;border-radius:999px!important;
  color:#2b1452!important;
}

#dumpGo::before,#dumpGo::after,.egg::before,.egg::after,#home #dumpGo::before,#home #dumpGo::after{display:none!important;content:none!important}
#dumpGo, #home #dumpGo{overflow:visible!important}

#logo .logoimg{content:url(home-logo-o.png?v=7733q6)!important}

/* short phones: less pull so tiles stay under logo; still overlap soft fade */
@media (max-height:1000px){
  #home .bigbtns.hpg{transform:translateY(-100px)!important}
}
@media (max-height:900px){
  #home .bigbtns.hpg{transform:translateY(-36px)!important}
  #home #homeHero{height:min(50vh,400px)!important}
}
@media (max-height:820px){
  #hpDots{bottom:calc(env(safe-area-inset-bottom) + 104px)!important}
  #home .bigbtns.hpg{
    transform:translateY(-20px)!important;
    margin-bottom:calc(env(safe-area-inset-bottom) + 136px)!important;
  }
  #home #homeHero{height:min(46vh,360px)!important}
}
@media (max-height:740px){
  #hpDots{bottom:calc(env(safe-area-inset-bottom) + 92px)!important}
  #home .bigbtns.hpg{
    transform:translateY(0)!important;
    margin-bottom:calc(env(safe-area-inset-bottom) + 118px)!important;
  }
  #home #homeHero{height:min(38vh,280px)!important;top:calc(env(safe-area-inset-top) + 72px)!important}
}
@media (max-height:680px){
  #hpDots{bottom:calc(env(safe-area-inset-bottom) + 84px)!important}
  #home .bigbtns.hpg{margin-bottom:calc(env(safe-area-inset-bottom) + 108px)!important}
}
