/* KING OF BATALYOS — Tournament Tree V1 (Stage B Visual Prototype & Scalable Architecture)
 * Dark medical-futuristic tournament arena, metallic silver frames, deep navy surfaces,
 * controlled icy-blue lighting, and dynamic 2-wing symmetrical bracket stage. */

.war-tree-section {
  position: relative;
  border: 1px solid rgba(154, 196, 232, 0.38);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(28, 128, 196, 0.22), transparent 52%),
    linear-gradient(180deg, #060d18 0%, #050a13 100%);
  color: #edf5ff;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.82),
    0 0 55px rgba(0, 174, 255, 0.14),
    inset 0 1px 0 rgba(214, 236, 255, 0.22);
  overflow: hidden;
}

.war-tree-header {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(132, 188, 235, 0.28);
  background:
    linear-gradient(180deg, rgba(6, 13, 24, 0.98) 0%, rgba(5, 11, 20, 0.99) 100%),
    url('./assets/arena-bracket-atlas-v4.webp') center / cover no-repeat;
  overflow: hidden;
}

/* ==========================================================================
   TOURNAMENT HEADER V2 — UPPER HERO COMPOSITION (1024 x 274 Desktop Aspect)
   ========================================================================== */
.kob-header-v2-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 274;
  direction: ltr;
  overflow: hidden;
  background: #060d18;
}

.kob-header-v2-backdrop {
  position: absolute;
  inset: 0;
  background: url('./assets/battle-lobby/tournament/kob-header-v2-backdrop-clean.png') center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 1;
  transform: none !important;
}

.kob-header-v2-center {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* Official BATALYOS Brand Lockup (aligned beside the backdrop's small helmet+P emblem at x=380..470) */
.kob-header-v2-brand {
  position: absolute;
  left: 46.0%;
  width: 18.2%;
  top: 29.8%;
  height: 20.0%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  direction: ltr;
}

.kob-header-helmet-icon {
  display: none;
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 198, 255, 0.45));
}

.kob-header-v2-brand-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.kob-header-wordmark {
  width: 100%;
  max-width: 245px;
  height: clamp(18px, 2.25vw, 31px);
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.92));
}

