/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white:      #ffffff;
  --white-soft: rgba(255, 255, 255, 0.85);
  --bar-bg:     rgba(0, 0, 0, 0.55);
  --bar-border: rgba(255, 255, 255, 0.18);
  --bar-label:  rgba(255, 255, 255, 0.45);
  --fade-ms:    800ms;
}

/* ─── Base — explicit pixel size, not % or vh, for GMod ─────── */
html {
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0a0a;
  font-family: 'Nunito Sans', sans-serif;
}

/* ─── Background ─────────────────────────────────────────────── */
#bg-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.bg-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity var(--fade-ms) ease-in-out;
  animation: slow-drift 20s ease-in-out infinite alternate;
}

.bg-slide.active {
  opacity: 1;
}

@keyframes slow-drift {
  from { transform: scale(1.00); }
  to   { transform: scale(1.06); }
}

/* Scrim */
#bg-container::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.6) 100%
  );
  z-index: 1;
}

/* ─── Layout — full page flex column ────────────────────────── */
#layout {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ─── Center Block ───────────────────────────────────────────── */
#center-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 0 24px;
  filter: drop-shadow(0 4px 32px rgba(0,0,0,0.7));
}

#title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 6rem;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1;
  text-shadow:
    0 0 60px rgba(255,255,255,0.2),
    0 2px 8px rgba(0,0,0,0.6);
}

/* ─── Subtitle ───────────────────────────────────────────────── */
#subtitle-block {
  margin-top: 20px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white-soft);
  display: flex;
  align-items: center;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  min-height: 1.8em;
}

#subtitle-prefix {
  white-space: nowrap;
  opacity: 0.7;
}

#subtitle-message {
  white-space: nowrap;
  opacity: 0;
  transition: opacity 500ms ease-in-out;
}

#subtitle-message.visible {
  opacity: 1;
}

/* ─── Server Bar — sits at the bottom of the flex column ─────── */
#server-bar {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: var(--bar-bg);
  border-top: 1.5px solid var(--bar-border);
  height: 72px;
}

.bar-item {
  flex: 1;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 32px;
}

.bar-label {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bar-label);
}

.bar-value {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: opacity 400ms ease;
}

.bar-value.updating {
  opacity: 0;
}

.bar-divider {
  width: 1px;
  background: var(--bar-border);
  align-self: stretch;
  margin: 16px 0;
  flex-shrink: 0;
}
