/* Колизей: перебиваем старые неоновые стили из index.html */

.arena-mp3-input-hidden {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0.001;
  overflow: hidden;
  z-index: -1;
}

.arena-mp3-picker-label {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0.001;
  overflow: hidden;
  z-index: -1;
}

body.arena-page {
  display: block !important;
  align-items: stretch !important;
  min-height: 100vh !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  background: #0a0806 !important;
}

/* До arena-intro.js панели не всплывают разом */
body.arena-page.arena-booting .arena-chrome,
body.arena-page.arena-booting .king-throne,
body.arena-page.arena-booting .live-panel,
body.arena-page.arena-booting .cohort-panel,
body.arena-page.arena-booting .top20-panel,
body.arena-page.arena-booting .upload-stone,
body.arena-page.arena-booting .intro-hint {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.arena-page.arena-booting .arena-main-video {
  opacity: 1 !important;
  visibility: visible !important;
}

body.arena-page.is-arena-ready #livePanel,
body.arena-page.is-arena-ready #livePanel * {
  pointer-events: auto !important;
}

body.arena-page:not(.is-arena-ready) #livePanel {
  pointer-events: none !important;
}

body.arena-page:not(.live-board-ready) #livePanel,
body.arena-page:not(.live-board-ready) #livePanel * {
  pointer-events: none !important;
}

body.arena-page:not(.live-board-ready) #livePanel .life-pair-enter {
  animation: none !important;
}

/* Королевская загрузка 0/16 — кликабельна сразу после интро, без ожидания LIVE-доски */
body.arena-page.is-arena-ready #leaders-panel,
body.arena-page.is-arena-ready #leaders-panel * {
  pointer-events: auto !important;
}

/* ТОП-20 и кагорта — кликабельны сразу после заставки (не только при arena-intro-skip) */
body.arena-page.is-arena-ready #top20Panel.is-stopped,
body.arena-page.is-arena-ready #top20Panel.is-stopped *,
body.arena-page.is-arena-ready #cohortPanel.is-stopped,
body.arena-page.is-arena-ready #cohortPanel.is-stopped * {
  pointer-events: auto !important;
}

/* Повторный заход: плавное появление, не мгновенный skip */
body.arena-page.arena-intro-skip:not(.arena-booting) .king-throne,
body.arena-page.arena-intro-skip:not(.arena-booting) .live-panel,
body.arena-page.arena-intro-skip:not(.arena-booting) .cohort-panel,
body.arena-page.arena-intro-skip:not(.arena-booting) .top20-panel,
body.arena-page.arena-intro-skip:not(.arena-booting) .upload-stone {
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 1, 0.35, 1);
}

/* Старый index.html вешает правила на тег header — ломает центр меню */
body.arena-page header.arena-chrome {
  max-width: none !important;
  width: 100% !important;
  display: block !important;
  flex-direction: unset !important;
  align-items: unset !important;
  border-bottom: none !important;
  box-sizing: border-box !important;
}

body.arena-page .arena-chrome__strip {
  justify-content: center !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.arena-page .arena-main-video {
  display: block !important;
  transition: filter 0.45s ease;
}

body.arena-page.arena-atmosphere-calm .arena-main-video {
  filter: brightness(0.9) saturate(0.88);
}

body.arena-page.arena-atmosphere-live .arena-main-video {
  filter: none;
}

/* Счётчики Дни / Рега / Онлайн в шапке арены */
body.arena-page .arena-stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(184, 150, 62, 0.35);
  background: linear-gradient(168deg, #3a342e 0%, #221e1a 55%, #141210 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -3px 6px rgba(0, 0, 0, 0.28),
    0 2px 5px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-80%) scale(0.9);
  pointer-events: none;
  white-space: nowrap;
}

body.arena-page .arena-stats.is-landing,
body.arena-page .arena-stats[data-intro-chip].is-landing {
  animation: arena-chip-land 0.28s cubic-bezier(0.2, 1, 0.35, 1) forwards;
  will-change: transform, opacity;
  pointer-events: auto;
}

body.arena-page .arena-chrome.is-stopped .arena-stats[data-intro-chip] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

body.arena-page.arena-intro-skip .arena-chrome.is-stopped .arena-stats[data-intro-chip] {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

body.arena-page .arena-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
  min-width: 28px;
}

body.arena-page .arena-stat__label {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 192, 180, 0.72);
}

body.arena-page .arena-stat__value {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 700;
  color: #e8c547;
  letter-spacing: 0.02em;
}

body.arena-page .arena-stat--online .arena-stat__value {
  color: #7dcea0;
}

/* Камень в меню — тишина / живая арена (только главная) */
.arena-chip.arena-atmosphere-stone {
  min-width: 28px;
  padding: 5px 8px;
  cursor: pointer;
}

.arena-atmosphere-stone__knob {
  display: block;
  width: 12px;
  height: 10px;
  border-radius: 4px 2px 5px 3px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16) 0%, transparent 42%),
    linear-gradient(168deg, #6a6258 0%, #403a32 48%, #2a2620 100%);
  border: 1px solid rgba(110, 100, 88, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -3px 6px rgba(0, 0, 0, 0.42),
    2px 2px 5px rgba(0, 0, 0, 0.45);
}

.arena-atmosphere-stone.is-calm .arena-atmosphere-stone__knob {
  filter: brightness(0.78);
}

.arena-atmosphere-stone.is-live .arena-atmosphere-stone__knob {
  border-color: rgba(210, 170, 90, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.18),
    inset 0 -3px 6px rgba(0, 0, 0, 0.38),
    2px 2px 5px rgba(0, 0, 0, 0.42),
    0 0 10px rgba(255, 170, 60, 0.4);
  animation: arena-stone-glow 2.4s ease-in-out infinite;
}

.arena-atmosphere-stone:hover .arena-atmosphere-stone__knob {
  filter: brightness(1.1);
}

.arena-atmosphere-stone:active .arena-atmosphere-stone__knob {
  transform: scale(0.92);
}

body.arena-page.arena-intro-skip .arena-atmosphere-stone.is-calm,
body.arena-page.arena-intro-skip .arena-atmosphere-stone.is-live {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@keyframes arena-stone-glow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.14), inset 0 -3px 6px rgba(0, 0, 0, 0.4), 2px 2px 5px rgba(0, 0, 0, 0.42), 0 0 7px rgba(255, 160, 60, 0.28); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.22), inset 0 -3px 6px rgba(0, 0, 0, 0.36), 2px 2px 5px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 190, 90, 0.48); }
}

body.arena-page .arena-chrome__strip #guest-votes-badge.guest-votes-badge {
  flex: 0 0 auto;
  margin: 0;
  padding: 5px 8px;
  font-size: 7px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  border-radius: 0;
  color: #ffffff !important;
}

body.arena-page .arena-chrome__strip #guest-votes-badge[data-intro-chip] {
  opacity: 0;
  transform: translate3d(0, -80%, 0) scale(0.9);
  pointer-events: none;
  will-change: transform, opacity;
}

body.arena-page .arena-chrome__strip #guest-votes-badge[data-intro-chip].is-landing {
  animation: arena-chip-land 0.28s cubic-bezier(0.2, 1, 0.35, 1) forwards;
  pointer-events: auto;
}

body.arena-page .arena-chrome.is-stopped #guest-votes-badge[data-intro-chip] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

body.arena-page.arena-intro-skip .arena-chrome.is-stopped #guest-votes-badge[data-intro-chip] {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

body.arena-page .arena-chrome__strip #guest-votes-badge.guest-votes-badge--active,
body.arena-page .arena-chrome__strip #guest-votes-badge.guest-votes-badge--empty {
  color: #ffffff !important;
}

body.arena-page .arena-chrome__strip #guest-votes-badge[hidden] {
  display: none !important;
}

body.arena-page .arena-chrome__strip #arena-bell.arena-chip--bell {
  position: relative;
  flex: 0 0 auto;
  min-width: 30px;
  width: auto;
  height: auto;
  padding: 5px 7px;
  margin: 0;
  color: #9aa3ad;
  cursor: pointer;
}

body.arena-page .arena-chrome__strip #arena-bell .arena-bell__icon {
  display: block;
  width: 12px;
  height: 12px;
  fill: currentColor;
}

body.arena-page .arena-chrome__strip #arena-bell .arena-notifications-badge {
  top: -3px;
  right: -3px;
  min-width: 14px;
  height: 14px;
  font-size: 8px;
  line-height: 14px;
}

body.arena-page .arena-chrome__strip #arena-bell[data-intro-chip] {
  opacity: 0;
  transform: translate3d(0, -80%, 0) scale(0.9);
  pointer-events: none;
  will-change: transform, opacity;
}

body.arena-page .arena-chrome__strip #arena-bell[data-intro-chip].is-landing {
  animation: arena-chip-land 0.28s cubic-bezier(0.2, 1, 0.35, 1) forwards;
  pointer-events: auto;
}

body.arena-page .arena-chrome.is-stopped #arena-bell[data-intro-chip] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

body.arena-page.arena-intro-skip .arena-chrome.is-stopped #arena-bell[data-intro-chip] {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

@keyframes alphaPulse {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@keyframes duel-challenge-alert-pulse {
  0%, 100% {
    border-color: rgba(255, 0, 68, 0.88);
    box-shadow:
      0 0 14px rgba(255, 0, 68, 0.42),
      inset 0 0 22px rgba(255, 0, 40, 0.08);
  }
  50% {
    border-color: #ff5c8a;
    box-shadow:
      0 0 28px rgba(255, 0, 68, 0.82),
      0 0 44px rgba(255, 0, 40, 0.34),
      inset 0 0 30px rgba(255, 0, 40, 0.16);
  }
}

body.duel-challenge-modal-open {
  overflow: hidden !important;
}

body.duel-challenge-modal-open #robot-modal,
body.duel-challenge-modal-open .upload-success-modal.is-open {
  z-index: 10350 !important;
}

body.duel-challenge-modal-open .guest-modal.is-open,
body.duel-challenge-modal-open #guest-restriction-modal.is-open,
body.duel-challenge-modal-open #guest-vote-limit-modal.is-open {
  z-index: 10360 !important;
}

#bell-modal.bell-modal--duel-challenge.bell-modal--duel-uploading {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#bell-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 4, 6, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-sizing: border-box;
}

#bell-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#bell-modal.bell-modal--duel-challenge.is-open {
  z-index: 10260;
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.94);
}

#bell-modal.bell-modal--duel-challenge .bell-modal__slab {
  width: min(920px, 100%);
  height: min(96vh, 920px);
  max-width: 100%;
  border: 3px solid rgba(255, 0, 68, 0.9);
  animation: duel-challenge-alert-pulse 1.15s ease-in-out infinite;
}

#bell-modal.bell-modal--duel-challenge .bell-modal__media {
  flex: 1 1 auto;
  height: auto;
  min-height: min(58vh, 560px);
  max-height: none;
}

#bell-modal.bell-modal--duel-challenge .bell-modal__alert {
  color: #ff6b8f;
}

