/*
 * Snowshift V13: eight choices in the board overlay, no page scroll.
 * Regular widths: 2 columns × 4 rows (avoids a long clipped stack).
 * Small portrait / short landscape: 3 + 3 + 2, with wider final cards.
 */
.map-menu[hidden]{display:none}
.map-menu:not([hidden]){
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:auto repeat(4,43px);
  align-content:start;
  column-gap:4px;
  row-gap:3px;
  left:clamp(6px,1vw,16px);
  padding:4px;
  width:min(430px,calc(100% - 12px));
  max-height:calc(100% - 60px);
  overflow:hidden;
}
.map-menu-title{
  grid-column:1/-1;
  grid-row:1;
  margin:1px 3px 2px;
}
.map-option{
  width:100%;
  min-width:0;
  min-height:43px;
  height:43px;
  margin:0;
  padding:3px 5px;
  gap:6px;
  overflow:hidden;
}
.map-option-no{width:25px;height:26px;flex:0 0 25px;font-size:11px}
.map-option-body{min-width:0;gap:2px;flex-direction:column;align-items:flex-start}
.map-option-body strong{
  font-size:10px;
  white-space:normal;
  line-height:1.07;
  overflow-wrap:anywhere;
}
.map-option-body small{
  font-size:8px;
  white-space:normal;
  line-height:1.07;
  overflow-wrap:anywhere;
}
@media(max-width:440px) and (orientation:portrait),
       (max-width:760px) and (orientation:landscape),
       (max-height:450px) and (orientation:landscape){
  .map-menu:not([hidden]){
    grid-template-columns:repeat(6,minmax(0,1fr));
    grid-template-rows:auto repeat(3,40px);
    left:4px;top:45px;
    width:calc(100% - 8px);
    padding:3px;
    max-height:calc(100% - 49px);
    gap:2px;
  }
  .map-menu-title{grid-column:1/-1;grid-row:1;margin:0 2px 0}
  .map-menu-title span{font-size:7px}
  .map-option{
    grid-column:span 2;
    height:40px;min-height:40px;
    margin:0;padding:2px 3px;
    gap:3px;overflow:hidden;
  }
  .map-option-no{width:19px;height:20px;flex:0 0 19px;font-size:9px}
  .map-option-body{min-width:0;gap:1px;flex-direction:column;align-items:flex-start}
  .map-option-body strong{font-size:8px;line-height:1.04;white-space:normal}
  .map-option-body small{font-size:7px;line-height:1.06;white-space:normal}
  .map-option[data-circuit="glass-ice"],
  .map-option[data-circuit="crosswind-ridge"]{
    grid-column:span 3;
    justify-content:flex-start;
  }
  .map-option[data-circuit="glass-ice"] .map-option-body,
  .map-option[data-circuit="crosswind-ridge"] .map-option-body{
    flex-direction:column;align-items:flex-start;gap:1px
  }
  .map-option[data-circuit="glass-ice"] .map-option-body strong,
  .map-option[data-circuit="crosswind-ridge"] .map-option-body strong{font-size:9px}
  .map-option[data-circuit="glass-ice"] .map-option-body small,
  .map-option[data-circuit="crosswind-ridge"] .map-option-body small{font-size:7px}
}
@media(min-width:540px) and (max-height:450px) and (orientation:landscape){
  .map-option-body strong{font-size:10px}
  .map-option-body small{font-size:8px}
  .map-option-no{width:23px;height:23px;flex:0 0 23px}
}
