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

/* --------------------------------------------------------------------------
   1. Токены темы
   -------------------------------------------------------------------------- */
body[data-theme="neon"] {
  --bg: #0a0718;
  --surface: #120a2a;
  --surface2: #1a1038;
  --surface3: #24164b;
  --ink: #f2eeff;
  --muted: #9b90d4;
  --line: #3b2f6e;
  --gold: #ff2e97;
  --gold2: #ffa2e6;
  --red: #ff4d6d;
  --green: #7dff6b;
  --blue: #22d3ee;
  --shadow: 0 0 26px rgba(255, 46, 151, .22), 0 14px 42px rgba(0, 0, 0, .6);
  --radius: 14px;
}

/* --------------------------------------------------------------------------
   2. Фон: дымка и неоновое свечение
   -------------------------------------------------------------------------- */
body[data-theme="neon"] {
  background-color: var(--bg) !important;
  background-image:
    radial-gradient(ellipse at 15% -10%, rgba(255, 53, 200, .16), transparent 45%),
    radial-gradient(ellipse at 88% 8%, rgba(51, 220, 255, .13), transparent 42%),
    radial-gradient(ellipse at 60% 110%, rgba(125, 255, 107, .08), transparent 48%),
    linear-gradient(180deg, #0b0919, #05040c) !important;
  background-attachment: fixed;
}

body[data-theme="neon"] * {
  scrollbar-color: #4a3a8a transparent;
}

body[data-theme="neon"] *::-webkit-scrollbar-thumb {
  background: #4a3a8a;
}

body[data-theme="neon"] *::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* --------------------------------------------------------------------------
   3. Верхняя панель, логотип, навигация
   -------------------------------------------------------------------------- */
body[data-theme="neon"] .app {
  padding-top: 22px;
}

body[data-theme="neon"] .topbar {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 53, 200, .3);
  box-shadow: 0 10px 30px -22px rgba(255, 53, 200, .8);
}

body[data-theme="neon"] .brand h1 {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: .06em;
  text-shadow: 0 0 14px rgba(255, 53, 200, .75), 0 0 34px rgba(255, 53, 200, .35);
}

body[data-theme="neon"] .brand h1 span {
  color: var(--blue) !important;
  text-shadow: 0 0 14px rgba(51, 220, 255, .85), 0 0 32px rgba(51, 220, 255, .4);
}

body[data-theme="neon"] .brand p {
  color: #9b90d4;
  text-shadow: 0 0 10px rgba(155, 144, 212, .4);
}