.kob-header-descriptor {
  margin-top: 2px;
  color: #b7c6d8;
  font-family: "Space Grotesk", "Alexandria", sans-serif;
  font-size: clamp(6.5px, 0.66vw, 9.5px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

/* Dynamic Single-Language Tournament Title & Supporting Title (y=142..203 of 274) */
.kob-header-v2-titles {
  position: absolute;
  left: 34.4%;
  width: 34.8%;
  top: 51.5%;
  height: 22.8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.kob-header-v2-title {
  margin: 0;
  padding: 0 4px;
  font-family: "Cinzel", "Alexandria", "Noto Naskh Arabic", serif;
  font-size: clamp(17px, 2.35vw, 33px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #ffffff 0%, #e4ebf5 28%, #9fb0c7 52%, #f5e2be 78%, #b39268 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 12px rgba(0, 198, 255, 0.42))
    drop-shadow(0 2px 5px rgba(0, 0, 0, 0.95));
  white-space: nowrap;
}

.kob-header-v2-titles[dir="rtl"] .kob-header-v2-title {
  font-family: "Alexandria", "Noto Naskh Arabic", sans-serif;
  letter-spacing: 0;
  font-size: clamp(17px, 2.2vw, 31px);
}

.kob-header-v2-subtitle {
  margin: 3px 0 0;
  color: #c8d4e3;
  font-family: "Space Grotesk", "Alexandria", sans-serif;
  font-size: clamp(8.5px, 0.95vw, 13.5px);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
}

.kob-header-v2-titles[dir="rtl"] .kob-header-v2-subtitle {
  letter-spacing: 0.04em;
  font-size: clamp(10px, 1.05vw, 14.5px);
  color: #d8e6f6;
}

/* Lower Meta & Motto Below the Metallic Divider (y=214..256 of 274) */
.kob-header-v2-lower-meta {
  position: absolute;
  left: 38.0%;
  width: 27.6%;
  top: 78.2%;
  height: 16.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}

.war-specialty-insignia {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 1px 9px;
  border: 1px solid rgba(0, 198, 255, 0.36);
  border-radius: 999px;
  background: rgba(8, 24, 46, 0.72);
  color: #bae6fd;
  line-height: 1.2;
}

.war-specialty-insignia > span {
  color: #00c6ff;
  font-size: clamp(8px, 0.72vw, 10.5px);
}

.war-specialty-insignia strong {
  color: #e6f2ff;
  font-family: "Alexandria", "Space Grotesk", sans-serif;
  font-size: clamp(8px, 0.76vw, 11px);
  font-weight: 700;
}

.kob-header-v2-motto {
  margin: 0;
  color: #b8c7d9;
  font-family: "Alexandria", "Space Grotesk", sans-serif;
  font-size: clamp(7.5px, 0.75vw, 10.5px);
  font-weight: 600;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
}

/* Four Compact Premium Statistic Panels (aligned to x=736..997, y=173..250 of 1024x274) */
.war-bracket-stats.kob-header-v2-stats {
  position: absolute;
  left: 71.88%;
  width: 25.49%;
  top: 63.14%;
  height: 28.10%;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.55%;
  direction: ltr;
}

.war-bracket-stats.kob-header-v2-stats > .kob-stat-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  padding: 0 2px 5%;
  border: none;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.kob-stat-panel .kob-stat-icon {
  display: none;
  width: 26px;
  height: 22px;
  object-fit: contain;
  margin-bottom: 3px;
}

.war-bracket-stats.kob-header-v2-stats b {
  color: #f4f9ff;
  font-family: "Space Grotesk", "Alexandria", sans-serif;
  font-size: clamp(10px, 1.08vw, 15.5px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 198, 255, 0.28);
  white-space: nowrap;
}

.war-bracket-stats.kob-header-v2-stats .kob-stat-label {
  margin-top: 2px;
  color: #b7cde3;
  font-family: "Alexandria", "Space Grotesk", sans-serif;
  font-size: clamp(6.5px, 0.64vw, 9px);
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

/* ==========================================================================
   TOURNAMENT HEADER V2 — LOWER NAVIGATION DECK (Round Ribbon + Path Stepper)
   Matches y=274..357 of the approved Header V2 reference
   ========================================================================== */
.kob-header-v2-navdeck {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(56, 189, 248, 0.32);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 198, 255, 0.16), transparent 58%),
    linear-gradient(180deg, #071222 0%, #050b15 100%);
  box-shadow:
    inset 0 1px 0 rgba(165, 224, 255, 0.22),
    0 8px 20px rgba(0, 0, 0, 0.55);
  direction: ltr;
}

.kob-nav-step-btn,
.kob-nav-utility-btn {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(130, 174, 214, 0.42);
  border-radius: 7px;
  background: linear-gradient(180deg, #0e1e36 0%, #071120 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 10px rgba(0, 0, 0, 0.5);
  color: #38bdf8;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.kob-nav-step-btn:hover,
.kob-nav-utility-btn:hover,
.kob-nav-utility-btn.is-active {
  border-color: #00c6ff;
  color: #7dd3fc;
  box-shadow: 0 0 12px rgba(0, 198, 255, 0.35), inset 0 0 8px rgba(0, 198, 255, 0.18);
}

/* Qualification Path Stepper (< المسار 01 / Path 01 >) */
.kob-path-stepper {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: stretch;
  height: 34px;
  border: 1px solid rgba(138, 182, 224, 0.48);
  border-radius: 8px;
  background: linear-gradient(180deg, #0d1c32 0%, #060f1d 100%);
  box-shadow:
    inset 0 1px 0 rgba(214, 236, 255, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  direction: ltr;
}

.kob-path-stepper__arrow {
  width: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  background: rgba(16, 36, 64, 0.65);
  color: #58d5ff;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.kob-path-stepper__arrow:hover {
  background: rgba(24, 58, 98, 0.88);
  color: #a5f3fc;
}

.kob-path-stepper__current {
  min-width: 82px;
  padding: 0 12px;
  border: none;
  border-left: 1px solid rgba(130, 174, 214, 0.24);
  border-right: 1px solid rgba(130, 174, 214, 0.24);
  background: rgba(7, 16, 30, 0.92);
  color: #eef6ff;
  font-family: "Alexandria", "Space Grotesk", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}

.kob-path-stepper__current:hover,
.kob-path-stepper__current.is-open {
  background: rgba(16, 42, 76, 0.92);
  color: #7dd3fc;
}

/* Integrated Compact Level Switcher inside .war-tree-toolbar */
.kob-level-switcher {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.kob-level-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(148, 184, 218, 0.32);
  border-radius: 7px;
  background: linear-gradient(145deg, #0d1b30, #081120);
  color: #c8ddf0;
  cursor: pointer;
  text-align: start;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.kob-level-btn:hover {
  border-color: rgba(86, 204, 242, 0.72);
}

.kob-level-btn.is-active {
  border-color: #00c6ff;
  background: linear-gradient(145deg, #102a49, #0a192f);
  box-shadow: 0 0 14px rgba(0, 198, 255, 0.28), inset 0 0 8px rgba(0, 198, 255, 0.16);
  color: #ffffff;
}

.kob-level-code {
  padding: 2px 6px;
  border: 1px solid rgba(125, 211, 252, 0.45);
  border-radius: 4px;
  background: rgba(14, 116, 144, 0.28);
  color: #7dd3fc;
  font: 700 9px "Space Grotesk", sans-serif;
  letter-spacing: 0.05em;
}

.kob-level-btn strong {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* 16 Qualification Paths Bar (.war-sectors) */
.war-sectors {
  display: flex;
  gap: 9px;
  padding: 12px 20px;
  overflow: auto;
  scroll-snap-type: x proximity;
  scrollbar-color: #29628b #09121e;
  border-bottom: 1px solid rgba(132, 188, 235, 0.2);
  background: rgba(6, 12, 22, 0.96);
}

.war-sectors[hidden] {
  display: none !important;
}

.war-sector {
  position: relative;
  overflow: hidden;
  flex: 0 0 168px;
  display: grid;
  gap: 3px;
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 184, 218, 0.34);
  border-radius: 10px;
  background: linear-gradient(135deg, #102038 0%, #091322 95%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.5);
  color: #d6e6f5;
  text-align: start;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.war-sector::after {
  position: absolute;
  left: auto;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  content: "";
  background: linear-gradient(180deg, #38bdf8, #1d4ed8);
  opacity: 0.65;
}

.war-sector:hover {
  transform: translateY(-2px);
  border-color: #7dd3fc;
}

.war-sector.active {
  border-color: #38bdf8;
  background: linear-gradient(135deg, #14355b 0%, #0d213a 100%);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.42), inset 0 1px rgba(255, 255, 255, 0.32);
}

.war-sector.active::after {
  opacity: 1;
  background: linear-gradient(180deg, #7dd3fc, #38bdf8);
}

.war-sector span {
  color: #7dd3fc;
  font: 700 10px "Alexandria", "Space Grotesk", sans-serif;
  letter-spacing: 0.06em;
}

.war-sector b {
  font-size: 12px;
  color: #f4f9ff;
}

.war-sector small {
  color: #93b0ca;
  font-size: 9.5px;
}

/* Toolbar (.war-tree-toolbar) */
.war-tree-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 24px;
  border-top: 1px solid rgba(132, 188, 235, 0.2);
  border-bottom: 1px solid rgba(132, 188, 235, 0.2);
  background: #081221;
  color: #b8d4ec;
  font-size: 11px;
}

.kob-toolbar-status {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kob-toolbar-champ-note {
  color: #f6c453;
  font-size: 10px;
  font-weight: 600;
}

.kob-toolbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.kob-quadrant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.kob-quadrant-pill {
  padding: 5px 10px;
  border: 1px solid rgba(140, 182, 222, 0.35);
  border-radius: 7px;
  background: #0c1b30;
  color: #b9d5ee;
  font: 600 10.5px "Alexandria", "Space Grotesk", sans-serif;
  cursor: pointer;
}

.kob-quadrant-pill.is-active {
  border-color: #38bdf8;
  background: #133458;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.kob-search-box input {
  min-width: 185px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(140, 182, 222, 0.38);
  border-radius: 7px;
  background: #06101e;
  color: #eff7ff;
  font: 500 11px "Alexandria", sans-serif;
}

.kob-search-box input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.kob-status-legend {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(132, 188, 235, 0.24);
  border-radius: 8px;
  background: rgba(6, 15, 28, 0.82);
}

.kob-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 600 10px "Alexandria", "Space Grotesk", sans-serif;
  color: #c6dcf2;
  white-space: nowrap;
}

.kob-legend-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
}

.kob-legend-item.is-qualified i {
  background: rgba(245, 196, 83, 0.22);
  border: 1px solid #f5c453;
  color: #fde68a;
}

.kob-legend-item.is-active i {
  background: rgba(56, 189, 248, 0.22);
  border: 1px solid #38bdf8;
  color: #7dd3fc;
}

.kob-legend-item.is-waiting i {
  background: rgba(125, 211, 252, 0.14);
  border: 1px dashed rgba(125, 211, 252, 0.6);
  color: #bae6fd;
}

.kob-legend-item.is-eliminated i {
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #94a3b8;
}

.kob-focus-me-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(88, 213, 255, 0.58);
  border-radius: 7px;
  background: linear-gradient(145deg, #13375e, #0a1d35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 10px rgba(0, 198, 255, 0.18);
  color: #e0f2fe;
  font: 700 10.5px "Alexandria", "Space Grotesk", sans-serif;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.kob-focus-me-btn:hover,
.kob-focus-me-btn:focus-visible {
  outline: none;
  border-color: #7ce7ff;
  background: linear-gradient(145deg, #19487a, #0e2747);
  box-shadow: 0 0 14px rgba(56, 206, 255, 0.45);
}

.kob-focus-me-btn__icon {
  color: #58d5ff;
  flex: none;
}

.kob-my-position-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(88, 213, 255, 0.32);
  background: linear-gradient(90deg, rgba(10, 32, 58, 0.95), rgba(7, 19, 36, 0.95));
  color: #e2f1ff;
  font-family: "Alexandria", "Space Grotesk", sans-serif;
}

.kob-my-position-banner.is-found {
  border-bottom-color: rgba(0, 229, 255, 0.55);
  background: linear-gradient(90deg, rgba(8, 44, 74, 0.96), rgba(9, 24, 44, 0.96));
}

.kob-my-position-banner.is-unregistered {
  border-bottom-color: rgba(245, 196, 83, 0.45);
  background: linear-gradient(90deg, rgba(42, 31, 14, 0.92), rgba(12, 21, 36, 0.95));
}

.kob-my-position-banner.is-not-implemented {
  border-bottom-color: rgba(245, 196, 83, 0.5);
  background: linear-gradient(90deg, rgba(38, 28, 14, 0.94), rgba(10, 19, 34, 0.96));
}

.kob-my-position-banner__body {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.kob-my-position-banner__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(88, 213, 255, 0.45);
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.kob-my-position-banner.is-unregistered .kob-my-position-banner__badge,
.kob-my-position-banner.is-not-implemented .kob-my-position-banner__badge {
  background: rgba(245, 196, 83, 0.16);
  border-color: rgba(245, 196, 83, 0.52);
  color: #fde68a;
}

.kob-my-position-banner__body p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #d8ecff;
}

.kob-my-position-banner__body strong {
  color: #fde68a;
}

.kob-my-position-banner__close {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(148, 184, 218, 0.35);
  border-radius: 6px;
  background: rgba(12, 26, 46, 0.85);
  color: #cbe2f8;
  cursor: pointer;
  flex: none;
}

.war-tree-controls {
  display: flex;
  gap: 6px;
}

.war-tree-controls button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(140, 182, 222, 0.45);
  border-radius: 7px;
  background: #0d1f36;
  color: #e0f2fe;
  font-size: 17px;
  cursor: pointer;
}

.war-tree-controls button:hover {
  border-color: #38bdf8;
  background: #16375e;
}

/* Level A — Overview Panel */
.kob-level-overview {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(132, 188, 235, 0.24);
  background: radial-gradient(circle at 50% 0%, rgba(26, 114, 178, 0.18), transparent 65%), #07101d;
}

.kob-overview-banner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(140, 186, 228, 0.3);
  border-radius: 14px;
  background: rgba(10, 22, 40, 0.85);
}

.kob-overview-kicker {
  color: #7dd3fc;
  font: 700 10px "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
}

.kob-overview-copy h3 {
  margin: 6px 0 8px;
  font-size: 18px;
  color: #f4f9ff;
}

.kob-overview-copy p {
  margin: 0;
  color: #9ec0dc;
  font-size: 11.5px;
  line-height: 1.75;
}

.kob-overview-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.kob-metric-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 10px;
  background: #0b182c;
}

.kob-metric-card b {
  color: #7dd3fc;
  font: 700 18px "Space Grotesk", sans-serif;
}

.kob-metric-card span {
  color: #b6d0e7;
  font-size: 10px;
}

.kob-overview-paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.kob-overview-path-card {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(140, 182, 222, 0.3);
  border-radius: 10px;
  background: linear-gradient(145deg, #0d1c31, #081220);
  color: #dbeafe;
  text-align: start;
  cursor: pointer;
}

.kob-overview-path-card.is-active {
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.28);
}

.kob-overview-path-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #7dd3fc;
}

.kob-overview-path-champ {
  color: #f6c453;
  font-size: 9.5px;
}

/* ==========================================================================
   MAIN KING OF BATALYOS ARENA STAGE (.war-tree-scroll > .kob-stage-canvas > .kob-arena-stage)
   Matches the approved 1024 x 437 visual reference composition dynamically
   ========================================================================== */
.war-tree-scroll {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scrollbar-color: #2c699a #070e19;
  direction: ltr;
  background: #040912;
}

.war-tree-scroll:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: -4px;
}

.war-tree-canvas.kob-stage-canvas {
  position: relative;
  width: 100%;
  min-width: 1120px;
  margin: 0 auto;
}

.kob-arena-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1846 / 852;
  transform-origin: top center;
  transform: scale(var(--war-zoom, 1));
  background: linear-gradient(180deg, #0c1d36 0%, #071224 100%);
  overflow: hidden;
  user-select: none;
  direction: ltr;
}

/* Layer A: Approved V3 Bright Silver Cathedral & Helmet Background Artwork (1846 x 852 native proportion)
   Replaces legacy dark background (kob-arena-backdrop-clean.png) while preserving 100% of the approved silver atmosphere.
   Uses HTML <picture> for art-directed Desktop V3 vs Mobile V4 loading without duplicate downloads. */
.kob-stage-backdrop {
  position: absolute;
  inset: 0;
  background-color: #0b1a30;
  --kob-v3-desktop-ref: url('./assets/battle-lobby/tournament/kob-arena-v3-backdrop.png');
  background-image: none;
  background-position: center center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.kob-stage-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.kob-stage-backdrop-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center center;
}

/* Hide mobile-only focused bracket helpers on desktop (> 768px) */
.kob-mobile-focus-banner,
.kob-mobile-wing-heading,
.kob-mobile-pair-connector,
.kob-mobile-advancement-row {
  display: none;
}

/* Original SVG Icon Alignment */
.kob-orig-icon,
.kob-nav-icon-svg,
.kob-btn-svg,
.kob-zoom-svg,
.kob-level-btn__icon,
.kob-specialty-icon,
.kob-crown-pedestal-icon,
.kob-banner-icon {
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  flex-shrink: 0;
}

.kob-status-dot-svg,
.kob-legend-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.kob-search-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.kob-search-box__icon {
  position: absolute;
  inset-inline-start: 9px;
  pointer-events: none;
  opacity: 0.85;
}

.kob-search-box input {
  padding-inline-start: 28px !important;
}

/* Layer E: Dynamic Illuminated Cyan-Blue SVG Bracket Connectors with Localized Edge Contrast */
.kob-stage-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.kob-stage-connections .kob-conn {
  fill: none;
  stroke: #38d9ff;
  stroke-width: 2.55;
  stroke-linecap: square;
  stroke-linejoin: miter;
  opacity: 0.96;
  transition: stroke 0.2s, stroke-width 0.2s, opacity 0.2s;
}

.kob-stage-connections .kob-conn.is-active {
  stroke: #7ef0ff;
  stroke-width: 3.0;
  opacity: 1;
}

/* Layer F: Angular Geometric Metallic Round Ribbon (.kob-round-ribbon inside .kob-header-v2-navdeck) */
.kob-round-ribbon {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  z-index: 5;
  direction: ltr;
}

.kob-round-tab {
  position: relative;
  flex: 1 1 0;
  min-width: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 2px 14px 2px 18px;
  border: none;
  background: transparent;
  color: #dbe8f6;
  cursor: pointer;
  isolation: isolate;
  transition: color 0.18s, filter 0.18s;
}

.kob-round-tab.is-first-tab {
  padding-left: 14px;
}

.kob-round-tab__shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: visible;
}

.kob-round-tab__plate {
  fill: rgba(10, 20, 36, 0.94);
  stroke: rgba(132, 168, 204, 0.42);
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
  transition: fill 0.18s, stroke 0.18s, filter 0.18s;
}

.kob-round-tab:hover .kob-round-tab__plate {
  stroke: rgba(0, 198, 255, 0.78);
  fill: rgba(14, 30, 54, 0.96);
}

.kob-round-tab.is-active .kob-round-tab__plate {
  fill: rgba(13, 46, 86, 0.96);
  stroke: #00c6ff;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(0, 198, 255, 0.72));
}

.kob-round-tab.is-final-tab .kob-round-tab__plate {
  fill: rgba(20, 22, 32, 0.95);
  stroke: #d4af7c;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 6px rgba(212, 175, 124, 0.35));
}

.kob-round-tab.is-final-tab.is-active .kob-round-tab__plate {
  stroke: #f6d38b;
  stroke-width: 2.1;
  filter: drop-shadow(0 0 10px rgba(246, 211, 139, 0.7));
}

.kob-ribbon-crown {
  width: clamp(22px, 2.1vw, 29px);
  height: auto;
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 0 6px rgba(212, 175, 124, 0.65));
}

.kob-round-tab__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  text-align: center;
}

.kob-round-tab__text strong {
  color: #c8d6e6;
  font-family: "Alexandria", "Space Grotesk", "Noto Naskh Arabic", sans-serif;
  font-size: clamp(10.5px, 1.02vw, 13.5px);
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.kob-round-tab.is-active .kob-round-tab__text strong {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 198, 255, 0.55);
}

.kob-round-tab.is-final-tab .kob-round-tab__text strong {
  color: #e9c486;
}

.kob-ribbon-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 12px;
  margin: 0 -3px;
  color: #00c6ff;
  filter: drop-shadow(0 0 6px rgba(0, 198, 255, 0.85));
  pointer-events: none;
  z-index: 6;
}

.kob-ribbon-chevron svg {
  width: 11px;
  height: 24px;
}

/* ==========================================================================
   TOURNAMENT FIGHTER CARDS V2 (.kob-fighter-card[data-kob-card="v2"])
   Medical-combat profile card design with chamfered silver-navy-gold-cyan frame,
   octagonal portrait frame + bottom-center caduceus emblem, and 6 distinct states
   ========================================================================== */
.kob-wing {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.kob-fighter-card {
  position: absolute;
  width: 12.70%;
  height: 8.92%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 27% 51% 22%;
  align-items: center;
  padding: 2.5px 5px;
  border: none;
  border-radius: 5px;
  background: transparent;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.82);
  color: #f4f8ff;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  overflow: visible;
  isolation: isolate;
  direction: ltr;
  transition: transform 0.16s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

/* Chamfered Metallic SVG Card Frame */
.kob-card-frame-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.kob-card-frame__plate {
  fill: rgba(9, 19, 35, 0.96);
  stroke: #b9cde2;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
  transition: fill 0.18s ease, stroke 0.18s ease;
}

.kob-card-frame__bevel {
  fill: rgba(12, 26, 47, 0.68);
  stroke: rgba(162, 196, 228, 0.36);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: fill 0.18s ease, stroke 0.18s ease;
}

.kob-card-frame__corners {
  fill: none;
  stroke: #d4af7c;
  stroke-width: 2.2;
  stroke-linecap: square;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.18s ease;
}

.kob-card-frame__glow-top,
.kob-card-frame__glow-bot {
  stroke: rgba(88, 213, 255, 0.72);
  stroke-width: 1.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.18s ease, stroke-width 0.18s ease;
}

/* Hover & Keyboard Focus */
.kob-fighter-card:hover,
.kob-fighter-card:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.85),
    0 0 15px rgba(56, 206, 255, 0.48);
  z-index: 7;
}

.kob-fighter-card:hover .kob-card-frame__plate,
.kob-fighter-card:focus-visible .kob-card-frame__plate {
  stroke: #8ce9ff;
  fill: rgba(13, 29, 52, 0.98);
}

.kob-fighter-card:hover .kob-card-frame__glow-top,
.kob-fighter-card:hover .kob-card-frame__glow-bot,
.kob-fighter-card:focus-visible .kob-card-frame__glow-top,
.kob-fighter-card:focus-visible .kob-card-frame__glow-bot {
  stroke: #a5f3fc;
  stroke-width: 2.1;
}

/* State: SELECTED (محدد / Selected) */
.kob-fighter-card.is-selected,
.kob-fighter-card.is-state-selected {
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.86),
    0 0 16px rgba(56, 206, 255, 0.56),
    0 0 8px rgba(245, 196, 83, 0.35);
  z-index: 6;
}

.kob-fighter-card.is-selected .kob-card-frame__plate,
.kob-fighter-card.is-state-selected .kob-card-frame__plate {
  fill: rgba(14, 34, 62, 0.98);
  stroke: #7ce7ff;
  stroke-width: 2.2;
}

.kob-fighter-card.is-selected .kob-card-frame__corners,
.kob-fighter-card.is-state-selected .kob-card-frame__corners {
  stroke: #f6d38b;
}

.kob-fighter-card.is-selected .kob-card-frame__glow-top,
.kob-fighter-card.is-selected .kob-card-frame__glow-bot,
.kob-fighter-card.is-state-selected .kob-card-frame__glow-top,
.kob-fighter-card.is-state-selected .kob-card-frame__glow-bot {
  stroke: #00e5ff;
  stroke-width: 2.3;
}

/* State: QUALIFIED (متأهل / Qualified) */
.kob-fighter-card.is-qualified,
.kob-fighter-card.is-state-qualified {
  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.84),
    0 0 14px rgba(245, 196, 83, 0.38);
}

.kob-fighter-card.is-qualified .kob-card-frame__plate,
.kob-fighter-card.is-state-qualified .kob-card-frame__plate {
  fill: rgba(16, 27, 45, 0.97);
  stroke: #e7c173;
}

.kob-fighter-card.is-qualified .kob-card-frame__corners,
.kob-fighter-card.is-state-qualified .kob-card-frame__corners {
  stroke: #fde68a;
}

.kob-fighter-card.is-qualified .kob-card-frame__glow-top,
.kob-fighter-card.is-qualified .kob-card-frame__glow-bot,
.kob-fighter-card.is-state-qualified .kob-card-frame__glow-top,
.kob-fighter-card.is-state-qualified .kob-card-frame__glow-bot {
  stroke: #f5c453;
}

/* State: WAITING (معلق / Waiting) */
.kob-fighter-card.is-pending-slot,
.kob-fighter-card.is-state-waiting {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.78);
}

.kob-fighter-card.is-pending-slot .kob-card-frame__plate,
.kob-fighter-card.is-state-waiting .kob-card-frame__plate {
  fill: rgba(8, 16, 30, 0.95);
  stroke: rgba(126, 166, 204, 0.62);
}

.kob-fighter-card.is-pending-slot .kob-card-frame__corners,
.kob-fighter-card.is-state-waiting .kob-card-frame__corners {
  stroke: rgba(186, 158, 114, 0.68);
}

/* State: ELIMINATED (خاسر / Eliminated) */
.kob-fighter-card.is-eliminated,
.kob-fighter-card.is-state-eliminated {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.75);
}

.kob-fighter-card.is-eliminated .kob-card-frame__plate,
.kob-fighter-card.is-state-eliminated .kob-card-frame__plate {
  fill: rgba(11, 16, 25, 0.96);
  stroke: rgba(110, 125, 145, 0.52);
}

.kob-fighter-card.is-eliminated .kob-card-frame__bevel,
.kob-fighter-card.is-state-eliminated .kob-card-frame__bevel {
  fill: rgba(14, 20, 31, 0.6);
  stroke: rgba(100, 116, 139, 0.25);
}

.kob-fighter-card.is-eliminated .kob-card-frame__corners,
.kob-fighter-card.is-state-eliminated .kob-card-frame__corners {
  stroke: rgba(120, 130, 144, 0.45);
}

.kob-fighter-card.is-eliminated .kob-card-frame__glow-top,
.kob-fighter-card.is-eliminated .kob-card-frame__glow-bot,
.kob-fighter-card.is-state-eliminated .kob-card-frame__glow-top,
.kob-fighter-card.is-state-eliminated .kob-card-frame__glow-bot {
  stroke: rgba(100, 116, 139, 0.32);
}

.kob-fighter-card.is-eliminated .kob-fighter-portrait,
.kob-fighter-card.is-eliminated .kob-fighter-crest,
.kob-fighter-card.is-state-eliminated .kob-fighter-portrait,
.kob-fighter-card.is-state-eliminated .kob-fighter-crest {
  filter: grayscale(0.88) brightness(0.72) contrast(0.95);
}

.kob-fighter-card.is-eliminated .kob-fighter-name,
.kob-fighter-card.is-state-eliminated .kob-fighter-name {
  color: #9fb0c4;
}

.kob-fighter-card.is-eliminated .kob-fighter-uni,
.kob-fighter-card.is-state-eliminated .kob-fighter-uni {
  color: #75889e;
}

/* State: CURRENT PLAYER (موقعي / Current Logged-In Student) */
.kob-fighter-card.is-current-user,
.kob-fighter-card.is-state-current-user {
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.88),
    0 0 18px rgba(0, 229, 255, 0.65);
  z-index: 6;
}

