:root {
  --bg:           #090f10;
  --surface:      #101a1b;
  --surface-2:    #152122;
  --surface-3:    #1d2e2f;
  --surface-4:    #243839;
  --border:       rgba(255,255,255,0.07);
  --border-md:    rgba(255,255,255,0.12);
  --violet:       #9f53ec;
  --violet-dim:   rgba(159,83,236,0.15);
  --orange:       #ff9d00;
  --orange-dim:   rgba(255,157,0,0.15);
  --blue:         #4fc3f7;
  --blue-dim:     rgba(79,195,247,0.12);
  --blue-glow:    rgba(79,195,247,0.25);
  --green:        #4caf82;
  --green-dim:    rgba(76,175,130,0.15);
  --red:          #ef5350;
  --red-dim:      rgba(239,83,80,0.12);
  --yellow:       #ffd740;
  --yellow-dim:   rgba(255,215,64,0.15);
  --teal:         #26c6da;
  --text:         #cfe0e2;
  --text-dim:     #5a7577;
  --text-mid:     #8aacaf;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-xs:    5px;
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.6);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.4);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.3);
}

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

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin-left: 250px;
  transition: margin-left 0.3s ease;
  overflow-x: hidden;
}
body.sidebar-collapsed { margin-left: 0; }

/* Subtle grid bg texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,195,247,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,195,247,0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════
   TOP BAR
══════════════════════════════════════ */
.topbar {
  height: 52px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  flex-shrink: 0;
  z-index: 100;
  position: sticky;
  top: 0;
}

.topbar-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-bright);
  text-shadow: 0 0 30px rgba(79,195,247,0.35), 0 0 60px rgba(159,83,236,0.1);
}

.topbar-spacer { flex: 1; }

.disclaimer-btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,157,0,0.3);
  background: var(--orange-dim);
  color: var(--orange);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}
.disclaimer-btn:hover {
  background: rgba(255,157,0,0.24);
  border-color: var(--orange);
  box-shadow: 0 0 12px rgba(255,157,0,0.15);
}

.how-to-use-btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(79,195,247,0.3);
  background: var(--blue-dim);
  color: var(--blue);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}
.how-to-use-btn:hover {
  background: rgba(79,195,247,0.22);
  border-color: var(--blue);
  box-shadow: 0 0 12px rgba(79,195,247,0.15);
}

.roadmap-btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(159,83,236,0.4);
  background: var(--violet-dim);
  color: var(--violet);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}
.roadmap-btn:hover {
  background: rgba(159,83,236,0.25);
  border-color: var(--violet);
  box-shadow: 0 0 12px rgba(159,83,236,0.15);
}

/* ══════════════════════════════════════
   MAIN CONTAINER
══════════════════════════════════════ */
.xp-main {
  flex: 1;
  padding: 20px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1600px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════
   TOP SECTION — Pokemon Config + Session
══════════════════════════════════════ */
.top-section {
  display: flex;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
  box-shadow: var(--shadow-lg);
}

.top-sep {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* Pokemon Config Block */
.pokemon-config-block {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.pokemon-preview-area {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pokemon-avatar-wrap { flex-shrink: 0; }

.pokemon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pokemon-circle.selected {
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(79,195,247,0.3);
}
.pokemon-circle img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  display: none;
}
.pokemon-circle img.visible { display: block; }

#pokemon-placeholder {
  font-family: 'Exo 2', sans-serif;
  font-size: 2rem;
  color: var(--text-dim);
}

.pokemon-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pokemon-name-display {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.pokemon-level-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cfg-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.level-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.step-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-xs);
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.step-btn:hover { background: var(--surface-3); color: var(--blue); }

.level-value {
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  min-width: 28px;
  text-align: center;
}

.level-fraction {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: 'Exo 2', sans-serif;
}

/* Exp Share Row */
.exp-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.exp-share-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(0.4);
}

.exp-share-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
}

.coming-soon-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  background: var(--surface-4);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-xs);
  padding: 2px 6px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  cursor: pointer;
}
.toggle-switch.disabled { cursor: not-allowed; opacity: 0.4; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--surface-4);
  border-radius: 20px;
  transition: all 0.2s;
  border: 1px solid var(--border-md);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 2px;
  top: 2px;
  background: var(--text-dim);
  border-radius: 50%;
  transition: all 0.2s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--green);
  border-color: var(--green);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(16px);
  background: #fff;
}

