/**
 * POST-BATTLE WIZARD CSS v5.0
 * Vollstaendig ueberarbeitet fuer bessere Lesbarkeit und UX
 */

/* ============================================
   POST-BATTLE WIZARD CONTAINER
   ============================================ */
.pbw-container {
  background: var(--bg-card, #1a1a1a);
  border: 2px solid var(--color-blood, #8b0000);
  border-radius: 12px;
  overflow: visible;
}

.pbw-header {
  background: linear-gradient(135deg, var(--color-blood, #8b0000) 0%, #5a0000 100%);
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.pbw-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pbw-icon {
  font-size: 2rem;
}

.pbw-title h2 {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--color-gold, #c9a959);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.pbw-matchup {
  margin: 4px 0 0 0;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.pbw-winner {
  background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
  color: #1a1a1a;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ============================================
   PROGRESS TRACK - VERBESSERTE LESBARKEIT
   ============================================ */
.progress-track {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.4);
  gap: 0;
  flex-wrap: wrap;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  background: rgba(40,40,40,0.9);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  min-width: 110px;
  transition: all 0.3s ease;
}

.progress-step .step-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}

.progress-step .step-icon {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.progress-step .step-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

.progress-step.active {
  background: var(--color-gold, #c9a959);
  border-color: var(--color-gold, #c9a959);
}

.progress-step.active .step-number,
.progress-step.active .step-icon,
.progress-step.active .step-label {
  color: #1a1a1a;
}

.progress-step.done {
  background: #2e7d32;
  border-color: #4caf50;
}

.progress-step.done .step-number,
.progress-step.done .step-icon,
.progress-step.done .step-label {
  color: white;
}

.step-connector {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

.progress-step.done + .step-connector {
  background: #4caf50;
}

/* ============================================
   CONTENT AREA
   ============================================ */
.pbw-content {
  padding: 25px;
  min-height: 400px;
}

.step-content {
  animation: fadeIn 0.3s ease;
}

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

.step-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(201, 169, 89, 0.3);
}

.step-header h3 {
  margin: 0 0 8px 0;
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--color-gold, #c9a959);
}

.step-header p {
  margin: 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

/* Rules Boxes */
.injury-rules-box,
.xp-rules-box,
.exploration-rules-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.rule-item {
  padding: 8px 14px;
  background: rgba(201, 169, 89, 0.1);
  border: 1px solid rgba(201, 169, 89, 0.3);
  border-radius: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
}

.rule-item strong {
  color: var(--color-gold, #c9a959);
}

.rule-item.hero-rule {
  background: rgba(139, 0, 0, 0.2);
  border-color: rgba(139, 0, 0, 0.4);
}

.rule-item.hench-rule {
  background: rgba(46, 125, 50, 0.2);
  border-color: rgba(46, 125, 50, 0.4);
}

/* Section Titles */
.section-title {
  margin: 0;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  font-family: 'Cinzel', serif;
  color: var(--color-gold, #c9a959);
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Warband Sections */
.warband-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 1000px) {
  .warband-sections {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   STEP 1: INJURIES - BREITERE CARDS
   ============================================ */
.injury-section {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: visible;
}

.no-casualties {
  padding: 30px;
  text-align: center;
  color: #81c784;
  font-size: 1.1rem;
}

.injury-list {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.injury-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: visible;
  transition: border-color 0.3s ease;
}

.injury-card.rolled {
  border-color: rgba(201, 169, 89, 0.5);
}

.injury-card.is-dead {
  border-color: #c62828;
  background: rgba(198, 40, 40, 0.1);
}

.injury-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.warrior-icon {
  font-size: 1.2rem;
}

.warrior-name {
  flex: 1;
  font-weight: 600;
  color: white;
  word-break: break-word;
}

.warrior-type-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.warrior-type-badge.hero {
  background: var(--color-blood, #8b0000);
  color: white;
}

.warrior-type-badge.henchman {
  background: #2e7d32;
  color: white;
}

.injury-card-body {
  padding: 15px 16px;
}

.injury-input label {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

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

.d66-input {
  width: 70px;
  padding: 10px;
  background: rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: white;
  font-size: 1.1rem;
  text-align: center;
}

.d66-input:focus {
  outline: none;
  border-color: var(--color-gold, #c9a959);
}

.dice-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dice-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dice-btn.danger {
  background: #c62828;
  color: white;
}

.dice-btn.danger:hover {
  background: #e53935;
  transform: scale(1.1);
}

.dice-btn.success {
  background: #2e7d32;
  color: white;
}

.dice-btn.success:hover {
  background: #43a047;
  transform: scale(1.1);
}

.dice-btn.small {
  width: 36px;
  height: 36px;
  font-size: 1rem;
  background: rgba(255,255,255,0.1);
  color: white;
}

.dice-btn.small:hover {
  background: var(--color-gold, #c9a959);
  color: #1a1a1a;
}

.dice-hint {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.injury-result {
  padding: 15px;
  border-radius: 8px;
}

.injury-result.dead {
  background: rgba(198, 40, 40, 0.3);
  border: 1px solid #c62828;
}

.injury-result.recovery {
  background: rgba(46, 125, 50, 0.3);
  border: 1px solid #2e7d32;
}

.injury-result.injured {
  background: rgba(183, 149, 11, 0.2);
  border: 1px solid #b7950b;
}

.injury-result.survives {
  background: rgba(46, 125, 50, 0.2);
  border: 1px solid #2e7d32;
}

.injury-result.needs-subroll {
  border-color: #ff9800;
}

.result-roll {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.9);
}

.result-text {
  color: white;
  font-size: 0.95rem;
  line-height: 1.4;
}

.btn-reset {
  margin-top: 12px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

/* Sub-Roll Styles */
.sub-roll-needed {
  margin-top: 15px;
  padding: 15px;
  background: rgba(255, 152, 0, 0.15);
  border: 2px solid rgba(255, 152, 0, 0.5);
  border-radius: 8px;
}

.sub-roll-instruction {
  margin: 0 0 12px;
  color: #ffb74d;
  font-weight: 600;
  font-size: 0.95rem;
}

.sub-roll-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sub-roll-input-row label {
  margin: 0;
  color: white;
}

.sub-roll-result {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(76, 175, 80, 0.2);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sub-roll-label {
  font-weight: 600;
  color: #81c784;
}

.sub-roll-effect {
  color: white;
  font-size: 0.9rem;
}

/* Multi-Injury Styles */
.injury-result.multi-pending,
.injury-result.multi-in-progress {
  background: rgba(139, 0, 0, 0.2);
  border: 2px solid #8b0000;
}

.multi-count-input {
  margin-top: 15px;
}

.multi-warning {
  margin: 0 0 12px;
  color: #ef9a9a;
  font-weight: 600;
}

.multi-rolls-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.multi-roll-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  flex-wrap: wrap;
}

.multi-roll-item.pending {
  border: 1px dashed rgba(255,255,255,0.3);
}

.multi-roll-item.done {
  border: 1px solid rgba(255,255,255,0.2);
}

.multi-roll-item.done.dead {
  background: rgba(198, 40, 40, 0.3);
  border-color: #c62828;
}

.multi-roll-item.done.recovery {
  background: rgba(46, 125, 50, 0.3);
  border-color: #2e7d32;
}

.roll-number {
  font-weight: 700;
  color: var(--color-gold, #c9a959);
  min-width: 30px;
}

.roll-result {
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.roll-text {
  flex: 1;
  color: white;
  font-size: 0.9rem;
}

.d66-input-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.d6-input.small {
  width: 50px;
  padding: 8px;
  font-size: 0.95rem;
}

.injury-result.multi-resolved {
  border: 2px solid;
}

.death-notice {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ef5350;
  margin-bottom: 10px;
}

.multi-effects-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.multi-effect {
  padding: 6px 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  font-size: 0.9rem;
}

.stat-mods-summary {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
}

.stat-mod {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  margin-right: 8px;
}

.stat-mod.negative {
  background: rgba(198, 40, 40, 0.3);
  color: #ef9a9a;
}

.stat-mod.positive {
  background: rgba(46, 125, 50, 0.3);
  color: #81c784;
}

/* ============================================
   STEP 2: EXPERIENCE - VERBESSERTE AUSRICHTUNG
   ============================================ */
.xp-section {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: visible;
}

.xp-section.is-winner {
  border-color: var(--color-gold, #c9a959);
}

.xp-header {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.xp-list {
  padding: 15px;
}

.xp-category-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.xp-category-label:not(:first-child) {
  margin-top: 20px;
}

.xp-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  margin-bottom: 8px;
}

.xp-row.will-level {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.xp-name {
  font-weight: 600;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.xp-current {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  min-width: 100px;
}

.xp-level {
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold, #c9a959);
}

.xp-amount {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  min-width: 45px;
  text-align: right;
}

.xp-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-xp {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-xp:hover {
  background: var(--color-gold, #c9a959);
  color: #1a1a1a;
}

.xp-earned {
  font-weight: 700;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  min-width: 35px;
  text-align: center;
}

.xp-earned.has-xp {
  color: #81c784;
}

.level-up-badge {
  background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
  color: #1a1a1a;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ============================================
   STEP 3: EXPLORATION
   ============================================ */
.exploration-section {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: visible;
}

.exploration-section.is-winner {
  border-color: var(--color-gold, #c9a959);
}

.exploration-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dice-count-badge {
  background: rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

.dice-input-area {
  padding: 20px;
}

.dice-input-area p {
  margin: 0 0 12px;
  color: rgba(255,255,255,0.8);
}

.exploration-dice-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.exploration-die {
  width: 55px;
  height: 55px;
  padding: 8px;
  background: rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
}

.exploration-die:focus {
  outline: none;
  border-color: var(--color-gold, #c9a959);
}

.exploration-results {
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.1);
}

.dice-display {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.die-value {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold, #c9a959);
  color: #1a1a1a;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.2rem;
}

.dice-sum {
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
  margin-left: 10px;
}

.shards-found {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background: linear-gradient(135deg, rgba(63, 81, 181, 0.2) 0%, rgba(48, 63, 159, 0.2) 100%);
  border: 1px solid rgba(63, 81, 181, 0.4);
  border-radius: 10px;
  margin-bottom: 15px;
}

.shards-icon {
  font-size: 2rem;
}

.shards-count {
  font-size: 2rem;
  font-weight: 700;
  color: #7986cb;
}

.shards-label {
  font-size: 1.1rem;
  color: white;
}

/* Wyrdstone Bonus (z.B. Dwarf Treasure Hunters +1) */
.wyrdstone-bonus-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(194, 162, 39, 0.3) 0%, rgba(139, 115, 32, 0.3) 100%);
  border: 1px solid rgba(194, 162, 39, 0.6);
  border-radius: 20px;
}

.wyrdstone-bonus-note .bonus-badge {
  font-size: 1.1rem;
  font-weight: 700;
  color: #c9a227;
}

.wyrdstone-bonus-note .bonus-source {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

/* Exploration Events */
.exploration-event {
  background: rgba(46, 125, 50, 0.15);
  border: 2px solid rgba(76, 175, 80, 0.5);
  border-radius: 10px;
  padding: 20px;
  margin-top: 15px;
}

.exploration-event.handled {
  border-color: rgba(76, 175, 80, 0.8);
  background: rgba(46, 125, 50, 0.25);
}

.event-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.event-badge {
  background: #ff9800;
  color: #1a1a1a;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.event-badge.secondary {
  background: rgba(255, 152, 0, 0.5);
  color: white;
  font-size: 0.8rem;
}

.event-name {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--color-gold, #c9a959);
}

.event-description {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.event-description.small {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0;
}

.warband-specific-effect {
  background: rgba(139, 0, 0, 0.2);
  border: 1px solid rgba(139, 0, 0, 0.4);
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 15px;
}

.warband-specific-effect strong {
  color: var(--color-gold, #c9a959);
  display: block;
  margin-bottom: 6px;
}

.warband-specific-effect p {
  margin: 0;
  color: white;
}

.event-handler {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.event-handler p {
  margin: 0 0 12px;
  color: rgba(255,255,255,0.8);
}

.dice-conversion-hint {
  font-size: 0.85rem !important;
  color: #ffb74d !important;
  background: rgba(255, 152, 0, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px !important;
}

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

.event-die {
  width: 60px;
  padding: 10px;
  background: rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: white;
  font-size: 1.1rem;
  text-align: center;
}

.event-die:focus {
  outline: none;
  border-color: var(--color-gold, #c9a959);
}

.ld-test-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ld-test-section {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed rgba(255,255,255,0.2);
}

.ld-test-section p {
  color: white;
}

.event-rewards {
  margin-top: 15px;
  padding: 15px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}

.event-rewards h5 {
  margin: 0 0 10px;
  color: var(--color-gold, #c9a959);
  font-size: 0.95rem;
}

.reward-item {
  padding: 6px 0;
  color: white;
  font-size: 0.95rem;
}

.additional-multiples {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.additional-multiples h5 {
  margin: 0 0 12px;
  color: rgba(255,255,255,0.8);
}

.additional-multiple-event {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 10px;
}

/* Wyrdstone Chart */
.wyrdstone-chart-compact {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 15px 20px;
  margin-top: 20px;
}

.wyrdstone-chart-compact h4 {
  margin: 0 0 12px;
  color: var(--color-gold, #c9a959);
  font-size: 0.95rem;
}

.chart-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chart-grid span {
  background: rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

/* ============================================
   STEP 4: SUMMARY (mit Income)
   ============================================ */
.summary-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 1000px) {
  .summary-sections {
    grid-template-columns: 1fr;
  }
}

.summary-card {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: visible;
}

.summary-card.is-winner {
  border: 2px solid var(--color-gold, #c9a959);
}

.sc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sc-header h4 {
  margin: 0;
  font-family: 'Cinzel', serif;
  color: var(--color-gold, #c9a959);
  font-size: 1.15rem;
}

.sc-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 15px;
}

.sc-stat {
  text-align: center;
  padding: 12px 8px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}

.sc-stat.positive {
  background: rgba(76, 175, 80, 0.15);
}

.sc-stat.negative {
  background: rgba(198, 40, 40, 0.15);
}

.sc-stat.warning {
  background: rgba(255, 152, 0, 0.15);
}

.sc-icon {
  font-size: 1.3rem;
  display: block;
  margin-bottom: 4px;
}

.sc-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
}

.sc-stat.positive .sc-value {
  color: #81c784;
}

.sc-stat.negative .sc-value {
  color: #ef9a9a;
}

.sc-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-top: 4px;
}

.sc-miss-notice {
  margin: 0 15px 15px;
  padding: 10px 15px;
  background: rgba(255, 152, 0, 0.2);
  border: 1px solid rgba(255, 152, 0, 0.4);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #ffb74d;
}

/* Income Section in Summary */
.sc-income {
  padding: 15px;
  background: rgba(0,0,0,0.1);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.income-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.income-row.highlight {
  color: #81c784;
}

.income-row.bonus {
  color: #ffb74d;
}

.income-row.total {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.income-row.total .gold-value {
  color: var(--color-gold, #c9a959);
  font-size: 1.1rem;
}

.sell-controls-inline {
  padding: 12px 0;
  margin: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sell-controls-inline label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.sell-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-sell-sm {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  color: white;
  transition: all 0.2s ease;
}

.btn-sell-sm:hover:not(:disabled) {
  background: var(--color-gold, #c9a959);
  color: #1a1a1a;
}

.btn-sell-sm:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.sell-count-sm {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold, #c9a959);
  min-width: 40px;
  text-align: center;
}

.sell-max {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.income-final {
  margin-top: 15px;
  padding: 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}

.final-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: rgba(255,255,255,0.8);
}

.final-row.highlight {
  font-weight: 700;
  color: var(--color-gold, #c9a959);
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Complete Notice */
.complete-notice {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.15) 0%, rgba(27, 94, 32, 0.15) 100%);
  border: 2px solid rgba(76, 175, 80, 0.5);
  border-radius: 12px;
}

.complete-icon {
  font-size: 2.5rem;
}

.complete-notice strong {
  display: block;
  color: #81c784;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.complete-notice p {
  margin: 0;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

/* ============================================
   SUMMARY V2 - OPTIMIERTE DARSTELLUNG
   ============================================ */

/* Optimiertes Grid fuer Summary */
.summary-grid-optimized {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .summary-grid-optimized {
    grid-template-columns: 1fr;
  }
}

/* Summary Card V2 - Kompaktere Darstellung */
.summary-card-v2 {
  background: rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.summary-card-v2.winner {
  border-color: var(--color-gold, #c9a959);
  box-shadow: 0 0 20px rgba(201, 169, 89, 0.2);
}

.sc-header-v2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sc-header-v2 h4 {
  margin: 0;
  font-family: 'Cinzel', serif;
  color: var(--color-gold, #c9a959);
  font-size: 1.15rem;
}

.winner-badge-v2 {
  background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
  color: #1a1a1a;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Quick Stats Row - Kompakte Uebersicht */
.sc-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
}

.qs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 10px;
  background: rgba(0,0,0,0.3);
  text-align: center;
}

.qs-item.positive {
  background: rgba(46, 125, 50, 0.15);
}

.qs-item.negative {
  background: rgba(198, 40, 40, 0.15);
}

.qs-icon {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.qs-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}

.qs-value {
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
}

.qs-item.positive .qs-value {
  color: #81c784;
}

.qs-item.negative .qs-value {
  color: #ef9a9a;
}

/* Casualties & Wounded */
.sc-casualties,
.sc-wounded {
  padding: 10px 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sc-casualties {
  background: rgba(198, 40, 40, 0.15);
  color: #ef9a9a;
}

.sc-wounded {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Items Found */
.sc-items-found {
  padding: 15px 20px;
  background: rgba(76, 175, 80, 0.1);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.items-header {
  font-weight: 700;
  color: #81c784;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.items-list-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.item-tag {
  background: rgba(76, 175, 80, 0.2);
  color: #a5d6a7;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.items-note {
  margin-top: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}

/* Income Section V2 */
.sc-income-v2 {
  padding: 15px 20px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.income-header {
  font-weight: 700;
  color: var(--color-gold, #c9a959);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.income-shards-row {
  margin-bottom: 12px;
}

.shard-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shard-current {
  color: #ce93d8;
  font-weight: 600;
}

.shard-found {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* Sell Controls V2 - Groessere Touch-Targets */
.sell-controls-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  margin-bottom: 12px;
}

.sell-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.sell-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(0,0,0,0.4);
  border-radius: 8px;
  overflow: hidden;
}

.stepper-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stepper-btn:hover:not(:disabled) {
  background: var(--color-gold, #c9a959);
  color: #1a1a1a;
}

.stepper-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.stepper-btn.minus {
  border-radius: 8px 0 0 8px;
}

.stepper-btn.plus {
  border-radius: 0 8px 8px 0;
}

.stepper-value {
  width: 55px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-gold, #c9a959);
  background: rgba(0,0,0,0.3);
}

.income-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.result-label {
  color: rgba(255,255,255,0.7);
}

.result-value {
  font-weight: 700;
  color: rgba(255,255,255,0.5);
}

.result-value.has-income {
  color: #81c784;
  font-size: 1.1rem;
}

.income-bonus {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
  color: #ffc107;
}

/* Final Gold - Prominent am Ende jeder Card */
.sc-final-gold {
  padding: 20px;
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.15) 0%, rgba(184, 134, 11, 0.15) 100%);
  border-top: 2px solid var(--color-gold, #c9a959);
  text-align: center;
}

.final-gold-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}

.final-gold-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold, #c9a959);
  font-family: 'Cinzel', serif;
  text-shadow: 0 2px 10px rgba(201, 169, 89, 0.4);
}

.final-gold-change {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* Collapsible Selling Chart */
.selling-chart-collapsible {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
}

.selling-chart-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s ease;
  list-style: none;
}

.selling-chart-toggle::-webkit-details-marker {
  display: none;
}

.selling-chart-toggle:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}

.toggle-icon {
  transition: transform 0.3s ease;
}

details[open] .toggle-icon {
  transform: rotate(180deg);
}

.selling-chart-content {
  padding: 20px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive fuer Summary V2 */
@media (max-width: 768px) {
  .sc-quick-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .qs-item {
    padding: 12px 8px;
  }

  .qs-icon {
    font-size: 1.1rem;
  }

  .qs-label {
    font-size: 0.65rem;
  }

  .qs-value {
    font-size: 0.85rem;
  }

  .sell-controls-v2 {
    flex-wrap: wrap;
    justify-content: center;
  }

  .final-gold-value {
    font-size: 1.6rem;
  }
}

/* ============================================
   BOUNTY INTEGRATION STYLES
   ============================================ */
.bounties-step .step-header {
  text-align: center;
}

.bounties-fulfilled-header {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 2px solid rgba(255, 193, 7, 0.4);
}

.bounties-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.bounties-fulfilled-header h3 {
  font-family: 'Cinzel', serif;
  color: #ffd700;
  font-size: 1.8rem;
  margin: 0;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.bounties-subtitle {
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
}

.bounties-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fulfilled-bounty-card {
  background: rgba(0,0,0,0.3);
  border: 2px solid rgba(255, 193, 7, 0.3);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.fulfilled-bounty-card.confirmed {
  border-color: #4caf50;
  background: rgba(46, 125, 50, 0.1);
}

.fbc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.fbc-icon {
  font-size: 1.5rem;
}

.fbc-title {
  flex: 1;
}

.fbc-type {
  font-weight: 700;
  color: white;
  display: block;
}

.fbc-issuer {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.fbc-reason {
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
  font-style: italic;
}

.fbc-reward {
  padding: 10px 15px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 8px;
  margin-bottom: 12px;
}

.reward-label {
  color: rgba(255,255,255,0.6);
  margin-right: 8px;
}

.reward-value {
  font-weight: 700;
  color: #ffd700;
}

.reward-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-left: 8px;
}

.fbc-hunter {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 15px;
}

.fbc-hunter strong {
  color: white;
}

.fbc-actions {
  display: flex;
  gap: 10px;
}

.fbc-confirmed {
  color: #81c784;
  font-weight: 600;
}

.fbc-later {
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

.bounties-note {
  margin-top: 20px;
  padding: 15px;
  background: rgba(63, 81, 181, 0.1);
  border: 1px solid rgba(63, 81, 181, 0.3);
  border-radius: 8px;
}

.bounties-note p {
  margin: 0;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.pbw-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: rgba(0,0,0,0.3);
  border-top: 2px solid var(--color-blood, #8b0000);
}

.step-indicator {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Cinzel', serif;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--color-gold, #c9a959);
  color: var(--color-gold, #c9a959);
}

.btn-outline:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-blood, #8b0000) 0%, #5a0000 100%);
  border-color: var(--color-gold, #c9a959);
  color: var(--color-gold, #c9a959);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a00000 0%, #8b0000 100%);
  transform: translateX(3px);
}

.btn-success {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  border-color: #4caf50;
  color: white;
}

.btn-success:hover {
  background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
  transform: translateY(-2px);
}

.btn-warning {
  background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
  border-color: #ff9800;
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
  border-color: #ef5350;
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-xs {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .progress-track {
    gap: 8px;
    padding: 15px 10px;
  }

  .progress-step {
    min-width: 70px;
    padding: 10px 12px;
  }

  .step-connector {
    width: 20px;
  }

  .progress-step .step-label {
    font-size: 0.65rem;
  }

  .pbw-nav {
    flex-direction: column;
    gap: 12px;
  }

  .pbw-nav .btn {
    width: 100%;
    text-align: center;
  }

  .sc-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .xp-row {
    grid-template-columns: 1fr auto;
  }

  .xp-current {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .xp-controls {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .level-up-badge {
    grid-column: 1 / 3;
  }
}

/* ===================================================================
   ENHANCED XP STEP - AUTOMATIC CALCULATION & BREAKDOWN
   =================================================================== */

/* Info Panel mit kompakten Regeln */
.xp-info-panel {
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.1) 0%, rgba(139, 109, 59, 0.1) 100%);
  border: 1px solid rgba(201, 169, 89, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.xp-rules-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.xp-rule-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e0e0e0;
}

.xp-rule-tag.scenario {
  background: rgba(156, 39, 176, 0.3);
  color: #ce93d8;
}

/* Underdog Info */
.underdog-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 193, 7, 0.15);
  border-radius: 8px;
  border-left: 4px solid #ffc107;
}

.underdog-info.no-underdog {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: #616161;
}

.underdog-icon {
  font-size: 1.4rem;
}

.underdog-text {
  flex: 1;
  font-size: 0.85rem;
  color: #e0e0e0;
}

.underdog-text strong {
  color: #ffc107;
}

.underdog-bonus {
  background: #ffc107;
  color: #1a1a1a;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* XP Section Enhancements */
.xp-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.xp-section.is-underdog {
  border-color: #ffc107;
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.2);
}

.xp-section-header {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.xp-section-header h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.winner-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: linear-gradient(135deg, #ffd700 0%, #c9a959 100%);
  color: #1a1a1a;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.underdog-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: #1a1a1a;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* XP Heroes & Henchmen Sections */
.xp-heroes, .xp-henchmen {
  padding: 12px 16px;
}

.xp-heroes h5, .xp-henchmen h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced XP Row */
.xp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.xp-row:hover {
  background: rgba(0, 0, 0, 0.35);
}

.xp-row.was-ooa {
  opacity: 0.7;
  border-left: 3px solid #f44336;
}

.xp-row.was-ooa::before {
  content: 'â˜ ï¸';
  position: absolute;
  left: -20px;
  font-size: 0.9rem;
}

.xp-row.level-up {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
  border: 1px solid rgba(255, 215, 0, 0.4);
  animation: levelUpPulse 2s ease-in-out infinite;
}

@keyframes levelUpPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
}

.xp-row-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  flex: 1;
}

.xp-name {
  font-weight: 600;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.xp-level {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gold, #c9a959);
}

.xp-current {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  min-width: 50px;
}

/* XP Breakdown Tags */
.xp-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 2;
  min-width: 150px;
}

.xp-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.xp-tag.participation {
  background: rgba(33, 150, 243, 0.3);
  color: #90caf9;
}

.xp-tag.kills {
  background: rgba(244, 67, 54, 0.3);
  color: #ef9a9a;
}

.xp-tag.winner {
  background: rgba(255, 215, 0, 0.3);
  color: #ffd54f;
}

.xp-tag.underdog {
  background: rgba(255, 193, 7, 0.3);
  color: #ffca28;
}

.xp-tag.survives {
  background: rgba(76, 175, 80, 0.3);
  color: #a5d6a7;
}

.xp-tag.scenario {
  background: rgba(156, 39, 176, 0.3);
  color: #ce93d8;
}

/* XP Controls */
.xp-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.btn-xp {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-xp:hover:not(:disabled) {
  transform: scale(1.1);
}

.btn-xp.minus:hover:not(:disabled) {
  background: #f44336;
}

.btn-xp.plus:hover:not(:disabled) {
  background: #4caf50;
}

.btn-xp:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.xp-earned {
  min-width: 40px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.xp-earned.has-xp {
  color: #81c784;
  background: rgba(76, 175, 80, 0.2);
}

.xp-earned.level-up-glow {
  color: #ffd54f;
  background: rgba(255, 215, 0, 0.3);
  animation: xpGlow 1s ease-in-out infinite;
}

@keyframes xpGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
  50% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.8); }
}

/* Level Up Indicator */
.level-up-indicator {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #ffd700 0%, #ff9800 100%);
  color: #1a1a1a;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
  animation: levelBounce 0.5s ease-out;
}

@keyframes levelBounce {
  0% { transform: translateY(-50%) scale(0); }
  50% { transform: translateY(-50%) scale(1.2); }
  100% { transform: translateY(-50%) scale(1); }
}

/* Scenario XP Section */
.scenario-xp-section {
  margin: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.15) 0%, rgba(103, 58, 183, 0.15) 100%);
  border: 1px solid rgba(156, 39, 176, 0.3);
  border-radius: 8px;
}

.scenario-xp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.scenario-icon {
  font-size: 1.2rem;
}

.scenario-name {
  font-weight: 700;
  color: #ce93d8;
}

.scenario-desc {
  font-size: 0.8rem;
  color: #e0e0e0;
}

.scenario-xp-hint {
  font-size: 0.75rem;
  color: #9e9e9e;
  font-style: italic;
}

/* Henchman Row Styling */
.xp-row.hench-row {
  background: rgba(0, 0, 0, 0.15);
  border-left: 3px solid rgba(255, 255, 255, 0.2);
}

.xp-row.hench-row:hover {
  border-left-color: var(--color-gold, #c9a959);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .xp-sections {
    grid-template-columns: 1fr;
  }

  .xp-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .xp-row-main {
    width: 100%;
    justify-content: space-between;
  }

  .xp-breakdown {
    width: 100%;
    justify-content: flex-start;
  }

  .xp-controls {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .level-up-indicator {
    position: static;
    transform: none;
    margin-top: 8px;
    text-align: center;
  }

  .underdog-info {
    flex-direction: column;
    text-align: center;
  }

  .xp-rules-compact {
    justify-content: center;
  }
}

/* ===================================================================
   PRE-BATTLE BRIEFING STYLES
   =================================================================== */

.step-briefing {
  max-width: 900px;
  margin: 0 auto;
}

.step-briefing .step-header {
  text-align: center;
  margin-bottom: 24px;
}

.step-briefing .step-header h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--color-gold, #c9a959);
  margin-bottom: 8px;
}

.step-briefing .step-header p {
  color: rgba(255, 255, 255, 0.7);
}

/* Briefing Sections */
.briefing-section {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.briefing-section h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: #e0e0e0;
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Force Comparison */
.force-comparison .force-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.force-card {
  flex: 1;
  max-width: 280px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.force-card.is-underdog {
  border-color: #ffc107;
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
}

.force-card .force-name {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.force-card .force-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.force-card .force-rating {
  color: var(--color-gold, #c9a959);
  font-weight: 600;
}

.force-card .underdog-tag {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: #1a1a1a;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.force-vs {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

/* Underdog Bonus Info */
.underdog-bonus-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.1) 100%);
  border: 1px solid rgba(255, 193, 7, 0.4);
  border-left: 4px solid #ffc107;
  border-radius: 8px;
}

.underdog-bonus-info.no-bonus {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  border-left-color: #616161;
}

.underdog-bonus-info .bonus-icon {
  font-size: 1.5rem;
}

.underdog-bonus-info .bonus-details {
  flex: 1;
  font-size: 0.9rem;
  color: #e0e0e0;
}

.underdog-bonus-info .bonus-details strong {
  color: #ffc107;
}

.underdog-bonus-info .rating-diff {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.underdog-bonus-info .bonus-amount {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: #1a1a1a;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.underdog-bonus-info .bonus-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Availability Check */
.availability-warbands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.availability-warband {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.availability-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.availability-header .wb-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: white;
}

.availability-header .availability-count {
  font-size: 0.85rem;
  color: #81c784;
  font-weight: 600;
}

.availability-header .availability-count.has-excluded {
  color: #ffb74d;
}

.availability-list {
  padding: 12px;
  max-height: 300px;
  overflow-y: auto;
}

/* Availability Row */
.availability-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

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

.availability-row:hover {
  background: rgba(0, 0, 0, 0.35);
}

.availability-row .avail-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.availability-row .avail-name {
  flex: 1;
  font-weight: 600;
  color: white;
}

.availability-row .avail-status {
  font-size: 0.85rem;
  color: #81c784;
}

.availability-row .avail-reason {
  font-size: 0.85rem;
  color: #ffb74d;
  font-style: italic;
}

.availability-row .avail-roll-result {
  font-size: 0.85rem;
  font-weight: 600;
}

.availability-row.available .avail-roll-result {
  color: #81c784;
}

.availability-row.excluded {
  opacity: 0.8;
  background: rgba(244, 67, 54, 0.1);
  border-left: 3px solid #f44336;
}

.availability-row.excluded .avail-name {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.6);
}

.availability-row.needs-roll {
  background: rgba(255, 193, 7, 0.1);
  border-left: 3px solid #ffc107;
}

.availability-row.rolled-pass {
  background: rgba(76, 175, 80, 0.1);
  border-left: 3px solid #4caf50;
}

.availability-row.rolled-fail {
  background: rgba(244, 67, 54, 0.1);
  border-left: 3px solid #f44336;
}

.availability-row.rolled-fail .avail-roll-result {
  color: #ef9a9a;
}

.availability-row.henchmen-summary {
  background: rgba(33, 150, 243, 0.1);
  border-left: 3px solid #2196f3;
}

/* Roll Button */
.btn-roll {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  border: none;
  border-radius: 20px;
  color: #1a1a1a;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-roll:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.btn-roll:active {
  transform: scale(0.98);
}

/* Briefing Actions */
.briefing-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.rolls-pending-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 152, 0, 0.15);
  border: 1px solid rgba(255, 152, 0, 0.4);
  border-radius: 8px;
  color: #ffb74d;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.1rem;
}

.btn-lg:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #616161;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .force-comparison .force-cards {
    flex-direction: column;
  }

  .force-card {
    max-width: 100%;
  }

  .force-vs {
    transform: rotate(90deg);
    margin: 10px 0;
  }

  .availability-warbands {
    grid-template-columns: 1fr;
  }

  .underdog-bonus-info {
    flex-direction: column;
    text-align: center;
  }

  .underdog-bonus-info .bonus-details {
    text-align: center;
  }
}

/* ===================================================================
   EXCLUDED WARRIOR STYLES
   =================================================================== */

/* Battle Screen - Excluded Warrior Card */
.warrior-card.is-excluded {
  background: rgba(97, 97, 97, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  opacity: 0.6;
  cursor: not-allowed;
}

.warrior-card.is-excluded .warrior-card-header {
  padding: 10px 12px;
}

.warrior-card.is-excluded .excluded-name {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.5);
}

.warrior-card.is-excluded .excluded-badge {
  font-size: 0.75rem;
  color: #ef9a9a;
}

/* XP Step - Excluded Row */
.xp-row.is-excluded {
  background: rgba(97, 97, 97, 0.15);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  opacity: 0.7;
}

.xp-row.is-excluded .excluded-name {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.5);
}

.xp-excluded-reason {
  flex: 2;
  min-width: 150px;
}

.xp-excluded-reason .excluded-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  color: #ef9a9a;
}

.xp-earned.no-xp {
  color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.1);
}

/* ============================================
   TOTE KRIEGER - XP SCREEN
   ============================================ */

.xp-row.is-dead {
  background: rgba(139, 0, 0, 0.15);
  border: 1px dashed rgba(139, 0, 0, 0.4);
  opacity: 0.7;
}

.xp-row.is-dead .dead-name {
  text-decoration: line-through;
  color: rgba(255, 100, 100, 0.6);
}

.xp-excluded-reason .dead-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(139, 0, 0, 0.3);
  border: 1px solid rgba(139, 0, 0, 0.5);
  border-radius: 20px;
  font-size: 0.75rem;
  color: #ff6b6b;
}

/* ============================================
   SZENARIO-XP TRACKING (WYRDSTONE HUNT, BREAKTHROUGH, etc.)
   ============================================ */

.scenario-tracking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.tracking-hint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-bottom: 8px;
  font-style: italic;
}

.tracking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tracking-row.hench-tracking {
  background: rgba(60, 60, 40, 0.3);
  border-color: rgba(201, 169, 89, 0.2);
}

.tracking-name {
  color: #fff;
  font-size: 0.95rem;
}

.tracking-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tracking-control select {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--color-gold-dark, #8b7940);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
}

.tracking-control select:focus {
  outline: none;
  border-color: var(--color-gold, #c9a959);
  box-shadow: 0 0 5px rgba(201, 169, 89, 0.3);
}

.tracking-xp {
  background: linear-gradient(135deg, #2a5a3a 0%, #1a4a2a 100%);
  color: #90EE90;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 55px;
  text-align: center;
}

/* Checkbox Style fuer Breakthrough */
.tracking-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
}

.tracking-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-gold, #c9a959);
}

/* Radio Button Style fuer Street Fight / Hidden Treasure */
.tracking-radio-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tracking-radio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tracking-radio:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(201, 169, 89, 0.3);
}

.tracking-radio.selected {
  background: linear-gradient(135deg, rgba(42, 90, 58, 0.4) 0%, rgba(26, 74, 42, 0.4) 100%);
  border-color: rgba(144, 238, 144, 0.4);
}

.tracking-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: var(--color-gold, #c9a959);
}

.tracking-claimed {
  background: rgba(139, 69, 19, 0.3);
  border: 1px solid rgba(255, 165, 0, 0.3);
  color: #ffa500;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
}

/* Szenario-spezifische Varianten */
.scenario-xp-section.wyrdstone-hunt {
  border-color: rgba(138, 43, 226, 0.4);
  background: linear-gradient(135deg, rgba(60, 40, 80, 0.3) 0%, rgba(40, 20, 60, 0.5) 100%);
}

.scenario-xp-section.wyrdstone-hunt .scenario-xp-header {
  border-bottom-color: rgba(138, 43, 226, 0.3);
}

.scenario-xp-section.breakthrough {
  border-color: rgba(65, 105, 225, 0.4);
  background: linear-gradient(135deg, rgba(40, 60, 100, 0.3) 0%, rgba(20, 40, 80, 0.5) 100%);
}

.scenario-xp-section.street-fight {
  border-color: rgba(255, 140, 0, 0.4);
  background: linear-gradient(135deg, rgba(80, 60, 40, 0.3) 0%, rgba(60, 40, 20, 0.5) 100%);
}

.scenario-xp-section.hidden-treasure {
  border-color: rgba(218, 165, 32, 0.4);
  background: linear-gradient(135deg, rgba(80, 70, 40, 0.3) 0%, rgba(60, 50, 20, 0.5) 100%);
}

/* Mobile Responsive fuer Szenario-XP */
@media (max-width: 600px) {
  .tracking-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .tracking-control {
    width: 100%;
    justify-content: space-between;
  }

  .tracking-radio {
    flex-wrap: wrap;
  }
}
