/* 札そら（かるた札暗記トレーニング）。配色・角丸・タップ領域は karuta_quiz / fudalog の style.css のトークンに合わせている。 */
:root {
  --color-bg: #f5f3ee;
  --color-surface: #ffffff;
  --color-text: #2a241c;
  --color-text-muted: #756b5c;
  --color-primary: #a8452f;
  --color-primary-dark: #8a3623;
  --color-ok: #2f6b4f;
  --color-ok-bg: #e6f1ea;
  --color-ng: #a8452f;
  --color-ng-bg: #f6e8e3;
  --color-near: #b8860b;
  --color-near-bg: #fbf1d9;
  --color-border: #ded7c9;
  --color-card-edge: #4a7c4a;
  --radius: 10px;
  --tap-min: 44px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  display: flex;
  align-items: center;
  background: var(--color-primary);
  padding: 0 16px;
}
.site-header a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.site-footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.site-footer__nav a {
  color: var(--color-text-muted);
}

.app {
  padding: 12px 12px 24px;
  max-width: 900px;
  margin: 0 auto;
}

h1.title {
  font-size: 1.2rem;
  margin: 4px 0 12px;
}
.app-tagline {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: -6px 0 14px;
}

.auth-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  margin-bottom: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.auth-banner__link {
  color: var(--color-primary);
  font-weight: bold;
  text-decoration: none;
}

.save-status {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-ok);
  margin-bottom: 12px;
}
.save-status--muted { color: var(--color-text-muted); }

.link-btn {
  display: block;
  width: 100%;
  min-height: var(--tap-min);
  margin-bottom: 14px;
  padding: 8px 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: bold;
  text-align: left;
  cursor: pointer;
}

/* ---------- 定位置エディタ ---------- */

.editor-progress {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}
.editor-complete {
  font-weight: bold;
  color: var(--color-ok);
  margin-bottom: 16px;
}

/* ステップ1：札を1枚ずつ大きく出し、6ブロックのどれかをタップして即登録する。 */
.flash-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-bottom: 16px;
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
}
.flash-card__label {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
}
.block-grid {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.block-grid__col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.block-btn {
  min-height: 64px;
  padding: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  touch-action: manipulation;
}
.block-btn:active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* 100枚を「むすめふさほせ」順に並べ、あとから個別にブロックを選び直せる一覧。 */
.editor-review {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.editor-review__title {
  font-size: 1rem;
  margin: 0 0 4px;
}
.editor-review__hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0 0 10px;
}
.editor-review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.editor-review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
}
.editor-review-row:last-child { border-bottom: none; }
.editor-review-row__label {
  font-weight: bold;
  letter-spacing: 1px;
}
.editor-review-row__select {
  min-height: 36px;
  padding: 0 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.85rem;
}

.editor-block { margin-bottom: 18px; }
.editor-block__title {
  font-size: 0.95rem;
  margin: 0 0 6px;
}
.sortable-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sortable-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap-min);
  padding: 6px 10px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  font-weight: bold;
  user-select: none;
  /* カードのどこを触ってもドラッグを開始できるようにする（持ち手アイコンは目印として残すだけ）。 */
  cursor: grab;
  touch-action: none;
}
.sortable-item:last-child { border-bottom: none; }
.sortable-item__handle {
  color: var(--color-text-muted);
  font-size: 1.2rem;
  line-height: 1;
  padding: 4px 6px;
}
.is-dragging {
  opacity: 0.5;
  background: var(--color-bg);
}

