/* モデレーター（ロビーの参加者からオーナーが選んだ人）の承認の画面。スマホ（index.html）と PC 参加者（pc.html）の右下に出る（js/moderation-ui.js）。 */
.moderation {
  --m-text: #25201d;
  --sub: #62564d;
  --line: #dcd2c5;
  position: fixed;
  inset-inline-end: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  color: var(--m-text);
}
.moderation[hidden] { display: none; }
.moderation-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #e1c8b6;
  border-radius: 999px;
  background: #fffdfa;
  color: #732e16;
  font-weight: 750;
  box-shadow: 0 4px 14px rgb(0 0 0 / .25);
}
.moderation-toggle .moderation-n { min-width: 1.6em; padding: 1px 6px; border-radius: 999px; background: #eae3d9; color: var(--m-text); text-align: center; }
.moderation-toggle.has .moderation-n { background: #a83a11; color: #fff; }
.moderation-panel {
  position: fixed;
  inset: 12px;
  overflow: auto;
  padding: 20px 20px 28px;
  border-radius: 16px;
  background: #f7f3eb;
  box-shadow: 0 8px 30px rgb(0 0 0 / .4);
}
@media (min-width: 900px) {
  .moderation-panel { inset: 24px 24px 24px auto; width: min(760px, calc(100vw - 48px)); }
}
.moderation-you { margin: 12px 0 0; color: var(--sub); }
.approval-close {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--m-text);
  font-weight: 700;
}
.approval-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 19px;
  border-bottom: 2px solid #bf461a;
}
.approval-header h2 {
  margin: 0 auto 0 0;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.18;
}
.approval-queue { display: grid; gap: 28px; padding-top: 25px; }
.approval-queue h3 { margin: 0 0 12px; font-size: 18px; }
.approval-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 16px; }
.approval-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdfa;
}
.approval-preview {
  display: grid;
  place-items: center;
  min-height: 200px;
  background: #eae3d9;
  color: var(--sub);
}
.approval-preview img {
  width: 100%;
  height: clamp(220px, 38vw, 360px);
  object-fit: contain;
}
.approval-details { padding: 15px 16px 16px; }
.approval-details h4, .approval-card h3 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.approval-details p { margin: 4px 0 0; color: var(--sub); overflow-wrap: anywhere; }
.approval-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 13px; }
.approval-yes, .approval-no {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 750;
  line-height: 1.25;
}
.approval-yes { background: #a83a11; color: #fff; }
.approval-yes:hover { background: #8d300f; }
.approval-no { background: #fbf2ef; border-color: #e3c7bf; color: #822c22; }
.approval-no:not(:disabled):hover { background: #f4e1da; }
.moderation button:focus-visible { outline: 2px solid #1a4d7a; outline-offset: 3px; }
.approval-empty {
  margin: 0;
  padding: 34px 22px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #fffaf4;
  text-align: center;
  color: var(--sub);
}
@media (max-width: 580px) {
  .moderation-panel { padding: 16px 14px 24px; }
  .approval-header { padding-bottom: 13px; }
  .approval-queue { padding-top: 19px; gap: 20px; }
}

@media (min-width: 850px) {
  .approval-queue:has(> section + section) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
}
.approval-next {
  grid-column: 1 / -1;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #e1c8b6;
  border-radius: 9px;
  background: #fff8ed;
  color: #732e16;
  font-weight: 750;
}
.approval-next:hover { background: #f6e8d9; }
/* 遊び手から外れていることの知らせ（スマホ・PC 参加者の見出しの下）。2026-11-20 */
.p-banner.mod-seat { background: #5b3d8a; color: #fff; }
