/* Follow-up presentation fixes. All dimensions remain inside the 480 x 1024 canvas. */
#game-root { --text-muted: #454a3d; }
#game-root .network-gateway__filing {
  padding: 5px 9px; border-radius: 5px; background: #e9e3d1ed;
  font-size: 12px; font-weight: 600; line-height: 1.5;
}
#game-root .network-gateway__filing a { color: #252d26; }
#game-root :is(.page-panel, .attribute-modal__content) :is(p,dt,dd,label) {
  color: var(--item-tier-color, #30372c); font-weight: 500;
}
#game-root :is(.settings-row,.settings-volume-row,.cultivation-speed-detail-list) { font-size: 14px; }
#game-root .cave-building-card dl div { font-size: 13px; flex-wrap: wrap; }
#game-root .cave-building-card__countdown { font-size: 12px; }
#game-root :is(.cave-building-card__staffing,.cave-building-card__upgrade) > small { font-size: 12px; color: #394231; }
#game-root :is(.cave-building-card__heading strong,[data-role="alchemy-material-name"],[data-role="forging-material-name"]) { font-weight: 700; }
#game-root .rank-table__row {
  background: #e0dccb; border: 1px solid #afa58a; color: #252e25;
  font-size: 14px; min-height: 44px;
}
#game-root .rank-table__row.is-current-player { background: #d4c9a8; border-color: #97845a; }
#game-root .rank-table__header { font-size: 14px; font-weight: 600; color: #333b2f; }
#game-root .rank-table__row :is(span,button) { color: #293328; }
#game-root .rank-table__row .rank-player-button {
  background: transparent !important; background-image: none !important;
  box-shadow: none; border: 0; padding: 0; font-size: inherit; font-weight: 600;
  text-decoration-color: #7d816c; line-height: 1.5; overflow-wrap: anywhere;
}
#game-root .rank-player-button:hover { text-decoration-thickness: 2px; }
#game-root .async-duel-dialog { width: min(420px, calc(var(--game-base-width) - 32px)); }
#game-root .async-duel-dialog__content { box-sizing: border-box; width: 100%; background: transparent; box-shadow: none; }
#game-root .async-duel-status:empty { display: none; }
#game-root .async-duel-avatar { background: #d4d0be; color: #485040; border-color: #a59a7b; }
#game-root .async-duel-identity { margin-top: 12px; gap: 12px; }
#game-root .async-duel-identity__details > div { grid-template-columns: 62px minmax(0,1fr); font-size: 15px; line-height: 1.5; }
#game-root .async-duel-identity dd { font-weight: 600; overflow-wrap: anywhere; }
#game-root .async-duel-section { background: transparent; padding: 0; border: 0; box-shadow: none; }
#game-root .async-duel-stats { gap: 8px; }
#game-root .async-duel-stats > div { padding: 10px; background: #e1ddcc; border: 1px solid #afa58a; border-radius: 5px; }
#game-root .async-duel-stats dt { font-size: 14px; }
#game-root .async-duel-stats dd { font-size: 18px; font-weight: 700; color: #202d22; }
#game-root .async-duel-actions { background: transparent; box-shadow: none; padding: 0; margin-top: 12px; }
#game-root .cultivation-speed-detail-list > div { background: #e1ddcc; border: 1px solid #aaa185; border-radius: 5px; padding: 11px; }
#game-root .cultivation-speed-detail-list dt { color: #394231; font-size: 15px; font-weight: 600; }
#game-root .cultivation-speed-detail-list dd { color: #202b21; font-size: 20px; font-weight: 700; }
#game-root .cave-building-card__icon { overflow: hidden; background: #e8e2d1; border-color: #a2997e; }
#game-root .cave-building-card__icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
#game-root [data-role="forging-preview"] { height: 24px; min-height: 24px; margin: 4px 0; line-height: 24px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#game-root :is([data-role="alchemy-status"],[data-role="forging-status"],[data-role="shop-status"])[data-state="success"] { display: none; }
#game-root :is(.bag-slot__icon,.bag-item-detail__icon,.shop-product-tile__art,.shop-purchase-product__art,[data-role="shop-purchase-art"]) {
  box-sizing: border-box; border-width: 2px !important; border-style: solid;
  border-color: var(--item-tier-color, #797d6a) !important;
  border-color: color-mix(in srgb,var(--item-tier-color,#797d6a) 80%,#494333) !important;
}
#game-root :is(.bag-slot__name,.shop-product-tile__name,[data-role="shop-purchase-name"],[data-role="sect-shop-purchase-name"]) {
  color: #293225 !important;
  color: color-mix(in srgb,var(--item-tier-color,#53594a) 45%,#102013) !important;
  font-weight: 700; text-shadow: none;
}
#game-root .bag-slot__name { font-size: 11px; line-height: 1.3; }
#game-root .shop-product-tile__name { font-size: 13px; }
#game-root .forging-panel .forging-material-slot:disabled { opacity: 1 !important; }
/* Input focus alone does not resize anything; only a keyboard-sized height drop activates this. */
#game-root[data-keyboard-open] dialog[open] {
  top: 10px; bottom: auto; margin: 0 auto;
  max-height: calc(var(--keyboard-available-height) - 20px);
}
#game-root[data-keyboard-open] .attribute-modal__content { max-height: inherit; }
#game-root[data-keyboard-open] .world-chat-dialog {
  height: min(620px, calc(var(--keyboard-available-height) - 20px));
}
#game-root[data-keyboard-open] .world-chat-dialog__content { min-height: 0; }
#game-root[data-keyboard-open] .world-chat-composer { margin: 0; }
#game-root[data-keyboard-open] .world-chat-log { min-height: 0; overflow-y: auto; }
#game-root :is(.network-account-form input,.world-chat-composer textarea) { font-size: 16px; }
