/* PC has its own HUD. Touch devices continue to use the landscape controls. */
.desktop-only{display:none!important}
.platform-label{font-size:10px;letter-spacing:.4px;color:#ded7bd;white-space:nowrap;border:1px solid #c4c9a539;border-radius:30px;padding:6px 11px;background:#17392ca3}
.landing-header .platform-label{margin-left:auto;margin-right:18px}
[data-ui="touch"] .game-header .platform-label{display:none}
[data-ui="desktop"] .desktop-only{display:block!important}
[data-ui="desktop"] .game-screen{height:100dvh;min-height:440px;max-width:none;background:#102a23;overflow:hidden}
[data-ui="desktop"] .game-header,[data-ui="desktop"] .in-town .game-header{inset:0 0 auto;height:52px;padding:0 20px;display:flex;justify-content:space-between;border-bottom:1px solid #c6ba8a33;background:linear-gradient(90deg,#142f27,#1a372c);z-index:20}
[data-ui="desktop"] .game-header .brand{display:flex;font-size:15px;gap:8px}
[data-ui="desktop"] .game-header .brand-star{font-size:26px}
[data-ui="desktop"] .game-header .chapter{display:flex;font-size:11px}
[data-ui="desktop"] .header-actions{gap:10px}
[data-ui="desktop"] .header-actions .icon-btn{width:30px;height:30px;border-radius:6px;font-size:15px}
[data-ui="desktop"] .header-actions .rewards-nav-button{font-size:11px;padding:6px 10px;min-height:30px}
[data-ui="desktop"] .play-layout{position:absolute;inset:52px 0 0;height:auto;display:block}
[data-ui="desktop"] .play-main{height:100%;padding:0;display:block;position:relative}
[data-ui="desktop"] .arena,[data-ui="desktop"] .in-town .arena{inset:0 0 132px;min-height:0;border:0;border-bottom:1px solid #c4bb8b55;border-radius:0}
[data-ui="desktop"] .arena:after{height:150px;background:linear-gradient(#09251a66,transparent)}
[data-ui="desktop"] .player-bar{top:18px;left:20px;width:320px;max-width:40%;gap:12px;padding:0}
[data-ui="desktop"] .player-bar canvas{width:54px;height:54px;border-radius:50%;flex-shrink:0}
[data-ui="desktop"] .vitals{width:100%;max-width:none}
[data-ui="desktop"] .player-title{gap:8px;margin-bottom:5px}
[data-ui="desktop"] .player-title strong{font-size:13px}
[data-ui="desktop"] .player-title span{display:inline;font-size:10px}
[data-ui="desktop"] .player-title b{font-size:11px}
[data-ui="desktop"] .hp-track{height:14px}
[data-ui="desktop"] .mana-track{height:12px}
[data-ui="desktop"] .hp-track>span,[data-ui="desktop"] .mana-track>span{font-size:9px;line-height:13px}
[data-ui="desktop"] .quest-pill,[data-ui="desktop"] .in-town .quest-pill{top:90px;left:20px;max-width:320px;padding:8px 12px}
[data-ui="desktop"] .quest-pill strong{font-size:12px}
[data-ui="desktop"] .quest-pill small{font-size:10px}
[data-ui="desktop"] .auto-btn{left:20px;top:154px;min-height:32px;padding:7px 12px 7px 32px;font-size:10px}
[data-ui="desktop"] .settings-float{left:180px;right:auto;top:154px;min-height:32px;padding:7px 11px;font-size:10px}
[data-ui="desktop"] .gem-status{left:20px;top:198px;font-size:10px;padding:5px 9px}
[data-ui="desktop"] .minimap-wrap{right:20px;top:18px;width:164px;height:164px;border-radius:10px}
[data-ui="desktop"] .minimap-wrap canvas{height:138px}
[data-ui="desktop"] .minimap-wrap>span{padding:6px;font-size:10px}
[data-ui="desktop"] .journey-nav{left:auto;right:20px;top:194px;bottom:auto;max-width:none;width:190px;display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0;transform:none}
[data-ui="desktop"] .journey-nav button{position:relative;min-height:34px;padding:6px 4px;font-size:9px;background:#14392be8;display:flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap}
[data-ui="desktop"] .journey-nav b{display:none}
[data-ui="desktop"] .journey-nav #returnTown{margin:0}
[data-ui="desktop"] .field-travel{top:278px;right:20px;left:auto;bottom:auto;max-width:190px;gap:6px}
[data-ui="desktop"] .field-travel button{min-height:32px;padding:7px 10px;font-size:10px;max-width:190px}
[data-ui="desktop"] .town-map-tools{top:278px;right:20px;width:190px;padding:12px;border-radius:10px}
[data-ui="desktop"] .town-map-tools button,[data-ui="desktop"] .town-map-tools select{font-size:11px;min-height:32px;margin-top:8px;padding:8px}
[data-ui="desktop"] .town-map-tools p{display:none}
[data-ui="desktop"] .arena-bottom{bottom:10px;left:20px;right:20px}
[data-ui="desktop"] .arena-bottom>span:first-child{display:block;max-width:60%;font-size:10px}
[data-ui="desktop"] .battle-toast{bottom:50px}
[data-ui="desktop"] .controls,[data-ui="desktop"] .in-town .controls{inset:auto auto 45px 50%;transform:translateX(-50%);display:flex!important;align-items:center;justify-content:center;gap:18px;width:max-content;max-width:calc(100% - 32px);height:72px;min-height:0;padding:0;pointer-events:none}
[data-ui="desktop"] .joystick{display:none}
[data-ui="desktop"] .movement-mode{position:relative;inset:auto;width:92px;flex-shrink:0;align-self:center}
[data-ui="desktop"] .movement-mode button{border-radius:6px;min-height:30px;padding:5px 7px 5px 23px;font-size:11px}
[data-ui="desktop"] .movement-mode small{font-size:9px}
[data-ui="desktop"] .skill-controls,[data-ui="desktop"] .combat-buttons{position:static;inset:auto;display:flex;align-items:center;justify-content:center;gap:8px;width:auto;height:auto;max-width:none;flex:none;flex-wrap:nowrap;padding:0;pointer-events:none}
[data-ui="desktop"] .skill-btn,[data-ui="desktop"] .combat-buttons .control-btn{position:relative;inset:auto!important;width:64px;height:66px;min-height:0;flex-shrink:0;border-radius:9px;border:1px solid #b9c6a871;box-shadow:0 3px 10px #071d1c77;overflow:visible;gap:1px;background:linear-gradient(145deg,#395a49,#142f28)}
[data-ui="desktop"] .skill-btn .skill-art{position:static;inset:auto;margin:0;width:42px;height:42px;border-radius:7px}
[data-ui="desktop"] .skill-btn small{position:static;inset:auto;padding:0;background:none;font-size:9px;max-width:60px;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px #000}
[data-ui="desktop"] .skill-btn>i,[data-ui="desktop"] .control-btn>i{border-radius:8px}
[data-ui="desktop"] .skill-mana-cost{position:absolute;top:-16px;right:2px;font-size:8px;background:none}
[data-ui="desktop"] .combat-buttons .control-btn{width:54px;height:58px}
[data-ui="desktop"] .combat-buttons .control-btn>span{font-size:21px}
[data-ui="desktop"] .combat-buttons .control-btn>small{font-size:9px}
[data-ui="desktop"] .combat-buttons .potion{background:linear-gradient(145deg,#895746,#3d302a);color:#f9d7ba}
[data-ui="desktop"] .combat-buttons .mana-potion{background:linear-gradient(145deg,#496c99,#27344a);color:#d3e5fa}
[data-ui="desktop"] .combat-buttons .attack{width:76px;height:66px;background:linear-gradient(145deg,#e5ce93,#a18c5e);border-color:#f3dda7;color:#233c2b}
[data-ui="desktop"] .bottom-nav{inset:auto auto 5px 50%;transform:translateX(-50%);width:max-content;display:flex;gap:6px;min-height:0;padding:0;flex-wrap:nowrap;border:0}
[data-ui="desktop"] .bottom-nav button{width:auto;height:30px;min-height:30px;min-width:110px;padding:4px 9px;display:flex;flex-direction:row;gap:6px;border-radius:5px;font-size:10px;background:#1c3a2d;box-shadow:none}
[data-ui="desktop"] .bottom-nav button>span{font-size:15px}
[data-ui="desktop"] .bottom-nav b{position:static;font-size:9px;padding:1px 4px;background:#344d38;color:#e9d29a}
[data-ui="desktop"] [data-key]:after{content:attr(data-key);display:inline-block;font:500 9px/1.3 ui-monospace,monospace;min-width:16px;padding:1px 3px;border:1px solid #ccceb052;border-radius:3px;background:#102b23;color:#e7d8ab;text-align:center;pointer-events:none;flex-shrink:0}
[data-ui="desktop"] .controls [data-key]:after{position:absolute;left:4px;top:-7px;z-index:3;box-shadow:0 1px 3px #0008}
[data-ui="desktop"] #runToggle:after{top:7px;left:5px}
[data-ui="desktop"] #autoBtn:after{position:absolute;left:7px}
[data-ui="desktop"] .header-actions [data-key]:after{display:none}
[data-ui="desktop"] .pc-move-hint{position:absolute;left:20px;bottom:6px;margin:0;color:#9db19e;font-size:10px;line-height:1.8;pointer-events:none}
[data-ui="desktop"] .pc-move-hint b{display:block;letter-spacing:3px;color:#d9d0ad;font-size:12px}
[data-ui="desktop"] .pc-move-hint span{margin:0 5px}
[data-ui="desktop"] .channel-chat.floating,[data-ui="desktop"] .channel-chat.floating.collapsed,[data-ui="desktop"] .channel-chat.floating:not(.collapsed){left:20px;right:auto;bottom:148px;transform:none;width:300px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 260px);overflow:auto;z-index:30}
[data-ui="desktop"] .channel-chat.floating .chat-messages{height:150px}
[data-ui="desktop"] .channel-chat.floating.collapsed{width:238px}
[data-ui="desktop"] .channel-chat.floating.collapsed .friends-open{display:block}
[data-ui="desktop"] .in-town .controls .skill-controls,[data-ui="desktop"] .in-town .controls .combat-buttons{display:flex!important;opacity:.45}
[data-ui="desktop"] dialog{max-height:calc(100dvh - 56px);width:min(1080px,calc(100vw - 64px));border-radius:14px}
.pc-help p{font-size:13px;line-height:1.8;color:var(--muted);margin:0 0 22px}
.pc-help dl{display:grid;grid-template-columns:1fr 1fr;gap:0 32px;margin:0 0 20px}
.pc-help dl>div{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:12px 0;font-size:12px}
.pc-help dd{margin:0}.pc-help kbd{color:var(--gold);font-size:11px}.pc-help>small{font-size:11px;line-height:1.8;color:var(--muted)}
[data-ui="desktop"] .test-server-label{top:55px;font-size:9px;padding:3px 10px}
@media(max-width:1200px){
 [data-ui="desktop"] .pc-move-hint,[data-ui="desktop"] .game-header .chapter{display:none!important}
 [data-ui="desktop"] .controls{gap:12px}
 [data-ui="desktop"] .channel-chat.floating .chat-messages{height:110px}
}
@media(max-width:850px),(max-height:640px){
 [data-ui="desktop"] .game-header,[data-ui="desktop"] .in-town .game-header{padding:0 12px;height:44px}
 [data-ui="desktop"] .game-header .platform-label{display:none}
 [data-ui="desktop"] .play-layout{top:44px}
 [data-ui="desktop"] .arena,[data-ui="desktop"] .in-town .arena{bottom:116px}
 [data-ui="desktop"] .player-bar{top:12px;left:14px;width:280px}
 [data-ui="desktop"] .player-bar canvas{width:42px;height:42px}
 [data-ui="desktop"] .player-title span{display:none}
 [data-ui="desktop"] .quest-pill,[data-ui="desktop"] .in-town .quest-pill{left:14px;top:80px;max-width:270px}
 [data-ui="desktop"] .auto-btn{left:14px;top:137px}
 [data-ui="desktop"] .settings-float{left:170px;top:137px}
 [data-ui="desktop"] .gem-status{left:14px;top:176px}
 [data-ui="desktop"] .minimap-wrap{width:114px;height:114px;top:12px;right:14px}
 [data-ui="desktop"] .minimap-wrap canvas{height:90px}
 [data-ui="desktop"] .journey-nav{top:138px;right:14px;width:180px}
 [data-ui="desktop"] .field-travel,[data-ui="desktop"] .town-map-tools{top:216px;right:14px;width:180px}
 [data-ui="desktop"] .town-map-tools{max-height:calc(100dvh - 395px);overflow:auto}
 [data-ui="desktop"] .controls,[data-ui="desktop"] .in-town .controls{height:60px;bottom:40px;gap:9px}
 [data-ui="desktop"] .movement-mode{width:78px}
 [data-ui="desktop"] .skill-controls,[data-ui="desktop"] .combat-buttons{gap:6px}
 [data-ui="desktop"] .skill-btn{width:52px;height:56px}
 [data-ui="desktop"] .skill-btn .skill-art{width:33px;height:33px}
 [data-ui="desktop"] .skill-btn small{font-size:8px;max-width:48px}
 [data-ui="desktop"] .combat-buttons .control-btn{width:44px;height:48px}
 [data-ui="desktop"] .combat-buttons .attack{width:62px;height:56px}
 [data-ui="desktop"] .bottom-nav button{min-width:88px;font-size:9px;padding:3px 6px;gap:4px}
 [data-ui="desktop"] .channel-chat.floating,[data-ui="desktop"] .channel-chat.floating.collapsed,[data-ui="desktop"] .channel-chat.floating:not(.collapsed){bottom:129px;left:14px;width:260px}
 [data-ui="desktop"] .channel-chat.floating.collapsed{width:220px}
 [data-ui="desktop"] .test-server-label{top:46px}
}
@media(max-width:640px){
 [data-ui="desktop"] .game-header .brand{font-size:12px}
 [data-ui="desktop"] .header-actions{gap:5px}
 [data-ui="desktop"] .header-actions .rewards-nav-button{font-size:9px;padding:5px}
 [data-ui="desktop"] .controls{width:calc(100% - 12px);max-width:none;gap:5px}
 [data-ui="desktop"] .movement-mode{width:64px}
 [data-ui="desktop"] .skill-controls,[data-ui="desktop"] .combat-buttons{gap:4px}
 [data-ui="desktop"] .skill-btn{width:44px}
 [data-ui="desktop"] .combat-buttons .control-btn{width:38px}
 [data-ui="desktop"] .combat-buttons .attack{width:48px}
 [data-ui="desktop"] .bottom-nav{gap:3px}
 [data-ui="desktop"] .bottom-nav button{min-width:74px}
 [data-ui="desktop"] .bottom-nav button>span{display:none}
 [data-ui="desktop"] .player-bar{max-width:calc(100% - 146px)}
 .pc-help dl{grid-template-columns:1fr}
}

/* Selected right-button skill stays visible in the main PC game. */
[data-ui="desktop"] .controls{overflow:visible}
[data-ui="desktop"] .pc-selected-skill{position:absolute;left:50%;top:-36px;transform:translateX(-50%);padding:3px 12px;border:1px solid #b89c60;border-radius:12px;background:#17251fef;color:#f6dfac;font-size:12px;white-space:nowrap;pointer-events:none}
[data-ui="desktop"] .skill-btn.selected{border-color:#f2d48a;box-shadow:0 0 0 2px #c6a45e,0 0 18px #d4ac5440;background:#3b4837}

[data-ui="desktop"] .pc-move-hint{max-width:295px}
[data-ui="desktop"] .pc-move-hint b{display:inline;letter-spacing:0;font-size:11px}
