/* ==========================================================================
   minimal.css — минималистичный стиль
   Спокойный светлый интерфейс: почти белый фон, тонкие серые границы,
   много воздуха, минимум декора, чёткая типографика и один сдержанный
   акцентный цвет.
   Включается автоматически при <body data-theme="minimal">.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Токены темы
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface2: #f6f7f9;
  --surface3: #eceef2;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e3e6ea;
  --gold: #35618c;
  --gold2: #6d94b5;
  --red: #b23a48;
  --green: #2f7a4d;
  --blue: #3b6ea5;
  --shadow: 0 1px 2px rgba(20, 26, 36, .06);
  --radius: 10px;
}

/* --------------------------------------------------------------------------
   2. Фон страницы и скроллбары
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] {
  background-color: var(--bg) !important;
  background-image: linear-gradient(180deg, #fbfbfc, #f1f2f5) !important;
  background-attachment: fixed;
}

body[data-theme="minimal"] * {
  scrollbar-color: #c8ccd2 transparent;
}

body[data-theme="minimal"] *::-webkit-scrollbar-thumb {
  background: #c8ccd2;
  border-radius: 999px;
}

body[data-theme="minimal"] *::-webkit-scrollbar-thumb:hover {
  background: #a8aeb7;
}

/* --------------------------------------------------------------------------
   3. Верхняя панель, логотип, навигация
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] .app {
  max-width: 1420px;
  padding: 26px clamp(14px, 2vw, 32px) 48px;
}

body[data-theme="minimal"] .topbar {
  padding: 2px 0 22px;
  border-bottom: 1px solid var(--line);
}

body[data-theme="minimal"] .brand {
  gap: 14px;
}

body[data-theme="minimal"] .brand h1 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-shadow: none;
}

body[data-theme="minimal"] .brand h1 span {
  color: var(--gold) !important;
  text-shadow: none;
}

body[data-theme="minimal"] .brand p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

body[data-theme="minimal"] .mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: none;
  transform: none;
}

body[data-theme="minimal"] .mark img {
  border-radius: 9px;
}

body[data-theme="minimal"] .nav {
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  backdrop-filter: none;
  box-shadow: none;
}

body[data-theme="minimal"] .nav button {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 14px;
  color: var(--muted);
  font-weight: 550;
  font-size: 13px;
}

body[data-theme="minimal"] .nav button:hover {
  background: var(--surface2);
  border-color: var(--line);
  color: var(--ink);
}

body[data-theme="minimal"] .nav button.active {
  background: var(--gold) !important;
  color: #ffffff !important;
  border-color: var(--gold) !important;
  box-shadow: none !important;
  font-weight: 650;
}

/* --------------------------------------------------------------------------
   4. Кнопки: плоско, аккуратно, без теней
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] button {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  font-weight: 550;
  transition: background .14s, border-color .14s, color .14s;
}

body[data-theme="minimal"] button:hover {
  background: var(--surface2);
  border-color: #c6cbd2;
  color: var(--ink);
}

body[data-theme="minimal"] button:active {
  background: var(--surface3);
  box-shadow: none;
}

body[data-theme="minimal"] .primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
  font-weight: 600;
}

body[data-theme="minimal"] .primary:hover {
  background: #2c5377;
  border-color: #2c5377;
  color: #ffffff;
}

body[data-theme="minimal"] .danger {
  color: var(--red);
  border-color: #e6c3c8;
  background: #fdf5f6;
}

body[data-theme="minimal"] .danger:hover {
  background: #fbe9eb;
  border-color: var(--red);
  color: var(--red);
}

body[data-theme="minimal"] .success {
  color: var(--green);
  border-color: #c3ded0;
  background: #f3faf6;
}

body[data-theme="minimal"] .success:hover {
  background: #e9f6ef;
  border-color: var(--green);
  color: var(--green);
}

body[data-theme="minimal"] .subtle {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  box-shadow: none;
}

body[data-theme="minimal"] .subtle:hover {
  background: var(--surface2);
  border-color: var(--line);
  color: var(--ink);
}

body[data-theme="minimal"] .tiny {
  padding: 5px 10px;
  font-size: 12px;
}

body[data-theme="minimal"] .top-actions button {
  border-radius: 8px;
}

body[data-theme="minimal"] #newTournament {
  background: #ffffff;
  border-color: #e6c3c8;
  color: var(--red);
}

/* --------------------------------------------------------------------------
   5. Поля ввода
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] input,
body[data-theme="minimal"] select,
body[data-theme="minimal"] textarea {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

body[data-theme="minimal"] input::placeholder,
body[data-theme="minimal"] textarea::placeholder {
  color: #a3a9b3;
}

body[data-theme="minimal"] input:hover,
body[data-theme="minimal"] select:hover,
body[data-theme="minimal"] textarea:hover {
  border-color: #c6cbd2;
}

body[data-theme="minimal"] input:focus,
body[data-theme="minimal"] select:focus,
body[data-theme="minimal"] textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(53, 97, 140, .12);
}

body[data-theme="minimal"] label {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
}

body[data-theme="minimal"] .field {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   6. Панели, карточки, статистика
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

body[data-theme="minimal"] .panel:hover {
  border-color: #d5d9df;
  box-shadow: var(--shadow);
}

body[data-theme="minimal"] .panel h3 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.005em;
}

body[data-theme="minimal"] .panel-head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

body[data-theme="minimal"] .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

body[data-theme="minimal"] .stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 14px 16px;
}

body[data-theme="minimal"] .stat .v {
  color: var(--ink);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -.02em;
}

body[data-theme="minimal"] .stat:nth-child(1) .v { color: var(--green); }
body[data-theme="minimal"] .stat:nth-child(2) .v { color: var(--red); }
body[data-theme="minimal"] .stat:nth-child(3) .v { color: var(--gold); }
body[data-theme="minimal"] .stat:nth-child(4) .v { color: var(--blue); }

body[data-theme="minimal"] .stat .k {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
}

body[data-theme="minimal"] .stat .hintline {
  color: var(--muted);
}

body[data-theme="minimal"] .eyebrow {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

body[data-theme="minimal"] .pagehead {
  margin: 4px 0 22px;
}

body[data-theme="minimal"] .pagehead h2 {
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 650;
  letter-spacing: -.02em;
}

body[data-theme="minimal"] .pagehead p {
  color: var(--muted);
  line-height: 1.6;
}

body[data-theme="minimal"] .footer {
  color: #98a0ab;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 26px;
}

/* --------------------------------------------------------------------------
   7. Аватары и карточки игроков
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] .avatar {
  background: var(--surface3);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #59616d;
  box-shadow: none;
}

body[data-theme="minimal"] .avatar img {
  border-radius: inherit;
}

body[data-theme="minimal"] .person-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
}

body[data-theme="minimal"] .person-row:hover {
  border-color: #d5d9df;
  background: #fcfcfd;
}

body[data-theme="minimal"] .person-row .person-title {
  color: var(--ink);
  font-weight: 650;
}

body[data-theme="minimal"] .person-row .person-sub {
  color: var(--muted);
}

body[data-theme="minimal"] .players-list,
body[data-theme="minimal"] #playersList {
  gap: 8px;
}

body[data-theme="minimal"] .player-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   8. Игровое поле
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] .table-area {
  background:
    linear-gradient(90deg, rgba(20, 26, 36, .035) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(rgba(20, 26, 36, .035) 1px, transparent 1px) 0 0 / 46px 46px,
    #fbfbfc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

body[data-theme="minimal"] .table-area:before {
  border: 1px solid #eceef1;
  border-radius: 8px;
}

body[data-theme="minimal"] .felt {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20, 26, 36, .05);
  color: var(--ink);
  border-radius: 50%;
}

body[data-theme="minimal"] .felt strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
}

body[data-theme="minimal"] .felt span {
  color: var(--muted);
  font-size: 10px;
}

body[data-theme="minimal"] #seatLayer {
  z-index: 2;
}

body[data-theme="minimal"] .seat {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  backdrop-filter: none;
  box-shadow: 0 1px 2px rgba(20, 26, 36, .05);
}

body[data-theme="minimal"] .seat:hover {
  border-color: #c6cbd2;
  background: #fcfcfd;
}

body[data-theme="minimal"] .seat.selected {
  background: #eef4f9;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(53, 97, 140, .14);
}

body[data-theme="minimal"] .seat.dead {
  opacity: .45;
  filter: grayscale(.8);
}

body[data-theme="minimal"] .seat.dead .avatar {
  border-color: var(--red);
}

body[data-theme="minimal"] .seat .pname {
  display: block;
  color: var(--ink);
  font-weight: 650;
}

body[data-theme="minimal"] .seat .pnum {
  display: block;
  color: var(--muted);
}

body[data-theme="minimal"] .seat .prole {
  display: block;
  color: var(--gold);
  font-weight: 600;
}

body[data-theme="minimal"] .seat .deathmark {
  color: var(--red);
  font-weight: 700;
}

body[data-theme="minimal"] .empty-table {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   9. Пульт ведущего
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] #controlContent,
body[data-theme="minimal"] .control-content {
  gap: 12px;
}

body[data-theme="minimal"] .turn-banner {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 10px;
  box-shadow: none;
  padding: 16px;
}

body[data-theme="minimal"] .turn-banner .title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
}

body[data-theme="minimal"] .turn-banner .subtitle {
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
}

body[data-theme="minimal"] .turn-banner .instruction {
  color: var(--muted);
  line-height: 1.55;
}

body[data-theme="minimal"] .note {
  background: var(--surface2);
  border: 1px solid var(--line);
  color: #3d4550;
  border-radius: 10px;
  line-height: 1.55;
}

body[data-theme="minimal"] .note.info {
  background: #f3f7fb;
  border-color: #d5e3f0;
  color: #2f4a63;
}

body[data-theme="minimal"] .note.warn {
  background: #fdf5f6;
  border-color: #ecd3d6;
  color: #7d333d;
}

body[data-theme="minimal"] .note.good {
  background: #f2f9f5;
  border-color: #d0e6da;
  color: #2c5d43;
}

body[data-theme="minimal"] .section-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

body[data-theme="minimal"] .sep,
body[data-theme="minimal"] .divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

body[data-theme="minimal"] .target {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

body[data-theme="minimal"] .target:hover {
  border-color: #c6cbd2;
}

body[data-theme="minimal"] .target.selected {
  background: #eef4f9;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(53, 97, 140, .18);
}

body[data-theme="minimal"] .target .target-meta {
  color: var(--muted);
}

body[data-theme="minimal"] .vote-row {
  border-bottom: 1px solid var(--line);
}

body[data-theme="minimal"] .bar {
  background: var(--surface3);
  border-radius: 999px;
}

body[data-theme="minimal"] .bar > span {
  background: var(--gold);
}

/* --------------------------------------------------------------------------
   10. Таймер
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] .timerbox {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
  padding: 16px;
}

body[data-theme="minimal"] .timer-clock {
  color: var(--ink);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: .01em;
}

body[data-theme="minimal"] .timer-caption {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   11. Турнирная сетка и таблицы
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] .bracket {
  gap: 12px;
}

body[data-theme="minimal"] .bracket-stage {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 14px;
}

body[data-theme="minimal"] .bracket-stage h4 {
  color: var(--ink);
  font-weight: 650;
}

body[data-theme="minimal"] .bracket-stage p {
  color: var(--muted);
}

body[data-theme="minimal"] .bracket-stage > .pill,
body[data-theme="minimal"] .bracket-stage-head > .pill {
  align-self: flex-start;
}

body[data-theme="minimal"] .bracket-stage .counter {
  color: var(--gold);
  font-weight: 650;
}

body[data-theme="minimal"] .table-mini {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}

body[data-theme="minimal"] .table-mini-head h4 {
  color: var(--ink);
  font-weight: 650;
}

body[data-theme="minimal"] .table-mini .mini-stats {
  color: var(--muted);
}

body[data-theme="minimal"] .group-card,
body[data-theme="minimal"] .rule-row,
body[data-theme="minimal"] .role-order {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

body[data-theme="minimal"] .rule-row p {
  color: var(--muted);
}

body[data-theme="minimal"] #resultsTable td,
body[data-theme="minimal"] #resultsTable th,
body[data-theme="minimal"] .roster-table td,
body[data-theme="minimal"] .roster-table th {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
}

body[data-theme="minimal"] .roster-table th {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .06em;
  background: var(--surface2);
}

body[data-theme="minimal"] #resultsTable tr:hover td,
body[data-theme="minimal"] .roster-table tbody tr:hover td {
  background: var(--surface2);
}

body[data-theme="minimal"] #resultsTable td strong {
  color: var(--ink);
  font-weight: 650;
}

/* --------------------------------------------------------------------------
   12. Журнал событий
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] .timeline {
  gap: 8px;
}

body[data-theme="minimal"] .event {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
}

body[data-theme="minimal"] .event:hover {
  border-color: #d5d9df;
}

body[data-theme="minimal"] .event-time {
  color: var(--muted);
  font-weight: 600;
  font-size: 10px;
}

body[data-theme="minimal"] .event-text {
  color: var(--ink);
}

body[data-theme="minimal"] .event-text small {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   13. Уведомления и модальные окна
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] .toast {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(20, 26, 36, .1);
}

body[data-theme="minimal"] .modal-wrap {
  background: rgba(30, 35, 43, .38);
  backdrop-filter: blur(3px);
}

body[data-theme="minimal"] .modal-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(20, 26, 36, .16);
  color: var(--ink);
  padding: 20px;
}

body[data-theme="minimal"] .modal-top h3 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
}

body[data-theme="minimal"] .modal-top p {
  color: var(--muted);
}

body[data-theme="minimal"] .camera-frame {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
}

body[data-theme="minimal"] .camera-placeholder {
  color: var(--muted);
}

body[data-theme="minimal"] .camera-placeholder strong {
  color: var(--ink);
}

body[data-theme="minimal"] .share-step {
  border-bottom: 1px solid var(--line);
}

body[data-theme="minimal"] .share-step p {
  color: var(--muted);
}

body[data-theme="minimal"] .share-step > span {
  background: var(--surface3);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   14. Пилюли и подсветки ролей
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] .pill {
  background: var(--surface3);
  color: #5b636e;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: .04em;
}

body[data-theme="minimal"] .pill.gold {
  background: #eef4f9;
  color: var(--gold);
  border-color: #d8e5f0;
}

body[data-theme="minimal"] .pill.red {
  background: #fbeef0;
  color: var(--red);
  border-color: #f0d8dc;
}

body[data-theme="minimal"] .pill.green {
  background: #eef7f2;
  color: var(--green);
  border-color: #d3e8dc;
}

body[data-theme="minimal"] .pill.blue {
  background: #eef3fa;
  color: var(--blue);
  border-color: #d8e2f0;
}

body[data-theme="minimal"] .role-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
}

body[data-theme="minimal"] .role-tile .role-icon {
  font-size: 22px;
  filter: none;
}

body[data-theme="minimal"] .role-tile h4 {
  color: var(--ink);
  font-weight: 650;
}

body[data-theme="minimal"] .role-tile p {
  color: var(--muted);
}

body[data-theme="minimal"] #roleGuide,
body[data-theme="minimal"] .role-guide {
  gap: 10px;
}

/* --------------------------------------------------------------------------
   15. Вкладка «Сюжеты»
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] .story-hub {
  gap: 20px;
}

body[data-theme="minimal"] .story-hub-head {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

body[data-theme="minimal"] .story-hub-head h2 {
  color: var(--ink);
  font-weight: 650;
}

body[data-theme="minimal"] .story-hub-head p {
  color: var(--muted);
  line-height: 1.65;
}

body[data-theme="minimal"] .story-switch {
  gap: 12px;
}

body[data-theme="minimal"] .story-mode-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
}

body[data-theme="minimal"] .story-mode-btn:hover {
  transform: none;
  border-color: #c6cbd2;
  background: #fcfcfd;
  box-shadow: none;
}

body[data-theme="minimal"] .story-mode-btn.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

body[data-theme="minimal"] .story-mode-btn b {
  color: var(--ink);
  font-weight: 650;
}

body[data-theme="minimal"] .story-mode-btn small {
  color: var(--muted);
}

body[data-theme="minimal"] .story-mode-art {
  border: 1px solid var(--line);
  border-radius: 8px;
  filter: none;
}

body[data-theme="minimal"] .story-empty {
  background: var(--surface);
  border: 1px dashed #d5d9df;
  border-radius: var(--radius);
  padding: 52px 24px;
}

body[data-theme="minimal"] .story-empty h3 {
  color: var(--ink);
}

body[data-theme="minimal"] .story-empty p {
  color: var(--muted);
  line-height: 1.7;
}

body[data-theme="minimal"] .story-empty-note b {
  color: var(--gold);
}

body[data-theme="minimal"] .story-panel {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   16. Панель резерва
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] .reserve-panel {
  border-color: var(--line);
}

body[data-theme="minimal"] .reserve-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}

body[data-theme="minimal"] .reserve-row:hover {
  border-color: #d5d9df;
  background: #fcfcfd;
}

body[data-theme="minimal"] .reserve-person {
  color: var(--ink);
}

body[data-theme="minimal"] .reserve-meta strong {
  color: var(--ink);
  font-weight: 650;
}

body[data-theme="minimal"] .reserve-meta small,
body[data-theme="minimal"] .reserve-label {
  color: var(--muted);
}

body[data-theme="minimal"] .reserve-btn {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

body[data-theme="minimal"] .reserve-btn:hover {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  background: #f2f7fb;
}

body[data-theme="minimal"] .reserve-empty {
  background: var(--surface2);
  border: 1px dashed #d5d9df;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   17. Индикатор связи
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] .sync-badge {
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  border-radius: 8px !important;
  font-weight: 550;
}

body[data-theme="minimal"] .sync-badge:hover {
  border-color: #c6cbd2 !important;
}

body[data-theme="minimal"] .sync-badge .sync-room {
  color: var(--muted);
  border-left-color: var(--line);
}

body[data-theme="minimal"] .sync-badge .sync-peers {
  background: var(--gold);
  color: #ffffff;
}

body[data-theme="minimal"] .sync-dot {
  background: #b6bcc5;
  box-shadow: 0 0 0 3px rgba(182, 188, 197, .25);
}

body[data-theme="minimal"] .sync-dot[data-status="online"],
body[data-theme="minimal"] .sync-badge[data-status="online"] .sync-dot {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 122, 77, .2);
}

body[data-theme="minimal"] .sync-dot[data-status="connecting"],
body[data-theme="minimal"] .sync-badge[data-status="connecting"] .sync-dot {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(53, 97, 140, .2);
}

body[data-theme="minimal"] .sync-card {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

body[data-theme="minimal"] .sync-status {
  background: var(--surface2);
  border-color: var(--line);
}

body[data-theme="minimal"] .sync-client {
  background: var(--surface);
  border-color: var(--line);
}

body[data-theme="minimal"] .sync-client.is-me {
  background: #f2f7fb;
  border-color: var(--gold);
}

body[data-theme="minimal"] .sync-client-avatar {
  background: var(--surface3);
  color: #59616d;
  border: 1px solid var(--line);
}

body[data-theme="minimal"] .sync-client-name i {
  color: var(--gold);
}

body[data-theme="minimal"] .sync-client-mode {
  color: var(--muted);
  border-color: var(--line);
}

body[data-theme="minimal"] #syncModal .sync-card {
  background: #ffffff !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}

body[data-theme="minimal"] #syncModal .sync-card h3,
body[data-theme="minimal"] #syncModal .sync-card h4 {
  color: var(--ink) !important;
}

body[data-theme="minimal"] #syncModal .sync-card .eyebrow {
  color: var(--gold) !important;
}

body[data-theme="minimal"] #syncModal .sync-card .muted,
body[data-theme="minimal"] #syncModal .sync-card .muted.small {
  color: var(--muted) !important;
}

body[data-theme="minimal"] #syncModal .sync-card input,
body[data-theme="minimal"] #syncModal .sync-card select {
  background: #ffffff !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}

body[data-theme="minimal"] #syncModal .sync-card .note,
body[data-theme="minimal"] #syncModal .sync-card .note.info {
  background: var(--surface2) !important;
  border-color: var(--line) !important;
  color: #3d4550 !important;
}

body[data-theme="minimal"] #syncModal .sync-client {
  background: var(--surface) !important;
  border-color: var(--line) !important;
}

body[data-theme="minimal"] #syncModal .sync-client.is-me {
  background: #f2f7fb !important;
  border-color: var(--gold) !important;
}

body[data-theme="minimal"] #syncModal .sync-client-mode {
  color: var(--muted) !important;
  border-color: var(--line) !important;
}

/* --------------------------------------------------------------------------
   18. Гид-блок «Дон Фишка»
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] .guide-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

body[data-theme="minimal"] .guide-hero:before {
  display: none;
}

body[data-theme="minimal"] .guide-portrait {
  background: var(--surface2);
  border-right: 1px solid var(--line);
}

body[data-theme="minimal"] .guide-portrait img {
  filter: saturate(.95) contrast(1.02);
}

body[data-theme="minimal"] .guide-portrait:after {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .82));
}

body[data-theme="minimal"] .portrait-stamp {
  background: #ffffff;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: none;
  font-weight: 600;
}

body[data-theme="minimal"] .guide-copy .eyebrow {
  color: var(--gold);
}

body[data-theme="minimal"] .guide-copy h2 {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -.02em;
}

body[data-theme="minimal"] .guide-intro {
  color: var(--muted);
  line-height: 1.6;
}

body[data-theme="minimal"] .guide-speech {
  background: var(--surface2);
  border-left: 2px solid var(--gold);
  border-radius: 0 8px 8px 0;
}

body[data-theme="minimal"] .guide-speech .speech-mark {
  color: #c3c9d1;
}

body[data-theme="minimal"] .guide-speech p {
  color: #3d4550;
  line-height: 1.6;
}

body[data-theme="minimal"] .guide-step {
  color: var(--muted);
  letter-spacing: .08em;
  font-weight: 600;
}

body[data-theme="minimal"] .guide-emblem {
  color: rgba(27, 30, 35, .05);
}

body[data-theme="minimal"] .guide-foot button {
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   19. Ночные итоги
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] .night-result-feedback {
  background: var(--surface2);
  border-color: var(--line);
  border-left-color: var(--gold);
  color: #3d4550;
}

body[data-theme="minimal"] .night-result-feedback.good {
  background: #f2f9f5;
  border-color: #d0e6da;
  color: #2c5d43;
}

body[data-theme="minimal"] .night-result-feedback.bad {
  background: #fdf5f6;
  border-color: #ecd3d6;
  color: #7d333d;
}

body[data-theme="minimal"] .night-result-feedback.info {
  background: #f3f7fb;
  border-color: #d5e3f0;
  color: #2f4a63;
}

body[data-theme="minimal"] .detective-mode-option {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

body[data-theme="minimal"] .detective-mode-option.selected {
  background: #eef4f9;
  border-color: var(--gold);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   20. Уникальный эффект темы: тонкая акцентная линия и «воздух» в панелях
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] .panel-head h3 {
  position: relative;
  padding-left: 12px;
}

body[data-theme="minimal"] .panel-head h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 2px;
  background: var(--gold);
}

body[data-theme="minimal"] .stats {
  gap: 12px;
}

body[data-theme="minimal"] .grid-main {
  gap: 18px;
}

body[data-theme="minimal"] .column {
  gap: 18px;
}

/* --------------------------------------------------------------------------
   21. Уважаем системную настройку «уменьшить движение»
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body[data-theme="minimal"] button,
  body[data-theme="minimal"] .panel,
  body[data-theme="minimal"] .story-mode-btn,
  body[data-theme="minimal"] .person-row,
  body[data-theme="minimal"] .reserve-row {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   22. Вспомогательные элементы
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] .photo-action {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

body[data-theme="minimal"] .photo-action:hover {
  background: var(--surface2);
  border-color: #c6cbd2;
  color: var(--ink);
}

body[data-theme="minimal"] .warn-inline {
  color: #9a5b4a;
}

body[data-theme="minimal"] .checkline {
  color: var(--ink);
}

body[data-theme="minimal"] .switch input {
  accent-color: var(--gold);
}

/* --------------------------------------------------------------------------
   23. Новые блоки интерфейса
   -------------------------------------------------------------------------- */
