
    :root {
      --live: #c41e3a;
      --gold: #e8c547;
      --wood-light: #6b4f35;
      --wood-mid: #4a3626;
      --wood-dark: #2a1f16;
      --iron: #3a3632;
      --text: #e8e6e3;
      --muted: #a89888;
      --arena-chrome-h: 66px;
      --arena-header-h: 14vh;
      --arena-side-top: calc(var(--arena-chrome-h) + var(--arena-header-h) + 8vh);
      --arena-side-h: min(calc(80vh - var(--arena-header-h)), 700px);
      --arena-live-top: calc(var(--arena-chrome-h) + var(--arena-header-h) + 2vh);
      --arena-upload-stone-h: 128px;
      --arena-upload-stone-w: min(max(220px, calc(100vw - var(--arena-side-w) - var(--arena-side-w) - 72px)), 500px);
      --arena-upload-gap: 12px;
      --arena-side-w: min(90vw, 384px);
      --arena-side-shift: 4vw;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }

    html, body {
      width: 100%;
      height: 100%;
      overflow: hidden;
      background: #0a0806;
      font-family: 'Manrope', system-ui, sans-serif;
      color: var(--text);
    }

    body.is-shaking { animation: arena-shake 0.35s ease-out; }
    @keyframes arena-shake {
      0%, 100% { transform: translate3d(0, 0, 0); }
      20% { transform: translate3d(-5px, 3px, 0); }
      40% { transform: translate3d(5px, -2px, 0); }
      60% { transform: translate3d(-3px, -2px, 0); }
      80% { transform: translate3d(3px, 1px, 0); }
    }

    .arena-main-video {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      background: #0a0806;
      z-index: 0;
    }

    .lightning-flash {
      position: fixed;
      inset: 0;
      z-index: 2;
      pointer-events: none;
      opacity: 0;
      background:
        radial-gradient(ellipse 80% 55% at 50% 18%, rgba(210, 230, 255, 0.95) 0%, rgba(120, 160, 255, 0.35) 35%, transparent 70%),
        rgba(255, 255, 255, 0.55);
      mix-blend-mode: screen;
    }
    .lightning-flash.is-active { animation: lightning-hit 0.38s ease-out forwards; }
    @keyframes lightning-hit {
      0% { opacity: 0; }
      12% { opacity: 1; }
      100% { opacity: 0; }
    }

    /* в”Ђв”Ђ РЁР°РїРєР°: РјРµРЅСЋ, РЅРёРє, РєРѕС€РµР»С‘Рє, РєРѕР»РѕРєРѕР» (РїРѕСЃР»РµРґРЅСЏСЏ РјРѕР»РЅРёСЏ) в”Ђв”Ђ */
    .arena-chrome {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 9;
      padding: max(6px, env(safe-area-inset-top)) 10px 6px;
      pointer-events: none;
    }
    .arena-chrome.is-stopped { pointer-events: auto; }
    .arena-chrome__strip {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 5px;
      max-width: 1180px;
      margin: 0 auto;
    }
    .arena-chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: 5px 9px;
      border: 1px solid rgba(90, 82, 72, 0.55);
      background: linear-gradient(168deg, #4a443c 0%, #2e2a24 55%, #1c1915 100%);
      color: #d4cec4;
      font-family: 'Manrope', system-ui, sans-serif;
      font-size: 8px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      text-decoration: none;
      white-space: nowrap;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 -4px 8px rgba(0, 0, 0, 0.32),
        0 2px 6px rgba(0, 0, 0, 0.35);
      opacity: 0;
      transform: translateY(-80%) scale(0.9);
      pointer-events: none;
    }
    .arena-chip--logo {
      font-family: 'Cinzel', serif;
      font-size: 9px;
      letter-spacing: 0.16em;
      color: #e8c547;
      border-color: rgba(184, 150, 62, 0.5);
      background: linear-gradient(168deg, #5a5248 0%, #322c26 55%, #1a1714 100%);
    }
    .arena-chip--passport {
      color: #c8c0b4;
      font-size: 7px;
      letter-spacing: 0.06em;
    }
    .arena-chip--passport strong {
      color: #e8c547;
      font-weight: 700;
    }
    .arena-chip--btn {
      cursor: pointer;
      border-color: rgba(196, 30, 58, 0.45);
      color: #ff8a9a;
      background: linear-gradient(168deg, #4a2028 0%, #2a1018 100%);
    }
    .arena-chip--bell {
      cursor: pointer;
      min-width: 30px;
      padding: 5px 7px;
      font-size: 11px;
      line-height: 1;
      border-color: rgba(184, 150, 62, 0.45);
    }
    .arena-chip--nav { font-size: 7px; padding: 5px 8px; }
    .arena-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;
    }
    .arena-chrome.is-stopped .arena-chip {
      opacity: 1;
      transform: none;
      pointer-events: auto;
    }
    @keyframes arena-chip-land {
      0% { opacity: 0; transform: translate3d(0, -80%, 0) scale(0.9); }
      70% { transform: translate3d(0, 4%, 0) scale(1.02); }
      100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
    }

    /* в”Ђв”Ђ РўСЂРѕРЅ РєРѕСЂРѕР»СЏ (РІРµСЂС…, РїРѕСЃР»Рµ РїРµСЂРІРѕР№ РјРѕР»РЅРёРё) в”Ђв”Ђ */
    .king-throne {
      position: fixed;
      top: calc(max(6px, env(safe-area-inset-top)) + var(--arena-chrome-h));
      left: 50%;
      z-index: 7;
      width: min(96vw, 660px);
      max-height: calc(var(--arena-header-h) - 10px);
      transform: translate3d(-50%, -160%, 0);
      opacity: 0;
      pointer-events: none;
      filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.78));
    }
    .king-throne.is-flying {
      transform: translate3d(0, 0, 0);
      will-change: transform, opacity;
      backface-visibility: hidden;
      animation: king-throne-fly-in 0.92s cubic-bezier(0.2, 1, 0.35, 1) forwards;
    }
    .king-throne.is-stopped {
      transform: translate3d(-50%, 0, 0);
      opacity: 1;
      pointer-events: auto;
    }
    @keyframes king-throne-fly-in {
      0% { transform: translate3d(-50%, -160%, 0) rotate(-3deg); opacity: 0.4; }
      62% { transform: translate3d(-50%, 1.2vh, 0) rotate(1deg); opacity: 1; }
      82% { transform: translate3d(-50%, -0.4vh, 0) rotate(-0.5deg); }
      100% { transform: translate3d(-50%, 0, 0) rotate(0deg); opacity: 1; }
    }
    .king-throne__frame {
      border: 2px solid rgba(184, 150, 62, 0.48);
      background: linear-gradient(180deg, rgba(20, 16, 10, 0.95) 0%, rgba(8, 6, 4, 0.97) 100%);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      box-shadow:
        inset 0 0 28px rgba(120, 90, 30, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.55);
      overflow: hidden;
    }
    .king-throne__body {
      padding: 10px 14px 8px;
      text-align: center;
      border-bottom: 1px solid rgba(184, 150, 62, 0.28);
    }
    .king-throne__title {
      font-family: 'Cinzel', serif;
      font-size: clamp(10px, 2.2vw, 13px);
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: #e8c547;
      margin-bottom: 4px;
    }
    .king-throne__hint {
      font-size: clamp(8px, 1.8vw, 10px);
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #a89870;
      line-height: 1.35;
    }
    .king-throne__seat {
      display: flex;
      justify-content: center;
      gap: 3px;
      padding: 0 14px 6px;
    }
    .king-throne__seat span {
      display: block;
      height: 5px;
      border-radius: 1px;
      background: linear-gradient(180deg, #5a5248, #2e2a24);
      border: 1px solid rgba(0, 0, 0, 0.45);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }
    .king-throne__seat span:nth-child(1) { width: 28%; }
    .king-throne__seat span:nth-child(2) { width: 44%; height: 7px; margin-top: -2px; }
    .king-throne__seat span:nth-child(3) { width: 28%; }

    /* в”Ђв”Ђ LIVE РїР°РЅРµР»СЊ (РєР°Рє РєР°РіРѕСЂС‚Р° / РўРћРџ-20, Р±РµР· С†РµРїРµР№) в”Ђв”Ђ */
    .live-panel {
      position: fixed;
      top: var(--arena-live-top);
      left: 50%;
      z-index: 5;
      width: min(96vw, 660px);
      transform: translate3d(-50%, -130%, 0);
      opacity: 0;
      pointer-events: none;
      filter: drop-shadow(0 20px 44px rgba(0, 0, 0, 0.75));
    }
    .live-panel.is-flying {
      transform: translate3d(0, 0, 0);
      will-change: transform, opacity;
      backface-visibility: hidden;
      animation: live-fly-in 0.95s cubic-bezier(0.2, 1, 0.35, 1) forwards;
    }
    .live-panel.is-stopped {
      transform: translate3d(-50%, 0, 0);
      opacity: 1;
      pointer-events: auto;
    }
    @keyframes live-fly-in {
      0% { transform: translate3d(-50%, -130%, 0) rotate(-4deg); opacity: 0.5; }
      65% { transform: translate3d(-50%, 2vh, 0) rotate(2deg); opacity: 1; }
      82% { transform: translate3d(-50%, -0.5vh, 0) rotate(-1deg); }
      100% { transform: translate3d(-50%, 0, 0) rotate(0deg); opacity: 1; }
    }

    .live-panel__frame {
      border: 1px solid rgba(196, 30, 58, 0.55);
      background: linear-gradient(180deg, rgba(14, 8, 10, 0.92) 0%, rgba(6, 4, 8, 0.94) 100%);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      box-shadow: inset 0 0 32px rgba(196, 30, 58, 0.1), 0 0 24px rgba(196, 30, 58, 0.15);
      overflow: hidden;
    }
    .live-panel__head {
      font-family: 'Cinzel', serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      text-align: center;
      color: #ff8a9a;
      padding: 12px 12px 8px;
      border-bottom: 1px solid rgba(196, 30, 58, 0.3);
      text-shadow: 0 0 14px rgba(196, 30, 58, 0.35);
    }
    .live-panel__modes {
      display: flex;
      gap: 6px;
      padding: 10px 12px 0;
    }
    .live-panel__mode {
      flex: 1;
      text-align: center;
      font-family: 'Cinzel', serif;
      font-size: 8px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 7px 4px;
      color: var(--muted);
      border: 1px solid rgba(120, 110, 95, 0.35);
      background: rgba(0, 0, 0, 0.4);
    }
    .live-panel__mode--active {
      color: #fff;
      border-color: var(--live);
      background: rgba(196, 30, 58, 0.22);
    }
    .live-panel__board {
      display: grid;
      grid-template-columns: 112px 1fr;
      gap: 0;
      margin: 10px 12px 14px;
      border: 1px solid rgba(196, 30, 58, 0.35);
      background: rgba(0, 0, 0, 0.45);
    }
    .live-panel__genres {
      border-right: 1px solid rgba(196, 30, 58, 0.25);
      padding: 6px 5px;
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .live-panel__genre {
      font-size: 8px;
      font-weight: 700;
      letter-spacing: 0.06em;
      padding: 5px 6px;
      color: var(--muted);
      line-height: 1.15;
    }
    .live-panel__genre--active {
      color: #fff;
      background: rgba(196, 30, 58, 0.22);
      border-left: 2px solid var(--live);
    }
    .live-panel__vote {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px;
    }
    .live-panel__vote span {
      font-size: 8px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .live-panel__vote-btn {
      pointer-events: auto;
      cursor: pointer;
      padding: 11px 20px;
      border: none;
      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);
    }

    .live-panel__stack {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    /* в”Ђв”Ђ РљРѕСЂРѕР»РµРІСЃРєР°СЏ Р·Р°РіСЂСѓР·РєР° (РїРѕРґ LIVE, С‚РѕР»СЊРєРѕ РўРћРџ-20) в”Ђв”Ђ */
    .royal-upload__frame {
      border: 1px solid rgba(184, 150, 62, 0.5);
      background: linear-gradient(180deg, rgba(18, 14, 8, 0.94) 0%, rgba(8, 6, 4, 0.96) 100%);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      box-shadow: inset 0 0 28px rgba(120, 90, 30, 0.08), 0 8px 24px rgba(0, 0, 0, 0.45);
      overflow: hidden;
    }
    .royal-upload__art {
      height: 52px;
      background:
        linear-gradient(180deg, rgba(80, 55, 18, 0.45) 0%, rgba(12, 8, 4, 0.9) 100%),
        url('/assets/arena-top20-champions-gold.png') center 30% / cover no-repeat;
      border-bottom: 2px solid rgba(184, 150, 62, 0.4);
    }
    .royal-upload__head {
      font-family: 'Cinzel', serif;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      text-align: center;
      color: #e8c547;
      padding: 9px 12px 7px;
      border-bottom: 1px solid rgba(184, 150, 62, 0.28);
    }
    .royal-upload__row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px;
    }
    .royal-upload__copy {
      display: flex;
      flex-direction: column;
      gap: 5px;
      min-width: 0;
    }
    .royal-upload__label {
      font-family: 'Cinzel', serif;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #f0e6c8;
    }
    .royal-upload__hint {
      font-size: 8px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
      line-height: 1.35;
    }
    .royal-upload__counter {
      flex-shrink: 0;
      cursor: pointer;
      min-width: 58px;
      padding: 10px 14px;
      border: 1px solid rgba(184, 150, 62, 0.55);
      background: linear-gradient(180deg, rgba(58, 44, 18, 0.95), rgba(28, 20, 8, 0.98));
      color: #e8c547;
      font-family: 'Cinzel', serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.1em;
      box-shadow: inset 0 1px 0 rgba(232, 197, 71, 0.12), 0 2px 8px rgba(0, 0, 0, 0.35);
    }
    .royal-upload__counter:hover {
      border-color: rgba(232, 197, 71, 0.72);
      background: linear-gradient(180deg, rgba(72, 54, 20, 0.98), rgba(34, 24, 10, 0.99));
    }
    .royal-upload__counter:disabled,
    .royal-upload__counter.royal-upload__counter--closed,
    .royal-upload__counter[aria-disabled="true"] {
      opacity: 0.5;
      cursor: not-allowed;
    }
    .royal-upload__counter.royal-upload__counter--closed:hover,
    .royal-upload__counter[aria-disabled="true"]:hover {
      border-color: rgba(184, 150, 62, 0.55);
      background: linear-gradient(180deg, rgba(58, 44, 18, 0.95), rgba(28, 20, 8, 0.98));
    }
    .royal-upload__note {
      margin: 0;
      padding: 0 12px 12px;
      font-size: 7px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      text-align: center;
      color: rgba(168, 152, 112, 0.85);
      line-height: 1.4;
    }

    .intro-hint {
      position: fixed;
      left: 50%;
      bottom: max(14px, env(safe-area-inset-bottom));
      transform: translateX(-50%);
      z-index: 6;
      font-size: 9px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.28);
      pointer-events: none;
      transition: opacity 0.6s ease;
    }
    .intro-hint.is-hidden { opacity: 0; }

    /* в”Ђв”Ђ РљР°РјРµРЅРЅР°СЏ СЃС‚РµРЅР° Р·Р°РіСЂСѓР·РєРё (РјРµР¶РґСѓ Р±РѕРєРѕРІС‹РјРё РїР°РЅРµР»СЏРјРё, РїРѕ РЅРёР¶РЅРµР№ РєСЂРѕРјРєРµ) в”Ђв”Ђ */
    .upload-stone {
      position: fixed;
      left: 50%;
      top: calc(var(--arena-side-top) + var(--arena-side-h) - var(--arena-upload-stone-h));
      bottom: auto;
      z-index: 6;
      width: var(--arena-upload-stone-w);
      min-height: var(--arena-upload-stone-h);
      height: auto;
      transform: translate3d(-50%, 140%, 0);
      opacity: 0;
      pointer-events: none;
      filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.75));
      transition: width 0.35s ease, top 0.35s ease, bottom 0.35s ease;
    }
    .upload-stone.is-wizard-open {
      --arena-upload-stone-w: min(max(280px, calc(100vw - var(--arena-side-w) - var(--arena-side-w) - 48px)), 620px);
      top: auto;
      bottom: calc(100vh - var(--arena-side-top) - var(--arena-side-h));
      min-height: 132px;
      max-height: min(44vh, 340px);
    }
    .upload-stone.is-stopped.is-ready {
      pointer-events: auto;
    }
    .upload-stone.is-flying {
      transform: translate3d(0, 0, 0);
      will-change: transform, opacity;
      backface-visibility: hidden;
      transition: none;
      animation: upload-stone-fly-in 1.05s cubic-bezier(0.2, 1, 0.35, 1) forwards;
    }
    .upload-stone.is-stopped {
      transform: translate3d(-50%, 0, 0);
      opacity: 1;
    }
    @keyframes upload-stone-fly-in {
      0% { transform: translate3d(-50%, 120%, 0) rotate(2deg); opacity: 0.35; }
      62% { transform: translate3d(-50%, -1.2vh, 0) rotate(-0.5deg); opacity: 1; }
      82% { transform: translate3d(-50%, 0.35vh, 0) rotate(0.25deg); }
      100% { transform: translate3d(-50%, 0, 0) rotate(0deg); opacity: 1; }
    }
    .upload-stone__wall {
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 7px;
      min-height: var(--arena-upload-stone-h);
      background: #100e0b;
      border: 2px solid #2a2520;
      box-shadow:
        0 14px 42px rgba(0, 0, 0, 0.72),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    }
    .upload-stone__prompt {
      font-family: 'Cinzel', serif;
      font-size: clamp(9px, 2vw, 12px);
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      text-align: center;
      color: #c8c0b4;
      padding: 4px 8px 2px;
      opacity: 0;
      transform: translateY(-8px);
      transition: opacity 0.22s ease, transform 0.22s ease;
    }
    .upload-stone__prompt.is-visible {
      opacity: 1;
      transform: translateY(0);
    }
    .upload-stone__grid {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      justify-content: center;
      align-content: flex-start;
      min-height: 0;
    }
    .upload-stone__grid--genres .upload-stone__brick--pick { flex: 1 1 calc(20% - 5px); min-width: 72px; }
    .upload-stone__grid--substyles .upload-stone__brick--pick { flex: 1 1 calc(50% - 5px); min-width: 100px; }
    .upload-stone__grid--substyles .upload-stone__brick--ghost {
      flex: 1 1 calc(50% - 5px);
      min-width: 100px;
      pointer-events: none;
      opacity: 0.42;
      filter: saturate(0.75);
    }
    .upload-stone__grid--grids .upload-stone__brick--pick { flex: 1 1 calc(33.33% - 5px); min-width: 88px; min-height: 52px; }
    .upload-stone__brick--pick {
      cursor: pointer;
      font-family: 'Cinzel', serif;
      font-size: clamp(7px, 1.6vw, 9px);
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #d8d0c6;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 6px 4px;
      line-height: 1.2;
      min-height: 32px;
      border: none;
      appearance: none;
      -webkit-appearance: none;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }
    button.upload-stone__brick.upload-stone__brick--pick {
      background-color: transparent;
      font: inherit;
    }
    .upload-stone__pick-label {
      display: block;
      width: 100%;
      text-align: center;
    }
    .upload-stone__brick--pick:hover {
      filter: brightness(1.12);
      border-color: rgba(210, 202, 194, 0.35);
    }
    .upload-stone__brick--pick.upload-stone__brick--grid {
      font-size: clamp(11px, 2.4vw, 14px);
      letter-spacing: 0.1em;
      color: #e8c547;
    }
    .upload-stone__brick--pick.upload-stone__brick--grid.upload-stone__brick--locked {
      opacity: 0.42;
      filter: saturate(0.55);
      cursor: not-allowed;
      color: #8a8278;
    }
    .upload-stone__brick--pick.upload-stone__brick--locked:hover {
      filter: saturate(0.55);
    }
    .upload-stone__pick-hint.is-grid-lock {
      color: #e8a040;
      font-weight: 700;
      animation: grid-lock-hint 0.55s ease;
    }
    @keyframes grid-lock-hint {
      0%, 100% { opacity: 1; }
      35% { opacity: 0.55; }
    }
    .upload-stone__brick--trigger {
      cursor: pointer;
      width: 100%;
    }
    .upload-stone__brick--trigger:disabled {
      cursor: default;
      opacity: 0.88;
    }
    .upload-stone__brick.is-scatter {
      animation: stone-scatter 0.34s ease-in forwards;
      pointer-events: none;
    }
    @keyframes stone-scatter {
      to {
        opacity: 0;
        transform: translate(var(--sx, 0), var(--sy, -40px)) rotate(var(--sr, 12deg)) scale(0.5);
      }
    }
    .upload-stone__brick.is-enter {
      opacity: 0;
      animation: stone-assemble 0.32s cubic-bezier(0.2, 1, 0.35, 1) forwards;
    }
    @keyframes stone-assemble {
      from { opacity: 0; transform: translateY(18px) scale(0.75); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .upload-stone__back {
      position: absolute;
      top: -2px;
      left: -2px;
      z-index: 2;
      width: 26px;
      height: 26px;
      border: 1px solid rgba(90, 82, 72, 0.55);
      background: linear-gradient(168deg, #4a443c, #1e1b17);
      color: #c8c0b4;
      font-size: 12px;
      line-height: 1;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    }
    .upload-stone__pick-hint {
      margin: 0;
      font-size: 7px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      text-align: center;
      color: rgba(168, 152, 112, 0.8);
      padding: 0 4px 2px;
    }
    .upload-stone__row {
      display: flex;
      gap: 5px;
      align-items: stretch;
      flex: 0 0 100%;
      width: 100%;
    }
    .upload-stone__row--bond { padding-left: 6%; }
    .upload-stone__row--bond-rev { padding-right: 4%; }
    .upload-stone__row--title {
      justify-content: center;
      padding-left: 0;
      padding-right: 0;
    }
    .upload-stone__brick {
      flex: 1 1 0;
      min-height: 26px;
      border-radius: 2px;
      border: 1px solid rgba(0, 0, 0, 0.45);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -5px 10px rgba(0, 0, 0, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.35);
    }
    .upload-stone__brick--s { flex: 0.72 1 0; min-height: 24px; }
    .upload-stone__brick--m { flex: 1.1 1 0; }
    .upload-stone__brick--l { flex: 1.45 1 0; min-height: 28px; }
    .upload-stone__brick--a {
      background: linear-gradient(168deg, #5e564c 0%, #3f3932 55%, #2a2620 100%);
    }
    .upload-stone__brick--b {
      background: linear-gradient(168deg, #524b42 0%, #38322c 55%, #221f1a 100%);
    }
    .upload-stone__brick--c {
      background: linear-gradient(168deg, #656058 0%, #45403a 55%, #2e2a25 100%);
    }
    .upload-stone__brick--d {
      background: linear-gradient(168deg, #4a443c 0%, #322e28 55%, #1e1b17 100%);
    }
    .upload-stone__brick--title {
      flex: 1 1 auto;
      width: 100%;
      min-height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 8px 14px;
      background: linear-gradient(168deg, #6a6256 0%, #4a433b 40%, #322c26 100%);
      border-color: rgba(0, 0, 0, 0.5);
      box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        inset 0 -8px 16px rgba(0, 0, 0, 0.42),
        0 3px 6px rgba(0, 0, 0, 0.4);
    }
    .upload-stone__title {
      margin: 0;
      width: 100%;
      box-sizing: border-box;
      font-family: 'Cinzel', serif;
      font-size: clamp(15px, 3.2vw, 28px);
      font-weight: 700;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      text-align: center;
      color: #d2cac0;
      text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.88),
        0 -1px 0 rgba(255, 255, 255, 0.07);
      white-space: nowrap;
      padding-left: 0.22em;
    }

    /* в”Ђв”Ђ Р‘РѕРєРѕРІС‹Рµ РїР°РЅРµР»Рё: РѕРґРЅР° РІС‹СЃРѕС‚Р°, РўРћРџ-20 Р±РµР· СЃРєСЂРѕР»Р»Р°, РєР°РіРѕСЂС‚Р° СЃРѕ СЃРєСЂРѕР»Р»РѕРј в”Ђв”Ђ */
    .side-panel__frame {
      display: flex;
      flex-direction: column;
      height: var(--arena-side-h);
      max-height: calc(100vh - var(--arena-side-top) - 2vh);
    }
    .side-panel__body {
      flex: 1 1 auto;
      min-height: 0;
      display: flex;
      flex-direction: column;
    }

    /* в”Ђв”Ђ РљР°РіРѕСЂС‚Р° Р»РµРіРёРѕРЅРµСЂРѕРІ (РІС‹Р»РµС‚ СЃР»РµРІР°, Р°СЂС‚ Р±РµР· С‰РёС‚Р°) в”Ђв”Ђ */
    .cohort-panel {
      position: fixed;
      left: 0;
      top: var(--arena-side-top);
      z-index: 4;
      width: var(--arena-side-w);
      transform: translate3d(-115%, 0, 0) rotate(-6deg);
      opacity: 0;
      pointer-events: none;
      filter: drop-shadow(0 20px 44px rgba(0, 0, 0, 0.75));
    }
    .cohort-panel.is-flying {
      transform: translate3d(0, 0, 0);
      will-change: transform, opacity;
      backface-visibility: hidden;
      animation: cohort-fly-in 0.95s cubic-bezier(0.2, 1, 0.35, 1) forwards;
    }
    .cohort-panel.is-stopped {
      transform: translate3d(var(--arena-side-shift), 0, 0) rotate(0deg);
      opacity: 1;
      pointer-events: auto;
    }
    @keyframes cohort-fly-in {
      0% { transform: translate3d(-115%, 0, 0) rotate(-6deg); opacity: 0.5; }
      65% { transform: translate3d(calc(var(--arena-side-shift) + 1vw), 0, 0) rotate(2deg); opacity: 1; }
      82% { transform: translate3d(calc(var(--arena-side-shift) - 0.5vw), 0, 0) rotate(-1deg); }
      100% { transform: translate3d(var(--arena-side-shift), 0, 0) rotate(0deg); opacity: 1; }
    }

    .cohort-panel__frame {
      margin: 0 0 0 8px;
      border: 1px solid rgba(192, 200, 214, 0.4);
      background: linear-gradient(180deg, rgba(10, 12, 16, 0.9) 0%, rgba(4, 6, 10, 0.94) 100%);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      box-shadow: inset 0 0 32px rgba(192, 200, 214, 0.06);
      overflow: hidden;
    }
    .cohort-panel__art {
      width: 100%;
      height: 148px;
      flex-shrink: 0;
      background: url('/assets/arena-legionnaires-silver-cohort.png') center 35% / cover no-repeat;
      border-bottom: 2px solid rgba(192, 200, 214, 0.35);
    }
    .cohort-panel__head {
      font-family: 'Cinzel', serif;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      text-align: center;
      color: #c0c8d4;
      padding: 10px 12px 8px;
      border-bottom: 1px solid rgba(192, 200, 214, 0.22);
      text-shadow: 0 0 12px rgba(192, 200, 214, 0.2);
      flex-shrink: 0;
    }
    .cohort-panel__viewport {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 8px 10px 10px;
      scrollbar-width: thin;
      scrollbar-color: rgba(192, 200, 214, 0.45) transparent;
    }
    .cohort-panel__viewport::-webkit-scrollbar { width: 5px; }
    .cohort-panel__viewport::-webkit-scrollbar-thumb {
      background: rgba(192, 200, 214, 0.45);
      border-radius: 4px;
    }
    .cohort-panel__list {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .cohort-panel__row {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      font-size: 8px;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      padding: 4px 7px;
      color: #d8dde4;
      background: rgba(0, 0, 0, 0.5);
      border: 1px solid rgba(192, 200, 214, 0.22);
      min-height: 22px;
      align-items: center;
    }
    .cohort-panel__row span:first-child {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .cohort-panel__row span:last-child {
      color: #8a9199;
      font-size: 7px;
      flex-shrink: 0;
    }

    @media (max-width: 640px) {
      .cohort-panel { top: var(--arena-side-top); width: var(--arena-side-w); }
      .cohort-panel.is-stopped { transform: translate3d(0, 0, 0) rotate(0deg); }
      .cohort-panel__art { height: 118px; }
      @keyframes cohort-fly-in {
        0% { transform: translate3d(-115%, 0, 0) rotate(-6deg); opacity: 0.5; }
        65% { transform: translate3d(1vw, 0, 0) rotate(2deg); opacity: 1; }
        100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; }
      }
    }

    /* в”Ђв”Ђ РўРћРџ-20 Р·РѕР»РѕС‚Рѕ (РІС‹Р»РµС‚ СЃРїСЂР°РІР°) в”Ђв”Ђ */
    .top20-panel {
      position: fixed;
      right: 0;
      left: auto;
      top: var(--arena-side-top);
      z-index: 4;
      width: var(--arena-side-w);
      transform: translate3d(115%, 0, 0) rotate(6deg);
      opacity: 0;
      pointer-events: none;
      filter: drop-shadow(0 20px 44px rgba(0, 0, 0, 0.75));
    }
    .top20-panel.is-flying {
      transform: translate3d(0, 0, 0);
      will-change: transform, opacity;
      backface-visibility: hidden;
      animation: top20-fly-in 0.95s cubic-bezier(0.2, 1, 0.35, 1) forwards;
    }
    .top20-panel.is-stopped {
      transform: translate3d(calc(-1 * var(--arena-side-shift)), 0, 0) rotate(0deg);
      opacity: 1;
      pointer-events: auto;
    }
    @keyframes top20-fly-in {
      0% { transform: translate3d(115%, 0, 0) rotate(6deg); opacity: 0.5; }
      65% { transform: translate3d(calc(-1 * var(--arena-side-shift) - 1vw), 0, 0) rotate(-2deg); opacity: 1; }
      82% { transform: translate3d(calc(-1 * var(--arena-side-shift) + 0.5vw), 0, 0) rotate(1deg); }
      100% { transform: translate3d(calc(-1 * var(--arena-side-shift)), 0, 0) rotate(0deg); opacity: 1; }
    }

    .top20-panel__frame {
      margin: 0 8px 0 0;
      border: 1px solid rgba(232, 197, 71, 0.45);
      background: linear-gradient(180deg, rgba(14, 12, 8, 0.9) 0%, rgba(6, 5, 4, 0.94) 100%);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      box-shadow: inset 0 0 32px rgba(232, 197, 71, 0.08);
      overflow: hidden;
    }
    .top20-panel__art {
      width: 100%;
      height: 148px;
      flex-shrink: 0;
      background: url('/assets/arena-top20-champions-gold.png') center 35% / cover no-repeat;
      border-bottom: 2px solid rgba(232, 197, 71, 0.4);
    }
    .top20-panel__head {
      font-family: 'Cinzel', serif;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      text-align: center;
      color: var(--gold);
      padding: 10px 12px 8px;
      border-bottom: 1px solid rgba(232, 197, 71, 0.25);
      text-shadow: 0 0 14px rgba(232, 197, 71, 0.25);
      flex-shrink: 0;
    }
    .top20-panel__list {
      flex: 1 1 auto;
      min-height: 0;
      display: grid;
      grid-template-rows: repeat(20, minmax(0, 1fr));
      gap: 3px;
      padding: 8px 10px 10px;
      overflow: hidden;
    }
    .top20-panel__row {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      font-size: 8px;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      padding: 3px 7px;
      color: #f0e6c8;
      background: rgba(0, 0, 0, 0.5);
      border: 1px solid rgba(232, 197, 71, 0.28);
      min-height: 0;
      align-items: center;
    }
    .top20-panel__row span:first-child {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .top20-panel__row span:last-child { color: #a89870; font-size: 7px; flex-shrink: 0; }

    @media (max-width: 640px) {
      :root {
        --arena-chrome-h: 58px;
        --arena-header-h: 12vh;
        --arena-side-top: calc(var(--arena-chrome-h) + var(--arena-header-h) + 6vh);
        --arena-side-h: min(calc(76vh - var(--arena-header-h)), 580px);
        --arena-live-top: calc(var(--arena-chrome-h) + var(--arena-header-h) + 2vh);
        --arena-upload-stone-h: 108px;
        --arena-upload-gap: 10px;
        --arena-side-w: min(96vw, 340px);
      }
      .side-panel__frame {
        max-height: calc(100vh - var(--arena-side-top) - 2vh);
      }
      .top20-panel { top: var(--arena-side-top); width: var(--arena-side-w); }
      .top20-panel.is-stopped { transform: translate3d(0, 0, 0) rotate(0deg); }
      .top20-panel__art { height: 118px; }
      @keyframes top20-fly-in {
        0% { transform: translate3d(115%, 0, 0) rotate(6deg); opacity: 0.5; }
        65% { transform: translate3d(-1vw, 0, 0) rotate(-2deg); opacity: 1; }
        100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; }
      }
    }

    @media (max-width: 640px) {
      .live-panel { top: var(--arena-live-top); width: min(96vw, 400px); }
      .royal-upload__art { height: 44px; }
      .royal-upload__row { padding: 10px; gap: 8px; }
      .upload-stone {
        width: min(max(200px, calc(100vw - var(--arena-side-w) - var(--arena-side-w) - 32px)), 360px);
      }
      .upload-stone.is-wizard-open {
        width: min(96vw, 380px);
      }
      .upload-stone__grid--genres .upload-stone__brick--pick { flex: 1 1 calc(33.33% - 5px); min-width: 58px; }
      .upload-stone__brick--title { min-height: 40px; padding: 6px 10px; }
      .upload-stone__title { letter-spacing: 0.14em; padding-left: 0.14em; font-size: clamp(12px, 4.2vw, 20px); }
      .king-throne { width: min(96vw, 660px); }
      .arena-chip { font-size: 7px; padding: 4px 7px; }
      .arena-chip--logo { font-size: 8px; }
      .arena-chip--passport { font-size: 7px; }
      @keyframes live-fly-in {
        0% { transform: translate3d(-50%, -130%, 0) rotate(-4deg); opacity: 0.5; }
        65% { transform: translate3d(-50%, 1vh, 0) rotate(2deg); opacity: 1; }
        100% { transform: translate3d(-50%, 0, 0) rotate(0deg); opacity: 1; }
      }
    }
  
/* --- prod index.html adapters --- */
body.arena-page {
  overflow: hidden !important;
  max-width: none !important;
  align-items: stretch !important;
  background: #0a0806 !important;
}
body.arena-page .site-header-legacy,
body.arena-page .site-main-legacy { display: none !important; }
body.arena-page #arena-chat-panel,
body.arena-page #arena-wake-banner { display: none !important; }
body.arena-page .bug-report-fab { z-index: 20; }

/* LIVE: map existing life-tile markup */
body.arena-page #live-plate-container.life-tile {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: none;
}
body.arena-page #live-plate-container .life-header { padding: 12px 12px 8px; border-bottom: 1px solid rgba(196, 30, 58, 0.3); }
body.arena-page #live-plate-container .life-mode {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: #ff8a9a;
  text-shadow: 0 0 14px rgba(196, 30, 58, 0.35);
}
body.arena-page #live-plate-container .life-submodes { display: flex; gap: 6px; padding: 10px 12px 0; }
body.arena-page #live-plate-container .submode {
  flex: 1;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 4px;
  color: var(--muted, #a89888);
  border: 1px solid rgba(120, 110, 95, 0.35);
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
body.arena-page #live-plate-container .submode--selected,
body.arena-page #live-plate-container .submode--active {
  color: #fff;
  border-color: #c41e3a;
  background: rgba(196, 30, 58, 0.22);
}
body.arena-page #live-plate-container .life-liveboard {
  display: grid;
  grid-template-columns: minmax(112px, 132px) minmax(0, 1fr);
  margin: 10px 12px 14px;
  border: 1px solid rgba(196, 30, 58, 0.35);
  background: rgba(0, 0, 0, 0.45);
  min-height: 140px;
}
body.arena-page #live-style-tabs { border-right: 1px solid rgba(196, 30, 58, 0.25); padding: 6px 5px; gap: 3px; }
body.arena-page #live-style-tabs .style {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 6px;
  border: none;
  background: transparent;
  color: #a89888;
  text-align: left;
  width: 100%;
}
body.arena-page #live-style-tabs .style.is-selected,
body.arena-page #live-style-tabs .style.active-live {
  color: #fff;
  background: rgba(196, 30, 58, 0.22);
  border-left: 2px solid #c41e3a;
}
body.arena-page #live-stage-panel { padding: 8px; font-size: 9px; }
body.arena-page #live-plate-container .life-action,
body.arena-page #live-plate-container .life-hot-banner { font-size: 8px; letter-spacing: 0.08em; }

/* cohort / top20 lists from live API */
body.arena-page #legionnaires-list .legionnaire-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 7px;
  color: #d8dde4;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(192, 200, 214, 0.22);
  min-height: 22px;
  align-items: center;
}
body.arena-page #knights-order-list .knight-row {
  display: flex !important;
  justify-content: space-between;
  gap: 8px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 7px;
  color: #f0e6c8;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(232, 197, 71, 0.28);
  align-items: center;
  opacity: 1 !important;
}
body.arena-page #knights-order-list .knight-row[style*="opacity"] { opacity: 0.35 !important; }
body.arena-page #king-passport-container {
  font-size: clamp(9px, 1.6vw, 11px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 197, 71, 0.82);
  line-height: 1.2;
}
body.arena-page #king-passport-container .king-highlight,
body.arena-page #king-passport-container .king-passport-name {
  color: #ffe066;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.95), 0 0 22px rgba(255, 160, 0, 0.6);
}

