#world{touch-action:none}
body[data-screen=play] #menu{visibility:hidden}
body[data-screen=result] #menu,body[data-screen=pause] #menu{background:#10091e62;visibility:visible;align-items:center;z-index:3}
body:not([data-screen=title]) #title-foot{display:none}
.minor{align-items:center}
.minor a{font-size:12px;color:var(--muted);text-decoration:none}
.minor a:hover{color:var(--gold)}
#load-error:empty{display:none}
.atlas{justify-self:center;align-self:center;width:min(860px,100%);padding:clamp(16px,3vw,31px);background:#21152ff0;border:1px solid var(--line);border-radius:18px;box-shadow:0 20px 100px #0a051abd;position:relative}
.atlas-head,.atlas-world{display:flex;justify-content:space-between;align-items:center;gap:12px}
.atlas h2{margin:0;font-size:clamp(34px,5vw,54px);line-height:1}
#map-total{font-size:.8rem;color:var(--muted);margin:10px 0 15px}
#world-tabs{display:flex;gap:6px;overflow:auto;padding:2px 2px 7px}
#world-tabs button{min-width:max-content;font-size:.74rem;padding:8px 10px}
.atlas-world{border-top:1px solid var(--line);margin:7px 0 12px;padding-top:13px}
.atlas-world h3{font:400 clamp(23px,3.1vw,33px) Georgia,serif;margin:0}
.atlas-world .kicker{margin-bottom:4px}
#world-progress,#gate{font-size:.77rem;color:var(--muted)}
#nodes{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.node{position:relative;display:grid;gap:2px;padding:5px;overflow:hidden;text-align:left;min-width:0;border-radius:8px;background:#2c203b}
.node:not(:disabled){animation:card-in .37s both;animation-delay:calc(var(--i) * 10ms)}
.node svg{display:block;width:100%;height:32px;border-radius:4px;background:linear-gradient(#443050,#93606e)}
.node small{display:flex;justify-content:space-between;padding:0 3px;color:#f3d9bd;font-size:10px}
.node span{color:var(--gold);letter-spacing:.03em}
#siege-hud{position:absolute;inset:0;pointer-events:none}
.siege-info{position:absolute;top:clamp(62px,14vh,108px);left:clamp(14px,4vw,58px)}
.siege-info h2{font-size:clamp(26px,4vw,51px);margin:0;line-height:1;text-shadow:0 3px 20px #22142d}
#counts{color:var(--muted);font-size:.75rem;margin:7px 0}
#field-status{position:absolute;top:clamp(67px,14vh,108px);right:clamp(14px,4vw,58px);display:flex;gap:7px}
#field-status div{display:grid;gap:4px;background:#21152fd9;border:1px solid var(--line);padding:7px 12px;border-radius:8px}
#field-status span{color:var(--gold);font-size:8px;letter-spacing:.18em;font-weight:800}
#field-status strong{font-variant-numeric:tabular-nums;font-size:16px}
#siege-bottom{position:absolute;bottom:42px;left:clamp(14px,4vw,58px);right:clamp(14px,4vw,58px);display:flex;gap:8px;justify-content:space-between;align-items:end;flex-wrap:wrap}
#loadout,#field-actions{display:flex;gap:5px;pointer-events:auto;flex-wrap:wrap}
#loadout button,#field-actions button{font-size:11px;padding:7px 9px}
#loadout button span{color:var(--gold);margin-right:3px}
#controls{margin:0;position:absolute;bottom:18px;left:clamp(14px,4vw,58px);right:14px;color:#e3c9d9;font-size:10px}
#guide{bottom:99px}
#debug-wrap{position:absolute;top:34%;left:12px;z-index:2;display:grid;justify-items:start;gap:4px}
#debug-wrap button{font-size:10px;padding:5px 6px}
#debug{position:static;margin:0;white-space:pre-line}
#dialog-actions button{font-size:13px}
#dialog .feathers i{animation:stamp .35s backwards}
#dialog .feathers i:nth-child(2){animation-delay:.14s}
#dialog .feathers i:nth-child(3){animation-delay:.28s}
@keyframes stamp{0%{transform:scale(1.7) rotate(-25deg);opacity:0}100%{transform:none;opacity:1}}
@keyframes card-in{0%{transform:perspective(240px) rotateX(-25deg);opacity:.3}100%{transform:none;opacity:1}}
body[data-reduced=true] *,body[data-reduced=true] *::before{animation:none!important;scroll-behavior:auto!important}
@media(max-width:650px){
  body[data-screen=map] #menu{padding:66px 12px 22px;align-items:center}
  #nodes{gap:5px}
  .node svg{height:25px}
  #field-status{top:134px;left:14px;right:auto}
  #guide{bottom:135px}
  #siege-bottom{bottom:56px}
  #loadout{max-width:100%;gap:4px}
  #loadout button{max-width:106px}
  #controls{bottom:24px}
}
@media(max-height:510px){#guide{bottom:81px}#siege-bottom{bottom:28px}#controls{bottom:7px}.node svg{height:20px}}
.map-path{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:.52}
body[data-screen=brief] #menu,body[data-screen=records] #menu{align-items:center}
#menu{grid-template-columns:minmax(0,1fr)}
.atlas,#world-tabs{min-width:0;max-width:100%}
body[data-screen=result] #guide,body[data-screen=pause] #guide{visibility:hidden}
@media(max-width:650px){
  .siege-info{top:72px}
  #field-status{top:154px}
}
@media(max-height:510px) and (max-width:650px){
  .siege-info{top:51px}
  #field-status{top:109px}
}
body[data-quality=reduced] .dialog{backdrop-filter:none}
body[data-quality=reduced] :is(.dialog,.atlas){box-shadow:none}
body[data-quality=reduced] :is(.title h1,.siege-info h2){text-shadow:none}
