/* STEELSOUL — единая типографика на всех страницах */

:root {
  --font-sans: 'Inter', 'Roboto', 'Noto Sans', 'Montserrat', 'Arial Unicode MS', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 14px;
  --line-height-base: 1.45;
}

html.dark {
  color-scheme: dark;
  --bg-main: #060608;
  --bg-panel: #0d0d11;
  --bg-panel-alt: #111116;
  --bg-inset: #060608;
  --bg-rule: #0b0b0e;
  --bg-rule-header: #111116;
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff0055;
  --neon-lime: #ccff00;
  --text-bright: #ffffff;
  --text-muted: #52525b;
  --text-secondary: #a1a1aa;
  --text-body: #d4d4d8;
  --text-instruction: #e4e4e7;
  --border-color: #1e1e24;
  --btn-border: #3f3f46;
  --nav-border: #1e1e24;
  --shadow-panel: 0 8px 24px rgba(0, 0, 0, 0.7);
  --header-user-color: #ffffff;
  --manifesto-color: #e85555;
  --nav-link-color: #ffffff;
  --arena-btn-color: #ffffff;
  --overlay-bg: rgba(0, 0, 0, 0.85);
  --modal-gradient: linear-gradient(165deg, #0d0d14 0%, #060608 55%, #0a0810 100%);
}

html.light,
body.light {
  color-scheme: light;
  --text-color: #111;
  --text-secondary: #333;
  --bg-color: #fff;
  --tile-bg: #f2f2f2;
  --accent: #000;
  --text-bright: var(--text-color);
  --text-body: var(--text-secondary);
  --text-instruction: var(--text-secondary);
  --text-muted: #555;
  --bg-main: var(--bg-color);
  --bg-panel: var(--tile-bg);
  --bg-panel-alt: var(--tile-bg);
  --bg-inset: #e8e8e8;
  --bg-rule: var(--tile-bg);
  --bg-rule-header: #e8e8e8;
  --neon-cyan: #0e7490;
  --neon-magenta: #be185d;
  --neon-lime: #4d7c0f;
  --border-color: #ccc;
  --btn-border: #888;
  --nav-border: #ddd;
  --shadow-panel: 0 4px 16px rgba(0, 0, 0, 0.08);
  --header-user-color: var(--text-color);
  --manifesto-color: #b91c1c;
  --nav-link-color: var(--text-color);
  --arena-btn-color: var(--text-color);
  --overlay-bg: rgba(0, 0, 0, 0.45);
  --modal-gradient: linear-gradient(165deg, #ffffff 0%, #f2f2f2 55%, #eeeeee 100%);
}

html {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

*,
*::before,
*::after {
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  line-height: var(--line-height-base);
  background-color: var(--bg-color, var(--bg-main));
  color: var(--text-color, var(--text-bright));
}

button,
input,
select,
textarea,
optgroup {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* Логотип */
.logo {
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ——— Верхняя панель: логотип · девиз · пользователь ——— */
.site-header-top {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  padding: 4px 0;
  min-height: 0;
  max-height: none;
  box-sizing: border-box;
}

.site-header-top .logo {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  max-width: none;
  line-height: 1.2;
}

.site-header-top .user-panel {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 6px;
  text-align: right;
  white-space: normal;
  word-spacing: normal;
  max-width: 100%;
  line-height: 1.3;
  font-size: 11px;
  color: var(--header-user-color);
}

.site-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  max-width: min(100%, 240px);
}

.arena-notifications-root {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.arena-notifications-btn {
  position: relative;
  border: 1px solid var(--btn-border);
  background: transparent;
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.arena-notifications-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.arena-notifications-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--neon-magenta);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.arena-notifications-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.arena-notifications-modal[hidden] {
  display: none !important;
}

body.arena-notifications-modal-open {
  overflow: hidden;
}

.arena-notifications-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.78);
  cursor: pointer;
}

.arena-notifications-modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(520px, 82vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-panel, #101014);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.arena-notifications-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.arena-notifications-modal-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.arena-notifications-read-all {
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.08);
  color: var(--neon-cyan);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  cursor: pointer;
}

.arena-notifications-read-all:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.14);
}