/* skip intro: only landed panels are visible */
body.arena-page.arena-intro-skip .arena-chrome.is-stopped,
body.arena-page.arena-intro-skip .king-throne.is-stopped,
body.arena-page.arena-intro-skip .live-panel.is-stopped,
body.arena-page.arena-intro-skip .cohort-panel.is-stopped,
body.arena-page.arena-intro-skip .top20-panel.is-stopped,
body.arena-page.arena-intro-skip .upload-stone.is-stopped {
  opacity: 1 !important;
  pointer-events: auto !important;
}
body.arena-page.arena-intro-skip .arena-chrome.is-stopped { pointer-events: auto; transform: none !important; }
body.arena-page.arena-intro-skip .arena-chrome.is-stopped .arena-chip { opacity: 1; transform: none; pointer-events: auto; }
body.arena-page.arena-intro-skip .king-throne.is-stopped { transform: translate3d(-50%, 0, 0) !important; }
body.arena-page.arena-intro-skip .live-panel.is-stopped { transform: translate3d(-50%, 0, 0) !important; }
body.arena-page.arena-intro-skip .cohort-panel.is-stopped { transform: translate3d(var(--arena-side-shift), 0, 0) rotate(0deg) !important; }
body.arena-page.arena-intro-skip .top20-panel.is-stopped { transform: translate3d(calc(-1 * var(--arena-side-shift)), 0, 0) rotate(0deg) !important; }
body.arena-page.arena-intro-skip .upload-stone.is-stopped { transform: translate3d(-50%, 0, 0) !important; }
body.arena-page.arena-intro-skip .upload-stone.is-ready { pointer-events: auto; }
body.arena-page.arena-intro-skip .intro-hint { display: none; }