#bell-modal.bell-modal--duel-challenge .bell-modal__opponent {
  margin: 0;
  max-width: 34em;
  font-family: 'Arial Black', 'Impact', sans-serif !important;
  font-size: clamp(0.78rem, 2.4vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd0dc;
  line-height: 1.25;
  -webkit-text-stroke: 1px #000 !important;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 1) !important;
}

#bell-modal.bell-modal--duel-challenge .bell-modal__actions {
  position: relative;
  z-index: 12;
  border-top-color: rgba(255, 0, 68, 0.45);
  background: linear-gradient(0deg, rgba(24, 4, 10, 0.99), rgba(36, 8, 16, 0.97));
  padding: 16px 18px 18px;
}

#bell-modal.bell-modal--duel-challenge .bell-modal__actions--duel-choice {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
}

#bell-modal.bell-modal--duel-challenge .bell-modal__btn {
  flex: 1 1 0;
  min-width: 0;
  margin-top: 0;
  padding: 14px 16px;
  font-size: clamp(12px, 2.8vw, 16px);
  letter-spacing: 0.14em;
}

#bell-modal.bell-modal--duel-challenge .bell-modal__btn--accept {
  border-color: rgba(0, 220, 160, 0.9);
  background: rgba(6, 36, 28, 0.95);
  color: #d6fff2;
  box-shadow: 0 0 16px rgba(0, 220, 160, 0.28);
}

#bell-modal.bell-modal--duel-challenge .bell-modal__btn--accept:hover {
  background: rgba(10, 52, 40, 0.98);
  border-color: #66ffd0;
  color: #ffffff;
}

#bell-modal.bell-modal--duel-challenge .bell-modal__btn--decline {
  border-color: rgba(255, 0, 68, 0.95);
  background: rgba(48, 4, 14, 0.95);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(255, 0, 68, 0.45);
}

#bell-modal.bell-modal--duel-challenge .bell-modal__btn--decline:hover {
  background: rgba(72, 8, 22, 0.98);
  border-color: #ff5c8a;
  color: #ffffff;
}

#bell-modal.bell-modal--duel-challenge .bell-modal__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#bell-modal.bell-modal--duel-challenge .bell-modal__deadline {
  margin: 0;
  max-width: 34em;
  font-family: 'Arial Black', 'Impact', sans-serif !important;
  font-size: clamp(0.72rem, 2vw, 0.88rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd59a;
  line-height: 1.25;
  -webkit-text-stroke: 1px #000 !important;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 1) !important;
}

#bell-modal.bell-modal--duel-challenge .bell-modal__slab {
  position: relative;
}

.duel-decline-confirm {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.88);
}

.duel-decline-confirm.is-visible {
  display: flex;
}

.duel-decline-confirm__text {
  margin: 0;
  max-width: 28em;
  text-align: center;
  font-family: 'Arial Black', 'Impact', sans-serif;
  font-size: clamp(0.82rem, 2.4vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffe8ef;
  line-height: 1.35;
  -webkit-text-stroke: 1px #000;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 1);
}

.duel-decline-confirm__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 720px);
  max-width: none;
  padding: 0 8px;
  box-sizing: border-box;
  margin-top: 8px;
}

.duel-decline-confirm__btn {
  min-width: clamp(120px, 28vw, 180px);
  padding: 12px 22px;
  border: 2px solid;
  background: rgba(12, 10, 8, 0.95);
  font-family: 'Arial Black', 'Impact', sans-serif;
  font-size: clamp(12px, 2.8vw, 15px);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 1);
}

.duel-decline-confirm__btn--no {
  border-color: rgba(0, 220, 160, 0.85);
  color: #d6fff2;
}

.duel-decline-confirm__btn--no:hover {
  background: rgba(8, 40, 32, 0.98);
  border-color: #66ffd0;
  color: #ffffff;
}

.duel-decline-confirm__btn--yes {
  border-color: rgba(255, 0, 68, 0.95);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 0, 68, 0.35), 3px 3px 0 rgba(0, 0, 0, 1);
}

.duel-decline-confirm__btn--yes:hover {
  background: rgba(72, 8, 22, 0.98);
  border-color: #ff5c8a;
}

.duel-decline-confirm__btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.bell-modal__slab {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  box-sizing: border-box;
  border: 2px solid #6b5a3a;
  background: #0e0c0a;
  box-shadow:
    inset 0 1px 0 rgba(120, 100, 68, 0.22),
    0 18px 48px rgba(0, 0, 0, 0.72);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: default;
}

.bell-modal__media {
  position: relative;
  width: 100%;
  height: 320px;
  max-height: 320px;
  background: #000;
  overflow: hidden;
}

#duel-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: transparent !important;
}

.bell-modal__copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 20px 16px;
  text-align: center;
  pointer-events: none;
}

.bell-modal__alert,
.bell-modal__body {
  margin: 0;
  line-height: 1.15;
  opacity: 1 !important;
  font-family: 'Arial Black', 'Impact', sans-serif !important;
  font-weight: 900;
  font-style: normal;
  -webkit-text-stroke: 1px #000 !important;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 1) !important;
}

.bell-modal__alert {
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d4af37;
}

.bell-modal__body {
  max-width: 420px;
  font-size: clamp(0.82rem, 2.2vw, 1rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
}

.bell-modal__actions {
  padding: 12px 16px 16px;
  text-align: center;
  background: linear-gradient(0deg, rgba(18, 16, 14, 0.99), rgba(28, 24, 20, 0.96));
  border-top: 1px solid #6b5a3a;
}

.bell-modal__btn {
  min-width: 168px;
  margin-top: 20px;
  padding: 11px 22px;
  border: 2px solid #6b5a3a;
  background: rgba(28, 24, 20, 0.92);
  color: #b8a070;
  font-family: 'Arial Black', 'Impact', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 1);
}

.bell-modal__btn:hover {
  background: rgba(42, 36, 28, 0.96);
  color: #d4c4a0;
}

body.arena-page #king-throne-display.king-throne__frame {
  margin-top: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(20, 16, 10, 0.95) 0%, rgba(8, 6, 4, 0.97) 100%) !important;
  border: 2px solid rgba(184, 150, 62, 0.48) !important;
  box-shadow:
    inset 0 0 28px rgba(120, 90, 30, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.55) !important;
}

body.arena-page #king-throne-display.king-throne__frame--occupied {
  border-color: rgba(232, 197, 71, 0.72) !important;
  box-shadow:
    inset 0 0 32px rgba(232, 197, 71, 0.12),
    0 0 24px rgba(232, 197, 71, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.55) !important;
}

body.arena-page #king-passport-container.king-throne__hint {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(9px, 2vw, 11px) !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #a89870 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.arena-page .upload-stone__row {
  display: flex !important;
  flex-direction: row !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  justify-content: center !important;
}

body.arena-page .upload-stone__grid {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-content: center !important;
  align-items: stretch !important;
}

body.arena-page .upload-stone.is-wizard-open .upload-stone__grid {
  align-content: flex-start !important;
  justify-content: center !important;
}

body.arena-page .upload-stone__pick-hint.is-grid-lock {
  color: #e8a040 !important;
  font-weight: 700 !important;
}

.grid-lock-toast {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 10150;
  width: min(92vw, 420px);
  padding: 12px 14px;
  box-sizing: border-box;
  border: 2px solid rgba(232, 160, 64, 0.75);
  background: linear-gradient(180deg, rgba(32, 22, 10, 0.97), rgba(12, 8, 4, 0.98));
  color: #f0d090;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  letter-spacing: 0.03em;
  box-shadow: 0 0 24px rgba(232, 160, 64, 0.22), 0 12px 32px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(120%);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.grid-lock-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ── LIVE ── */
body.arena-page #live-plate-container.life-tile {
  border: 1px solid rgba(196, 30, 58, 0.55) !important;
  background: linear-gradient(180deg, rgba(14, 8, 10, 0.92) 0%, rgba(6, 4, 8, 0.94) 100%) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow: inset 0 0 32px rgba(196, 30, 58, 0.1), 0 0 24px rgba(196, 30, 58, 0.15) !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  animation: none !important;
}

body.arena-page #live-plate-container.life-tile--hot {
  border-color: rgba(232, 197, 71, 0.55) !important;
  box-shadow: inset 0 0 32px rgba(232, 197, 71, 0.08), 0 0 24px rgba(232, 197, 71, 0.18) !important;
  background: linear-gradient(180deg, rgba(18, 14, 8, 0.92) 0%, rgba(8, 6, 4, 0.94) 100%) !important;
}

body.arena-page #live-plate-container.life-tile--hot .life-mode {
  color: #e8c547 !important;
  text-shadow: 0 0 12px rgba(232, 197, 71, 0.35) !important;
}

body.arena-page #livePanel.live-panel--has-battle {
  filter: drop-shadow(0 0 18px rgba(255, 72, 72, 0.22));
}

body.arena-page #livePanel.live-panel--hot {
  filter: drop-shadow(0 0 22px rgba(232, 197, 71, 0.28));
}

body.arena-page #live-plate-container.life-tile--live {
  border-color: rgba(255, 72, 72, 0.42) !important;
  box-shadow: inset 0 0 28px rgba(255, 72, 72, 0.06), 0 0 20px rgba(255, 72, 72, 0.16) !important;
}

body.arena-page #live-plate-container.life-tile--live .life-mode {
  color: #ff6b6b !important;
  text-shadow: 0 0 12px rgba(255, 107, 107, 0.35) !important;
}

body.arena-page #live-plate-container.life-tile--royal-live {
  border-color: rgba(232, 197, 71, 0.55) !important;
  box-shadow: inset 0 0 32px rgba(232, 197, 71, 0.08), 0 0 24px rgba(232, 197, 71, 0.18) !important;
  animation: none !important;
}

body.arena-page #live-plate-container .life-ring-link {
  display: block !important;
  margin: 8px 12px 0 !important;
  padding: 8px 10px !important;
  text-align: center !important;
  text-decoration: none !important;
  font-family: 'Cinzel', serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #c9a259 !important;
  border: 1px solid rgba(201, 162, 89, 0.45) !important;
  border-radius: 4px !important;
  background: rgba(201, 162, 89, 0.08) !important;
}

body.arena-page #live-plate-container .life-ring-link:hover {
  background: rgba(201, 162, 89, 0.18) !important;
  color: #ffe6a8 !important;
}

body.arena-page #live-plate-container .life-mode {
  margin: 0 !important;
  font-family: 'Cinzel', serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  color: #ff8a9a !important;
  padding: 12px 12px 8px !important;
  border-bottom: 1px solid rgba(196, 30, 58, 0.3) !important;
  text-shadow: 0 0 14px rgba(196, 30, 58, 0.35) !important;
}

body.arena-page #live-plate-container .life-submodes {
  display: flex !important;
  grid-template-columns: unset !important;
  gap: 6px !important;
  padding: 10px 12px 0 !important;
  width: auto !important;
}

