/* 開港の時間 (一覧の 23〜25・10-26・中身は open_hours_ui.js・サーバーが OPEN_HOURS=on の時だけ出る) */
/* 部屋の帯 (#roomBar) の中の 1 行: 残りの時間 / 開港中・部屋からできる事のボタン (波読み・ダンジョン)・目標の 1 行 */
#roomBar .ohRow {
  flex-basis: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding-top: 4px; margin-top: 2px; border-top: 1px solid var(--line); min-width: 0;
}
.ohNow { font-weight: bold; color: var(--ink); text-align: center; overflow-wrap: anywhere; }
.ohNow small { font-weight: normal; color: var(--sub); font-size: 14px; }
.ohBtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ohBtns .sbBtn { min-height: 44px; }
.ohGoal { font-size: 13px; line-height: 1.45; color: var(--sub); text-align: center; max-width: 34em; overflow-wrap: anywhere; }
.ohGoal.ohWarn { color: var(--warn); font-weight: bold; }
/* 時間外に部屋から出られない人: 「お部屋を出る」を隠す (サーバーも断る) */
body.ohStay #roomLeaveBtn { display: none; }

/* ダンジョンを選ぶ窓 */
#ohDlg {
  position: fixed; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 20, 30, 0.45); padding: 16px;
}
#ohDlg .card { max-height: calc(100% - 32px); overflow-y: auto; }
#ohDlg .dlgHead h2 { font-size: 21px; }
#ohDlg .ohNote { margin: 8px 0 12px; }
.ohList { display: grid; gap: 8px; }
.ohList .ohPick { min-height: 48px; white-space: normal; text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; overflow-wrap: anywhere; }

@media (max-width: 699px) {
  #roomBar .ohRow { gap: 3px; padding-top: 3px; }
  .ohNow { font-size: 15px; }
  .ohBtns { gap: 4px; }
  .ohBtns .sbBtn { min-height: 44px; padding: 2px 10px; font-size: 14px; }
  .ohGoal { font-size: 12px; }
  #ohDlg { padding: 8px; }
  #ohDlg .card { padding: 16px; }
}

/* 勉強の机の窓 (11-23・#ohDlg を使う・中の窓へ進んだ時は「← 戻る」) */
#ohDlg .dlgHead { gap: 8px; }
.ohHeadBtns { display: flex; gap: 6px; flex: none; }
.ohHeadBtns .pbtn { min-height: 44px; }
.ohList .ohPick small { font-weight: normal; color: var(--sub); font-size: 13px; line-height: 1.4; }
.ohBody:empty { display: none; }
.ohBody { margin-top: 10px; }
.ohFaq { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.ohFaq h3 { font-size: 17px; margin: 0 0 4px; }
.ohFaqRow { display: flex; gap: 6px; margin: 8px 0; }
.ohFaqRow input { flex: 1 1 auto; min-width: 0; min-height: 44px; font-size: 16px; padding: 4px 10px; border-radius: 10px; border: 2px solid var(--line); background: var(--card, #fff); color: var(--ink); }
.ohFaqRow .pbtn { min-height: 44px; flex: none; }
.ohFaqOut { line-height: 1.6; overflow-wrap: anywhere; }
.ohFaqOut h4 { font-size: 16px; margin: 6px 0 2px; }
.ohFaqOut p { margin: 4px 0; }
.ohFaqFoot { font-size: 12px; }
