:root {
  color-scheme: dark;
  color: #e2e8f0;
  background: #0b1120;
  font-family: system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at top, #172554 0, #0b1120 42%); min-height: 100vh; }
a { color: #93c5fd; }
a:hover { color: #bfdbfe; }
.container { max-width: 1100px; margin: 40px auto; padding: 0 20px; }
.container--wide { max-width: none; margin: 24px auto; padding: 0 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 32px; border-bottom: 1px solid #334155; background: #080d19; color: #f8fafc; box-shadow: 0 4px 20px rgb(0 0 0 / 25%); }
.site-header a { color: #e2e8f0; text-decoration: none; }
.site-header a:hover { color: #93c5fd; }
.site-header nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-header nav span { color: #94a3b8; }
.brand { font-size: 24px; font-weight: 700; letter-spacing: 0.02em; }
.link-button { padding: 0; border: 0; background: none; color: #e2e8f0; cursor: pointer; font: inherit; }
.link-button:hover { color: #93c5fd; }
.flash { margin-bottom: 20px; padding: 12px 16px; border: 1px solid; border-radius: 6px; }
.notice { border-color: #166534; background: #052e1b; color: #bbf7d0; }
.alert, .errors { border-color: #991b1b; background: #450a0a; color: #fecaca; }
.errors { margin-bottom: 20px; padding: 12px 16px; border-style: solid; border-width: 1px; border-radius: 6px; }
.form { max-width: 480px; padding: 24px; border: 1px solid #334155; border-radius: 10px; background: #111c2e; box-shadow: 0 12px 30px rgb(0 0 0 / 25%); }
.form > div { margin-bottom: 18px; }
.form label { display: block; margin-bottom: 6px; color: #cbd5e1; font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; padding: 10px; border: 1px solid #475569; border-radius: 5px; background: #0f172a; color: #f1f5f9; font: inherit; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: #60a5fa; outline: 2px solid rgb(96 165 250 / 20%); }
.form textarea { resize: vertical; }
.form small { display: block; margin-top: 5px; color: #94a3b8; }
input[type="submit"], button:not(.link-button), .button { padding: 9px 14px; border: 1px solid #3b82f6; border-radius: 5px; background: #2563eb; color: #eff6ff; cursor: pointer; font: inherit; }
input[type="submit"]:hover, button:not(.link-button):hover, .button:hover { background: #1d4ed8; }
.button { display: inline-block; text-decoration: none; white-space: nowrap; }
.button:hover { color: #eff6ff; }
button.danger-button { border-color: #dc2626; background: #b91c1c; }
button.danger-button:hover { background: #991b1b; }
.hero { padding: 32px; border: 1px solid #334155; border-radius: 10px; background: #111c2e; box-shadow: 0 12px 30px rgb(0 0 0 / 20%); }
.hero p { color: #aebdd0; }
.hero strong { color: #e2e8f0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-heading span { color: #94a3b8; }
.boss-list-heading { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.level-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.level-filter { padding: 6px 9px; border: 1px solid #475569; border-radius: 5px; background: #111c2e; color: #cbd5e1; font-size: 13px; text-decoration: none; white-space: nowrap; }
.level-filter:hover { border-color: #60a5fa; background: #172033; color: #eff6ff; }
.level-filter--active, .level-filter--active:hover { border-color: #3b82f6; background: #1d4ed8; color: #eff6ff; }
.table-wrapper { overflow-x: auto; border: 1px solid #334155; border-radius: 10px; background: #111c2e; box-shadow: 0 12px 30px rgb(0 0 0 / 20%); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid #334155; text-align: left; }
th { background: #172033; color: #cbd5e1; }
tbody tr:hover { background: #172033; }
tbody tr:last-child td { border-bottom: 0; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.actions form { margin: 0; }
.actions a { white-space: nowrap; }
.actions button { padding: 6px 9px; font-size: 13px; }
.respawn-window { display: inline-block; padding: 7px 10px; border: 1px solid #475569; border-radius: 6px; color: #cbd5e1; line-height: 1.5; white-space: nowrap; }
.respawn-window--active { border-color: #16a34a; background: #052e1b; color: #86efac; box-shadow: 0 0 12px rgb(34 197 94 / 15%); }
.respawn-window--possible { border-color: #ca8a04; background: #422006; color: #fde047; box-shadow: 0 0 12px rgb(234 179 8 / 15%); }
.empty-state { padding: 32px; border: 1px solid #334155; border-radius: 10px; background: #111c2e; text-align: center; }
.empty-state p { color: #aebdd0; }
.raid-boss-name { display: flex; align-items: center; gap: 8px; }
button.boss-info-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px; padding: 0; border-color: #64748b; border-radius: 50%; background: #1e293b; color: #bfdbfe; font-family: Georgia, serif; font-size: 16px; font-style: italic; font-weight: 700; }
button.boss-info-button:hover { background: #334155; }
.boss-info-modal { width: min(720px, calc(100vw - 32px)); max-height: 90vh; padding: 24px; overflow-y: auto; border: 1px solid #475569; border-radius: 10px; background: #111c2e; color: #e2e8f0; box-shadow: 0 24px 60px rgb(0 0 0 / 50%); }
.boss-info-modal::backdrop { background: rgb(2 6 23 / 80%); }
.boss-info-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.boss-info-modal-header h2 { margin: 0; }
.boss-info-modal h3 { margin: 20px 0 10px; color: #cbd5e1; font-size: 16px; }
.boss-info-modal p { color: #cbd5e1; line-height: 1.6; }
button.modal-close-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border-color: #475569; background: #1e293b; color: #e2e8f0; font-size: 24px; line-height: 1; }
button.modal-close-button:hover { background: #334155; }
.boss-location-image { display: block; width: 100%; max-height: 65vh; object-fit: contain; border: 1px solid #334155; border-radius: 6px; background: #0b1120; }
.boss-location-description { margin-bottom: 0; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.pagination-link { padding: 7px 12px; border: 1px solid #475569; border-radius: 5px; background: #111c2e; color: #bfdbfe; text-decoration: none; }
.pagination-link:hover { border-color: #60a5fa; background: #172033; color: #eff6ff; }

@media (max-width: 640px) {
  .site-header { align-items: flex-start; padding: 16px 20px; }
  .site-header nav { justify-content: flex-end; gap: 10px; font-size: 14px; }
  .container { margin-top: 24px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
}
