* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0b0f14;
  color: #e6edf3;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #121821;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.4px;
}

.topnav {
  display: flex;
  gap: 16px;
}

.topnav a {
  opacity: 0.9;
}

.topnav a:hover {
  opacity: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.hero {
  text-align: center;
  padding: 40px 20px 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.03), rgba(255,255,255,0));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  margin-bottom: 28px;
}

.hero h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 2rem;
}

.hero p {
  margin-top: 0;
  margin-bottom: 20px;
  color: #b7c2cc;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  background: #121821;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  transition: 0.2s ease;
}

.btn:hover,
.panel:hover {
  box-shadow: 0 0 14px rgba(0, 150, 255, 0.18);
  transform: translateY(-2px);
}

.section-title {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.panel {
  display: block;
  background: #121821;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px;
  transition: 0.2s ease;
}

.panel h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.panel p {
  margin: 0;
  color: #b7c2cc;
}

.page-header {
  margin-bottom: 20px;
}

.page-header h1 {
  margin-bottom: 8px;
}

.page-header p {
  margin-top: 0;
  color: #b7c2cc;
}

.content-grid {
  display: grid;
  gap: 16px;
}

.content-block {
  background: #121821;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px;
}

.content-block h2,
.content-block h3 {
  margin-top: 0;
}

ul {
  margin-bottom: 0;
}

.levels-table-wrap {
  margin-top: 16px;
}

.table-scroll {
  overflow-x: auto;
}

.levels-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.levels-table th,
.levels-table td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.levels-table th {
  background: rgba(255, 255, 255, 0.06);
}

.levels-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.table-data-link {
  margin-top: 0;
  margin-bottom: 12px;
  color: #b7c2cc;
}

.table-data-link a {
  color: #7cc8ff;
  text-decoration: underline;
}

.rarity-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.rarity-orange {
  background: rgba(255, 140, 0, 0.2);
  color: #ffb56b;
  border: 1px solid rgba(255, 140, 0, 0.45);
}

.rarity-purple {
  background: rgba(140, 82, 255, 0.2);
  color: #caa9ff;
  border: 1px solid rgba(140, 82, 255, 0.45);
}

.rarity-blue {
  background: rgba(48, 159, 255, 0.2);
  color: #9ad2ff;
  border: 1px solid rgba(48, 159, 255, 0.45);
}

.rarity-green {
  background: rgba(70, 190, 120, 0.2);
  color: #95ebb8;
  border: 1px solid rgba(70, 190, 120, 0.45);
}

.recruit-results {
  margin-top: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.recruit-card {
  margin: 0;
}

.table-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.table-controls label {
  display: grid;
  gap: 6px;
  min-width: 180px;
  color: #b7c2cc;
}

.table-controls input,
.table-controls select {
  background: #0b0f14;
  color: #e6edf3;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 10px;
}

.sort-btn {
  background: transparent;
  color: inherit;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.tips-box {
  border-color: rgba(124, 200, 255, 0.5);
  background: linear-gradient(180deg, rgba(124, 200, 255, 0.12), rgba(124, 200, 255, 0.04));
}


.quiet-link-row {
  margin-top: -8px;
  text-align: right;
}

.quiet-link-row a {
  color: #8aa0b5;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quiet-link-row a:hover {
  color: #b7c2cc;
}

.difficulty-sections {
  display: grid;
  gap: 12px;
}

.difficulty-section {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.difficulty-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.difficulty-summary::-webkit-details-marker {
  display: none;
}

.difficulty-summary::before {
  content: '▸';
  color: #7cc8ff;
  margin-right: 6px;
  transition: transform 0.2s ease;
}

.difficulty-section[open] .difficulty-summary::before {
  transform: rotate(90deg);
}

.difficulty-title {
  flex: 1;
}

.difficulty-meta {
  color: #b7c2cc;
  font-size: 0.9rem;
  font-weight: 600;
}

.compact-table {
  min-width: 320px;
}