/* Pokemon Search & Grid */
.pokemon-search-wrap { position: relative; }

.cfg-input {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cfg-input::placeholder { color: var(--text-dim); }
.cfg-input:focus {
  border-color: rgba(79,195,247,0.4);
  box-shadow: 0 0 0 3px rgba(79,195,247,0.08);
}
.cfg-input.small { width: 90px; }
.cfg-input.mini  { width: 60px; padding: 5px 8px; }

.pokemon-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 170px;
  overflow-y: auto;
  padding-right: 4px;
}
.pokemon-picker-grid::-webkit-scrollbar { width: 3px; }
.pokemon-picker-grid::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 2px; }

.poke-pick-card {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.15s;
  position: relative;
}
.poke-pick-card:hover {
  border-color: rgba(79,195,247,0.4);
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}
.poke-pick-card.active {
  border-color: var(--blue);
  background: var(--blue-dim);
  box-shadow: 0 0 12px rgba(79,195,247,0.25);
}
.poke-pick-card img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  pointer-events: none;
}
.poke-pick-card .poke-pick-name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.75);
  font-size: 7px;
  font-weight: 700;
  text-align: center;
  padding: 1px 0;
  color: var(--text-bright);
  text-transform: uppercase;
  display: none;
}
.poke-pick-card:hover .poke-pick-name { display: block; }

/* ── Session Config Block ── */
.session-config-block {
  width: 380px;
  flex-shrink: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.session-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.session-fields {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-hint {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.timer-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  transition: border-color 0.2s;
}
.timer-input-wrap:focus-within { border-color: rgba(79,195,247,0.4); }
.timer-input-wrap.mini { padding: 2px 6px; }

.timer-part {
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  width: 42px;
  background: transparent;
  border: none;
  color: var(--blue);
  text-align: center;
  outline: none;
}
.timer-part.mini { font-size: 0.85rem; width: 34px; }
.timer-part::-webkit-inner-spin-button,
.timer-part::-webkit-outer-spin-button { -webkit-appearance: none; }

.timer-colon {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  color: var(--text-dim);
  font-size: 1rem;
}

/* XP Progress Box */
.xp-progress-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.xp-prog-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.xp-prog-row.small { font-size: 0.72rem; }

.xp-prog-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.xp-prog-val {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--yellow);
}

.xp-prog-bar-wrap {
  width: 100%;
  height: 6px;
  background: var(--surface-4);
  border-radius: 3px;
  overflow: hidden;
}

.xp-prog-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Calc Buttons */
.calc-btn-row {
  display: flex;
  gap: 8px;
}

.calc-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.calc-btn.classic {
  border-color: rgba(76,175,130,0.4);
  background: var(--green-dim);
}
.calc-btn.classic:hover {
  background: rgba(76,175,130,0.22);
  border-color: var(--green);
  box-shadow: 0 4px 16px rgba(76,175,130,0.15);
}

.calc-btn.advanced {
  border-color: rgba(159,83,236,0.4);
  background: var(--violet-dim);
}
.calc-btn.advanced:hover {
  background: rgba(159,83,236,0.25);
  border-color: var(--violet);
  box-shadow: 0 4px 16px rgba(159,83,236,0.15);
}

.calc-btn-icon { font-size: 1.5rem; }

.calc-btn-title {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.calc-btn-sub {
  font-size: 0.68rem;
  color: var(--text-mid);
}

/* Passive XP badges */
.passive-xp-info {
  display: flex;
  gap: 6px;
  align-items: center;
}

.passive-xp-badge {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.passive-xp-badge.before8 {
  background: var(--blue-dim);
  border: 1px solid rgba(79,195,247,0.3);
  color: var(--blue);
}
.passive-xp-badge.after8 {
  background: var(--orange-dim);
  border: 1px solid rgba(255,157,0,0.3);
  color: var(--orange);
}
.passive-xp-small {
  font-size: 0.6rem;
  font-weight: 600;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════
   ENEMY CONFIG SECTION
══════════════════════════════════════ */
.enemy-config-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.enemy-config-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  flex-wrap: wrap;
}

.enemy-config-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}

.enemy-config-hint {
  font-size: 0.75rem;
  color: var(--text-mid);
}

.enemy-config-body {
  padding: 14px 16px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.enemy-level-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.enemy-level-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.enemy-level-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.catchup-badge {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-4);
  color: var(--text-dim);
  transition: all 0.2s;
}
.catchup-badge.active {
  background: var(--green-dim);
  border-color: rgba(76,175,130,0.4);
  color: var(--green);
}

.catchup-detail {
  font-size: 0.72rem;
  color: var(--text-dim);
  max-width: 340px;
  line-height: 1.4;
}

.enemy-config-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.75rem;
  color: var(--text-mid);
  line-height: 1.5;
  max-width: 500px;
  flex: 1;
}

.enemy-note-icon { flex-shrink: 0; }

/* ══════════════════════════════════════
   EVENTS SECTION — Kill Queue + Wild Grid
══════════════════════════════════════ */
.events-section {
  display: flex;
  gap: 16px;
  min-height: 340px;
}

.kill-queue-panel {
  width: 300px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.panel-header-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}

.clear-queue-btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(239,83,80,0.3);
  background: var(--red-dim);
  color: var(--red);
  cursor: pointer;
  transition: all 0.15s;
}
.clear-queue-btn:hover { background: rgba(239,83,80,0.2); border-color: var(--red); }