body[data-theme="neon"] .mark {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 16px;
  background: linear-gradient(140deg, #ff35c8, #7a2bff 60%, #33dcff);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 0 22px rgba(255, 53, 200, .65), inset 0 0 16px rgba(255, 255, 255, .22);
  transform: none;
}

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

body[data-theme="neon"] .nav {
  gap: 8px;
  padding: 8px;
  margin-bottom: 18px;
  border: 1px solid rgba(59, 47, 110, .9);
  border-radius: 14px;
  background: rgba(14, 12, 28, .82);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(51, 220, 255, .07), 0 14px 40px -26px rgba(255, 53, 200, .9);
}

body[data-theme="neon"] .nav button {
  border: 1px solid transparent;
  border-radius: 10px;
  color: #a99ede;
  font-weight: 700;
  padding: 10px 15px;
  text-shadow: 0 0 10px rgba(169, 158, 222, .35);
}

body[data-theme="neon"] .nav button:hover {
  border-color: rgba(51, 220, 255, .55);
  color: #e6faff;
  background: rgba(51, 220, 255, .09);
  text-shadow: 0 0 12px rgba(51, 220, 255, .7);
}

body[data-theme="neon"] .nav button.active {
  background: linear-gradient(120deg, #ff35c8, #a12bff) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, .35) !important;
  box-shadow: 0 0 18px rgba(255, 53, 200, .85), 0 0 40px rgba(255, 53, 200, .4) !important;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255, 255, 255, .55);
  animation: neonNavPulse 2.6s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   4. Кнопки: неоновая обводка и свечение
   -------------------------------------------------------------------------- */
body[data-theme="neon"] button {
  background: rgba(23, 20, 51, .78);
  color: var(--ink);
  border: 1px solid rgba(91, 76, 168, .9);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(51, 220, 255, .05), 0 8px 24px -18px rgba(0, 0, 0, .9);
  font-weight: 700;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}

body[data-theme="neon"] button:hover {
  border-color: var(--blue);
  background: rgba(51, 220, 255, .12);
  color: #f0feff;
  box-shadow: 0 0 16px rgba(51, 220, 255, .45), 0 0 34px rgba(51, 220, 255, .18);
}

body[data-theme="neon"] button:active {
  transform: translateY(1px);
  box-shadow: 0 0 8px rgba(51, 220, 255, .35);
}

body[data-theme="neon"] .primary {
  background: linear-gradient(120deg, #ff35c8, #a12bff);
  border-color: rgba(255, 255, 255, .4);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(255, 53, 200, .55), 0 0 44px rgba(255, 53, 200, .25);
  text-shadow: 0 0 10px rgba(255, 255, 255, .4);
}

body[data-theme="neon"] .primary:hover {
  background: linear-gradient(120deg, #ff62d8, #b641ff);
  color: #ffffff;
  box-shadow: 0 0 28px rgba(255, 53, 200, .75), 0 0 56px rgba(255, 53, 200, .35);
}

body[data-theme="neon"] .danger {
  color: #ffc2cd;
  border-color: rgba(255, 77, 109, .7);
  background: rgba(255, 77, 109, .14);
  box-shadow: 0 0 14px rgba(255, 77, 109, .3);
}

body[data-theme="neon"] .danger:hover {
  background: rgba(255, 77, 109, .25);
  border-color: var(--red);
  box-shadow: 0 0 22px rgba(255, 77, 109, .55);
}

body[data-theme="neon"] .success {
  color: #ccffd0;
  border-color: rgba(125, 255, 107, .65);
  background: rgba(125, 255, 107, .12);
  box-shadow: 0 0 14px rgba(125, 255, 107, .28);
}

body[data-theme="neon"] .success:hover {
  background: rgba(125, 255, 107, .22);
  border-color: var(--green);
  box-shadow: 0 0 22px rgba(125, 255, 107, .5);
}

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

body[data-theme="neon"] .subtle:hover {
  border-color: rgba(51, 220, 255, .55);
  color: #d7f6ff;
  background: rgba(51, 220, 255, .08);
  box-shadow: none;
}

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

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

body[data-theme="neon"] #newTournament {
  background: rgba(255, 77, 109, .16);
  border-color: rgba(255, 77, 109, .6);
  color: #ffd0da;
}

/* --------------------------------------------------------------------------
   5. Поля ввода
   -------------------------------------------------------------------------- */
body[data-theme="neon"] input,
body[data-theme="neon"] select,
body[data-theme="neon"] textarea {
  background: rgba(8, 7, 20, .85);
  color: var(--ink);
  border: 1px solid rgba(78, 62, 148, .9);
  border-radius: 10px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .55);
}

body[data-theme="neon"] input::placeholder,
body[data-theme="neon"] textarea::placeholder {
  color: #6f66a6;
}

body[data-theme="neon"] input:hover,
body[data-theme="neon"] select:hover,
body[data-theme="neon"] textarea:hover {
  border-color: rgba(51, 220, 255, .45);
}

body[data-theme="neon"] input:focus,
body[data-theme="neon"] select:focus,
body[data-theme="neon"] textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(51, 220, 255, .18), 0 0 22px rgba(51, 220, 255, .35);
}

body[data-theme="neon"] label {
  color: #a99ede;
  letter-spacing: .02em;
}

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

/* --------------------------------------------------------------------------
   6. Панели, карточки, статистика
   -------------------------------------------------------------------------- */
body[data-theme="neon"] .panel {
  background:
    linear-gradient(160deg, rgba(34, 28, 73, .72), rgba(12, 10, 26, .9) 82%);
  border: 1px solid rgba(78, 62, 148, .95);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(51, 220, 255, .06),
    inset 0 0 40px rgba(255, 53, 200, .06),
    0 18px 46px rgba(0, 0, 0, .55);
  padding: 16px;
}

body[data-theme="neon"] .panel:hover {
  border-color: rgba(255, 53, 200, .6);
  box-shadow:
    0 0 0 1px rgba(255, 53, 200, .18),
    inset 0 0 44px rgba(255, 53, 200, .1),
    0 18px 50px rgba(0, 0, 0, .6);
}

body[data-theme="neon"] .panel h3 {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 53, 200, .5);
}

body[data-theme="neon"] .panel-head {
  border-bottom: 1px solid rgba(255, 53, 200, .22);
  padding-bottom: 9px;
}

body[data-theme="neon"] .card {
  background: rgba(23, 20, 51, .7);
  border: 1px solid rgba(78, 62, 148, .9);
  border-radius: var(--radius);
  box-shadow: 0 0 22px rgba(0, 0, 0, .45);
}

body[data-theme="neon"] .stat {
  background: linear-gradient(150deg, rgba(40, 32, 88, .8), rgba(14, 12, 30, .92));
  border: 1px solid rgba(78, 62, 148, .9);
  border-radius: 12px;
  box-shadow: inset 0 0 26px rgba(51, 220, 255, .07), 0 12px 30px rgba(0, 0, 0, .45);
}

body[data-theme="neon"] .stat .v {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(51, 220, 255, .55);
}