/* ---------- 並び順編集：タブ切り替え ---------- */
.editor-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.editor-tab {
  flex: 1 1 0;
  min-height: var(--tap-min);
  padding: 0 10px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  touch-action: manipulation;
}
.editor-tab--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ---------- 並び順編集：札を見ながら並び替え（札表示モード） ---------- */
.block-switch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.block-switch-btn {
  min-height: 44px;
  padding: 4px 6px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  touch-action: manipulation;
}
.block-switch-btn--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.visual-sortable-scroll {
  overflow-x: auto;
  padding-bottom: 10px;
  margin: 0 -8px 8px;
  padding-left: 8px;
  padding-right: 8px;
}
.visual-sortable-list {
  display: flex;
  gap: 6px;
  min-height: var(--vs-tile-h, 86px);
}
.visual-sortable-item {
  --tile-w: var(--vs-tile-w, 56px);
  --tile-h: var(--vs-tile-h, 86px);
  --shimo-font: var(--vs-shimo-font, 13px);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

/* 札専用の横スクロールバー。札自体は並び替えのドラッグに使うため横スクロールできない
   （上のtouch-action: none）代わりに、ここをドラッグすればスクロールできる。 */
.visual-scrollbar {
  position: relative;
  height: 18px;
  margin-bottom: 10px;
  background: var(--color-border);
  border-radius: 9px;
  cursor: grab;
  touch-action: none;
}
.visual-scrollbar__thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 32px;
  background: var(--color-primary);
  border-radius: 9px;
}
.editor-progress--hint {
  margin-top: -4px;
}

/* ---------- 共通パーツ ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:active { background: var(--color-primary-dark); }
.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--block { display: flex; width: 100%; }

.field {
  margin-bottom: 18px;
}
.field__label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}
.field__hint {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.option-btn {
  min-height: var(--tap-min);
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.95rem;
  cursor: pointer;
  /* 連打時にダブルタップ拡大ジェスチャーとして誤認識されるのを防ぐ
     （+1分/-1分等を連続タップすると画面が拡大縮小してしまう不具合の対処）。 */
  touch-action: manipulation;
}
.option-btn[aria-pressed="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: bold;
}

/* タイマーらしい見た目の枠（暗記時間の設定・実行中の残り/経過時間で共通利用）。
   表記自体は引き続き「M分S秒」（formatDuration）のまま、枠で囲んで目立たせるだけにする。 */
.timer-clock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--color-primary);
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  line-height: 1;
}
.timer-clock--lg {
  display: flex; /* width:fit-contentと組み合わせてmargin:autoで中央寄せするため、inline-flexではなくflexにする */
  width: fit-content;
  font-size: 1.8rem;
  padding: 8px 22px;
  margin: 6px auto 10px;
  min-width: 140px;
}
.duration-steps {
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.duration-steps .option-btn {
  min-width: 44px;
  min-height: 34px;
  padding: 0 8px;
  font-size: 0.82rem;
}

/* ---------- 暗記/テスト共通の上部バー ---------- */

.back-link {
  display: flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 0 4px;
  margin-bottom: 4px;
  border: none;
  background: none;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  cursor: pointer;
}
.back-link:active { color: var(--color-primary); }

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.status-bar__item { text-align: center; }
.status-bar__value {
  display: block;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--color-primary);
}
.status-bar__label { color: var(--color-text-muted); font-size: 0.75rem; }
.timer-clock--sm {
  display: inline-flex; /* .status-bar__value の display:block を上書きし、幅を内容にフィットさせる */
  font-size: 1.05rem;
  padding: 3px 10px;
  border-width: 1px;
  border-radius: 6px;
}