.arena-notifications-modal-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.arena-notifications-modal-close {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

.arena-notifications-modal-close:hover {
  color: var(--neon-cyan);
}

.arena-notifications-list {
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  flex: 1 1 auto;
}

.arena-notifications-empty {
  padding: 18px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
}

.arena-notification-item {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
  cursor: default;
}

.arena-notification-item.is-unread {
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.05);
  cursor: pointer;
}

.arena-notification-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.arena-notification-item-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-bright);
}

.arena-notification-item-time {
  font-size: 9px;
  color: var(--text-muted);
  white-space: nowrap;
}

.arena-notification-item-body {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.auth-btn {
  flex: 0 0 auto;
  border: 1px solid var(--btn-border);
  background: transparent;
  color: var(--neon-cyan);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  margin-top: 1px;
}

.auth-btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.auth-btn:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.auth-modal.is-open {
  display: flex;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(6px);
}

.auth-modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  background: var(--modal-gradient);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
  padding: 22px 20px 24px;
  box-sizing: border-box;
}

.auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.auth-modal-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.auth-modal-close {
  border: 1px solid var(--btn-border);
  background: transparent;
  color: var(--text-instruction);
  cursor: pointer;
  width: 32px;
  height: 32px;
  font-size: 16px;
  line-height: 1;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tab {
  border: 1px solid var(--border-color);
  background: var(--bg-inset);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px;
  cursor: pointer;
}

.auth-tab.is-active {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.auth-label input {
  border: 1px solid var(--border-color);
  background: var(--bg-inset);
  color: var(--text-color, var(--text-bright));
  padding: 10px 12px;
  font-size: 13px;
  box-sizing: border-box;
}

.auth-label input:focus {
  outline: none;
  border-color: var(--neon-cyan);
}

.auth-error {
  margin: 0;
  font-size: 11px;
  color: var(--neon-magenta);
  font-weight: 600;
}

.auth-submit {
  width: 100%;
  border-color: var(--neon-cyan) !important;
  color: var(--neon-cyan) !important;
  padding: 12px !important;
}

.auth-dev-lab {
  margin-top: 16px;
  padding: 14px 12px;
  border: 1px solid rgba(204, 255, 0, 0.28);
  background: rgba(204, 255, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-dev-lab[hidden] {
  display: none !important;
}

.auth-dev-lab-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-lime);
}

.auth-dev-lab-text,
.auth-dev-lab-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.auth-dev-lab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-dev-lab-btn {
  flex: 1 1 160px;
  min-width: 0;
}

.auth-social-section {
  margin-bottom: 4px;
}

.auth-telegram-hint {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 12px;
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.auth-divider-form {
  margin-top: 4px;
  margin-bottom: 14px;
}

.auth-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-inset);
  color: var(--text-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
  box-sizing: border-box;
}

.auth-social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.auth-social-btn:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

.auth-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.auth-social-label {
  flex: 1;
  text-align: left;
}

.auth-social-google {
  border-color: rgba(66, 133, 244, 0.45);
}

.auth-social-google:hover {
  border-color: #4285f4;
  box-shadow: 0 0 14px rgba(66, 133, 244, 0.25);
}

.auth-social-vk {
  border-color: rgba(76, 117, 163, 0.5);
  color: #6ea8e6;
}

.auth-social-vk:hover {
  border-color: #4c75a3;
  box-shadow: 0 0 14px rgba(76, 117, 163, 0.3);
}

.auth-social-telegram {
  border-color: rgba(38, 165, 228, 0.5);
  color: #26a5e4;
}

.auth-social-telegram:hover {
  border-color: #26a5e4;
  box-shadow: 0 0 14px rgba(38, 165, 228, 0.3);
}

.auth-social-discord {
  border-color: rgba(88, 101, 242, 0.5);
  color: #5865f2;
}

.auth-social-discord:hover {
  border-color: #5865f2;
  box-shadow: 0 0 14px rgba(88, 101, 242, 0.3);
}

.auth-social-github {
  border-color: rgba(240, 246, 252, 0.2);
}

.auth-social-github:hover {
  border-color: rgba(240, 246, 252, 0.55);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.08);
}

@media (max-width: 380px) {
  .auth-social-grid {
    grid-template-columns: 1fr;
  }
}

.guest-votes-badge[hidden],
.guest-votes-badge.is-hidden {
  display: none !important;
}

.guest-votes-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neon-magenta);
  border: 1px solid rgba(255, 0, 85, 0.35);
  padding: 3px 8px;
  background: rgba(255, 0, 85, 0.06);
  transition: opacity 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.guest-votes-badge.guest-votes-badge--active {
  color: #ff7aa8;
  border-color: rgba(255, 0, 85, 0.62);
  background: rgba(255, 0, 85, 0.12);
  box-shadow: 0 0 16px rgba(255, 0, 85, 0.24);
}