body[data-theme="minimal"] .ntfn-bell.has-unread {
  background: #f2f7fb !important;
  border-color: var(--gold) !important;
}

body[data-theme="minimal"] .ntfn-bell-count {
  background: var(--gold);
  color: #ffffff;
  box-shadow: none;
}

body[data-theme="minimal"] .ntfn-toast {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(20, 26, 36, .1);
}

body[data-theme="minimal"] .ntfn-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(20, 26, 36, .14);
}

body[data-theme="minimal"] .ntfn-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

body[data-theme="minimal"] .ntfn-level {
  background: var(--surface3);
  color: #5b636e;
}

body[data-theme="minimal"] .ntfn-level--success { background: #eef7f2; color: var(--green); }
body[data-theme="minimal"] .ntfn-level--warning { background: #fdf6e8; color: #8a6212; }
body[data-theme="minimal"] .ntfn-level--error { background: #fbeef0; color: var(--red); }

body[data-theme="minimal"] .ntfn-item-text { color: var(--muted); }
body[data-theme="minimal"] .ntfn-empty { background: transparent; border-color: #d5d9df; }

body[data-theme="minimal"] .dash-situation {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 10px;
}

body[data-theme="minimal"] .dash-kv-row,
body[data-theme="minimal"] .dash-host {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

body[data-theme="minimal"] .dash-ok {
  background: #f2f9f5;
  border: 1px dashed #d0e6da;
  color: #2c5d43;
  border-radius: 10px;
}

body[data-theme="minimal"] .dash-status--ok { background: #eef7f2; color: var(--green); }
body[data-theme="minimal"] .dash-status--sync { background: #fdf6e8; color: #8a6212; }
body[data-theme="minimal"] .dash-status--off { background: var(--surface3); color: #5b636e; }
body[data-theme="minimal"] .dash-status--err { background: #fbeef0; color: var(--red); }

body[data-theme="minimal"] .room-member,
body[data-theme="minimal"] .room-event {
  background: var(--surface);
  border: 1px solid var(--line);
}

body[data-theme="minimal"] .room-event { border-left: 3px solid rgba(53, 97, 140, .45); }

body[data-theme="minimal"] .theme-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

body[data-theme="minimal"] .theme-card.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset;
}

body[data-theme="minimal"] .theme-card.is-preview {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue) inset;
}

body[data-theme="minimal"] .theme-motion-row .is-on {
  background: #eef4f9;
  border-color: var(--gold);
  color: var(--gold);
}

body[data-theme="minimal"] .bracket-bar {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 9px;
}

body[data-theme="minimal"] .bracket-stage-total { color: var(--gold); }

body[data-theme="minimal"] .trn-check-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

body[data-theme="minimal"] .trn-check-mark {
  background: #eef7f2;
  color: var(--green);
}

body[data-theme="minimal"] .trn-check-item.is-warn .trn-check-mark {
  background: #fdf6e8;
  color: #8a6212;
}

body[data-theme="minimal"] .gme-stepper,
body[data-theme="minimal"] .gme-selected {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

body[data-theme="minimal"] .gme-step-dot {
  background: var(--surface3);
  color: #5b636e;
}

body[data-theme="minimal"] .gme-step.is-current {
  background: #eef4f9;
  color: var(--gold);
}

body[data-theme="minimal"] .gme-player-avatar {
  background: var(--surface3);
  color: #59616d;
}