.kob-fighter-card.is-current-user .kob-card-frame__plate,
.kob-fighter-card.is-state-current-user .kob-card-frame__plate {
  fill: rgba(10, 38, 68, 0.98);
  stroke: #00e5ff;
  stroke-width: 2.2;
}

/* Search Highlight */
.kob-fighter-card.is-search-match {
  box-shadow:
    0 0 20px rgba(250, 204, 21, 0.78),
    0 6px 14px rgba(0, 0, 0, 0.85);
  z-index: 7;
}

.kob-fighter-card.is-search-match .kob-card-frame__plate {
  stroke: #facc15;
}

/* Element A: Integrated Octagonal Student Portrait Frame + Medical Caduceus Badge */
.kob-fighter-portrait {
  position: relative;
  width: 94%;
  height: 88%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.kob-fighter-portrait__inner {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 1.5px;
  background: linear-gradient(145deg, #dce9f7 0%, #7d9ec0 50%, #c8ddf2 100%);
  clip-path: polygon(16% 0%, 84% 0%, 100% 16%, 100% 84%, 84% 100%, 16% 100%, 0% 84%, 0% 16%);
  box-shadow: inset 0 0 6px rgba(0, 198, 255, 0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kob-fighter-portrait img.kob-fighter-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  clip-path: polygon(16% 0%, 84% 0%, 100% 16%, 100% 84%, 84% 100%, 16% 100%, 0% 84%, 0% 16%);
  background: #091526;
  display: block;
}

.kob-fighter-portrait img.kob-fighter-photo.is-fallback-silhouette {
  object-fit: contain;
  object-position: center center;
  padding: 2px;
  background: radial-gradient(circle at 50% 42%, rgba(28, 92, 148, 0.45), #081323 78%);
}

.kob-portrait-emblem {
  position: absolute;
  left: 50%;
  bottom: -9%;
  transform: translateX(-50%);
  width: 36%;
  max-width: 15px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.92));
  z-index: 3;
}

/* Elements B, C, D, E: Full Name, University, Academic Group & Status */
.kob-fighter-identity {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 2px;
  line-height: 1.14;
}

.kob-fighter-name {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
  font-family: "Alexandria", "Noto Naskh Arabic", sans-serif;
  font-size: clamp(7.4px, 0.74vw, 10.2px);
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.kob-fighter-uni {
  display: block;
  width: 100%;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #bdd4ec;
  font-family: "Alexandria", "Space Grotesk", sans-serif;
  font-size: clamp(6.3px, 0.60vw, 8.5px);
  font-weight: 500;
}

.kob-fighter-meta-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 1px;
  max-width: 100%;
}

.war-tree-section .kob-fighter-group,
.kob-fighter-group {
  display: inline-block;
  color: #95b8da;
  font-family: "Space Grotesk", "Alexandria", sans-serif;
  font-size: clamp(5.8px, 0.54vw, 7.8px) !important;
  line-height: 1.08 !important;
  font-weight: 600;
  white-space: nowrap;
}

.kob-fighter-status-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  font-family: "Space Grotesk", sans-serif;
  font-size: 6.5px;
  font-weight: 800;
  line-height: 1;
  flex: none;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(88, 213, 255, 0.65);
  color: #7dd3fc;
}

.kob-fighter-status-dot.is-qualified {
  background: rgba(245, 196, 83, 0.28);
  border-color: #f5c453;
  color: #fde68a;
}

.kob-fighter-status-dot.is-selected,
.kob-fighter-status-dot.is-current-user {
  background: rgba(0, 229, 255, 0.28);
  border-color: #00e5ff;
  color: #e0f2fe;
}

.kob-fighter-status-dot.is-waiting {
  background: rgba(125, 211, 252, 0.14);
  border: 1px dashed rgba(125, 211, 252, 0.6);
  color: #bae6fd;
}

.kob-fighter-status-dot.is-eliminated {
  background: rgba(100, 116, 139, 0.24);
  border-color: rgba(148, 163, 184, 0.5);
  color: #94a3b8;
}

/* Element F: Medical / University Emblem Crest */
.kob-fighter-crest {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 84%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kob-fighter-crest img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85));
}