.guest-votes-badge.guest-votes-badge--empty {
  color: #8a8a95;
  border-color: rgba(120, 120, 128, 0.35);
  background: rgba(50, 50, 56, 0.16);
  box-shadow: none;
  opacity: 0.75;
}

.guest-votes-strip {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 0, 85, 0.35);
  background: rgba(255, 0, 85, 0.06);
  color: var(--neon-magenta);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-sizing: border-box;
}

.guest-votes-strip[hidden],
.guest-votes-strip.is-hidden {
  display: none !important;
}

.guest-votes-strip__label {
  color: #f4f4f5;
  opacity: 0.86;
}

.guest-votes-strip__value {
  color: inherit;
}

.guest-votes-strip.guest-votes-strip--active {
  border-color: rgba(255, 0, 85, 0.62);
  background: rgba(255, 0, 85, 0.12);
  box-shadow: 0 0 16px rgba(255, 0, 85, 0.22);
}

.guest-votes-strip.guest-votes-strip--empty {
  color: #8a8a95;
  border-color: rgba(120, 120, 128, 0.35);
  background: rgba(50, 50, 56, 0.16);
  box-shadow: none;
  opacity: 0.82;
}

.guest-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.guest-modal.is-open {
  display: flex;
}

.guest-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(6px);
}

.guest-modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: var(--modal-gradient);
  border: 2px solid var(--neon-magenta);
  box-shadow: 0 0 40px rgba(255, 0, 85, 0.2);
  padding: 22px 20px 24px;
  box-sizing: border-box;
}

.guest-modal-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-magenta);
  margin-bottom: 12px;
}

