/*
 * Seven-course selector with no scrolling or added game rows.
 * 3×3 compact selection on phone portrait and short landscape; the seventh
 * option occupies a full row, keeping its new low-grip rule legible.
 */
.map-menu[hidden]{display:none}
.map-menu{width:min(390px,calc(100% - 12px));max-height:min(366px,calc(100% - 62px))}
.map-option{min-height:37px;margin-bottom:2px}
.map-option-body small{white-space:normal;overflow-wrap:anywhere}
@media(max-width:920px) and (orientation:portrait){
  .map-menu:not([hidden]){max-height:calc(100% - 49px);padding:3px}
  .map-menu-title{margin:1px 3px 3px}
  .map-option{height:35px;min-height:35px;margin-bottom:1px}
}
@media(max-width:440px) and (orientation:portrait),
       (max-width:760px) and (orientation:landscape),
       (max-height:450px) and (orientation:landscape){
  .map-menu:not([hidden]){
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-template-rows:auto repeat(3,36px);
    column-gap:3px;
    row-gap:3px;
    align-content:start;
    left:4px;
    top:45px;
    padding:3px;
    width:calc(100% - 8px);
    max-height:calc(100% - 49px);
    overflow:hidden;
  }
  .map-menu-title{grid-column:1/-1;grid-row:1;margin:0 3px 1px}
  .map-menu-title span{font-size:7px}
  .map-option{
    min-width:0;min-height:36px;height:36px;
    margin:0;padding:2px 4px;gap:3px;overflow:hidden
  }
  .map-option-no{width:18px;height:19px;flex:0 0 18px;font-size:8px}
  .map-option-body{min-width:0;gap:1px}
  .map-option-body strong{font-size:8px;line-height:1.04;white-space:normal}
  .map-option-body small{font-size:7px;line-height:1.07;white-space:normal}
  .map-option[data-circuit="glass-ice"]{
    grid-column:1/-1;
    justify-content:center;
    border-top:1px solid #6ef8f5a1
  }
  .map-option[data-circuit="glass-ice"] .map-option-body{
    flex-direction:row;align-items:center;gap:10px
  }
  .map-option[data-circuit="glass-ice"] .map-option-body strong{font-size:10px}
  .map-option[data-circuit="glass-ice"] .map-option-body small{font-size:8px}
}
@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:22px;height:23px;flex:0 0 22px}
}
