:root {
  --bg: #0b0b0c;
  --card: #151517;
  --card-border: #2a2a2e;
  --field: #0f0f11;
  --text: #f2f2f2;
  --muted: #8d8d94;
  --orange: #ff7a1a;
  --orange-dark: #e05a00;
  --green: #3ddc84;
  --red: #ff4d4d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, rgba(255, 122, 26, 0.18), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--orange);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 122, 26, 0.08);
}

.card__title {
  margin: 10px 0 0;
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.15;
  word-break: break-word;
}

.card__map {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.card__map:empty { display: none; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}
.status--online { color: var(--green); }
.status--online .status__dot {
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  animation: pulse 2s infinite;
}
.status--offline { color: var(--red); }
.status--offline .status__dot { background: var(--red); }

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.field__row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--field);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 6px 6px 6px 14px;
}
.field__value {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "Consolas", monospace;
  font-size: 16px;
  color: var(--orange);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.online__count {
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  color: var(--muted);
}
.online__count b { color: var(--text); font-weight: 700; }
.online__queue { font-size: 13px; color: var(--orange); }

.bar {
  height: 8px;
  background: var(--field);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange-dark), var(--orange));
  border-radius: inherit;
  transition: width 0.6s ease;
}

.btn {
  font: inherit;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s, color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.btn--ghost {
  flex-shrink: 0;
  padding: 9px 14px;
  font-size: 14px;
  background: rgba(255, 122, 26, 0.12);
  color: var(--orange);
}
.btn--ghost:hover { background: rgba(255, 122, 26, 0.22); }
.btn--ghost.is-done { background: rgba(61, 220, 132, 0.15); color: var(--green); }

.btn--primary {
  display: block;
  text-align: center;
  padding: 16px;
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #0b0b0c;
  background: linear-gradient(180deg, var(--orange), var(--orange-dark));
  box-shadow: 0 8px 24px rgba(255, 122, 26, 0.3);
}
.btn--primary:hover { background: linear-gradient(180deg, #ff8f3d, var(--orange)); }

.hint {
  margin: -10px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--orange);
  color: #0b0b0c;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 400px) {
  .card { padding: 22px 18px; }
  .card__title { font-size: 24px; }
  .field__value { font-size: 14px; }
}