/* Layer G: Middle & Bridge Pending Advancement Cards (.kob-pending-card) */
.kob-pending-card {
  position: absolute;
  box-sizing: border-box;
  border: none;
  border-radius: 5px;
  background: transparent;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.78);
  color: #dbeafe;
  pointer-events: auto;
  overflow: hidden;
  isolation: isolate;
  direction: ltr;
}

.kob-pending-card .kob-card-frame__plate {
  fill: rgba(9, 18, 33, 0.95);
  stroke: rgba(154, 188, 222, 0.68);
}

.kob-pending-card.is-round-active {
  box-shadow: 0 0 16px rgba(56, 206, 255, 0.55);
}

.kob-pending-card.is-round-active .kob-card-frame__plate {
  stroke: #7ce7ff;
}

.kob-pending-card--mid {
  width: 10.25%;
  height: 8.92%;
  display: grid;
  grid-template-columns: 32% 68%;
  align-items: center;
  padding: 2.5px 5px;
}

.kob-pending-card--bridge {
  width: 7.81%;
  height: 8.92%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5px 4px;
}

.kob-pending-avatar {
  position: relative;
  z-index: 2;
  width: 92%;
  height: 84%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(16% 0%, 84% 0%, 100% 16%, 100% 84%, 84% 100%, 16% 100%, 0% 84%, 0% 16%);
  background: rgba(12, 28, 48, 0.85);
  border: 1px solid rgba(125, 211, 252, 0.45);
  overflow: hidden;
}

.kob-pending-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kob-pending-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  text-align: center;
  line-height: 1.15;
}

.kob-pending-q {
  color: #f8fbff;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(10px, 1vw, 14px);
  font-weight: 800;
}