body[data-theme="neon"] .stat:nth-child(1) .v { color: #7dff6b; text-shadow: 0 0 16px rgba(125, 255, 107, .55); }
body[data-theme="neon"] .stat:nth-child(2) .v { color: #ff7d94; text-shadow: 0 0 16px rgba(255, 77, 109, .55); }
body[data-theme="neon"] .stat:nth-child(3) .v { color: #ff6bd8; text-shadow: 0 0 16px rgba(255, 53, 200, .55); }
body[data-theme="neon"] .stat:nth-child(4) .v { color: #6fe4ff; text-shadow: 0 0 16px rgba(51, 220, 255, .55); }

body[data-theme="neon"] .stat .k {
  color: #a99ede;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body[data-theme="neon"] .stat .hintline {
  color: var(--gold2);
  text-shadow: 0 0 12px rgba(255, 162, 230, .5);
}

body[data-theme="neon"] .eyebrow {
  color: var(--blue);
  text-shadow: 0 0 14px rgba(51, 220, 255, .6);
}

body[data-theme="neon"] .pagehead h2 {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 53, 200, .45);
}

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

body[data-theme="neon"] .footer {
  color: #6f66a6;
  border-top: 1px solid rgba(59, 47, 110, .8);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   7. Аватары и карточки игроков
   -------------------------------------------------------------------------- */
body[data-theme="neon"] .avatar {
  background: linear-gradient(140deg, rgba(255, 53, 200, .28), rgba(51, 220, 255, .22));
  border: 1px solid rgba(163, 43, 255, .8);
  color: #ffe6fb;
  box-shadow: 0 0 16px rgba(255, 53, 200, .4);
}

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

body[data-theme="neon"] .person-row {
  background: rgba(17, 14, 38, .8);
  border: 1px solid rgba(66, 53, 124, .9);
  border-radius: 12px;
}

body[data-theme="neon"] .person-row:hover {
  border-color: rgba(51, 220, 255, .7);
  background: rgba(26, 22, 56, .9);
  box-shadow: 0 0 18px rgba(51, 220, 255, .22);
}

body[data-theme="neon"] .person-row .person-title {
  color: #ffffff;
}

body[data-theme="neon"] .person-row .person-sub {
  color: #9b90d4;
}

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

body[data-theme="neon"] .player-card {
  background: rgba(17, 14, 38, .8);
  border: 1px solid rgba(66, 53, 124, .9);
  border-radius: 12px;
}

/* --------------------------------------------------------------------------
   8. Игровое поле
   -------------------------------------------------------------------------- */
body[data-theme="neon"] .table-area {
  background:
    radial-gradient(ellipse at 50% 46%, rgba(255, 53, 200, .16), transparent 58%),
    radial-gradient(ellipse at 50% 50%, #14112c 0, #0b0919 58%, #070512 100%);
  border: 1px solid rgba(163, 43, 255, .65);
  border-radius: var(--radius);
  box-shadow: inset 0 0 70px rgba(51, 220, 255, .1), 0 0 40px rgba(163, 43, 255, .22);
}

body[data-theme="neon"] .table-area:before {
  border: 1px solid rgba(51, 220, 255, .28);
  border-radius: 12px;
  box-shadow: 0 0 22px rgba(51, 220, 255, .18);
}

body[data-theme="neon"] .felt {
  background: radial-gradient(ellipse at 42% 32%, rgba(255, 53, 200, .42), rgba(90, 20, 120, .5) 70%);
  border: 2px solid rgba(51, 220, 255, .85);
  box-shadow: 0 0 26px rgba(51, 220, 255, .55), 0 0 60px rgba(255, 53, 200, .35), inset 0 0 40px rgba(0, 0, 0, .5);
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 255, 255, .6);
}

body[data-theme="neon"] .felt strong {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(51, 220, 255, .85);
}

body[data-theme="neon"] .felt span {
  color: #c9f4ff;
  text-shadow: 0 0 12px rgba(51, 220, 255, .6);
}

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

body[data-theme="neon"] .seat {
  background: rgba(12, 10, 28, .86);
  border: 1px solid rgba(66, 53, 124, .95);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 16px rgba(0, 0, 0, .55);
}

body[data-theme="neon"] .seat:hover {
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(51, 220, 255, .5);
}

body[data-theme="neon"] .seat.selected {
  background: rgba(255, 53, 200, .2);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 53, 200, .55), 0 0 30px rgba(255, 53, 200, .6);
}

body[data-theme="neon"] .seat.dead {
  opacity: .42;
  filter: grayscale(.9);
}

body[data-theme="neon"] .seat.dead .avatar {
  border-color: var(--red);
  box-shadow: 0 0 14px rgba(255, 77, 109, .55);
}

body[data-theme="neon"] .seat .pname {
  display: block;
  color: #ffffff;
}

body[data-theme="neon"] .seat .pnum {
  display: block;
  color: #9b90d4;
}

body[data-theme="neon"] .seat .prole {
  display: block;
  color: var(--gold2);
  text-shadow: 0 0 10px rgba(255, 162, 230, .55);
}

body[data-theme="neon"] .seat .deathmark {
  color: var(--red);
  text-shadow: 0 0 10px rgba(255, 77, 109, .6);
}

body[data-theme="neon"] .empty-table {
  color: #9b90d4;
}

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

body[data-theme="neon"] .turn-banner {
  background:
    linear-gradient(120deg, rgba(255, 53, 200, .2), rgba(51, 220, 255, .1) 78%),
    rgba(14, 12, 30, .85);
  border: 1px solid rgba(255, 53, 200, .55);
  border-radius: 12px;
  box-shadow: 0 0 26px rgba(255, 53, 200, .28), inset 0 0 30px rgba(51, 220, 255, .08);
}

body[data-theme="neon"] .turn-banner .title {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 53, 200, .65);
}

body[data-theme="neon"] .turn-banner .subtitle {
  color: #ffc8ee;
}

body[data-theme="neon"] .turn-banner .instruction {
  color: #b9b0e0;
}

body[data-theme="neon"] .note {
  background: rgba(255, 53, 200, .1);
  border: 1px solid rgba(255, 53, 200, .4);
  color: #ffe0f6;
  border-radius: 10px;
}

body[data-theme="neon"] .note.info {
  background: rgba(51, 220, 255, .1);
  border-color: rgba(51, 220, 255, .45);
  color: #d6f6ff;
}

body[data-theme="neon"] .note.warn {
  background: rgba(255, 77, 109, .12);
  border-color: rgba(255, 77, 109, .5);
  color: #ffd2da;
}

body[data-theme="neon"] .note.good {
  background: rgba(125, 255, 107, .1);
  border-color: rgba(125, 255, 107, .45);
  color: #d6ffd2;
}

body[data-theme="neon"] .section-label {
  color: var(--blue);
  letter-spacing: .16em;
  text-shadow: 0 0 12px rgba(51, 220, 255, .5);
}

body[data-theme="neon"] .sep,
body[data-theme="neon"] .divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 53, 200, .7), rgba(51, 220, 255, .7), transparent);
  box-shadow: 0 0 12px rgba(255, 53, 200, .55);
}

