/* ═══════════════════════════════════════════
   STOCK DUEL — duel_mockup.css
   Head-to-Head stock comparison arena
   ═══════════════════════════════════════════ */

/* duel_mockup.css — layout shell + duel arena (theme vars from mockup-theme-init.js) */

:root {
  --nav-h: 52px;
  --sidebar-w: 60px;
  --duel-blue: #2563eb;
  --duel-blue-deep: #1d4ed8;
  --duel-blue-glow: rgba(37, 99, 235, 0.45);
  --duel-blue-bg: linear-gradient(145deg, rgba(37, 99, 235, 0.22) 0%, rgba(8, 8, 22, 0.4) 72%);
  --duel-blue-accent: #93c5fd;
  --duel-orange: #f97316;
  --duel-orange-deep: #c2410c;
  --duel-orange-glow: rgba(249, 115, 22, 0.45);
  --duel-orange-bg: linear-gradient(215deg, rgba(249, 115, 22, 0.22) 0%, rgba(8, 8, 22, 0.4) 72%);
  --duel-orange-accent: #fdba74;
}

:root[data-mockup-theme-resolved="light"] {
  --duel-blue-bg: linear-gradient(145deg, rgba(37, 99, 235, 0.14) 0%, rgba(239, 246, 255, 0.95) 68%);
  --duel-orange-bg: linear-gradient(215deg, rgba(249, 115, 22, 0.14) 0%, rgba(255, 247, 237, 0.95) 68%);
  --duel-blue-accent: #1d4ed8;
  --duel-orange-accent: #c2410c;
}

.duel-gloves-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: inherit;
  vertical-align: -0.15em;
  margin-right: 2px;
}