.war-tree-section .kob-pending-label,
.kob-pending-label {
  color: #b8cfe6;
  font-family: "Alexandria", sans-serif;
  font-size: clamp(6px, 0.62vw, 9px) !important;
  line-height: 1.1 !important;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Layer H: Central Grand Final Overlay & Crown Pedestal (.kob-centerpiece)
   Positioned around the helmet's lower mantle & grand staircase so the glowing icy-blue eyes (y=46..52%)
   and central golden championship crown (y=64..74%) remain 100% unobstructed */
.kob-centerpiece {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.kob-grand-final-overlay {
  position: absolute;
  left: 34.8%;
  width: 30.4%;
  top: 56.0%;
  height: 29.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.kob-gf-duel-slots {
  order: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 30% 40% 30%;
  align-items: center;
  pointer-events: none;
}

.kob-gf-finalist {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px 6px;
  border: 1.5px solid rgba(154, 198, 236, 0.72);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(9, 20, 38, 0.92) 0%, rgba(6, 13, 25, 0.95) 100%);
  clip-path: polygon(5px 0%, calc(100% - 5px) 0%, 100% 16%, 100% 84%, calc(100% - 5px) 100%, 5px 100%, 0% 84%, 0% 16%);
  box-shadow:
    0 8px 18px rgba(3, 9, 20, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 10px rgba(56, 189, 248, 0.25);
}

.kob-grand-final-overlay.is-round-active .kob-gf-finalist {
  border-color: #7ef0ff;
  box-shadow:
    0 8px 18px rgba(3, 9, 20, 0.88),
    0 0 16px rgba(56, 206, 255, 0.62);
}

.kob-gf-q {
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(12px, 1.25vw, 17px);
  font-weight: 800;
  line-height: 1.05;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

.war-tree-section .kob-gf-status,
.kob-gf-status {
  margin-top: 2px;
  color: #c8dff6;
  font-family: "Alexandria", sans-serif;
  font-size: clamp(6.2px, 0.60vw, 8.2px) !important;
  line-height: 1.1 !important;
  font-weight: 600;
  white-space: nowrap;
}

.kob-gf-vs-badge {
  opacity: 0;
  pointer-events: none;
}

.kob-gf-header {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 18px 5px;
  border: 1px solid rgba(168, 206, 240, 0.48);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(6, 15, 29, 0.82) 0%, rgba(8, 22, 42, 0.92) 50%, rgba(6, 15, 29, 0.82) 100%);
  box-shadow: 0 6px 16px rgba(3, 9, 20, 0.82), 0 0 12px rgba(56, 189, 248, 0.22);
  text-align: center;
  line-height: 1.08;
}

.kob-gf-title {
  color: #ffffff;
  font-family: "Alexandria", "Noto Naskh Arabic", sans-serif;
  font-size: clamp(10.5px, 1.05vw, 14.5px);
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

.kob-gf-subtitle {
  margin-top: 1px;
  color: #93d5ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(6.5px, 0.64vw, 8.6px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.kob-crown-pedestal-badge {
  position: absolute;
  left: 50%;
  bottom: 1.2%;
  transform: translateX(-50%);
  padding: 3px 14px;
  border: 1px solid rgba(246, 196, 83, 0.55);
  border-radius: 999px;
  background: rgba(6, 14, 26, 0.90);
  color: #fde68a;
  font-family: "Alexandria", sans-serif;
  font-size: clamp(8px, 0.75vw, 10.5px);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.82);
}

/* ==========================================================================
   FIGHTER PROFILE DETAILS PANEL V2 (.kob-detail-modal)
   Reproduces the large showcase Fighter Card V2 from Reference 1 + match details
   ========================================================================== */
.kob-detail-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 8, 18, 0.82);
  backdrop-filter: blur(6px);
}

.kob-detail-modal {
  position: relative;
  width: min(620px, 95vw);
  padding: 22px;
  border: 1.5px solid rgba(140, 196, 242, 0.55);
  border-radius: 16px;
  background: linear-gradient(160deg, #0b192e 0%, #060e1b 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.88), 0 0 32px rgba(56, 189, 248, 0.25);
  color: #f0f7ff;
}

.kob-detail-modal__close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(148, 184, 218, 0.45);
  border-radius: 8px;
  background: rgba(14, 32, 56, 0.92);
  color: #e0f2fe;
  cursor: pointer;
}

.kob-detail-modal__close:hover {
  border-color: #7ce7ff;
  background: #173a64;
}

.kob-detail-modal__showcase {
  position: relative;
  padding: 16px 18px;
  isolation: isolate;
  margin-bottom: 16px;
}

.kob-detail-modal__profile {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 88px 1fr 70px;
  align-items: center;
  gap: 16px;
}

.kob-detail-modal__portrait-frame {
  position: relative;
  width: 84px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kob-detail-modal__portrait-inner {
  width: 100%;
  height: 100%;
  padding: 2.5px;
  box-sizing: border-box;
  background: linear-gradient(145deg, #e2eefb 0%, #7d9ec0 50%, #c8ddf2 100%);
  clip-path: polygon(16% 0%, 84% 0%, 100% 16%, 100% 84%, 84% 100%, 16% 100%, 0% 84%, 0% 16%);
  overflow: hidden;
}

.kob-detail-modal__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  clip-path: polygon(16% 0%, 84% 0%, 100% 16%, 100% 84%, 84% 100%, 16% 100%, 0% 84%, 0% 16%);
  background: #091526;
  display: block;
}

.kob-detail-modal__caduceus {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 28px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.92));
  pointer-events: none;
}

.kob-detail-modal__badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.kob-detail-modal__badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(88, 213, 255, 0.35);
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 700;
}

.kob-detail-modal__state-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(88, 213, 255, 0.45);
  color: #bae6fd;
}

.kob-detail-modal__state-pill.is-qualified {
  background: rgba(245, 196, 83, 0.2);
  border-color: #f5c453;
  color: #fde68a;
}

.kob-detail-modal__state-pill.is-eliminated {
  background: rgba(100, 116, 139, 0.24);
  border-color: rgba(148, 163, 184, 0.5);
  color: #cbd5e1;
}

.kob-detail-modal__meta h4 {
  margin: 6px 0 3px;
  font-family: "Alexandria", "Noto Naskh Arabic", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.kob-detail-modal__meta p {
  margin: 0 0 8px;
  color: #c2daf2;
  font-family: "Alexandria", "Space Grotesk", sans-serif;
  font-size: 13px;
}

.kob-detail-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kob-detail-modal__tags span {
  padding: 4px 9px;
  border: 1px solid rgba(148, 184, 218, 0.32);
  border-radius: 6px;
  background: rgba(8, 18, 34, 0.88);
  font-size: 10.5px;
  color: #cbe2f8;
}

.kob-detail-modal__crest {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kob-detail-modal__crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.85));
}

.kob-detail-modal__match-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.kob-detail-stat-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 12px;
  border: 1px solid rgba(132, 180, 224, 0.24);
  border-radius: 8px;
  background: rgba(9, 20, 36, 0.78);
}

.kob-detail-stat-box small {
  color: #7dd3fc;
  font-size: 9.5px;
  font-weight: 600;
}

.kob-detail-stat-box strong {
  color: #f0f7ff;
  font-size: 11.5px;
  font-weight: 700;
}

.kob-detail-modal__challenges {
  margin-top: 12px;
}

.kob-detail-modal__challenges h5 {
  margin: 0 0 8px;
  color: #7dd3fc;
  font-size: 12px;
}

.kob-detail-modal__challenges ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.kob-detail-modal__challenges li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 184, 218, 0.24);
  border-radius: 8px;
  background: rgba(9, 20, 36, 0.85);
  font-size: 11px;
}

.kob-detail-modal__challenges li b {
  color: #38bdf8;
  font-family: "Space Grotesk", sans-serif;
}

.kob-detail-modal__challenges li em {
  font-style: normal;
  color: #f6c453;
  font-size: 10px;
}

@media (max-width: 650px) {
  .kob-detail-modal__profile {
    grid-template-columns: 72px 1fr;
  }
  .kob-detail-modal__crest {
    display: none;
  }
  .kob-detail-modal__match-grid {
    grid-template-columns: 1fr;
  }
}

/* Collapsible Full 63-Match Registry Toggle & Drawer */
.kob-matrix-toggle-bar {
  display: flex;
  justify-content: center;
  padding: 10px 24px;
  border-top: 1px solid rgba(132, 188, 235, 0.18);
  background: #060e1a;
}