body.arena-page.is-arena-ready .upload-stone.is-stopped.is-ready { pointer-events: auto; }


/* === Migrated from index.html inline styles (2026-06-30) === */

:root { --gap-section: 10px; --gap-block: 12px; }

body { background-color: var(--bg-color, var(--bg-main)); color: var(--text-color, var(--text-bright)); margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; min-height: 100vh; }

header { width: 100%; max-width: 1000px; padding: 8px 16px 10px; display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; justify-content: flex-start; border-bottom: 2px solid var(--border-color); box-sizing: border-box; }

.logo { font-weight: 600; color: var(--neon-cyan); text-shadow: 0 0 5px rgba(0, 240, 255, 0.3); font-size: 11px; letter-spacing: 0.06em; flex: 1 1 auto; min-width: 0; }

.logo-main { display: block; }

.site-stats-strip { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }

.site-stat-chip { display: inline-flex; flex-direction: column; gap: 2px; padding: 4px 6px; border: 1px solid rgba(0, 240, 255, 0.25); background: rgba(0, 240, 255, 0.04); min-width: 54px; }

.site-stat-chip.site-stat-gladiators { border-color: rgba(204, 255, 0, 0.3); background: rgba(204, 255, 0, 0.04); }

.site-stat-chip.site-stat-viewers { border-color: rgba(255, 0, 85, 0.3); background: rgba(255, 0, 85, 0.04); }

