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

.actions {
  text-align: center;
  margin: 30px 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1979ab 0%, #c1bec4 100%);
  min-height: 100vh;
  padding: 20px;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  background: #f0f0f0;
  color: #333;
}

.btn:hover {
  background: #e0e0e0;
}

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

.btn-danger:hover {
  background: #c82333;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 10px;
  padding: 5px;
  vertical-align: middle;
  line-height: 1;
}

.btn-icon:hover {
  opacity: 0.7;
}

.btn-large {
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5568d3;
}

.btn-primary:disabled {
  background-color: #a0a0a0;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-primary:disabled:hover {
  background-color: #a0a0a0;
}

.btn-draft {
  background: #3ca07b;
  color: white;
  width: 100%;
}

.btn-draft:hover {
  background: #338a66;
}

.btn-small {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-sort {
  padding: 8px 15px;
  font-size: 13px;
  background: #667eea;
  color: white;
}

.btn-sort:hover {
  background: #5568d3;
}

.btn-sort.active {
  background: #764ba2;
}

.card {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  margin: 50px auto;
}

.card h1 {
  text-align: center;
  color: #667eea;
  margin-bottom: 10px;
}

.card h2 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
}

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

.content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.draft-actions {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 20px;
}

.draft-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
}

.draft-info {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.draft-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  grid-column: 2;
}

.draft-order {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  grid-column: 1;
}

.drafted-hero {
  background: #e8eaf6;
  padding: 8px 10px;
  border-radius: 5px;
  margin-top: 8px;
  font-size: 12px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}

.drafted-hero:hover {
  background: #d1d5f7;
}

.drafted-hero-header {
  font-weight: 600;
  margin-bottom: 5px;
}

.drafted-hero-ability {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #d1d5f7;
}

.drafted-hero-ability .ability-title {
  font-weight: 600;
  color: #667eea;
  font-size: 11px;
  margin-bottom: 3px;
}

.drafted-hero-ability .ability-description {
  color: #555;
  font-size: 11px;
  line-height: 1.4;
}

.drafted-heroes {
  margin-top: 10px;
}

.error {
  background: #fee;
  color: #c00;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid #fcc;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
}

.game-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  transition: transform 0.2s;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.game-card-left {
  margin-bottom: 15px;
}

.game-card-right {
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
}

.game-card h3 {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 7px;
    padding-bottom: 3px;
    color: darkslategray;
}

.game-card h3 a:hover {
  text-decoration: underline;
}

.game-card p {
    padding-bottom: 3px;
}

.game-card-players {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.game-card-player {
  font-size: 0.85em;
  color: #666;
}

.player-separator {
  font-size: 0.85em;
  color: #999;
}

.game-header {
  margin-bottom: 30px;
}

.game-header h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    width: 100%;
}

.game-name-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-field {
  display: flex;
  margin-bottom: 4px;
}

.game-field strong {
  width: 100px;
  flex-shrink: 0;
}


.game-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.game-list a {
  color: #667eea;
  text-decoration: none;
}

.hero-details {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}

.hero-details img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 15px;
}

.hero-draft-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  transition: background 0.2s;
  position: relative;
}

.hero-draft-item:hover {
  background: #f0f0f0;
}

.hero-draft-item.selected {
  background: #e8eaf6;
}

.hero-draft-item.over-budget {
  opacity: 0.3;
  cursor: not-allowed;
}

.hero-draft-item.unavailable {
  opacity: 0.5;
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.hero-draft-item.over-budget {
  opacity: 0.5;
  background: #fff0f0;
  color: #999;
  cursor: not-allowed;
}

.sort-and-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 10px 0;
}

.sort-buttons {
  display: flex;
  gap: 10px;
}

.toggle-unavailable {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
  white-space: nowrap;
  margin-left: auto;
}

.toggle-unavailable input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.toggle-unavailable span {
  color: #333;
}