.kill-queue-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.kill-queue-list::-webkit-scrollbar { width: 3px; }
.kill-queue-list::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 2px; }

.empty-queue-hint {
  color: var(--text-dim);
  font-size: 0.78rem;
  text-align: center;
  padding: 24px 12px;
  line-height: 1.5;
}

/* Kill Event Row */
.kill-event-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  transition: border-color 0.15s;
}
.kill-event-row:hover { border-color: rgba(79,195,247,0.25); }

.ker-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.ker-info { flex: 1; min-width: 0; }

.ker-name {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ker-meta {
  font-size: 0.65rem;
  color: var(--text-dim);
  display: flex;
  gap: 6px;
  align-items: center;
}

.ker-xp {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--yellow);
  flex-shrink: 0;
}

.ker-remove {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.ker-remove:hover { background: var(--red-dim); color: var(--red); }

.ker-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.ker-edit  { font-size: 12px; }
.ker-edit:hover  { background: var(--blue-dim) !important; color: var(--blue) !important; }

.ker-dupe  { font-size: 13px; }
.ker-dupe:hover  { background: var(--green-dim) !important; color: var(--green) !important; }

/* Score event row variant */
.kill-event-row.score-row { border-color: rgba(255,215,64,0.2); }
.kill-event-row.score-row .ker-name { color: var(--yellow); }

/* Quick Add Row */
.quick-add-row {
  border-top: 1px solid var(--border);
  padding: 10px;
  flex-shrink: 0;
}

.quick-add-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-add-label {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.quick-add-desc {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.quick-add-fields {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.qaf {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qaf-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
}

.quick-add-btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,215,64,0.3);
  background: var(--yellow-dim);
  color: var(--yellow);
  cursor: pointer;
  transition: all 0.15s;
  align-self: flex-end;
}
.quick-add-btn:hover { background: rgba(255,215,64,0.24); border-color: var(--yellow); }

.playerko-quick { background: rgba(239,83,80,0.05); border-radius: var(--radius-sm); padding: 8px; }
.playerko-btn {
  border-color: rgba(239,83,80,0.35);
  background: var(--red-dim);
  color: var(--red);
}
.playerko-btn:hover { background: rgba(239,83,80,0.2); border-color: var(--red); }

/* Wild Panel */
.wild-panel {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-pills { display: flex; gap: 5px; }
.map-pills.small .map-pill { font-size: 0.7rem; padding: 3px 10px; }

.map-pill {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  white-space: nowrap;
}
.map-pill:hover { background: var(--surface-3); color: var(--text); border-color: var(--border-md); }
.map-pill.active {
  background: var(--blue-dim);
  border-color: rgba(79,195,247,0.4);
  color: var(--blue);
  box-shadow: 0 0 12px rgba(79,195,247,0.12);
}

.wild-grid-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}
.wild-grid-scroll::-webkit-scrollbar { width: 3px; }
.wild-grid-scroll::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 2px; }

.wild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

/* Wild Pokemon Card */
.wild-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
}
.wild-card:hover {
  border-color: rgba(79,195,247,0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.wild-card-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.wild-card-name {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.wild-card-xp {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--yellow);
}
.wild-card-add-btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(79,195,247,0.3);
  background: var(--blue-dim);
  color: var(--blue);
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
}
.wild-card:hover .wild-card-add-btn {
  background: rgba(79,195,247,0.22);
  border-color: var(--blue);
}

/* ══════════════════════════════════════
   RESULT PANEL
══════════════════════════════════════ */
.result-panel {
  background: var(--surface);
  border: 1px solid rgba(79,195,247,0.25);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(79,195,247,0.06);
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.result-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.result-close-btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-md);
  background: var(--surface-4);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
}
.result-close-btn:hover { color: var(--text); border-color: var(--border-md); }