body.arena-page #live-plate-container .submode {
  flex: 1 1 0 !important;
  opacity: 1 !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: rgba(120, 110, 95, 0.35) !important;
  color: #c8beb0 !important;
  background: rgba(0, 0, 0, 0.4) !important;
  box-shadow: none !important;
  animation: none !important;
  text-shadow: none !important;
  padding: 8px 5px !important;
  font-family: 'Cinzel', serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  white-space: nowrap !important;
  line-height: 1.25 !important;
  cursor: pointer !important;
}

body.arena-page #live-plate-container .submode.submode--selected,
body.arena-page #live-plate-container .submode.submode--active,
body.arena-page #live-plate-container .submode.submode--engaged {
  color: #fff !important;
  border-color: #c41e3a !important;
  background: rgba(196, 30, 58, 0.22) !important;
}

body.arena-page #live-plate-container .submode.is-disabled,
body.arena-page #live-plate-container .submode.is-disabled[disabled] {
  opacity: 0.35 !important;
  color: #6a6360 !important;
  background: rgba(0, 0, 0, 0.25) !important;
  border-color: rgba(106, 99, 96, 0.22) !important;
  box-shadow: none !important;
  animation: none !important;
  text-shadow: none !important;
  filter: grayscale(0.55);
  pointer-events: none !important;
  cursor: not-allowed !important;
}

body.arena-page #live-plate-container .life-action {
  color: rgba(168, 152, 136, 0.95) !important;
  text-shadow: none !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: 0.16em !important;
  margin: 8px 12px 10px !important;
}

body.arena-page #live-plate-container.life-tile--hot .life-action {
  color: #ffd54a !important;
  text-shadow: 0 0 14px rgba(255, 213, 74, 0.7), 0 0 28px rgba(255, 145, 0, 0.28) !important;
  font-size: 11px !important;
}

body.arena-page #live-plate-container .life-hot-banner {
  margin: 0 12px 8px !important;
  font-size: 8px !important;
  border-color: rgba(232, 197, 71, 0.45) !important;
  color: #e8c547 !important;
  background: rgba(232, 197, 71, 0.1) !important;
}

body.arena-page {
  --arena-live-w: min(96vw, 660px);
}

body.arena-page .live-panel {
  width: var(--arena-live-w) !important;
}

body.arena-page .king-throne {
  width: var(--arena-live-w) !important;
  max-width: var(--arena-live-w) !important;
}

body.arena-page #king-throne-display.king-throne__frame {
  width: 100% !important;
  box-sizing: border-box !important;
}

body.arena-page #live-plate-container .life-liveboard {
  display: grid !important;
  grid-template-columns: minmax(104px, 118px) minmax(0, 1fr) !important;
  gap: 0 !important;
  width: auto !important;
  margin: 10px 12px 14px !important;
  min-height: 252px !important;
  max-height: min(52vh, 420px) !important;
  border: 1px solid rgba(196, 30, 58, 0.35) !important;
  background: rgba(0, 0, 0, 0.45) !important;
}

body.arena-page #live-style-tabs.life-styles {
  display: grid !important;
  grid-template-rows: repeat(10, minmax(0, 1fr)) !important;
  flex-direction: unset !important;
  gap: 2px !important;
  max-width: none !important;
  min-height: 0 !important;
  height: 100% !important;
  align-self: stretch !important;
  border-right: 1px solid rgba(196, 30, 58, 0.25) !important;
  padding: 5px 4px !important;
  overflow: hidden !important;
}

body.arena-page #live-style-tabs .style {
  min-height: 0 !important;
  border: none !important;
  background: transparent !important;
  padding: 3px 5px !important;
  font-size: 7px !important;
  line-height: 1.1 !important;
  color: #a89888 !important;
  animation: none !important;
  box-shadow: none !important;
}

body.arena-page #live-style-tabs .life-style-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 4px !important;
  width: 100% !important;
}

body.arena-page #live-style-tabs .life-style-name {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.arena-page #live-style-tabs .life-style-count {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  font-size: 6px !important;
  letter-spacing: 0.04em !important;
}

body.arena-page #live-style-tabs .style:hover {
  border: none !important;
  box-shadow: none !important;
  color: #d8d0c4 !important;
}

body.arena-page #live-style-tabs .style.is-disabled,
body.arena-page #live-style-tabs .style.is-disabled:disabled {
  opacity: 0.35 !important;
  color: #6a6360 !important;
  background: transparent !important;
  border-left: 2px solid rgba(106, 99, 96, 0.22) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: grayscale(0.55);
  pointer-events: none !important;
  cursor: not-allowed !important;
}

body.arena-page #live-style-tabs .style.is-disabled .life-style-name,
body.arena-page #live-style-tabs .style.is-disabled .life-style-count {
  color: #6a6360 !important;
  opacity: 1 !important;
}

body.arena-page #live-style-tabs .style.active-live:not(.is-active):not(.is-disabled) {
  color: #fff !important;
  background: rgba(196, 30, 58, 0.22) !important;
  border-left: 2px solid #c41e3a !important;
  opacity: 1 !important;
  text-shadow: 0 0 8px rgba(196, 30, 58, 0.35);
}

body.arena-page #live-style-tabs .style.is-passive.active-live {
  color: #fff !important;
  background: rgba(196, 30, 58, 0.22) !important;
  border-left: 2px solid #c41e3a !important;
  opacity: 1 !important;
}

body.arena-page #live-style-tabs .style.is-active {
  color: #ffffff !important;
  background: rgba(34, 160, 80, 0.28) !important;
  border-left: 2px solid #3ecf6a !important;
  box-shadow: 0 0 12px rgba(62, 207, 106, 0.35) !important;
  text-shadow: 0 0 10px rgba(62, 207, 106, 0.45), 0 0 18px rgba(46, 184, 92, 0.22);
  opacity: 1 !important;
}

body.arena-page #live-style-tabs .style.is-active .life-style-name,
body.arena-page #live-style-tabs .style.is-active .life-style-count {
  color: #ffffff !important;
  opacity: 1 !important;
}

body.arena-page #live-style-tabs .style.style-hot-live:not(.is-active):not(.is-disabled) {
  border-left: 2px solid #c41e3a !important;
  background: rgba(196, 30, 58, 0.28) !important;
  animation: none !important;
}

body.arena-page #live-style-tabs .life-style-count {
  border-color: rgba(196, 30, 58, 0.35) !important;
  color: #ff8a9a !important;
  font-size: 7px !important;
}

body.arena-page #live-stage-panel.life-stage {
  border: none !important;
  background: transparent !important;
  padding: 8px !important;
  min-height: 0 !important;
  height: 100% !important;
  gap: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

body.arena-page .life-genre-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 100%;
  padding: 8px 6px;
  box-sizing: border-box;
}

body.arena-page .life-genre-vote__caption {
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a89888;
  text-align: center;
  line-height: 1.35;
  max-width: 26ch;
}

body.arena-page .life-genre-vote__action {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

body.arena-page .life-genre-vote__action--stack {
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

body.arena-page .life-genre-vote__grid {
  min-width: 28px;
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: #f2ece2;
  text-align: center;
}

body.arena-page .life-countdown {
  min-width: 72px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}

body.arena-page .life-countdown--urgent {
  color: #d42a4a !important;
  text-shadow: 0 0 14px rgba(212, 42, 74, 0.55);
  animation: life-countdown-pulse 1s ease-in-out infinite;
}

@keyframes life-countdown-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.82; transform: scale(1.05); }
}

body.arena-page .life-genre-vote__btn {
  pointer-events: auto;
  cursor: pointer;
  padding: 11px 20px;
  border: none;
  border-radius: 0;
  background: linear-gradient(180deg, #d42a4a, #9e1830);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  box-shadow: 0 0 16px rgba(196, 30, 58, 0.45);
}

body.arena-page .life-genre-vote__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

body.arena-page .life-substyle-queue {
  width: 100%;
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

body.arena-page .life-substyle-queue__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px;
  border: 1px solid rgba(120, 110, 95, 0.28);
  background: rgba(0, 0, 0, 0.22);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a89888;
}

body.arena-page .life-substyle-queue__row.is-front {
  border-color: rgba(196, 30, 58, 0.45);
  color: #e8e6e3;
  background: rgba(196, 30, 58, 0.12);
}

body.arena-page .life-substyle-queue__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.arena-page .life-substyle-queue__meta {
  flex: 0 0 auto;
  color: #e8c547;
}

body.arena-page .life-stage-empty {
  min-height: 100px !important;
  border: none !important;
  background: transparent !important;
  padding: 12px 8px !important;
}

body.arena-page .life-stage-empty-title {
  font-size: 9px !important;
  color: #e8e6e3 !important;
  letter-spacing: 0.1em !important;
}

body.arena-page .life-stage-empty-copy {
  font-size: 8px !important;
  color: #a89888 !important;
  max-width: 28ch !important;
  line-height: 1.4 !important;
}

body.arena-page .life-stage-head { display: none !important; }

body.arena-page .life-category-block {
  border: 1px solid rgba(120, 110, 95, 0.3) !important;
  background: rgba(0, 0, 0, 0.25) !important;
  padding: 8px !important;
  animation: none !important;
  box-shadow: none !important;
}

body.arena-page .life-category-badge {
  font-size: 7px !important;
  padding: 2px 5px !important;
  border-color: rgba(120, 110, 95, 0.45) !important;
  color: #a89888 !important;
  animation: none !important;
  box-shadow: none !important;
}

body.arena-page .life-category-badge.is-royal,
body.arena-page .life-category-badge.is-main,
body.arena-page .life-category-badge.is-duel,
body.arena-page .life-category-badge.is-side {
  border-color: rgba(232, 197, 71, 0.45) !important;
  color: #e8c547 !important;
}

body.arena-page .life-category-name,
body.arena-page .life-category-note {
  font-size: 8px !important;
  color: #c8c0b4 !important;
}

body.arena-page .life-pair-row {
  border: 1px solid rgba(120, 110, 95, 0.35) !important;
  background: rgba(0, 0, 0, 0.3) !important;
  padding: 8px !important;
  animation: none !important;
  box-shadow: none !important;
}

body.arena-page .life-pair-row.is-hot {
  border-color: rgba(232, 197, 71, 0.45) !important;
  background: rgba(232, 197, 71, 0.08) !important;
}

body.arena-page .life-pair-meta { font-size: 8px !important; }
body.arena-page .life-pair-caption { font-size: 7px !important; color: #a89888 !important; }

body.arena-page .life-pair-state {
  font-size: 7px !important;
  border-color: rgba(196, 30, 58, 0.4) !important;
  color: #ff8a9a !important;
}

body.arena-page .life-pair-enter {
  font-size: 10px !important;
  padding: 7px 12px !important;
  border: 1px solid rgba(196, 30, 58, 0.55) !important;
  background: linear-gradient(180deg, #d42a4a, #9e1830) !important;
  color: #fff !important;
  box-shadow: none !important;
  animation: none !important;
}

body.arena-page .life-pair-enter.life-pair-enter--ready:hover {
  filter: brightness(1.08) !important;
  box-shadow: none !important;
}

/* ── Боковые панели ── */
body.arena-page #legionnaires-panel.legionnaires-panel {
  position: static !important;
  margin: 0 0 0 8px !important;
  padding: 0 !important;
  height: var(--arena-side-h) !important;
  max-height: calc(100vh - var(--arena-side-top) - 2vh) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  isolation: auto !important;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.9) 0%, rgba(4, 6, 10, 0.94) 100%) !important;
  border: 1px solid rgba(192, 200, 214, 0.4) !important;
  box-shadow: inset 0 0 32px rgba(192, 200, 214, 0.06) !important;
}

