/* Desktop uses the main-menu textures from L2UI_NewTex. Each atlas cell is 48px. */
.pc-native-menu,.pc-menu-return,.shot-tray {display:none}
.mobile-hud main.in-world #game-menu .pc-menu-return {display:none}
.pc-Einhasad {--atlas-x:-0;--atlas-y:-0}
.pc-PrivateShopFind {--atlas-x:-1;--atlas-y:-0}
.pc-AdenaCalculate {--atlas-x:-2;--atlas-y:-0}
.pc-TeleportMap {--atlas-x:-3;--atlas-y:-0}
.pc-Character {--atlas-x:-4;--atlas-y:-0}
.pc-Inventory {--atlas-x:-5;--atlas-y:-0}
.pc-Action {--atlas-x:-6;--atlas-y:-0}
.pc-Skill {--atlas-x:-7;--atlas-y:-0}
.pc-Quest {--atlas-x:-0;--atlas-y:-1}
.pc-Clan {--atlas-x:-1;--atlas-y:-1}
.pc-Map {--atlas-x:-2;--atlas-y:-1}
.pc-PersonalConnection {--atlas-x:-3;--atlas-y:-1}
.pc-Post {--atlas-x:-4;--atlas-y:-1}
.pc-InstancedZone {--atlas-x:-5;--atlas-y:-1}
.pc-PartyMatch {--atlas-x:-6;--atlas-y:-1}
.pc-TimeZone {--atlas-x:-7;--atlas-y:-1}
.pc-Olympiad {--atlas-x:-0;--atlas-y:-2}
.pc-Dethrone {--atlas-x:-1;--atlas-y:-2}
.pc-Macro {--atlas-x:-2;--atlas-y:-2}
.pc-Option {--atlas-x:-3;--atlas-y:-2}
.pc-Bbs {--atlas-x:-4;--atlas-y:-2}
.pc-MovieRec {--atlas-x:-5;--atlas-y:-2}
.pc-ShortcutAssign {--atlas-x:-6;--atlas-y:-2}
.pc-Etc {--atlas-x:-7;--atlas-y:-2}
html:not(.mobile-hud) .pc-icon,
html:not(.mobile-hud) #world-hud #hud-dock i.pc-icon {
  --size:40px;display:block;width:var(--size);height:var(--size);flex:none;
  background:transparent url('samurai-pc-menu.png') no-repeat;
  background-size:calc(var(--size)*8) calc(var(--size)*4);
  background-position:calc(var(--size)*var(--atlas-x)) calc(var(--size)*var(--atlas-y));
  box-shadow:none;
}
html:not(.mobile-hud) main.in-world #world-controls:not(.window-open) {
  top:auto;right:6px;bottom:clamp(54px,8vh,80px);width:min(900px,65vw);max-height:calc(100dvh - 90px);
  box-sizing:border-box;overflow:auto;border:1px solid #736954;border-radius:0;
  background:linear-gradient(120deg,#322d24f0,#252320ef);box-shadow:inset 0 0 0 1px #242018,0 4px 12px #0007;
}
html:not(.mobile-hud) #game-menu:not(.pc-all-tools)>:not(.pc-native-menu),
html:not(.mobile-hud) #game-menu.pc-all-tools>.pc-native-menu {display:none}
html:not(.mobile-hud) #game-menu.pc-all-tools>.pc-menu-return {display:block;margin:8px}
html:not(.mobile-hud) #game-menu>.pc-native-menu {display:block}
.pc-menu-grid {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding:3px 0 10px}
html:not(.mobile-hud) main.in-world #game-menu .pc-menu-grid button {
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;
  min-height:clamp(46px,8.7vh,70px);min-width:0;padding:2px 3px;margin:0;width:100%;
  border:0;color:#d9cebd;background:transparent;box-shadow:none;
  text-align:center;font:12px/1.15 Tahoma,"Segoe UI",sans-serif;text-shadow:0 1px 2px #080706;
}
.pc-menu-grid button .pc-icon {position:relative;isolation:isolate}
.pc-menu-grid button .pc-icon::after {
  position:absolute;z-index:-1;content:"";inset:0;
  background:url('samurai-pc-menu.png') 0 calc(-3*var(--size))/calc(8*var(--size)) calc(4*var(--size)) no-repeat;
  /* The frame is a separate native texture, painted behind the pictogram. */
}
.pc-menu-grid button .pc-icon::before {
  position:absolute;z-index:1;content:"";inset:0;background:inherit;
}
.pc-menu-grid button:nth-child(n+4) .pc-icon::after {background-position:calc(-1*var(--size)) calc(-3*var(--size))}
html:not(.mobile-hud) #world-hud .shot-tray .shot-placeholder {--size:25px;opacity:.4;filter:grayscale(.8)}
.pc-empty-soul {--atlas-x:-3;--atlas-y:-3}
.pc-empty-spirit {--atlas-x:-4;--atlas-y:-3}
html:not(.mobile-hud) main.in-world #game-menu .pc-native-menu button::before {display:none}
html:not(.mobile-hud) main.in-world #game-menu .pc-menu-grid button:nth-child(-n+3) {color:#ffdf77}
html:not(.mobile-hud) main.in-world #game-menu .pc-menu-grid button:enabled:hover,
html:not(.mobile-hud) main.in-world #game-menu .pc-menu-grid button:focus-visible {color:white;background:#c3ae7920}
.pc-empty {align-self:center;justify-self:center;width:3px;height:3px;transform:rotate(45deg);background:#80745b;box-shadow:0 0 1px #111}
.pc-menu-secondary,.pc-menu-footer {display:flex;flex-wrap:wrap;align-items:center;gap:3px;padding:5px;background:#1e1c1b99;border-top:1px solid #62574444}
.pc-menu-footer {padding-block:8px}
html:not(.mobile-hud) .pc-menu-secondary .pc-icon {--size:22px}
html:not(.mobile-hud) main.in-world #game-menu .pc-native-menu .pc-menu-secondary button {flex-direction:row;gap:6px}
html:not(.mobile-hud) main.in-world #game-menu .pc-native-menu :is(.pc-menu-footer,.pc-menu-secondary) button {
  display:inline-flex;width:auto;min-height:27px;margin:0;padding:4px 12px;border:1px solid #71644d;border-radius:0;
  background:linear-gradient(#39342d,#26231f);color:#e7dcc7;font:11px Tahoma,"Segoe UI",sans-serif;
}
.pc-menu-footer button:nth-last-child(3){margin-left:auto!important}
html:not(.mobile-hud) main.in-world:is(.ui-open,:not(.ui-open))>#world-ui-toggle {
  top:auto;right:5px;bottom:20px;width:42px;height:42px;padding:0;min-height:0;border:0;border-radius:0;box-shadow:none;font-size:0;
  background:transparent url('samurai-pc-menu.png') -84px -126px/336px 168px no-repeat;
}
html:not(.mobile-hud) #world-hud #hud-dock {
  right:48px;bottom:21px;gap:0;padding:0;border:0;box-shadow:none;background:transparent;
}
html:not(.mobile-hud) #world-hud #hud-dock button {
  display:grid;place-items:center;padding:0;min-height:0;min-width:0;width:clamp(25px,2.35vw,39px);height:37px;
  border:0;box-shadow:none;background:none;
}
html:not(.mobile-hud) #world-hud #hud-dock i.pc-icon {--size:clamp(28px,2.4vw,40px)}
html:not(.mobile-hud) #world-hud #hud-dock button:hover i {filter:brightness(1.45) drop-shadow(0 0 2px #e9cb85)}
html:not(.mobile-hud) #world-hud #hud-dock button>span {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
html:not(.mobile-hud) #world-hud #action-bar {
  border-radius:0;border:1px solid #786f5266;background:linear-gradient(90deg,#28231d73,#18161455);
  box-shadow:inset 0 0 1px #c1b19177;overflow:visible;
}
html:not(.mobile-hud) #world-hud #action-bar .action-slot {border-radius:0}
html:not(.mobile-hud) #world-hud .action-slot .empty-slot {opacity:0}
html:not(.mobile-hud) #world-hud .action-slot:hover .empty-slot {opacity:.7}
html:not(.mobile-hud) #world-hud .shot-tray {position:absolute;bottom:calc(100% + 4px);left:0;display:flex;align-items:center;gap:3px}
html:not(.mobile-hud) #world-hud .shot-tray button {
  display:grid;place-items:center;position:relative;padding:0;width:28px;height:28px;min-height:0;
  border:1px solid #9e9078;border-radius:0;background:#28221ce8 url('samurai-slot.png') center/cover;
  color:#cfc3ab;font:10px Tahoma,sans-serif;box-shadow:0 0 0 1px #171411;
}
html:not(.mobile-hud) #world-hud .shot-tray .shot-picker {width:22px;background:transparent;border:0;box-shadow:none;font-size:17px;color:#dac395}
.shot-tray .action-art {width:100%;height:100%}
.shot-tray small {position:absolute;right:1px;bottom:1px;color:white;font:9px Tahoma,sans-serif;text-shadow:1px 1px 1px black,-1px -1px 1px black}
html:not(.mobile-hud) #world-hud .shot-tray button[aria-pressed=true],#shots-panel .shot-list button[aria-pressed=true] {
  border-color:#ffdd77;box-shadow:0 0 3px 1px #ffcc55,inset 0 0 2px #ffda76;
}
.activity-info>div {display:flex;justify-content:space-between;gap:12px;padding:7px 3px;border-bottom:1px solid #69594280;color:#eadfc9;font:13px Tahoma,sans-serif}
.activity-info b {white-space:nowrap;color:#d8bd87}
.shot-list,.store-list,.adena-split {display:grid;gap:5px;font:13px Tahoma,sans-serif}
#world-controls .shot-list button {display:grid;grid-template-columns:32px 1fr;align-items:center;text-align:left;gap:2px 8px}
.shot-list .action-art {grid-row:span 2}
.shot-list small {font-weight:normal;color:#ddcda9}
.adena-split label {display:flex;align-items:center;justify-content:space-between;gap:8px}
.adena-split input {width:60%;box-sizing:border-box}
html:not(.mobile-hud) #world-hud #hud-radar {top:3px;right:4px;border-radius:0;background:#251f18bd}
html:not(.mobile-hud) #radar-view {width:clamp(110px,10.8vw,185px);height:auto;aspect-ratio:1}
html:not(.mobile-hud) #world-hud .hud-status-stack {left:4px;top:2px}
html:not(.mobile-hud) #world-hud #player-status {width:174px;border-radius:0;background:#28231dc9;padding:3px 5px}
html:not(.mobile-hud) #world-hud #hud-name {font:12px Tahoma,sans-serif}
@media(min-width:1100px){
  html:not(.mobile-hud) #world-hud #chat-panel:not(:has(#chat-content[hidden])) {
    left:1px;bottom:22px;width:min(33vw,570px);border-radius:0;background:#211e18a8;box-shadow:inset 0 0 0 1px #82765840;
  }
  html:not(.mobile-hud) #world-hud #chat-log {height:clamp(105px,25vh,260px)}
}

html:not(.mobile-hud) #world-hud #action-bar .action-slots {grid-template-columns:repeat(12,minmax(0,1fr));gap:2px}
html:not(.mobile-hud) #world-hud #action-bar .action-slot {
  --slot:clamp(20px,2.18vw,39px);width:var(--slot);height:var(--slot);padding:1px;
}
html:not(.mobile-hud) #world-hud #action-bar .action-slot .action-art {width:100%;height:100%}
html:not(.mobile-hud) #world-hud .combat-keys button span,
html:not(.mobile-hud) #world-hud .combat-keys .combat-shortcut {display:none}
html:not(.mobile-hud) #world-hud #action-bar .combat-keys button {
  border:1px solid #a79776;border-radius:50%;padding:0;box-shadow:0 0 0 1px #2e2921;
  width:clamp(22px,2.15vw,36px);height:clamp(22px,2.15vw,36px);background:#26231dd9;
}
html:not(.mobile-hud) #world-hud .combat-keys .action-art {border-radius:50%;width:100%;height:100%;background-size:600% auto}
html:not(.mobile-hud) #world-hud .combat-keys .art-attack {background-position:80% 0}
html:not(.mobile-hud) #world-hud .combat-keys .art-pickup {background-position:100% 0;transform:none;margin:0}
html:not(.mobile-hud) #world-hud .combat-keys .art-target {background-position:60% 0}

