/* G8L-108 World Tree portal: replaces the player-facing Quest page in the same nav slot. */
.legacy-retired, .legacy-retired[hidden] { display: none !important; }
.world-tree-window { display: grid; gap: 8px; }
.world-tree-intro { margin: 0 10px; font-size: 13px; }
.world-tree-portal { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; padding: 0 10px 12px; }
.world-tree-portal > button { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; text-align: left; min-width: 0; }
.world-tree-service-icon { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgb(201 163 90 / 22%); }
.world-tree-service-icon svg { width: 22px; height: 22px; }
.world-tree-service-text { display: grid; gap: 2px; min-width: 0; }
.world-tree-service-text b { font-size: 15px; }
.world-tree-service-text small { font-size: 12px; opacity: .85; overflow-wrap: anywhere; }
.world-tree-portal > button[disabled] { opacity: .6; }
@media (max-width: 420px) {
  .world-tree-portal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 8px 10px; }
  .world-tree-portal > button { flex-direction: column; align-items: flex-start; min-height: 88px; padding: 8px; }
}
/* G8L-197 bounded travel overlay for 「回世界樹」 and off-hub 轉蛋; below the arrival toast (1300). */
.world-tree-travel-overlay { position: fixed; inset: 0; z-index: 1250; display: grid; place-items: center; background: rgb(0 0 0 / 72%); color: #fff; touch-action: none; }
.world-tree-travel-overlay[hidden] { display: none; }
.world-tree-travel-overlay p { margin: 0; padding: 12px 18px; font-size: 16px; border: 1px solid #c9b780; background: #213329; }
@media (max-width: 420px) {
  #game .hunt-toolbar .hunt-actions .hunt-action { padding: 0 7px !important; font-size: 12px; }
}