body[data-theme="neon"] .target {
  background: rgba(17, 14, 38, .8);
  border: 1px solid rgba(66, 53, 124, .95);
  border-radius: 10px;
}

body[data-theme="neon"] .target:hover {
  border-color: var(--blue);
}

body[data-theme="neon"] .target.selected {
  background: rgba(255, 53, 200, .22);
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(255, 53, 200, .55);
}

body[data-theme="neon"] .target .target-meta {
  color: #9b90d4;
}

body[data-theme="neon"] .vote-row {
  border-bottom: 1px solid rgba(59, 47, 110, .9);
}

body[data-theme="neon"] .bar {
  background: rgba(8, 7, 20, .9);
  border: 1px solid rgba(66, 53, 124, .8);
}

body[data-theme="neon"] .bar > span {
  background: linear-gradient(90deg, var(--gold), var(--blue));
  box-shadow: 0 0 12px rgba(255, 53, 200, .7);
}

/* --------------------------------------------------------------------------
   10. Таймер
   -------------------------------------------------------------------------- */
body[data-theme="neon"] .timerbox {
  background: rgba(8, 7, 20, .8);
  border: 1px solid rgba(66, 53, 124, .95);
  border-radius: 12px;
  box-shadow: inset 0 0 26px rgba(51, 220, 255, .08);
}

body[data-theme="neon"] .timer-clock {
  color: var(--blue);
  text-shadow: 0 0 20px rgba(51, 220, 255, .8);
}

body[data-theme="neon"] .timer-caption {
  color: #9b90d4;
}

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

body[data-theme="neon"] .bracket-stage {
  background: linear-gradient(160deg, rgba(36, 29, 78, .8), rgba(12, 10, 26, .92));
  border: 1px solid rgba(78, 62, 148, .95);
  border-radius: 12px;
  box-shadow: inset 0 0 26px rgba(255, 53, 200, .07);
}

body[data-theme="neon"] .bracket-stage h4 {
  color: #ffffff;
}

body[data-theme="neon"] .bracket-stage p {
  color: #9b90d4;
}

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

body[data-theme="neon"] .bracket-stage .counter {
  color: var(--blue);
  text-shadow: 0 0 18px rgba(51, 220, 255, .7);
}

body[data-theme="neon"] .table-mini {
  background: rgba(17, 14, 38, .82);
  border: 1px solid rgba(66, 53, 124, .95);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4);
}

body[data-theme="neon"] .table-mini-head h4 {
  color: #ffffff;
}

body[data-theme="neon"] .table-mini .mini-stats {
  color: #9b90d4;
}

body[data-theme="neon"] .group-card,
body[data-theme="neon"] .rule-row,
body[data-theme="neon"] .role-order {
  background: rgba(17, 14, 38, .8);
  border: 1px solid rgba(66, 53, 124, .9);
  border-radius: 10px;
}

body[data-theme="neon"] .rule-row p {
  color: #9b90d4;
}

body[data-theme="neon"] #resultsTable td,
body[data-theme="neon"] #resultsTable th,
body[data-theme="neon"] .roster-table td,
body[data-theme="neon"] .roster-table th {
  border-bottom: 1px solid rgba(59, 47, 110, .9);
}

body[data-theme="neon"] .roster-table th {
  color: var(--blue);
  text-shadow: 0 0 12px rgba(51, 220, 255, .45);
}

body[data-theme="neon"] #resultsTable tr:hover td,
body[data-theme="neon"] .roster-table tbody tr:hover td {
  background: rgba(255, 53, 200, .08);
}

body[data-theme="neon"] #resultsTable td strong {
  color: #ffffff;
}

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

body[data-theme="neon"] .event {
  background: rgba(17, 14, 38, .8);
  border: 1px solid rgba(66, 53, 124, .9);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
}

body[data-theme="neon"] .event:hover {
  border-color: rgba(51, 220, 255, .6);
  border-left-color: var(--blue);
}

body[data-theme="neon"] .event-time {
  color: var(--gold2);
  text-shadow: 0 0 12px rgba(255, 162, 230, .5);
}

body[data-theme="neon"] .event-text {
  color: #efeaff;
}

body[data-theme="neon"] .event-text small {
  color: #9b90d4;
}

/* --------------------------------------------------------------------------
   13. Уведомления и модальные окна
   -------------------------------------------------------------------------- */
