/* Paper UI refinement. Plain selectors intentionally support older mobile WebViews. */
#game-root .physique-refinement-list { gap: 0; border: 1px solid #a99d80; border-radius: 8px; background: #e9e2ce; padding: 10px 13px; }
#game-root .physique-refinement-summary { margin: 0; padding: 5px 0 12px; border: 0; border-bottom: 1px solid #b9ad90; background: transparent; box-shadow: none; text-align: left; color: #39402d; font-size: 15px; }
#game-root .physique-refinement-row { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 12px 0 3px; }
#game-root .physique-refinement-name { font-size: 18px; font-weight: 700; color: #263629; }
#game-root .physique-refinement-list .physique-refinement-summary,
#game-root .physique-refinement-list .physique-refinement-row { background: transparent !important; background-image: none !important; border-radius: 0; box-shadow: none; }
#game-root .cultivate-info-panel { gap: 7px; padding: 12px; border: 1px solid #a79c7f; border-radius: 7px; background: #e5dfcd; box-shadow: inset 0 0 0 2px #f2eddd; }
#game-root .cultivate-info-panel .cultivation-progress-block,
#game-root .cultivate-info-panel .cultivate-compact-row { border: 0; border-radius: 0; box-shadow: none; background: transparent; background-image: none; padding: 3px 0 8px; min-height: 0; color: #30382b; }
#game-root .cultivate-info-panel .cultivation-progress-block::before,
#game-root .cultivate-info-panel .cultivation-progress-block::after,
#game-root .cultivate-info-panel .cultivate-compact-row::before,
#game-root .cultivate-info-panel .cultivate-compact-row::after { display: none; }
#game-root .cultivate-info-panel .qi-sea-progress-block { border-top: 1px solid #b6ab92; padding-top: 9px; }
#game-root .cultivate-info-panel .progress-label,
#game-root .cultivate-info-panel .cultivate-compact-row { font-size: 14px; }
#game-root .cultivate-info-panel .progress-label strong,
#game-root [data-role="cultivate-speed"] { font-size: 15px; font-weight: 700; color: #293d2b; }
#game-root .cultivate-info-panel .breakthrough-actions { margin: 0; gap: 8px; padding: 0; }
#game-root .breakthrough-action-button { min-height: 46px; height: 46px; }
#game-root .breakthrough-action-button strong { font-size: 17px; }
#game-root #equipment-section-title,
#game-root #kungfu-section-title { background: #e6dfcb; background-image: none; color: #30372b; font-size: 17px; font-weight: 700; opacity: 1; box-shadow: 0 0 0 3px #e6dfcb; }
#game-root .equipment-slot-card .reserved-slot-card__name { font-size: 15px; font-weight: 700; line-height: 1.5; text-shadow: none; }
#game-root .reserved-slot-card__label { font-size: 14px; color: #333b2c; }
#game-root .equipment-slot-card .reserved-slot-card__name[style],
#game-root .equipment-choice strong[style] { color: #374033 !important; -webkit-text-fill-color: currentColor; }
#game-root .equipment-slot-card .reserved-slot-card__name[style*="114, 184"],
#game-root .equipment-choice strong[style*="114, 184"] { color: #326436 !important; }
#game-root .equipment-slot-card .reserved-slot-card__name[style*="111, 159"],
#game-root .equipment-choice strong[style*="111, 159"] { color: #275d89 !important; }
#game-root .equipment-slot-card .reserved-slot-card__name[style*="167, 128"],
#game-root .equipment-choice strong[style*="167, 128"] { color: #694383 !important; }
#game-root .equipment-slot-card .reserved-slot-card__name[style*="217, 139"],
#game-root .equipment-choice strong[style*="217, 139"] { color: #8b481b !important; }
#game-root .spirit-formation-upgrade { grid-template-columns: minmax(0,1fr); padding: 12px; gap: 10px; }
#game-root .spirit-formation-materials { gap: 9px; }
#game-root .spirit-formation-material { padding: 10px 5px; gap: 5px; background: #ece5d1; opacity: 1; }
#game-root .spirit-formation-material__art { width: 76px; height: 76px; border: 0; background: transparent; box-shadow: none; }
#game-root .spirit-formation-material__art img { width: 100%; height: 100%; object-fit: contain; }
#game-root .spirit-formation-material strong { font-size: 17px; color: #29392a; }
#game-root .spirit-formation-material small { font-size: 13px; font-weight: 600; color: #3c4231; }
#game-root .spirit-formation-material.is-insufficient small { color: #963b27; }
#game-root .spirit-formation-upgrade-button { width: 100%; min-height: 42px; font-size: 16px; }
#game-root .spirit-root-table th,
#game-root .spirit-root-table td { font-size: 14px; color: #303b2b; padding: 12px 5px; }
#game-root .kungfu-card__heading strong { font-size: 19px; font-weight: 700; color: #27382b; }
#game-root .kungfu-card__heading span,
#game-root .kungfu-card__footer,
#game-root .kungfu-card__progression,
#game-root .kungfu-card__current-effect { font-size: 15px; color: #35422e; line-height: 1.6; font-weight: 600; }
#game-root .kungfu-card__progression-current,
#game-root .kungfu-card__progression-next { color: #3d512f; }
#game-root .sect-kungfu-detail__description,
#game-root .sect-kungfu-detail__meta,
#game-root .sect-kungfu-detail__section,
#game-root .sect-kungfu-detail__section p,
#game-root .sect-kungfu-detail__section li,
#game-root .sect-kungfu-detail__resource { font-size: 15px; color: #323f2e; font-weight: 600; line-height: 1.65; }
#game-root .sect-kungfu-detail__section li { color: #70501e; }
#game-root .sect-kungfu-detail__section span { color: #3b432f; font-size: 15px; }
#game-root .artifact-attribute-group > strong { font-size: 15px; color: #35402d; }
#game-root .artifact-progress > span { font-size: 16px; color: #35402d; }
#game-root .artifact-attribute-pending { font-size: 14px; }
#game-root .sect-status:empty { display: none; }
#game-root .sect-page.is-scene-mode { gap: 0; padding-bottom: 0; }
#game-root .sect-scene-view.has-scene-map {
 flex: 1; min-height: 0; margin-bottom: 0;
 overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
 scrollbar-width: none;
}
#game-root .sect-scene-view.has-scene-map::-webkit-scrollbar { display: none; }
#game-root .sect-scene.has-scene-map {
 /* Older WebViews cannot resolve cqh: keep the map scrollable at its natural ratio. */
 width: 100%; max-width: 540px; min-height: 0;
}
@supports (width: 1cqh) {
 #game-root .sect-scene.has-scene-map { width: min(100%, 56.2799cqh); }
}
#game-root .black-market-filter-dialog .black-market-filter-section { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0 0 14px; border-bottom: 1px solid #b9ad91; }
#game-root .black-market-filter-section h3 { color: #35402d; font-size: 17px; font-weight: 700; margin: 0 0 9px; }
#game-root .black-market-filter-option { min-height: 39px; background: #e9e2cf; border: 1px solid #b4a98e; border-radius: 6px; font-size: 15px; color: #35402d; }
#game-root .black-market-filter-option.is-selected { background: #dfcca0 !important; color: #483817 !important; border-color: #947237; box-shadow: inset 0 0 0 1px #f8e4ad; }
#game-root .network-character-create__portrait { background: radial-gradient(ellipse at 50% 36%,#faf6e7,#e6dfc9); color: #6e705c; border: 1px solid #b5aa8b; }
#game-root .network-gender-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; border: 0; }
#game-root .network-gender-options legend,
#game-root .gender-fieldset legend,
#game-root .create-form .gender-portrait { display: none; }
#game-root .network-gender-options label,
#game-root .create-form .gender-option { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 0; padding: 10px; border: 1px solid #ad9e7d; border-radius: 6px; background: #ebe4cf; color: #36402e; font-size: 20px; font-weight: 700; cursor: pointer; }
#game-root .network-gender-options input,
#game-root .create-form .gender-option input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
#game-root .network-gender-options label.is-selected,
#game-root .create-form .gender-option.is-selected { background: #daccab; border-color: #917239; box-shadow: inset 0 0 0 2px #f3e1b2; }
#game-root .network-gender-options label:focus-within,
#game-root .create-form .gender-option:focus-within { outline: 2px solid #8c702f; outline-offset: 2px; }
#game-root .create-form [data-role="gender-name"] { font-size: 20px; }
#game-root .artifact-cultivation { gap: 12px; }
#game-root .artifact-cultivation-header { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 4px; padding: 14px 10px 10px; background: radial-gradient(ellipse,#f4eedc,#ded9c4); border-color: #b6aa8c; }
#game-root .artifact-illustration { display: block; width: 220px; height: 220px; object-fit: contain; margin: 0 auto; }
#game-root .artifact-cultivation-header strong { font-size: 24px; color: #29372a; }
#game-root .artifact-cultivation-header > span { font-size: 16px; color: #565139; }
#game-root .artifact-card__info .artifact-illustration { width: 115px; height: 115px; }
#game-root .artifact-card__info { display: grid; justify-items: center; gap: 5px; }
#game-root .artifact-card__info strong { font-size: 18px; }
#game-root .artifact-attributes-panel { padding: 14px; }
#game-root .artifact-attributes-panel h3 { font-size: 18px; color: #303d2a; }
#game-root .artifact-attribute-group,
#game-root .artifact-attribute-rows,
#game-root .artifact-attribute-speed,
#game-root .artifact-progress { font-size: 16px; color: #303b2a; line-height: 1.65; }
#game-root .artifact-attribute-pending,
#game-root .artifact-attribute-potential { color: #5c604b; }
#game-root .artifact-progress { padding: 10px 13px; }
#game-root .artifact-progress strong { font-size: 21px; }
#game-root .artifact-costs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
#game-root .artifact-cost-row { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 9px 4px; background: #e8e1cd; color: #35402d; font-size: 14px; }
#game-root .artifact-cost-row strong { font-size: 16px; color: #35402d; }
#game-root .artifact-cost-row.is-insufficient strong { color: #973b27; }
#game-root .artifact-material-art { display: block; width: 48px; height: 48px; object-fit: contain; }
#game-root .artifact-cost-currency { grid-column: 1 / -1; flex-direction: row; gap: 16px; }
#game-root .artifact-cultivation-actions button { min-height: 46px; font-size: 18px; }
#game-root .region-selection-panel { padding: 18px 14px; background: #e8e1cc; color: #303d2b; border: 1px solid #a89c7d; }
#game-root .region-selection-panel__heading h2 { font-size: 23px; line-height: 1.45; color: #303c2b; }
#game-root .region-selection-panel__subtitle { font-size: 16px; color: #665135; }
#game-root .region-guidance { display: none; }
#game-root .region-map { display: block; padding: 0; border: 0; background: transparent; margin: 10px 0 12px; overflow: visible; }
#game-root .region-map svg { display: block; width: 100%; height: auto; overflow: visible; }
#game-root .region-map-piece { cursor: pointer; transform-box: fill-box; transform-origin: center; transition: transform .18s ease; }
#game-root .region-map-piece .region-outline { fill: transparent; stroke: transparent; stroke-width: 7; }
#game-root .region-map-piece.is-selected { transform: scale(1.025); filter: drop-shadow(0 0 7px #dcb352); }
#game-root .region-map-piece.is-selected .region-outline { stroke: #e8c46d; }
#game-root .region-map-piece:focus { outline: none; }
#game-root .region-map-piece:focus .region-outline { stroke: #8c6425; stroke-width: 9; }
#game-root .region-map-label { fill: #263429; font-size: 48px; font-weight: 700; paint-order: stroke; stroke: #f5eedb; stroke-width: 8px; stroke-linejoin: round; pointer-events: none; }
#game-root .region-map-reserved { fill: #454b40; font-size: 31px; paint-order: stroke; stroke: #f2ecd9; stroke-width: 6px; pointer-events: none; }
#game-root .region-detail { background: #efe8d4; border-color: #b0a17b; padding: 14px; }
#game-root .region-detail h4 { color: #3b452d; font-size: 19px; margin: 0 0 8px; }
#game-root .region-sect-slots li { color: #38432c; font-size: 16px; padding: 9px 0; border-bottom: 1px solid #cec2a5; }
#game-root .region-sect-slot__specialty { color: #695535; font-size: 15px; }
#game-root .region-sect-slots .region-sect-slot__name,
#game-root .region-sect-slots .region-sect-slot__position { color: #35402b; -webkit-text-fill-color: #35402b; font-weight: 600; }
#game-root .region-sect-slots .region-sect-slot__specialty { -webkit-text-fill-color: #695535; }
#game-root .create-form input[type="text"],
#game-root .create-form input[name="playerName"] { background: #f2ecda; color: #303c2b; border: 1px solid #afa184; -webkit-text-fill-color: #303c2b; }
#game-root [data-role="create-panel"] h2,
#game-root [data-role="create-panel"] p,
#game-root .create-form > label { color: #3a422d; }
#game-root .region-selection-status:empty { display: none; }
@media (prefers-reduced-motion: reduce) { #game-root .region-map-piece { transition: none; } }
