/* owner 2026-11-16: "UI เวอร์ชันมือถือดูใหญ่ไปหมด … ข้อมูลใช้พื้นที่เยอะ ที่ว่างเยอะ". The window keeps its size, but on
   phones its content is denser: smaller buttons and tabs, tighter rows, a smaller character preview. Loaded last. */
html[data-ui="mobile"] #panel-layer .panel > header { padding: 6px 10px 4px 14px; font-size: 15px; }
html[data-ui="mobile"] #panel-layer .panel > header img { width: 24px; height: 24px; }
html[data-ui="mobile"] #panel-layer .panel > header .x { width: 36px; height: 36px; font-size: 16px; }
html[data-ui="mobile"] #panel-layer .panel > .body { padding: 2px 10px 10px; font-size: 13px; }
html[data-ui="mobile"] #panel-layer .panel .body h4 { margin: 8px 0 4px; font-size: 13px; }
html[data-ui="mobile"] #panel-layer .panel .body p { margin: 0 0 6px; line-height: 1.45; }
html[data-ui="mobile"] #panel-layer .panel .tip { font-size: 12px; }

/* buttons and tabs */
html[data-ui="mobile"] #panel-layer .panel .btn { min-height: 36px; padding: 4px 12px; font-size: 13px; }
html[data-ui="mobile"] #panel-layer .panel .btn.small { min-height: 30px; padding: 3px 9px; font-size: 12px; border-radius: 10px; }
html[data-ui="mobile"] #panel-layer .panel .tabs { gap: 4px; margin-bottom: 6px; }
html[data-ui="mobile"] #panel-layer .panel .tabs button { min-height: 30px; padding: 3px 10px; font-size: 12.5px; border-radius: 10px; }
html[data-ui="mobile"] #panel-layer .panel .tabs button small { font-size: 10.5px; }

/* list rows */
html[data-ui="mobile"] #panel-layer .panel .li { gap: 9px; padding: 7px 0; font-size: 13px; }
html[data-ui="mobile"] #panel-layer .panel .li img { width: 34px; height: 34px; border-radius: 8px; }
html[data-ui="mobile"] #panel-layer .panel .li small { font-size: 11.5px; line-height: 1.4; }
html[data-ui="mobile"] #panel-layer .crystal-panel .crystal-item img { width: 32px; height: 32px; }
html[data-ui="mobile"] #panel-layer .crystal-item { grid-template-columns: 36px minmax(0, 1fr); column-gap: 8px; }
html[data-ui="mobile"] #panel-layer .ward-row .ward-btns { gap: 4px; }

/* character preview (bag / wardrobe / crystal shop) */
html[data-ui="mobile"] #panel-layer .doll-wrap { height: 176px; }
html[data-ui="mobile"] #panel-layer .doll-wrap .doll { top: 8px; transform: translateX(-50%) scale(.78); transform-origin: top center; }
html[data-ui="mobile"] #panel-layer .doll-slot { width: 46px; }
html[data-ui="mobile"] #panel-layer .doll-slot .cell, html[data-ui="mobile"] #panel-layer .doll-slot .fashion-slot.mini { width: 38px; height: 38px; border-radius: 10px; }
html[data-ui="mobile"] #panel-layer .doll-slot .fashion-slot.mini .fx-ic { width: 30px; height: 30px; font-size: 15px; }
html[data-ui="mobile"] #panel-layer .doll-gear .ds-gloves, html[data-ui="mobile"] #panel-layer .doll-fashion .ds-outfit,
html[data-ui="mobile"] #panel-layer .doll-gear .ds-boots, html[data-ui="mobile"] #panel-layer .doll-fashion .ds-tint { top: 66px; }
html[data-ui="mobile"] #panel-layer .doll-foot { min-height: 14px; margin-bottom: 4px; font-size: 12px; }
html[data-ui="mobile"] #panel-layer .doll-gear .ds-rod, html[data-ui="mobile"] #panel-layer .doll-fashion .ds-back,
html[data-ui="mobile"] #panel-layer .doll-fashion .ds-pet { top: 122px; }

/* owner 2026-11-16: the phone PK button covered the skill-page button (⇄) left of the skill ring. Smaller, and it sits just
   above that button now (#hud-bar is scaled by --mobile-action-scale from the bottom right, so these are pre-scale numbers). */
html[data-ui="mobile"] #hud-bar > .pk-btn { width: 38px; height: 22px; min-height: 0; border-radius: 8px; font-size: 9.5px; line-height: 1; letter-spacing: 0;
  right: calc(179px + var(--sr, 0px)); bottom: calc(118px + var(--sb, 0px)); }

/* owner 2026-11-17: "หน้าต่าง VIP อยู่ตรงไหน" - the top 👑 VIP and 🎁 starter buttons were hidden on phones held upright
   (portrait hides the top-row menu buttons) and tiny on landscape. They stay visible and a little larger on phones. */
html[data-ui="mobile"] #hud-topright .top-row .sq-btn.shop-promo { display: flex; width: 34px; height: 34px; min-width: 34px; min-height: 34px; border-radius: 10px; align-items: center; justify-content: center; }
html[data-ui="mobile"] #hud-topright .top-row .sq-btn.shop-promo > span { transform: none; font-size: 19px; line-height: 1; }
html[data-ui="mobile"] #hud-topright .top-row .sq-btn.vip-btn { box-shadow: 0 0 0 2px #f2c94c inset, 0 3px 10px rgba(83, 87, 108, .16); }