body[data-theme="neon"] .toast {
  background: rgba(14, 12, 30, .95);
  border: 1px solid var(--gold);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  color: #f4efff;
  box-shadow: 0 0 28px rgba(255, 53, 200, .45);
}

body[data-theme="neon"] .modal-wrap {
  background: rgba(4, 3, 12, .78);
  backdrop-filter: blur(10px);
}

body[data-theme="neon"] .modal-card {
  background: linear-gradient(160deg, rgba(36, 29, 78, .95), rgba(10, 8, 24, .97));
  border: 1px solid rgba(163, 43, 255, .7);
  border-radius: 18px;
  box-shadow: 0 0 44px rgba(255, 53, 200, .35), 0 30px 80px rgba(0, 0, 0, .7);
  color: var(--ink);
}

body[data-theme="neon"] .modal-top h3 {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(51, 220, 255, .6);
}

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

body[data-theme="neon"] .camera-frame {
  background: rgba(6, 5, 14, .9);
  border: 1px solid rgba(78, 62, 148, .9);
}

body[data-theme="neon"] .camera-placeholder {
  color: #9b90d4;
}

body[data-theme="neon"] .camera-placeholder strong {
  color: #ffffff;
}

body[data-theme="neon"] .share-step {
  border-bottom: 1px solid rgba(59, 47, 110, .9);
}

body[data-theme="neon"] .share-step p {
  color: #b9b0e0;
}

body[data-theme="neon"] .share-step > span {
  background: linear-gradient(120deg, var(--gold), #a12bff);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   14. Пилюли и подсветки ролей
   -------------------------------------------------------------------------- */
body[data-theme="neon"] .pill {
  background: rgba(34, 28, 73, .9);
  color: #d9d2ff;
  border: 1px solid rgba(91, 76, 168, .9);
}

body[data-theme="neon"] .pill.gold {
  background: rgba(255, 53, 200, .2);
  color: #ffd0f2;
  border-color: rgba(255, 53, 200, .75);
  box-shadow: 0 0 14px rgba(255, 53, 200, .4);
}

body[data-theme="neon"] .pill.red {
  background: rgba(255, 77, 109, .18);
  color: #ffc8d2;
  border-color: rgba(255, 77, 109, .7);
}

body[data-theme="neon"] .pill.green {
  background: rgba(125, 255, 107, .16);
  color: #d3ffd0;
  border-color: rgba(125, 255, 107, .65);
}

body[data-theme="neon"] .pill.blue {
  background: rgba(51, 220, 255, .16);
  color: #c9f4ff;
  border-color: rgba(51, 220, 255, .65);
}

body[data-theme="neon"] .role-tile {
  background: rgba(17, 14, 38, .82);
  border: 1px solid rgba(78, 62, 148, .95);
  border-radius: 12px;
  box-shadow: inset 0 0 24px rgba(51, 220, 255, .05);
}

body[data-theme="neon"] .role-tile .role-icon {
  font-size: 26px;
  filter: drop-shadow(0 0 12px rgba(255, 53, 200, .8));
}

body[data-theme="neon"] .role-tile h4 {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 53, 200, .5);
}

body[data-theme="neon"] .role-tile p {
  color: #9b90d4;
}

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

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

body[data-theme="neon"] .story-hub-head {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(255, 53, 200, .18), transparent 58%),
    linear-gradient(150deg, rgba(34, 28, 73, .85), rgba(10, 8, 24, .95));
  border: 1px solid rgba(163, 43, 255, .65);
  border-radius: 18px;
  box-shadow: 0 0 36px rgba(255, 53, 200, .22);
}

body[data-theme="neon"] .story-hub-head h2 {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(51, 220, 255, .55);
}

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

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

body[data-theme="neon"] .story-mode-btn {
  background: rgba(17, 14, 38, .85);
  border: 1px solid rgba(78, 62, 148, .95);
  border-radius: 14px;
}

body[data-theme="neon"] .story-mode-btn:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 0 26px rgba(51, 220, 255, .35);
}

body[data-theme="neon"] .story-mode-btn.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 28px rgba(255, 53, 200, .45);
}

body[data-theme="neon"] .story-mode-btn b {
  color: #ffffff;
}

body[data-theme="neon"] .story-mode-btn small {
  color: #9b90d4;
}

body[data-theme="neon"] .story-mode-art {
  border: 1px solid rgba(91, 76, 168, .9);
  border-radius: 10px;
  filter: saturate(1.1) contrast(1.05);
}

body[data-theme="neon"] .story-empty {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(51, 220, 255, .12), transparent 62%),
    rgba(10, 8, 24, .85);
  border: 1px dashed rgba(91, 76, 168, .9);
  border-radius: 18px;
}

body[data-theme="neon"] .story-empty h3 {
  color: #ffffff;
}

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

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

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

/* --------------------------------------------------------------------------
   16. Панель резерва
   -------------------------------------------------------------------------- */
body[data-theme="neon"] .reserve-panel {
  border-color: rgba(255, 53, 200, .6);
  box-shadow: 0 0 30px rgba(255, 53, 200, .18);
}

body[data-theme="neon"] .reserve-row {
  background: rgba(17, 14, 38, .82);
  border: 1px solid rgba(66, 53, 124, .95);
  border-radius: 12px;
}

