#fieldPanel:has(#streetMap:not([hidden])){
  z-index:8;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;box-sizing:border-box;
  width:min(61rem,calc(100vw - 2.2rem),calc((100dvh - 13.4rem)*var(--atlas-aspect,1.47)));max-width:none;max-height:94dvh;
  padding:clamp(.85rem,1.75vw,1.45rem);overflow:auto;background:#f2ecdc;color:#203e41;
  border:1px solid #d9c89e;border-radius:1.15rem;box-shadow:0 0 0 150vmax #112c32ad,0 1.4rem 4rem #081c24a8;backdrop-filter:none;
}
#fieldPanel:has(#streetMap:not([hidden])) :is(#tag,#body,#choices,#sayChoice){display:none!important}
#fieldPanel:has(#streetMap:not([hidden])) #title{
  margin:0 3.4rem .78rem 0;font-family:Georgia,'Times New Roman',serif;font-size:clamp(1.65rem,3vw,2.55rem);font-weight:normal;line-height:1.06;letter-spacing:-.045em;color:#173f44
}
#game #fieldPanel:has(#streetMap:not([hidden])) .close{
  position:absolute;top:.8rem;right:.85rem;display:grid;place-items:center;width:2.55rem;height:2.55rem;border:1px solid #abb1a0;border-radius:50%;background:transparent;color:#31504e;font-size:1.45rem
}
#game #fieldPanel:has(#streetMap:not([hidden])) .close:hover{background:#e0dbc6}
#streetMap:not([hidden]){display:block;margin:0;padding:0;width:100%;height:auto;cursor:default;border-radius:0;touch-action:manipulation}
.atlas-bar{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:0 0 .66rem}
.atlas-sector,.atlas-yana{display:inline-flex;align-items:center;gap:.43rem}
.atlas-sector{position:relative;color:#355755;font-size:.84rem;font-weight:650}
.atlas-sector>svg{width:1.1rem;flex:none}
.atlas-sector select{
  cursor:pointer;color:#203f40;font:inherit;border:1px solid #b4b7a6;border-radius:.48rem;background:#faf6e9;padding:.45rem 1.85rem .45rem .62rem;appearance:none;max-width:100%;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23456764' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position:right .55rem center;background-repeat:no-repeat
}
#game button.atlas-yana{min-height:2.2rem;border-radius:.52rem;border:1px solid #284e4e;background:#244f50;color:#fff3d6;font-weight:650;font-size:.84rem;padding:.37rem .7rem;box-shadow:none}
#game button.atlas-yana:hover{background:#326461;border-color:#326461}
.atlas-frame{position:relative;overflow:hidden;isolation:isolate;width:100%;aspect-ratio:var(--map-ratio);border:1px solid #46645c;border-radius:.48rem;background:#28535a}
.atlas-frame::after{position:absolute;content:"";inset:.48rem;border:1px solid #dccb9e70;pointer-events:none;z-index:2}
.atlas-sheet{display:block;width:100%;height:100%;overflow:hidden;touch-action:manipulation}
.atlas-destination{cursor:pointer;outline:none}
.atlas-outline{stroke:transparent;stroke-width:1.2;pointer-events:none;transition:stroke .12s}
.atlas-destination:is(:hover,:focus-visible) .atlas-outline{stroke:#ffe6a1}
.atlas-destination:is(:hover,:focus-visible) .atlas-region-label text{fill:#ffe09b;stroke:#153d42}
.atlas-destination:is(:hover,:focus-visible) .atlas-detail-bg{fill:#32413b;stroke:#fff1a9}
.atlas-destination:focus-visible .atlas-outline,.atlas-destination:focus-visible .atlas-detail-bg{stroke-width:1.5;stroke:#fff3ae}
.atlas-compass{position:absolute;top:4%;right:3%;pointer-events:none;width:clamp(1.25rem,3.7%,2.15rem);display:grid;justify-items:center;gap:.1rem;line-height:1;color:#f0ddb5}
.atlas-compass span{font:600 clamp(.58rem,1vw,.83rem) Georgia,serif}
.atlas-compass svg{display:block;width:100%}
.atlas-rotated .atlas-compass svg{transform:rotate(47deg)}
.atlas-scale{position:absolute;bottom:4.3%;left:3%;color:#f3e3bb;pointer-events:none;min-width:1rem;text-align:center;font:500 clamp(.54rem,.8vw,.7rem) system-ui,sans-serif}
.atlas-scale i{height:.32rem;display:block;background:linear-gradient(90deg,#e9d7ae 50%,#30565a 50%);border:1px solid #d8c69f;margin-bottom:.08rem}
#streetMap{container-type:inline-size}
#game:has(#fieldPanel[open] #streetMap:not([hidden])) #welcome{visibility:hidden}
.atlas-foot{display:flex;align-items:center;justify-content:space-between;gap:.55rem;margin:0 .12rem;font-size:.83rem;line-height:1.3;color:#395654}
.atlas-hint,.atlas-key{display:flex;gap:.45rem;align-items:center}
.atlas-hint{align-items:flex-start;height:2.7em;overflow:auto;scrollbar-gutter:stable;margin:.53rem .12rem .26rem;font-size:.86rem;line-height:1.32;color:#294c4d}
.atlas-hint svg{flex:none;width:1rem;height:1rem;margin-top:.07rem}
.atlas-key{min-width:0;color:#24455d;font-size:.79rem;font-weight:650}
.atlas-key i{flex:none;width:1.02rem;height:1.02rem;border-radius:50%;background:#214b77;border:1.5px solid white;box-shadow:0 0 0 1px #7394a8;position:relative}
.atlas-key i:before{content:"";position:absolute;inset:17% 23%;background:white;clip-path:polygon(50% 0,100% 100%,50% 74%,0 100%)}
.atlas-destination[aria-current="location"] .atlas-outline{stroke:#8bc5e7;stroke-width:1;stroke-dasharray:2 1}
.atlas-destination[aria-pressed="true"] .atlas-outline{stroke:#ffe0a1;stroke-width:1.2;stroke-dasharray:none}
.atlas-destination[aria-pressed="true"] .atlas-detail-bg{fill:#315551;stroke:#ffe0a1}
#streetMap :is(select,button):focus-visible,#fieldPanel:has(#streetMap:not([hidden])) .close:focus-visible{outline:3px solid #b07132;outline-offset:2px}
@media(max-width:620px){
  #fieldPanel:has(#streetMap:not([hidden])){width:min(32rem,calc(100vw - 1rem));padding:.83rem;border-radius:.9rem}
  #fieldPanel:has(#streetMap:not([hidden])) #title{margin-bottom:.78rem}
  #game #fieldPanel:has(#streetMap:not([hidden])) .close{width:2.75rem;height:2.75rem;top:.42rem;right:.55rem}
  .atlas-sector>span,.atlas-sector>svg{display:none}
  .atlas-sector select,#game button.atlas-yana{min-height:2.75rem;font-size:.79rem}
  .atlas-foot{flex-wrap:wrap;gap:.22rem .75rem;font-size:.8rem}
  .atlas-frame::after{inset:.3rem}
  .atlas-key{font-size:.72rem}
}
@media(max-height:530px) and (min-width:621px){
  #fieldPanel:has(#streetMap:not([hidden])){width:min(45rem,calc(100vw - 1rem));padding:.55rem .83rem;max-height:96dvh}
  #fieldPanel:has(#streetMap:not([hidden])) #title{font-size:1.55rem;margin-bottom:.35rem}
  .atlas-frame{aspect-ratio:auto;height:clamp(12rem,calc(100dvh - 9rem),27rem)}
  .atlas-foot,.atlas-bar{margin-top:.25rem;padding-bottom:.3rem}
}

#game button.atlas-expedition{min-height:2rem;margin-left:auto;align-self:center;padding:.3rem .7rem;border:1px solid #928469;border-radius:.5rem;background:#e8dfc8;color:#284b48;font-size:.82rem}
#game button.atlas-expedition:hover{background:#dcd1b7}
@media(max-width:620px){#game button.atlas-expedition{min-height:2.65rem}}
#game #horizonGate{display:block;pointer-events:auto;margin-top:.4rem;font-size:.8rem;color:var(--gold)}
#game #mapSize{display:none}
#fieldPanel:has(#streetMap:not([hidden])){border-radius:4px;box-shadow:0 .6rem 2.2rem #0d232c4f}
#game #fieldPanel:has(#streetMap:not([hidden])) :is(.close,#mapSize){border-radius:3px;width:2.05rem;height:2.05rem;top:.65rem}
@media(min-width:720px) and (min-height:510px){
  #game #fieldPanel:has(#streetMap:not([hidden])) #mapSize{position:absolute;right:3.16rem;display:grid;place-items:center;color:#31504e;padding:0;background:transparent;border:1px solid #abb1a0}
  #fieldPanel:has(#streetMap:not([hidden])):not(.wide-map){
    inset:auto clamp(.75rem,2vw,1.6rem) clamp(2.1rem,5vh,3.4rem) auto;transform:none;
    width:min(39rem,53vw,calc((100dvh - 11rem)*var(--atlas-aspect,1.47)));padding:.85rem;
  }
  #fieldPanel:has(#streetMap:not([hidden])) #title{margin-right:6rem}
}

.atlas-travel{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:.45rem;border-top:1px solid #978b6b66;padding:.45rem .1rem 0;margin-top:.35rem}
.atlas-travel span{display:flex;align-items:center;min-height:2.6em;font-size:.85rem;line-height:1.25;font-weight:650;color:#233b39}
#game .atlas-travel button{font-size:.8rem;border:1px solid #516e61;border-radius:2px;padding:.34rem .52rem;background:#21504c;color:#fff8e6}
#game .atlas-travel button:last-child{background:transparent;color:#29403b}
#game .atlas-travel button:disabled{opacity:.49;cursor:default}
@container (max-width:460px){
  .atlas-hint{height:4em;font-size:.8rem}
  .atlas-travel{grid-template-columns:1fr 1fr;row-gap:.2rem}
  .atlas-travel span{grid-column:1/-1;min-height:1.4em}
  .atlas-foot{flex-wrap:nowrap}
  #game .atlas-expedition{flex:none}
}
@container (max-width:315px){.atlas-hint{height:5.35em}}
