/* Only touch devices get the mobile interface. Desktop rules are untouched. */
@media (pointer:coarse) and (hover:none) {
  html.touch-game {overscroll-behavior:none}
  .touch-game body {padding-bottom:170px;overscroll-behavior:none}
  .touch-game .action-bar,.touch-game #weapon-skill-bar,.touch-game .supply-dock,.touch-game footer {display:none!important}
  .touch-game .mobile {position:fixed;display:flex;inset:auto 0 0;height:168px;z-index:4;padding:8px max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));align-items:flex-end;justify-content:space-between;gap:12px;background:linear-gradient(0deg,#07100ee8,transparent);touch-action:none;user-select:none;-webkit-user-select:none;pointer-events:none}
  .touch-game .mobile.blocked {visibility:hidden}
  .mobile button,.mobile-stick {pointer-events:auto;touch-action:none}
  .mobile-stick {position:relative;width:116px;height:116px;flex:0 0 116px;border:2px solid #bda46d80;border-radius:50%;background:radial-gradient(circle,#27342db8 0 31%,#0c1512bf 33% 61%,#bda46d26 63% 66%,#0a110eb8 68%);box-shadow:0 4px 20px #0009,inset 0 0 24px #0008}
  .mobile-stick:before,.mobile-stick:after {content:"";position:absolute;background:#c6b17b24;pointer-events:none}
  .mobile-stick:before {left:14px;right:14px;top:50%;height:1px}
  .mobile-stick:after {top:14px;bottom:14px;left:50%;width:1px}
  .mobile-stick-knob {position:absolute;left:50%;top:50%;width:48px;height:48px;margin:-24px;border:1px solid #d4c08b99;border-radius:50%;background:radial-gradient(circle at 40% 35%,#647064,#29352f 52%,#101815);box-shadow:0 4px 9px #000b;will-change:transform}
  .mobile-stick small {position:absolute;left:0;right:0;bottom:7px;text-align:center;font-size:8px;letter-spacing:2px;color:#d5c594b8}
  .mobile-actions {position:relative;width:244px;height:156px;flex:0 0 244px;pointer-events:none}
  .mobile-actions button {position:absolute;display:flex;align-items:center;justify-content:center;padding:0;min-width:0;min-height:0;border-radius:50%;border:1px solid #c2aa718f;background:radial-gradient(circle at 40% 30%,#5a5e49,#252d25 58%,#101612);box-shadow:0 3px 10px #000b,inset 0 0 0 3px #111a16;color:#f1e7ca;font:bold 16px Georgia,serif;text-shadow:0 2px 3px #000}
  .mobile-actions button:active,.mobile-actions button.held {transform:scale(.94);filter:brightness(1.3)}
  .mobile-actions button:disabled {filter:saturate(.25);opacity:.52}
  .mobile-actions button small {position:absolute;left:50%;bottom:5px;transform:translateX(-50%);font:8px system-ui,sans-serif;letter-spacing:.4px;color:#eee2c6;white-space:nowrap;text-shadow:0 1px 3px #000}
  .mobile-actions .mobile-attack {right:0;bottom:0;width:76px;height:76px;font-size:28px;border-color:#d0ad67;background:radial-gradient(circle at 40% 30%,#9b714b,#583927 58%,#241710)}
  .mobile-actions .mobile-off {right:84px;bottom:0;width:54px;height:54px}
  .mobile-actions .mobile-utility {width:46px;height:46px}
  .mobile-actions .mobile-heal {left:0;top:41px;color:#d8f0d3}
  .mobile-actions .mobile-skill {width:50px;height:50px;background-size:cover;border-color:#80b7b4aa}
  .mobile-skill small {bottom:-13px!important;max-width:65px;overflow:hidden;text-overflow:ellipsis;font-size:7px!important}
  [data-mobile-skill="0"] {left:55px;top:24px}
  [data-mobile-skill="1"] {left:121px;top:3px}
  [data-mobile-skill="2"] {left:187px;top:24px}
  #mobile-interact {left:0;bottom:0}
  #mobile-dash {left:52px;bottom:0}
  .mobile-actions #mobile-hand {left:0;top:-13px;height:32px;width:113px;border-radius:5px;font:9px system-ui,sans-serif}
  .mobile-menus {position:absolute;top:6px;right:8px;display:flex;gap:6px;z-index:2}
  .mobile-menus[hidden] {display:none}
  .mobile-menus button {min-height:44px;padding:8px 12px;font-size:11px;background:#0c171fe8;border-color:#907047;touch-action:manipulation}
  .touch-game .location {padding-right:180px}
  .touch-game #zone-tag {display:none}
  .touch-game .game-shell .overlay {z-index:6;inset:0;overflow:auto;align-items:safe center}
  .touch-game .overlay .dialog {max-height:calc(100dvh - 24px);overflow:auto}
  .touch-game dialog {max-height:calc(100dvh - 20px);overscroll-behavior:contain}
}
@media (pointer:coarse) and (hover:none) and (orientation:landscape) {
  .touch-game body {padding:0;overflow:hidden}
  .touch-game body>header {display:none}
  .touch-game main {padding:0;max-width:none}
  .touch-game .game-shell {position:fixed!important;inset:0!important;width:100%;height:100dvh;max-width:none;min-width:0;margin:0;border:0;border-radius:0;background:radial-gradient(ellipse,#172821,#050c10)}
  .touch-game #game {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(100vw,150dvh);height:auto;aspect-ratio:3/2}
  .touch-game .location {display:none}
  .touch-game .mobile-menus {top:max(8px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right))}
  .touch-game .mobile {height:190px;padding-left:max(24px,env(safe-area-inset-left));padding-right:max(24px,env(safe-area-inset-right));background:none}
}
@media (pointer:coarse) and (hover:none) and (orientation:portrait) and (max-width:400px) {
  .touch-game .mobile {padding-left:8px;padding-right:8px;gap:5px}
  .mobile-stick {width:96px;height:96px;flex-basis:96px}
  .mobile-actions {transform:scale(.94);transform-origin:right bottom;flex-basis:230px}
}
@media (max-width:760px) and (pointer:fine) {.mobile{display:none!important}}

/* Mobile dimensions are CSS pixels, independent of world/canvas resolution. */
@media (pointer:coarse) and (hover:none) {
 .touch-game {--mobile-top:max(8px,env(safe-area-inset-top));--mobile-left:max(12px,env(safe-area-inset-left));--mobile-right:max(12px,env(safe-area-inset-right));--mobile-bottom:max(12px,env(safe-area-inset-bottom))}
 .touch-game .world-caption {display:none}
 .touch-game .mobile {padding:0 var(--mobile-right) var(--mobile-bottom) var(--mobile-left);height:220px;background:none}
 .touch-game .mobile-actions {width:292px;height:214px;flex-basis:292px}
 .touch-game .mobile-actions button {font-size:20px}
 .touch-game .mobile-actions button small {font:10px system-ui;bottom:5px;letter-spacing:0}
 .touch-game .mobile-actions .mobile-attack {width:80px;height:80px;right:8px;bottom:6px;font-size:30px}
 .touch-game .mobile-actions .mobile-skill {width:54px;height:54px;background-size:cover}
 .touch-game .mobile-skill small {display:none}
 .touch-game [data-mobile-skill="0"] {left:110px;top:146px}
 .touch-game [data-mobile-skill="1"] {left:96px;top:80px}
 .touch-game [data-mobile-skill="2"] {left:146px;top:25px}
 .touch-game [data-mobile-skill="3"] {left:216px;top:38px}
 .touch-game .mobile-actions .mobile-utility {width:48px;height:48px}
 .touch-game .mobile-actions .mobile-heal {left:32px;top:87px}
 .touch-game #mobile-dash {left:40px;bottom:12px}
 .touch-game #mobile-interact {left:-16px;bottom:12px}
 .touch-game .mobile-actions .mobile-off {right:0;bottom:93px;width:48px;height:48px}
 .touch-game .mobile-actions #mobile-hand {left:0;top:26px;width:126px;height:44px;font:12px system-ui}
 .touch-game .mobile-stick {width:116px;height:116px;flex-basis:116px;margin:0 0 12px 12px;opacity:.8}
 .touch-game .mobile-menus {position:fixed;top:var(--mobile-top);right:var(--mobile-right);z-index:4}
 .touch-game .mobile-menus button {min-width:48px;min-height:44px;font-size:14px;padding:8px}
 .touch-game dialog:not(.mobile-rotate) {box-sizing:border-box;inset:0;margin:auto;width:calc(100% - var(--mobile-left) - var(--mobile-right));max-width:none;height:calc(100dvh - var(--mobile-top) - var(--mobile-bottom));max-height:calc(100dvh - var(--mobile-top) - var(--mobile-bottom));padding:12px;border-radius:8px;overflow:auto;font-size:16px;overscroll-behavior:contain;touch-action:pan-y}
 .touch-game dialog button,.touch-game dialog select,.touch-game .overlay button,.touch-game .overlay input {min-height:44px;font-size:16px;touch-action:manipulation}
 .touch-game dialog p {line-height:1.5}
 .touch-game dialog kbd,.touch-game .overlay kbd {display:none}
 .touch-game dialog .bag-header,.touch-game dialog .adventure-heading {position:sticky;top:-12px;z-index:3;min-height:56px;height:auto;padding:8px 0;background:#101d28;display:flex;justify-content:space-between;align-items:center;gap:12px}
 .touch-game dialog h2 {font-size:20px}
 .touch-game .mobile-panel-tabs {display:flex;gap:8px;position:sticky;top:44px;z-index:2;background:#101d28;padding:8px 0}
 .touch-game .mobile-panel-tabs button {flex:1}
 .touch-game .mobile-panel-tabs [aria-pressed=true] {border-color:#d6b778;background:#354a4e}
 .touch-game #inventory-dialog .armory-layout,.touch-game #inventory-dialog.crafting-open .armory-layout {display:grid;grid-template-columns:minmax(300px,.85fr) minmax(300px,1.15fr);gap:16px;margin-top:12px}
 .touch-game .armory-layout>section {min-width:0}
 .touch-game #inventory-dialog .bag-body {display:block}
 .touch-game #inventory-dialog #item-detail {display:none}
 .touch-game #inventory-items,.touch-game .bank-grid {display:grid!important;grid-template-columns:repeat(auto-fill,64px)!important;gap:8px!important;align-content:start;justify-content:start;max-height:none!important;overflow:visible!important}
 .touch-game #inventory-items .bag-item,.touch-game .bank-grid .bag-item {width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important;padding:0!important;touch-action:pan-y}
 .touch-game .bag-toolbar {display:flex;flex-wrap:wrap;gap:8px;position:static}
 .touch-game #bag-count {font-size:14px}
 .touch-game #equipment-slots {grid-template-columns:64px minmax(110px,1fr) 64px;grid-template-rows:repeat(5,64px);gap:8px;margin:12px}
 .touch-game #equipment-slots::after {display:none}
 .touch-game #equipment-slots .equipment-slot {width:64px;height:64px;min-height:64px;touch-action:pan-y}
 .touch-game #armor-preview {left:84px;right:84px;top:45px;height:270px}
 .touch-game #character-stats {font-size:16px}
 .touch-game #character-stats small {font-size:13px}
 .touch-game .bank-columns {display:grid;grid-template-columns:1fr 1fr;gap:16px}
 .touch-game .bank-detail {font-size:16px}
 .touch-game #inventory-dialog.crafting-open .soul-panel {padding:12px}
 .touch-game .soul-panel p,.touch-game .soul-preview,.touch-game .soul-services button {font-size:16px}
 .touch-game .soul-slots {gap:12px}
 .touch-game .soul-slot {width:64px;height:64px;min-height:64px;padding:0}
 .touch-game .soul-slot small {display:none}
 .touch-game .soul-circle {max-width:260px}
 .touch-game .soul-craft-button {position:sticky;bottom:0;z-index:1;background:#233948;min-height:48px}
 .touch-game .game-shell .overlay {position:fixed;inset:0;padding:var(--mobile-top) var(--mobile-right) var(--mobile-bottom) var(--mobile-left);z-index:10;align-items:center}
 .touch-game .overlay .dialog {width:min(680px,100%);max-height:100%;overflow:auto;padding:18px;font-size:16px}
 .touch-game #dialog-actions {display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}
 .touch-game #dialog-actions button {width:100%;margin:0;min-height:48px}
 .touch-game .mobile-sheet[open] {display:flex;flex-direction:column;overflow:hidden;background:radial-gradient(ellipse at top left,#243d48,#101d28 65%);color:#e7e4d8;border:1px solid #ae9565;z-index:20}
 .touch-game .mobile-sheet::backdrop {background:#040b12c9}
 .touch-game .mobile-sheet-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;padding-bottom:8px;border-bottom:1px solid #53636b}
 .touch-game .mobile-sheet-heading h2 {overflow-wrap:anywhere}
 .touch-game .mobile-sheet-body {flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 4px;touch-action:pan-y}
 .touch-game .mobile-sheet-actions {display:flex;flex-shrink:0;flex-wrap:wrap;gap:8px;padding-top:8px;border-top:1px solid #53636b}
 .touch-game .mobile-sheet-actions button {flex:1;min-height:48px}
 .touch-game .mobile-sheet .item-description-stats {white-space:pre-line;font-size:16px;line-height:1.55}
 .touch-game .mobile-sheet .item-skill-card p,.touch-game .mobile-sheet .item-skill-card small {font-size:14px;line-height:1.5}
 .touch-game .mobile-sheet .support-socket {min-width:44px;min-height:44px;background-size:contain}
 .touch-game .mobile-comparison {display:grid;grid-template-columns:1fr 1fr;gap:20px}
 .touch-game .mobile-comparison>section {min-width:0}
 .touch-game .mobile-stat-change {padding:12px;background:#263c43;border-left:3px solid #c9ae75}
 .touch-game .mobile-menu-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
 .touch-game .mobile-menu-grid button {min-height:64px;text-align:left}
 .touch-game .mobile-skill-row {padding:12px 0;border-bottom:1px solid #53636b}
 .touch-game .mobile-rotate[open] {position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;padding:32px;background:#0c1823;color:#e7e4d8;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;z-index:100}
 .touch-game .mobile-rotate>div {font-size:72px;color:#d6b778}
 .touch-game #item-menu,.touch-game #item-hover,.touch-game #skill-hover {max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;font-size:16px}
 .touch-game #item-menu button {min-height:44px;font-size:16px}
}
@media (pointer:coarse) and (hover:none) and (max-width:900px) {
 .touch-game #inventory-dialog .armory-layout,.touch-game #inventory-dialog.crafting-open .armory-layout,.touch-game .bank-columns {grid-template-columns:minmax(0,1fr)}
 .touch-game #inventory-dialog[data-mobile-page=bag] .armory-character,.touch-game #inventory-dialog[data-mobile-page=bag] .soul-panel {display:none!important}
 .touch-game #inventory-dialog[data-mobile-page=equipment] .armory-bag {display:none!important}
 .touch-game #bank-dialog[data-mobile-page=bag] .bank-columns>section:nth-child(2),.touch-game #bank-dialog[data-mobile-page=equipment] .bank-columns>section:first-child {display:none}
 .touch-game .armory-character {max-width:480px;width:100%;margin:auto}
 .touch-game #inventory-dialog .soul-panel {max-width:540px;width:100%;margin:auto}
}
@media (pointer:coarse) and (hover:none) and (min-width:901px) {.touch-game .mobile-panel-tabs {display:none}}
@media (pointer:coarse) and (hover:none) and (max-width:600px) {.touch-game .mobile-comparison {grid-template-columns:1fr}}
@media (pointer:coarse) and (hover:none) and (orientation:portrait) {.touch-game .mobile,.touch-game .mobile-menus {visibility:hidden}}
@media (pointer:coarse) and (hover:none) {
 .touch-game .mobile-vitals {position:fixed;left:var(--mobile-left);top:var(--mobile-top);width:180px;z-index:3;pointer-events:none;font:12px system-ui;text-shadow:0 1px 2px #000}
 .mobile-vitals>b {display:block;margin-bottom:4px;color:#e9d5a2}
 .mobile-vitals>div {height:18px;position:relative;background:#111c24;border:1px solid #817860;margin:3px 0;border-radius:3px;overflow:hidden}
 .mobile-vitals i {position:absolute;inset:0 auto 0 0;background:#bb3d4c}
 .mobile-vitals .mobile-mana i {background:#287db4}
 .mobile-vitals span {position:relative;display:block;text-align:center;font-size:12px}
 .mobile-vitals small {font-size:12px;color:#9ddbf5}
 .touch-game .mobile-map {position:fixed;right:var(--mobile-right);top:var(--mobile-top);width:116px;height:72px;padding:3px;z-index:3;background:#111c24;border-color:#9e8b62}
 .mobile-map canvas {width:100%;height:100%;aspect-ratio:auto}
 .touch-game .mobile-menus {right:calc(var(--mobile-right) + 124px);gap:4px}
 .touch-game .mobile-vitals[hidden],.touch-game .mobile-map[hidden] {display:none}
}
@media (pointer:coarse) and (hover:none) {
 .touch-game .mobile-panel-tabs [hidden] {display:none}
 .touch-game .shopping .merchant-layout {display:block;margin-top:12px}
 .touch-game .shopping .shop-panel {padding:12px}
 .touch-game .shopping .shop-detail {max-height:none;overflow:visible}
 .touch-game #inventory-dialog.shopping {width:calc(100% - var(--mobile-left) - var(--mobile-right))}
 .touch-game .shopping .mobile-panel-tabs {display:flex}
 .touch-game .shopping:not([data-mobile-page=shop]) .shop-panel {display:none}
 .touch-game .shopping[data-mobile-page=shop] .armory-layout {display:none!important}
 .touch-game .shopping[data-mobile-page=bag] .armory-character,.touch-game .shopping[data-mobile-page=equipment] .armory-bag {display:none!important}
 .touch-game dialog summary {min-height:44px;padding:12px;font-size:16px}
 .touch-game #world-map-dialog .world-map-panel {min-width:0;max-width:100%}
 .touch-game .inspect-hint {display:none}
 .touch-game .mobile-loot {position:fixed;bottom:var(--mobile-bottom);left:50%;transform:translateX(-50%);z-index:4;min-height:48px;font-size:14px}
}
@media (pointer:coarse) and (hover:none) {
 .touch-game body #overlay .dialog,.touch-game body #overlay[data-mode=pause] .dialog {width:min(760px,100%);max-width:760px;max-height:100%;padding:16px 20px}
 .touch-game body #overlay[data-mode=pause] .dialog::before {display:none}
 .touch-game body #overlay[data-mode=pause] #dialog-label,.touch-game body #overlay[data-mode=pause] #dialog-text {display:none}
 .touch-game body #overlay #dialog-title {font-size:22px;margin:0 0 12px;letter-spacing:1px}
 .touch-game body #overlay #dialog-text {font-size:16px}
 .touch-game body #overlay #dialog-actions {grid-template-columns:repeat(2,minmax(0,1fr));max-width:none;gap:8px}
 .touch-game body #overlay #dialog-actions button {min-height:48px;font-size:16px}
 .touch-game #inventory-dialog.crafting-open .soul-panel {display:grid;grid-template-columns:minmax(180px,.8fr) minmax(220px,1.2fr);gap:12px;max-width:none;text-align:left}
 .touch-game .soul-panel>.eyebrow,.touch-game .soul-panel>h2,.touch-game .soul-panel>.soul-subtitle {display:none}
 .touch-game .soul-panel>#soul-select {grid-column:1/-1}
 .touch-game .soul-circle {margin:0;align-self:start;width:100%}
 .touch-game .soul-preview {margin:0;padding:10px;min-height:0}
 .touch-game .soul-core {width:64px;padding:0}
 .touch-game .soul-core img {width:60px;height:60px}
 .touch-game .soul-craft-button,.touch-game .soul-result,.touch-game .soul-services {grid-column:1/-1}
 .touch-game .soul-panel .soul-craft-button {position:static;margin:0}
 .touch-game .attribute-row strong,.touch-game .attribute-points,.touch-game .attribute-help {font-size:14px}
}
@media (pointer:coarse) and (hover:none) and (min-width:901px) {
 .touch-game #inventory-dialog.crafting-open .soul-panel {grid-template-columns:minmax(0,1fr)}
}
@media (pointer:coarse) and (hover:none) {
 .touch-game #mobile-mana-potion {position:fixed;left:calc(var(--mobile-left) + 144px);bottom:calc(var(--mobile-bottom) + 12px);width:48px;height:48px;min-height:48px;padding:0;border-radius:50%;color:#8cd4ff;font-size:16px;background:#102638}
 .touch-game .mobile-loot {bottom:calc(var(--mobile-bottom) + 132px)}
}
/* Separate the attack arc from utilities; every touch target has a clear gutter. */
@media (pointer:coarse) and (hover:none) and (orientation:landscape) {
 .touch-game .mobile {height:248px}
 .touch-game .mobile-actions {width:256px;height:236px;flex-basis:256px}
 .touch-game .mobile-actions .mobile-attack {left:auto;right:0;top:auto;bottom:0;width:80px;height:80px}
 .touch-game [data-mobile-skill="0"] {left:104px;top:174px;right:auto;bottom:auto}
 .touch-game [data-mobile-skill="1"] {left:92px;top:108px;right:auto;bottom:auto}
 .touch-game [data-mobile-skill="2"] {left:130px;top:44px;right:auto;bottom:auto}
 .touch-game [data-mobile-skill="3"] {left:198px;top:70px;right:auto;bottom:auto}
 .touch-game .mobile-actions .mobile-off {left:28px;top:108px;right:auto;bottom:auto;width:48px;height:48px}
 .touch-game #mobile-dash {left:28px;top:174px;right:auto;bottom:auto}
 .touch-game #mobile-interact {left:-36px;top:174px;right:auto;bottom:auto}
 .touch-game .mobile-actions #mobile-hand {left:0;top:0;width:120px;height:44px;font-size:11px}
 .touch-game .mobile-actions .mobile-heal {position:fixed;left:calc(var(--mobile-left) + 144px);top:auto;bottom:calc(var(--mobile-bottom) + 12px);width:48px;height:48px}
 .touch-game #mobile-mana-potion {left:calc(var(--mobile-left) + 204px);font-size:18px;display:flex;align-items:center;justify-content:center;padding-bottom:10px}
 .touch-game #mobile-mana-potion small {position:absolute;bottom:5px;left:0;right:0;text-align:center;font:10px system-ui;color:#b8ddff}
}
@media (pointer:coarse) and (hover:none) {
 .mobile-layout-bounds {position:fixed;left:var(--mobile-left);right:var(--mobile-right);top:var(--mobile-top);bottom:var(--mobile-bottom);pointer-events:none;visibility:hidden}
 .touch-game #mobile-controls .mobile-layout-custom {position:fixed!important;right:auto!important;bottom:auto!important;margin:0!important;transform:none!important}
 .touch-game dialog.mobile-layout-editor[open] {position:fixed;inset:0;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;padding:0;border:0;border-radius:0;overflow:hidden;background:#09121abd;touch-action:none}
 .mobile-layout-editor::backdrop {background:#0005}
 .mobile-layout-toolbar {position:absolute;z-index:2;top:var(--mobile-top);left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:8px;background:#132734;border:1px solid #c3a66d;border-radius:6px;max-width:calc(100% - 32px);width:max-content}
 .mobile-layout-toolbar span {font-size:14px;max-width:180px}
 .touch-game .mobile-layout-toolbar button {font-size:14px;white-space:nowrap}
 .mobile-layout-handle {position:fixed;display:flex;justify-content:center;align-items:center;padding:0;border:2px dashed #ebcd8d;border-radius:50%;background-color:#193746;background-size:cover;color:#fff;touch-action:none;user-select:none;font-size:18px;cursor:grab;box-shadow:0 3px 12px #0009}
 .mobile-layout-handle small {position:absolute;bottom:5px;left:0;right:0;text-align:center;font:10px system-ui}
 .mobile-layout-handle[data-control=mobile-hand] {border-radius:6px;font-size:11px}
 .mobile-layout-handle.joystick {background:radial-gradient(circle,#547787 0 25%,#193746 27% 60%,#42616b 62%);font-size:12px}
}
/* Render skill art directly: no pixel export, including when opened from file://. */
.touch-game .mobile-skill-art {position:absolute;inset:0;width:100%;height:100%;border-radius:50%;pointer-events:none;aspect-ratio:1}
.touch-game .mobile-skill>span,.touch-game .mobile-layout-handle>span {position:relative;z-index:1;text-shadow:0 1px 3px #000}