.result-body { padding: 16px; }

.result-summary {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.result-stat-big {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  transition: border-color 0.2s;
}
.result-stat-big:hover { border-color: var(--border-md); }

.rsb-val {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
}
.rsb-val.gold { color: var(--yellow); }
.rsb-val.teal { color: var(--teal); }

.rsb-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Result Breakdown */
.result-breakdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  transition: border-color 0.15s;
}
.breakdown-row:hover { border-color: var(--border-md); }

.bd-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bd-icon { width: 22px; height: 22px; object-fit: contain; }
.bd-name { color: var(--text); }
.bd-meta { color: var(--text-dim); font-size: 0.68rem; }
.bd-xp {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  color: var(--yellow);
}

/* Advanced Sim */
.sim-header-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.sim-timer-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
}
.sim-timer-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.sim-timer-val {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: 0.05em;
}

.xp-prog-box-sim {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Stats row */
.sim-stats-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.sim-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sim-stat-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.sim-stat-val {
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--yellow);
}

.sim-stat-val.stored { color: #8bc34a; }

.stored-stat {
  margin-left: auto;
  background: rgba(139,195,74,0.08);
  border: 1px solid rgba(139,195,74,0.22);
  border-radius: var(--radius-xs);
  padding: 3px 8px;
}

/* Stored XP bar */
.stored-bar-wrap { margin-top: -2px; }

.xp-prog-bar-wrap {
  height: 5px;
  background: var(--surface-4);
  border-radius: 3px;
  overflow: hidden;
}

.xp-prog-bar {
  height: 100%;
  background: var(--blue);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.stored-bar-wrap .xp-prog-bar-wrap { height: 4px; }

.stored-bar {
  background: #8bc34a;
  transition: width 0.2s ease;
}

/* Level + stored badge row */
.sim-level-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sim-level-badge {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--yellow);
}

.sim-stored-badge {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: #8bc34a;
  background: rgba(139,195,74,0.1);
  border: 1px solid rgba(139,195,74,0.28);
  border-radius: 20px;
  padding: 1px 8px;
  animation: storedPulse 2s ease-in-out infinite;
}

@keyframes storedPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.sim-controls {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.sim-ctrl-btn {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-md);
  background: var(--surface-2);
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.sim-ctrl-btn:hover {
  background: var(--surface-3);
  border-color: rgba(79,195,247,0.3);
  color: var(--blue);
}

.sim-log {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sim-log::-webkit-scrollbar { width: 3px; }
.sim-log::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 2px; }

.sim-log-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  animation: fadeSlide 0.25s ease;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.sim-log-time {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  color: var(--blue);
  min-width: 40px;
  font-size: 0.7rem;
}
.sim-log-msg { color: var(--text); flex: 1; }
.sim-log-xp {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  color: var(--yellow);
  font-size: 0.72rem;
}
.sim-log-entry.levelup {
  border-color: rgba(255,215,64,0.35);
  background: var(--yellow-dim);
}
.sim-log-entry.levelup .sim-log-msg { color: var(--yellow); font-weight: 700; }
.sim-log-entry.stored-convert {
  border-color: rgba(139,195,74,0.3);
  background: rgba(139,195,74,0.06);
}
.sim-log-entry.stored-convert .sim-log-msg { color: #8bc34a; }
.sim-log-xp.stored-xp { color: #8bc34a; }

/* ══════════════════════════════════════
   XP REFERENCE TABLE
══════════════════════════════════════ */
.xp-table-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}

.xp-table-scroll {
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
}
.xp-table-scroll::-webkit-scrollbar { width: 3px; height: 3px; }
.xp-table-scroll::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 2px; }

.xp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.xp-table th {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  background: var(--surface-2);
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--border);
}
.xp-table th.col-timer { text-align: left; }

.xp-table td {
  padding: 5px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  white-space: nowrap;
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
}
.xp-table td.col-timer {
  text-align: left;
  font-weight: 700;
  color: var(--text-dim);
}
.xp-table tr:hover td { background: rgba(79,195,247,0.04); }

.xp-table tr.row-highlight td { background: rgba(239,83,80,0.07); }
.xp-table tr.row-highlight td.col-timer { color: var(--red); }

.xp-table th.poke-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 90px;
}
.xp-table th.poke-header img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ══════════════════════════════════════
   MODALS
