/* Match the map symbols top screen offset on iPad. */
.quest-ipad-menu .frame{margin-top:24px;}
.quest-ipad-menu .footer-link{
  position:relative;
  left:auto;
  right:auto;
  bottom:auto;
  margin:0 calc(28px + var(--safeR)) 0 calc(28px + var(--safeL));
  padding-bottom:calc(24px + var(--safeB));
}
.bg-map.quest-top-map-host{
  display:block;
  padding:0;
  opacity:1;
}
.bg-map .quest-top-map{
  display:block;
  width:100%;
  height:100%;
  max-height:none;
  overflow:visible;
}
.quest-top-map .prefecture{
  opacity:.35;
}
.quest-top-map .prefecture path,
.quest-top-map .prefecture polygon,
.quest-top-map .prefecture rect{
  fill:#f7fbff;
  stroke:none;
  transition:fill .18s ease;
}
.quest-top-map .prefecture.is-highlighted{
  opacity:0;
}
.quest-top-map .quest-region-glow{
  filter:drop-shadow(0 0 10px rgba(95,221,255,.95))
    drop-shadow(0 0 24px rgba(56,181,255,.85));
}
.quest-top-map .quest-region-glow .prefecture{opacity:1;}
.quest-top-map .quest-region-glow path,
.quest-top-map .quest-region-glow polygon,
.quest-top-map .quest-region-glow rect{
  fill:#fff7b0;
  stroke:none;
}
.quest-top-map [data-map-layer="borders"]{opacity:.35;}
.bg-map.is-region-highlighted [data-map-layer="borders"]{
  display:none;
}
.quest-map-launch{
  position:fixed;
  inset:0;
  z-index:9999;
  pointer-events:none;
}
.quest-map-launch svg{
  position:absolute;
  overflow:visible;
}
/* Keep moving coastlines as vectors rather than enlarging a filtered surface. */
body.quest-map-departing .quest-region-glow{display:none;}
body.quest-map-departing .quest-top-map .prefecture.is-highlighted{opacity:.35;}
.quest-map-launch path,
.quest-map-launch polygon,
.quest-map-launch rect{fill:#fff3a2;stroke:none;}
/* Keep the lake styling used by the All Japan background, even when lit. */
.quest-top-map .prefecture path.sgq-lake,
.quest-map-launch .prefecture path.sgq-lake{
  fill:#527ba5;
  stroke:#466d96;
  stroke-width:.16;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
}
.quest-top-map .quest-region-glow .prefecture path.sgq-lake{
  fill:#527ba5;
  stroke:none;
}
.quest-top-map [data-map-layer="borders"] path,
.quest-top-map [data-map-layer="borders"] polyline,
.quest-top-map [data-map-layer="borders"] line{
  fill:none;
  stroke:rgba(20,53,111,.72);
  stroke-width:.35;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
}
body.quest-map-departing .frame{
  opacity:.35;
  transition:opacity .25s ease;
}
@media(prefers-reduced-motion:reduce){
  .quest-top-map .prefecture,
  .quest-top-map .prefecture path,
  .quest-top-map .prefecture polygon,
  .quest-top-map .prefecture rect{transition:none;}
}