.kob-matrix-toggle-btn {
  padding: 7px 16px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 8px;
  background: linear-gradient(145deg, #0e223d, #091628);
  color: #bae6fd;
  font: 600 11px "Alexandria", sans-serif;
  cursor: pointer;
}

.kob-matrix-drawer {
  max-height: 620px;
  overflow: auto;
  border-top: 1px solid rgba(132, 188, 235, 0.22);
  background: #060c16;
  direction: ltr;
}

.war-tree-plot {
  position: relative;
  transform-origin: top left;
  transform: scale(var(--war-zoom, 1));
  background: #070f1c;
}

.war-connections {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.war-connections path {
  fill: none;
  stroke: rgba(88, 213, 255, 0.65);
  stroke-width: 2.2;
}

.war-round-label {
  position: absolute;
  top: 21px;
  display: flex;
  gap: 9px;
  align-items: center;
  width: 316px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.35);
  color: #bae6fd;
  font: 700 10px "Alexandria", sans-serif;
}

.war-round-label span {
  font: 700 19px "Space Grotesk", sans-serif;
  color: #38bdf8;
}

.war-node {
  position: absolute;
  box-sizing: border-box;
  display: grid;
  gap: 7px;
  width: 316px;
  height: 126px;
  padding: 10px 12px;
  border: 1px solid rgba(125, 211, 252, 0.45);
  border-radius: 10px;
  background: linear-gradient(135deg, #0f213a, #091426);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
  direction: rtl;
  text-align: start;
}

.war-node.is-pending {
  border-color: rgba(148, 163, 184, 0.35);
  background: linear-gradient(135deg, #0b1628, #070f1c);
}

.war-node-level {
  display: flex;
  justify-content: space-between;
  color: #7dd3fc;
  font: 700 9px "Alexandria", sans-serif;
}

.war-duel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  direction: rtl;
}

.war-contender {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.war-contender.cyan {
  direction: ltr;
  text-align: right;
}

.war-contender > span:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.war-contender b {
  overflow: hidden;
  color: #f8fbff;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.war-contender small {
  overflow: hidden;
  color: #9cb8d1;
  font-size: 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.war-versus {
  color: #38bdf8;
  font: 800 11px "Space Grotesk", sans-serif;
  text-align: center;
}

.war-face {
  display: grid;
  place-items: center;
  flex: 0 0 49px;
  width: 49px;
  height: 55px;
  box-sizing: border-box;
  border: 1px solid #38bdf8;
  border-radius: 6px;
  object-fit: cover;
  background: #0d1d31;
  color: #e0f2fe;
  font: 700 18px "Alexandria", sans-serif;
}

.war-face.war-portrait {
  background-image: url('./assets/arena-students-atlas-v2.webp');
  background-repeat: no-repeat;
  background-size: 800% 400%;
}

.war-face.is-empty {
  border-style: dashed;
  opacity: 0.65;
}

.war-finals {
  border-top: 1px solid rgba(125, 211, 252, 0.25);
  background: #060d18;
}

.war-finals-heading {
  padding: 20px 24px 12px;
}

.war-finals-heading h3 {
  margin: 6px 0;
  color: #f0f8ff;
  font-size: clamp(18px, 2.2vw, 26px);
}

.war-finals-heading p {
  margin: 0;
  color: #9cb8d1;
  font-size: 10.5px;
}

.war-finals-scroll {
  max-height: 510px;
  overflow: auto;
  direction: ltr;
}

.war-finals-canvas {
  position: relative;
}

.war-final-node {
  position: absolute;
  box-sizing: border-box;
  width: 270px;
  height: 66px;
  padding: 7px 9px;
  border: 1px solid rgba(125, 211, 252, 0.4);
  border-radius: 9px;
  background: linear-gradient(135deg, #0e2038, #081322);
  color: #e6f2ff;
  direction: ltr;
}

.war-final-node.is-grand-final {
  border-color: #f6c453;
  box-shadow: 0 0 24px rgba(246, 196, 83, 0.35);
}

.war-bracket-note {
  margin: 0;
  padding: 12px 24px;
  border-top: 1px solid rgba(132, 188, 235, 0.18);
  color: #9cb8d1;
  font-size: 10.5px;
  line-height: 1.8;
}

.war-universities {
  padding: 12px 24px;
  border-top: 1px solid rgba(132, 188, 235, 0.18);
  color: #88a8c4;
  font-size: 10px;
}

@media(min-width:1025px){.war-tree-header,.war-sectors,.war-tree-toolbar,.war-finals-heading,.war-bracket-note,.war-universities{padding-inline-start:calc(var(--batalyos-sidebar-w,208px) + 18px)}.war-sectors{scroll-padding-inline-start:calc(var(--batalyos-sidebar-w,208px) + 18px)}}

@media (min-width: 1025px) {
  .war-tree-header[data-kob-header="v2"] {
    padding-inline-start: 0;
  }
  .kob-level-overview,
  .kob-matrix-toggle-bar {
    padding-inline-start: calc(var(--batalyos-sidebar-w, 208px) + 18px);
  }
}

@media (max-width: 1000px) {
  .kob-header-v2-hero {
    aspect-ratio: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 0 12px;
    gap: 10px;
    background: linear-gradient(180deg, #060d18 0%, #050b15 100%);
  }

  /* Deliberate responsive crop preserving the silver warrior helmet (left) and dark sphere (center),
     while hiding the desktop right-side stat shell (x=720..1007) so stats render in a readable grid below */
  .kob-header-v2-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: 220px;
    background-position: 0% 0%;
    background-size: 142.2% 100%;
    opacity: 1;
  }

  .kob-header-v2-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(6, 13, 24, 0) 0%, rgba(6, 13, 24, 0) 72%, rgba(6, 13, 24, 0.72) 90%, #060d18 100%);
  }

  .kob-header-v2-center {
    position: relative;
    inset: auto;
    min-height: 204px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 14px 16px 6px;
    padding-inline-start: 42%;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .kob-header-v2-brand,
  .kob-header-v2-titles,
  .kob-header-v2-lower-meta {
    position: static;
    width: 100%;
    height: auto;
  }

  .kob-header-v2-brand {
    justify-content: center;
  }

  .kob-header-helmet-icon {
    display: none;
  }

  .kob-header-v2-brand-copy {
    width: auto;
  }

  .kob-header-wordmark {
    height: 25px;
    width: auto;
  }

  .kob-header-v2-title {
    font-size: clamp(20px, 3.2vw, 27px);
    white-space: normal;
  }

  .war-bracket-stats.kob-header-v2-stats {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    padding: 0 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .war-bracket-stats.kob-header-v2-stats > .kob-stat-panel {
    justify-content: center;
    padding: 8px 8px;
    border: 1px solid rgba(132, 182, 224, 0.36);
    border-radius: 9px;
    background: linear-gradient(160deg, rgba(11, 24, 44, 0.92), rgba(6, 13, 25, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 14px rgba(0, 0, 0, 0.5);
  }

  .kob-stat-panel .kob-stat-icon {
    display: block;
  }

  .war-bracket-stats.kob-header-v2-stats b {
    font-size: 15px;
  }

  .war-bracket-stats.kob-header-v2-stats .kob-stat-label {
    font-size: 10px;
  }

  .kob-header-v2-navdeck {
    flex-wrap: wrap;
    gap: 8px;
  }

  .kob-round-ribbon {
    order: 1;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .kob-nav-step-btn {
    order: 2;
  }

  .kob-path-stepper {
    order: 3;
    margin-inline-start: auto;
  }

  .kob-nav-utility-btn {
    order: 4;
  }

  .kob-overview-banner {
    grid-template-columns: 1fr;
  }

  .war-tree-canvas.kob-stage-canvas {
    min-width: 780px;
  }

  .kob-arena-stage {
    aspect-ratio: 1846 / 960;
  }

  .kob-stage-backdrop {
    background-position: center center;
    background-size: cover;
  }

  .kob-fighter-card {
    padding: 2px 3px;
  }

  .kob-fighter-identity {
    line-height: 1.06;
    padding: 0 1px;
  }

  .kob-fighter-name {
    font-size: 6.8px;
  }

  .kob-fighter-uni {
    font-size: 5.6px;
    margin-top: 0;
  }

  .kob-fighter-meta-row {
    margin-top: 0;
    gap: 2px;
  }

  .war-tree-section .kob-fighter-group,
  .kob-fighter-group {
    font-size: 5.5px !important;
    line-height: 1.05 !important;
  }

  .kob-fighter-status-dot {
    width: 8px;
    height: 8px;
    font-size: 5.5px;
  }

  .kob-portrait-emblem {
    bottom: -6%;
    max-width: 11px;
  }

  .kob-pending-card--mid {
    grid-template-columns: 28% 72%;
    padding: 2px 3px;
  }

  .kob-pending-card--bridge {
    width: 8.4%;
    padding: 2px 3px;
  }

  .kob-pending-copy {
    line-height: 1.05;
  }

  .kob-pending-q {
    font-size: 8.5px !important;
  }

  .war-tree-section .kob-pending-label,
  .kob-pending-label {
    font-size: 5.4px !important;
    line-height: 1.08 !important;
  }

  .kob-gf-finalist {
    padding: 3px 4px;
  }

  .kob-gf-q {
    font-size: 10px !important;
  }

  .war-tree-section .kob-gf-status,
  .kob-gf-status {
    font-size: 5.5px !important;
    line-height: 1.08 !important;
    margin-top: 1px;
  }
}

@media (max-width: 650px) {
  .kob-header-v2-hero {
    padding: 0 0 8px;
    gap: 0;
  }

  /* REGION A — ARTWORK: Dedicated top visual stage displaying the silver warrior helmet,
     glowing icy-blue eyes, medical serpent staff, holographic heart, and DNA helices
     with 1:1 original proportions (x=12..372 of 1024x274) and zero rectangular overlay */
  .kob-header-v2-backdrop {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 360 / 236;
    background-position: 1.81% 0%;
    background-size: 284.44% auto;
    opacity: 1;
    transform: none !important;
  }

  .kob-header-v2-backdrop::after {
    background: linear-gradient(
      180deg,
      rgba(6, 13, 24, 0) 0%,
      rgba(6, 13, 24, 0) 72%,
      rgba(6, 13, 24, 0.66) 89%,
      #060d18 100%
    );
  }

  /* REGION B — BRANDING AND TITLE: Seamless dark-navy region below the helmet artwork
     with no rectangular card, no translucent panel, no blur, and no heavy shadow */
  .kob-header-v2-center {
    min-height: 0;
    margin: -10px 0 0;
    padding: 2px 12px 8px;
    padding-inline-start: 12px;
    gap: 3px;
    border: none !important;
    border-radius: 0 !important;
    background: radial-gradient(
      ellipse 88% 72% at 50% 38%,
      rgba(0, 198, 255, 0.08) 0%,
      rgba(6, 13, 24, 0) 76%
    ) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
  }

  .kob-header-wordmark {
    height: clamp(24px, 6.4vw, 28px);
    width: auto;
    max-width: min(215px, 72vw);
  }

  .kob-header-descriptor {
    margin-top: 1px;
    font-size: clamp(9px, 2.45vw, 10.5px);
    letter-spacing: 0.1em;
    line-height: 1.2;
    white-space: normal;
  }

  .kob-header-v2-title {
    font-size: clamp(20px, 5.8vw, 24.5px);
    line-height: 1.15;
    white-space: normal;
  }

  .kob-header-v2-titles[dir="rtl"] .kob-header-v2-title {
    font-size: clamp(21px, 5.9vw, 25px);
    line-height: 1.16;
  }

  .kob-header-v2-subtitle {
    margin-top: 2px;
    font-size: clamp(12px, 3.2vw, 13.5px);
    letter-spacing: 0.18em;
    line-height: 1.22;
    white-space: normal;
  }

  .kob-header-v2-titles[dir="rtl"] .kob-header-v2-subtitle {
    font-size: clamp(12.5px, 3.35vw, 14px);
    letter-spacing: 0.03em;
  }

  .kob-header-v2-lower-meta {
    gap: 2px;
    margin-top: 1px;
  }

  .war-specialty-insignia {
    padding: 2px 10px;
  }

  .war-specialty-insignia strong {
    font-size: clamp(10px, 2.7vw, 11.5px);
  }

  .kob-header-v2-motto {
    white-space: normal;
    font-size: clamp(11px, 2.95vw, 12px);
    line-height: 1.35;
  }

  /* Compact 2x2 Tournament Statistics Grid on Mobile */
  .war-bracket-stats.kob-header-v2-stats {
    padding: 0 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .war-bracket-stats.kob-header-v2-stats > .kob-stat-panel {
    justify-content: center;
    padding: 5px 8px;
    border-radius: 8px;
  }

  .kob-stat-panel .kob-stat-icon {
    width: 20px;
    height: 16px;
    margin-bottom: 1px;
  }

  .war-bracket-stats.kob-header-v2-stats b {
    font-size: clamp(12.5px, 3.5vw, 14.5px);
    line-height: 1.08;
  }

  .war-bracket-stats.kob-header-v2-stats .kob-stat-label {
    margin-top: 1px;
    font-size: clamp(9.5px, 2.55vw, 10.5px);
    line-height: 1.12;
    white-space: normal;
  }

  .kob-header-v2-navdeck {
    padding: 8px 10px 10px;
  }

  .kob-round-tab {
    min-width: 108px;
    min-height: 42px;
  }

  .war-sectors {
    padding: 10px 14px;
  }

  .war-sector {
    flex-basis: 148px;
  }

  .war-tree-toolbar {
    font-size: 10px;
    padding: 10px 12px;
  }

  .war-tree-canvas.kob-stage-canvas {
    min-width: 650px;
  }

  .kob-arena-stage {
    aspect-ratio: 1846 / 1080;
  }

  .kob-stage-backdrop {
    background-position: center center;
    background-size: cover;
  }

  .kob-gf-header {
    padding: 3px 10px 4px;
  }

  .kob-gf-title {
    font-size: 9px;
  }

  .kob-gf-subtitle {
    font-size: 5.5px;
  }
}

/* ==========================================================================
   TOURNAMENT TREE V4 — SIMPLIFIED FIGHTER PROFILE MODAL & MOBILE BOTTOM SHEET
   ========================================================================== */
.kob-detail-modal__sheet-handle {
  display: none;
  width: 44px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(148, 194, 236, 0.45);
}

.kob-detail-modal__section {
  margin-top: 12px;
}

.kob-detail-modal__section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: #8ce9ff;
  font-family: "Alexandria", "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.kob-detail-stat-box small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 600;
}

.kob-detail-modal__meta p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kob-detail-modal__tags span,
.kob-detail-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 650px) {
  .kob-detail-modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .kob-detail-modal {
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 14px 16px 22px;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
  }

  .kob-detail-modal__sheet-handle {
    display: block;
  }

  .kob-detail-modal__showcase {
    padding: 12px 12px;
    margin-bottom: 12px;
  }

  .kob-detail-modal__meta h4 {
    font-size: 16px;
  }

  .kob-detail-modal__meta p {
    font-size: 12px;
  }
}

/* ==========================================================================
   TOURNAMENT TREE V4 — FULL MATCHUP PRESENTATION (.kob-full-matchup)
   Dedicated Desktop & Mobile art-directed backgrounds + Fighter Cards V2
   ========================================================================== */
.kob-full-matchup {
  position: relative;
  isolation: isolate;
  border-top: 1px solid rgba(88, 213, 255, 0.32);
  border-bottom: 1px solid rgba(88, 213, 255, 0.32);
  background: #06101f;
  overflow: hidden;
}

.kob-matchup-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.kob-matchup-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.kob-matchup-backdrop-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.kob-matchup-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 54%, rgba(0, 198, 255, 0.08) 0%, rgba(5, 13, 25, 0.56) 68%),
    linear-gradient(180deg, rgba(5, 12, 24, 0.68) 0%, rgba(5, 12, 24, 0.25) 45%, rgba(5, 12, 24, 0.76) 100%);
}

.kob-matchup-inner {
  position: relative;
  z-index: 3;
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.kob-matchup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid rgba(140, 192, 236, 0.38);
  border-radius: 12px;
  background: rgba(6, 15, 29, 0.84);
  backdrop-filter: blur(6px);
}

.kob-matchup-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7dd3fc;
  font: 700 10.5px "Space Grotesk", "Alexandria", sans-serif;
  letter-spacing: 0.06em;
}

.kob-matchup-header__title h3 {
  margin: 3px 0 0;
  color: #ffffff;
  font-family: "Alexandria", "Space Grotesk", sans-serif;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 800;
}

.kob-matchup-header__controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kob-matchup-step-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(125, 211, 252, 0.45);
  border-radius: 8px;
  background: linear-gradient(145deg, #102542, #071324);
  color: #e2f1ff;
  font: 700 11px "Alexandria", sans-serif;
  cursor: pointer;
}

.kob-matchup-step-btn:hover {
  border-color: #00c6ff;
  box-shadow: 0 0 12px rgba(0, 198, 255, 0.35);
}

.kob-matchup-counter {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(9, 22, 40, 0.9);
  border: 1px solid rgba(132, 180, 224, 0.32);
  color: #7dd3fc;
  font: 700 11.5px "Space Grotesk", sans-serif;
}

.kob-matchup-confrontation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 170px;
}

.kob-matchup-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Unified Fighter Card V2 inside Full Matchup View */
.kob-matchup-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  min-height: 96px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 198, 255, 0.22);
  color: #f4f8ff;
  text-align: start;
  cursor: pointer;
  isolation: isolate;
  direction: ltr;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.kob-matchup-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.9), 0 0 24px rgba(56, 206, 255, 0.45);
}

.kob-matchup-card .kob-fighter-portrait {
  width: 68px;
  height: 74px;
}

.kob-matchup-card .kob-portrait-emblem {
  max-width: 22px;
  bottom: -8px;
}

.kob-matchup-card .kob-fighter-identity {
  align-items: flex-start;
  text-align: start;
  gap: 3px;
}

.kob-matchup-card__corner-tag {
  color: #7dd3fc;
  font: 700 10px "Space Grotesk", "Alexandria", sans-serif;
  letter-spacing: 0.05em;
}

.kob-matchup-card .kob-fighter-name {
  font-size: clamp(14px, 1.35vw, 17.5px) !important;
  white-space: normal;
  line-height: 1.22;
}

.kob-matchup-card .kob-fighter-uni {
  font-size: clamp(11.5px, 1.05vw, 13.5px) !important;
  white-space: normal;
  line-height: 1.25;
}

.kob-matchup-card .kob-fighter-group {
  font-size: 11px !important;
}

.kob-matchup-card__state-text {
  font-style: normal;
  color: #bae6fd;
  font-size: 10.5px;
  font-weight: 600;
}

.kob-matchup-card .kob-fighter-crest {
  width: 50px;
  height: 50px;
}

.kob-matchup-vs-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.kob-matchup-vs-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #58d5ff;
  background: radial-gradient(circle, rgba(14, 48, 86, 0.94) 0%, rgba(6, 15, 30, 0.96) 100%);
  box-shadow: 0 0 26px rgba(0, 198, 255, 0.58), inset 0 0 14px rgba(0, 198, 255, 0.35);
}

