:root {
  color-scheme: dark;
  --font-sans: "Barlow", "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-serif: "Spectral", Georgia, serif;
  --oow-bg: var(--dm-bg, #0c0910);
  --oow-surface: var(--dm-surface, #100d14);
  --oow-surface-raised: var(--dm-surface-raised, #151119);
  --oow-border: var(--dm-border, rgba(255, 255, 255, 0.08));
  --oow-border-hover: var(--dm-border-hover, rgba(245, 217, 122, 0.28));
  --oow-text: var(--dm-text, #d7d0dd);
  --oow-text-strong: var(--dm-text-strong, #f4f0f6);
  --oow-text-muted: var(--dm-muted, #918899);
  --oow-gold: var(--dm-gold, #f5d97a);
  --oow-violet: var(--dm-violet, #a77add);
  --oow-mint: var(--dm-positive, #7fd2af);
  --oow-danger: var(--dm-negative, #df899b);
  --oow-radius-xs: var(--dm-radius-xs, 4px);
  --oow-radius-sm: var(--dm-radius-sm, 6px);
  --oow-radius-md: var(--dm-radius-md, 8px);
  --oow-radius-lg: var(--dm-radius-lg, 10px);
  --oow-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html, body {
  min-height: 100%;
  height: auto !important;
}
body {
  margin: 0;
  background: var(--oow-bg);
  font-family: var(--font-sans);
  color: var(--oow-text);
}

#dc-root, #dc-root > .sc-host {
  height: auto !important;
  min-height: 100%;
  display: block;
}

.datamine-footer {
  position: relative;
  z-index: 10;
  clear: both;
  margin-top: 48px;
}

button, input, select { font: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible,
.oow-page a:focus-visible, [data-oow-dialog]:focus-visible {
  outline: 2px solid var(--oow-gold);
  outline-offset: 2px;
}

.oow-runtime-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 139, .32);
  border-radius: 10px;
  background: rgba(255, 107, 139, .08);
  color: #f4c7d1;
  font: 600 12px/1.45 var(--font-sans);
}

.oow-runtime-error button {
  flex: none;
  border: 1px solid rgba(255, 107, 139, .4);
  border-radius: 8px;
  background: rgba(255, 107, 139, .14);
  color: #ffd7df;
  padding: 7px 11px;
  font: 700 11px/1 var(--font-sans);
  cursor: pointer;
}
.oow-page a { color: var(--oow-gold); text-decoration: none; }
.oow-page a:hover { color: #ffe9a8; }

@keyframes oowpulse { 0%,100% { transform: scale(.85); opacity: .6; } 50% { transform: scale(1.35); opacity: 1; } }
@keyframes oowdrawer { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes oowdrawerexpand { from { grid-template-rows: 0fr; opacity: 0; } to { grid-template-rows: 1fr; opacity: 1; } }
@keyframes oowmodal { from { opacity: 0; transform: scale(.97) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes oowfade { from { opacity: 0; } to { opacity: 1; } }

.oow-floor-drawer {
  display: grid;
  grid-template-rows: 1fr;
  animation: oowdrawerexpand .32s var(--oow-ease) both;
}

.oow-floor-drawer__clip {
  min-height: 0;
  overflow: hidden;
}

.oow-chart-theme-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.oow-chart-theme-control__label {
  color: var(--oow-text-muted);
  font: 600 11px/1 var(--font-sans);
  letter-spacing: .02em;
}

.oow-chart-theme-switch {
  display: flex;
  gap: 2px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--oow-border);
  border-radius: var(--oow-radius-sm);
  background: var(--oow-surface);
}

.oow-chart-theme-switch__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 68px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--oow-radius-xs);
  background: transparent;
  color: var(--oow-text-muted);
  font: 600 11px/1 var(--font-sans);
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}

.oow-chart-theme-switch__button:hover {
  color: var(--oow-text-strong) !important;
}

.oow-chart-theme-switch__button[aria-pressed="true"] {
  background: var(--oow-gold);
  color: #17111f !important;
}

.oow-chart-theme-switch__icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.oow-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.oow-charts-grid [data-chart-card] {
  will-change: transform;
}

.oow-chart-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.oow-chart-export-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--oow-border);
  border-radius: var(--oow-radius-sm);
  background: var(--oow-surface);
  color: var(--oow-text);
  font: 600 11px/1 var(--font-sans);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.oow-chart-export-button--primary {
  border-color: var(--oow-gold);
  background: var(--oow-gold);
  color: #17111f;
}

.oow-chart-export-button--compact {
  min-width: 44px;
  min-height: 28px;
  padding: 0 8px;
}

.oow-chart-export-button:hover {
  border-color: var(--oow-border-hover);
  background: var(--oow-surface-raised);
  color: var(--oow-text-strong);
}

.oow-chart-export-button--primary:hover {
  background: #ffe87a;
  color: #17111f;
}

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

.oow-subchart-export-actions,
.oow-subchart-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.oow-subchart-tools {
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#oow-boss-floating-art {
  position: absolute;
  left: calc(50vw + 735px);
  top: 78px;
  z-index: 15;
  pointer-events: none;
  user-select: none;
  width: calc(50vw - 755px);
  max-width: 220px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#oow-boss-floating-art img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.6));
}

@media (max-width: 1740px) {
  #oow-boss-floating-art { display: none !important; }
}

@media (max-width: 900px) {
  .oow-main-layout { flex-direction: column !important; align-items: stretch !important; gap: 14px !important; }
  .oow-main-layout > * { min-width: 0 !important; max-width: 100% !important; }
  .oow-season-aside { width: 100% !important; height: auto !important; max-height: 240px !important; position: static !important; }
  .oow-season-rail-scroll { max-height: 190px !important; }
  #oow-boss-floating-art { display: none !important; }
  .oow-main-wrap { padding-left: 12px !important; padding-right: 12px !important; }
  .oow-mob-card { padding: 10px 12px !important; gap: 10px !important; }
  .oow-mob-avatar { width: 50px !important; height: 50px !important; min-height: 50px !important; max-height: 56px !important; border-radius: 10px !important; }
  .oow-mob-ehp-val { font-size: 20px !important; }
  .oow-mob-hp-val { font-size: 14px !important; }
  .oow-affixes-grid { grid-template-columns: 1fr !important; }
  .oow-chart-controls, .oow-charts-grid { grid-template-columns: 1fr !important; }
  .oow-table-panel { width: 100% !important; max-width: 100% !important; min-width: 0 !important; overflow-x: auto !important; }
  .oow-floor-grid { min-width: 880px; }
  .oow-diff-grid { min-width: 780px; }
  .oow-element-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .oow-chart-theme-control { width: 100%; margin-left: 0; justify-content: space-between; }
}

@media (max-width: 600px) {
  .oow-mob-card { flex: 1 1 100% !important; min-width: 0 !important; }
  .oow-mob-hp-col { min-width: 82px !important; }
  .oow-mob-hp-val { font-size: 18px !important; }
  .oow-mob-ehp-val { font-size: 15px !important; }
  .oow-element-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .oow-chart-actions { justify-content: flex-start; }
  .oow-chart-export-button { flex: 1; }
  .oow-chart-actions > span { width: 100%; text-align: center; }
  .oow-subchart-header { flex-direction: column; }
  .oow-subchart-export-actions { width: 100%; }
  .oow-subchart-tools { width: 100%; justify-content: flex-start; }
  .oow-primary-grid { grid-template-columns: 1fr !important; }
  .oow-modal-header { padding: 16px 16px !important; gap: 12px !important; }
  .oow-modal-header img { width: 64px !important; height: 64px !important; }
  .oow-modal-body { padding: 16px !important; }

  .oow-floor-grid {
    grid-template-columns: 72px 115px 105px 52px 1fr 44px !important;
    min-width: 580px !important;
  }
  .oow-floor-grid__main-enemies-th,
  .oow-floor-grid__main-enemies {
    display: none !important;
  }

  .oow-diff-grid {
    grid-template-columns: 44px 56px minmax(120px, 1fr) 104px 34px !important;
    min-width: 400px !important;
  }
  .oow-diff-grid > *:nth-child(6) { display: none !important; }
  .oow-diff-grid > * { padding: 9px 8px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Sticky Seasons Sidebar Rail */
.oow-page {
  /* 65px measured shared Datamine header + 11px visual clearance. */
  --oow-season-sticky-top: 76px;
  /* Header + OOW title/mode row + tabs place the rail at ~188px on desktop. */
  --oow-season-layout-top: 188px;
  --oow-season-sticky-bottom-gap: 20px;
}

@media (min-width: 901px) {
  .oow-main-layout {
    /*
     * Give the sticky tool enough containing-block travel even when a short
     * filter/tab makes the right column shorter than the viewport-height rail.
     */
    min-height: calc(100dvh - var(--oow-season-sticky-top) - var(--oow-season-sticky-bottom-gap));
    margin-bottom: 24px;
  }

  .oow-content-column {
    padding-bottom: 0;
  }
}

.oow-season-aside {
  position: sticky;
  top: var(--oow-season-sticky-top);
  width: 236px;
  min-width: 236px;
  flex: none;
  align-self: flex-start;
  height: calc(100vh - var(--oow-season-sticky-top) - var(--oow-season-sticky-bottom-gap));
  max-height: calc(100dvh - var(--oow-season-sticky-top) - var(--oow-season-sticky-bottom-gap));
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.oow-season-aside__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  flex: none;
}

.oow-season-rail-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 6px;
  padding-bottom: 10px;
}
.oow-season-rail-scroll > button { width: 100%; text-align: left; }

/* Boss Mechanics Card in OOW Modal (Always Expanded) */
.oow-mechanics-section {
  margin-bottom: 20px;
}

.oow-mechanics-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.oow-mechanics-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.oow-mechanics-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.oow-mechanics-title {
  font: 700 11px/1 'Manrope', var(--font-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--oow-gold);
}

.oow-mechanics-badge {
  font: 800 10px/1 var(--font-mono);
  color: #f6f1fb;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Compact in-game-style socket marker used instead of a textual "Type N" chip. */
.oow-affix-card {
  position: relative;
}

.oow-slot-mark {
  position: absolute;
  top: 12px;
  left: 7px;
  z-index: 2;
  display: block;
  width: 15px;
  height: 13px;
  transform: translate(-2px, -2px);
  pointer-events: none;
}

.oow-slot-mark--unknown {
  display: none;
}

.oow-slot-mark__dot {
  position: absolute;
  display: block;
  box-sizing: border-box;
}

.oow-slot-mark__dot {
  width: 3px;
  height: 3px;
  border: 1px solid rgba(221, 235, 238, 0.72);
  border-radius: 999px;
  background: rgba(180, 196, 201, 0.34);
}

.oow-slot-mark__dot--1 { left: 3px; top: 0; }
.oow-slot-mark__dot--2 { right: 3px; top: 0; }
.oow-slot-mark__dot--3 { left: 0; top: 5px; }
.oow-slot-mark__dot--4 { right: 0; top: 5px; }
.oow-slot-mark__dot--5 { left: 3px; bottom: 0; }
.oow-slot-mark__dot--6 { right: 3px; bottom: 0; }

.oow-slot-mark--type_1 .oow-slot-mark__dot--1,
.oow-slot-mark--type_2 .oow-slot-mark__dot--2,
.oow-slot-mark--type_3 .oow-slot-mark__dot--3,
.oow-slot-mark--type_4 .oow-slot-mark__dot--4,
.oow-slot-mark--type_5 .oow-slot-mark__dot--5,
.oow-slot-mark--type_6 .oow-slot-mark__dot--6 {
  border-color: #c8f7fa;
  background: #6edbe4;
  box-shadow: 0 0 6px rgba(82, 220, 232, 0.72);
}

.oow-mechanics-panel {
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.22);
}

.oow-mechanics-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.oow-mechanics-item {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font: 500 12px/1.4 var(--font-sans);
  color: var(--oow-text);
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.oow-mechanics-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.oow-mechanics-num {
  font: 800 10.5px/1.2 var(--font-mono);
  color: var(--mechanics-accent-color, var(--oow-gold));
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 2px 5px;
  flex: none;
  letter-spacing: 0.02em;
}

.oow-mechanics-text {
  flex: 1;
  min-width: 0;
  color: #e5def0;
}

.oow-mechanics-accent {
  color: #ff6b8b;
  font-weight: 700;
}

.oow-mechanics-footer {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-end;
}

.oow-mechanics-fce-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 600 11px/1 'Manrope', var(--font-sans);
  color: #948aa8;
  transition: color .15s ease;
}

.oow-mechanics-fce-link:hover {
  color: var(--oow-gold);
}

.oow-mechanics-loader {
  font: 500 12px/1.4 var(--font-sans);
  color: #948aa8;
  padding: 12px 4px;
  text-align: center;
}

.oow-mechanics-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: 500 12px/1.4 var(--font-sans);
  color: #ff8fa8;
  background: rgba(255, 107, 139, 0.06);
  border: 1px solid rgba(255, 107, 139, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
}

.oow-mechanics-retry {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f6f1fb;
  font: 600 11px/1 var(--font-sans);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .15s ease;
}

.oow-mechanics-retry:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Lineup Mob/Boss Avatar */
.oow-mob-avatar {
  align-self: stretch;
  width: 58px;
  height: 58px;
  min-height: 58px;
  max-height: 74px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 30%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex: none;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .oow-mob-avatar {
    width: 52px;
    height: 52px;
    min-height: 52px;
    max-height: 56px;
  }
}

/* Mob/Boss Modal Card */
.oow-modal-card {
  width: 640px;
  max-width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(24, 16, 34, 0.98), rgba(14, 9, 20, 0.98));
  border-radius: 18px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
  animation: oowmodal .2s cubic-bezier(.16, 1, .3, 1);
  overscroll-behavior: contain;
}

/* Neutral styled fallback placeholder for missing/broken mob and boss portraits */
.oow-img-fallback-placeholder {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.oow-img-fallback-placeholder::after {
  content: "";
  width: 44%;
  height: 44%;
  opacity: 0.18;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2a5 5 0 105 5 5 5 0 00-5-5zm0 12c-5.33 0-8 2.67-8 4v2h16v-2c0-1.33-2.67-4-8-4z'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2a5 5 0 105 5 5 5 0 00-5-5zm0 12c-5.33 0-8 2.67-8 4v2h16v-2c0-1.33-2.67-4-8-4z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Progressive Image Loading & Avatars */
.progressive-image {
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.progressive-image.is-thumb {
  filter: blur(2px);
}
.progressive-image.is-loaded {
  filter: none;
}
.progressive-image.is-placeholder {
  filter: grayscale(0.6) opacity(0.85);
}

.oow-season-pill {
  width: 100%;
  text-align: left;
  /* The rail is a column flexbox; without this, ~23 pills get flex-shrunk to fit and
     the cards look crushed. flex:none keeps each card at its natural size instead. */
  flex: none;
  border: 1px solid var(--oow-border, rgba(255, 255, 255, 0.08));
  background: rgba(18, 14, 24, 0.78);
  border-radius: 10px;
  padding: 8px 10px 8px 8px;
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.16s ease,
              background 0.16s ease,
              box-shadow 0.16s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.oow-season-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 217, 122, 0.35);
  background: rgba(26, 20, 36, 0.94);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 12px rgba(245, 217, 122, 0.08);
}

.oow-season-pill[data-active-pill="1"] {
  background: linear-gradient(135deg, rgba(245, 217, 122, 0.08), rgba(167, 122, 221, 0.05)), rgba(22, 17, 30, 0.96) !important;
  border-color: rgba(245, 217, 122, 0.55) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 12px rgba(245, 217, 122, 0.08) !important;
}

.oow-season-pill__header {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

/* Round avatar with bounded dimensions and subtle 1px frame */
.oow-season-pill-avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.oow-season-pill-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  border-radius: 50%;
}

.oow-season-pill__identity {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3.5px;
  width: 100%;
}

.oow-season-pill__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.oow-season-pill__row--top {
  align-items: center;
}

.oow-season-pill__row--sub {
  align-items: baseline;
}

.oow-season-pill__title {
  display: flex;
  align-items: center;
  gap: 4.5px;
  font: 700 14px/1.15 var(--font-sans, "Manrope", sans-serif);
  letter-spacing: -0.01em;
  min-width: 0;
}

.oow-season-pill__dot {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  flex: none;
  transition: transform 0.16s ease;
}

.oow-season-pill[data-active-pill="1"] .oow-season-pill__dot {
  transform: scale(1.15);
}

/* Quiet metadata chip: top right */
.oow-season-pill__floors {
  font: 600 10px/1 var(--font-mono, "JetBrains Mono", monospace);
  color: #8e859b;
  background: rgba(255, 255, 255, 0.04);
  padding: 1.5px 4.5px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.oow-season-pill[data-active-pill="1"] .oow-season-pill__floors {
  color: rgba(240, 235, 248, 0.75);
  border-color: rgba(245, 217, 122, 0.2);
  background: rgba(245, 217, 122, 0.06);
}

/* Bottom left: secondary strong numeric value (clean 22.6G without EHP text) */
.oow-season-pill__stat-val {
  font: 600 13px/1.15 var(--font-mono, "JetBrains Mono", monospace);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #c8c0d4;
  flex-shrink: 0;
  text-align: left;
}

.oow-season-pill[data-active-pill="1"] .oow-season-pill__stat-val {
  color: #f6f1fb;
  font-weight: 700;
}

/* Bottom right: date range */
.oow-season-pill__date {
  font: 500 10.5px/1.15 var(--font-mono, "JetBrains Mono", monospace);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: auto;
  text-align: right;
  letter-spacing: -0.02em;
  opacity: 0.72;
  color: #8e859b;
}

.oow-season-pill[data-active-pill="1"] .oow-season-pill__date {
  opacity: 0.9;
  color: #d8d2e0;
}

/* Light theme overrides */
[data-theme="light"] .oow-season-pill,
.theme-light .oow-season-pill {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .oow-season-pill:hover,
.theme-light .oow-season-pill:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(180, 130, 20, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .oow-season-pill[data-active-pill="1"],
.theme-light .oow-season-pill[data-active-pill="1"] {
  background: linear-gradient(135deg, rgba(245, 217, 122, 0.25), rgba(167, 122, 221, 0.15)), #ffffff !important;
  border-color: rgba(180, 130, 20, 0.6) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 0 12px rgba(245, 217, 122, 0.2) !important;
}

[data-theme="light"] .oow-season-pill-avatar,
.theme-light .oow-season-pill-avatar {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .oow-season-pill__floors,
.theme-light .oow-season-pill__floors {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .oow-season-pill__footer,
.theme-light .oow-season-pill__footer {
  border-top-color: rgba(0, 0, 0, 0.06);
}

/* Chart Scroll Wrapper for Responsive Narrow Viewports */
.oow-chart-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Elemental Resistance Cards in Enemy Details Modal */
.oow-element-grid > div {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.oow-element-grid img,
.oow-element-grid .progressive-image {
  display: block !important;
  margin: 0 auto !important;
  width: 22px !important;
  height: 22px !important;
  object-fit: contain !important;
}

/* Main Enemies Chips in Floor Table */
.oow-main-enemies-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  max-width: 100%;
}

.oow-enemy-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0;
  max-width: 100%;
  box-sizing: border-box;
  vertical-align: middle;
}

.oow-enemy-chip__avatar {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  object-fit: contain;
  flex: 0 0 18px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
  display: block;
}

.oow-enemy-chip__name {
  font: 600 13px/1.3 var(--font-sans);
  color: var(--oow-text-strong, #ded7e9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oow-enemy-chip__count {
  display: inline-flex;
  align-items: center;
  font: 500 12.5px/1.3 var(--font-sans);
  color: var(--oow-text-muted, #948aa8);
  background: transparent;
  border: none;
  padding: 0;
  white-space: nowrap;
}

.oow-enemy-chip__separator {
  color: var(--oow-text-muted, #7a7290);
  font: 500 12px/1 var(--font-sans);
  margin: 0 3px;
  user-select: none;
}

/* Boss / Enemy Image Zoom Modal (Sequential-Matched Style) */
.oow-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: oowfade 0.15s ease;
}

.oow-zoom-modal__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.oow-zoom-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 92vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(24, 16, 34, 0.98), rgba(14, 9, 20, 0.98));
  border: 1px solid rgba(245, 217, 122, 0.24);
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 16px;
  gap: 12px;
  animation: oowmodal 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.oow-zoom-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.oow-zoom-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #f4f0f6;
}

.oow-zoom-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e5e0ec;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.oow-zoom-modal__close:hover {
  background: rgba(245, 217, 122, 0.12);
  color: var(--oow-gold, #f5d97a);
  border-color: rgba(245, 217, 122, 0.35);
}

.oow-zoom-modal__body {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #09070f;
  border: 1px solid var(--oow-border, rgba(255, 255, 255, 0.08));
  padding: 16px;
  min-height: 200px;
}

.oow-zoom-modal__img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}



