/* Mobile touch window kit (android/mobile-ui.js): one large centred panel on the
   800x450 stage, black-gold MobileBlackGoldSkin400 colours, >=48px targets. */
.mw-shade{position:absolute;inset:0;z-index:70;background:rgba(0,0,0,.45)}
.mw-window{position:absolute;z-index:71;display:flex;flex-direction:column;box-sizing:border-box;background:rgba(23,21,18,.97);
  box-shadow:inset 0 0 0 2px #735938,inset 0 0 0 4px rgba(0,0,0,.6),inset 0 0 0 5px #b18d53,0 8px 28px rgba(0,0,0,.6);border-radius:6px;
  color:#eee8dc;font:15px/1.35 "Microsoft JhengHei","PingFang TC",sans-serif;overflow:hidden;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.mw-header{flex:0 0 48px;display:flex;align-items:center;gap:8px;padding:0 6px 0 18px;margin:6px 6px 0;background:#302820;border-radius:3px}
.mw-title{flex:1;margin:0;font:600 18px "Microsoft JhengHei",sans-serif;color:#ffe2a2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mw-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding:10px 14px}
.mw-footer{flex:0 0 auto;display:flex;gap:10px;padding:8px 12px 12px;border-top:1px solid rgba(177,141,83,.35)}
.mw-footer[hidden]{display:none}
.mw-footer .mw-button{flex:1}
.mw-window button{font-family:inherit}
.mw-button{min-height:48px;min-width:48px;padding:0 14px;margin:0;border:1px solid #8d7248;border-radius:6px;background:#302820;color:#eee8dc;font-size:16px;cursor:pointer;touch-action:manipulation}
.mw-button:active:not(:disabled),.mw-button.selected{background:#59472c;color:#fff}
.mw-button.primary{background:#6b5226;border-color:#d0a95c;color:#fff4d6}
.mw-button.danger{border-color:#8a4a3f;color:#f3c0b5}
.mw-button:disabled{opacity:.45;cursor:default}
.mw-close{flex:0 0 48px;height:44px;min-height:44px;background:transparent;border:0;font-size:30px;line-height:1;color:#ead5ac}
.mw-close:active{color:#fff;background:transparent}
.mw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px}
.mw-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:2px;min-height:86px;padding:6px 2px;margin:0;border:1px solid #5d4a2f;border-radius:6px;background:#141210;color:#eee8dc;cursor:pointer;touch-action:manipulation}
.mw-tile.selected{border-color:#ffd78a;box-shadow:0 0 0 1px #ffd78a inset;background:#2c2416}
.mw-tile:active:not(:disabled){background:#3a2f1e}
.mw-tile:disabled{opacity:.45}
.mw-tile-art{position:relative;width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:#090909;border:1px solid #746044;border-radius:4px}
.mw-tile-art img{max-width:40px;max-height:40px;image-rendering:pixelated}
.mw-count{position:absolute;right:-4px;bottom:-6px;min-width:18px;padding:0 3px;border-radius:9px;background:rgba(0,0,0,.85);color:#fff;font-size:11px;line-height:16px;text-align:center}
.mw-tile-name{width:100%;font-size:12px;line-height:1.2;text-align:center;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-all}
.mw-tile-detail{font-size:11px;color:#c8b58c}
.mw-tag{position:absolute;left:3px;top:3px;padding:0 4px;border-radius:3px;background:#6b5226;color:#fff4d6;font-size:10px;line-height:15px}
.mw-list{display:flex;flex-direction:column;gap:8px}
.mw-row{display:flex;align-items:stretch;gap:8px}
.mw-row-main{flex:1;min-width:0;display:flex;align-items:center;gap:10px;min-height:56px;padding:4px 12px;margin:0;border:1px solid #5d4a2f;border-radius:6px;background:#141210;color:#eee8dc;text-align:left;cursor:pointer}
.mw-row-main:active:not(:disabled){background:#3a2f1e}
.mw-row-main img{width:36px;height:36px;object-fit:contain;image-rendering:pixelated;flex:0 0 36px}
.mw-row-text{display:flex;flex-direction:column;min-width:0}
.mw-row-name{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mw-row-detail{font-size:13px;color:#c8b58c}
.mw-row .mw-button{flex:0 0 auto}
.mw-section{margin:12px 0 6px;font-size:14px;color:#ffd78a}
.mw-note{margin:6px 0;font-size:14px;color:#c8b58c;white-space:pre-line}
.mw-detail{display:flex;gap:12px;align-items:flex-start;min-height:48px;padding:8px 10px;margin-top:8px;border:1px solid #5d4a2f;border-radius:6px;background:#0f0d0b}
.mw-detail img{width:40px;height:40px;image-rendering:pixelated}
.mw-detail-text{flex:1;font-size:14px;white-space:pre-line}
.mw-split{display:flex;gap:12px;height:100%}
.mw-split>*{min-width:0}
.mw-text{font-size:16px;line-height:1.6;white-space:pre-wrap;word-break:break-word}
.mw-input{min-height:48px;box-sizing:border-box;padding:0 12px;border:1px solid #8d7248;border-radius:6px;background:#000;color:#fff;font-size:18px}
