/* PR32: World-independent Experiment Board and one-tap stage shortcuts.
   This is deliberately a navigation pass. Distinct new world artwork is PR33.
   Keep the existing game scene, hand and basket coordinates unchanged. */
#home-stage-shortcuts .home-quick-feature{
  padding:0;min-width:0;overflow:hidden;border-color:#806d4c;
  background:linear-gradient(125deg,#23352f,#172624);
}
#home-stage-shortcuts .home-stage-quick{
  display:flex;align-items:center;gap:10px;width:100%;height:100%;min-height:65px;
  text-align:left;border:0;padding:10px 13px;color:#f1e4ce;background:transparent;
  cursor:pointer;font-family:inherit;
}
#home-stage-shortcuts .home-stage-quick:hover{
  background:#b58f4927;
}
#home-stage-shortcuts .home-stage-quick:focus-visible{
  outline:3px solid #efc77c;outline-offset:-4px;
}
#home-stage-shortcuts .home-stage-quick:disabled{opacity:.52;cursor:not-allowed}
#home-stage-shortcuts .home-stage-quick .feature-icon{
  flex:none;margin:0;font-size:1.6rem;line-height:1;
}
#home-stage-shortcuts .home-stage-details{display:flex;flex-direction:column;gap:3px;min-width:0}
#home-stage-shortcuts .home-stage-details strong{font-size:.87rem;line-height:1.15}
#home-stage-shortcuts .home-stage-details small{font-size:.68rem;color:#b7cbbf;line-height:1.25}
#home-stage-shortcuts .quick-arrow{margin-left:auto;color:#e8cb88;font-size:1.4rem}

/* Worlds and learning stages are changes of CONTEXT on the same page, not
   compulsory intermediate screens. Only real, implemented worlds are enabled. */
.experiment-board-nav{
  flex:0 0 auto;display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);
  align-items:end;gap:14px;padding:10px 12px;border:1px solid #686348;
  background:linear-gradient(115deg,#243330,#172722);border-radius:12px;
}
.experiment-board-nav .map-selector{min-width:0;display:flex;flex-direction:column;gap:6px}
.experiment-board-nav .map-selector-label{
  font-size:.64rem;font-weight:750;letter-spacing:.09em;color:#e2c58e;
}
.map-world-tabs,.map-stage-tabs{display:flex;gap:6px;min-width:0}
.map-world-button,.map-stage-button{
  flex:1 1 0;min-width:0;min-height:43px;border:1px solid #697a6c;
  border-radius:8px;background:#202f2c;color:#f4e9d4;cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:6px;padding:5px 7px;
  font-size:.79rem;white-space:nowrap;line-height:1.1;
}
.map-world-button>span:first-child{font-size:1.15rem;color:#e5c17c}
.map-stage-button .map-stage-icon{font-size:1.15rem;color:#e5c17c}
.map-world-button[aria-pressed="true"],.map-stage-button[aria-pressed="true"]{
  background:#4a5948;border-color:#ebc784;box-shadow:inset 0 0 0 1px #ebc7847f;
}
.map-world-button:hover:not(:disabled),.map-stage-button:hover:not(:disabled){
  background:#536449;border-color:#dfb86e;
}
.map-world-button:disabled,.map-stage-button:disabled{
  opacity:.40;cursor:not-allowed;background:#192522;border-style:dashed
}
.map-world-button:focus-visible,.map-stage-button:focus-visible{
  outline:3px solid #f0cc85;outline-offset:2px;z-index:1
}
#site-levels #level-sections{
  grid-template-columns:repeat(var(--map-cols,5),minmax(0,1fr));
}
#site-levels #level-sections .level-grid{
  grid-template-rows:repeat(var(--map-rows,4),minmax(0,1fr))
}
#site-levels .chapter-group{min-width:0}
#site-levels[data-active-world="opposites"] .map-world-button[aria-pressed="true"]{
  background:#415b63
}
@media (min-width:900px) and (min-height:500px){
  #home-stage-shortcuts .home-quick-feature{padding:0;min-height:43px}
  #home-stage-shortcuts .home-stage-quick{min-height:43px;padding:5px 9px;gap:7px}
  #home-stage-shortcuts .home-stage-quick .feature-icon{font-size:1.22rem}
  #home-stage-shortcuts .home-stage-details strong{font-size:.76rem}
  #home-stage-shortcuts .home-stage-details small{font-size:.62rem}
  #site-levels .experiment-board-nav{
    padding:5px 8px;gap:9px;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)
  }
  #site-levels .map-selector{flex-direction:row;align-items:center;gap:7px}
  #site-levels .map-selector-label{font-size:.57rem;flex:none}
  #site-levels .map-world-tabs,#site-levels .map-stage-tabs{flex:1;gap:3px}
  #site-levels .map-world-button,#site-levels .map-stage-button{
    min-height:32px;padding:3px 5px;font-size:.67rem;gap:4px
  }
  #site-levels .map-world-button>span:first-child,
  #site-levels .map-stage-icon{font-size:.9rem}
  #site-levels .portal-heading p{display:none}
  #site-levels .portal-heading h1{font-size:clamp(1.35rem,2.1vw,2rem)}
  #site-levels #level-sections{
    overflow:auto hidden;scrollbar-width:thin;
    grid-template-columns:repeat(var(--map-cols,5),minmax(0,1fr))
  }
}
@media (min-width:900px) and (min-height:500px) and (max-height:649px){
  #home-stage-shortcuts .home-quick-feature{min-height:36px}
  #home-stage-shortcuts .home-stage-quick{min-height:36px;padding:3px 7px}
  #home-stage-shortcuts .home-stage-quick .feature-icon{font-size:1.05rem}
  #home-stage-shortcuts .home-stage-details strong{font-size:.7rem}
  #home-stage-shortcuts .home-stage-details small{font-size:.56rem}
  #site-levels .experiment-board-nav{padding:3px 5px;gap:5px}
  #site-levels .map-selector-label{font-size:.52rem}
  #site-levels .map-world-button,#site-levels .map-stage-button{
    min-height:27px;padding:2px 4px;font-size:.61rem
  }
  #site-levels .portal-heading{margin:0}
  #site-levels .portal-heading h1{font-size:1.30rem}
  #site-levels .level-star-legend{font-size:.60rem;line-height:1.05}
}
@media (max-width:899px), (max-height:499px){
  .experiment-board-nav{grid-template-columns:1fr;gap:10px}
  .map-world-button,.map-stage-button{min-height:45px}
  #site-levels #level-sections{display:block;overflow:visible}
  #site-levels #level-sections .level-grid{grid-template-rows:none}
}
@media(max-width:520px){
  .map-world-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .map-stage-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .map-stage-button{flex-direction:column;gap:1px;font-size:.68rem;white-space:normal}
  #home-stage-shortcuts{grid-template-columns:1fr;gap:7px}
  #home-stage-shortcuts .home-stage-quick{min-height:55px}
}
@media(prefers-reduced-motion:reduce){
  .map-world-button,.map-stage-button,.home-stage-quick{transition:none!important}
}