.question-bar {
  text-align: center;
  font-size: 1.15rem;
  font-weight: bold;
  padding: 10px;
  margin-bottom: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.question-bar__answer { color: var(--color-primary); }

.feedback {
  text-align: center;
  min-height: 1.4em;
  font-weight: bold;
  margin-bottom: 6px;
}
.feedback--ok { color: var(--color-ok); }
.feedback--ng { color: var(--color-ng); }
.feedback--near { color: var(--color-near); }

/* ---------- 盤面（board） ---------- */
/* 各レイアウトは --row-gap / --card-gap / --side-gap / --tile-w / --tile-h をCSS変数で切り替えるだけ。
   行・位置・左右のデータ構造(row/position/side)は共通で、見た目だけが変わる。
   競技かるたの自陣は上段・中段・下段のそれぞれが左陣・右陣に分かれるため、
   1段は .board__half--left / .board__half--right の2グループとして描画する。 */

.board {
  display: flex;
  flex-direction: column;
  gap: var(--row-gap, 20px);
  width: 100%;
  margin: 0 auto;
  /* 定位置配置は1ブロックあたり最大9枚まで許容しており、1段(左右合計)では最大18枚になりうる。
     通常はここまで偏らないはずだが、万一その段が画面幅に収まりきらない場合でも札を見失わない
     ようにする安全策として、横スクロールできるようにしておく（通常は表示されない）。 */
  overflow-x: auto;
}

/* 両陣モード：相手陣(上)と自陣(下)を並べる。陣同士の間は各陣内の段の間隔よりはっきり空ける。 */
.board-groups {
  display: flex;
  flex-direction: column;
}
.board-groups--both {
  gap: 28px;
}
.board-group {
  width: 100%;
}

/* 相手陣モード：段(上中下)も左右も含めて盤面全体を180度回転させるだけで、
   実際に対面から見た「相手陣」の見え方（上下逆・左右逆）を再現できる。 */
.board--flipped {
  transform: rotate(180deg);
}
.board__row {
  display: flex;
  justify-content: space-between;
  gap: var(--side-gap, 20px);
  /* 定位置配置だと段によっては札が0枚のことがある（中段が空、など）。
     中身が無いと高さが潰れて隣の段とくっついてしまうので、札1枚ぶんの
     高さを常に確保しておく（自陣・相手陣あわせて常に6段ぶんのスペースになる）。 */
  min-height: var(--tile-h, 108px);
}
.board__half {
  display: flex;
  gap: var(--card-gap, 4px);
}

/* 札は行によらず常に同じサイズ（実物の札が段ごとに大きさを変えないのと同じ）。
   決まり字は縦書きなので、6文字（大山札）が収まる縦長の箱にする。 */
.slot {
  flex: 0 0 auto;
  width: var(--tile-w, 32px);
  height: var(--tile-h, 112px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-weight: bold;
  user-select: none;
  overflow: hidden;
}
.slot__label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 1px;
  font-size: var(--tile-font, 15px);
  line-height: 1.15;
}

/* 札表示モード（下の句を実物の取り札と同じ3列縦書きで表示）。
   列0(右端)→列2(左端)の順にDOMへ並べ、row-reverseで実際の右→左の列送りにする。 */
.slot__columns {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  height: 100%;
  gap: 1px;
}
.slot__column {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0;
  line-height: 1;
  font-size: var(--shimo-font, 8px);
  white-space: nowrap;
  /* font-gallery/ での比較の結果、実物の取り札の字形に最も近いとして選ばれたフォント。 */
  font-family: 'Zen Old Mincho', serif;
  font-weight: 700;
}
/* 実物の取り札っぽく：角を四角に、縁を細い緑にする（決まり字表示モードの丸角・ベージュ縁は変えない） */
.slot--shimo {
  border-radius: 0;
  border-width: 1px;
  border-color: var(--color-card-edge);
}
.slot--empty { color: transparent; }
.slot--tappable { cursor: pointer; touch-action: manipulation; }
.slot--tappable:active { transform: scale(0.96); }
.slot--correct {
  background: var(--color-ok-bg);
  border-color: var(--color-ok);
  color: var(--color-ok) !important;
}
.slot--wrong {
  background: var(--color-ng-bg);
  border-color: var(--color-ng);
}
.slot--near {
  background: var(--color-near-bg);
  border-color: var(--color-near);
}

/* A. 縦画面・一画面表示（3段、自陣っぽい構造） */
.board--portrait {
  --row-gap: 18px;
  --card-gap: 4px;
  --side-gap: 16px;
  --tile-w: 32px;
  --tile-h: 108px;
  --tile-font: 14px;
}

/* B. 横画面・実戦寄せ（横に広い比率。札自体の大きさはAと同じで、間隔だけ実戦の自陣比率に近づける）
   max-widthは「1段に定位置の最大想定(片側9枚×2=18枚)が来ても収まる」広さを確保している
   （tile-w 32px・card-gap 6px・side-gap 32pxで計算すると18枚で約704px必要なため、余裕を見て760px）。 */
.board--landscape {
  --row-gap: 12px;
  --card-gap: 6px;
  --side-gap: 32px;
  --tile-w: 32px;
  --tile-h: 108px;
  --tile-font: 14px;
  max-width: 760px;
}

/* 札表示モード: 左右の余白を少し切り詰めて盤面の使える幅を広げる（.appの左右paddingぶんを打ち消す）。 */
.board--shimo {
  margin-left: -8px;
  margin-right: -8px;
  width: calc(100% + 16px);
}

/* 札表示モード（A/Bのみ）: 縦横比を実物の取り札と同じ 160:224 (5:7) に固定した上で、
   ブロック内の札同士の間隔(--card-gap)を詰め、ブロック間の間隔(--side-gap)は
   触れない程度に残しつつ縮め、その分 --tile-w を今の制約の中で最大化する。
   横幅が上がった分フォント(--shimo-font)も大きくできる。 */
.board--portrait.board--shimo,
.board--landscape.board--shimo {
  --card-gap: 0px;
  --side-gap: 12px;
  --tile-w: 38px;
  --shimo-font: 10px;
  /* --tile-hも上書きしておくことで、.slotだけでなく.board__rowのmin-height
     （札が0枚の段でも高さを確保する仕組み）にも正しい高さが伝わる。 */
  --tile-h: calc(var(--tile-w) * 224 / 160);
}

/* C. 縦画面・コンパクト表示（タップしやすさ優先。左右分割はせず1段を1つの折り返しグリッドとして扱う） */
.board--compact {
  --row-gap: 16px;
  --card-gap: 8px;
}
.board--compact .board__row {
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--card-gap, 8px);
}
.board--compact .board__half {
  display: contents;
}
.board--compact .slot {
  width: auto;
  height: auto;
  flex: 1 1 28%;
  min-width: 64px;
  max-width: 150px;
  aspect-ratio: 3 / 1.6;
}
.board--compact .slot__label {
  writing-mode: horizontal-tb;
  letter-spacing: normal;
  font-size: clamp(0.75rem, 4vw, 1.1rem);
}