.kob-matchup-vs-text {
  font-family: "Cinzel", "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 198, 255, 0.85);
}

.kob-matchup-advancement-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(6, 16, 32, 0.9);
  border: 1px solid rgba(125, 211, 252, 0.45);
  color: #dbeafe;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.kob-matchup-footer {
  display: flex;
  justify-content: center;
}

.kob-matchup-status-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(6, 16, 30, 0.88);
  border: 1px solid rgba(132, 188, 235, 0.38);
  color: #e2f1ff;
  font-size: 11.5px;
}

/* ==========================================================================
   TOURNAMENT TREE V4 — ROAD TO THE CHAMPIONSHIP (.war-finals.kob-championship-road)
   Dedicated Desktop & Mobile art-directed backgrounds + Unified Card Nodes
   ========================================================================== */
.war-finals.kob-championship-road {
  position: relative;
  isolation: isolate;
  border-top: 1px solid rgba(125, 211, 252, 0.32);
  background: #060f1d;
  overflow: hidden;
}

.kob-championship-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.kob-championship-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.kob-championship-backdrop-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.kob-championship-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 12, 24, 0.78) 0%, rgba(5, 12, 24, 0.54) 50%, rgba(5, 12, 24, 0.82) 100%);
}

.kob-championship-heading,
.war-finals.kob-championship-road .war-finals-scroll {
  position: relative;
  z-index: 3;
}