══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.modal-box {
  background: linear-gradient(160deg, var(--surface-3) 0%, var(--surface-2) 50%, var(--surface) 100%);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  width: 380px;
  max-width: 95vw;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0,0,0,0.5);
  overflow: hidden;
  animation: modalIn 0.22s cubic-bezier(0.34,1.2,0.64,1);
}
@keyframes modalIn {
  from { transform: scale(0.9) translateY(10px); opacity: 0; }
  to   { transform: scale(1) translateY(0);      opacity: 1; }
}
.modal-box.wide { width: 560px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.disclaimer-header { border-bottom-color: rgba(255,157,0,0.2); }
.roadmap-header    { border-bottom-color: rgba(159,83,236,0.2); }

.modal-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.roadmap-title { color: var(--violet); }

.modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-4);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.modal-close:hover { background: var(--red-dim); color: var(--red); border-color: rgba(239,83,80,0.3); }

.modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-pokemon-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.modal-pokemon-preview img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.modal-pokemon-preview span {
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.modal-xp-preview {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--yellow);
  background: var(--yellow-dim);
  border: 1px solid rgba(255,215,64,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  text-align: center;
}

.modal-footer {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.modal-btn {
  flex: 1;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.18s;
}
.modal-btn.confirm {
  background: var(--green-dim);
  border-color: rgba(76,175,130,0.4);
  color: var(--green);
}
.modal-btn.confirm:hover {
  background: rgba(76,175,130,0.24);
  border-color: var(--green);
}
.modal-btn.cancel {
  background: var(--surface-4);
  color: var(--text-mid);
  border-color: var(--border-md);
}
.modal-btn.cancel:hover { color: var(--text); }

/* How To Use modal */
.howto-body { max-height: 70vh; overflow-y: auto; }
.howto-body::-webkit-scrollbar { width: 3px; }
.howto-body::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 2px; }

.howto-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  line-height: 1.5;
}
.howto-step:last-of-type { border-bottom: none; }

.howto-num {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--blue);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(79,195,247,0.3);
  background: var(--blue-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Disclaimer modal */
.disclaimer-intro {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-mid);
  padding: 4px 0;
}

.disclaimer-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.disclaimer-block-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
}

.disclaimer-block p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-mid);
}

.disclaimer-footer-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  padding: 4px 0;
  opacity: 0.7;
}

/* Player KO modal specifics */
.pko-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pko-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pko-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.pko-toggle-row:hover { border-color: rgba(79,195,247,0.25); }
.pko-toggle-row input { margin-top: 2px; accent-color: var(--blue); }

.pko-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pko-toggle-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.pko-toggle-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.pko-unconfirmed { color: var(--orange); }

.pko-catchup-warn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255,157,0,0.07);
  border: 1px solid rgba(255,157,0,0.22);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--orange);
  line-height: 1.5;
}

.pko-breakdown {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.6;
  padding: 4px 2px;
}

/* ══════════════════════════════════════
   ROADMAP MODAL
══════════════════════════════════════ */
.roadmap-intro {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.55;
  padding-bottom: 2px;
}