/* ---------- 結果画面 ---------- */

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.result-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
}
.result-card--wide { grid-column: 1 / -1; }
.result-card__value {
  display: block;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-primary);
}
.result-card__label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group-breakdown {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 20px;
}
.group-breakdown__title {
  font-size: 0.95rem;
  margin: 4px 0 8px;
}
.group-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.group-row:first-of-type { border-top: none; }
.group-row__label { font-weight: bold; }
.group-row__value { color: var(--color-text-muted); }

/* ---------- 過去の記録 ---------- */

.history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.history-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 45%;
  min-width: 130px;
}
.history-filter__label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.history-filter select,
.history-filter input {
  min-height: var(--tap-min);
  padding: 4px 6px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.9rem;
}
/* スマホ（iOS等）のブラウザは未入力の日付欄に今日の日付を表示するため、
   未指定の間は文字を隠して「指定なし」を出す（実際の値は空のまま）。 */
@media (hover: none) {
  .history-filter input[type="date"].is-empty {
    color: transparent;
    position: relative;
  }
  .history-filter input[type="date"].is-empty::before {
    content: '指定なし';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
  }
}

.history-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 16px;
}
.history-section__title {
  font-size: 0.95rem;
  margin: 4px 0 8px;
}
.history-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
}
.history-row:first-of-type { border-top: none; }
.history-row__label { font-weight: bold; white-space: nowrap; }
.history-row__value { color: var(--color-text-muted); text-align: right; }
.history-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--color-border);
}
.history-pagination__btn {
  min-height: 36px;
  padding: 0 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  touch-action: manipulation;
}
.history-pagination__btn:disabled {
  color: var(--color-text-muted);
  border-color: var(--color-border);
  opacity: 0.5;
  cursor: default;
}
.history-pagination__label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.history-empty {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 8px 0;
}

/* ---------- 暗記中の一時停止 ---------- */
.status-bar .btn {
  padding: 8px 12px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.pause-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 24px 16px;
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  text-align: center;
}
.pause-cover__title {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-primary);
}
.pause-cover__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- フィードバック画面（feedback.html） ---------- */
.feedback-textarea {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  resize: vertical;
}
.feedback-msg {
  margin: 0 0 12px;
  padding: 10px;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.feedback-msg--ok { background: var(--color-ok-bg); color: var(--color-ok); }
.feedback-msg--ng { background: var(--color-ng-bg); color: var(--color-ng); }
.feedback-msg[hidden] { display: none; }
.feedback-note {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.feedback-note a { color: var(--color-primary); }