.kob-championship-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: rgba(5, 13, 25, 0.68);
  border-bottom: 1px solid rgba(132, 188, 235, 0.24);
  backdrop-filter: blur(4px);
}

.kob-championship-heading .war-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7dd3fc;
  font: 700 10.5px "Space Grotesk", "Alexandria", sans-serif;
}

.kob-champ-stage-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kob-champ-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(9, 22, 40, 0.88);
  border: 1px solid rgba(132, 184, 228, 0.36);
  color: #dbeafe;
  font-size: 10.5px;
}

.kob-champ-stage-pill strong {
  color: #58d5ff;
  font-family: "Space Grotesk", sans-serif;
}

.kob-champ-stage-pill.is-final {
  border-color: rgba(216, 232, 248, 0.75);
  background: rgba(14, 34, 62, 0.92);
  box-shadow: 0 0 14px rgba(0, 198, 255, 0.28);
}

.war-finals.kob-championship-road .war-final-node {
  border: none;
  background: transparent;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  isolation: isolate;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.82);
}

.kob-final-node__meta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7dd3fc;
  font: 700 9.5px "Alexandria", "Space Grotesk", sans-serif;
}

.kob-final-node__duel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: #f0f8ff;
}

.kob-final-node__contender {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kob-final-node__vs {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 198, 255, 0.18);
  border: 1px solid rgba(88, 213, 255, 0.45);
  color: #7ef0ff;
  font: 800 9px "Space Grotesk", sans-serif;
}

@media (min-width: 1025px) {
  .kob-matchup-inner {
    padding-inline-start: calc(var(--batalyos-sidebar-w, 208px) + 18px);
  }
}

/* ==========================================================================
   TOURNAMENT TREE V4 — MOBILE PORTRAIT FOCUSED BRACKET & RESPONSIVE VIEWS
   Breakpoint: max-width: 768px
   ========================================================================== */
@media (max-width: 768px) {
  .war-tree-section .war-tree-scroll {
    max-height: none !important;
    height: auto !important;
  }

  /* 1. Focused Mobile Bracket Mode (Default on narrow screens) */
  .war-tree-section[data-kob-mobile-mode="focused"] .war-tree-scroll {
    max-height: none !important;
    height: auto !important;
    overflow-x: visible;
    overflow-y: visible;
  }

  .war-tree-section[data-kob-mobile-mode="focused"] .war-tree-canvas.kob-stage-canvas {
    min-width: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }

  .kob-arena-stage.is-mobile-focused-mode {
    aspect-ratio: auto !important;
    min-height: 760px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(238px, 64vw, 290px) 12px 22px;
    box-sizing: border-box;
    background: #060e1d;
    transform: none !important;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-stage-backdrop {
    inset: 0 0 auto 0 !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 768 / 1376 !important;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-stage-backdrop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-stage-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(5, 12, 24, 0.0) 0%,
      rgba(5, 12, 24, 0.04) 38%,
      rgba(6, 14, 29, 0.68) 60%,
      rgba(6, 14, 29, 0.94) 82%,
      #060e1d 100%
    );
    pointer-events: none;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-stage-connections {
    display: none;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-mobile-focus-banner {
    position: relative;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(88, 213, 255, 0.48);
    border-radius: 12px;
    background: rgba(6, 16, 31, 0.92);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.75);
  }

  .kob-mobile-focus-banner__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .kob-mobile-focus-path,
  .kob-mobile-focus-round {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #e2f1ff;
  }

  .kob-mobile-focus-round {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 198, 255, 0.18);
    border: 1px solid rgba(88, 213, 255, 0.45);
    color: #7ef0ff;
  }

  .kob-mobile-focus-banner__actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .kob-mobile-focus-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 34px;
    padding: 4px 6px;
    border: 1px solid rgba(132, 182, 224, 0.42);
    border-radius: 8px;
    background: linear-gradient(145deg, #0f233e, #081324);
    color: #dbeafe;
    font: 700 10.5px "Alexandria", "Space Grotesk", sans-serif;
    cursor: pointer;
  }

  .kob-mobile-focus-btn.is-primary {
    border-color: #00c6ff;
    background: linear-gradient(145deg, #13375e, #0a1e38);
    color: #ffffff;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-wing {
    position: relative;
    inset: auto;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: auto;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-mobile-wing-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    margin-top: 4px;
    border-radius: 8px;
    background: rgba(9, 24, 44, 0.9);
    border: 1px solid rgba(125, 211, 252, 0.35);
    color: #bae6fd;
    font: 700 11.5px "Alexandria", "Space Grotesk", sans-serif;
  }

  /* Responsive Full-Width Fighter Cards V2 on Mobile */
  .kob-arena-stage.is-mobile-focused-mode .kob-fighter-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: 64px !important;
    grid-template-columns: 54px minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 6px 12px;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-fighter-portrait {
    width: 46px;
    height: 50px;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-portrait-emblem {
    max-width: 16px;
    bottom: -6px;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-fighter-identity {
    align-items: flex-start;
    text-align: start;
    line-height: 1.2;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-fighter-name {
    font-size: clamp(12.5px, 3.7vw, 14.5px) !important;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-fighter-uni {
    font-size: clamp(10.5px, 3.1vw, 12px) !important;
    margin-top: 1px;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-fighter-group {
    font-size: clamp(9.5px, 2.8vw, 11px) !important;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-fighter-status-dot {
    width: 13px;
    height: 13px;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-fighter-crest {
    width: 38px;
    height: 38px;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-mobile-pair-connector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: -2px 10px 6px;
    padding: 4px 10px;
    border-inline-start: 2px solid #00c6ff;
    border-radius: 0 6px 6px 0;
    background: rgba(8, 22, 42, 0.86);
    color: #bae6fd;
    font-size: 10px;
  }

  .kob-mobile-pair-connector__match {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: #7dd3fc;
  }

  .kob-mobile-pair-connector__vs {
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(0, 198, 255, 0.2);
    color: #ffffff;
    font: 800 9.5px "Space Grotesk", sans-serif;
  }

  .kob-mobile-pair-connector__next {
    color: #cbd5e1;
    font-size: 9.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-mobile-advancement-row {
    display: flex;
    align-items: center;
    margin-top: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(7, 18, 34, 0.85);
    color: #93c5fd;
    font-size: 10.5px;
    font-weight: 600;
  }

  .kob-mobile-advancement-title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-pending-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: 46px !important;
    padding: 4px 12px;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-pending-card--mid {
    grid-template-columns: 38px 1fr;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-pending-q {
    font-size: 12px !important;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-pending-label {
    font-size: 10.5px !important;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-centerpiece {
    position: relative;
    inset: auto;
    z-index: 5;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-grand-final-overlay {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    gap: 10px;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-gf-finalist {
    padding: 8px 10px;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-gf-q {
    font-size: 14px !important;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-gf-status {
    font-size: 10px !important;
  }

  .kob-arena-stage.is-mobile-focused-mode .kob-crown-pedestal-badge {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: normal;
    text-align: center;
    font-size: 10.5px;
    padding: 6px 12px;
  }

  /* 2. Mobile Full Matchup View Portrait Adaptation */
  .kob-full-matchup {
    background: #060e1d;
  }

  .kob-full-matchup .kob-matchup-backdrop {
    inset: 0 0 auto 0 !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 768 / 1376 !important;
  }

  .kob-full-matchup .kob-matchup-backdrop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .kob-full-matchup .kob-matchup-backdrop::after {
    background: linear-gradient(
      180deg,
      rgba(4, 10, 22, 0.02) 0%,
      rgba(4, 10, 22, 0.08) 34%,
      rgba(6, 14, 29, 0.72) 58%,
      rgba(6, 14, 29, 0.94) 82%,
      #060e1d 100%
    );
  }

  .kob-matchup-inner {
    padding: clamp(195px, 52vw, 235px) 12px 18px;
  }

  .kob-matchup-confrontation {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .kob-matchup-card {
    grid-template-columns: 60px minmax(0, 1fr) 44px;
    padding: 10px 12px;
    min-height: 82px;
  }

  .kob-matchup-card .kob-fighter-portrait {
    width: 54px;
    height: 58px;
  }

  .kob-matchup-advancement-pill {
    white-space: normal;
    text-align: center;
  }

  /* 3. Mobile Road to the Championship Portrait Adaptation */
  .war-finals.kob-championship-road {
    background: #060e1d;
    padding-top: clamp(205px, 55vw, 250px);
  }

  .war-finals.kob-championship-road .kob-championship-backdrop {
    inset: 0 0 auto 0 !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 768 / 1376 !important;
  }

  .war-finals.kob-championship-road .kob-championship-backdrop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .war-finals.kob-championship-road .kob-championship-backdrop::after {
    background: linear-gradient(
      180deg,
      rgba(4, 10, 22, 0.02) 0%,
      rgba(4, 10, 22, 0.08) 36%,
      rgba(6, 14, 29, 0.75) 60%,
      rgba(6, 14, 29, 0.95) 84%,
      #060e1d 100%
    );
  }

  .war-finals.kob-championship-road .war-finals-scroll {
    max-height: none;
    overflow: visible;
    padding: 14px 12px 20px;
  }

  .war-finals.kob-championship-road .war-finals-canvas {
    width: 100% !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .war-finals.kob-championship-road .war-connections {
    display: none;
  }

  .war-finals.kob-championship-road .war-final-node {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 58px;
    padding: 8px 14px;
  }
}