.site-stat-label { font-size: 8px; line-height: 1; letter-spacing: 0.14em; color: var(--text-secondary); text-transform: uppercase; }

.site-stat-value { font-size: 11px; line-height: 1; font-weight: 900; color: var(--text-color, var(--text-bright)); }

.king-throne-display { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 6px; width: 100%; background: rgba(255, 215, 0, 0.015); padding: 10px 12px; border: 1px dashed rgba(255, 215, 0, 0.18); border-radius: 6px; box-sizing: border-box; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, outline 0.2s ease; }

.king-throne-display--active { border: 2px solid #ffd700; outline: 2px solid rgba(255, 215, 0, 0.34); outline-offset: 3px; box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.22), 0 0 28px rgba(255, 215, 0, 0.34), inset 0 0 36px rgba(255, 215, 0, 0.08); background: linear-gradient(180deg, rgba(255, 215, 0, 0.12), rgba(255, 140, 0, 0.04)); animation: king-throne-glow 2.4s ease-in-out infinite alternate; }

@keyframes king-throne-glow {
  from { box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.18), 0 0 18px rgba(255, 215, 0, 0.22), inset 0 0 24px rgba(255, 215, 0, 0.06); outline-color: rgba(255, 215, 0, 0.24); }
  to { box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.32), 0 0 36px rgba(255, 215, 0, 0.42), inset 0 0 42px rgba(255, 215, 0, 0.11); outline-color: rgba(255, 215, 0, 0.48); }
 }