.guest-modal-text {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.guest-modal-text-ru {
  color: var(--text-color, var(--text-bright));
  font-weight: 600;
}

.guest-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.guest-modal-btn {
  flex: 1;
  border-color: var(--neon-magenta) !important;
  color: var(--neon-magenta) !important;
  padding: 10px !important;
}

.guest-modal-btn-muted {
  border-color: var(--btn-border) !important;
  color: var(--text-secondary) !important;
}

.btn-vote-login {
  width: 100%;
  border: 2px solid var(--neon-cyan) !important;
  color: var(--neon-cyan) !important;
  background: transparent;
  padding: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.theme-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  opacity: 0.88;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  opacity: 1;
  transform: scale(1.06);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

.theme-icon {
  display: inline-block;
  line-height: 1;
}

html.dark .theme-icon-light,
html.light .theme-icon-dark {
  display: none;
}

.user-passport {
  display: inline;
  white-space: normal;
  word-spacing: normal;
}

.user-sep {
  color: #71717a;
  white-space: normal;
}

.user-nick {
  color: #00f0ff;
  font-weight: 600;
}

.user-balance {
  color: #ccff00;
  font-weight: 600;
  white-space: normal;
}

.user-balance-value,
.user-currency {
  font-family: var(--font-sans);
  font-weight: 600;
  white-space: normal;
}

.user-currency {
  display: inline;
}

/* Девиз — отдельная строка под панелью управления */
.arena-manifesto {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 2px 6px;
  font-weight: 800;
  font-size: 21px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
  color: var(--manifesto-color);
  text-shadow: 0 0 10px rgba(255, 0, 85, 0.3);
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.site-header-row--manifesto {
  width: 100%;
  padding: 2px 0 6px;
  border-bottom: 1px solid var(--border-color);
  box-sizing: border-box;
}

.site-header-row--manifesto .arena-manifesto {
  font-size: clamp(15px, 4.8vw, 21px);
  padding: 0 4px;
}

.site-header-row--status {
  width: 100%;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--border-color);
  box-sizing: border-box;
}

.site-header-row--status[hidden] {
  display: none !important;
}

/* ——— Шапка и единое меню навигации ——— */
header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: 100%;
  max-width: 1000px;
  min-width: 0;
  overflow-x: clip;
  box-sizing: border-box;
}

.site-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-shrink: 0;
  margin-top: 0;
  padding: 6px 4px 4px;
  border-top: 1px solid var(--nav-border);
  background: rgba(0, 240, 255, 0.03);
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav .nav-link,
.site-nav .nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
  color: var(--nav-link-color);
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus,
.site-nav .nav-btn:hover,
.site-nav .nav-btn:focus {
  color: var(--neon-cyan);
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
}

.site-nav .nav-btn--radio {
  color: var(--neon-magenta);
  font-weight: 700;
}

.site-nav .nav-btn--radio:hover,
.site-nav .nav-btn--radio:focus {
  color: var(--neon-cyan);
}

/* ——— Светлая тема (html.light + body.light) ——— */
html.light body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

html.light .monolith-box,
html.light .life-tile,
html.light .style-card,
html.light .leaders-panel,
html.light .knights-order-panel,
html.light .category-row,
html.light .rule-section,
html.light .blind-deck,
html.light .deck-btn,
html.light .life-styles .style,
html.light .modal-inner,
html.light .knight-row,
html.light .king-throne-display {
  background: var(--tile-bg) !important;
}

html.light .box-title,
html.light .knights-order-title,
html.light .king-passport,
html.light #king-passport-container,
html.light .panel-label,
html.light .life-mode,
html.light .life-action,
html.light .submode,
html.light .style-name,
html.light .category-label,
html.light .upload-instruction-text,
html.light .arena-btn,
html.light .site-nav .nav-link,
html.light .site-nav .nav-btn,
html.light .rule-body,
html.light .rule-header,
html.light .rule-item,
html.light .track-passport,
html.light .track-passport span,
html.light .battle-modal-hint,
html.light .battle-modal-close,
html.light .battle-modal-minimize,
html.light .battle-modal-genre,
html.light .user-panel,
html.light .user-passport,
html.light .user-sep,
html.light .live-plate-hint,
html.light .deck-label,
html.light .deck-status,
html.light .vote-hint,
html.light p,
html.light .modal-inner,
html.light .modal-inner p,
html.light .modal-inner strong,
html.light .filter-scroll .arena-btn,
html.light .conveyor-box .box-title,
html.light #knights-order-list > div,
html.light .category-row span {
  color: var(--text-color) !important;
}

html.light .site-nav {
  background: rgba(0, 0, 0, 0.04);
}

html.light #mode-duel-plate.submode,
html.light #mode-royale-plate.submode:not(.submode--active):not(.submode--engaged):not(.submode--selected) {
  color: var(--text-color) !important;
  border-color: var(--border-color) !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

html.light .life-tile:not(.life-tile--royal-live):not(.life-tile--hot) {
  border-color: var(--border-color) !important;
  box-shadow: var(--shadow-panel) !important;
}

html.light .life-styles .style.active-live {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

html.light .knights-order-title,
html.light .conveyor-box .box-title {
  text-shadow: none !important;
}

html.light .arena-manifesto {
  color: var(--manifesto-color);
  text-shadow: none;
}

html.light .logo {
  color: var(--accent);
  text-shadow: none;
}

html.light .king-highlight {
  color: #b8860b !important;
  text-shadow: none !important;
}

html.light .king-crown {
  filter: none;
}

html.light .user-nick {
  color: var(--neon-cyan) !important;
}

html.light .user-balance,
html.light .user-balance-value,
html.light .user-currency {
  color: var(--neon-lime) !important;
}

html.light .site-nav .nav-btn--radio {
  color: var(--neon-magenta) !important;
}

html.light .battle-modal-title {
  color: var(--neon-magenta) !important;
}

html.light .battle-modal-panel {
  background: var(--modal-gradient);
  box-shadow: var(--shadow-panel);
}

html.light .battle-modal-backdrop,
html.light #robot-modal {
  background: var(--overlay-bg);
}

html.light header {
  border-bottom-color: var(--border-color);
}

html.light .arena-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--accent) !important;
}

