/* SANCHINA R60: align the live .home-action DOM with the approved 3-row home.
   Visual-only patch; no authentication, card state or event logic changes. */
#homeView .home-mode-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-flow:row!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  gap:clamp(7px,1.6vw,14px)!important;
  margin:0 auto clamp(15px,3vw,24px)!important;
  padding:clamp(8px,1.7vw,14px) clamp(8px,1.8vw,18px) 0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
#homeView .home-mode-grid > .home-action{
  appearance:none;
  display:grid!important;
  grid-template-columns:minmax(0,31%) minmax(0,1fr) auto!important;
  align-items:center!important;
  position:relative;
  isolation:isolate;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:clamp(98px,28vw,164px)!important;
  min-height:0!important;
  max-height:164px!important;
  gap:clamp(5px,1.2vw,16px);
  margin:0!important;
  padding:clamp(5px,1vw,12px)!important;
  overflow:hidden!important;
  border:2px solid var(--sc-mode-border,#e8d9e0)!important;
  border-radius:clamp(17px,3.5vw,29px)!important;
  color:#482b32!important;
  text-decoration:none!important;
  text-align:left;
  line-height:1.2!important;
  box-shadow:0 4px 12px #392e251b, inset 0 0 0 2px #ffffff9a!important;
  cursor:pointer;
}
#homeView .home-mode-grid > .home-action-read{
  --sc-mode-border:#efb2ce;
  background:radial-gradient(circle at 95% 8%,#ffcadf 0 5%,transparent 17%),linear-gradient(105deg,#fff5f6 0%,#ffe1ec 57%,#f8d0e6 100%)!important;
}
#homeView .home-mode-grid > .home-action-collection{
  --sc-mode-border:#eac66f;
  background:radial-gradient(circle at 96% 10%,#ffeb9c 0 5%,transparent 18%),linear-gradient(108deg,#fff9dc 0%,#ffedbb 54%,#fff2ce 100%)!important;
}
#homeView .home-mode-grid > .home-action-quiz{
  --sc-mode-border:#d3a8ed;
  background:radial-gradient(circle at 94% 8%,#e7b8fa 0 4%,transparent 18%),linear-gradient(105deg,#fcf3ff 0%,#f3d8fd 50%,#e8cdf6 100%)!important;
}
#homeView .home-action .home-action-art{
  position:relative!important;
  display:block!important;
  align-self:stretch!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  height:100%!important;
  overflow:hidden!important;
  border-radius:clamp(12px,2.3vw,21px);
  line-height:0!important;
}
/* Image assets are not bundled in the supplied source ZIP. When an old
   deployed server lacks one, keep the card visible instead of a grey blank. */
#homeView .home-action-read .home-action-art{background:radial-gradient(circle,#ffe2f2,#ffd2e3)}
#homeView .home-action-collection .home-action-art{background:radial-gradient(circle,#fff6d6,#ffe6a0)}
#homeView .home-action-quiz .home-action-art{background:radial-gradient(circle,#f2d9ff,#e2ccf8)}
#homeView .home-action-art-illustration::before{
  position:absolute;inset:0;display:grid;place-items:center;
  font-size:clamp(36px,8vw,70px);line-height:1;pointer-events:none;
}
#homeView .home-action-read .home-action-art-illustration::before{content:'📖'}
#homeView .home-action-collection .home-action-art-illustration::before{content:'🃏'}
#homeView .home-action .home-action-art img{
  display:block!important;
  position:relative!important;z-index:1!important;
  width:100%!important;
  max-width:100%!important;
  height:100%!important;
  max-height:100%!important;
  min-height:0!important;
  object-position:center!important;
  object-fit:contain!important;
  border:0!important;
  margin:0!important;
  padding:0!important;
}
#homeView .home-action .home-action-stage-art img{object-fit:cover!important}
#homeView .home-action .home-action-copy{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  gap:clamp(3px,.5vw,9px);
  min-width:0!important;
  max-width:100%!important;
  width:auto!important;
  height:auto!important;
  overflow:hidden!important;
  text-shadow:none!important;
  line-height:1.2!important;
}
#homeView .home-action .home-action-copy strong{
  display:block!important;
  max-width:100%!important;
  font-size:clamp(13px,2.85vw,23px)!important;
  line-height:1.18!important;
  color:#572328!important;
  font-weight:950!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
#homeView .home-action .home-action-copy small{
  display:block!important;
  max-width:100%!important;
  font-size:clamp(10px,2.35vw,17px)!important;
  line-height:1.28!important;
  font-weight:850!important;
  color:#513637!important;
  overflow-wrap:anywhere!important;
}
#homeView .home-action .home-action-cta{
  position:relative!important;
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  flex-shrink:0!important;
  gap:3px!important;
  min-height:clamp(36px,8vw,58px)!important;
  min-width:0!important;
  width:auto!important;
  max-width:100%!important;
  margin:0!important;
  padding:clamp(5px,1vw,12px) clamp(7px,1.5vw,18px)!important;
  border:3px solid #fff!important;
  border-radius:999px!important;
  background:#06c755!important;
  color:#fff!important;
  font-size:clamp(11px,2.2vw,18px)!important;
  font-weight:950!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  text-shadow:none!important;
  box-shadow:0 3px 10px #078d5450!important;
}
#homeView .home-action .home-action-stage-pill{
  position:absolute!important;
  z-index:4!important;
  top:2px!important;
  left:2px!important;
  display:inline-flex!important;
  align-items:center!important;
  border-radius:999px!important;
  background:#e63393!important;
  color:#fff!important;
  padding:4px 7px!important;
  font-size:clamp(10px,2vw,15px)!important;
  font-weight:950!important;
  line-height:1.1!important;
}
#homeView .home-action .home-action-art-fallback{
  display:none;
}
#homeView .home-action .home-action-stage-art.no-image .home-action-art-fallback{
  display:grid;
  place-items:center;
  width:100%;height:100%;
  background:linear-gradient(140deg,#e7b8f5,#d8e7ff);
  color:#9264a5;font-size:40px;font-weight:900;
}
#homeView .home-action .home-action-stage-art.no-image img{display:none!important}
#homeView .home-action:focus-visible{outline:3px solid #009b62;outline-offset:3px}
#homeView .home-action:active{transform:scale(.992)}
@media(max-width:375px){
 #homeView .home-mode-grid > .home-action{grid-template-columns:minmax(0,30%) minmax(0,1fr) auto!important;gap:4px;padding:4px!important}
 #homeView .home-action .home-action-cta{padding:6px!important;font-size:10px!important}
 #homeView .home-action .home-action-copy strong{font-size:12px!important}
 #homeView .home-action .home-action-copy small{font-size:10px!important}
}
@media(prefers-reduced-motion:reduce){#homeView .home-action{transition:none!important}}
