:root {
  color-scheme: dark;
  --bg-base: #07070a;
  --text-main: #f8f1f1;
  --text-muted: #d2b8b8;
  --card-bg: rgba(12, 8, 10, 0.84);
  --card-border: rgba(255, 72, 72, 0.3);
  --input-bg: rgba(12, 9, 12, 0.82);
  --input-border: rgba(255, 74, 74, 0.36);
  --button-bg: linear-gradient(180deg, #5d0f19 0%, #430a13 100%);
  --button-hover: linear-gradient(180deg, #741525 0%, #520d19 100%);
  --accent: #ff4f5d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg-base);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-main);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(5, 2, 3, 0.32), rgba(7, 3, 4, 0.52));
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
}

.guild-logo {
  display: none;
  max-width: 300px;
  max-height: 120px;
  object-fit: contain;
  margin: 0 auto 16px;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.7));
}

h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  text-align: center;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.muted {
  margin: 0 0 20px;
  color: var(--text-muted);
}

.container > .muted {
  text-align: center;
}

.hero-link-row {
  margin: 0 0 18px;
  text-align: center;
}

.hero-link-btn {
  display: inline-block;
  min-width: 290px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 92, 92, 0.45);
  border-radius: 8px;
  background: var(--button-bg);
  color: #fff5f5;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.hero-link-btn:link,
.hero-link-btn:visited {
  color: #fff5f5;
  text-decoration: none;
}

.hero-link-btn:hover,
.hero-link-btn:focus-visible {
  background: var(--button-hover);
  text-decoration: none;
}

.hero-link-btn:active {
  transform: translateY(1px);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

input[type="text"] {
  min-width: 240px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-main);
}

input[type="password"] {
  min-width: 240px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-main);
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 79, 93, 0.2);
}

button {
  padding: 8px 12px;
  border: 1px solid rgba(255, 92, 92, 0.45);
  border-radius: 8px;
  background: var(--button-bg);
  color: #fff5f5;
  cursor: pointer;
}

button:hover {
  background: var(--button-hover);
}

.slot-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}

.slot-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slot-row-title {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #ffd2d7;
}

.slot-row-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 10px;
}

.slot-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--input-bg);
}

.slot-card.is-complete {
  filter: blur(1px);
  opacity: 0.55;
}

.slot-card.is-complete .slot-meta {
  pointer-events: none;
}

.slot-circle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid rgba(212, 191, 229, 0.38);
  background: transparent;
  color: #5ffb8b;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.slot-circle:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.slot-circle.is-selected {
  border-color: rgba(95, 251, 139, 0.75);
  background: rgba(95, 251, 139, 0.14);
}

.slot-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.slot-meta strong {
  color: var(--text-main);
  font-size: 0.92rem;
}

.slot-checkers {
  color: #cfe8d4;
  font-size: 0.8rem;
  line-height: 1.2;
}

.attacks-row input[type="range"] {
  width: 220px;
}

.status {
  min-height: 22px;
  color: #ff949d;
  font-weight: 600;
}

.reset-countdown {
  margin: 4px 0 8px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.reset-next {
  margin: 0 0 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid rgba(255, 79, 93, 0.2);
  text-align: left;
  padding: 10px 8px;
}

th {
  color: #ffd2d7;
}

@media (max-width: 900px) {
  .slot-row-cards {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 640px) {
  .slot-row-cards {
    grid-template-columns: 1fr;
  }
}