.roadmap-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s;
}
.roadmap-item:hover { border-color: rgba(159,83,236,0.3); }

.roadmap-item-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.roadmap-item-icon.violet { background: var(--violet-dim); border: 1px solid rgba(159,83,236,0.25); }
.roadmap-item-icon.blue   { background: var(--blue-dim);   border: 1px solid rgba(79,195,247,0.25); }
.roadmap-item-icon.yellow { background: var(--yellow-dim); border: 1px solid rgba(255,215,64,0.25); }
.roadmap-item-icon.green  { background: var(--green-dim);  border: 1px solid rgba(76,175,130,0.25); }

.roadmap-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.roadmap-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.roadmap-item-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}

.roadmap-item-desc {
  font-size: 0.76rem;
  color: var(--text-mid);
  line-height: 1.55;
}

.roadmap-badge {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 9px;
  border-radius: 20px;
  border: 1px solid;
  white-space: nowrap;
}
.roadmap-badge.soon  { background: var(--green-dim);   border-color: rgba(76,175,130,0.35);  color: var(--green); }
.roadmap-badge.next  { background: var(--blue-dim);    border-color: rgba(79,195,247,0.3);   color: var(--blue); }
.roadmap-badge.later { background: var(--violet-dim);  border-color: rgba(159,83,236,0.3);   color: var(--violet); }
.roadmap-badge.wip   { background: var(--yellow-dim);  border-color: rgba(255,215,64,0.3);   color: var(--yellow); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1100px) {
  .session-config-block { width: 320px; }
}

@media (max-width: 860px) {
  body { margin-left: 0; }
  .top-section { flex-direction: column; }
  .session-config-block { width: 100%; }
  .events-section { flex-direction: column; }
  .kill-queue-panel { width: 100%; }
  .pko-fields-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   CREDITS FOOTER
══════════════════════════════════════ */
.credits-footer {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 24px 32px 32px;
  position: relative;
  z-index: 1;
}

.credits-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.credits-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.credits-intro {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 14px;
  line-height: 1.5;
}

.credits-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.credits-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  color: var(--blue);
  font-size: 0.78rem;
  text-decoration: none;
  transition: all 0.18s;
}
.credits-link:hover {
  background: var(--blue-dim);
  border-color: var(--blue);
  color: var(--text-bright);
  box-shadow: var(--shadow-sm);
}

.credits-link-icon { font-size: 0.9rem; }

/* ── Wild card info button ── */
.wild-card-info {
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  user-select: none;
  margin-top: -2px;
}
.wild-card-info:hover { opacity: 1; }

/* ── Fixed-XP info button (Regi/bosses) ── */
.wild-card-info.fixed-xp-info {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Exo 2', sans-serif;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--violet-dim);
  border: 1px solid rgba(159,83,236,0.45);
  color: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.85;
  transition: background 0.15s, opacity 0.15s;
  user-select: none;
  margin-top: 0;
  flex-shrink: 0;
}
.wild-card-info.fixed-xp-info:hover {
  opacity: 1;
  background: rgba(159,83,236,0.3);
}

/* ── Fixed-XP notice in kill modal ── */
.fixed-xp-notice {
  background: var(--violet-dim);
  border: 1px solid rgba(159,83,236,0.28);
  border-radius: var(--radius-sm);
  color: var(--violet);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 10px 14px;
  margin: 0 0 14px 0;
}

/* ── Player KO role picker ── */
.pko-role-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.pko-role-option {
  flex: 1;
  cursor: pointer;
}

.pko-role-option input[type="radio"] { display: none; }

.pko-role-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.15s;
  text-align: center;
  user-select: none;
}

.pko-role-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
}

.pko-role-option input[type="radio"]:checked + .pko-role-btn {
  border-color: var(--violet);
  background: var(--violet-dim);
  color: var(--violet);
}
.pko-role-option input[type="radio"]:checked + .pko-role-btn .pko-role-sub {
  color: var(--violet);
}
.pko-role-option:hover .pko-role-btn {
  border-color: rgba(159,83,236,0.35);
  color: var(--text);
}

/* ── Player KO allies nearby row ── */
.pko-allies-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

/* ── Global scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 3px; }