/* TOPとビューワーで共通の土台（配色・ユーザー選択モーダル・ユーザーchip） */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #0f0f0f;
  color: #ddd;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ユーザー選択モーダル */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;   /* 既定は非表示。JSが開く（JSが死んでも画面を塞がないため） */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal {
  background: #1a1a1a;
  border: 1px solid #2e2e2e;
  border-radius: 14px;
  padding: 44px 40px;
  text-align: center;
  min-width: 300px;
}
.modal h2 { font-size: 1.15rem; color: #fff; margin-bottom: 8px; }
.modal p  { font-size: 0.82rem; color: #555; margin-bottom: 32px; }
.user-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.user-btn {
  background: #252525;
  color: #ddd;
  border: 1px solid #3a3a3a;
  padding: 13px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.12s;
}
.user-btn:hover { background: #333; color: #fff; }

/* 右上のユーザー表示（押すと切り替え） */
.user-chip {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 0.78rem;
  color: #777;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.user-chip:hover { background: #272727; color: #aaa; }

.title { font-size: 0.95rem; font-weight: bold; color: #fff; white-space: nowrap; }
.spacer { flex: 1; }