.duel-gloves-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.topnav .nav-page .duel-gloves-icon {
  width: 1rem;
  height: 1rem;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body.duel-page-active {
  font-family: 'Nunito Sans', 'Sarabun', sans-serif;
  background: var(--bg-base, #080816);
  color: var(--text-primary, #f1f5f9);
  overflow: hidden;
}

/* mockup-global-template sets h2 * { font-family: DM Sans !important } — restore FA glyphs */
body.duel-page-active .fas,
body.duel-page-active .fa-solid {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  -webkit-font-smoothing: antialiased;
}

body.duel-page-active .far,
body.duel-page-active .fa-regular {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

body.duel-page-active .fab,
body.duel-page-active .fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

/* ── Topnav (match dividend / mockup pages) ── */
body.duel-page-active .topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--surface-topbar, rgba(8, 8, 22, 0.98));
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  z-index: 200;
  backdrop-filter: blur(12px);
}

body.duel-page-active .nav-logo {
  font-size: 1.125rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-light, #a78bfa), var(--cyan, #06b6d4));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}

body.duel-page-active .nav-sep {
  color: var(--text-muted, #475569);
  font-size: 1rem;
  flex-shrink: 0;
}

body.duel-page-active .nav-page {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary, #f1f5f9);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.duel-page-active .nav-right,
body.duel-page-active .topnav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

body.duel-page-active .nav-btn {
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: transparent;
  color: var(--text-secondary, #94a3b8);
  cursor: pointer;
  font-size: 0.6875rem;
  font-family: inherit;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

body.duel-page-active .nav-btn:hover {
  border-color: var(--border2, rgba(255, 255, 255, 0.14));
  color: var(--text-primary, #f1f5f9);
}

body.duel-page-active .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple, #7c3aed), var(--cyan, #06b6d4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* ── Layout shell ── */
body.duel-page-active .main-container {
  display: flex;
  height: 100vh;
  height: 100dvh;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

body.duel-page-active .icon-sidebar,
body.duel-page-active #mobileSidebar.icon-sidebar {
  width: var(--sidebar-w);
  height: 100%;
  background: var(--surface-sidebar, rgba(8, 8, 22, 0.95));
  border-right: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 4px;
  flex-shrink: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

body.duel-page-active .icon-sidebar .sb-btn,
body.duel-page-active #mobileSidebar .sb-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted, #64748b);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
}

body.duel-page-active .icon-sidebar .sb-btn:hover,
body.duel-page-active .icon-sidebar .sb-btn.active,
body.duel-page-active #mobileSidebar .sb-btn:hover,
body.duel-page-active #mobileSidebar .sb-btn.active {
  background: rgba(37, 99, 235, 0.14);
  color: #93c5fd;
}

body.duel-page-active .icon-sidebar .sb-btn .tt,
body.duel-page-active #mobileSidebar .sb-btn .tt {
  position: absolute;
  left: calc(100% + 10px);
  background: var(--surface-tooltip, #1e1e3f);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  color: var(--text-primary, #f1f5f9);
  font-size: 0.6875rem;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 999;
}

body.duel-page-active .icon-sidebar .sb-btn:hover .tt,
body.duel-page-active #mobileSidebar .sb-btn:hover .tt {
  opacity: 1;
}

body.duel-page-active .sidebar-overlay {
  display: none;
}

body.duel-page-active #duelSectionRoot {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

.duel-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ── Arena Header ── */
.duel-arena {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 132px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: var(--surface-topbar, rgba(8, 8, 22, 0.98));
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.duel-arena-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 132px;
}

.duel-arena.is-multi {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.duel-arena-grid.is-multi {
  --duel-fighter-min: 108px;
  grid-template-columns: repeat(var(--duel-fighter-cols, 3), minmax(var(--duel-fighter-min), 1fr));
  width: 100%;
  min-width: calc(var(--duel-fighter-cols, 3) * var(--duel-fighter-min));
  scroll-snap-type: x proximity;
}

.duel-arena-grid.is-multi > .duel-fighter {
  min-width: 0;
  scroll-snap-align: start;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.duel-arena-grid.is-multi > .duel-fighter:last-child {
  border-right: none;
}

.duel-arena-grid.is-multi .duel-fighter-inner {
  padding-bottom: 14px;
}

.duel-arena-grid.is-multi .duel-fighter-logo {
  width: 38px;
  height: 38px;
}

.duel-arena-grid.is-multi .duel-fighter-sym {
  font-size: 0.9375rem;
}

.duel-arena-grid.is-multi .duel-fighter--blue .duel-fighter-name,
.duel-arena-grid.is-multi .duel-fighter--orange .duel-fighter-name {
  left: 4px;
  right: 4px;
  width: calc(100% - 8px);
  max-width: none;
}

.duel-arena-grid.is-multi .duel-fighter-price {
  font-size: 0.6875rem;
  padding: 2px 6px;
}

.duel-fighters-extra {
  display: contents;
}

.duel-fighter--purple {
  background: color-mix(in srgb, var(--purple, #7c3aed) 14%, var(--surface-topbar, #080816));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.duel-fighter--teal {
  background: color-mix(in srgb, var(--cyan, #06b6d4) 12%, var(--surface-topbar, #080816));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.duel-fighter--rose {
  background: color-mix(in srgb, #f43f5e 12%, var(--surface-topbar, #080816));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.duel-fighter--amber {
  background: color-mix(in srgb, var(--amber, #f59e0b) 12%, var(--surface-topbar, #080816));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* Extra fighters (3+) — logo + sym same row, flush right like Blue */
.duel-fighter--extra .duel-fighter-inner {
  align-items: flex-end;
  text-align: right;
  gap: 6px;
}

.duel-fighter--extra .duel-fighter-face {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: 100%;
}

.duel-fighter--extra .duel-fighter-identity {
  align-items: flex-end;
  min-width: 0;
}

.duel-fighter--extra .duel-fighter-sym {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.duel-fighter--extra .duel-fighter-name--extra {
  position: absolute;
  bottom: 0;
  right: 4px;
  left: auto;
  max-width: calc(100% - 8px);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.duel-fighter--extra .duel-fighter-price {
  align-self: flex-end;
}

.duel-fighter--purple .duel-fighter-sym { color: var(--purple-light, #c4b5fd); }
.duel-fighter--teal .duel-fighter-sym { color: var(--cyan, #22d3ee); }
.duel-fighter--rose .duel-fighter-sym { color: #fb7185; }
.duel-fighter--amber .duel-fighter-sym { color: var(--amber, #fbbf24); }

.duel-fighter--purple .duel-fighter-logo.is-fallback {
  background: rgba(124, 58, 237, 0.14);
  color: var(--purple-light, #c4b5fd);
  border-color: rgba(167, 139, 250, 0.35);
}

.duel-fighter--teal .duel-fighter-logo.is-fallback {
  background: rgba(6, 182, 212, 0.14);
  color: var(--cyan, #22d3ee);
  border-color: rgba(34, 211, 238, 0.35);
}

.duel-fighter--rose .duel-fighter-logo.is-fallback {
  background: rgba(244, 63, 94, 0.14);
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.35);
}

.duel-fighter--amber .duel-fighter-logo.is-fallback {
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber, #fbbf24);
  border-color: rgba(251, 191, 36, 0.35);
}

.duel-multi-banner {
  grid-column: 1 / -1;
}

.duel-multi-banner p {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-secondary, #94a3b8);
}

.duel-multi-banner i {
  color: var(--purple-light, #c4b5fd);
  margin-right: 4px;
}

/* Multi-duel login gate */
.duel-login-gate {
  position: fixed;
  inset: 0;
  z-index: 960;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.duel-login-gate[hidden] {
  display: none !important;
}

.duel-login-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(4px);
}

.duel-login-gate-panel {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  padding: 24px 20px 20px;
  border-radius: 16px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  background: var(--surface-panel-modal, #0c0c1f);
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.duel-login-gate-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted, #64748b);
  cursor: pointer;
}

.duel-login-gate-icon {
  font-size: 1.5rem;
  color: var(--purple-light, #c4b5fd);
  margin-bottom: 8px;
}

.duel-login-gate-panel h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary, #f1f5f9);
}

.duel-login-gate-panel p {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-secondary, #94a3b8);
}

.duel-login-gate-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.duel-login-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  color: var(--text-primary, #f1f5f9);
}

.duel-login-gate-btn.primary {
  background: linear-gradient(135deg, var(--purple, #7c3aed), var(--duel-blue, #2563eb));
  border-color: transparent;
  color: #fff;
}

.duel-fighter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 10px 8px 8px;
  cursor: pointer;
  user-select: none;
  touch-action: pan-y;
  transition: opacity 0.2s;
}

.duel-fighter--blue {
  background: var(--duel-blue-bg);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.duel-fighter--orange {
  background: var(--duel-orange-bg);
}

.duel-fighter.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.duel-fighter.is-swiping .duel-fighter-inner {
  transition: none;
}

/* Inner = layout only — no card chrome; fighters face inward toward VS */
.duel-fighter-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  padding: 4px 6px 16px;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
  will-change: transform;
}

.duel-fighter--blue .duel-fighter-inner {
  align-items: flex-end;
  text-align: right;
}

.duel-fighter--orange .duel-fighter-inner {
  align-items: flex-start;
  text-align: left;
}

.duel-fighter-face {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.duel-fighter--blue .duel-fighter-face {
  flex-direction: row;
  justify-content: flex-end;
}

.duel-fighter--orange .duel-fighter-face {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.duel-fighter-identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.duel-fighter--blue .duel-fighter-identity {
  align-items: flex-end;
}

.duel-fighter--orange .duel-fighter-identity {
  align-items: flex-start;
}

.duel-fighter.is-empty .duel-fighter-logo {
  border-style: dashed;
  opacity: 0.75;
}

.duel-fighter.is-empty .duel-fighter-sym {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary, #94a3b8) !important;
}

.duel-fighter.is-empty .duel-fighter-name {
  color: var(--text-muted, #64748b);
  font-weight: 600;
}

.duel-fighter-inner.slide-out-left {
  transform: translateX(-120%);
  opacity: 0;
}

.duel-fighter-inner.slide-out-right {
  transform: translateX(120%);
  opacity: 0;
}

.duel-fighter-inner.slide-in {
  animation: duelSlideIn 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes duelSlideIn {
  from { transform: translateX(40%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.duel-fighter-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--text-muted, #64748b);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.duel-fighter--blue .duel-fighter-logo {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35), 0 4px 14px rgba(37, 99, 235, 0.2);
}

.duel-fighter--orange .duel-fighter-logo {
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.35), 0 4px 14px rgba(249, 115, 22, 0.2);
}

.duel-fighter-logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
}

.duel-fighter-logo.has-img {
  background: #ffffff;
  padding: 0;
}

.duel-fighter--blue .duel-fighter-logo.is-fallback {
  background: rgba(37, 99, 235, 0.14);
  color: var(--duel-blue-accent);
  border-color: rgba(37, 99, 235, 0.3);
}

.duel-fighter--orange .duel-fighter-logo.is-fallback {
  background: rgba(249, 115, 22, 0.14);
  color: var(--duel-orange-accent);
  border-color: rgba(249, 115, 22, 0.3);
}

:root[data-mockup-theme-resolved="light"] .duel-fighter-logo.has-img {
  border-color: rgba(15, 23, 42, 0.06);
}

.duel-fighter-sym {
  font-size: 1.1875rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary, #f1f5f9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
}

.duel-fighter--blue .duel-fighter-sym { color: var(--duel-blue-accent); }
.duel-fighter--orange .duel-fighter-sym { color: var(--duel-orange-accent); }

:root[data-mockup-theme-resolved="light"] .duel-fighter-sym {
  text-shadow: none;
}

.duel-fighter-name {
  position: absolute;
  bottom: 0;
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.2;
  max-width: calc(100% - 10px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.88;
  pointer-events: none;
}

.duel-fighter--blue .duel-fighter-name {
  left: 4px;
  text-align: left;
}

.duel-fighter--orange .duel-fighter-name {
  right: 4px;
  text-align: right;
}

.duel-fighter-price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary, #f1f5f9);
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

:root[data-mockup-theme-resolved="light"] .duel-fighter-price {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(15, 23, 42, 0.08);
}

.duel-fighter-price .chg-up { color: #10b981; }
.duel-fighter-price .chg-down { color: #ef4444; }

@media (prefers-reduced-motion: reduce) {
  .duel-fighter-inner.slide-in { animation: none; }
}

/* ── Scroll content ── */
.duel-scroll {
  flex: 1;
  padding: 12px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.duel-card {
  background: var(--surface-card, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 14px;
}

.duel-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.duel-card-head h2 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 7px;
}

.duel-card-head h2 i {
  color: #a78bfa;
  font-size: 0.8125rem;
}

.duel-card-sub {
  font-size: 0.625rem;
  color: var(--text-faint, rgba(255, 255, 255, 0.3));
  font-weight: 600;
}

/* Radar */
.duel-radar-wrap {
  position: relative;
  height: 220px;
}

.duel-radar-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.duel-radar-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-faint, rgba(255, 255, 255, 0.3));
  text-align: center;
  padding: 16px;
}

.duel-radar-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-secondary, #94a3b8);
}

.duel-radar-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.duel-radar-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.duel-radar-legend .dot--blue { background: var(--duel-blue); }
.duel-radar-legend .dot--orange { background: var(--duel-orange); }

/* Chart widgets */
.duel-widget-wrap {
  position: relative;
  height: 180px;
}

.duel-widget-wrap--short {
  height: 150px;
}

.duel-widget-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.duel-widget-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 0.75rem;
  color: var(--text-faint, rgba(255, 255, 255, 0.3));
}

.duel-widget-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-secondary, #94a3b8);
}

.duel-widget-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.duel-scroll[hidden] {
  display: none;
}

/* Side-by-side compare grid (Insider, IAA) */
.duel-compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: stretch;
}

.duel-compare-col {
  min-width: 0;
}

.duel-compare-col--blue .duel-ins-stage,
.duel-compare-col--blue .duel-iaa-sent-row {
  border-color: rgba(37, 99, 235, 0.22);
}

.duel-compare-col--orange .duel-ins-stage,
.duel-compare-col--orange .duel-iaa-sent-row {
  border-color: rgba(249, 115, 22, 0.22);
}

.duel-compare-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  align-self: center;
}

.duel-compare-vs {
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-faint, rgba(255, 255, 255, 0.28));
}

.duel-insider-compare .duel-ins-stage {
  height: 100%;
}

.duel-insider-compare[hidden] {
  display: none;
}

.duel-ins-stage {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: var(--surface-hover, rgba(255, 255, 255, 0.03));
}

.duel-ins-stage--blue { border-color: rgba(37, 99, 235, 0.22); }
.duel-ins-stage--orange { border-color: rgba(249, 115, 22, 0.22); }

.duel-ins-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.duel-ins-stage-sym {
  font-size: 0.8125rem;
  font-weight: 800;
}

.duel-ins-stage--blue .duel-ins-stage-sym { color: var(--duel-blue-accent); }
.duel-ins-stage--orange .duel-ins-stage-sym { color: var(--duel-orange-accent); }

.duel-ins-signal {
  font-size: 0.5625rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
}

.duel-ins-signal--buy { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.duel-ins-signal--sell { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.duel-ins-signal--neutral { background: rgba(148, 163, 184, 0.15); color: var(--text-muted, #64748b); }

.duel-ins-tug-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.625rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.duel-ins-tug-buy-lbl { color: #10b981; display: flex; align-items: center; gap: 4px; }
.duel-ins-tug-sell-lbl { color: #ef4444; display: flex; align-items: center; gap: 4px; }
.duel-ins-tug-buy-lbl i,
.duel-ins-tug-sell-lbl i { font-size: 0.375rem; }

.duel-ins-tug-bar {
  display: flex;
  height: 12px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--surface-hover-strong, rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}

.duel-ins-tug-buy {
  background: linear-gradient(90deg, #059669, #10b981);
  transition: width 0.5s ease;
}

.duel-ins-tug-sell {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  transition: width 0.5s ease;
}

.duel-ins-stage-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.5625rem;
  color: var(--text-muted, #64748b);
}

.duel-ins-stage-foot strong.buy { color: #10b981; }
.duel-ins-stage-foot strong.sell { color: #ef4444; }

.duel-ins-stage-empty,
.duel-iaa-sent-empty {
  font-size: 0.6875rem;
  color: var(--text-muted, #64748b);
  text-align: center;
  padding: 8px 4px;
}

:root[data-mockup-theme-resolved="light"] .duel-ins-tug-bar {
  background: rgba(15, 23, 42, 0.06);
}

/* IAA — visual compare */
.duel-iaa-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.duel-iaa-visual[hidden] {
  display: none;
}

.duel-iaa-block-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.duel-iaa-block-title i {
  color: #a78bfa;
  font-size: 0.625rem;
}

.duel-compare-col .duel-iaa-upside-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: var(--surface-hover, rgba(255, 255, 255, 0.03));
  height: 100%;
}

.duel-iaa-upside-col--blue { border-color: rgba(37, 99, 235, 0.18); }
.duel-iaa-upside-col--orange { border-color: rgba(249, 115, 22, 0.18); }

.duel-compare-col .duel-iaa-upside-sym {
  text-align: center;
}

.duel-compare-col .duel-iaa-upside-track {
  width: 100%;
}

.duel-compare-col .duel-iaa-upside-val {
  text-align: center;
  min-width: 0;
}

.duel-compare-col .duel-iaa-sent-row {
  height: 100%;
}

.duel-compare-col .duel-ins-stage-head,
.duel-compare-col .duel-iaa-sent-head {
  flex-wrap: wrap;
}

.duel-compare-col .duel-ins-stage-foot {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.duel-compare-col .duel-iaa-sent-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.duel-compare-col .duel-iaa-sent-legend {
  flex-wrap: wrap;
  gap: 6px;
}

.duel-iaa-upside-sym {
  font-size: 0.75rem;
  font-weight: 800;
}

.duel-iaa-upside-col--blue .duel-iaa-upside-sym { color: var(--duel-blue-accent); }
.duel-iaa-upside-col--orange .duel-iaa-upside-sym { color: var(--duel-orange-accent); }

.duel-iaa-upside-track {
  height: 10px;
  border-radius: 99px;
  background: var(--surface-hover-strong, rgba(255, 255, 255, 0.06));
  overflow: hidden;
}

.duel-iaa-upside-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
}

.duel-iaa-upside-bar--up { background: linear-gradient(90deg, #059669, #10b981); }
.duel-iaa-upside-bar--down { background: linear-gradient(90deg, #ef4444, #dc2626); }
.duel-iaa-upside-bar--flat { background: var(--text-muted, #64748b); }

.duel-iaa-upside-val {
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 52px;
  text-align: right;
}

.duel-iaa-upside-val--up { color: #10b981; }
.duel-iaa-upside-val--down { color: #ef4444; }
.duel-iaa-upside-val--flat { color: var(--text-muted, #64748b); }

.duel-iaa-sent-row {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: var(--surface-hover, rgba(255, 255, 255, 0.03));
}

.duel-iaa-sent-row--blue { border-color: rgba(37, 99, 235, 0.18); }
.duel-iaa-sent-row--orange { border-color: rgba(249, 115, 22, 0.18); }

.duel-iaa-sent-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.duel-iaa-sent-sym {
  font-size: 0.75rem;
  font-weight: 800;
}

.duel-iaa-sent-row--blue .duel-iaa-sent-sym { color: var(--duel-blue-accent); }
.duel-iaa-sent-row--orange .duel-iaa-sent-sym { color: var(--duel-orange-accent); }

.duel-iaa-sent-label {
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--text-muted, #64748b);
}

.duel-iaa-sent-bar {
  display: flex;
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--surface-hover-strong, rgba(255, 255, 255, 0.06));
}

.duel-iaa-sent-seg { min-width: 0; transition: width 0.5s ease; }
.duel-iaa-sent-seg--buy { background: linear-gradient(90deg, #059669, #10b981); }
.duel-iaa-sent-seg--hold { background: linear-gradient(90deg, #d97706, #f59e0b); }
.duel-iaa-sent-seg--sell { background: linear-gradient(90deg, #ef4444, #dc2626); }

.duel-iaa-sent-legend {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  font-size: 0.5625rem;
  font-weight: 700;
}

.duel-iaa-sent-legend .buy { color: #10b981; }
.duel-iaa-sent-legend .hold { color: #f59e0b; }
.duel-iaa-sent-legend .sell { color: #ef4444; }

/* Tug-of-War */
.duel-tug-row {
  margin-bottom: 12px;
}

.duel-tug-row:last-child { margin-bottom: 0; }

.duel-tug-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-soft, rgba(255, 255, 255, 0.55));
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

.duel-tug-track {
  display: flex;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
}

.duel-tug-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 800;
  min-width: 0;
  transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 6px;
}

.duel-tug-bar--blue {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.85), rgba(37, 99, 235, 0.55));
  color: #eff6ff;
  box-shadow: inset -2px 0 12px rgba(37, 99, 235, 0.35);
}

.duel-tug-bar--orange {
  background: linear-gradient(270deg, rgba(249, 115, 22, 0.85), rgba(249, 115, 22, 0.55));
  color: #fff7ed;
  box-shadow: inset 2px 0 12px rgba(249, 115, 22, 0.35);
}

:root[data-mockup-theme-resolved="light"] .duel-tug-bar--blue {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  color: #ffffff;
}

:root[data-mockup-theme-resolved="light"] .duel-tug-bar--orange {
  background: linear-gradient(270deg, #ea580c, #f97316);
  color: #ffffff;
}

:root[data-mockup-theme-resolved="light"] .duel-tug-track {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

.duel-tug-bar.is-winning {
  filter: brightness(1.15);
}

.duel-tug-bar--purple {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.88), rgba(124, 58, 237, 0.55));
  color: #f5f3ff;
}

.duel-tug-bar--teal {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.88), rgba(6, 182, 212, 0.55));
  color: #ecfeff;
}

.duel-tug-bar--rose {
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.88), rgba(244, 63, 94, 0.55));
  color: #fff1f2;
}

.duel-tug-bar--amber {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.9), rgba(245, 158, 11, 0.58));
  color: #fffbeb;
}

.duel-tug-track--multi {
  min-height: 26px;
}

.duel-tug-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.duel-tug-chip {
  font-size: 0.5625rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary, #94a3b8);
}

.duel-tug-chip--blue { color: var(--duel-blue-accent); }
.duel-tug-chip--orange { color: var(--duel-orange-accent); }
.duel-tug-chip--purple { color: var(--purple-light, #c4b5fd); }
.duel-tug-chip--teal { color: #22d3ee; }
.duel-tug-chip--rose { color: #fb7185; }
.duel-tug-chip--amber { color: #fbbf24; }

.duel-tug-crown {
  font-size: 0.5rem;
  margin-right: 2px;
  color: #fbbf24;
}

/* Multi Combat Stats table */
.duel-combat-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px;
}

.duel-combat-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.6875rem;
}

.duel-combat-table th,
.duel-combat-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.06));
  vertical-align: middle;
}

.duel-combat-metric {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 88px;
  max-width: 120px;
  text-align: left;
  font-weight: 700;
  color: var(--text-secondary, #94a3b8);
  background: var(--surface-card, rgba(255, 255, 255, 0.04));
  box-shadow: 4px 0 8px rgba(0, 0, 0, 0.12);
}

.duel-combat-metric--head {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint, rgba(255, 255, 255, 0.3));
}

.duel-combat-th {
  text-align: center;
  font-weight: 800;
  font-size: 0.625rem;
  white-space: nowrap;
}

.duel-combat-th--blue { color: var(--duel-blue-accent); }
.duel-combat-th--orange { color: var(--duel-orange-accent); }
.duel-combat-th--purple { color: var(--purple-light, #c4b5fd); }
.duel-combat-th--teal { color: #22d3ee; }
.duel-combat-th--rose { color: #fb7185; }
.duel-combat-th--amber { color: #fbbf24; }

.duel-combat-td {
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.duel-combat-td.is-winner {
  color: var(--text-primary, #f1f5f9);
}

.duel-combat-td .win-icon {
  font-size: 0.5rem;
  margin-right: 3px;
  color: #fbbf24;
}

.duel-combat-group td {
  padding: 12px 6px 6px;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint, rgba(255, 255, 255, 0.28));
  border-bottom: none;
  background: transparent;
  box-shadow: none;
}

/* Multi verdict podium */
.duel-verdict-text.is-multi {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.duel-podium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
}

.duel-podium-item {
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  text-align: center;
}

.duel-podium-rank { font-size: 1.125rem; line-height: 1; }
.duel-podium-sym { font-size: 0.875rem; font-weight: 900; }
.duel-podium-pts { font-size: 0.5625rem; font-weight: 600; color: var(--text-muted, #64748b); }

.duel-podium-item--blue { border-color: rgba(37, 99, 235, 0.35); }
.duel-podium-item--orange { border-color: rgba(249, 115, 22, 0.35); }
.duel-podium-item--purple { border-color: rgba(167, 139, 250, 0.35); }
.duel-podium-item--teal { border-color: rgba(34, 211, 238, 0.35); }
.duel-podium-item--rose { border-color: rgba(251, 113, 133, 0.35); }
.duel-podium-item--amber { border-color: rgba(251, 191, 36, 0.35); }

.duel-verdict-lead {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-primary, #f1f5f9);
}

.duel-cat-matrix {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.duel-cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.625rem;
}

.duel-cat-label {
  flex: 0 0 108px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
}

.duel-cat-cells {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}

.duel-cat-cell {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.duel-radar-legend .dot--purple { background: #a78bfa; }
.duel-radar-legend .dot--teal { background: #22d3ee; }
.duel-radar-legend .dot--rose { background: #fb7185; }
.duel-radar-legend .dot--amber { background: #fbbf24; }

.duel-widget-legend .dot--purple { background: #a78bfa; }
.duel-widget-legend .dot--teal { background: #22d3ee; }
.duel-widget-legend .dot--rose { background: #fb7185; }
.duel-widget-legend .dot--amber { background: #fbbf24; }

/* Ratio rows */
.duel-ratio-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  font-size: 0.5625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint, rgba(255, 255, 255, 0.3));
  margin-bottom: 6px;
  padding: 0 2px;
}

.duel-ratio-col--left {
  text-align: left;
  color: var(--duel-blue-accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duel-ratio-col--right {
  text-align: right;
  color: var(--duel-orange-accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duel-ratio-col--mid { text-align: center; }

.duel-ratio-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 4px 6px;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint, rgba(255, 255, 255, 0.28));
}

.duel-ratio-group:first-child {
  padding-top: 4px;
}

.duel-ratio-group span {
  white-space: nowrap;
}

.duel-ratio-group::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border, rgba(255, 255, 255, 0.06));
}

.duel-ratio-mid-sub {
  display: block;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted, #64748b);
  margin-top: 1px;
}

.duel-ratio-row {
  padding: 10px 4px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.05));
}

.duel-ratio-row:last-child { border-bottom: none; }

.duel-ratio-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: center;
}

.duel-ratio-bar-track {
  display: grid;
  grid-template-columns: 1fr 3px 1fr;
  align-items: stretch;
  height: 10px;
  margin-top: 7px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--surface-hover, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
}

.duel-ratio-bar-side {
  display: flex;
  height: 100%;
  min-width: 0;
}

.duel-ratio-bar-side--left {
  justify-content: flex-end;
}

.duel-ratio-bar-side--right {
  justify-content: flex-start;
}

.duel-ratio-bar-axis {
  width: 3px;
  background: var(--text-faint, rgba(255, 255, 255, 0.2));
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.25);
  z-index: 1;
}

.duel-ratio-bar {
  height: 100%;
  min-width: 0;
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.duel-ratio-bar--blue {
  background: linear-gradient(270deg, rgba(37, 99, 235, 0.95), rgba(37, 99, 235, 0.35));
  border-radius: 99px 0 0 99px;
  box-shadow: inset -1px 0 6px rgba(37, 99, 235, 0.4);
}

.duel-ratio-bar--orange {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.95), rgba(249, 115, 22, 0.35));
  border-radius: 0 99px 99px 0;
  box-shadow: inset 1px 0 6px rgba(249, 115, 22, 0.4);
}

.duel-ratio-bar.is-winning {
  filter: brightness(1.12);
}

:root[data-mockup-theme-resolved="light"] .duel-ratio-bar-track {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-mockup-theme-resolved="light"] .duel-ratio-bar-axis {
  background: rgba(15, 23, 42, 0.18);
  box-shadow: none;
}

:root[data-mockup-theme-resolved="light"] .duel-ratio-bar--blue {
  background: linear-gradient(270deg, #2563eb, rgba(37, 99, 235, 0.45));
}

:root[data-mockup-theme-resolved="light"] .duel-ratio-bar--orange {
  background: linear-gradient(90deg, #ea580c, rgba(234, 88, 12, 0.45));
}

.duel-ratio-val {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary, #f1f5f9);
  transition: opacity 0.2s, text-shadow 0.2s;
}

.duel-ratio-val--left { text-align: left; }
.duel-ratio-val--right { text-align: right; }

.duel-ratio-val.is-winner {
  font-weight: 800;
  opacity: 1;
}

.duel-ratio-val--left.is-winner {
  color: var(--duel-blue-accent);
  text-shadow: 0 0 14px var(--duel-blue-glow);
}

.duel-ratio-val--right.is-winner {
  color: var(--duel-orange-accent);
  text-shadow: 0 0 14px var(--duel-orange-glow);
}

:root[data-mockup-theme-resolved="light"] .duel-ratio-val--left.is-winner,
:root[data-mockup-theme-resolved="light"] .duel-ratio-val--right.is-winner {
  text-shadow: none;
}

.duel-ratio-val.is-loser { opacity: 0.4; }

.duel-ratio-val .win-icon {
  font-size: 0.5625rem;
  margin-left: 3px;
  margin-right: 3px;
}

.duel-ratio-mid {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-soft, rgba(255, 255, 255, 0.5));
  text-align: center;
  white-space: nowrap;
}

/* Verdict */
.duel-verdict-card {
  border-color: rgba(124, 58, 237, 0.25);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), var(--surface-card, rgba(8, 8, 22, 0.6)));
}

:root[data-mockup-theme-resolved="light"] .duel-verdict-card {
  border-color: rgba(124, 58, 237, 0.18);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), var(--surface-card, #fff));
}

.duel-verdict-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-primary, #f1f5f9);
}

.duel-verdict-text strong {
  color: #a78bfa;
}

.duel-verdict-skeleton .duel-skel-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: duelShimmer 1.2s infinite;
  margin-bottom: 8px;
}

.duel-verdict-skeleton .duel-skel-line.short { width: 65%; }

@keyframes duelShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.duel-empty-msg {
  font-size: 0.75rem;
  color: var(--text-faint, rgba(255, 255, 255, 0.3));
  text-align: center;
  padding: 16px 8px;
}

/* Picker overlay — centered modal */
body.duel-picker-open {
  overflow: hidden;
}

.duel-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.duel-picker-overlay[hidden] { display: none; }

.duel-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(4px);
  animation: duelFadeIn 0.22s ease;
}

:root[data-mockup-theme-resolved="light"] .duel-picker-backdrop {
  background: rgba(15, 23, 42, 0.32);
}

@keyframes duelFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.duel-picker {
  position: relative;
  z-index: 1;
  width: 440px;
  height: 560px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  background: var(--surface-panel-modal, #0c0c1f);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: duelPickerModalIn 0.26s cubic-bezier(0.32, 0.72, 0, 1);
  flex-shrink: 0;
}

:root[data-mockup-theme-resolved="light"] .duel-picker {
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(15, 23, 42, 0.06) inset;
}

@keyframes duelPickerModalIn {
  from {
    transform: scale(0.96) translateY(10px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.duel-picker-grab {
  display: none;
}

.duel-picker-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 12px;
  flex-shrink: 0;
}

.duel-picker-head-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.duel-picker-head-icon--blue {
  background: rgba(37, 99, 235, 0.18);
  color: var(--duel-blue-accent);
  border: 1px solid rgba(37, 99, 235, 0.28);
}

.duel-picker-head-icon--orange {
  background: rgba(249, 115, 22, 0.18);
  color: var(--duel-orange-accent);
  border: 1px solid rgba(249, 115, 22, 0.28);
}

.duel-picker-head-icon--purple {
  background: color-mix(in srgb, var(--purple, #7c3aed) 20%, transparent);
  color: var(--purple-light, #c4b5fd);
  border: 1px solid color-mix(in srgb, var(--purple, #7c3aed) 35%, transparent);
}

.duel-picker-head-icon--teal {
  background: color-mix(in srgb, var(--cyan, #06b6d4) 18%, transparent);
  color: var(--cyan, #22d3ee);
  border: 1px solid color-mix(in srgb, var(--cyan, #06b6d4) 30%, transparent);
}

.duel-picker[data-team="purple"] .duel-pick-row:hover,
.duel-picker[data-team="purple"] .duel-pick-row:focus-visible {
  border-left-color: var(--purple, #7c3aed);
  background: color-mix(in srgb, var(--purple, #7c3aed) 10%, transparent);
}

.duel-picker[data-team="purple"] .duel-pick-sym { color: var(--purple-light, #c4b5fd); }

.duel-picker-head-text {
  flex: 1;
  min-width: 0;
}

.duel-picker-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--text-primary, #f1f5f9);
  line-height: 1.2;
}

.duel-picker-sub {
  font-size: 0.6875rem;
  color: var(--text-muted, #64748b);
  margin-top: 2px;
}

.duel-picker-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 10px;
  background: var(--surface-hover, rgba(255, 255, 255, 0.04));
  color: var(--text-secondary, #94a3b8);
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.duel-picker-close:hover {
  background: var(--surface-hover-strong, rgba(255, 255, 255, 0.08));
  color: var(--text-primary, #f1f5f9);
}

.duel-picker-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 14px 10px;
  padding: 0 12px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  background: var(--surface-input, rgba(255, 255, 255, 0.05));
  transition: border-color 0.15s, box-shadow 0.15s;
}

.duel-picker-search:focus-within {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.duel-picker-search > i {
  color: var(--text-muted, #64748b);
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.duel-picker-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text-primary, #f1f5f9);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
}

.duel-picker-input::placeholder {
  color: var(--text-faint, rgba(255, 255, 255, 0.3));
}

.duel-picker-search kbd {
  font-size: 0.5625rem;
  font-weight: 700;
  font-family: inherit;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  background: var(--surface-hover, rgba(255, 255, 255, 0.04));
  color: var(--text-muted, #64748b);
  flex-shrink: 0;
}

.duel-picker-results {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 10px 8px;
  -webkit-overflow-scrolling: touch;
}

.duel-pick-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 4px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.12s, border-color 0.12s, transform 0.12s;
}

.duel-pick-row:hover,
.duel-pick-row:focus-visible {
  outline: none;
  background: var(--surface-hover, rgba(255, 255, 255, 0.04));
}

.duel-picker[data-team="blue"] .duel-pick-row:hover,
.duel-picker[data-team="blue"] .duel-pick-row:focus-visible {
  border-left-color: var(--duel-blue);
  background: rgba(37, 99, 235, 0.08);
}

.duel-picker[data-team="orange"] .duel-pick-row:hover,
.duel-picker[data-team="orange"] .duel-pick-row:focus-visible {
  border-left-color: var(--duel-orange);
  background: rgba(249, 115, 22, 0.08);
}

.duel-pick-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text-muted, #64748b);
}

.duel-pick-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 3px;
}

.duel-pick-logo.is-fallback {
  background: var(--surface-hover, rgba(255, 255, 255, 0.04));
}

.duel-pick-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.duel-pick-sym-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.duel-pick-sym {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary, #f1f5f9);
}

.duel-picker[data-team="blue"] .duel-pick-sym { color: var(--duel-blue-accent); }
.duel-picker[data-team="orange"] .duel-pick-sym { color: var(--duel-orange-accent); }

.duel-pick-mkt {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.22);
  color: rgba(6, 182, 212, 0.95);
  white-space: nowrap;
}

.duel-pick-name {
  font-size: 0.6875rem;
  color: var(--text-secondary, #94a3b8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duel-pick-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 72px;
}

.duel-pick-price-val {
  font-size: 0.9375rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.duel-pick-chg {
  font-size: 0.625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.duel-pick-price-val.chg-up,
.duel-pick-chg.chg-up { color: #10b981; }
.duel-pick-price-val.chg-down,
.duel-pick-chg.chg-down { color: #ef4444; }
.duel-pick-price-val.chg-flat,
.duel-pick-chg.chg-flat { color: var(--text-muted, #64748b); }

.duel-pick-enter {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  color: var(--text-faint, rgba(255, 255, 255, 0.3));
  background: var(--surface-hover, rgba(255, 255, 255, 0.04));
  transition: color 0.12s, background 0.12s;
}

.duel-pick-row:hover .duel-pick-enter {
  color: var(--text-primary, #f1f5f9);
}

.duel-picker[data-team="blue"] .duel-pick-row:hover .duel-pick-enter {
  background: rgba(37, 99, 235, 0.2);
  color: #dbeafe;
}

.duel-picker[data-team="orange"] .duel-pick-row:hover .duel-pick-enter {
  background: rgba(249, 115, 22, 0.2);
  color: #ffedd5;
}

.duel-picker-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .duel-picker {
    animation: none;
  }

  .duel-picker-backdrop {
    animation: none;
  }
}

.duel-picker-foot-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-faint, rgba(255, 255, 255, 0.3));
}

.duel-picker-foot-hint i {
  color: #fbbf24;
  font-size: 0.5625rem;
}

.duel-picker-loading,
.duel-picker-empty {
  text-align: center;
  padding: 32px 20px;
  font-size: 0.8125rem;
  color: var(--text-muted, #64748b);
}

.duel-picker-loading i {
  margin-right: 6px;
  opacity: 0.7;
}

/* Light theme — arena surface */
:root[data-mockup-theme-resolved="light"] .duel-arena {
  background: var(--surface-topbar, rgba(255, 255, 255, 0.98));
}

:root[data-mockup-theme-resolved="light"] .duel-fighter--blue {
  border-right-color: rgba(15, 23, 42, 0.08);
}



/* Mobile — align with mockup-global-template push sidebar */
@media (max-width: 1024px) {
  body.duel-page-active .main-container {
    overflow: visible;
  }

  body.duel-page-active #duelSectionRoot {
    left: 0 !important;
    width: 100% !important;
  }

  body.duel-page-active .nav-page {
    max-width: calc(100vw - 180px);
  }

  body.duel-page-active .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 100%;
    cursor: pointer;
    color: var(--text-muted, rgba(255, 255, 255, 0.45));
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-left: -12px;
  }

  body.duel-page-active .topnav {
    padding-left: 16px !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  body.duel-page-active.sidebar-open .topnav {
    transform: translateX(60px);
  }
}

@media (min-width: 1025px) {
  body.duel-page-active .mobile-menu-toggle {
    display: none !important;
  }

  .duel-scroll {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px 16px 24px;
    align-items: start;
  }

  #duelRadarSection {
    grid-column: 1;
    grid-row: 1;
  }

  #duelPriceSection {
    grid-column: 2;
    grid-row: 1;
  }

  #duelTugSection,
  #duelRatioSection,
  #duelVerdictSection {
    grid-column: 1 / -1;
  }

  #duelRadarSection,
  #duelPriceSection {
    padding: 12px;
  }

  #duelRadarSection .duel-card-head,
  #duelPriceSection .duel-card-head {
    margin-bottom: 8px;
  }

  #duelRadarSection .duel-radar-wrap {
    height: 188px;
  }

  #duelPriceSection .duel-widget-wrap {
    height: 168px;
  }
}