.world-browser-preview {
 --hud-edge: 14px;
 --hud-top: 12px;
 --hud-tool-size: 45px;
 --hud-tool-gap: 9px;
 --hud-wheel-size: 188px;
 --hud-health-size: 74px;
 --hud-health-top: calc(var(--hud-top) + var(--hud-tool-size) + 12px);
 --hud-icons: url('../assets/ui-world/hud-icons.webp');
 --hud-surface: radial-gradient(ellipse at 45% 0,#515891 0,#28375f 44%,#141a35 100%);
 --hud-border: #a9bafd;
 --hud-text: #edf7ff;
}
:root[data-platform=win32] .world-browser-preview #landscape + #world-app .world-tool-hotbar {
 inset: var(--hud-top) auto auto var(--hud-edge);
 width: max-content;
 max-width: calc(100vw - 2 * var(--hud-edge));
 transform: none;
 flex-wrap: wrap;
 align-items: center;
 gap: var(--hud-tool-gap);
 padding: 0;
 overflow: visible;
 border: 0;
 background: none;
 box-shadow: none;
 backdrop-filter: none;
}
:root[data-platform=win32] .world-browser-preview #world-app .world-tool-hotbar button:nth-child(n) {
 position: relative;
 display: grid;
 place-items: center;
 flex: 0 0 var(--hud-tool-size);
 box-sizing: border-box;
 min-width: var(--hud-tool-size);
 max-width: var(--hud-tool-size);
 min-height: var(--hud-tool-size);
 height: var(--hud-tool-size);
 padding: 0;
 border: 1px solid var(--hud-border);
 border-radius: 50%;
 background: var(--hud-surface);
 color: var(--hud-text);
 box-shadow: inset 0 0 0 3px #141b3baa, inset 0 1px 1px #d2dbff, 0 3px 8px #080b24ab;
}
:root[data-platform=win32] .world-browser-preview #world-app .world-tool-hotbar button[hidden] {display:none}
:root[data-platform=win32] .world-browser-preview #world-app .world-tool-hotbar button[aria-pressed=true] {
 border-color: #ffe7a4;
 background: radial-gradient(circle at 50% 15%,#7a616d,#513d61 56%,#282542);
 box-shadow: inset 0 0 0 2px #1d2241, inset 0 0 0 3px #f5c974a1, 0 0 10px #ffc97072;
}
:root[data-platform=win32] .world-browser-preview #world-app .world-tool-hotbar button:is(:hover,:focus-visible):not(:disabled) {
 border-color: var(--game-focus);
}
:root[data-platform=win32] .world-browser-preview #world-app .world-tool-hotbar button span {
 position: absolute;
 width: 1px;
 height: 1px;
 overflow: hidden;
 clip-path: inset(50%);
 white-space: nowrap;
}
:root[data-platform=win32] .world-browser-preview #world-app .world-tool-hotbar button kbd,
:root[data-platform=win32] .world-browser-preview #world-app .header-right .inventory-shortcut {
 position: absolute;
 z-index: 1;
 top: -3px;
 left: -2px;
 min-width: 16px;
 padding: 0 3px;
 border: 1px solid #91a5df;
 border-radius: 12px;
 background: #171e39;
 color: #f1f7ff;
 font: 750 10px/14px system-ui,sans-serif;
 text-align: center;
 white-space: nowrap;
}
:root[data-platform=win32] .world-browser-preview #world-app .world-tool-hotbar button[aria-pressed=true] kbd {
 border-color: #ffeca5;
 background: #fbe198;
 color: #332741;
}
.world-browser-preview .world-tool-hotbar button[data-quick-tool=none] {--hud-glyph:0}
.world-browser-preview .world-tool-hotbar button[data-quick-tool=watergun] {--hud-glyph:1}
.world-browser-preview .world-tool-hotbar button[data-quick-tool=hammer] {--hud-glyph:2}
.world-browser-preview .world-tool-hotbar [data-flashlight] {--hud-glyph:3}
.world-browser-preview .world-tool-hotbar [data-prism-visor] {--hud-glyph:4}
.world-browser-preview .world-tool-hotbar button[data-quick-tool=rod] {--hud-glyph:5}
.world-browser-preview .world-tool-hotbar button[data-quick-tool=pick] {--hud-glyph:6}
.world-browser-preview .world-tool-hotbar button[data-quick-tool=slingshot] {--hud-glyph:7}
.world-browser-preview .world-tool-hotbar button[data-quick-tool=axe] {--hud-glyph:8}
.world-browser-preview .world-tool-hotbar [data-quick-fish] {--hud-glyph:9}
.world-browser-preview .world-header [data-panel=inventory] {--hud-glyph:10}
.world-browser-preview #world-pause {--hud-glyph:11}
.world-browser-preview .world-header [data-panel=help] {--hud-glyph:12}
.world-browser-preview :is(.world-tool-hotbar button,.header-right button:has(.world-hud-caption))::before {
 content: '';
 width: 30px;
 aspect-ratio: 1;
 background: var(--hud-icons) calc(var(--hud-glyph,9) * 100% / 12) center / 1300% 100% no-repeat;
}
:root[data-platform=win32] .world-browser-preview #world-app .world-health[data-portrait-health]:not([hidden]) {
 top: var(--hud-health-top);
 left: var(--hud-edge);
}
:root[data-platform=win32] .world-browser-preview:has([data-portrait-health]:not([hidden])) {
 --story-objective-top: calc(var(--hud-health-top) + 86px);
}
:root[data-platform=win32] .world-browser-preview[data-radial-tools] {
 --hud-health-top: calc(var(--hud-top) + (var(--hud-wheel-size) - var(--hud-health-size)) / 2);
}
:root[data-platform=win32] .world-browser-preview[data-radial-tools] #landscape + #world-app .world-tool-hotbar {
 width: var(--hud-wheel-size);
 height: var(--hud-wheel-size);
 pointer-events: none;
}
.world-browser-preview[data-radial-tools] .world-tool-hotbar::after {
 content: '';
 position: absolute;
 inset: 12%;
 z-index: -1;
 border: 1px solid #b4c8f270;
 border-radius: 50%;
 box-shadow: 0 0 0 1px #222c5380;
}
:root[data-platform=win32] .world-browser-preview[data-radial-tools] #world-app .world-tool-hotbar button {
 position: absolute;
 top: var(--tool-y, 50%);
 left: var(--tool-x, 50%);
 transform: translate(-50%, -50%);
 pointer-events: auto;
}
.world-browser-preview[data-radial-tools] .world-tool-hotbar [data-quick-tool=none] {--tool-x:50%;--tool-y:12%}
.world-browser-preview[data-radial-tools] .world-tool-hotbar [data-quick-tool=watergun] {--tool-x:86%;--tool-y:38%}
.world-browser-preview[data-radial-tools] .world-tool-hotbar [data-quick-tool=hammer] {--tool-x:72%;--tool-y:81%}
.world-browser-preview[data-radial-tools] .world-tool-hotbar [data-flashlight] {--tool-x:28%;--tool-y:81%}
.world-browser-preview[data-radial-tools] .world-tool-hotbar [data-prism-visor] {--tool-x:14%;--tool-y:38%}
:root[data-platform=win32] .world-browser-preview[data-radial-tools] #world-app .world-health[data-portrait-health]:not([hidden]) {
 left: calc(var(--hud-edge) + (var(--hud-wheel-size) - var(--hud-health-size)) / 2);
}
.world-browser-preview[data-radial-tools] .health-portrait {width:var(--hud-health-size)}
.world-browser-preview[data-radial-tools] .world-health [data-health-note]:not(:empty) {
 position: absolute;
 top: calc((var(--hud-wheel-size) + var(--hud-health-size)) / 2);
 left: calc((var(--hud-health-size) - var(--hud-wheel-size)) / 2);
 width: max-content;
 max-width: var(--hud-wheel-size);
 padding: 4px 8px;
 border-radius: 8px;
 color: var(--hud-text);
 background: #171e39;
}
:root[data-platform=win32] .world-browser-preview #world-app .world-header {
 top: 10px;
 inset-inline: var(--hud-edge);
}
:root[data-platform=win32] .world-browser-preview #world-app .header-right {
 --hud-dock-width: clamp(180px,var(--map-size),190px);
 position: fixed;
 right: max(8px,calc(var(--map-edge) + (var(--map-size) - var(--hud-dock-width)) / 2));
 bottom: calc(var(--map-bottom) + var(--map-size) + 8px);
 display: grid;
 grid-template-columns: repeat(3,minmax(0,1fr));
 width: var(--hud-dock-width);
 container-type: inline-size;
 gap: 4px;
 align-items: flex-start;
}
:root[data-platform=win32] .world-browser-preview:has([data-interplanetary-flight]) #world-app .header-right {
 bottom: var(--map-bottom);
}
:root[data-platform=win32] .world-browser-preview #world-app .header-right button:has(.world-hud-caption) {
 position: relative;
 display: grid;
 grid-template-rows: 21px auto;
 justify-items: center;
 align-content: center;
 gap: 2px;
 min-width: 0;
 width: 100%;
 height: 39px;
 min-height: 39px;
 padding: 3px 1px;
 border: 1px solid var(--hud-border);
 border-radius: 10px;
 background: var(--hud-surface);
 color: var(--hud-text);
 box-shadow: inset 0 1px #d3e2ff70, 0 3px 8px #080b24ab;
}
:root[data-platform=win32] .world-browser-preview #world-app .header-right button[hidden] {display:none}
:root[data-platform=win32] .world-browser-preview #world-app .header-right button:has(.world-hud-caption):is(:hover,:focus-visible) {
 border-color: var(--game-focus);
}
.world-browser-preview .header-right button:has(.world-hud-caption)::before {width:21px}
.world-hud-caption {
 max-width: 100%;
 overflow: hidden;
 font: 650 9.5px/1 system-ui,sans-serif;
 text-overflow: ellipsis;
 white-space: nowrap;
}
@container (max-width: 181px) {
 .world-hud-caption {font-size:9px}
}
:root[data-platform=win32] .world-browser-preview #world-app .header-right .inventory-shortcut {
 top: 3px;
 right: 3px;
 left: auto;
 font-size: 9px;
 line-height: 12px;
}
@media (max-width: 500px) {
 .world-browser-preview {
  --hud-edge: 9px;
  --hud-tool-size: 42px;
  --hud-tool-gap: 7px;
  --hud-wheel-size: 174px;
  --hud-health-size: 68px;
 }
}
@media (pointer: coarse) {
 :root[data-platform=win32] .world-browser-preview #world-app .header-right button:has(.world-hud-caption) {
  min-height: 44px;
 }
}
@media (max-height: 480px) {
 :root[data-platform=win32] .world-browser-preview:has([data-portrait-health]:not([hidden])) {
  --story-objective-top: calc(var(--hud-health-top) + 70px);
 }
}
:root[data-platform=win32] .world-browser-preview[data-radial-tools]:has([data-portrait-health]:not([hidden])) {
 --story-objective-top: calc(var(--hud-top) + var(--hud-wheel-size) + 6px);
}
