/* The map stays visible between the anchored instruments and the selected tile. */
#world-toggle::after, #tile-details>summary::after {
  content:"";width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)
}
#world-toggle .glyph {width:24px;height:24px;color:var(--gold)}
#world-panel {inset:calc(var(--bar) + 8px) 150px auto auto;width:208px;padding:6px;max-height:none;z-index:8}
#world-panel button,.menu-command {
  display:flex;align-items:center;gap:10px;width:100%;min-height:44px;
  padding:7px 11px;background:transparent;border:0;text-align:left
}
#world-panel button:hover,.menu-command:hover {background:var(--raised)}
#world-panel .glyph,.menu-command .glyph {color:var(--gold)}
#world-panel [aria-current=true]::after {content:"✓";margin-left:auto;color:var(--gold)}
#settings-panel {width:min(360px,calc(100% - 16px));padding:16px 18px}
#settings-panel .panel-heading,#menu-panel .panel-heading {border:0}
#settings-panel .panel-name>.seal {display:none}
#settings-panel .setting-line {background:none;border:0;padding:2px 0;flex-wrap:nowrap}
#settings-panel .setting-line label {flex-shrink:0}
#settings-panel .setting-line select {max-width:57%;min-width:0;background:var(--panel);border:0;color:var(--gold);min-height:42px}
#settings-panel #sky-layers fieldset {display:grid;grid-template-columns:1fr 1fr;gap:0 8px;padding:3px 0;border:0;margin:9px 0 0}
#settings-panel #sky-layers legend {font:500 19px var(--serif);color:var(--gold);padding:0}
#settings-panel #sky-layers label {min-height:42px;padding:3px 0;border:0;line-height:1.2;gap:7px}
#settings-panel #sky-layers label .glyph {display:none}
#settings-panel #sky-layers label input {order:-1;margin:0;width:16px;height:16px;flex:none;accent-color:var(--gold)}
#portrait-preview {margin:3px 0 12px}
#portrait-preview .scholar-portrait {overflow:hidden;border-radius:50%}
#portrait-preview .portrait-face {border:0;transform:scale(1.18);transform-origin:50% 23%}
#portrait-preview .rank-marks {display:none}
#portrait-preview>span {font-size:13px}
#tile-inspector {
  bottom:max(15px,env(safe-area-inset-bottom));left:max(15px,env(safe-area-inset-left));z-index:2;
  width:min(342px,calc(100vw - 24px));max-width:none;max-height:60dvh;overflow:auto;padding:0;
  background:linear-gradient(110deg,#1b2c3afa,#101e2cfa);border:1px solid #978566;border-radius:5px;
  box-shadow:0 4px 20px #06101a50
}
#tile-details>summary {position:relative;isolation:isolate;list-style:none;display:grid;align-content:center;
  gap:3px;min-height:72px;padding:11px 35px 10px 16px;margin:0}
#tile-details>summary::-webkit-details-marker {display:none}
#tile-details>summary::before {
  content:"";position:absolute;z-index:-1;inset:0 0 0 auto;width:116px;
  background:url('assets/interface/tile-landforms.webp') var(--art-x,0%) center / 700% 155%;
  mask-image:linear-gradient(90deg,transparent,#000a 70%),linear-gradient(black 45%,transparent);mask-composite:intersect
}
#tile-inspector:is([data-ground="moon"],[data-ground=""],[data-ground="desert"]) summary::before {background:none}
#tile-details>summary::after {position:absolute;right:14px;top:27px;color:var(--gold)}
#tile-details[open]>summary::after {transform:rotate(225deg)}
#tile-details #place {font:500 29px/1.05 var(--serif);color:#fff0d7}
#tile-overlays {font:14px/1.3 var(--sans);color:#cfd7d9}
#tile-facts:not(:empty) {padding:0 16px 7px}
.tile-yield {display:grid;grid-template-columns:38px 1.25fr 1fr;align-items:center;gap:8px;
  margin:2px 0 10px;color:var(--muted);font-size:12px}
.tile-yield small {display:block;font:13px/1.5 var(--sans);color:#cad5da}
.tile-yield b {font:500 23px/1.15 var(--serif);color:#fae9c9}
.tile-yield .detail-art {width:36px;height:36px}
.tile-resources,.tile-uses {display:flex;align-items:center;flex-wrap:wrap;gap:6px 17px;margin-bottom:6px;font-size:15px}
.tile-resources>span,.tile-uses>span {display:inline-flex;align-items:center;gap:6px}
.tile-resources .detail-art {width:31px;height:31px}
.tile-uses .seal {width:25px;height:25px}
#tile-details :is(#info,#settlement-status):empty {display:none}
#tile-details :is(#moves,#info,#settlement-status,#dive) {margin:4px 16px 10px}
#tile-details>button {min-height:36px;margin:0 0 9px 12px;color:var(--gold);background:none;border:0}
#tile-details #found {background:var(--gold);color:var(--ink)}
@media(max-width:760px) {
  #game-bar .utilities #world-toggle {padding:0 6px}
  #world-toggle::after {display:none}
  #world-panel {inset:calc(var(--bar) + 8px) 8px auto auto}
  #settings-panel {inset:auto 8px max(8px,env(safe-area-inset-bottom));width:auto;max-height:calc(100dvh - var(--bar) - 17px)}
  #portrait-preview .scholar-portrait {width:44px;height:44px}
  #tile-inspector {bottom:max(8px,env(safe-area-inset-bottom));left:8px;width:min(330px,calc(100% - 16px))}
  body:has(#tile-details[open]) #tile-inspector {max-height:55dvh;z-index:2}
  body:has(:is(#settings-panel,#city-panel,#direction-panel,#menu-panel):not([hidden])) #tile-inspector {display:none}
  #tile-details>summary {min-height:62px}
  #tile-details #place {font-size:26px}
}