html.light .champion-icon svg,
html.light svg.champion-icon,
html.light .champions-page svg,
html.light .monolith-box svg {
  filter: invert(1);
}

html.light .knight-row--gold {
  background: rgba(255, 215, 0, 0.12) !important;
  border-color: #b8860b !important;
}

.nav-label-short {
  display: none;
}

.nav-label-full {
  display: inline;
}

@media (max-width: 768px) {
  .site-nav {
    gap: 5px;
    max-width: 100%;
    min-width: 0;
    padding: 4px 0 3px;
    justify-content: center;
  }

  .arena-manifesto {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.06em;
  }

  .site-nav .nav-link,
  .site-nav .nav-btn {
    padding: 3px 6px;
    font-size: 9px;
  }

  .site-nav .nav-label-short {
    display: inline;
  }

  .site-nav .nav-label-full {
    display: none;
  }
}

/* Общие заголовки блоков */
.box-title,
.knights-order-title,
.battle-modal-title,
.deck-label,
.panel-label,
.mode-plate-title,
.king-passport,
#king-passport-container {
  letter-spacing: 0.04em;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.knights-order-title,
.battle-modal-title,
.deck-label,
.panel-label,
.mode-plate-title {
  font-weight: 700;
}

html.light .tree-branch-row,
html.light #tree-modal .modal-inner {
  background: var(--tile-bg) !important;
}

html.light #live-tree-modal,
html.light #tree-modal {
  background: var(--overlay-bg) !important;
}

html.light #live-tree-modal .modal-inner {
  background: var(--tile-bg) !important;
}

.king-passport,
#king-passport-container {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-color, var(--text-bright));
}

.vs-label {
  font-weight: 700;
  text-align: center;
}

/* ——— Мобильная типографика (< 480px) ——— */
@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  body {
    line-height: 1.25;
  }

  .arena-manifesto {
    font-size: clamp(14px, 4.6vw, 18px);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.25;
    padding: 0 4px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .site-header-top {
    gap: 6px 8px;
    padding: 2px 0;
    max-height: none;
  }

  .site-header-top .logo {
    font-size: 9px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-header-top .user-panel {
    font-size: 9px;
    line-height: 1.25;
    white-space: normal;
    word-spacing: normal;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 3px 5px;
  }

  .site-header-actions {
    flex: 0 0 auto;
    max-width: 52%;
    gap: 4px 5px !important;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
  }

  .theme-toggle {
    font-size: 13px !important;
  }

  .logo {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  .box-title,
  .knights-order-title,
  .battle-modal-title,
  .deck-label,
  .panel-label,
  .mode-plate-title,
  .rule-header {
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.25;
  }

  .king-passport,
  #king-passport-container {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
  }

  .rule-body,
  .rule-item,
  p,
  .track-passport {
    line-height: 1.3;
    word-break: break-word;
  }

  strong,
  b {
    font-weight: 600;
  }
}

#user-arena-stage.user-arena-stage--pulse {
  animation: user-arena-stage-pulse 1.6s ease-in-out infinite alternate;
}

@keyframes user-arena-stage-pulse {
  from { box-shadow: 0 0 8px rgba(168, 85, 247, 0.22); }
  to { box-shadow: 0 0 18px rgba(168, 85, 247, 0.42); }
}

html.light .arena-btn--duel-ready {
  color: #5a8f00 !important;
  border-color: #5a8f00 !important;
  box-shadow: 0 0 14px rgba(90, 143, 0, 0.24) !important;
}

