body {
  font-family: Arial, sans-serif;
  background: #111;
  color: #eee;
  padding: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 1s ease-in-out;
}

body.crimson-hour {
  background: radial-gradient(circle at center, #220000 0%, #111 100%);
}

.banner {
  max-width: 100%;
  height: auto;
  margin-bottom: 1em;
  border-radius: 8px;
  box-shadow: 0 0 10px #000;
  display: block;
}

.server-box {
  background: #222;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 1em;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 0 10px #000;
  font-size: 1rem;
  transition: box-shadow 1s ease-in-out;
}

.crimson-glow {
  box-shadow: 0 0 20px #f44, 0 0 40px #f44 inset;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px #f44, 0 0 20px #f44 inset; }
  50%      { box-shadow: 0 0 20px #f44, 0 0 40px #f44 inset; }
}

.server-title {
  margin-bottom: 0.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
}

.server-title a {
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  box-shadow: 0 0 5px #000;
  font-size: 0.75em;
  padding: 0.25em 0.5em;
  display: inline-block;
  line-height: 1.2;
}

@keyframes pulseButton {
  0%, 100% { transform: scale(1); box-shadow: 0 0 5px #000; }
  50%      { transform: scale(1.05); box-shadow: 0 0 10px #000; }
}

.discord,
.vote,
.donate {
  font-size: 0.85em;
  padding: 0.4em 0.8em;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 0 6px #000;
  animation: pulseButton 3s infinite;
  display: inline-block;
  text-decoration: none;
  will-change: transform, box-shadow;
  transform-origin: center center;
}

.discord {
  background: #5865F2;
  color: #fff;
  animation-delay: 0s;
}

.vote {
  background: #f44;
  color: #fff;
  border: none;
  animation-delay: 1s;
}

.donate {
  background: #0070ba;
  color: #fff;
  border: none;
  animation-delay: 2s;
}

.server-time {
  font-size: 1.5em;
  margin-bottom: 0.5em;
  text-align: center;
}

.server-status {
  font-size: 0.95em;
  color: #ccc;
  text-align: center;
  word-wrap: break-word;
  margin-bottom: 1em;
}

.bloodmoon {
  color: #f44;
  font-weight: bold;
  font-size: 1em;
  margin-bottom: 0.5em;
}

.bloodmoon span {
  animation: pulseSkull 1.5s infinite;
}

.bloodmoon-eta {
  display: block;
  margin-top: 4px;
  font-weight: bold;
  color: #ccc;
}

@keyframes pulseSkull {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}

#serverStatusBanner {
  margin-top: 1em;
  padding: 0.5em 1em;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  max-width: 320px;
  width: 100%;
}

@media screen and (max-width: 400px) {
  .server-box { padding: 0.8em; font-size: 0.95rem; }
  .server-time { font-size: 1.3em; }
  .server-status { font-size: 0.9em; }
  .server-title a { font-size: 0.7em; padding: 0.2em 0.4em; }
}

/* 📱 Mobile layout refinement */
@media screen and (max-width: 767px) {
  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .banner {
    width: 100%;
    height: 15vh;
    object-fit: fill; /* removes aspect ratio constraint */
    display: block;
    margin: 0 auto;
    padding: 0;
    background-color: #111;
  }
}

  .banner-container {
    margin: 0;
    padding: 0;
  }

  .server-box {
    min-height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    gap: 1em;
  }

  .server-time {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
  }

  .bloodmoon {
    margin-bottom: 0.5em;
  }

  .server-status {
    margin-bottom: 1em;
  }

  .server-title {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5em;
  }

  .discord,
  .vote,
  .donate {
    font-size: 0.95em !important;
    padding: 0.5em 1em !important;
    border-radius: 10px !important;
    box-shadow: 0 0 8px #000 !important;
    flex: 1 1 auto;
    text-align: center;
  }
}

.banner-wrapper {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

@media screen and (min-width: 768px) {
  .banner {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transform: scale(1.25, 1.4); /* stretches horizontally and vertically */
    transform-origin: center;
  }

  .dashboard-module {
    max-width: 960px;
    margin: 2em auto;
    padding: 1em;
    background: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 0 20px #000;
  }
}