body[data-theme="neon"] .reserve-row:hover {
  border-color: rgba(51, 220, 255, .65);
}

body[data-theme="neon"] .reserve-person {
  color: #ffffff;
}

body[data-theme="neon"] .reserve-meta strong {
  color: #ffffff;
}

body[data-theme="neon"] .reserve-meta small,
body[data-theme="neon"] .reserve-label {
  color: #9b90d4;
}

body[data-theme="neon"] .reserve-btn {
  background: rgba(34, 28, 73, .9);
  border: 1px solid rgba(91, 76, 168, .9);
  border-radius: 8px;
}

body[data-theme="neon"] .reserve-btn:hover {
  border-color: var(--gold) !important;
  color: var(--gold2) !important;
  box-shadow: 0 0 14px rgba(255, 53, 200, .5);
}

body[data-theme="neon"] .reserve-empty {
  background: rgba(10, 8, 24, .8);
  border: 1px dashed rgba(91, 76, 168, .9);
  color: #9b90d4;
}

/* --------------------------------------------------------------------------
   17. Индикатор связи
   -------------------------------------------------------------------------- */
body[data-theme="neon"] .sync-badge {
  background: rgba(17, 14, 38, .9) !important;
  border: 1px solid rgba(91, 76, 168, .95) !important;
  color: #efeaff !important;
  font-weight: 700;
}

body[data-theme="neon"] .sync-badge:hover {
  border-color: var(--blue) !important;
  box-shadow: 0 0 18px rgba(51, 220, 255, .4);
}

body[data-theme="neon"] .sync-badge .sync-room {
  color: #9b90d4;
  border-left-color: rgba(59, 47, 110, .9);
}

body[data-theme="neon"] .sync-badge .sync-peers {
  background: var(--blue);
  color: #04202a;
  box-shadow: 0 0 12px rgba(51, 220, 255, .6);
}

body[data-theme="neon"] .sync-dot {
  background: #6f66a6;
  box-shadow: 0 0 0 3px rgba(111, 102, 166, .28);
}

body[data-theme="neon"] .sync-dot[data-status="online"],
body[data-theme="neon"] .sync-badge[data-status="online"] .sync-dot {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(125, 255, 107, .3), 0 0 14px rgba(125, 255, 107, .7);
}

body[data-theme="neon"] .sync-dot[data-status="connecting"],
body[data-theme="neon"] .sync-badge[data-status="connecting"] .sync-dot {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 53, 200, .3), 0 0 14px rgba(255, 53, 200, .7);
}

body[data-theme="neon"] .sync-card {
  background: linear-gradient(160deg, rgba(36, 29, 78, .95), rgba(10, 8, 24, .97));
  border-color: rgba(163, 43, 255, .7);
  color: var(--ink);
}

body[data-theme="neon"] .sync-status {
  background: rgba(10, 8, 24, .85);
  border-color: rgba(66, 53, 124, .9);
}

body[data-theme="neon"] .sync-client {
  background: rgba(17, 14, 38, .85);
  border-color: rgba(66, 53, 124, .9);
}

body[data-theme="neon"] .sync-client.is-me {
  background: rgba(255, 53, 200, .14);
  border-color: var(--gold);
}

body[data-theme="neon"] .sync-client-avatar {
  background: linear-gradient(140deg, var(--gold), #a12bff);
  color: #ffffff;
}

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

body[data-theme="neon"] .sync-client-mode {
  color: #9b90d4;
  border-color: rgba(59, 47, 110, .9);
}

body[data-theme="neon"] #syncModal .sync-card {
  background: linear-gradient(160deg, rgba(36, 29, 78, .95), rgba(10, 8, 24, .97)) !important;
  border-color: rgba(163, 43, 255, .7) !important;
  color: #efeaff !important;
}

body[data-theme="neon"] #syncModal .sync-card h3,
body[data-theme="neon"] #syncModal .sync-card h4 {
  color: #ffffff !important;
}

body[data-theme="neon"] #syncModal .sync-card input,
body[data-theme="neon"] #syncModal .sync-card select {
  background: rgba(6, 5, 14, .9) !important;
  color: #efeaff !important;
  border-color: rgba(91, 76, 168, .95) !important;
}

body[data-theme="neon"] #syncModal .sync-card .note,
body[data-theme="neon"] #syncModal .sync-card .note.info {
  background: rgba(51, 220, 255, .1) !important;
  border-color: rgba(51, 220, 255, .45) !important;
  color: #d6f6ff !important;
}

body[data-theme="neon"] #syncModal .sync-client {
  background: rgba(17, 14, 38, .85) !important;
  border-color: rgba(66, 53, 124, .9) !important;
}

body[data-theme="neon"] #syncModal .sync-client.is-me {
  background: rgba(255, 53, 200, .14) !important;
  border-color: var(--gold) !important;
}

/* --------------------------------------------------------------------------
   18. Гид-блок «Дон Фишка»
   -------------------------------------------------------------------------- */
body[data-theme="neon"] .guide-hero {
  background:
    radial-gradient(ellipse at 84% 10%, rgba(255, 53, 200, .3), transparent 55%),
    linear-gradient(115deg, rgba(36, 29, 78, .92), rgba(10, 8, 24, .96) 55%, rgba(24, 14, 52, .95));
  border: 1px solid rgba(163, 43, 255, .6);
  border-radius: 20px;
  box-shadow: 0 0 44px rgba(255, 53, 200, .22), inset 0 0 60px rgba(51, 220, 255, .05);
}

