/* 只调整新增冒险入口，不覆盖原任务与奖励组件。 */
#adventure-view { min-width: 0; }
/* 页脚不可盖住应用内的固定导航和日期工具条。 */
.app-shell { z-index: 2; }
/* 设置页底部导入操作允许换行，避免按钮被压成单字竖排。 */
#project-view .import-entry { flex-wrap: wrap; gap: 10px; }
#project-view .import-entry > a,
#project-view .import-entry > button { flex: 0 0 auto; white-space: nowrap; }
#project-view .import-entry > input,
#project-view .import-entry > select { flex: 1 1 180px; min-width: 0; max-width: 100%; }
/* 横屏滚动时，固定品牌区不得伸入正文列。 */
.header-welcome, #header-tutorial-slot { display:contents; }
.header-welcome-planet, #header-welcome-message { display:none; }
@media (min-width: 768px) and (orientation: landscape), (min-width: 1025px) {
  /* 顶部操作区与首页今日概览采用相同的双列比例和间距。 */
  .topbar { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(320px,.85fr); gap:18px; }
  .top-actions { grid-column:2; width:100%; min-width:0; flex-wrap:wrap; justify-content:space-between; }
  .top-actions > button { flex:1 1 auto; }
  .header-welcome { grid-column:1; grid-row:1; min-width:0; display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:8px 4px; }
  .header-welcome-planet { display:block; width:34px; height:34px; flex:none; filter:drop-shadow(0 0 8px #79dce744); }
  #header-welcome-message { display:block; flex:1 1 140px; min-width:0; margin:0; color:#d7ecf8; font-size:18px; font-weight:700; line-height:1.6; overflow-wrap:anywhere; }
  #header-tutorial-slot { display:block; flex:none; margin-left:auto; }
  .top-actions { grid-row:1; }
  .brand-heading { width: 192px; padding: 10px; gap: 8px; }
  .brand-heading > div { min-width: 0; }
  .brand-heading #site-title { white-space: normal; font-size: 1.2rem; line-height: 1.4; }
  .brand-heading #site-title > span { display: block; white-space: nowrap; }
  .brand-heading .brand-planet { width: 38px; height: 38px; flex: none; }
}
/* 浏览器验收发现平板竖屏标题与家长工具挤在一行，分行保留原入口。 */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .topbar { flex-direction: column; align-items: stretch; gap: 14px; }
  .brand-heading { min-height: 62px; padding-right: 105px; }
  .top-actions { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  .top-actions > button { flex: 1 1 auto; }
  .top-actions .balance { flex: 1 1 85px; }
  #site-title { font-size: clamp(1.5rem, 3vw, 1.9rem); }
}
#nav-adventure img { width: 28px; height: 28px; object-fit: contain; }
#site-title > span { white-space: nowrap; }
.rpg-parent-shortcut { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 14px; border: 1px solid #526c9b; border-radius: 16px; background: #1a2c50; color: #e8efff; }
.rpg-parent-shortcut button { flex: none; min-height: 44px; }
@media (max-width: 767px) {
  .page-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #nav-adventure { display: flex; }
  #adventure-view { padding: 12px; }
  .rpg-parent-shortcut { flex-wrap: wrap; }
}
