.dungeons-header,
.dungeons-main {
  width: min(760px, calc(100% - 32px));
}

.dungeons-header h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.dungeons-header .site-home-link {
  flex-shrink: 0;
}

.dungeons-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(18 39 57 / 0.06);
}

.dungeon-legend {
  margin: 0;
  padding: 16px 18px;
  font-size: 0.9rem;
  font-weight: 700;
}

.dungeon-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9rem;
  line-height: 1.6;
}

.dungeon-table th,
.dungeon-table td {
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  text-align: left;
  overflow-wrap: anywhere;
}

.dungeon-table thead {
  color: var(--navy-soft);
  background: #edf3f7;
}

.dungeon-table thead th:first-child {
  width: 44%;
}

.dungeon-table thead th:nth-child(2) {
  width: 29%;
}

.dungeon-table tbody th {
  position: relative;
  padding-left: 42px;
  font-weight: 400;
}

.dungeon-table tbody tr:nth-child(even) {
  background: #f7fafc;
}

.dungeon-star {
  position: absolute;
  left: 18px;
  color: #745309;
  font-weight: 700;
}

@media (max-width: 560px) {
  .dungeons-header {
    gap: 12px;
  }

  .dungeon-table {
    font-size: 0.8rem;
  }

  .dungeon-table th,
  .dungeon-table td {
    padding: 10px 6px;
  }

  .dungeon-table tbody th {
    padding-left: 28px;
  }

  .dungeon-star {
    left: 10px;
  }
}