body.arena-page #legionnaires-panel .cohort-panel__art {
  display: block !important;
  height: 72px !important;
  flex-shrink: 0 !important;
}

body.arena-page #legionnaires-panel .legionnaires-panel__content {
  padding: 0 !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

body.arena-page #legionnaires-title,
body.arena-page #legionnaires-panel .cohort-panel__head {
  flex-shrink: 0 !important;
}

body.arena-page #legionnaires-title,
body.arena-page #legionnaires-panel .cohort-panel__head {
  margin: 0 !important;
  padding: 8px 10px 6px !important;
  border-bottom: 1px solid rgba(192, 200, 214, 0.22) !important;
  font-family: 'Cinzel', serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  color: #c0c8d4 !important;
  text-shadow: 0 0 12px rgba(192, 200, 214, 0.2) !important;
}

body.arena-page #knights-order-panel.knights-order-panel {
  position: static !important;
  margin: 0 8px 0 0 !important;
  padding: 0 !important;
  height: var(--arena-side-h) !important;
  max-height: calc(100vh - var(--arena-side-top) - 2vh) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  animation: none !important;
  background: linear-gradient(180deg, rgba(14, 12, 8, 0.9) 0%, rgba(6, 5, 4, 0.94) 100%) !important;
  border: 1px solid rgba(232, 197, 71, 0.45) !important;
  box-shadow: inset 0 0 32px rgba(232, 197, 71, 0.08) !important;
}

body.arena-page #knights-order-panel .top20-panel__art {
  height: 72px !important;
  flex-shrink: 0 !important;
}

body.arena-page #knights-order-panel .side-panel__body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}

body.arena-page #knights-order-title,
body.arena-page #knights-order-panel .top20-panel__head {
  flex-shrink: 0 !important;
}

body.arena-page #knights-order-panel.knights-order-panel--hunt .top20-panel__head,
body.arena-page #knights-order-title.knights-order-title--hunt {
  color: #f87171 !important;
  animation: none !important;
}

body.arena-page #knights-order-title,
body.arena-page #knights-order-panel .top20-panel__head {
  margin: 0 !important;
  padding: 8px 10px 6px !important;
  border-bottom: 1px solid rgba(232, 197, 71, 0.25) !important;
  font-family: 'Cinzel', serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  color: #e8c547 !important;
  text-shadow: 0 0 14px rgba(232, 197, 71, 0.25) !important;
}

body.arena-page #knights-order-list {
  display: grid !important;
  grid-template-rows: repeat(20, minmax(0, 1fr)) !important;
  gap: 3px !important;
  overflow: hidden !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 8px 10px 10px !important;
  align-content: stretch !important;
  box-sizing: border-box !important;
}

body.arena-page #legionnaires-viewport {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 8px 10px 10px !important;
  box-sizing: border-box !important;
}

body.arena-page #legionnaires-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-height: 0 !important;
}

body.arena-page #legionnaires-list .legionnaire-row {
  box-shadow: none !important;
  backdrop-filter: none !important;
  color: #d8dde4 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(192, 200, 214, 0.22) !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
}

body.arena-page #legionnaires-list .legionnaire-row.legionnaires-empty {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  justify-content: center !important;
}

body.arena-page #knights-order-list .knight-row {
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 7px !important;
  box-sizing: border-box !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(232, 197, 71, 0.28) !important;
  color: #f0e6c8 !important;
  animation: none !important;
  box-shadow: none !important;
}

body.arena-page #knights-order-list .knight-row--empty {
  opacity: 0.42 !important;
  border-style: dashed !important;
  border-color: rgba(232, 197, 71, 0.18) !important;
  color: #a89870 !important;
  background: rgba(0, 0, 0, 0.28) !important;
}

/* Ошибки регистрации/входа — заметнее на тёмной арене */
body.arena-page .auth-error.auth-error--visible {
  display: block;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 120, 140, 0.55);
  background: rgba(80, 20, 30, 0.72);
  color: #ffb4c0 !important;
  font-size: 12px;
  line-height: 1.45;
}

body.arena-page .auth-codex.auth-codex--required {
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid rgba(232, 197, 71, 0.65);
  background: rgba(232, 197, 71, 0.08);
}

/* Камень загрузки: очередь — только надпись «кровь», камень как был */
@keyframes upload-stone-blood-pulse {
  0%, 100% {
    color: #b81830;
    text-shadow:
      0 0 4px rgba(196, 30, 58, 0.65),
      0 0 10px rgba(139, 0, 0, 0.45);
  }
  50% {
    color: #ff3d5c;
    text-shadow:
      0 0 8px rgba(255, 60, 90, 1),
      0 0 16px rgba(196, 30, 58, 0.95),
      0 0 24px rgba(120, 0, 20, 0.7);
  }
}

body.arena-page .upload-stone__pick-label--blood {
  font-weight: 900 !important;
  animation: upload-stone-blood-pulse 1.15s ease-in-out infinite;
}

body.arena-page #knights-order-list .knight-row--empty .knight-row__label {
  color: #8a8070 !important;
  font-weight: 600 !important;
}

body.arena-page #knights-order-list .knight-row .arena-btn {
  padding: 2px 6px !important;
  font-size: 7px !important;
  min-height: 0 !important;
  border-color: rgba(232, 197, 71, 0.45) !important;
  color: #e8c547 !important;
  background: rgba(0, 0, 0, 0.35) !important;
  box-shadow: none !important;
  animation: none !important;
}

body.arena-page #knights-order-list .knight-row .arena-btn--duel-shield {
  padding: 3px 7px !important;
  color: #f0abfc !important;
  border-color: rgba(216, 132, 255, 0.95) !important;
  background: rgba(168, 85, 247, 0.24) !important;
  box-shadow: 0 0 18px rgba(192, 132, 252, 0.58), 0 0 8px rgba(240, 171, 252, 0.32) !important;
  animation: duel-shield-pulse 1.6s infinite !important;
}

body.arena-page #knights-order-list .knight-row .knight-scutum-icon--btn {
  width: 13px;
  height: 15px;
  filter: drop-shadow(0 0 8px rgba(216, 132, 255, 0.98)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

body.arena-page #knights-order-list .knight-row .arena-btn[aria-disabled="true"] {
  cursor: default;
  opacity: 0.58;
  pointer-events: auto;
}

body.arena-page #knights-order-list .knights-order-empty {
  min-height: 80px !important;
  padding: 12px 8px !important;
}

body.arena-page #knights-order-list .knights-order-empty__title {
  font-size: 9px !important;
  color: #e8c547 !important;
}

body.arena-page #knights-order-list .knights-order-empty__hint {
  font-size: 8px !important;
  color: #a89888 !important;
}

/* ── Королевская загрузка под LIVE ── */
body.arena-page #leaders-panel.leaders-panel {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  animation: none !important;
}

body.arena-page #leaders-panel .royal-upload__art,
body.arena-page #leaders-panel .royal-upload__head {
  display: none !important;
}

body.arena-page #leaders-panel .royal-upload__row--compact {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 10px 12px !important;
}

body.arena-page #leaders-panel .royal-upload__row--compact .royal-upload__label {
  font-family: 'Cinzel', serif !important;
  font-size: 8px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #f0e6c8 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.arena-page #leaders-panel .royal-upload__note {
  margin: 0 !important;
  padding: 0 12px 10px !important;
  font-size: 6px !important;
  letter-spacing: 0.06em !important;
  line-height: 1.3 !important;
  text-align: center !important;
}

body.arena-page #league-16-btn.royal-upload__counter {
  animation: none !important;
  min-width: 52px !important;
  padding: 8px 10px !important;
  font-size: 11px !important;
  border-color: rgba(160, 130, 70, 0.55) !important;
  color: #d4b85a !important;
  background: linear-gradient(180deg, rgba(48, 38, 20, 0.95), rgba(24, 18, 10, 0.98)) !important;
  box-shadow: inset 0 1px 0 rgba(120, 96, 48, 0.2), 0 2px 6px rgba(0, 0, 0, 0.4) !important;
  text-shadow: none !important;
}

body.arena-page #league-16-btn.royal-upload__counter:hover {
  border-color: rgba(184, 150, 62, 0.72) !important;
  color: #e0c060 !important;
  background: linear-gradient(180deg, rgba(58, 44, 18, 0.98), rgba(30, 22, 12, 0.99)) !important;
  box-shadow: inset 0 1px 0 rgba(140, 112, 56, 0.24), 0 2px 8px rgba(0, 0, 0, 0.45) !important;
}

body.arena-page #league-16-btn.league-16-btn--live,
body.arena-page #league-16-btn.league-16-btn--forming-full {
  animation: none !important;
  opacity: 1 !important;
  border-color: rgba(184, 150, 62, 0.72) !important;
  color: #e0c060 !important;
  box-shadow: inset 0 1px 0 rgba(140, 112, 56, 0.24), 0 2px 8px rgba(0, 0, 0, 0.45) !important;
}

body.arena-page #leaders-panel.leaders-panel,
body.arena-page #leaders-panel.leaders-panel--royal-forming,
body.arena-page #leaders-panel.leaders-panel--royal-live {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  animation: none !important;
}

body.arena-page #king-passport-container {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  color: rgba(232, 197, 71, 0.82) !important;
}

body.arena-page #king-passport-container .king-passport-line {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45em !important;
  white-space: nowrap !important;
  overflow: visible !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  line-height: 1.2 !important;
  font-size: 14px;
  box-sizing: border-box !important;
}

body.arena-page #king-passport-container .king-passport-name {
  font-size: 1.12em !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #ffe066 !important;
  text-shadow:
    0 0 8px rgba(255, 215, 0, 0.95),
    0 0 16px rgba(255, 160, 0, 0.65) !important;
  animation: king-name-pulse 2.2s ease-in-out infinite alternate !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
}

@keyframes king-name-pulse {
  from {
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.8), 0 0 14px rgba(255, 160, 0, 0.5);
    filter: brightness(1);
  }
  to {
    text-shadow: 0 0 10px rgba(255, 230, 100, 1), 0 0 20px rgba(255, 180, 0, 0.85);
    filter: brightness(1.08);
  }
}

body.arena-page #king-passport-container .king-passport-role {
  font-size: 1em !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  color: #ffd700 !important;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.55) !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
}

body.arena-page #king-passport-container .king-passport-title {
  font-size: 0.96em !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  color: rgba(232, 197, 71, 0.78) !important;
}

body.arena-page #king-passport-container .king-passport-sep {
  opacity: 0.55 !important;
  flex-shrink: 0 !important;
}