.king-throne-display--active .king-crown { transform: scale(1.08); filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.95)); }

.king-throne-display--active .king-passport,
 .king-throne-display--active #king-passport-container { border: 1px solid rgba(255, 215, 0, 0.52); border-radius: 4px; padding: 7px 12px; background: rgba(255, 215, 0, 0.07); box-shadow: inset 0 0 18px rgba(255, 215, 0, 0.1), 0 0 14px rgba(255, 215, 0, 0.12); }

.king-crown { font-size: 22px; line-height: 1; filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8)); animation: crown-glow 2s infinite alternate; transition: transform 0.2s ease, filter 0.2s ease; }

@keyframes crown-glow { from { filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4)); } to { filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.9)); } }

.king-data-text { font-size: 16px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-color, var(--text-bright)); text-transform: uppercase; text-align: center; line-height: 1.4; }

.king-highlight { color: #ffe066; text-shadow: 0 0 10px rgba(255, 215, 0, 0.95), 0 0 22px rgba(255, 160, 0, 0.6); font-weight: 900; }

.user-panel { font-size: 11px; color: var(--text-muted); letter-spacing: 0.04em; text-align: right; flex: 0 0 auto; white-space: normal; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 6px; }

main { width: 100%; max-width: 1000px; padding: 10px 16px 14px; box-sizing: border-box; }

.legionnaires-panel__art { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url('/assets/arena-legionnaires-silver-cohort.png') center 20% / cover no-repeat; opacity: 0.42; }

.legionnaires-panel__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 8, 12, 0.35) 0%, rgba(6, 8, 12, 0.72) 38%, rgba(6, 8, 12, 0.93) 100%); }

.legionnaires-panel__content { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; height: 100%; padding: 12px; box-sizing: border-box; }

.legionnaires-viewport { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(192, 200, 214, 0.65) transparent; -webkit-overflow-scrolling: touch; }

.legionnaires-viewport::-webkit-scrollbar { width: 5px; }

.legionnaires-viewport::-webkit-scrollbar-thumb { background: rgba(192, 200, 214, 0.45); border-radius: 4px; }

#legionnaires-list { display: flex; flex-direction: column; gap: 4px; min-height: 100%; position: relative; z-index: 1; }

.legionnaire-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; background: rgba(8, 10, 14, 0.78); border: 1px solid rgba(192, 200, 214, 0.46); color: var(--text-color, var(--text-bright)); box-shadow: 0 0 10px rgba(192, 202, 214, 0.1), inset 0 0 12px rgba(148, 163, 184, 0.06); box-sizing: border-box; min-height: 22px; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }

.legionnaire-row--enter { animation: legionnaire-fly-in 0.58s cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes legionnaire-fly-in { from { opacity: 0; transform: translateX(-36px); filter: brightness(1.35); box-shadow: 0 0 18px rgba(226, 232, 240, 0.35); } 70% { opacity: 1; filter: brightness(1.08); } to { opacity: 1; transform: translateX(0); filter: brightness(1); box-shadow: 0 0 10px rgba(192, 202, 214, 0.1), inset 0 0 12px rgba(148, 163, 184, 0.06); } }

.legionnaire-row__left { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }

.legionnaire-row__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f1f5f9; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35); }

.legionnaire-row__right { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }

.legionnaire-row__triad { color: #cbd5e1; font-size: 10px; font-weight: 900; letter-spacing: 0.08em; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35); }

.legionnaire-grid-pills { display: inline-flex; gap: 3px; }

.legionnaire-grid-pill { min-width: 18px; padding: 1px 4px; border: 1px solid rgba(192, 200, 214, 0.38); color: rgba(226, 232, 240, 0.42); font-size: 8px; font-weight: 900; text-align: center; line-height: 1.3; }

.legionnaire-grid-pill.is-won { border-color: rgba(226, 232, 240, 0.88); color: #f8fafc; box-shadow: 0 0 6px rgba(192, 202, 214, 0.28); background: rgba(148, 163, 184, 0.18); }

.legionnaires-empty { opacity: 0.62; justify-content: center; border-style: dashed; border-color: rgba(192, 200, 214, 0.35); color: #cbd5e1; background: rgba(8, 10, 14, 0.55); }

.monolith-box { background-color: var(--tile-bg, var(--bg-panel)); border: 2px solid var(--border-color); padding: 14px; box-shadow: var(--shadow-panel); position: relative; }

.box-title { font-size: 11px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 2px; margin-bottom: 10px; text-align: center; font-weight: 700; }

.style-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 0; }

.style-card { background: var(--tile-bg, var(--bg-panel-alt)); border: 2px solid var(--border-color); padding: 12px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }

.style-card .category-row { flex-shrink: 0; }

.style-name { font-size: 13px; font-weight: 700; color: var(--text-color, var(--text-bright)); border-bottom: 1px solid var(--border-color); padding-bottom: 8px; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.style-substyle-counter { margin-top: -2px; margin-bottom: 4px; font-size: 9px; font-weight: 700; color: var(--text-secondary); letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.substyle-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--bg-inset); padding: 6px 8px; border: 1px solid var(--border-color); }

.substyle-label { font-size: 10px; font-weight: 800; color: var(--text-color, var(--text-bright)); letter-spacing: 0.05em; text-transform: uppercase; min-width: 82px; }

.substyle-counters { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.substyle-counter-btn { padding: 5px 10px; font-size: 11px; min-width: 68px; font-weight: 800; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease; }

@keyframes conveyor-counter-pulse {
  from { box-shadow: 0 0 8px rgba(255, 0, 85, 0.22); transform: scale(1); }
  to { box-shadow: 0 0 22px rgba(255, 0, 85, 0.52); transform: scale(1.04); }
}

.conveyor-header { text-align: center; margin-bottom: 14px; }

.conveyor-title { color: var(--text-color, var(--text-bright)); font-weight: 900; letter-spacing: 2px; margin-bottom: 10px; font-size: 12px; }

.conveyor-hint {
  margin: 0 auto;
  max-width: 520px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-color, var(--text-bright));
}

.conveyor-hint-accent {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
  white-space: nowrap;
}

.conveyor-hint-sub {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.category-row { display: flex; justify-content: space-between; align-items: center; background: var(--bg-inset); padding: 6px 10px; border: 1px solid var(--border-color); }

.category-label { font-size: 11px; color: var(--text-secondary); font-weight: 700; }

.upload-direction-zone { display: flex; align-items: center; gap: 10px; }

.upload-instruction-text { font-size: 10px; font-weight: 700; color: var(--text-instruction); letter-spacing: 1px; text-transform: uppercase; }

.arena-btn { background: transparent; border: 1px solid var(--btn-border); color: var(--arena-btn-color); padding: 6px 14px; font-size: 11px; cursor: pointer; font-weight: 700; transition: all 0.2s; }

.arena-btn:hover { border-color: var(--neon-cyan); background: rgba(0, 240, 255, 0.05); }

@keyframes duel-alert-pulse {
  0% { box-shadow: 0 0 0 rgba(255, 0, 85, 0.18); transform: scale(1); }
  50% { box-shadow: 0 0 18px rgba(255, 0, 85, 0.42); transform: scale(1.04); }
  100% { box-shadow: 0 0 0 rgba(255, 0, 85, 0.18); transform: scale(1); }
}

@keyframes duel-locked-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 0, 85, 0.22); }
  50% { box-shadow: 0 0 20px rgba(255, 0, 85, 0.46); }
}

@keyframes duel-shield-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(192, 132, 252, 0.45), 0 0 6px rgba(240, 171, 252, 0.28); }
  50% { box-shadow: 0 0 28px rgba(216, 132, 255, 0.78), 0 0 12px rgba(244, 196, 255, 0.55); }
}

@keyframes duel-self-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.18); }
  50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.42); }
}

.life-tile { width: 100%; box-sizing: border-box; background: var(--tile-bg, var(--bg-panel)); border: 2px solid var(--neon-magenta); box-shadow: 0 0 12px rgba(255,0,85,0.15); padding: 14px; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; display: flex; flex-direction: column; min-height: 100%; height: 100%; }

.life-tile > .life-header,
.life-tile > .life-action,
.life-tile > .life-hot-banner { flex-shrink: 0; }

.life-tile > .life-liveboard { min-height: 0; flex: 1 1 auto; }

.life-tile.life-tile--hot { border-color: #ffd54a; box-shadow: 0 0 22px rgba(255, 213, 74, 0.34), inset 0 0 26px rgba(255, 118, 0, 0.08); background: linear-gradient(180deg, rgba(255, 145, 0, 0.08), rgba(255, 0, 85, 0.04)); }

.life-tile.life-tile--hot .life-mode { color: #ffd54a; text-shadow: 0 0 12px rgba(255, 213, 74, 0.45); }

.life-tile .life-action { color: var(--neon-cyan); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; text-shadow: 0 0 12px rgba(0, 240, 255, 0.55), 0 0 24px rgba(0, 240, 255, 0.22); }

.life-tile.life-tile--hot .life-action { color: #ffd54a; text-shadow: 0 0 14px rgba(255, 213, 74, 0.65), 0 0 28px rgba(255, 145, 0, 0.28); }

.life-hot-banner { display: none; margin: 0 0 10px; padding: 7px 10px; text-align: center; border: 1px solid rgba(255, 213, 74, 0.65); background: rgba(255, 145, 0, 0.12); color: #ffd54a; font-size: 10px; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; box-shadow: 0 0 18px rgba(255, 145, 0, 0.18); animation: hot-list-flash 1.1s infinite alternate; }

.life-hot-banner.is-visible { display: block; }

.knight-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; background: var(--tile-bg, var(--bg-panel-alt)); border: 1px solid var(--border-color); color: var(--text-color, var(--text-bright)); transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease; min-height: 0; height: 100%; box-sizing: border-box; }

.knight-row--toggleable { cursor: pointer; touch-action: manipulation; }

.knight-row--toggleable:hover { border-color: rgba(0, 240, 255, 0.38); box-shadow: 0 0 12px rgba(0, 240, 255, 0.08); }

.knight-row--shielded.knight-row--framed { box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.34), 0 0 0 3px rgba(0, 240, 255, 0.24), 0 0 20px rgba(168, 85, 247, 0.18), inset 0 0 14px rgba(168, 85, 247, 0.05); }

@keyframes knight-shield-pulse {
  from { box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.24), 0 0 14px rgba(168, 85, 247, 0.12), inset 0 0 12px rgba(168, 85, 247, 0.04); }
  to { box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.36), 0 0 22px rgba(168, 85, 247, 0.24), inset 0 0 16px rgba(168, 85, 247, 0.07); }
}

