/* feedback.css — 感想・同意の帯・みんなの感想と対応（src/feedback/feedback_ui.js）の見た目。index.html・drill.html から読む */

/* 同意の帯（画面下・閉じられる。ゲームは止めない。出ている間は下に余白を取って手牌を隠さない） */
.fb-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  background: rgba(16, 32, 26, .96); color: #f3f3f3; font-size: 12px; line-height: 1.45;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 12px rgba(0,0,0,.4);
}
.fb-banner-text { flex: 1 1 auto; min-width: 0; }
.fb-banner-close {
  flex: none; background: #2c4a3d; color: #fff; border: 1px solid #4d7a65; border-radius: 6px;
  padding: 6px 12px; font-size: 13px; cursor: pointer;
}
body.fb-has-banner { padding-bottom: var(--fb-banner-h, 64px); }

/* ⚙ 設定の中の同意の文とボタン */
.fb-settings { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; }
.fb-consent-line { margin: 0; font-size: 11px; line-height: 1.5; color: #c9d6cf; }
.fb-settings-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* 重ね画面（index の #modal より上） */
.fb-modal {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
.fb-modal[hidden] { display: none; }
.fb-box {
  background: var(--panel, #fbfaf6); color: var(--ink, #222); border-radius: 14px;
  width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow: auto; -webkit-overflow-scrolling: touch;
  padding: 16px 18px;
}
.fb-box h2 { margin: 0 0 8px; font-size: 19px; }
.fb-lead, .fb-note { font-size: 13px; color: #555; margin: 4px 0 8px; line-height: 1.5; }
.fb-note { font-size: 12px; }
.fb-text {
  width: 100%; min-height: 120px; resize: vertical; font: inherit; font-size: 16px; /* 16px 未満だと iPhone が拡大する */
  padding: 8px; border: 1px solid #c9c3b2; border-radius: 8px; background: #fff; color: #222;
}
.fb-counter { text-align: right; font-size: 12px; color: #777; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.fb-check { display: flex; align-items: center; gap: 6px; font-size: 14px; margin: 4px 0; }
.fb-check input { width: 18px; height: 18px; }
.fb-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.fb-actions button {
  padding: 8px 16px; border-radius: 8px; border: 1px solid #b9b3a3; background: #f1eee5; color: #222; cursor: pointer; font-weight: 600;
}
.fb-actions button.fb-primary { border: none; background: #1f6a4a; color: #fff; }
.fb-actions button:disabled { opacity: .5; cursor: default; }

/* みんなの感想と対応 */
.fb-empty { color: #666; margin: 12px 0; }
.fb-items { list-style: none; margin: 0; padding: 0; }
.fb-item { border-bottom: 1px solid #e3e0d6; padding: 8px 0; }
.fb-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: #666; }
.fb-badge { border-radius: 4px; padding: 0 6px; font-weight: 700; color: #fff; background: #777; }
.fb-st-received { background: #6b7a8a; }
.fb-st-in_progress { background: #c08a12; }
.fb-st-fixed { background: #2e9e5b; }
.fb-st-held { background: #8a6b8a; }
.fb-sum { font-size: 14px; margin-top: 3px; overflow-wrap: anywhere; }
.fb-item-note { font-size: 12px; color: #555; margin-top: 2px; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .fb-banner { font-size: 11px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
  .fb-banner-close { padding: 6px 10px; }
  .fb-modal { padding: 8px; align-items: flex-start; }
  .fb-box { padding: 12px 12px; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .fb-actions button { flex: 1 1 auto; min-height: 40px; }
  .fb-settings-btns button { flex: 1 1 auto; }
}

/* ドリル画面: 画面の下に同意の文とボタン */
.fb-drill-host { max-width: 760px; margin: 16px auto 24px; padding: 0 12px; }
.fb-drill-host .fb-settings-btns button {
  background: #2c4a3d; color: #fff; border: 1px solid #4d7a65; border-radius: 6px; padding: 8px 12px; cursor: pointer; font-size: 14px;
}