body[data-theme="neon"] .guide-hero:before {
  border-color: rgba(51, 220, 255, .3);
  box-shadow: 0 0 0 24px rgba(51, 220, 255, .05), 0 0 0 50px rgba(255, 53, 200, .04);
}

body[data-theme="neon"] .guide-portrait {
  background: #070512;
  border-right: 1px solid rgba(163, 43, 255, .45);
}

body[data-theme="neon"] .guide-portrait img {
  filter: saturate(1.05) contrast(1.06);
}

body[data-theme="neon"] .portrait-stamp {
  background: rgba(14, 12, 30, .9);
  color: var(--gold2);
  border: 1px solid var(--gold);
  box-shadow: 0 0 16px rgba(255, 53, 200, .55);
  text-shadow: 0 0 10px rgba(255, 162, 230, .6);
}

body[data-theme="neon"] .guide-copy .eyebrow {
  color: var(--blue);
  text-shadow: 0 0 14px rgba(51, 220, 255, .7);
}

body[data-theme="neon"] .guide-copy h2 {
  color: #ffffff;
  text-shadow: 0 0 22px rgba(255, 53, 200, .6);
}

body[data-theme="neon"] .guide-intro {
  color: #b9b0e0;
}

body[data-theme="neon"] .guide-speech {
  background: rgba(8, 7, 20, .8);
  border-left: 3px solid var(--gold);
  box-shadow: 0 0 22px rgba(255, 53, 200, .18);
}

body[data-theme="neon"] .guide-speech .speech-mark {
  color: var(--gold);
  text-shadow: 0 0 14px rgba(255, 53, 200, .8);
}

body[data-theme="neon"] .guide-speech p {
  color: #efeaff;
}

body[data-theme="neon"] .guide-step {
  color: var(--blue);
  text-shadow: 0 0 12px rgba(51, 220, 255, .55);
}

body[data-theme="neon"] .guide-emblem {
  color: rgba(51, 220, 255, .1);
}

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

/* --------------------------------------------------------------------------
   19. Ночные итоги
   -------------------------------------------------------------------------- */
body[data-theme="neon"] .night-result-feedback {
  background: rgba(23, 20, 51, .9);
  border-color: rgba(255, 53, 200, .5);
  color: #ffe0f6;
}

body[data-theme="neon"] .night-result-feedback.good {
  background: rgba(125, 255, 107, .12);
  border-color: rgba(125, 255, 107, .55);
  color: #d6ffd2;
}

body[data-theme="neon"] .night-result-feedback.bad {
  background: rgba(255, 77, 109, .13);
  border-color: rgba(255, 77, 109, .55);
  color: #ffd2da;
}

body[data-theme="neon"] .night-result-feedback.info {
  background: rgba(51, 220, 255, .11);
  border-color: rgba(51, 220, 255, .55);
  color: #d6f6ff;
}

body[data-theme="neon"] .detective-mode-option {
  background: rgba(17, 14, 38, .85);
  border-color: rgba(91, 76, 168, .9);
  color: #efeaff;
}

body[data-theme="neon"] .detective-mode-option.selected {
  background: rgba(255, 53, 200, .22);
  border-color: var(--gold);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   20. Уникальные эффекты темы: пульсация активной вкладки и «неоновая нить»
   -------------------------------------------------------------------------- */
@keyframes neonNavPulse {
  0%, 100% {
    box-shadow: 0 0 14px rgba(255, 53, 200, .6), 0 0 34px rgba(255, 53, 200, .28);
  }
  50% {
    box-shadow: 0 0 26px rgba(51, 220, 255, .85), 0 0 54px rgba(255, 53, 200, .5);
  }
}

body[data-theme="neon"] .topbar::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 10px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--blue), var(--green), transparent);
  background-size: 220% 100%;
  box-shadow: 0 0 12px rgba(255, 53, 200, .75);
  animation: neonThread 7s linear infinite;
}

@keyframes neonThread {
  from { background-position: 0% 0; }
  to { background-position: 220% 0; }
}

body[data-theme="neon"] .panel-head h3::after {
  content: "NEON";
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .22em;
  vertical-align: 2px;
  text-shadow: 0 0 10px rgba(51, 220, 255, .9);
  box-shadow: 0 0 14px rgba(51, 220, 255, .45);
}

/* --------------------------------------------------------------------------
   21. Уважаем системную настройку «уменьшить движение»
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body[data-theme="neon"] .nav button.active,
  body[data-theme="neon"] .topbar::after {
    animation: none !important;
  }

  body[data-theme="neon"] .nav button.active {
    box-shadow: 0 0 16px rgba(255, 53, 200, .6) !important;
  }

  body[data-theme="neon"] .topbar::after {
    background-position: 30% 0 !important;
  }
}

/* --------------------------------------------------------------------------
   22. Вспомогательные элементы
   -------------------------------------------------------------------------- */
body[data-theme="neon"] .photo-action {
  background: rgba(23, 20, 51, .85);
  border: 1px solid rgba(91, 76, 168, .95);
  border-radius: 9px;
  color: var(--ink);
}