@keyframes knight-duel-live-pulse {
  from { box-shadow: 0 0 0 1px rgba(255, 0, 85, 0.24), 0 0 14px rgba(255, 0, 85, 0.12); }
  to { box-shadow: 0 0 0 1px rgba(255, 0, 85, 0.36), 0 0 22px rgba(255, 0, 85, 0.28); }
}

.knight-row__left { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }

.knight-row__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.knight-row__frame-mark { color: var(--neon-cyan); font-size: 10px; text-shadow: 0 0 8px rgba(0, 240, 255, 0.55); flex: 0 0 auto; }

.knight-row__shield-mark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; line-height: 0; color: #f0abfc; }

.knight-scutum-icon { width: 14px; height: 16px; display: block; color: inherit; filter: drop-shadow(0 0 7px rgba(216, 132, 255, 0.95)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.45)); }

.knight-scutum-icon--btn { width: 15px; height: 18px; }

@keyframes duel-ready-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(163, 230, 53, 0.18); }
  50% { box-shadow: 0 0 18px rgba(163, 230, 53, 0.42); }
}

.knights-order-panel { background: linear-gradient(180deg, rgba(255, 215, 0, 0.06), rgba(255, 215, 0, 0.02)); border: 2px solid #ffd700; box-shadow: 0 0 18px rgba(255, 215, 0, 0.14), inset 0 0 20px rgba(255, 215, 0, 0.04); }

.knights-order-title { text-transform: uppercase; text-align: center; color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.28); }

@keyframes hunt-order-pulse { from { opacity: 0.86; filter: brightness(0.95); } to { opacity: 1; filter: brightness(1.12); } }

.shame-bush-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; background: var(--tile-bg, var(--bg-panel-alt)); border: 1px solid var(--border-color); font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #ffaa00; }

.life-header { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }

.life-mode { font-size: 11px; font-weight: 900; letter-spacing: 2px; color: var(--neon-magenta); text-align: center; text-transform: uppercase; }

.life-submodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }

.submode { padding: 8px 6px; text-align: center; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border: 2px solid var(--border-color); cursor: pointer; transition: all 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }

#mode-duel-plate.submode { border-color: var(--neon-cyan); color: var(--neon-cyan); background: rgba(0, 240, 255, 0.02); }

#mode-hot-plate.submode { border-color: #ffb347; color: #ffb347; background: rgba(255, 145, 0, 0.04); }

#mode-royale-plate.submode { border-color: #ffd700; color: #ffd700; background: rgba(255, 215, 0, 0.04); }

.submode { opacity: 0.58; }

.submode.submode--active { opacity: 1; }

.submode.submode--selected { opacity: 1; }

.submode.submode--engaged { opacity: 1; border-width: 2px; }

#mode-duel-plate.submode.submode--active,
#mode-duel-plate.submode.submode--engaged { box-shadow: 0 0 16px rgba(0,240,255,0.34); animation: duel-plate-pulse 1.35s infinite alternate; }

#mode-duel-plate.submode.submode--selected { box-shadow: 0 0 20px rgba(0,240,255,0.42); background: rgba(0, 240, 255, 0.1); }

@keyframes duel-plate-pulse {
  from { box-shadow: 0 0 10px rgba(0, 240, 255, 0.22); transform: scale(1); }
  to { box-shadow: 0 0 24px rgba(0, 240, 255, 0.48); transform: scale(1.02); }
}

#mode-hot-plate.submode.submode--active,
#mode-hot-plate.submode.submode--engaged { animation: hot-plate-pulse 1.2s infinite alternate; text-shadow: 0 0 10px rgba(255, 145, 0, 0.45); }

#mode-hot-plate.submode.submode--selected { box-shadow: 0 0 18px rgba(255,145,0,0.38); background: rgba(255, 145, 0, 0.14); }

@keyframes hot-plate-pulse {
  from { box-shadow: 0 0 10px rgba(255, 145, 0, 0.22); transform: scale(1); }
  to { box-shadow: 0 0 26px rgba(255, 145, 0, 0.48); transform: scale(1.02); }
}

#mode-royale-plate.submode.submode--active,
#mode-royale-plate.submode.submode--engaged { animation: royal-plate-pulse 1.15s ease-in-out infinite alternate; text-shadow: 0 0 12px rgba(255, 215, 0, 0.55); font-weight: 900; }

#mode-royale-plate.submode.submode--selected { box-shadow: 0 0 22px rgba(255, 215, 0, 0.42); background: rgba(255, 215, 0, 0.12); }

@keyframes royal-plate-pulse {
  from { box-shadow: 0 0 14px rgba(255, 215, 0, 0.28), inset 0 0 12px rgba(255, 215, 0, 0.06); border-color: rgba(255, 215, 0, 0.72); transform: scale(1); }
  to { box-shadow: 0 0 32px rgba(255, 215, 0, 0.58), inset 0 0 20px rgba(255, 215, 0, 0.12); border-color: #ffe566; transform: scale(1.03); }
}

.life-tile.life-tile--royal-live .life-mode { color: #ffd700; text-shadow: 0 0 14px rgba(255, 215, 0, 0.45); }

.leaders-panel { width: 100%; max-width: 1000px; margin: 6px auto 8px; padding: 10px 12px; gap: 8px; box-sizing: border-box; background: rgba(0, 240, 255, 0.02); border: 2px dashed var(--neon-cyan); display: flex; flex-direction: column; box-shadow: 0 0 12px rgba(0,240,255,0.05); transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }

@keyframes royal-panel-pulse {
  from { box-shadow: 0 0 14px rgba(255, 215, 0, 0.22), inset 0 0 16px rgba(255, 215, 0, 0.05); }
  to { box-shadow: 0 0 30px rgba(255, 215, 0, 0.42), inset 0 0 22px rgba(255, 215, 0, 0.09); }
}

.life-action { text-align: center; margin-bottom: 10px; }

.life-liveboard { display: grid; grid-template-columns: minmax(132px, 156px) minmax(0, 1fr); gap: 10px; width: 100%; align-items: stretch; min-height: 280px; max-height: 540px; }

.life-styles { display: grid; grid-template-rows: repeat(10, minmax(0, 1fr)); gap: 4px; width: 100%; max-width: 156px; box-sizing: border-box; min-height: 0; align-self: stretch; }

.life-styles .style { min-height: 0; width: 100%; border: 1px solid var(--border-color); color: var(--text-muted); padding: 6px 8px; text-align: left; font-size: 9px; font-weight: 700; text-transform: uppercase; box-sizing: border-box; background: var(--bg-inset); display: flex; flex-direction: column; justify-content: center; gap: 0; cursor: pointer; transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease; appearance: none; border-radius: 0; font: inherit; }

.life-styles .style:hover { border-color: rgba(0, 240, 255, 0.4); box-shadow: 0 0 12px rgba(0, 240, 255, 0.08); }

.life-styles .style.is-empty { opacity: 0.42; }

.life-styles .style.is-selected { border-color: var(--neon-cyan); box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.22), 0 0 16px rgba(0, 240, 255, 0.1); background: linear-gradient(180deg, rgba(0, 240, 255, 0.08), rgba(0, 240, 255, 0.02)); }

@keyframes style-live-pulse {
  from { box-shadow: 0 0 8px rgba(0, 240, 255, 0.16); border-color: rgba(0, 240, 255, 0.35); }
  to { box-shadow: 0 0 18px rgba(0, 240, 255, 0.32); border-color: rgba(0, 240, 255, 0.55); }
}

.life-style-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-width: 0; width: 100%; }