html.light .arena-btn--duel-alert,
html.light .arena-btn--duel-locked {
  color: #c4003d !important;
  border-color: #c4003d !important;
}

html.light .arena-btn--duel-shield {
  color: #7c3aed !important;
  border-color: #7c3aed !important;
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.24) !important;
}

html.light .arena-btn--duel-self {
  color: #b8860b !important;
  border-color: #b8860b !important;
  box-shadow: 0 0 14px rgba(184, 134, 11, 0.22) !important;
}

html.light #mode-duel-plate.submode.submode--active,
html.light #mode-duel-plate.submode.submode--engaged,
html.light #mode-duel-plate.submode.submode--selected {
  color: #007f8f !important;
  border-color: #007f8f !important;
  box-shadow: 0 0 16px rgba(0, 127, 143, 0.24) !important;
}

html.light #mode-hot-plate.submode.submode--active,
html.light #mode-hot-plate.submode.submode--engaged,
html.light #mode-hot-plate.submode.submode--selected {
  color: #c98a00 !important;
  border-color: #c98a00 !important;
  box-shadow: 0 0 16px rgba(201, 138, 0, 0.24) !important;
}

html.light #mode-royale-plate.submode.submode--active,
html.light #mode-royale-plate.submode.submode--engaged,
html.light #mode-royale-plate.submode.submode--selected {
  color: #b8860b !important;
  border-color: #b8860b !important;
  box-shadow: 0 0 18px rgba(184, 134, 11, 0.28) !important;
}

html.light .leaders-panel.leaders-panel--royal-live,
html.light .leaders-panel.leaders-panel--royal-forming {
  border-color: #b8860b !important;
  box-shadow: 0 0 18px rgba(184, 134, 11, 0.2) !important;
}

html.light .life-tile.life-tile--royal-live {
  border-color: #b8860b !important;
  box-shadow: 0 0 20px rgba(184, 134, 11, 0.18) !important;
}

html.light .knight-row--self {
  border-color: rgba(184, 134, 11, 0.55) !important;
  box-shadow: 0 0 14px rgba(184, 134, 11, 0.16) !important;
}

html.light .knight-row--shielded {
  border-color: rgba(124, 58, 237, 0.45) !important;
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.14) !important;
}

html.light .knights-order-panel--hunt {
  border-color: #dc2626 !important;
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.95), rgba(254, 202, 202, 0.55)) !important;
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.28) !important;
}

html.light .knights-order-title--hunt {
  color: #b91c1c !important;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.35) !important;
}

.radio-announcement-banner {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12000;
  max-width: min(92vw, 640px);
  padding: 14px 22px;
  border: 2px solid rgba(220, 38, 38, 0.85);
  background: linear-gradient(180deg, rgba(69, 10, 10, 0.95), rgba(24, 0, 0, 0.92));
  color: #fecaca;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 28px rgba(220, 38, 38, 0.45);
  animation: radio-announcement-pulse 1.1s ease-in-out infinite alternate;
}

.radio-announcement-banner--hide {
  opacity: 0;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

@keyframes radio-announcement-pulse {
  from {
    box-shadow: 0 0 16px rgba(220, 38, 38, 0.35);
  }
  to {
    box-shadow: 0 0 34px rgba(248, 113, 113, 0.62);
  }
}

html.light .radio-announcement-banner {
  color: #7f1d1d;
  background: linear-gradient(180deg, #fee2e2, #fecaca);
  border-color: #dc2626;
}

html.light .king-throne-display--active {
  border-color: #b8860b !important;
  outline-color: rgba(184, 134, 11, 0.35) !important;
  box-shadow: 0 0 24px rgba(184, 134, 11, 0.24), inset 0 0 28px rgba(184, 134, 11, 0.08) !important;
}

html.light .king-throne-display--active #king-passport-container {
  border-color: rgba(184, 134, 11, 0.45) !important;
  box-shadow: inset 0 0 16px rgba(184, 134, 11, 0.08) !important;
}

html.light .knight-row--duel-live {
  border-color: rgba(196, 0, 61, 0.45) !important;
  box-shadow: 0 0 14px rgba(196, 0, 61, 0.14) !important;
}