body.arena-page #king-passport-container .king-controls {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin-left: 0.35em !important;
  flex-shrink: 0 !important;
}

body.arena-page #king-passport-container .king-highlight {
  color: #ffe066 !important;
}

body.arena-page #king-passport-container .king-controls .arena-btn {
  font-size: 0.72em !important;
  padding: 0.28em 0.65em !important;
  border-color: rgba(232, 197, 71, 0.55) !important;
  color: #e8c547 !important;
}

@media (max-width: 768px) {
  body.arena-page #king-passport-container {
    font-size: 12px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  body.arena-page #king-passport-container .king-passport-line {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 4px !important;
    white-space: normal !important;
    overflow: hidden !important;
  }

  body.arena-page #king-passport-container .king-passport-role {
    order: 1 !important;
    align-self: center !important;
    flex: none !important;
    font-size: 0.92em !important;
  }

  body.arena-page #king-passport-container .king-passport-sep--before-name,
  body.arena-page #king-passport-container .king-passport-sep--before-title {
    display: none !important;
  }

  body.arena-page #king-passport-container .king-passport-name {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  body.arena-page #king-passport-container .king-passport-title {
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 0.82em !important;
  }

  body.arena-page #king-passport-container .king-controls {
    order: 4 !important;
    width: 100% !important;
    margin-left: 0 !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
  }
}

/* ── Шапка-чипы ── */
body.arena-page .arena-chip--bell .theme-icon-light { display: none; }
html.light body.arena-page .arena-chip--bell .theme-icon-dark { display: none; }
html.light body.arena-page .arena-chip--bell .theme-icon-light { display: inline; }

/* ── Стабильный режим без интро ── */
body.arena-page.arena-intro-skip .cohort-panel.is-stopped {
  transform: translateX(var(--arena-side-shift)) rotate(0deg) !important;
}
body.arena-page.arena-intro-skip .top20-panel.is-stopped {
  transform: translateX(calc(-1 * var(--arena-side-shift))) rotate(0deg) !important;
}

@media (max-width: 768px) {
  body.arena-page:not(.arena-mobile-layout) #knights-order-list {
    grid-template-rows: repeat(20, minmax(0, 1fr)) !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.arena-page:not(.arena-mobile-layout) #knights-order-list .knight-row {
    height: 100% !important;
    min-height: 20px !important;
  }
}

@media (max-width: 640px) {
  body.arena-page {
    --arena-live-w: min(96vw, 520px);
  }

  body.arena-page.arena-intro-skip .cohort-panel.is-stopped,
  body.arena-page.arena-intro-skip .top20-panel.is-stopped {
    transform: translateX(0) rotate(0deg) !important;
  }

  body.arena-page .live-panel {
    width: var(--arena-live-w) !important;
  }

  body.arena-page .king-throne {
    width: var(--arena-live-w) !important;
  }

  body.arena-page #live-plate-container .life-liveboard {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body.arena-page #live-style-tabs.life-styles {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    grid-template-rows: unset !important;
    height: auto !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(196, 30, 58, 0.25) !important;
    max-height: none !important;
    padding: 8px 6px !important;
  }

  body.arena-page #live-style-tabs .style {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 72px !important;
    min-height: 26px !important;
  }
}

/* ── Мобильная арена: прокрутка + колонка блоков ── */
@media (max-width: 768px) {
  :root {
    --arena-chrome-h: 72px;
    --arena-header-h: 0px;
    --arena-side-top: 0px;
    --arena-side-h: auto;
    --arena-live-top: 0px;
    --arena-side-w: 100%;
    --arena-side-shift: 0px;
    --arena-upload-stone-w: min(96vw, 540px);
    --arena-upload-stone-h: 118px;
  }

  html,
  body.arena-page {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100% !important;
    -webkit-overflow-scrolling: touch;
  }

  body.arena-page .arena-main-video,
  body.arena-page .lightning-flash {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  body.arena-page .lightning-flash {
    z-index: 1;
    pointer-events: none;
  }

  body.arena-page .arena-chrome {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    width: 100%;
    max-width: none;
    transform: none !important;
  }

  body.arena-page .arena-chrome__strip {
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: visible;
    justify-content: center;
    row-gap: 4px;
    column-gap: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.arena-page .arena-stats {
    gap: 5px;
    padding: 3px 6px;
  }

  body.arena-page .arena-stat {
    min-width: 24px;
  }

  body.arena-page .arena-stat__label {
    font-size: 5px;
  }

  body.arena-page .arena-stat__value {
    font-size: 10px;
  }

  body.arena-page .arena-chrome__strip::before {
    content: '';
    width: 100%;
    order: 40;
    height: 0;
  }

  body.arena-page .arena-chip--passport {
    display: inline-flex !important;
    order: 41;
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 78px);
    justify-content: center;
    font-size: 7px;
  }

  body.arena-page .arena-chip--passport strong {
    white-space: nowrap;
  }

  body.arena-page .arena-chip--btn,
  body.arena-page #authBtn {
    order: 42;
    flex: 0 0 auto;
  }

  body.arena-page .arena-chrome__strip::-webkit-scrollbar {
    display: none;
  }

  body.arena-page.arena-mobile-layout .king-throne,
  body.arena-page.arena-mobile-layout .live-panel,
  body.arena-page.arena-mobile-layout .cohort-panel,
  body.arena-page.arena-mobile-layout .top20-panel,
  body.arena-page.arena-mobile-layout .upload-stone {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: min(96vw, 540px) !important;
    max-width: calc(100vw - 16px) !important;
    margin: 10px auto 0 !important;
    filter: none !important;
    animation: none !important;
    z-index: 2;
  }

  body.arena-page.arena-mobile-layout .king-throne:not(.is-stopped),
  body.arena-page.arena-mobile-layout .live-panel:not(.is-stopped),
  body.arena-page.arena-mobile-layout .cohort-panel:not(.is-stopped),
  body.arena-page.arena-mobile-layout .top20-panel:not(.is-stopped),
  body.arena-page.arena-mobile-layout .upload-stone:not(.is-stopped) {
    display: none !important;
  }

  body.arena-page.arena-mobile-layout .king-throne.is-stopped,
  body.arena-page.arena-mobile-layout .live-panel.is-stopped,
  body.arena-page.arena-mobile-layout .cohort-panel.is-stopped,
  body.arena-page.arena-mobile-layout .top20-panel.is-stopped,
  body.arena-page.arena-mobile-layout .upload-stone.is-stopped {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.arena-page.arena-mobile-layout .king-throne {
    max-height: none !important;
  }

  body.arena-page.arena-mobile-layout #legionnaires-panel.legionnaires-panel,
  body.arena-page.arena-mobile-layout #knights-order-panel.knights-order-panel,
  body.arena-page.arena-mobile-layout .side-panel__frame {
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
  }

  body.arena-page.arena-mobile-layout #legionnaires-viewport {
    flex: 0 1 auto !important;
    height: auto !important;
    max-height: min(42vh, 300px) !important;
    overflow-y: auto !important;
  }

  body.arena-page.arena-mobile-layout #knights-order-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    grid-template-rows: none !important;
    height: auto !important;
    max-height: min(52vh, 420px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 0 1 auto !important;
  }

  body.arena-page.arena-mobile-layout #knights-order-list .knight-row {
    height: auto !important;
    min-height: 22px !important;
  }

  body.arena-page.arena-mobile-layout .upload-stone {
    min-height: var(--arena-upload-stone-h) !important;
  }

  body.arena-page.arena-mobile-layout .upload-stone.is-wizard-open {
    top: auto !important;
    bottom: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.arena-page.arena-mobile-layout .upload-stone__wall {
    overflow: visible !important;
    min-height: auto !important;
  }

  body.arena-page.arena-mobile-layout .upload-stone__pick-hint {
    font-size: 10px !important;
    line-height: 1.45 !important;
    padding: 4px 6px 6px !important;
    min-height: 28px;
  }

  body.arena-page.arena-mobile-layout .upload-stone__pick-hint.is-grid-lock {
    font-size: 11px !important;
    color: #e8a040 !important;
    background: rgba(232, 160, 64, 0.1);
    border: 1px solid rgba(232, 160, 64, 0.35);
    border-radius: 2px;
  }

  body.arena-page.arena-mobile-layout .upload-stone__brick--pick.upload-stone__brick--locked {
    pointer-events: auto !important;
    touch-action: manipulation;
  }

  body.arena-page.arena-mobile-layout #live-plate-container .life-liveboard {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body.arena-page.arena-mobile-layout #live-style-tabs.life-styles {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    grid-template-rows: unset !important;
    height: auto !important;
    max-height: none !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(196, 30, 58, 0.25) !important;
    padding: 8px 6px !important;
    overflow: visible !important;
  }

  body.arena-page.arena-mobile-layout #live-style-tabs .style {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 72px !important;
    min-height: 26px !important;
  }

  body.arena-page.arena-mobile-layout #live-stage-panel.life-stage {
    min-height: 180px !important;
    max-height: min(42vh, 320px) !important;
    height: auto !important;
  }

  body.arena-page.arena-mobile-layout .live-panel__stack {
    height: auto !important;
  }

  body.arena-page.arena-mobile-layout .king-throne.is-stopped,
  body.arena-page.arena-mobile-layout .live-panel.is-stopped,
  body.arena-page.arena-mobile-layout .cohort-panel.is-stopped,
  body.arena-page.arena-mobile-layout .top20-panel.is-stopped,
  body.arena-page.arena-mobile-layout .upload-stone.is-stopped,
  body.arena-page.arena-mobile-layout .arena-chrome.is-stopped {
    transform: none !important;
    left: auto !important;
    right: auto !important;
    opacity: 1 !important;
  }

  body.arena-page.arena-mobile-layout .intro-hint {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 12px auto 16px !important;
    text-align: center;
    width: min(96vw, 540px);
  }

  body.arena-page.arena-mobile-layout::after {
    content: '';
    display: block;
    height: max(28px, env(safe-area-inset-bottom));
  }

  body.arena-page .battle-modal-panel {
    max-height: 88vh !important;
    padding: 18px 14px 22px !important;
  }

  body.arena-page .battle-modal-genre {
    font-size: 8px !important;
    letter-spacing: 0.06em !important;
    line-height: 1.4 !important;
    max-width: 100%;
  }

  body.arena-page .battle-modal .vs-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.arena-page .battle-modal-scoreboard {
    order: 0;
    justify-self: center;
    width: auto;
    max-width: none;
    margin-bottom: 0;
  }
}


/* === Вечный бой: один блок — плеер сверху, жанры/дуэль/королевская снизу === */
body.arena-page #live-plate-container.life-tile--eternal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: visible !important;
}

body.arena-page #live-plate-container.life-tile--eternal > .life-eternal-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

body.arena-page #live-plate-container.life-tile--eternal .life-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

/* Старый сайдбар LIVE: height:100% + overflow:hidden резал 2-й ряд (5 жанров). */
body.arena-page #live-plate-container.life-tile--eternal #live-style-tabs.life-styles--eternal,
body.arena-page #live-plate-container.life-tile--eternal .life-styles--eternal {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  grid-template-rows: none !important;
  gap: 8px !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  border-right: none !important;
  padding: 4px 0 !important;
  align-self: stretch !important;
}