.hero-filter {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.hero-filter .btn.active {
  background: #667eea;
  color: white;
}

.hero-game-item {
  display: flex;
  gap: 15px;
  background: white;
  padding: 15px;
  border-radius: 8px;
  align-items: flex-start;
}

.hero-game-item img {
  width: auto;
  height: 260px;
  max-height: 260px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.hero-info {
  flex: 1;
}

.hero-info h5 {
  color: #667eea;
  margin-bottom: 5px;
}

.hero-info p {
  margin: 3px 0;
  font-size: 13px;
}

.hero-item {
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  border: 2px solid #e0e0e0;
}

.hero-item .small {
  font-size: 11px;
  color: #666;
  margin: 3px 0;
}

.hero-item h4 {
  color: #333;
  margin-bottom: 5px;
  font-size: 14px;
}

.hero-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

.hero-list {
  max-height: 400px;
  overflow-y: auto;
  background: white;
  border-radius: 5px;
  padding: 10px;
}

.hero-list-game {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 15px;
}

.hero-popup {
  position: fixed;
  background: white;
  background-color: white;
  border: 3px solid #667eea;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  padding: 15px;
  z-index: 1000;
  display: none;
  min-width: 400px;
  max-width: 450px;
  pointer-events: none;
  opacity: 1;
}

.hero-popup.visible {
  display: flex;
}

.hero-popup-ability {
  margin-top: 5px;
}

.hero-popup-ability h5 {
  color: #333;
  margin: 0 0 5px 0;
  font-size: 13px;
  font-weight: 600;
}

.hero-popup-ability p {
  margin: 0;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

.hero-popup-content {
  display: flex;
  gap: 15px;
  width: 100%;
}

.hero-popup-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-popup-details h4 {
  color: #667eea;
  margin: 0;
  font-size: 16px;
}

.hero-popup-image {
  flex-shrink: 0;
}

.hero-popup-image img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 5px;
}

.hero-popup-stats {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #333;
}

.hero-popup-stats strong {
  color: #667eea;
}

.hero-selection {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}

h2 {
  margin-bottom: 20px;
  color: #667eea;
  padding-left: 5px;
  padding-bottom: 3px;
  border-bottom: 1px solid #667eea;
}

hr {
  margin: 30px 0;
  border: none;
  border-top: 2px solid #e0e0e0;
}

.nav-links {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-shrink: 0;
}

.nav-links span {
  margin-right: 10px;
  color: #333;
}

.navbar {
  background: white;
  padding: 15px 30px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  flex: 1;
  justify-content: center;
}

.navbar-logo {
  height: 140px;
  width: auto;
  animation: float 3s ease-in-out infinite;
  position: absolute;
  left: -45px;
  top: 50%;
  margin-top: -70px;
  z-index: 10;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.navbar h1 {
  color: #667eea;
  font-size: 24px;
  margin: 0;
  margin-left: 75px;
}

.player-draft-info {
  margin-bottom: 20px;
  padding: 10px;
  background: white;
  border-radius: 5px;
}

.player-draft-info.active {
  border: 2px solid #667eea;
}

.player-section {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.player-section h4 {
    display: inline-block;
    width: 100%;
    background: #667eea;
    border-radius: 5px;
    color: #f9f9f9;
    text-align: center;
    padding: 5px;
    margin-bottom: 5px;
}

.profile-field {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.profile-field strong {
  width: 120px;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  margin-bottom: 10px;
}

.sort-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  width: 100%;
}

.text-center {
  text-align: center;
}

.spacer-above {
  margin-top: 15px;
}

/* Heroes Gallery Styles */
.heroes-gallery-controls {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.heroes-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 20px;
}

.hero-gallery-card {
  background: white;
  border: 3px solid #667eea;
  border-radius: 12px;
  padding: 15px;
  padding-left: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: row;
  gap: 15px;
  position: relative;
  overflow: hidden;
}

.hero-gallery-card .btn-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  padding: 8px;
  font-size: 16px;
}

.hero-gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.hero-gallery-image {
  flex-shrink: 0;
  margin-left: 45px;
}

.hero-gallery-image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
}

.hero-gallery-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-gallery-info h3 {
  color: #667eea;
  margin: 0 0 10px 0;
  font-size: 20px;
}

.hero-gallery-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
}

.hero-gallery-stats strong {
  color: #667eea;
}

.hero-gallery-ability {
  margin-bottom: 15px;
  padding: 12px;
  background: #f0f4ff;
  border-radius: 5px;
  border-left: 4px solid #667eea;
}

.hero-gallery-ability h4 {
  color: rgb(86 86 86);
  background: rgb(179 194 236);
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 600;
}

.hero-gallery-ability p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.hero-gallery-expansion {
  position: absolute;
  left: -3px;
  top: -3px;
  bottom: -3px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expansion-badge {
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: rotate(180deg);
  background: #764ba2;
  color: white;
  padding: 10px 5px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 9px 0 0 9px;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Print styles for heroes gallery */
@media print {
  body {
    background: white;
    padding: 0;
  }

  .navbar,
  .heroes-gallery-controls {
    display: none;
  }

  .container {
    background: white;
    box-shadow: none;
    max-width: 100%;
    padding: 5px;
  }

  .content {
    padding: 0;
  }

  .heroes-gallery-grid {
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-gallery-card {
    page-break-inside: avoid;
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #667eea;
    padding: 8px;
    padding-left: 0;
  }

  .hero-gallery-card:hover {
    transform: none;
    box-shadow: none;
  }

  .hero-gallery-expansion {
    width: 20px;
  }

  .expansion-badge {
    font-size: 9px;
    padding: 5px 3px;
  }

  .hero-gallery-image {
    margin-left: 25px;
  }

  .hero-gallery-image img {
    width: 80px;
    height: 80px;
  }

  .hero-gallery-info h3 {
    font-size: 14px;
    margin: 0 0 5px 0;
  }

  .hero-gallery-stats {
    font-size: 10px;
    gap: 8px;
    margin-bottom: 5px;
  }

  .hero-gallery-ability {
    padding: 6px;
    margin-bottom: 5px;
  }

  .hero-gallery-ability h4 {
    font-size: 11px;
    margin: 0 0 3px 0;
  }

  .hero-gallery-ability p {
    font-size: 9px;
    line-height: 1.3;
  }
}

/* Tab Styles */
.tabs {
  display: flex;
  /* gap: 10px; */
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.tab-button {
  padding: 10px 20px;
  border: none;
  background: lavender;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  font-weight: 500;
  border-left: 1px solid gray;
  border-top: 1px solid gray;
  border-right: 1px solid gray;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.tab-button:hover {
  color: #667eea;
  background: #f9f9f9;
}

.tab-button.active {
  /* color: #667eea; */
  color: darkslateblue;
  background: white;
  border-left: 1px solid gray;
  border-top: 1px solid gray;
  border-right: 1px solid gray;
  border-bottom: 2px solid white;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  font-weight: bolder;
  padding: 12px 24px;
  font-size: 16px;
  position: relative;
  margin-bottom: -2px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Campaign Styles */
.campaign-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: 20px;
}
.campaign-container h4 {
  padding-bottom: 5px;
}
.campaign-map-section {
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
}

.campaign-map {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.map-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

#scenario-checkboxes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scenario-checkbox-wrapper {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  z-index: 10;
}

.scenario-checkbox {
  width: 24px;
  height: 24px;
  cursor: pointer;
  border: 2px solid #667eea;
  border-radius: 4px;
  background: white;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.scenario-checkbox:hover {
  border-color: #5568d3;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

.scenario-checkbox:checked {
  background: #667eea;
  border-color: #667eea;
}

.scenario-checkbox:checked::after {
  content: '✓';
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.campaign-tracking-section {
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
}

.results-table-container {
  overflow-x: auto;
  margin-bottom: 30px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.results-table th {
  background: #667eea;
  color: white;
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}

.results-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
}

.results-table tbody tr:hover {
  background: #f9f9f9;
}

.results-table tfoot td {
  background: #f0f0f0;
  font-weight: 600;
  border-bottom: none;
  padding: 12px 8px;
}

.scenario-selected {
  background: #e8f5e9 !important;
}

.na-cell {
  color: #999;
  text-align: center;
  font-style: italic;
}

.btn-add-result {
  background: #667eea;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-add-result:hover {
  background: #5568d3;
}

.btn-add-result-small {
  background: #667eea;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 12px;
  margin-left: 5px;
  transition: all 0.3s;
}

.btn-add-result-small:hover {
  background: #5568d3;
}

.result-players {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.result-player {
  background: #e8eaf6;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}

.result-player:hover {
  background: #c5cae9;
}

.titles-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.titles-group {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.titles-group h5 {
  color: #667eea;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 600;
}

.title-item {
  margin-bottom: 15px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 6px;
}

.title-item span:first-child {
  font-weight: 600;
  font-size: 13px;
  /* color: #333; */
}

.title-players {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.title-badge {
  background: #764ba2;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}

.title-badge:hover {
  background: #5a3677;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 20px;
}

.close:hover,
.close:focus {
  color: #000;
}

.modal-content h3 {
  color: #667eea;
  margin-bottom: 20px;
  margin-top: 0;
}

.player-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-select-btn {
  background: #667eea;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  text-align: center;
}

.player-select-btn:hover {
  background: #5568d3;
}

.player-select-btn.remove-btn {
  background: #dc3545;
}

.player-select-btn.remove-btn:hover {
  background: #c82333;
}

/* Responsive adjustments for campaign */
@media (max-width: 1200px) {
  .campaign-container {
    grid-template-columns: 1fr;
  }
  
  .titles-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .results-table {
    font-size: 11px;
  }
  
  .results-table th,
  .results-table td {
    padding: 8px 4px;
  }
}

/* ===== INVENTORY STYLES ===== */

/* Player gold section */
.player-gold-section {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gold-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
}

.gold-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.gold-icon {
  width: 24px;
  height: 24px;
}

.gold-icon-fallback {
  font-size: 24px;
}

/* Heroes inventory grid */
.heroes-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.hero-inventory-panel {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Hero card in inventory */
.hero-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 15px;
  position: relative;
}

.hero-card-expansion {
  position: absolute;
  top: 10px;
  right: 10px;
}

.hero-card-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 10px;
  position: relative;
}

.hero-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-hero-curse {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #dc3545;
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  padding: 0;
  line-height: 1;
}

.btn-hero-curse:hover {
  background: #dc3545;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.5);
}

.btn-item-curse {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #dc3545;
  color: white;
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  padding: 0;
  line-height: 1;
  z-index: 10;
}

.btn-item-curse:hover {
  background: #dc3545;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.5);
}

.hero-curse-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  max-width: 60%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.hero-curse-badge {
  background: linear-gradient(135deg, #2c003e 0%, #1a0024 100%);
  border: 2px solid #dc3545;
  border-radius: 0 6px 0 6px;
  padding: 6px 8px;
  color: white;
  font-size: 11px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.curse-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.curse-badge-name {
  font-weight: bold;
  font-size: 12px;
  color: #ff6b6b;
  flex: 1;
}

.curse-badge-remove {
  background: rgba(220, 53, 69, 0.3);
  border: 1px solid #dc3545;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-left: 4px;
}

.curse-badge-remove:hover {
  background: #dc3545;
  transform: scale(1.1);
}

.curse-badge-value {
  background: rgba(220, 53, 69, 0.3);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  display: inline-block;
  margin-bottom: 4px;
  color: #ffcccb;
}

.curse-badge-desc {
  font-size: 10px;
  line-height: 1.3;
  opacity: 0.9;
  color: #e0e0e0;
}

.hero-card-info h4 {
  color: #333;
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-card-stats {
  display: flex;
  gap: 15px;
  font-size: 14px;
}

.hero-card-stats span {
  color: #555;
}

/* Hero items grid (2x2 layout) */
.hero-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.item-slot {
  aspect-ratio: 1;
  border: 2px dashed #ccc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  background: #f9f9f9;
  min-height: 150px;
}

.item-slot:hover {
  border-color: #667eea;
  background: #f0f4ff;
}

.item-slot-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plus-icon {
  font-size: 48px;
  color: #ccc;
  font-weight: 300;
}

.item-slot:hover .plus-icon {
  color: #667eea;
}

/* Item card */
.item-card {
  width: 100%;
  height: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 6px;
  font-size: 12px;
  position: relative;
}

.item-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.item-level {
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
}

.item-remove-btn {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  transition: all 0.2s;
}

.item-remove-btn:hover {
  background: rgba(255, 0, 0, 0.7);
}

.item-name {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 5px;
  line-height: 1.2;
}

.item-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 5px;
  font-size: 11px;
}

.item-stats span {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 5px;
  border-radius: 3px;
}

.item-description {
  flex-grow: 1;
  font-size: 10px;
  line-height: 1.3;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  margin-top: auto;
}

.item-type {
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 5px;
  border-radius: 3px;
}

.item-price {
  font-weight: bold;
}

/* Curse card styling */
.curse-card {
  background: linear-gradient(135deg, #434343 0%, #000000 100%);
}

.curse-value {
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
}

/* Hero death curses section - hidden, curses now shown on image overlay */
.hero-death-curses {
  display: none;
}

.hero-curse-tag {
  background: #dc3545;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-curse-tag button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  margin: 0;
}

.hero-curse-tag button:hover {
  opacity: 0.7;
}

/* Item modal styles */
.modal-content-large {
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
}

.item-modal-controls {
  margin-bottom: 20px;
}

#item-search,
#hero-curse-search {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 15px;
}

.item-level-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.filter-btn {
  padding: 8px 15px;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s;
}

.filter-btn:hover {
  background: #f0f4ff;
}

.filter-btn.active {
  background: #667eea;
  color: white;
}

.item-type-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.toggle-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.toggle-btn:hover {
  background: #f0f4ff;
}

.toggle-btn.active {
  background: #667eea;
  color: white;
}

/* Item list in modal */
.item-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  max-height: 500px;
  overflow-y: auto;
  padding: 5px;
}

.item-list-item {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.item-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.curse-list-item {
  background: linear-gradient(135deg, #434343 0%, #000000 100%);
}

.curse-list-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.item-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.item-list-name {
  font-size: 16px;
  font-weight: bold;
}

.item-list-level {
  background: rgba(255, 255, 255, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.curse-list-value {
  background: rgba(255, 255, 255, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.item-list-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}

.item-list-description {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 10px;
  opacity: 0.9;
}

.item-list-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.item-list-type {
  background: rgba(255, 255, 255, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
}

.item-list-price {
  font-weight: bold;
}

.no-results {
  text-align: center;
  color: #999;
  padding: 40px;
  grid-column: 1 / -1;
}

/* Responsive adjustments for inventory */
@media (max-width: 768px) {
  .heroes-inventory-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .item-list {
    grid-template-columns: 1fr;
  }
  
  .item-level-filters {
    justify-content: center;
  }
  
  .filter-btn {
    font-size: 11px;
    padding: 6px 10px;
  }
}
/* Home page styles */
.logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.home-logo {
  max-width: 200px;
  height: auto;
}

.popular-heroes {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.popular-hero {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  min-width: 200px;
}

.hero-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 10px;
}

.hero-info h3 {
  margin: 0;
  font-size: 16px;
}

.hero-info p {
  margin: 5px 0 0 0;
  font-size: 12px;
  color: #666;
}

.top-pairs {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hero-pair {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pair-heroes {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.pair-plus {
  font-size: 18px;
  font-weight: bold;
  margin: 0 10px;
  color: #666;
}

.pair-info h3 {
  margin: 0;
  text-align: center;
  font-size: 16px;
}

.pair-info p {
  margin: 5px 0 0 0;
  text-align: center;
  font-size: 12px;
  color: #666;
}