.life-style-name { color: inherit; font-size: 10px; letter-spacing: 0.05em; line-height: 1.2; min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.life-style-count { flex-shrink: 0; border: 1px solid rgba(0, 240, 255, 0.25); color: var(--neon-cyan); padding: 1px 5px; font-size: 8px; font-weight: 900; line-height: 1.3; }

.life-styles .style.style-hot-live .life-style-count { border-color: rgba(255, 213, 74, 0.55); color: #ffd54a; }

.life-style-meta { display: none; }

.life-stage { min-height: 100%; height: 100%; align-self: stretch; border: 1px solid var(--border-color); background: rgba(255, 255, 255, 0.02); padding: 12px; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(113, 113, 122, 0.28) transparent; }

.life-stage::-webkit-scrollbar { width: 4px; }

.life-stage::-webkit-scrollbar-thumb { background: rgba(113, 113, 122, 0.28); border-radius: 4px; }

.life-stage-empty { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: var(--text-secondary); border: 1px dashed rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.01); }

.life-stage-empty-title { color: var(--text-color, var(--text-bright)); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.life-stage-empty-copy { max-width: 360px; font-size: 11px; line-height: 1.5; }

.life-stage-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }

.life-stage-kicker { color: var(--neon-cyan); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.life-stage-title { margin-top: 4px; color: var(--text-color, var(--text-bright)); font-size: 18px; font-weight: 800; letter-spacing: 0.03em; }

.life-stage-copy { color: var(--text-secondary); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }

.life-category-stack { display: flex; flex-direction: column; gap: 10px; }

.life-category-block { border: 1px solid var(--border-color); background: rgba(255, 255, 255, 0.015); padding: 10px 6px 10px 10px; display: flex; flex-direction: column; gap: 8px; }

.life-category-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.life-category-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.life-category-badge { padding: 2px 7px; border: 1px solid var(--btn-border); color: var(--text-secondary); font-size: 9px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }

.life-category-badge.is-duel { border-color: var(--neon-magenta); color: var(--neon-magenta); }

.life-category-badge.is-main { border-color: var(--neon-cyan); color: var(--neon-cyan); }

.life-category-badge.is-royal { border-color: #ffd700; color: #ffd700; box-shadow: 0 0 12px rgba(255, 215, 0, 0.28); animation: royal-plate-pulse 1.2s infinite alternate; }

.life-category-badge.is-side { border-color: var(--neon-lime); color: var(--neon-lime); }

.life-category-block.life-category-block--royal { border-color: rgba(255, 215, 0, 0.55); background: rgba(255, 215, 0, 0.06); box-shadow: inset 0 0 18px rgba(255, 215, 0, 0.06); animation: royal-panel-pulse 1.4s infinite alternate; }

.life-pair-row.life-pair-row--royal-live { border-color: rgba(255, 215, 0, 0.58); background: rgba(255, 215, 0, 0.05); box-shadow: 0 0 14px rgba(255, 215, 0, 0.14); animation: royal-plate-pulse 1.25s infinite alternate; }

.life-category-name { color: var(--text-color, var(--text-bright)); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.life-category-note { color: var(--text-muted); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }

.life-pair-list { display: flex; flex-direction: column; gap: 8px; }

.life-pair-row { border: 1px solid var(--border-color); background: rgba(255, 255, 255, 0.01); padding: 10px 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: nowrap; min-width: 0; }

.life-pair-row.is-hot { border-color: rgba(255, 213, 74, 0.55); background: rgba(255, 145, 0, 0.08); box-shadow: inset 0 0 14px rgba(255, 145, 0, 0.06); }

.life-pair-row.is-disabled { opacity: 0.48; }

.life-pair-meta { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; font-size: 11px; min-width: 0; flex: 1 1 auto; overflow: hidden; }

.life-pair-state { flex-shrink: 0; padding: 2px 6px; border: 1px solid var(--btn-border); color: var(--text-secondary); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }

.life-pair-state.is-hot { border-color: #ffd54a; color: #ffd54a; }

.life-pair-caption { color: var(--text-secondary); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.life-pair-enter { appearance: none; border-radius: 0; font: inherit; font-size: 10px; padding: 6px 10px; white-space: nowrap; flex: 0 0 auto; flex-shrink: 0; box-sizing: border-box; width: auto; min-width: max-content; border: 1px solid var(--btn-border); background: rgba(255, 255, 255, 0.02); color: var(--arena-btn-color); cursor: pointer; font-weight: 700; }

@keyframes life-vote-btn-pulse {
  from { box-shadow: 0 0 8px rgba(255, 0, 85, 0.24); transform: scale(1); }
  to { box-shadow: 0 0 24px rgba(255, 0, 85, 0.58); transform: scale(1.05); }
}

.leaders-panel .panel-label,
 .leaders-panel .upload-instruction-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.arena-wake-banner { margin-bottom: var(--gap-block); padding: 14px 16px; border: 1px solid rgba(0, 255, 255, 0.35); background: linear-gradient(90deg, rgba(0, 255, 255, 0.08), rgba(255, 215, 0, 0.06)); box-sizing: border-box; }

.arena-wake-banner__inner { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }

.arena-wake-banner__title { margin: 0; font-size: 13px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--neon-cyan); }

.arena-wake-banner__text { margin: 0; font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, 0.82); max-width: 52ch; }

.arena-wake-banner__text strong { color: var(--neon-cyan); font-weight: 900; letter-spacing: 0.06em; }

.knights-order-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 12px; text-align: center; flex: 1 1 auto; min-height: 120px; }

.knights-order-empty__title { margin: 0; font-size: 12px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: #ffd700; }

.knights-order-empty__hint { margin: 0; font-size: 11px; line-height: 1.45; color: rgba(255, 255, 255, 0.7); max-width: 28ch; }

.vs-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; border-top: 1px dashed #27272a; padding-top: 20px; }

.blind-deck { flex: 1; background: var(--bg-inset); border: 1px solid var(--border-color); padding: 20px 10px; text-align: center; }

.btn-vote { flex: 1; background: transparent; border: 2px solid var(--neon-magenta); color: var(--neon-magenta); padding: 12px; font-weight: 700; text-transform: uppercase; cursor: pointer; font-size: 11px; }

.vote-actions { display: flex; align-items: stretch; justify-content: space-between; gap: 14px; }

.vote-actions .btn-vote { flex: 1 1 0; min-height: 52px; letter-spacing: 0.06em; }

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

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

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

.substyle-modal { position: fixed; inset: 0; z-index: 10050; display: none; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; background: var(--overlay-bg); }

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

.substyle-modal-panel { width: min(560px, 100%); border: 2px solid var(--neon-cyan); background: var(--tile-bg, var(--bg-panel)); box-shadow: 0 0 30px rgba(0, 240, 255, 0.2); padding: 18px; box-sizing: border-box; }

.substyle-modal-title { text-align: center; font-size: 11px; font-weight: 900; letter-spacing: 0.08em; color: var(--neon-cyan); text-transform: uppercase; margin-bottom: 10px; }

.substyle-modal-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }

.substyle-row--slot-empty { opacity: 0.38; }

.substyle-row--slot-empty .substyle-label { visibility: hidden; }

.substyle-counter-btn--ghost {
  visibility: hidden;
  pointer-events: none;
  min-width: 52px;
  padding: 5px 8px;
}

.substyle-option { background: var(--bg-inset); border: 1px solid var(--border-color); color: var(--text-color, var(--text-bright)); padding: 10px; font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; }

.substyle-option:hover { border-color: var(--neon-cyan); box-shadow: 0 0 12px rgba(0, 240, 255, 0.14); }

.substyle-cancel { margin-top: 10px; width: 100%; }

.battle-modal-panel { position: relative; z-index: 1; width: min(720px, 100%); max-height: 92vh; overflow-y: auto; background: var(--modal-gradient); border: 2px solid var(--neon-magenta); box-shadow: 0 0 60px rgba(255, 0, 85, 0.25), 0 25px 80px rgba(0, 0, 0, 0.9); padding: 28px 24px 32px; box-sizing: border-box; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }

.battle-modal-panel.battle-modal-panel--hot { border-color: #ffd54a; box-shadow: 0 0 52px rgba(255, 145, 0, 0.3), 0 25px 80px rgba(0, 0, 0, 0.9); background: linear-gradient(180deg, rgba(255, 145, 0, 0.12), rgba(16, 10, 14, 0.96)); }

.battle-modal-panel.battle-modal-panel--hot .battle-modal-title { color: #ffd54a; text-shadow: 0 0 12px rgba(255, 213, 74, 0.45); }

.battle-modal-panel.battle-modal-panel--hot .battle-modal-genre { color: #ffe9a6; }

.battle-modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 24px; }

.battle-modal-title { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--neon-magenta); text-transform: uppercase; text-shadow: 0 0 12px rgba(255, 0, 85, 0.4); flex: 1; }

.battle-modal-genre { font-size: 11px; color: var(--neon-cyan); font-weight: 700; letter-spacing: 2px; margin-top: 6px; text-transform: uppercase; }

.battle-modal-alert { display: none; margin: -6px 0 16px; padding: 8px 10px; border: 1px solid rgba(255, 213, 74, 0.7); background: rgba(255, 145, 0, 0.14); color: #ffd54a; text-align: center; font-size: 10px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; animation: hot-list-flash 1.1s infinite alternate; }

.battle-modal-alert.is-visible { display: block; }

.battle-modal-alert--media { border-color: rgba(255, 0, 85, 0.75); background: rgba(255, 0, 85, 0.12); color: #ff8fab; animation: none; display: none; flex-direction: column; gap: 10px; align-items: center; }

.battle-modal-alert--media.is-visible { display: flex; }

.battle-modal-media-exit { background: transparent; border: 1px solid currentColor; color: inherit; padding: 8px 14px; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }

.battle-modal-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

.battle-modal-close, .battle-modal-minimize { background: transparent; border: 1px solid var(--btn-border); color: var(--text-instruction); cursor: pointer; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 14px; transition: all 0.2s; }

.battle-modal-close { width: 40px; padding: 8px; font-size: 16px; line-height: 1; }

.battle-modal-close:hover, .battle-modal-minimize:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }

.battle-modal-close:disabled, .battle-modal-minimize:disabled { border-color: #3f3f46; color: #71717a; opacity: 0.38; cursor: not-allowed; pointer-events: none; }

.battle-modal .vs-grid { border-top: none; padding-top: 0; margin-top: 0; gap: 16px; align-items: stretch; }

.battle-modal-hint { text-align: center; font-size: 10px; color: var(--text-secondary); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }

.blind-deck { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px; border-radius: 4px; width: 100%; box-sizing: border-box; background: rgba(6, 8, 12, 0.55); }

.deck-a { border: 1px solid rgba(176, 190, 206, 0.42); box-shadow: inset 0 0 28px rgba(148, 163, 184, 0.08), 0 0 16px rgba(148, 163, 184, 0.06); }

.deck-b { border: 1px solid rgba(201, 162, 39, 0.45); box-shadow: inset 0 0 28px rgba(201, 162, 39, 0.08), 0 0 16px rgba(201, 162, 39, 0.08); }

.deck-shield-img { width: 92px; height: auto; max-height: 108px; object-fit: contain; display: block; }

.deck-a .deck-shield-img { filter: drop-shadow(0 6px 18px rgba(148, 163, 184, 0.45)); }

.deck-b .deck-shield-img { filter: drop-shadow(0 6px 18px rgba(201, 162, 39, 0.5)); }

.deck-shield-caption { font-size: 8px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 2px; }

.deck-a .deck-shield-caption { color: #c0c8d4; }

.deck-b .deck-shield-caption { color: #e8c547; }

.deck-substyle { min-height: 12px; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-secondary); text-transform: uppercase; }

.deck-mandatory { display: none; width: 100%; text-align: center; font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary); }

.deck-mandatory.is-active { display: block; }

.deck-mandatory-value { font-size: 22px; font-weight: 900; letter-spacing: 0.06em; margin: 0 3px; }

.deck-a .deck-mandatory.is-active .deck-mandatory-value { color: #c0c8d4; text-shadow: 0 0 12px rgba(192, 202, 214, 0.35); }

.deck-b .deck-mandatory.is-active .deck-mandatory-value { color: #e8c547; text-shadow: 0 0 12px rgba(201, 162, 39, 0.4); }

.deck-player { width: 100%; display: flex; flex-direction: column; gap: 6px; }

.deck-seek { width: 100%; height: 4px; accent-color: #a8b4c4; cursor: pointer; opacity: 1; transition: opacity 0.2s; }

.deck-seek:disabled { opacity: 0.22; cursor: not-allowed; pointer-events: none; }

.deck-b .deck-seek { accent-color: #c9a227; }

.deck-time-row { display: flex; justify-content: space-between; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.deck-transport { display: flex; gap: 6px; width: 100%; align-items: center; }

.deck-transport-btn { flex: 0 0 36px; height: 36px; border: 1px solid var(--btn-border); background: rgba(0, 0, 0, 0.35); color: var(--text-secondary); font-size: 10px; font-weight: 800; cursor: pointer; transition: all 0.2s; }

.deck-transport-btn:hover:not(:disabled) { border-color: currentColor; }

.deck-a .deck-transport-btn:hover:not(:disabled) { color: #c0c8d4; }

.deck-b .deck-transport-btn:hover:not(:disabled) { color: #e8c547; }

.deck-transport-btn:disabled { opacity: 0.2; cursor: not-allowed; pointer-events: none; }

.deck-controls { display: flex; gap: 8px; width: 100%; flex: 1; }

.deck-btn { flex: 1; height: 40px; border: 2px solid; border-radius: 2px; cursor: pointer; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; transition: all 0.2s ease; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: rgba(0, 0, 0, 0.35); }

.deck-a .deck-btn.play-btn { border-color: rgba(176, 190, 206, 0.75); color: #dce4ee; }

.deck-a .deck-btn.play-btn:hover:not(:disabled) { background: rgba(176, 190, 206, 0.22); box-shadow: 0 0 14px rgba(148, 163, 184, 0.35); }

.deck-a .deck-btn.play-btn.is-active { background: rgba(176, 190, 206, 0.28); box-shadow: 0 0 18px rgba(148, 163, 184, 0.4); }

.deck-a .deck-btn.pause-btn { border-color: #3f3f46; color: #71717a; }

.deck-a .deck-btn.pause-btn:hover:not(:disabled) { border-color: #c0c8d4; color: #c0c8d4; }

.deck-a .deck-btn.pause-btn.is-active { border-color: #c0c8d4; color: #eef2f7; background: rgba(148, 163, 184, 0.15); }

.deck-b .deck-btn.play-btn { border-color: rgba(201, 162, 39, 0.75); color: #f0d060; }

.deck-b .deck-btn.play-btn:hover:not(:disabled) { background: rgba(201, 162, 39, 0.18); box-shadow: 0 0 14px rgba(201, 162, 39, 0.35); }

.deck-b .deck-btn.play-btn.is-active { background: rgba(201, 162, 39, 0.22); box-shadow: 0 0 18px rgba(201, 162, 39, 0.42); }

.deck-b .deck-btn.pause-btn { border-color: #3f3f46; color: #71717a; }

.deck-b .deck-btn.pause-btn:hover:not(:disabled) { border-color: #e8c547; color: #e8c547; }

.deck-b .deck-btn.pause-btn.is-active { border-color: #e8c547; color: #fff3c4; background: rgba(201, 162, 39, 0.14); }

.deck-status { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; min-height: 14px; color: var(--text-secondary); text-align: center; }

.deck-check { display: none; font-size: 9px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.deck-a .deck-check { color: #c0c8d4; }

.deck-b .deck-check { color: #e8c547; }

.deck-check.is-done { display: block; }

.battle-modal-timer { display: none; text-align: center; font-size: 12px; color: var(--text-secondary); font-weight: 700; margin: 16px 0 4px; letter-spacing: 2px; text-transform: uppercase; }

.battle-modal-timer.is-active { display: block; }

.battle-modal-timer .timer-value { display: block; font-size: 32px; color: var(--neon-magenta); margin-top: 4px; text-shadow: 0 0 12px rgba(255, 0, 85, 0.55); }

.battle-modal-timer .timer-deck { color: var(--text-color, var(--text-bright)); }

#voting-zone { display: none; flex-direction: column; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px dashed rgba(255, 0, 85, 0.35); }

#voting-zone.is-visible { display: flex; }

#voting-zone .vote-hint { text-align: center; font-size: 10px; color: var(--text-secondary); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }

@keyframes hot-list-flash {
  0% { box-shadow: 0 0 8px rgba(255, 145, 0, 0.12); transform: scale(1); }
  100% { box-shadow: 0 0 18px rgba(255, 213, 74, 0.35); transform: scale(1.01); }
}

#robot-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--overlay-bg); display: flex; align-items: center; justify-content: center; z-index: 9999; }

.bug-report-fab {
   position: fixed;
   right: 16px;
   bottom: 16px;
   z-index: 9990;
   border: 1px solid rgba(255, 0, 85, 0.65);
   background: rgba(12, 8, 14, 0.92);
   color: #ff8fab;
   box-shadow: 0 0 18px rgba(255, 0, 85, 0.25);
   padding: 10px 14px;
   font-size: 10px;
   font-weight: 800;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   cursor: pointer;
 }

.bug-report-fab:hover {
   border-color: var(--neon-cyan);
   color: var(--neon-cyan);
   box-shadow: 0 0 22px rgba(0, 240, 255, 0.25);
 }

.bug-report-modal {
   position: fixed;
   inset: 0;
   z-index: 10030;
   display: none;
   align-items: center;
   justify-content: center;
   padding: 20px;
   background: var(--overlay-bg);
 }

.bug-report-modal.is-open { display: flex; }

.bug-report-panel {
   width: min(520px, 100%);
   border: 2px solid rgba(255, 0, 85, 0.55);
   background: linear-gradient(180deg, rgba(255, 0, 85, 0.08), rgba(8, 8, 12, 0.98));
   box-shadow: 0 0 40px rgba(255, 0, 85, 0.2);
   padding: 22px 20px 18px;
   box-sizing: border-box;
 }

.bug-report-title {
   font-size: 12px;
   font-weight: 900;
   letter-spacing: 0.12em;
   text-transform: uppercase;
   color: #ff8fab;
   margin-bottom: 10px;
 }

.bug-report-warning {
   font-size: 13px;
   line-height: 1.55;
   color: var(--text-secondary);
   margin-bottom: 16px;
 }

.bug-report-field { margin-bottom: 12px; }

.bug-report-label {
   display: block;
   font-size: 9px;
   font-weight: 800;
   letter-spacing: 0.1em;
   text-transform: uppercase;
   color: var(--neon-cyan);
   margin-bottom: 6px;
 }

.bug-report-textarea,
 .bug-report-input {
   width: 100%;
   box-sizing: border-box;
   border: 1px solid var(--border-color);
   background: rgba(0, 0, 0, 0.35);
   color: var(--text-bright);
   padding: 10px 12px;
   font-size: 13px;
   line-height: 1.45;
   resize: vertical;
 }

.bug-report-textarea { min-height: 120px; }

.bug-report-actions {
   display: flex;
   gap: 10px;
   margin-top: 14px;
 }

.bug-report-actions button {
   flex: 1;
   border: 1px solid var(--btn-border);
   background: transparent;
   color: var(--text-secondary);
   padding: 11px 10px;
   font-size: 10px;
   font-weight: 800;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   cursor: pointer;
 }

.bug-report-actions .bug-report-send {
   border-color: var(--neon-cyan);
   color: var(--neon-cyan);
 }

.bug-report-status {
   min-height: 16px;
   margin-top: 10px;
   font-size: 11px;
   color: var(--neon-cyan);
 }

.bug-report-status.is-error { color: #ff8fab; }

@keyframes bush-shake {
  0% { transform: translate(0, 0) rotate(0deg); text-shadow: 0 0 3px rgba(255,170,0,0.4); }
  20% { transform: translate(-1px, 0px) rotate(-0.3deg); }
  40% { transform: translate(1px, -1px) rotate(0.3deg); }
  60% { transform: translate(-1px, -1px) rotate(-0.3deg); }
  80% { transform: translate(1px, 0px) rotate(0.3deg); text-shadow: 0 0 8px rgba(255,170,0,0.6); }
  100% { transform: translate(0, 0) rotate(0deg); }
 }

.arena-chat-panel {
  width: 100%;
  height: 380px;
  max-height: 380px;
  box-sizing: border-box;
  margin: 0 0 var(--gap-block) 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #0a0a0c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
}

.arena-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  flex: 0 0 auto;
}

.arena-chat-title {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d4d4d8;
}

.arena-chat-status {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(161, 161, 170, 0.85);
}

.arena-chat-status.is-error { color: #fca5a5; }

.arena-chat-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(113, 113, 122, 0.55) transparent;
}

.arena-chat-log::-webkit-scrollbar { width: 6px; }

.arena-chat-log::-webkit-scrollbar-thumb { background: rgba(113, 113, 122, 0.45); }

.arena-chat-line {
  display: block;
  margin: 0 0 6px;
}

.arena-chat-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.arena-chat-quote {
  display: block;
  margin: 0 0 3px 18px;
  padding-left: 8px;
  border-left: 2px solid rgba(113, 113, 122, 0.45);
  color: rgba(161, 161, 170, 0.9);
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arena-chat-quote-mark { margin-right: 4px; color: rgba(161, 161, 170, 0.75); }

.arena-chat-quote-user { font-weight: 700; margin-right: 4px; }

.arena-chat-quote-text { color: rgba(212, 212, 216, 0.72); }

.arena-chat-time {
  color: #cbd5e1;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(203, 213, 225, 0.35);
  flex: 0 0 auto;
}

.arena-chat-nick {
  font-weight: 700;
  margin-right: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-transform: none;
}

.arena-chat-nick:hover { text-decoration: underline; }

.arena-chat-text { color: #e4e4e7; flex: 1 1 auto; min-width: 0; white-space: pre-wrap; word-break: break-word; }

.arena-chat-reply-btn {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: rgba(161, 161, 170, 0.85);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.arena-chat-line:hover .arena-chat-reply-btn,
.arena-chat-reply-btn:focus { opacity: 1; color: #bae6fd; }

@media (hover: none) {
  .arena-chat-reply-btn { opacity: 0.55; }
}

.arena-chat-reply {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(14, 116, 144, 0.12);
  flex: 0 0 auto;
}

.arena-chat-reply-label {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bae6fd;
}

.arena-chat-reply-preview {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 10px;
  color: rgba(212, 212, 216, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arena-chat-reply-cancel {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: rgba(161, 161, 170, 0.95);
  font: inherit;
  cursor: pointer;
  padding: 0 4px;
}

.arena-chat-reply-cancel:hover { color: #fca5a5; }

.arena-chat-empty {
  color: rgba(161, 161, 170, 0.75);
  text-align: center;
  padding: 24px 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
}

.arena-chat-compose {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  flex: 0 0 auto;
  background: rgba(0, 0, 0, 0.22);
}

.arena-chat-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid rgba(113, 113, 122, 0.45);
  background: #050507;
  color: #f4f4f5;
  padding: 6px 8px;
  font: inherit;
  outline: none;
}

.arena-chat-input:focus {
  border-color: rgba(125, 211, 252, 0.65);
}

.arena-chat-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.arena-chat-send {
  flex: 0 0 auto;
  border: 1px solid rgba(125, 211, 252, 0.55);
  background: rgba(14, 116, 144, 0.18);
  color: #bae6fd;
  padding: 6px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.arena-chat-send:disabled { opacity: 0.45; cursor: not-allowed; }

html.light .arena-chat-panel { background: #f4f4f5; border-color: rgba(63, 63, 70, 0.25); }

html.light .arena-chat-text { color: #27272a; }

html.light .arena-chat-time { color: #52525b; text-shadow: none; font-weight: 700; }

html.light .arena-chat-input { background: #fff; color: #18181b; }