body[data-theme="neon"] .photo-action:hover {
  background: rgba(51, 220, 255, .16);
  border-color: var(--blue);
  color: #f0feff;
  box-shadow: 0 0 16px rgba(51, 220, 255, .4);
}

body[data-theme="neon"] .warn-inline {
  color: #ffb3c4;
}

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

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

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

body[data-theme="neon"] .ntfn-bell-count {
  background: var(--gold);
  color: #2a0520;
  box-shadow: 0 0 12px rgba(255, 53, 200, .7);
}

body[data-theme="neon"] .ntfn-toast {
  background: rgba(14, 12, 30, .95);
  border: 1px solid rgba(91, 76, 168, .95);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(255, 53, 200, .35);
}

body[data-theme="neon"] .ntfn-panel {
  background: linear-gradient(160deg, rgba(36, 29, 78, .96), rgba(10, 8, 24, .98));
  border: 1px solid rgba(163, 43, 255, .7);
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(255, 53, 200, .3);
}

body[data-theme="neon"] .ntfn-item {
  background: rgba(17, 14, 38, .85);
  border: 1px solid rgba(66, 53, 124, .9);
  border-radius: 10px;
}

body[data-theme="neon"] .ntfn-level {
  background: rgba(34, 28, 73, .9);
  color: #d9d2ff;
}

body[data-theme="neon"] .ntfn-level--success { background: rgba(125, 255, 107, .16); color: #d3ffd0; }
body[data-theme="neon"] .ntfn-level--warning { background: rgba(255, 53, 200, .2); color: #ffd0f2; }
body[data-theme="neon"] .ntfn-level--error { background: rgba(255, 77, 109, .18); color: #ffc8d2; }

body[data-theme="neon"] .ntfn-item-text { color: #d5dcef; }
body[data-theme="neon"] .ntfn-empty { background: transparent; border-color: rgba(91, 76, 168, .9); }

body[data-theme="neon"] .dash-situation {
  background:
    linear-gradient(150deg, rgba(255, 53, 200, .16), rgba(51, 220, 255, .1)),
    rgba(12, 10, 28, .9);
  border: 1px solid rgba(255, 53, 200, .5);
  border-radius: 12px;
}

body[data-theme="neon"] .dash-kv-row,
body[data-theme="neon"] .dash-host {
  background: rgba(17, 14, 38, .85);
  border: 1px solid rgba(66, 53, 124, .9);
  border-radius: 10px;
}

body[data-theme="neon"] .dash-ok {
  background: rgba(125, 255, 107, .1);
  border: 1px dashed rgba(125, 255, 107, .5);
  color: #d3ffd0;
}

body[data-theme="neon"] .dash-status--ok { background: rgba(125, 255, 107, .16); color: #d3ffd0; }
body[data-theme="neon"] .dash-status--sync { background: rgba(255, 53, 200, .2); color: #ffd0f2; }
body[data-theme="neon"] .dash-status--off { background: rgba(34, 28, 73, .9); color: #d9d2ff; }
body[data-theme="neon"] .dash-status--err { background: rgba(255, 77, 109, .18); color: #ffc8d2; }

body[data-theme="neon"] .room-member,
body[data-theme="neon"] .room-event {
  background: rgba(17, 14, 38, .85);
  border: 1px solid rgba(66, 53, 124, .9);
}

body[data-theme="neon"] .room-event { border-left: 3px solid rgba(255, 53, 200, .55); }

body[data-theme="neon"] .theme-card {
  background: rgba(17, 14, 38, .88);
  border: 1px solid rgba(78, 62, 148, .95);
  border-radius: 14px;
}

body[data-theme="neon"] .theme-card.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset, 0 0 24px rgba(255, 53, 200, .4);
}

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

body[data-theme="neon"] .theme-motion-row .is-on {
  background: rgba(255, 53, 200, .2);
  border-color: var(--gold);
  color: var(--gold2);
}

body[data-theme="neon"] .bracket-bar {
  background: rgba(23, 20, 51, .8);
  border: 1px solid rgba(66, 53, 124, .8);
  border-radius: 9px;
}

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

body[data-theme="neon"] .trn-check-item {
  background: rgba(17, 14, 38, .85);
  border: 1px solid rgba(66, 53, 124, .9);
  border-radius: 12px;
}

body[data-theme="neon"] .trn-check-mark {
  background: rgba(125, 255, 107, .16);
  color: #d3ffd0;
}

body[data-theme="neon"] .trn-check-item.is-warn .trn-check-mark {
  background: rgba(255, 53, 200, .2);
  color: #ffd0f2;
}

body[data-theme="neon"] .gme-stepper,
body[data-theme="neon"] .gme-selected {
  background: rgba(17, 14, 38, .85);
  border: 1px solid rgba(66, 53, 124, .9);
  border-radius: 13px;
}

body[data-theme="neon"] .gme-step-dot {
  background: rgba(34, 28, 73, .9);
  color: #c9c2f5;
}

body[data-theme="neon"] .gme-step.is-current {
  background: rgba(255, 53, 200, .2);
  color: var(--gold2);
}

body[data-theme="neon"] .gme-player-avatar {
  background: linear-gradient(140deg, rgba(255, 53, 200, .35), rgba(51, 220, 255, .3));
  color: #ffe6fb;
}
