#dlc-pager { display:flex;align-items:center;justify-content:flex-end;gap:7px;min-height:30px;order:0;grid-row:2; }
#dlc-pager span { margin-right:auto;font-size:11px;color:#506457; }
#dlc-pager button { min-height:28px;padding:2px 14px; }
.android-app .shell #maps[data-group="hidden"] { grid-template-rows:auto auto minmax(0,1fr); }
.android-app .shell #maps[data-group="hidden"] .map-grid { grid-row:3; }
.android-app .shell #maps[data-group="hidden"] .map-grid.two-maps { grid-template-columns:repeat(2,minmax(0,1fr)); }
.android-app .shell #maps[data-group="hidden"] .map-info small { font-size:10px; }
.map-art.coast { background:linear-gradient(145deg,#8cd8e7,#e8d1a1); }
.map-art.temple { background:linear-gradient(145deg,#91b8aa,#dfc898); }
#dlc-world-balance { position:absolute;top:91px;left:15px;margin:0;padding:7px 11px;border-radius:10px;color:#ffefc5;background:#294d4acc;font-size:12px; }
#dlc-shop-dialog { box-sizing:border-box;width:min(810px,95vw);max-height:94dvh;overflow:hidden;padding:12px 16px;background:#f4eddc;border:2px solid #87a9a3;border-radius:18px;color:#253e39; }
#dlc-shop-dialog::backdrop,#mentor-rescue-dialog::backdrop { background:#173c41b8;backdrop-filter:blur(4px); }
#dlc-shop-dialog header { display:flex;align-items:center;gap:12px; }
#dlc-shop-dialog header form { margin-left:auto; }
#dlc-shop-dialog h2 { font-size:21px;margin:0; }
#dlc-shop-dialog header p { margin:3px 0;font-size:12px; }
#dlc-shop-portrait .portrait { width:51px;margin:0; }
#dlc-shop-portrait canvas { width:51px;border-radius:9px; }
#dlc-shop-portrait figcaption,#mentor-rescue-portrait figcaption { display:none; }
#dlc-shop-tabs { display:flex;gap:6px;margin:8px 0; }
#dlc-shop-tabs button { padding:4px 15px;min-height:32px;font-size:12px; }
#dlc-shop-tabs button[aria-pressed="true"] { background:#39796e;color:#fff0c6; }
#dlc-shop-items { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px; }
.dlc-good { display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:5px 10px;background:#fffaf0;border:1px solid #c0cdb9;border-radius:12px;padding:10px; }
.dlc-good>canvas,.dlc-good>.portrait,.dlc-item-symbol { grid-row:1/4;width:70px;height:auto;margin:0; }
.dlc-good .portrait canvas { width:70px;height:auto;border-radius:8px; }
.dlc-good .portrait figcaption { display:none; }
.dlc-good strong { font-size:16px; }
.dlc-good p { margin:0;font-size:12px;line-height:1.4; }
.dlc-good button { min-height:32px;padding:3px 8px;font-size:12px;justify-self:start; }
.dlc-item-symbol { display:grid;place-items:center;height:70px;border-radius:50%;background:#d9ece1;color:#437c76;font-size:40px; }
#dlc-shop-notice { font-size:11px;margin:8px 0 0; }
#mentor-rescue-dialog { width:min(580px,92vw);padding:17px;border:2px solid #a5c8b8;background:#f7eedb;border-radius:18px; }
#mentor-rescue-dialog h2 { font-size:22px;margin:0 0 8px; }
.mentor-rescue-layout { display:flex;gap:17px;align-items:center; }
#mentor-rescue-portrait .portrait { width:100px;margin:0; }
#mentor-rescue-portrait canvas { width:100px;border-radius:14px; }
#mentor-rescue-copy { font-size:13px;line-height:1.6; }
.language-setting { display:flex;align-items:center;gap:12px;margin:8px 0;padding:7px 10px;background:#e9e5d3;border-radius:10px;font-size:13px; }
.language-setting select { margin-left:auto;max-width:160px;padding:4px 8px;border:1px solid #a5b6a7;border-radius:7px;background:#fff8e7;color:#284b40;min-height:32px; }
#language-select { display:flex;gap:5px;margin-left:auto; }
#language-select button { min-height:31px;padding:3px 10px;font-size:12px; }
#language-select button[aria-pressed="true"] { background:#416c59;border-color:#7f9e7c;color:#fff1cb; }
.android-app .outfit-grid.expanded { grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr)); }
.localized-wordmark { color:#ffda78;font-weight:950;font-style:italic;line-height:1;letter-spacing:-.4px;font-size:18px; }
.android-app .brand img[src="wordmark.png"] { width:clamp(75px,13vw,119px);max-height:44px;object-fit:contain; }
html.android-app:not([lang="zh-CN"]) .brand img[src="wordmark.png"] { display:none; }
html.android-app:not([lang="zh-CN"]):not([data-game-page="duel"]) .topbar nav button { font-size:11px;padding:0 5px; }
html.android-app:not([lang="zh-CN"]) .map-info small { white-space:normal; }
html.android-app:not([lang="zh-CN"]) #settings-dialog .settings-footer { flex-wrap:wrap;gap:5px; }
html.android-app:not([lang="zh-CN"]) #settings-dialog .settings-footer button { font-size:11px; }
html.android-app:not([lang="zh-CN"]) .brand .localized-wordmark { font-size:16px;max-width:105px;white-space:normal; }
html.android-app[lang="en"] .hero h1 { font-size:clamp(38px,7vw,66px);letter-spacing:-.05em; }
.android-app:not([data-game-page="duel"]) .utilities { display:flex;flex-shrink:0; }
.android-app:not([data-game-page="duel"]) .brand-group { flex-shrink:0; }
html.android-app:not([lang="zh-CN"]) #maps .map-info { grid-template-columns:minmax(0,1fr);gap:2px; }
html.android-app:not([lang="zh-CN"]) #maps .map-info strong { font-size:13px;line-height:1.2; }
html.android-app:not([lang="zh-CN"]) #maps .map-info small { font-size:10px;line-height:1.25; }
.android-app #maps .map-grid { padding-bottom:28px; }
.android-app #profile-dialog header h2 { margin:0; }
.android-app #profile-stats { font-size:11px;gap:3px 6px; }
.android-app #profile-experience { margin:5px 0;font-size:11px;line-height:1.3; }
.android-app .profile-layout>div>small { display:block;line-height:1.25; }
.android-app #profile-legend-skills { margin:5px 0;font-size:11px;line-height:1.3; }
.profile-hints { grid-column:1/-1; }
.android-app .profile-hints small { display:block;line-height:1.2; }
.android-app .profile-hints #profile-legend-skills { margin:3px 0 0; }
@media(max-width:740px){
  html.android-app:not([data-game-page="title"]):not([data-game-page="story"]) .brand :is(.localized-wordmark,img[src="wordmark.png"]) { display:none; }
  html.android-app:not([lang="zh-CN"]) .world-toolbar { gap:3px; }
  html.android-app:not([lang="zh-CN"]) .world-toolbar button { font-size:11px;padding:4px 7px; }
}
@media(orientation:landscape) and (max-height:400px){
  #dlc-shop-dialog { padding:9px 12px; }
  .dlc-good { padding:7px;grid-template-columns:58px minmax(0,1fr); }
  .dlc-good>canvas,.dlc-good>.portrait,.dlc-good .portrait canvas { width:58px; }
  .dlc-good p { font-size:11px; }
  .android-app #settings-dialog { padding:8px 12px; }
  .android-app #settings-dialog .language-setting { margin:5px 0;padding:3px 8px; }
  .android-app #settings-dialog h3 { display:none; }
}