#pc-sidebar {display:none}
html:not(.mobile-hud) main.in-world #pc-sidebar {
  position:absolute;right:max(4px,env(safe-area-inset-right));top:53%;transform:translateY(-50%);
  display:grid;justify-items:end;gap:4px;pointer-events:auto;--side:clamp(34px,2.8vw,48px);
}
#pc-sidebar #sidebar-links {display:grid;gap:2px}
#world-hud #pc-sidebar button {
  position:relative;display:grid;place-items:center;width:var(--side);height:var(--side);
  padding:0;margin:0;min-width:0;min-height:0;border:1px solid #998d73;border-radius:0;
  background:linear-gradient(135deg,#39352ec9,#1b1917c7 65%,#463d2dca);
  box-shadow:inset 0 0 0 2px #252019bd,0 0 0 1px #221d17;
}
#world-hud #pc-sidebar button:hover,#world-hud #pc-sidebar button:focus-visible {border-color:#f1d492;background-color:#6d604d}
#pc-sidebar #sidebar-links i {display:block;width:100%;height:100%;background:url('samurai-sidebar.png') left center/200% 100% no-repeat}
#pc-sidebar #sidebar-world-trade i {background-position:right center}
#world-hud #pc-sidebar .sidebar-fold {
  width:19px;height:19px;background:#32341e;transform:rotate(45deg);margin:0 calc((var(--side) - 19px)/2) 3px 0;color:#dcc979;
}
#pc-sidebar .sidebar-fold span {transform:rotate(-45deg);font:20px/12px Georgia,serif}
#pc-sidebar .sidebar-fold[aria-expanded=false] span {transform:rotate(135deg)}
#ranking-window output,#world-trade-window output[role=status] {display:block;color:#dfd1b4;margin:8px 0}
#ranking-window .sidebar-ranks {margin:0;max-height:54vh;overflow:auto;padding-left:3em}
#ranking-window li,#world-trade-window li {padding:6px 4px;border-bottom:1px solid #64583d77}
#world-trade-window .trade-controls,#world-trade-window .trade-pages {display:flex;gap:6px;align-items:center}
#world-trade-window [hidden] {display:none!important}
#world-trade-window .trade-list {list-style:none;padding:0;margin:4px 0;max-height:48vh;overflow:auto}
#world-trade-window .trade-list li {display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 8px}
#world-trade-window .trade-list small {grid-column:1}
#world-trade-window .trade-list button {grid-column:2;grid-row:1 / span 2}
#world-trade-window .trade-pages {justify-content:flex-end}
.desktop-hunt {display:none}
html:not(.mobile-hud) #world-hud #action-bar .desktop-hunt:not([hidden]){
  position:absolute;left:calc(100% + 5px);right:auto;bottom:7px;width:145px;height:154px;
  display:block;padding:0;border:0;background:none;pointer-events:none;transform-origin:bottom left
}
html:not(.mobile-hud) #action-bar .desktop-hunt button{
  position:absolute;display:grid;place-items:center;pointer-events:auto;min-width:0;min-height:0;margin:0;
  padding:0;border:0;border-radius:50%;outline-offset:0;box-shadow:none;background:transparent;transform:translate(-50%,-50%);
}
html:not(.mobile-hud) #action-bar .desktop-hunt .hf-art{
  display:block;pointer-events:none;background-image:url('hunt-wheel.webp');background-repeat:no-repeat;
}
html:not(.mobile-hud) #action-bar .desktop-hunt .hunt-main{
  left:52px;top:77px;width:76px;height:76px;background:transparent url('hunt-wheel.webp') 0 -162px no-repeat;
}
html:not(.mobile-hud) #action-bar .desktop-hunt .hunt-main::after{
  content:'';position:absolute;width:64px;height:64px;background:transparent url('hunt-wheel.webp') -76px -162px no-repeat
}
html:not(.mobile-hud) #action-bar .desktop-hunt .hunt-main.hunt-attacking::after{background-position-x:-140px}
html:not(.mobile-hud) #action-bar .desktop-hunt .hunt-main[aria-pressed=true]::after{background-position-x:-204px}
html:not(.mobile-hud) #action-bar .desktop-hunt .hunt-main.hunt-attacking[aria-pressed=true]::after{background-position-x:-268px}
html:not(.mobile-hud) #action-bar .desktop-hunt .hunt-main[aria-pressed=true]::before{
  content:'';position:absolute;width:68px;height:68px;background:transparent url('hunt-active.webp') center/contain no-repeat
}
@media(prefers-reduced-motion:reduce){html:not(.mobile-hud) #action-bar .desktop-hunt .hunt-main[aria-pressed=true]::before{animation:none;background:#e7933c4d;border-radius:50%;width:57px;height:57px}}
html:not(.mobile-hud) #action-bar .desktop-hunt button:hover:not(:disabled){filter:brightness(1.25)}
html:not(.mobile-hud) #action-bar .desktop-hunt button:focus-visible{outline:2px solid #ffda7a}
html:not(.mobile-hud) #action-bar .desktop-hunt button:disabled{opacity:.66}
html:not(.mobile-hud) #action-bar .desktop-hunt .hunt-options{left:9px;top:77px;width:26px;height:26px;z-index:1}
html:not(.mobile-hud) #action-bar .hunt-options i{transform:scale(.85)}
html:not(.mobile-hud) #action-bar .hunt-wheel{position:absolute;inset:0;pointer-events:none}
html:not(.mobile-hud) #action-bar .hunt-wheel[hidden]{display:none}
html:not(.mobile-hud) #action-bar .hunt-wheel>.hf-art{position:absolute;left:38px;top:2px}
html:not(.mobile-hud) #action-bar .hunt-wheel button{width:35px;height:35px}
html:not(.mobile-hud) #action-bar .hunt-wheel button i{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
html:not(.mobile-hud) #action-bar .hunt-wheel [data-hunt=assist]{left:59px;top:13px}
html:not(.mobile-hud) #action-bar .hunt-wheel [data-hunt=pickup]{left:100px;top:35px}
html:not(.mobile-hud) #action-bar .hunt-wheel [data-hunt=respectful]{left:118px;top:76px}
html:not(.mobile-hud) #action-bar .hunt-wheel [data-hunt=short]{left:105px;top:117px}
html:not(.mobile-hud) #action-bar .hunt-wheel [data-hunt=target]{left:68px;top:139px}
html:not(.mobile-hud) #action-bar .hunt-clock{
  position:absolute;top:111px;left:52px;transform:translateX(-50%);font:10px/12px Tahoma,Arial,sans-serif;
  font-variant-numeric:tabular-nums;white-space:nowrap;color:#eee3c7;text-shadow:1px 1px 2px #000,-1px -1px 2px #000
}
@media(max-width:1250px),(max-height:610px){
  html:not(.mobile-hud) #world-hud #action-bar .desktop-hunt:not([hidden]){transform:scale(.83)}
}
@media(max-width:840px){
  html:not(.mobile-hud) #world-hud #action-bar .desktop-hunt:not([hidden]){left:auto;right:0;bottom:calc(100% + 2px);transform-origin:bottom right}
}
.hf-AutoCircleFrameExpand{width:99px;height:152px;background-position:-0px -0px}
.hf-WinMinButton_Normal{width:29px;height:29px;background-position:-102px -0px}
.hf-WinExpandButton_Normal{width:32px;height:32px;background-position:-133px -0px}
.hf-TargetBTN_Next_Normal{width:38px;height:40px;background-position:-167px -0px}
.hf-TargetBTN_threat{width:38px;height:40px;background-position:-207px -0px}
.hf-TargetBTN_pc{width:38px;height:40px;background-position:-247px -0px}
.hf-TargetBTN_ShotD_Normal{width:36px;height:35px;background-position:-287px -0px}
.hf-TargetBTN_LongD_Normal{width:39px;height:39px;background-position:-102px -42px}
.hf-GetBTNOff_Normal{width:36px;height:36px;background-position:-143px -42px}
.hf-GetBTNON_Normal{width:36px;height:36px;background-position:-181px -42px}
.hf-MannerBTNOff_Normal{width:36px;height:36px;background-position:-219px -42px}
.hf-MannerBTNON_Normal{width:36px;height:36px;background-position:-257px -42px}
.hf-CombatBTNOff_Normal{width:45px;height:45px;background-position:-295px -42px}
.hf-CombatBTNON_Normal{width:47px;height:49px;background-position:-102px -89px}
.auto-skill-icon {position:relative}
.auto-skill-icon::after,.action-slot[data-auto-skill] .action-art::after {
  content:'⟳';position:absolute;right:0;top:0;z-index:2;border-radius:50%;background:#101710e8;
  color:#a6e9a1;font:bold 12px/13px Arial,sans-serif;width:13px;text-align:center;pointer-events:none;
}
.auto-skill-icon.is-auto::after,.action-slot[data-auto-skill="on"] .action-art::after {color:#12230e;background:#76ff51}
.action-slot[data-auto-skill="on"] .action-art,.auto-skill-icon.is-auto {outline:1px solid #89dc67;outline-offset:-1px}
.action-slot[data-auto-skill] .action-art {position:relative}
#world-controls .skill-auto-toggle[aria-pressed=true] {color:#b8f8a8;border-color:#709856}

@media(max-width:900px){
  html:not(.mobile-hud) main.in-world #world-controls:not(.window-open){width:min(650px,calc(100vw - 12px))}
  html:not(.mobile-hud) #world-hud #hud-dock {bottom:5px}
  html:not(.mobile-hud) main.in-world:is(.ui-open,:not(.ui-open))>#world-ui-toggle {bottom:4px}
}

#map-panel .wm-extra {display:contents}
#map-panel .wm-only {display:none}
html:not(.mobile-hud) main.in-world #world-controls.window-open:has(>#map-panel.active-window:not([hidden])) {
  --wm-width:min(var(--wm-w,320px),100vw); --wm-height:min(var(--wm-h,320px),100dvh);
  position:fixed;inset:auto;left:clamp(0px,var(--wm-x,56.7vw),calc(100vw - var(--wm-width)));
  top:clamp(0px,var(--wm-y,32.4vh),calc(100dvh - var(--wm-height)));
  width:var(--wm-width);height:var(--wm-height);min-width:0;max-width:none;max-height:none;
  box-sizing:border-box;margin:0;padding:1px;overflow:hidden;border:1px solid #afa38b;border-radius:0;
  background:#29251e;box-shadow:inset 0 0 0 1px #100e0a,0 2px 6px #000a;transform:none;
}
html:not(.mobile-hud) main.in-world #world-controls.window-open:has(>#map-panel.active-window.wm-full:not([hidden])) {
  inset:8px;width:calc(100vw - 16px);height:calc(100dvh - 16px);
}
html:not(.mobile-hud) main.in-world #world-controls #map-panel.active-window:not([hidden]) {
  position:relative;display:block;box-sizing:border-box;width:100%;height:100%;margin:0;padding:0;
  min-height:0;max-height:none;overflow:hidden;border:0;background:#342f22;font:12px Tahoma,Arial,sans-serif;color:#eee8d7;
}
html:not(.mobile-hud) #world-controls #map-panel {
  & .wm-only {display:block}
  & .map-canvas {position:absolute;inset:0 0 29px;display:block;box-sizing:border-box;width:100%;height:calc(100% - 29px);max-width:none;max-height:none;aspect-ratio:auto;border:0;margin:0;cursor:grab}
  & .map-canvas.dragging {cursor:grabbing}
  & .window-heading {position:absolute;z-index:2;inset:0 0 auto;display:flex;align-items:center;justify-content:center;height:26px;min-height:0;margin:0;padding:0;border:0;border-bottom:1px solid #5b5140;background:linear-gradient(#8b807491,#312a24bc);cursor:move;touch-action:none}
  & .window-heading::before,& .window-heading::after,& .window-heading>button:not(#close-map):not(.wm-expand) {display:none}
  & .window-heading .map-place {position:static;margin:0;padding:0;font:12px Tahoma,Arial,sans-serif;color:white;text-align:center;text-shadow:0 1px 2px black}
  & button.wm-expand,& button#close-map {position:absolute;top:2px;right:2px;width:23px;height:21px;min-width:0;min-height:0;margin:0;padding:0;border:0;background:transparent;font-size:0;box-shadow:none;transform:none}
  & button.wm-expand {right:25px}
  & button#close-map::after,& button.wm-expand::after {display:block;position:static;content:"";margin:auto;width:13px;height:12px;background:url("radar/map-tools.webp") 0 -192px no-repeat;transform:none}
  & button#close-map::before {display:none}
  & button.wm-expand::after {width:15px;height:14px;background-position:0 -224px}
  & .map-controls {position:absolute;left:-3px;top:45%;display:flex;flex-direction:column-reverse;gap:0;margin:0;padding:0;background:none}
  & .map-controls button {width:31px;height:29px;min-width:0;min-height:0;margin:0;padding:0;border:0;background:transparent url("radar/map-tools.webp") 0 -128px no-repeat;font-size:0;box-shadow:none}
  & .map-controls .map-farther {background-position:0 -160px}
  & .map-controls button:disabled {opacity:.45}
  & .map-range,& .map-coordinates,& .map-legend {display:none}
  & .wm-region {position:absolute;left:7px;bottom:32px;pointer-events:none;line-height:19px;text-shadow:1px 1px 2px #000,-1px -1px 1px #000}
  & .wm-region b {font-weight:normal;color:#ffdc77}
  & .wm-time {display:block;color:#fff}
  & .wm-tools {position:absolute;inset:auto 0 0;display:flex;align-items:center;justify-content:center;gap:4px;height:29px;margin:0;padding:0 8px;background:linear-gradient(#37332a,#151410);border-top:1px solid #87775a}
  & .wm-tools button {flex:0 1 64px;width:64px;min-width:0;height:27px;min-height:0;padding:0;margin:0;border:0;box-shadow:none;background:transparent url("radar/map-tools.webp") 0 0 no-repeat}
  & .wm-tools [data-map-tool="group"] {background-position:0 -32px}
  & .wm-tools [data-map-tool="bookmarks"] {background-position:0 -64px}
  & .wm-tools [data-map-tool="info"] {background-position:0 -96px}
  & .wm-tools button:hover,& .wm-tools [aria-expanded=true],& .window-heading button:hover {filter:brightness(1.35)}
  & .wm-tools button:disabled {filter:saturate(.55);opacity:.8}
  & .wm-grip {position:absolute;bottom:1px;right:1px;width:10px;height:10px;cursor:nwse-resize;touch-action:none;background:repeating-linear-gradient(135deg,transparent 0 2px,#cfb988 2px 3px);clip-path:polygon(100% 0,100% 100%,0 100%)}
  & .wm-extra {display:none}
  &[data-drawer="info"] .wm-extra {position:absolute;display:grid;z-index:3;bottom:30px;inset-inline:4px;gap:5px;max-height:calc(100% - 65px);overflow:auto;box-sizing:border-box;padding:8px;border:1px solid #98845f;background:#211f1af5;box-shadow:0 -2px 8px #0008}
  & .wm-extra :is(input,select,button) {min-height:25px;font:12px Tahoma,Arial,sans-serif}
  & .wm-extra .map-legend {display:none}
}

#inventory-panel .di-only {display:none}
html:not(.mobile-hud) main.in-world #world-controls.window-open:has(>#inventory-panel.active-window:not([hidden])) {
  --di-w:min(662px,100vw); --di-h:min(482px,98dvh);
  position:fixed;inset:auto;left:clamp(0px,var(--di-x,calc(100vw - var(--di-w) - 2.4vw)),calc(100vw - var(--di-w)));
  top:clamp(0px,var(--di-y,13vh),calc(100dvh - var(--di-h)));transform:none;box-sizing:border-box;width:var(--di-w);height:var(--di-h);
  min-width:0;max-width:none;max-height:none;overflow:visible;margin:0;padding:0;border:1px solid #918879;border-radius:0;
  box-shadow:0 2px 8px #000a,inset 0 0 0 1px #161514;background:linear-gradient(115deg,#292724f7,#222122f7);
}
html:not(.mobile-hud) main.in-world #world-controls.window-open:has(>#inventory-panel.active-window.di-fold:not([hidden])) {height:38px}
html:not(.mobile-hud) main.in-world #world-controls #inventory-panel.active-window:not([hidden]) {
  --di-atlas:url("inventory-desktop.webp");--di-col:222px;
  box-sizing:border-box;height:100%;width:100%;padding:0 8px 8px;margin:0;position:relative;display:flex;flex-direction:column;
  max-height:none;overflow:visible;border:0;border-radius:0;background:transparent;font:12px Tahoma,Arial,sans-serif;color:#eee9df;
  & [hidden]{display:none!important}
  & .di-only:not([hidden]){display:block}
  & .window-heading {height:38px;min-height:38px;position:relative;display:flex;align-items:center;justify-content:center;margin:0;border:0;border-bottom:1px solid #61594b;
    padding:0;background:linear-gradient(transparent,#221f1d80);touch-action:none;cursor:move}
  & .window-heading::before,& .window-heading::after,& .window-heading>button:not(.di-only):not(#close-inventory){display:none}
  & .window-heading h2{font:16px Tahoma,Arial,sans-serif;color:#ebe8e1;text-shadow:1px 1px 2px #000;padding:0;margin:0;text-align:center}
  & .window-heading button,& .di-align,& .di-trash,& .di-synth {position:absolute;min-width:0;min-height:0;padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background-color:transparent;background-image:var(--di-atlas);background-repeat:no-repeat}
  & .window-heading button{background-size:auto}
  & .window-heading button:hover,& .di-align:hover,& .di-trash:hover,& .di-synth:hover {filter:brightness(1.28)}
  & .window-heading #close-inventory{top:9px;right:0;width:19px;height:19px;background-position:-224px -178px;font-size:0;transform:none}
  & #close-inventory::before,& #close-inventory::after{display:none}
  & .window-heading .di-search{left:3px;top:11px;width:19px;height:19px;background-position:-248px -106px}
  & .window-heading .di-mini{right:25px;top:13px;width:22px;height:17px;background-position:-270px -170px}
  & .di-space{position:absolute;right:50px;color:#dbc9a3;font-size:11px}
  & .collection-body:not([hidden]){position:relative;display:grid;flex:1;min-height:0;overflow:visible;margin:0;padding:2px 0 0;
    grid-template-columns:var(--di-col) minmax(0,1fr);grid-template-rows:27px minmax(0,1fr) 37px;column-gap:6px;row-gap:0;align-content:stretch;align-items:stretch}
  & .collection-body>.di-board{position:relative;grid-area:1/1/4/2;width:222px;height:min(429px,100%);align-self:center;background:var(--di-atlas) 0 0 no-repeat local;overflow:hidden}
  & .di-board button.di-slot,& .di-dyes{position:absolute;width:36px;height:36px;display:grid;place-content:center;min-width:0;min-height:0;padding:0;margin:0;border:1px solid transparent;border-radius:0;box-shadow:none;background:transparent}
  & .di-board .di-slot:hover,& .di-board .di-slot[aria-pressed=true]{border-color:#b7a06b;background-color:#c9b98c14}
  & .di-slot.di-talisman{width:28px;height:27px}
  & .di-dyes{width:21px;height:60px;left:11px;top:24px}
  & .di-board .action-art,& #inventory-items .action-art{width:32px;height:32px;min-width:0;max-width:100%;margin:0}
  & .di-slot.di-talisman .action-art{width:25px;height:25px}
  & .inventory-footer{position:absolute;top:43px;left:12px;font-size:12px}
  &:has(>.collection-body:not([hidden]))>.inventory-footer,& .inventory-modes,& #equipment-view,& .collection-pages,& .collection-search-results,& #bag-tools{display:none}
  &.di-show-dyes:not(.di-fold) #equipment-view:has(.equipment-tattoos:not([hidden])){position:absolute;display:block!important;z-index:4;left:0;top:90px;width:215px;padding:3px;background:#252321;max-height:65%;overflow:auto}
  & #equipment-view .equipment-board,& #equipment-view .equipment-slot-heading{display:none}
  & .collection-body>.collection-tabs{grid-area:1/2;display:flex;align-items:stretch;justify-content:flex-start;gap:1px;margin:0;padding:0 24px 0 5px;min-width:0}
  & .collection-tabs button{position:relative;flex:0 1 54px;height:26px;min-height:0;min-width:0;margin:0;padding:0;border:1px solid #5f574b;border-radius:0;background:linear-gradient(#393532,#1c1b1b);font:12px Tahoma,sans-serif;color:#e9dfcb}
  & .collection-tabs button[aria-pressed=true]{border-color:#ac9064;background:linear-gradient(#524535,#26221b);box-shadow:inset 0 0 2px #c2a16c}
  & .collection-tabs button:nth-child(n+2){font-size:0}
  & .collection-tabs button:nth-child(n+2)::after{content:"";display:block;width:22px;height:17px;margin:auto;background:var(--di-atlas) -224px 0 no-repeat}
  & .collection-tabs button:nth-child(3)::after{background-position:-248px 0}
  & .collection-tabs button:nth-child(4)::after{background-position:-272px 0}
  & .collection-tabs button:nth-child(5)::after{background-position:-296px 0}
  & .collection-tabs button:nth-child(6)::after{background-position:-224px -28px}
  & .collection-tabs button:nth-child(7){display:none}
  &.di-searching .collection-tabs button:nth-child(7){display:block;font-size:10px}
  & .collection-tabs button:nth-child(7)::after{display:none}
  &.di-searching #bag-tools{grid-column:2;position:absolute;z-index:3;top:28px;left:0;right:0;display:flex;padding:5px;background:#272521;border:1px solid #8b795b;gap:3px}
  & #bag-tools :is(input,button,select){min-height:26px;height:26px;margin:0;padding:2px 4px;font:11px Tahoma,sans-serif;min-width:0}
  & #bag-tools input{flex:1}
  &.di-searching #inventory-items{margin-top:37px}
  & #inventory-items{--cell:36px;grid-area:2/2;display:grid;grid-template-columns:repeat(11,minmax(0,1fr));grid-auto-rows:var(--cell);align-content:start;align-items:stretch;
    box-sizing:border-box;height:auto;max-height:none;min-height:0;min-width:0;gap:0;margin:0;padding:2px;
    overflow:auto;scrollbar-gutter:stable;scrollbar-color:#766853 #252320;border:1px solid #726651;box-shadow:inset 0 0 0 2px #171614;
    background-color:#201f1e;background-origin:content-box;background-clip:content-box;
    background-image:linear-gradient(90deg,#49453c 1px,transparent 1px,transparent calc(100% - 2px),#131211 calc(100% - 2px)),linear-gradient(#48443b 1px,transparent 1px,transparent 34px,#141311 34px);
    background-size:calc(100% / 11) var(--cell);background-attachment:local}
  & #inventory-items .collection-tile{box-sizing:border-box;display:grid;place-items:center;position:relative;width:auto;height:var(--cell);min-width:0;min-height:0;
    padding:1px;margin:0;border:1px solid #45413a;border-radius:0;background:linear-gradient(135deg,#282623,#151514);box-shadow:inset -1px -1px #111}
  & #inventory-items .collection-tile[aria-pressed=true]{border-color:#e9c877;box-shadow:inset 0 0 0 1px #aa914f}
  & #inventory-items .collection-empty{position:absolute;inset:45% 4px auto calc(var(--di-col) + 8px);margin:0;padding:5px;text-align:center;color:#e9dcc4;text-shadow:1px 1px #000;background:#242220dd}
  &.bag-list-view #inventory-items{grid-template-columns:1fr;background-image:none}
  &.bag-list-view #inventory-items .collection-tile{display:flex;gap:8px;padding-inline:3px}
  & .di-only.di-stats:not([hidden]) {grid-area:3/2;align-self:center;justify-self:end;margin-right:42px;display:grid;gap:2px;width:128px;text-align:right;font:11px Tahoma,sans-serif}
  & .di-stats span{position:relative;padding:0 4px;height:13px;line-height:13px;border:1px solid #534c40;background:#252326}
  & .di-stats span::before{content:"";position:absolute;right:calc(100% + 4px);width:18px;height:17px;background:var(--di-atlas) -224px -140px no-repeat}
  & .di-stats .di-weight{height:10px;line-height:10px;text-align:center;text-shadow:1px 1px #000;background:linear-gradient(90deg,#a78121 var(--load),transparent var(--load)),linear-gradient(#423c2a,#615d49,#26241e)}
  & .di-stats .di-weight::before{background-position:-255px -140px;transform:scale(.75);transform-origin:top right}
  & .di-synth{grid-area:3/2;position:static;width:38px;height:38px;background-position:-270px -54px}
  & .di-trash{right:0;bottom:0;width:39px;height:38px;background-position:-224px -54px}
  & .di-align{right:4px;top:6px;width:15px;height:15px;background-position:-224px -106px}
  & .collection-detail:not([hidden]){position:absolute;z-index:5;right:calc(100% + 12px);top:28px;width:230px;max-height:calc(100% - 40px);overflow:auto;box-sizing:border-box;
    display:grid;gap:6px;grid-template-columns:32px 1fr;margin:0;padding:9px 19px 9px 8px;background:#252321f7;border:1px solid #96876d;box-shadow:0 2px 8px #000b}
  & .collection-detail strong{font:14px Tahoma,sans-serif;color:#ffdf91}
  & .collection-actions{flex-wrap:wrap}
  & .collection-actions button{min-height:25px;font-size:11px}
  & .di-only.di-close-detail:not([hidden]){display:none}
  &:has(.collection-detail:not([hidden])) .di-only.di-close-detail:not([hidden]){position:absolute;z-index:6;display:block;right:calc(100% + 14px);top:30px;width:19px;height:19px;min-height:0;min-width:0;padding:0;line-height:16px;border:0;background:#292622;color:#dac6a0}
  &.di-inside .collection-detail{left:0;right:auto;width:var(--di-col)}
  &.di-inside .di-close-detail{left:calc(var(--di-col) - 21px);right:auto}
  &.di-fold>.collection-body,&.di-fold>.inventory-footer{display:none}
}
@media (max-height:510px){
  html:not(.mobile-hud) main.in-world #world-controls #inventory-panel.active-window .di-board{overflow-y:auto}
}

html:not(.mobile-hud) #world-controls #inventory-panel.di-dragging :is(.collection-detail,.di-close-detail){pointer-events:none;visibility:hidden}

/* PC shortcut book and its three shortcut rows. */
.pa-tabs,.pa-pages,.pa-lock,.pa-rows{display:none}
html:not(.mobile-hud) .pc-action-art{
  background-image:url("action-palette.webp");background-size:800% 900%;background-repeat:no-repeat;
  border-radius:0;box-shadow:none;width:32px;height:32px;pointer-events:none;
}
html:not(.mobile-hud) main.in-world #world-controls.window-open:has(>#pc-actions-panel.active-window:not([hidden])){
  --pa-w:min(310px,100vw);--pa-h:min(589px,96dvh);
  position:fixed;inset:auto;left:clamp(0px,var(--pa-x,5.45vw),calc(100vw - var(--pa-w)));
  top:clamp(0px,var(--pa-y,7vh),calc(100dvh - var(--pa-h)));transform:none;
  box-sizing:border-box;width:var(--pa-w);height:var(--pa-h);min-width:0;max-width:none;max-height:none;margin:0;padding:0;overflow:hidden;
  border:1px solid #867b69;border-radius:0;background:linear-gradient(115deg,#292725f2,#23211fed);
  box-shadow:inset 0 0 0 1px #191817,0 2px 6px #000b;
}
html:not(.mobile-hud) main.in-world #world-controls #pc-actions-panel.active-window:not([hidden]){
  display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box;overflow:hidden;padding:0 5px 8px;margin:0;
  background:transparent;border:0;border-radius:0;color:#eee;font:12px Tahoma,Arial,sans-serif;
  & .window-heading{position:relative;display:flex;align-items:center;justify-content:center;height:37px;min-height:37px;padding:0;margin:0;border:0;border-bottom:1px solid #615749;background:linear-gradient(0deg,#322e28ba,transparent);touch-action:none;cursor:move}
  & .window-heading::after,& .window-heading::before,& .window-heading button:not(.pa-help):not(#close-pc-actions){display:none}
  & .window-heading h2{padding:0;margin:0;font:16px Tahoma,Arial,sans-serif;color:#eee;text-align:center;text-shadow:0 1px 2px #000}
  & #close-pc-actions,& .pa-help{position:absolute;right:3px;top:4px;width:26px;min-height:26px;height:26px;margin:0}
  & .pa-help{right:26px;font:18px Georgia,serif;color:#ccb990;background:transparent}
  & .pa-help-text{position:absolute;z-index:2;inset:84px 7px auto;padding:10px;margin:0;background:#28251ef7;border:1px solid #92836c}
  & .pa-body{overflow:auto;min-height:0;flex:1;padding:0 5px 6px;scrollbar-width:thin}
  & section{margin:0;padding:0;border:0;background:transparent}
  & h3{margin:8px 0 3px 8px;font:11px/13px Tahoma,Arial,sans-serif;color:#eee}
  & .pa-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));width:100%}
  & .pa-grid>*{box-sizing:border-box;height:36px;width:100%;min-height:0;min-width:0;margin:0;padding:1px;display:grid;place-items:center;overflow:hidden;border:1px solid;border-color:#191819 #4a4541 #4b4844 #181718;border-radius:0;background:#1c1b1b9c;box-shadow:inset 1px 1px 2px #15131276}
  & .pa-grid>button:hover,& .pa-grid>button:focus-visible,& .pa-grid>.pa-selected{border-color:#e0c082;background:#64553b}
  & .pa-grid>button:disabled{opacity:1;filter:saturate(.65) brightness(.78)}
  & [hidden]{display:none!important}
}
html:not(.mobile-hud) main.in-world #world-controls .pa-tabs{
  display:flex;flex:none;gap:1px;box-sizing:border-box;padding:2px;margin:4px 0 0;border:1px solid #514b41;background:#181716;
  & button{flex:1;height:34px;min-height:0;margin:0;padding:0;border:1px solid #49423a;border-radius:0;background:linear-gradient(#39352e,#24211f);
    color:#ddd;font:11px Tahoma,Arial,sans-serif;text-shadow:0 1px 2px #000}
  & button[aria-pressed=true]{background:linear-gradient(#61503b,#342b22 52%,#292623);border-color:#87745c;color:white}
}
html:not(.mobile-hud) #world-hud #action-bar{
  --pa-slot:clamp(22px,2.06vw,36px);--pa-gap:clamp(2px,.23vw,4px);
  border:1px solid #94836a60;padding:3px 4px;gap:4px;background:#25221e26;border-radius:0;box-shadow:none;
  & .action-slots{display:grid;grid-template-columns:repeat(12,var(--pa-slot));column-gap:var(--pa-gap);row-gap:clamp(5px,1.25vh,10px);
    align-content:end;background:transparent}
  & .action-slot{box-sizing:border-box;min-width:0;min-height:0;width:var(--pa-slot);height:var(--pa-slot);margin:0;padding:1px;background:#221d1970;border:1px solid #5f584b9c;border-radius:0;box-shadow:inset 1px 1px 2px #14120f80}
  & .action-slot:has(.empty-slot){background:transparent url('shortcut-row.webp') left center/410% 106% no-repeat;border-color:transparent;box-shadow:none}
  & .action-slot:has(.empty-slot) kbd,& .action-slot .empty-slot,& .combat-keys,& .bar-tools>.action-page{display:none}
  & .action-slot:hover,& .action-slot:focus-visible{outline:1px solid #ceb783;outline-offset:-1px}
  & .pa-pages{display:grid;align-items:center;align-content:space-between}
  & .pa-pages button{width:25px;height:var(--pa-slot);min-height:0;padding:0;border:0;background:none;box-shadow:none;color:#e9dcbb;font:11px/1 Tahoma,Arial,sans-serif;text-shadow:1px 1px #000}
  & .pa-pages button::before,& .pa-pages button::after{content:'⌃';display:block;color:#c9b28b;font:12px/8px Tahoma,sans-serif}
  & .pa-pages button::after{transform:rotate(180deg)}
  & .bar-tools{display:flex;flex-direction:column;align-self:end;gap:2px}
  & .bar-tools>button:not([hidden]):not(.action-page):not(.macro-stop){box-sizing:border-box;position:relative;display:block;flex:none;width:19px;height:20px;min-width:0;min-height:0;padding:0;border:1px solid #8c7d61;border-radius:0;background:linear-gradient(#4a4235,#211e1a);color:#ddcba3;font:15px/1 Tahoma,sans-serif}
  & .bar-tools>.action-edit:not([hidden]):not(.action-page):not(.macro-stop){font-size:0}
  & .action-edit::after{content:'✎';font:14px Tahoma,sans-serif}
  & .pa-lock::before,& .pa-lock::after{content:'';position:absolute;border:1px solid #cebf9e}
  & .pa-lock::before{width:6px;height:6px;top:3px;left:7px;border-bottom:0;border-radius:5px 5px 0 0;transform:translateX(2px)}
  & .pa-lock.pa-locked::before{transform:none}
  & .pa-lock::after{width:9px;height:6px;top:9px;left:4px;background:#756b55}
  &[data-pc-rows="1"] .action-slot:nth-child(-n+24),&[data-pc-rows="2"] .action-slot:nth-child(-n+12),
  &[data-pc-rows="1"] .pa-pages button:nth-child(-n+2),&[data-pc-rows="2"] .pa-pages button:first-child{display:none}
}


html:not(.mobile-hud) #world-hud #action-bar .pa-pages{order:-1}
html:not(.mobile-hud) #world-hud #action-bar[data-pc-rows="1"] .bar-tools{display:grid;grid-template-columns:repeat(2,19px);gap:1px}
html.mobile-hud #world-hud #action-bar :is(.pa-pages,.pa-rows,.pa-lock), html.mobile-hud #world-controls .pa-tabs{display:none!important}
html:not(.mobile-hud) main.in-world #world-controls.window-open:has(>#skills-panel.active-window:not([hidden])){
  --pa-w:min(310px,100vw);--pa-h:min(589px,96dvh);
  position:fixed;inset:auto;left:clamp(0px,var(--pa-x,5.45vw),calc(100vw - var(--pa-w)));top:clamp(0px,var(--pa-y,7vh),calc(100dvh - var(--pa-h)));
  transform:none;box-sizing:border-box;width:var(--pa-w);height:var(--pa-h);max-width:none;min-width:0;max-height:none;
  padding:0 5px 6px;background:linear-gradient(115deg,#292725f2,#23211fed);border:1px solid #867b69;border-radius:0;overflow:auto;
}
html:not(.mobile-hud) main.in-world #world-controls #skills-panel.active-window:not([hidden]){
  width:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#eee;font:12px Tahoma,Arial,sans-serif;
  &>.window-heading{min-height:37px;margin:0;padding:0;justify-content:center;background:none;position:relative}
  &>.window-heading h2{margin:0;font:16px Tahoma,Arial,sans-serif}
  &>.window-heading button:not(#close-skills),&>.window-heading::before,&>.window-heading::after{display:none}
  & #close-skills{position:absolute;right:6px;top:1px}
  & .collection-toolbar{display:flex;flex-wrap:wrap}
  & .collection-toolbar>*{min-width:0;max-width:100%}
  & .collection-body{width:100%;min-width:0;max-width:100%}
}

.sb-book,.sb-find{display:none}
html:not(.mobile-hud) main.in-world #world-controls.window-open:has(>#skills-panel.active-window:not([hidden])){
  --pa-h:min(580px,96dvh);left:clamp(0px,var(--pa-x,26.5vw),calc(100vw - var(--pa-w)));top:clamp(0px,var(--pa-y,8.8vh),calc(100dvh - var(--pa-h)));overflow:hidden;padding:0 5px 5px;
}
html:not(.mobile-hud) main.in-world #world-controls #skills-panel.active-window:not([hidden]){
  height:100%;display:flex;flex-direction:column;box-sizing:border-box;overflow:hidden;
  & .window-heading{flex:none;height:37px;cursor:move;touch-action:none}
  & .window-heading .sb-find{display:block;position:absolute;left:4px;top:4px;width:21px;height:24px;min-height:0;margin:0;font:16px Tahoma;color:#b6a58e;background:none;opacity:0}
  &:hover .sb-find,& .window-heading .sb-find:focus-visible{opacity:1}
  &>.collection-body,&>#skills-summary{display:none!important}
  & .sb-book{display:flex;min-height:0;flex:1;flex-direction:column;font:11px/1.25 Tahoma,Arial,sans-serif;color:#e8e4da}
  & .sb-tabs{display:flex;gap:2px;margin:4px 8px 0;height:22px;flex:none}
  & .sb-tabs button,& .sb-footer button,& .sb-detail-buttons button,& .sb-scroll>div button,& .sb-offer button{
    border:1px solid #776c59;box-shadow:inset 0 0 0 1px #302c25,0 1px 1px #151413;
    border-radius:0;background:linear-gradient(#50483a,#302c24 70%,#302c26);color:#eee7d5;font:11px Tahoma,Arial,sans-serif;
    min-height:0;width:auto;margin:0;padding:2px 8px;text-shadow:0 1px 1px #000}
  & .sb-tabs button{width:31%;background:linear-gradient(#39352f,#201e1b);border-color:#514d45}
  & .sb-tabs button[aria-pressed=true]{border-color:#ac9577;background:linear-gradient(#79624a,#3f3328 50%,#282421)}
  & .sb-work{position:relative;flex:1;min-height:0;display:flex;margin:0 1px;padding:4px 4px 4px 7px;border:1px solid #61594b;box-shadow:inset 0 0 0 2px #29251e;background:#25231ff2}
  & .sb-scroll{width:100%;height:100%;overflow-y:scroll;scrollbar-gutter:stable;padding-right:3px;box-sizing:border-box;scrollbar-color:#81725d #312d24}
  & .sb-group{padding:0 2px 3px;border:1px solid #3b3730;background:#242321;margin:0 0 7px}
  & .sb-group-head{display:flex;align-items:center;gap:5px;width:100%;height:23px;padding:0 0 0 1px;margin:0;border:0;border-radius:0;box-shadow:none;background:none;color:#eee;font:11px Tahoma,Arial,sans-serif;text-align:left}
  & .sb-group-head:before{content:'−';display:grid;place-items:center;width:12px;height:12px;border:1px solid #8c7e6d;box-shadow:inset 0 0 0 1px #392c22;background:linear-gradient(#836957,#3b3028);color:#fff;font:14px/10px Tahoma}
  & .sb-group-head[aria-expanded=false]:before{content:'+'}
  & .sb-grid{display:grid;grid-template-columns:repeat(7,minmax(0,36px));justify-content:center;background:#171815}
  & .sb-tile,& .sb-space{box-sizing:border-box;width:100%;aspect-ratio:1;min-width:0;min-height:0;height:auto;margin:0;padding:1px;position:relative;display:grid;place-items:center;border:1px solid;border-color:#131513 #4c4841 #48453f #151613;border-radius:0;background:#171916;box-shadow:inset 0 0 0 1px #222420}
  & .sb-tile .action-art{width:min(32px,100%);height:auto;aspect-ratio:1;border-radius:0;overflow:hidden}
  & .sb-current,& .sb-tile:hover,& .sb-tile:focus-visible{outline:1px solid #d2b578;outline-offset:-1px;z-index:1}
  & .sb-unavailable .action-art{filter:brightness(.55)}
  & .sb-reuse{position:absolute;bottom:0;right:1px;color:white;background:#121211bd;font:10px Tahoma}
  & .sb-footer{display:grid;place-items:center;height:39px;flex:none}
  & .sb-footer button{width:auto;min-width:114px;height:26px}
  & .sb-detail{position:absolute;bottom:4px;left:4px;right:4px;z-index:3;max-height:85%;overflow:auto;box-sizing:border-box;padding:7px;background:#25231ffb;border:1px solid #94836a;box-shadow:0 2px 7px #000b}
  & .sb-infohead{display:flex;align-items:center;gap:6px;margin-bottom:5px;font-size:12px;color:#edd8a6}
  & .sb-close{width:22px;margin:0 0 0 auto;padding:0;min-height:22px;background:none;color:#ddc9a8;font-size:18px}
  & .sb-detail-buttons,& .sb-filters{display:flex;gap:3px;flex-wrap:wrap;padding:3px 0}
  & .sb-filters input,& .sb-filters select,& .sb-filters button,& .sb-scroll select,& .sb-offer select{font:11px Tahoma;padding:3px;min-height:24px;margin:0;min-width:0;width:auto;max-width:100%}
  & .sb-filters input{flex:1;width:70px}
  & .sb-empty,& .sb-scroll>p{margin:9px 4px;color:#d3c8b4}
  & .sb-scroll>select{width:100%}
  & .sb-offer{display:grid;gap:5px}
  & [hidden]{display:none!important}
}


html:not(.mobile-hud) main.in-world #world-controls #skills-panel.active-window:not([hidden])>.window-heading{
  display:flex;align-items:center;position:relative;border:0;border-bottom:1px solid #605443;border-radius:0;box-shadow:none;
  background:linear-gradient(0deg,#332d26bb,transparent);padding:0;
  & h2{width:100%;padding:0;text-align:center;color:#eeece8;font:16px Tahoma,Arial,sans-serif;text-shadow:0 1px 2px #000}
  &::before,&::after{display:none}
  & #close-skills{margin:0;right:0}
}
html:not(.mobile-hud) main.in-world #world-controls #skills-panel.active-window:not([hidden]) .sb-scroll::-webkit-scrollbar{width:14px}
html:not(.mobile-hud) main.in-world #world-controls #skills-panel.active-window:not([hidden]) .sb-scroll::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#3c3427,#776948);border:1px solid #887a60}

html:not(.mobile-hud) #world-controls #skills-panel .sb-tooltip{
  position:fixed;z-index:10;pointer-events:none;box-sizing:border-box;width:max-content;max-width:min(267px,95vw);max-height:48dvh;overflow:hidden;
  padding:7px 9px;border:1px solid #8c8273;background:linear-gradient(125deg,#282520fa,#151412fa);box-shadow:1px 3px 7px #000a;
  color:#eee4ce;font:12px/1.4 Tahoma,Arial,sans-serif;
  & p{white-space:pre-line;margin:4px 0 0}
  & p:empty{display:none}
}

/* Desktop QuestWnd. The legacy journal remains the touch layout. */
.qb-book {display:none}
html:not(.mobile-hud) main.in-world #world-controls.window-open:has(>#quests-panel.active-window:not([hidden])) {
  --qb-w:min(424px,55vw); --qb-side:min(294px,42vw); --qb-h:min(526px,94dvh);
  position:fixed;box-sizing:border-box;width:var(--qb-w);height:var(--qb-h);max-width:none;max-height:none;
  left:clamp(3px,31.5vw,calc(100vw - var(--qb-w) - var(--qb-side) - 6px));
  top:clamp(3px,15.4vh,calc(100dvh - var(--qb-h) - 3px));right:auto;bottom:auto;
  transform:none;overflow:visible;padding:0;border:1px solid #898071;border-radius:0;
  background:linear-gradient(130deg,#292723f7,#24221ff7);box-shadow:inset 0 0 0 2px #27241f,0 2px 5px #000b;
}
html:not(.mobile-hud) main.in-world #world-controls>#quests-panel.active-window:not([hidden]) {
  display:flex;flex-direction:column;position:relative;box-sizing:border-box;width:100%;height:100%;
  padding:0 6px 3px;border:0;background:none;overflow:visible;color:#e9e4d7;font:11px/1.32 Tahoma,Arial,sans-serif;
  &>.window-heading {position:relative;display:flex;justify-content:center;align-items:center;flex:none;height:37px;margin:0 -5px 2px;
    padding:0;border:0;border-bottom:1px solid #544c3e;background:linear-gradient(#28272488,#282623aa 68%,#343028bb)}
  &>.window-heading h2 {color:#ece9e1;font:16px Tahoma,Arial,sans-serif;text-shadow:0 1px 2px #000;margin:0;padding:0;text-align:center}
  &>.window-heading button:first-child:not(#close-quests) {position:absolute;left:4px;top:5px;opacity:0}
  &>.window-heading:hover button:first-child,&>.window-heading button:focus-visible{opacity:1}
  & #close-quests,& .qb-x {position:absolute;right:4px;top:4px;width:25px;height:25px;padding:0;min-width:0;min-height:0;margin:0;border:0;border-radius:0;background:transparent url(samurai-close.png) center/20px no-repeat;font-size:0;box-shadow:none}
  &>#quests-summary,&>#quests-list,&>.journal-empty,&>#quest-search,&>.quest-destination-filter,&>#completed-quests{display:none}
  &.qb-filtering>#quest-search:not([hidden]),&.qb-filtering>.quest-destination-filter:not([hidden]),&.qb-filtering>#completed-quests {display:block;flex:none;margin:3px 4px;padding:3px 5px;font:12px Tahoma,Arial,sans-serif}
  &.qb-filtering>#completed-quests {max-height:26%;overflow:auto}
  &.qb-filtering .quest-destination-filter input{width:auto}
  & .qb-book{display:flex;flex:1;flex-direction:column;min-height:0;padding:5px 3px 0;border:1px solid #484236}
  & .qb-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;flex:none;margin:1px 6px 0;height:23px}
  & :where(.qb-book) button:where(:not(.qb-x)){min-height:0;min-width:0;margin:0;padding:2px 5px;border:1px solid #716650;
    border-radius:0;background:linear-gradient(#50493d,#322d25 70%,#26241f);box-shadow:inset 0 0 0 1px #25221c;
    color:#eee5d3;font:11px/1.2 Tahoma,Arial,sans-serif;text-shadow:0 1px 1px #111}
  & .qb-tabs button[aria-pressed=true]{border-color:#a59474;border-top-color:#e1c7a5;background:linear-gradient(#8f7258,#40362b 28%,#292722)}
  & .qb-book button:focus-visible{outline:1px solid #f5d08d;outline-offset:-2px}
  & .qb-list{flex:1;min-height:0;overflow-y:scroll;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#7d705a #27231f;
    border:1px solid #61584b;padding:1px;background:repeating-linear-gradient(to bottom,#383633 0 29px,#262523 30px 60px)}
  & .qb-list .qb-group{display:block;width:100%;height:30px;padding:0;background:#31433c var(--qb-group) center/100% 100% no-repeat}
  & .qb-list .qb-group[aria-expanded=false]{background-image:var(--qb-fold)}
  & .qb-row{display:flex;align-items:center;height:30px;padding:0 6px}
  & .qb-row.chosen{background:#6c5d4b}
  & .qb-row .qb-pick,& .qb-row .qb-talk{border:0;background:none;box-shadow:none;text-align:left;height:100%}
  & .qb-row .qb-pick{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-left:28px;background:var(--qb-active) left center/24px no-repeat;color:#dbcaab}
  & .qb-row .qb-talk{width:27px;background:var(--qb-talk) center/23px auto no-repeat}
  & .qb-empty{margin:10px;color:#c8c0b1}
  & .qb-footer{height:27px;display:flex;align-items:center;justify-content:space-between;padding:0 4px;color:#dbcaa9}
  & .qb-footer .qb-tools{background:transparent;border:0;box-shadow:none;color:#c3b59a}
  & .qb-drawer,& .qb-guide{z-index:2;position:absolute;left:100%;top:-1px;box-sizing:border-box;width:var(--qb-side);
    border:1px solid #918773;box-shadow:inset 0 0 0 2px #2a2723,0 2px 5px #0009;background:linear-gradient(120deg,#272522f7,#302c27f7);padding:4px}
  & .qb-drawer:not([hidden]){height:min(445px,var(--qb-h));display:grid;gap:4px;grid-template-rows:31px auto minmax(42px,1.15fr) 19px minmax(31px,auto) 19px minmax(30px,1fr) 32px}
  & .qb-book [hidden]{display:none!important}
  & .qb-drawer-head,& .qb-guide-head{position:relative;display:flex;gap:5px;align-items:center;padding:0 27px 0 3px;color:#dfccab;overflow:hidden}
  & .qb-active{display:inline-block;flex:none;width:24px;height:24px;background:var(--qb-active) center/contain no-repeat}
  & .qb-properties,& .qb-description,& .qb-objectives,& .qb-rewards{
    min-height:0;overflow:auto;padding:5px;border:1px solid #454036;background:#252421c7;scrollbar-width:thin;scrollbar-color:#7d705a #27231f}
  & .qb-properties div+div{margin-top:7px}
  & .qb-description,& .qb-speech{white-space:pre-line;line-height:1.5}
  & .qb-caption{padding:2px;color:#c6b598;align-self:center}
  & .qb-objectives{max-height:76px}
  & .qb-objectives .quest-goals{margin:0;padding:0}
  & .qb-objectives .quest-goals li,& .qb-reward{display:flex;justify-content:space-between;padding:2px;gap:6px}
  & .qb-actions,& .qb-guide-actions{display:flex;align-items:center;justify-content:center;gap:5px}
  & .qb-actions button{flex:1;height:24px;padding:1px 2px!important}
  & .qb-actions button:disabled{opacity:.55}
  & .qb-guide:not([hidden]){display:block;z-index:3;left:calc(100% + var(--qb-side) + 4px);top:16%;
    width:clamp(190px,23vw,400px);max-height:min(320px,70vh);overflow:auto}
  & .qb-guide-head{min-height:28px}
  & .qb-speaker,& .qb-speech,& .qb-guide details{display:block;padding:5px;color:#e3dacb}
  & .qb-guide-actions{justify-content:flex-end;margin:6px 3px}
}
@media(max-width:1600px){
  html:not(.mobile-hud) main.in-world #world-controls>#quests-panel.active-window:not([hidden]) .qb-guide:not([hidden]){left:auto;right:0;top:24%;width:min(350px,96%);background:#292621fa}
}
@media(max-height:450px){
  html:not(.mobile-hud) main.in-world #world-controls>#quests-panel.active-window:not([hidden]) .qb-drawer:not([hidden]){overflow:auto;display:flex;flex-direction:column}
  html:not(.mobile-hud) #quests-panel .qb-drawer>*{flex-shrink:0}
}


html:not(.mobile-hud) main.in-world #quests-panel .qb-list button.qb-group{position:relative;text-align:left;padding-left:33px;color:#ebf0da}
html:not(.mobile-hud) #quests-panel .qb-group::after{content:'';position:absolute;right:12px;top:11px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid #c4d6b1}
html:not(.mobile-hud) #quests-panel .qb-group[aria-expanded=false]::after{transform:rotate(-90deg)}
#quests-panel{--qb-active:url(data:image/webp;base64,UklGRk4DAABXRUJQVlA4TEEDAAAvH8AHEPflKJJtV+n/yZktOwzg3wkucoZ733s23Ea27TSLJyKXKUGRulD5ilSFt98BjiNJcpQ8hbQG/13gjQu8tJy4Yfbg1ratWtnnvCvf3d0ltIwOyOgByqILdyIiJ3Z3d7jcF2AwCAQCQ0FAgyBAYDAYBAWCBsELAsOBAwk/GBICEgEwBMJgCDDSIDjIINfWpQ4aVR3BgQcehCCgkYaEgkYKAiUIVI2AR7g4hsE7tnEMF894wTqbD6zheMgT6piHxSOeYZP8cAyLK0zhEhu42u77X9RQ07UUssvNxoUXI8up9naHoTb57x/xUC6HvmbCrBvACgN+cVjnYakuFG4x7ObawyGOY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CCBgQAJI8AuTt5S4RXCzCMqgjoElahQIp0pGIDHldAFwqAgscVTueCEKNMl7AKAgG6WBcqFBRBBUBUEaDSAGh3ckKd8SWU16TLaBakVNLpSEGlVVJQRIDCKpGqCNBiXQ+6II/K2fPGgpP/hPvE/fM/nO8A);}
html:not(.mobile-hud) #world-hud>#quest-tracker:not([hidden]){
  position:fixed;top:48%;right:60px;box-sizing:border-box;width:236px;max-width:30vw;display:grid;
  grid-template-columns:minmax(0,1fr) auto;grid-template-rows:27px auto auto;
  gap:1px 3px;padding:0 5px 5px;margin:0;pointer-events:auto;background:#252422bd;border:1px solid #625848;
  color:#ddd2bc;font:11px Tahoma,Arial,sans-serif;text-shadow:0 1px 2px #000}
html:not(.mobile-hud) #world-hud>#quest-tracker .qb-notice-heading{grid-row:1;grid-column:1/-1;align-self:center;padding:5px;border-bottom:1px solid #615743;background:linear-gradient(12deg,#292622,#48413855)}
html:not(.mobile-hud) #world-hud>#quest-tracker #clear-quest-tracker{grid-row:1;grid-column:2;justify-self:end;width:21px;height:22px;min-width:0;min-height:0;font-size:0;border:0;box-shadow:none;background:transparent url(samurai-close.png) center/15px no-repeat}
html:not(.mobile-hud) #world-hud>#quest-tracker #quest-tracker-name{grid-row:2;grid-column:1/-1;text-align:right;color:#d6be95;font:11px Tahoma,Arial,sans-serif}
html:not(.mobile-hud) #world-hud>#quest-tracker #quest-tracker-distance{grid-row:3;grid-column:1;text-align:right;color:#c8c4bd;background:none;border:0;box-shadow:none;font:10px Tahoma,Arial,sans-serif}
html:not(.mobile-hud) #world-hud>#quest-tracker #quest-tracker-items{grid-row:3;grid-column:2;font:10px Tahoma,Arial,sans-serif}

html:not(.mobile-hud) main.in-world #world-controls>#quests-panel.active-window:not([hidden]) .qb-guide:has(.qb-portrait):not([hidden]){
  display:grid;grid-template-columns:132px minmax(0,1fr);grid-template-rows:auto minmax(48px,1fr) auto;
  width:min(425px,25vw);padding:4px;column-gap:8px;
  & .qb-speaker-card{grid-column:1;grid-row:1/5;align-self:start;margin:0;border:1px solid #7b6b4f;background:radial-gradient(ellipse at 50% 35%,#655e50,#22211f 80%);overflow:hidden}
  & .qb-portrait{width:132px;height:104px;background-image:url(quest-portraits.webp);background-repeat:no-repeat}
  & figcaption{text-align:center;padding:4px;background:linear-gradient(#524938,#29271f);color:#e6d4ab}
  & .qb-guide-head,& .qb-speech,& details,& .qb-guide-actions{grid-column:2}
  & .qb-guide-head{min-height:24px}
  & .qb-speech{max-height:120px;overflow:auto}
  & .qb-guide-actions{flex-wrap:wrap}
}
@media(max-width:1600px){
  html:not(.mobile-hud) main.in-world #world-controls>#quests-panel.active-window:not([hidden]) .qb-guide:has(.qb-portrait):not([hidden]){width:min(418px,99%);left:auto;right:0}
}
@media(max-width:680px){
  html:not(.mobile-hud) main.in-world #world-controls>#quests-panel.active-window:not([hidden]) .qb-guide:has(.qb-portrait):not([hidden]){grid-template-columns:minmax(0,1fr);& .qb-speaker-card{display:none}&>*{grid-column:1}}
}