body.arena-page #live-plate-container.life-tile--eternal .life-styles--eternal .style {
  flex: 1 1 calc(20% - 8px) !important;
  min-width: 88px !important;
  max-width: 140px !important;
  min-height: 28px !important;
}

body.arena-page #live-plate-container.life-tile--eternal .life-action {
  display: block;
  flex-shrink: 0;
  margin: 2px 0 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.85;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  z-index: 2 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: auto !important;
  box-sizing: border-box;
  order: 0;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal.is-open {
  display: block !important;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .battle-modal-backdrop {
  display: none !important;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .battle-modal-panel {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 10px 12px 12px !important;
  border-radius: 8px;
  overflow: visible;
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.45);
}

/* Компактный вечный плеер — не толкает королевскую под загрузку */
body.arena-page .live-panel .battle-modal.battle-modal--eternal .battle-modal-header {
  margin-bottom: 4px;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .battle-modal-title {
  font-size: 14px !important;
  line-height: 1.2;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .battle-modal-genre {
  font-size: 11px !important;
  margin-top: 2px;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .battle-modal-hint {
  display: none !important;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .vs-grid {
  gap: 8px !important;
  margin-top: 6px !important;
  padding-top: 0 !important;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .blind-deck {
  padding: 8px 6px !important;
  gap: 4px !important;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .deck-shield-img {
  width: 48px !important;
  max-height: 56px !important;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .deck-shield-caption {
  font-size: 7px !important;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .deck-substyle {
  min-height: 0;
  font-size: 10px;
  line-height: 1.2;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .deck-mandatory {
  font-size: 8px !important;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .deck-mandatory-value {
  font-size: 14px !important;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .deck-transport-btn {
  flex: 0 0 28px !important;
  height: 28px !important;
  font-size: 9px !important;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .deck-btn {
  height: 32px !important;
  min-height: 32px !important;
  font-size: 12px !important;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .deck-time-row {
  font-size: 10px;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .deck-status,
body.arena-page .live-panel .battle-modal.battle-modal--eternal .deck-check {
  font-size: 10px;
  min-height: 0;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .battle-modal-scoreboard {
  min-width: 52px;
  padding: 0 4px;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .battle-score-digit {
  font-size: 22px !important;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .battle-modal-timer {
  margin: 6px 0 0 !important;
  font-size: 10px !important;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .battle-modal-timer .timer-value {
  font-size: 18px !important;
  margin-top: 0 !important;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .battle-modal-close,
body.arena-page .live-panel .battle-modal.battle-modal--eternal .battle-modal-minimize {
  display: none !important;
}

/* Шаг 2: пульс Play — зовёт слушать */
@keyframes eternal-play-pulse {
  from {
    transform: scale(1);
    box-shadow: 0 0 8px 1px rgba(255, 0, 85, 0.45);
    filter: brightness(1.05);
  }
  to {
    transform: scale(1.12);
    box-shadow: 0 0 28px 6px rgba(255, 0, 85, 0.85);
    filter: brightness(1.35);
  }
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .deck-btn.play-btn.is-pulse-invite {
  animation: eternal-play-pulse 0.9s ease-in-out infinite alternate;
  border-width: 2px !important;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .deck-a .deck-btn.play-btn.is-pulse-invite {
  color: #fff !important;
  background: rgba(176, 190, 206, 0.28) !important;
  border-color: #e8eef6 !important;
  box-shadow: 0 0 22px rgba(200, 220, 255, 0.75), 0 0 8px rgba(255, 255, 255, 0.35);
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .deck-b .deck-btn.play-btn.is-pulse-invite {
  color: #fff8d6 !important;
  background: rgba(201, 162, 39, 0.32) !important;
  border-color: #ffd54a !important;
  box-shadow: 0 0 24px rgba(255, 213, 74, 0.85), 0 0 8px rgba(255, 180, 0, 0.45);
}

body.arena-page #live-plate-container .life-eternal-controls--nudge {
  animation: eternal-controls-nudge 0.55s ease-out 1;
}

@keyframes eternal-controls-nudge {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(4px); }
  70% { transform: translateY(-2px); }
}

@media (max-width: 768px) {
  body.arena-page.arena-mobile-layout .live-panel .battle-modal.battle-modal--eternal {
    margin: 0 auto !important;
    width: 100% !important;
  }

  body.arena-page.arena-mobile-layout .live-panel .battle-modal.battle-modal--eternal .battle-modal-panel {
    padding: 8px 10px 10px !important;
  }

  body.arena-page #live-plate-container.life-tile--eternal .life-styles--eternal .style {
    flex: 1 1 calc(33.33% - 8px);
    max-width: none;
  }
}

.top-arena-zone { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr) !important; gap: var(--gap-block) !important; margin-bottom: var(--gap-block) !important; width: 100% !important; box-sizing: border-box !important; align-items: stretch !important; }

.legionnaires-panel { margin-bottom: 0 !important; padding: 0 !important; display: flex; flex-direction: column; border-radius: 0; height: 100%; box-sizing: border-box; position: relative; isolation: isolate; overflow: hidden; background: #08090c; border: 2px solid rgba(176, 190, 206, 0.48); box-shadow: 0 0 22px rgba(148, 163, 184, 0.16), inset 0 0 28px rgba(192, 202, 214, 0.05); }

.legionnaires-title { margin-bottom: 8px !important; font-size: 11px !important; font-weight: 900 !important; letter-spacing: 0.14em !important; text-transform: uppercase; text-align: center; color: #eef2f7; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.75), 0 0 10px rgba(192, 202, 214, 0.28); -webkit-font-smoothing: antialiased; flex-shrink: 0; }

.legionnaire-row--self { border-color: rgba(226, 232, 240, 0.82) !important; box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.28), 0 0 14px rgba(192, 202, 214, 0.22), inset 0 0 10px rgba(148, 163, 184, 0.08); }

.substyle-counter-btn--locked {
  opacity: 0.45 !important;
  filter: saturate(0.55);
  cursor: not-allowed;
  border-color: rgba(120, 110, 95, 0.45) !important;
  color: #8a8278 !important;
}

.substyle-counter-btn--filling {
  border-color: var(--neon-magenta) !important;
  color: #fff !important;
  background: rgba(255, 0, 85, 0.18) !important;
  box-shadow: 0 0 12px rgba(255, 0, 85, 0.28);
  animation: conveyor-counter-pulse 1.15s ease-in-out infinite alternate;
}

.arena-btn--duel-alert { border-color: var(--neon-magenta) !important; color: var(--neon-magenta) !important; box-shadow: 0 0 18px rgba(255, 0, 85, 0.28); animation: duel-alert-pulse 1.15s infinite; }

.arena-btn--duel-alert:hover { background: rgba(255, 0, 85, 0.08) !important; border-color: #ff2b6e !important; }

.arena-btn--duel-locked { border-color: rgba(255, 0, 85, 0.72) !important; color: #ff6b9a !important; opacity: 1 !important; cursor: not-allowed !important; box-shadow: 0 0 16px rgba(255, 0, 85, 0.34) !important; animation: duel-locked-pulse 1.4s infinite; }

.arena-btn--duel-shield { border-color: rgba(216, 132, 255, 0.95) !important; color: #f0abfc !important; opacity: 1 !important; cursor: not-allowed !important; box-shadow: 0 0 20px rgba(192, 132, 252, 0.55), 0 0 8px rgba(240, 171, 252, 0.35) !important; animation: duel-shield-pulse 1.6s infinite; background: rgba(168, 85, 247, 0.22) !important; }

.arena-btn--duel-self { border-color: rgba(255, 215, 0, 0.72) !important; color: #ffd700 !important; opacity: 1 !important; cursor: default !important; box-shadow: 0 0 16px rgba(255, 215, 0, 0.28) !important; animation: duel-self-pulse 1.8s infinite; background: rgba(255, 215, 0, 0.08) !important; }

.arena-btn--duel-muted { border-color: rgba(161, 161, 170, 0.55) !important; color: #d4d4d8 !important; opacity: 0.78 !important; cursor: not-allowed !important; box-shadow: none !important; }

html.light .life-tile .life-action { color: #007f8f !important; text-shadow: 0 0 10px rgba(0, 127, 143, 0.35) !important; }

html.light .life-tile.life-tile--hot .life-action { color: #c98a00 !important; text-shadow: 0 0 12px rgba(201, 138, 0, 0.4) !important; }

.knight-row--framed { border-color: var(--neon-cyan) !important; box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.32), 0 0 18px rgba(0, 240, 255, 0.18), inset 0 0 16px rgba(0, 240, 255, 0.05); background: linear-gradient(90deg, rgba(0, 240, 255, 0.09), rgba(0, 240, 255, 0.03)); }

.knight-row--shielded { border-color: rgba(168, 85, 247, 0.62) !important; box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.28), 0 0 18px rgba(168, 85, 247, 0.16), inset 0 0 14px rgba(168, 85, 247, 0.06); background: linear-gradient(90deg, rgba(168, 85, 247, 0.1), rgba(168, 85, 247, 0.03)); animation: knight-shield-pulse 1.8s infinite alternate; }

.knight-row--self { border-color: rgba(255, 215, 0, 0.58) !important; box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.28), 0 0 18px rgba(255, 215, 0, 0.16), inset 0 0 14px rgba(255, 215, 0, 0.05); background: linear-gradient(90deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.02)); }

.knight-row--duel-live { border-color: rgba(255, 0, 85, 0.58) !important; box-shadow: 0 0 0 1px rgba(255, 0, 85, 0.28), 0 0 18px rgba(255, 0, 85, 0.16), inset 0 0 12px rgba(255, 0, 85, 0.04); animation: knight-duel-live-pulse 1.35s infinite alternate; }

.arena-btn--duel-shield { display: inline-flex !important; align-items: center; justify-content: center; min-width: 30px; padding: 4px 8px !important; line-height: 0; }

.arena-btn--duel-ready { border-color: var(--neon-lime) !important; color: var(--neon-lime) !important; box-shadow: 0 0 14px rgba(163, 230, 53, 0.28); animation: duel-ready-pulse 1.35s infinite; }

.arena-btn--duel-ready:hover { background: rgba(163, 230, 53, 0.08) !important; }

.knights-order-panel--hunt { background: linear-gradient(180deg, rgba(127, 29, 29, 0.22), rgba(69, 10, 10, 0.1)) !important; border-color: #dc2626 !important; box-shadow: 0 0 24px rgba(220, 38, 38, 0.38), inset 0 0 20px rgba(127, 29, 29, 0.14) !important; }

.knights-order-title--hunt { color: #f87171 !important; text-shadow: 0 0 14px rgba(248, 113, 113, 0.7), 0 0 26px rgba(153, 27, 27, 0.55) !important; animation: hunt-order-pulse 1.15s ease-in-out infinite alternate; font-weight: 900; }

.life-tile.life-tile--royal-live { border-color: #ffd700 !important; box-shadow: 0 0 28px rgba(255, 215, 0, 0.28), inset 0 0 24px rgba(255, 215, 0, 0.06) !important; animation: royal-panel-pulse 1.5s ease-in-out infinite alternate; }

.leaders-panel.leaders-panel--royal-live { border-style: solid !important; border-color: #ffd700 !important; background: linear-gradient(180deg, rgba(255, 215, 0, 0.12), rgba(255, 140, 0, 0.04)) !important; animation: royal-panel-pulse 1.35s ease-in-out infinite alternate; }

.leaders-panel.leaders-panel--royal-live .panel-label { color: #ffd700 !important; text-shadow: 0 0 12px rgba(255, 215, 0, 0.42); }

.leaders-panel.leaders-panel--royal-forming { border-color: rgba(255, 215, 0, 0.55) !important; box-shadow: 0 0 16px rgba(255, 215, 0, 0.18); }

.life-styles .style.active-live { color: var(--text-color, var(--text-bright)); opacity: 1 !important; animation: style-live-pulse 1.35s ease-in-out infinite alternate; }

.life-styles .style.style-hot-live { border-color: #ffd54a !important; box-shadow: 0 0 12px rgba(255, 145, 0, 0.28), inset 0 0 12px rgba(255, 145, 0, 0.08); background: rgba(255, 145, 0, 0.08); animation: hot-plate-pulse 1.2s infinite alternate; }

.life-pair-enter.life-pair-enter--ready {
  border-color: var(--neon-magenta) !important;
  color: #fff !important;
  background: rgba(255, 0, 85, 0.2) !important;
  box-shadow: 0 0 14px rgba(255, 0, 85, 0.32);
  animation: life-vote-btn-pulse 1.1s ease-in-out infinite alternate;
}

.life-pair-enter.life-pair-enter--ready:hover {
  background: rgba(255, 0, 85, 0.28) !important;
  border-color: #ff2b6e !important;
}

.life-pair-enter:disabled { opacity: 0.42; cursor: not-allowed; box-shadow: none !important; animation: none !important; }

.knights-order-panel { margin-bottom: var(--gap-block) !important; padding: 12px !important; display: flex; flex-direction: column; border-radius: 0; height: 100%; box-sizing: border-box; }

.knights-order-title { margin-bottom: 8px !important; font-size: 10px !important; letter-spacing: 2px !important; }

#knights-order-list { gap: 4px !important; grid-template-columns: 1fr !important; grid-template-rows: repeat(20, minmax(0, 1fr)) !important; flex: 1 1 auto; min-height: 0; align-content: stretch; }

.knights-order-empty__btn { font-size: 10px !important; }

.conveyor-box { margin-top: var(--gap-block) !important; }

.btn-rec-a { background: var(--bg-inset) !important; border: 2px solid var(--neon-cyan) !important; color: var(--neon-cyan) !important; height: 45px !important; padding: 0 10px !important; cursor: pointer; font-size: 11px; text-transform: uppercase; width: 100%; font-weight: 700; box-shadow: 0 0 10px rgba(0, 240, 255, 0.1); display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }

.btn-rec-b { background: var(--bg-inset) !important; border: 2px solid var(--neon-lime) !important; color: var(--neon-lime) !important; height: 45px !important; padding: 0 10px !important; cursor: pointer; font-size: 11px; text-transform: uppercase; width: 100%; font-weight: 700; box-shadow: 0 0 10px rgba(204, 255, 0, 0.1); display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }

.btn-rec-a:disabled, .btn-rec-b:disabled { border-color: #1e1e24 !important; color: #333 !important; opacity: 0.25 !important; cursor: not-allowed; pointer-events: none; box-shadow: none !important; }

.deck-btn:disabled { opacity: 0.22; cursor: not-allowed; pointer-events: none; box-shadow: none !important; }

.battle-modal .vs-label { color: rgba(196, 30, 58, 0.85) !important; font-family: 'Cinzel', Georgia, serif; font-size: 16px !important; letter-spacing: 0.12em; }

@media (max-width: 768px) {
  .top-arena-zone { grid-template-columns: 1fr !important; gap: 15px !important; align-items: start !important; }
  .top-arena-zone--triple > .legionnaires-panel,
  .top-arena-zone--triple > .life-tile,
  .top-arena-zone--triple > .knights-order-panel { height: auto !important; }
  .legionnaires-viewport { overflow-y: auto !important; flex: 0 0 auto !important; -webkit-overflow-scrolling: touch; }
  .knights-order-panel { overflow: visible !important; }
  #knights-order-list { grid-template-rows: repeat(20, auto) !important; overflow: visible !important; height: auto !important; }
  #knights-order-list .knight-row { height: auto !important; min-height: 22px !important; }
  .style-grid { grid-template-columns: 1fr; }
  .substyle-row { flex-direction: column; align-items: stretch; }
  .substyle-label { min-width: 0; }
  .substyle-counters { justify-content: flex-start; }
  .life-liveboard { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .life-styles { display: flex; max-width: none; }
  .life-styles .style { padding: 8px 10px; }
  .life-style-name { font-size: 11px; white-space: normal; }
  .life-stage { padding: 10px; }
  .vote-actions { gap: 10px; }
  .vote-actions .btn-vote { min-height: 46px; font-size: 10px; }
  .substyle-modal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.arena-chat-reply[hidden] { display: none !important; }

body.arena-page.lightning-flash-1 {
  background-color: #fff !important;
  transition: background 0.1s ease;
}

body.arena-page.lightning-flash-2 {
  background-color: #f0f0f0 !important;
  transition: background 0.05s ease;
}

#royal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 4, 6, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-sizing: border-box;
}

#royal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.royal-overlay__frame {
  position: relative;
  width: min(1080px, 96vw);
  max-height: min(92vh, 820px);
  border: 4px solid #6b5a3a;
  background: #0e0c0a;
  box-shadow: inset 0 1px 0 rgba(120, 100, 68, 0.22), 0 24px 56px rgba(0, 0, 0, 0.78);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.royal-overlay__video-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 480px;
  background: #000;
}

#royal-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  max-height: calc(92vh - 96px);
  object-fit: cover;
  background: #000;
}

.royal-overlay__copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  pointer-events: none;
  text-align: center;
}

.royal-title,
.royal-winner-name,
.royal-track-title,
.public-triumph-modal__headline,
.public-triumph-modal__winner,
.public-triumph-modal__track {
  margin: 0;
  line-height: 1.12;
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 1;
  -webkit-text-stroke: 0;
  paint-order: stroke fill;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 1),
    0 0 8px rgba(0, 0, 0, 0.95),
    0 2px 4px rgba(0, 0, 0, 0.9);
}

.royal-title,
.public-triumph-modal__headline {
  font-size: clamp(1rem, 2.8vw, 1.55rem);
  color: #f0d080;
}

.royal-winner-name,
.public-triumph-modal__winner {
  font-size: clamp(2rem, 8vw, 3.6rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.royal-track-title,
.public-triumph-modal__track {
  font-size: clamp(0.95rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: #ececec;
  text-transform: none;
  letter-spacing: 0.02em;
}

.royal-title {
  font-size: clamp(1.35rem, 3.8vw, 2.2rem);
}

.royal-winner-name {
  font-size: clamp(2.6rem, 10vw, 5.5rem);
}

.royal-track-title {
  font-size: clamp(1rem, 2.8vw, 1.65rem);
}

.royal-overlay__actions {
  padding: 14px 18px 18px;
  display: flex;
  justify-content: center;
  background: rgba(8, 7, 6, 0.96);
}

.royal-overlay__btn {
  border: 2px solid #6b5a3a;
  background: rgba(22, 19, 16, 0.95);
  color: #d4c4a0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 28px;
  cursor: pointer;
}

.royal-overlay__btn:hover {
  background: rgba(42, 36, 28, 0.96);
  color: #f0e6d0;
}

.public-triumph-modal {
  position: fixed;
  inset: 0;
  z-index: 10250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(4, 4, 6, 0.62);
  --public-triumph-slab-w: 520px;
  --public-triumph-video-h: 320px;
}

.public-triumph-modal.is-open {
  display: flex;
}

.public-triumph-modal__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.public-triumph-modal__slab {
  position: relative;
  z-index: 1;
  width: min(var(--public-triumph-slab-w), 100%);
  border: 3px solid #6b5a3a;
  background: #0e0c0a;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.72);
  overflow: hidden;
}

.public-triumph-modal__media {
  position: relative;
  width: 100%;
  height: var(--public-triumph-video-h);
  background: #000;
}

#public-triumph-video {
  display: block;
  width: 100%;
  height: var(--public-triumph-video-h);
  object-fit: cover;
  background: #000;
}

.public-triumph-modal__copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  pointer-events: none;
  text-align: center;
}

.public-triumph-modal__headline,
.public-triumph-modal__winner,
.public-triumph-modal__track {
  margin: 0;
}

.public-triumph-modal__actions {
  padding: 14px 18px 18px;
  display: flex;
  justify-content: center;
  background: rgba(8, 7, 6, 0.96);
}

.public-triumph-modal__btn {
  border: 2px solid #6b5a3a;
  background: rgba(22, 19, 16, 0.95);
  color: #d4c4a0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 28px;
  cursor: pointer;
}

.public-triumph-modal__btn:hover {
  background: rgba(42, 36, 28, 0.96);
  color: #f0e6d0;
}

/* LIVE: бой не состоялся + срочный таймер */
.live-battle-not-held-modal {
  position: fixed;
  inset: 0;
  z-index: 10320;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.live-battle-not-held-modal.is-open { display: flex; }
.live-battle-not-held-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.82);
}
.live-battle-not-held-modal__panel {
  position: relative;
  width: min(560px, 96vw);
  max-height: 90vh;
  overflow: auto;
  padding: 28px 26px 22px;
  border: 2px solid rgba(255, 92, 92, 0.55);
  background: linear-gradient(180deg, rgba(28, 12, 12, 0.97), rgba(8, 6, 8, 0.99));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75), inset 0 0 40px rgba(255, 60, 60, 0.06);
  text-align: center;
}
.live-battle-not-held-modal__eyebrow {
  margin: 0 0 8px;
  color: #ff8a8a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.live-battle-not-held-modal__title {
  margin: 0 0 14px;
  color: #ffd0d0;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.live-battle-not-held-modal__fighters {
  margin: 0 0 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.live-battle-not-held-modal__body {
  margin: 0 0 20px;
  color: rgba(235, 225, 225, 0.92);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}
.live-battle-not-held-modal__body p { margin: 0 0 12px; }
.live-battle-not-held-modal__body p:last-child { margin-bottom: 0; }
.live-battle-not-held-modal__btn {
  border: 1px solid rgba(255, 120, 120, 0.65);
  background: rgba(255, 70, 70, 0.14);
  color: #ffd8d8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 28px;
  cursor: pointer;
}
.live-battle-not-held-modal__hint {
  margin: 12px 0 0;
  color: rgba(200, 180, 180, 0.65);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes live-urgent-pulse {
  from { box-shadow: 0 0 12px rgba(255, 60, 60, 0.25); }
  to { box-shadow: 0 0 28px rgba(255, 60, 60, 0.55); }
}

body.arena-page #live-plate-container.life-tile--urgent,
body.arena-page #livePanel.live-panel--urgent #live-plate-container,
body.arena-page .style.style-urgent-live,
body.arena-page #mode-duel-plate.submode--urgent {
  border-color: rgba(255, 72, 72, 0.72) !important;
  animation: live-urgent-pulse 1.1s ease-in-out infinite alternate;
}
body.arena-page #mode-duel-plate.submode--urgent,
body.arena-page .style.style-urgent-live .life-style-name,
body.arena-page .style.style-urgent-live .life-style-count {
  color: #ff6b6b !important;
}

/* Guest first-visit LIVE hint (2026-07-10) */
body.arena-page #live-plate-container .guest-live-hint {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0 12px 10px;
  padding: 9px 12px 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(232, 197, 71, 0.42);
  background:
    linear-gradient(135deg, rgba(196, 30, 58, 0.16) 0%, rgba(10, 8, 6, 0.88) 42%, rgba(232, 197, 71, 0.08) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(196, 30, 58, 0.12);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body.arena-page #live-plate-container .guest-live-hint.is-visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  animation: guest-live-hint-glow 2.4s ease-in-out infinite alternate;
}

body.arena-page #live-plate-container .guest-live-hint__spark {
  flex: 0 0 auto;
  color: #e8c547;
  font-size: 11px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(232, 197, 71, 0.55);
}

body.arena-page #live-plate-container .guest-live-hint__text {
  flex: 1 1 auto;
  margin: 0;
  color: rgba(255, 248, 236, 0.92);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

body.arena-page #live-plate-container .guest-live-hint__text strong {
  color: #fff3c4;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(232, 197, 71, 0.28);
}

body.arena-page #live-plate-container .guest-live-hint__close {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

body.arena-page #live-plate-container .guest-live-hint__close:hover {
  color: #fff;
  border-color: rgba(232, 197, 71, 0.45);
  background: rgba(196, 30, 58, 0.22);
}

body.arena-page.guest-live-hint-active #live-style-tabs .style.guest-live-hint-spotlight {
  border-color: rgba(232, 197, 71, 0.72) !important;
  box-shadow:
    0 0 0 1px rgba(232, 197, 71, 0.18) inset,
    0 0 18px rgba(232, 197, 71, 0.28) !important;
  animation: guest-live-hint-spotlight 1.15s ease-in-out infinite alternate !important;
}

@keyframes guest-live-hint-glow {
  from { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 12px rgba(196, 30, 58, 0.1); }
  to { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 10px 28px rgba(0, 0, 0, 0.42), 0 0 22px rgba(232, 197, 71, 0.18); }
}

@keyframes guest-live-hint-spotlight {
  from { transform: translateY(0); filter: brightness(1); }
  to { transform: translateY(-1px); filter: brightness(1.12); }
}

@media (max-width: 760px) {
  body.arena-page #live-plate-container .guest-live-hint {
    margin: 0 8px 8px;
    padding: 8px 10px;
  }

  body.arena-page #live-plate-container .guest-live-hint__text {
    font-size: 10px;
  }
}

/* Stream-only: hide track download links (2026-07-06) */
a.arena-btn[download],
a.stone-btn[download] {
  display: none !important;
}

/* Deep-link focus: ?live=1 — только LIVE, без меню и арены */
body.arena-page.arena-focus-live {
  overflow: hidden !important;
}

body.arena-page.arena-focus-live::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 140;
  background:
    radial-gradient(ellipse 70% 50% at 50% 28%, rgba(70, 52, 36, 0.4) 0%, transparent 60%),
    linear-gradient(165deg, #100e0b 0%, #1a1510 42%, #0b0a08 100%);
  pointer-events: none;
}

body.arena-page.arena-focus-live .arena-main-video,
body.arena-page.arena-focus-live #lightningFlash,
body.arena-page.arena-focus-live .intro-hint,
body.arena-page.arena-focus-live .king-throne,
body.arena-page.arena-focus-live .cohort-panel,
body.arena-page.arena-focus-live .top20-panel,
body.arena-page.arena-focus-live .upload-stone,
body.arena-page.arena-focus-live .arena-chrome,
body.arena-page.arena-focus-live .arena-atmosphere-stone,
body.arena-page.arena-focus-live #bug-report-fab,
body.arena-page.arena-focus-live #leaders-panel,
body.arena-page.arena-focus-live .live-panel__modes,
body.arena-page.arena-focus-live #mode-duel-plate,
body.arena-page.arena-focus-live #mode-royale-plate,
body.arena-page.arena-focus-live #guest-votes-badge,
body.arena-page.arena-focus-live #guest-votes-strip {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.arena-page.arena-focus-live .live-panel,
body.arena-page.arena-focus-live .live-panel.is-stopped,
body.arena-page.arena-focus-live.arena-intro-skip .live-panel,
body.arena-page.arena-focus-live.arena-intro-skip .live-panel.is-stopped,
body.arena-page.arena-focus-live.arena-mobile-layout .live-panel,
body.arena-page.arena-focus-live.arena-mobile-layout .live-panel.is-stopped {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(94vw, 560px) !important;
  max-width: calc(100vw - 20px) !important;
  margin: 0 !important;
  z-index: 160 !important;
  filter: none !important;
  animation: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  display: block !important;
  visibility: visible !important;
}

body.arena-page.arena-focus-live .live-panel__stack {
  margin: 0 !important;
}

body.arena-page.arena-focus-live .live-panel::after {
  content: 'Закрой вкладку — вернуться в сообщество';
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(232, 224, 212, 0.55);
}

@media (max-width: 768px) {
  body.arena-page.arena-focus-live .live-panel,
  body.arena-page.arena-focus-live .live-panel.is-stopped,
  body.arena-page.arena-focus-live.arena-mobile-layout .live-panel,
  body.arena-page.arena-focus-live.arena-mobile-layout .live-panel.is-stopped {
    top: 50% !important;
    width: min(96vw, 540px) !important;
    max-height: min(86vh, 760px) !important;
    overflow-y: auto !important;
    transform: translate(-50%, -50%) !important;
  }
}

/* legacy upload focus (черновик, не для ВК) */
body.arena-page.arena-focus-upload {
  overflow: hidden !important;
}

body.arena-page.arena-focus-upload::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 140;
  background:
    radial-gradient(ellipse 70% 50% at 50% 28%, rgba(70, 52, 36, 0.4) 0%, transparent 60%),
    linear-gradient(165deg, #100e0b 0%, #1a1510 42%, #0b0a08 100%);
  pointer-events: none;
}

body.arena-page.arena-focus-upload .arena-main-video,
body.arena-page.arena-focus-upload #lightningFlash,
body.arena-page.arena-focus-upload .intro-hint,
body.arena-page.arena-focus-upload .king-throne,
body.arena-page.arena-focus-upload .live-panel,
body.arena-page.arena-focus-upload .cohort-panel,
body.arena-page.arena-focus-upload .top20-panel,
body.arena-page.arena-focus-upload .arena-atmosphere-stone,
body.arena-page.arena-focus-upload #bug-report-fab {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.arena-page.arena-focus-upload .arena-chrome {
  position: relative !important;
  z-index: 160 !important;
}

body.arena-page.arena-focus-upload .upload-stone {
  position: fixed !important;
  left: 50% !important;
  top: 54% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(94vw, 560px) !important;
  max-width: calc(100vw - 20px) !important;
  margin: 0 !important;
  z-index: 160 !important;
  filter: none !important;
  animation: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  display: block !important;
  visibility: visible !important;
}

/* Загрузка: компактная плита как у LIVE/кагорты, без кирпичной стены */
body.arena-page {
  --arena-upload-stone-h: 56px;
}

body.arena-page .upload-stone {
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55)) !important;
}

body.arena-page .upload-stone__wall {
  min-height: var(--arena-upload-stone-h) !important;
  padding: 6px 8px !important;
  gap: 4px !important;
  border: 1px solid rgba(196, 30, 58, 0.45) !important;
  border-radius: 6px !important;
  background: linear-gradient(180deg, rgba(14, 8, 10, 0.92) 0%, rgba(6, 4, 8, 0.94) 100%) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 0 24px rgba(196, 30, 58, 0.08),
    0 0 18px rgba(196, 30, 58, 0.12) !important;
}

body.arena-page .upload-stone__grid--idle {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  min-height: 0 !important;
  gap: 0 !important;
}

body.arena-page .upload-stone__cta {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(232, 197, 71, 0.45) !important;
  border-radius: 4px !important;
  background: rgba(255, 215, 0, 0.06) !important;
  color: #f0d060 !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.arena-page .upload-stone__cta:hover:not(:disabled) {
  border-color: rgba(255, 213, 74, 0.85) !important;
  background: rgba(255, 215, 0, 0.12) !important;
  box-shadow: 0 0 14px rgba(255, 213, 74, 0.22);
}

body.arena-page .upload-stone__cta:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

body.arena-page .upload-stone__cta .upload-stone__title {
  margin: 0 !important;
  font-family: 'Cinzel', serif !important;
  font-size: clamp(11px, 2.2vw, 14px) !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: inherit !important;
}

body.arena-page .upload-stone__pick-hint:empty {
  display: none !important;
}

body.arena-page .upload-stone:not(.is-wizard-open) .upload-stone__pick-hint {
  display: none !important;
}

body.arena-page .upload-stone.is-wizard-open {
  min-height: 0 !important;
  max-height: min(38vh, 280px) !important;
}

body.arena-page .upload-stone.is-wizard-open .upload-stone__wall {
  min-height: 0 !important;
}

body.arena-page .upload-stone__brick--pick {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: none !important;
}

body.arena-page .upload-stone__brick--pick:hover {
  border-color: rgba(232, 197, 71, 0.55) !important;
  background: rgba(255, 215, 0, 0.08) !important;
}

body.arena-page .upload-stone__brick--pick.upload-stone__brick--grid.upload-stone__brick--locked {
  opacity: 0.4 !important;
  filter: grayscale(0.35);
}

/* Вечный плеер: вместо счёта — эмблема меч / VS / трезубец (держит центр) */
body.arena-page .live-panel .battle-modal.battle-modal--eternal .battle-modal-scoreboard {
  display: flex !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 0 4px;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .battle-scoreboard-face {
  display: none !important;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .battle-vs-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

body.arena-page .battle-vs-emblem {
  display: none;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .battle-vs-emblem__weapon {
  width: 34px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  display: block;
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .battle-vs-emblem__weapon--sword {
  filter: drop-shadow(0 4px 10px rgba(148, 163, 184, 0.45));
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .battle-vs-emblem__weapon--trident {
  filter: drop-shadow(0 4px 10px rgba(201, 162, 39, 0.5));
}

body.arena-page .live-panel .battle-modal.battle-modal--eternal .battle-vs-emblem__vs {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(232, 197, 71, 0.85);
  line-height: 1;
}

