body {
  background-image: url('/images/background_universe.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: 'Segoe UI', sans-serif;
  backdrop-filter: blur(5px);
  cursor: url('../images/wyrdwood-cursor.cur') 16 16, auto;
  cursor: url('../images/wyrdwood-cursor.png') 16 16, auto;
  height: auto;
  min-height: 100vh;
  font-size: clamp(14px, 1.5vw, 18px);
}

.login-box {
  background-color: rgba(10, 10, 10, 0.85);
  border: 1px solid #5a8e93;
  border-radius: 12px;
  padding: 2rem;
  color: #fff;
  box-shadow: 0 0 20px rgba(90, 111, 147, 0.5);
}

.wyrdwood-box {
  background-color: rgba(10, 10, 10, 0.85);
  border: 1px solid #5a8e93;
  border-radius: 12px;
  padding: 2rem;
  color: #fff;
  box-shadow: 0 0 20px rgba(90, 111, 147, 0.5);
}

.wyrdwood-title {
  font-family: 'Georgia', serif;
  font-size: clamp(24px, 2.5vw, 36px);
  letter-spacing: 2px;
  color: #5a8e93;
}

.form-control:focus {
  border-color: #5a8e93;
  box-shadow: 0 0 10px #5a8e93;
}

.btn-wyrdwood {
  background-color: #5a8e93;
  color: #fff;
  border: none;
}

.btn-wyrdwood:hover {
  background-color: #1f577d;
}

.register-box {
  background-color: rgba(10, 10, 10, 0.85);
  border: 1px solid #5a8e93;
  border-radius: 12px;
  padding: 2rem;
  color: #fff;
  box-shadow: 0 0 20px rgba(90, 111, 147, 0.5);
  }

.navbar {
  font-family: 'Cinzel', serif;
}

/* LOADER */
#loader {
  background: radial-gradient(circle at center, #1a1a1a 0%, #0b0b0b 100%);
  background-image: url('/images/background_universe.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Cercle magique */
.loader-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

/* Anneau de runes tournant */
.runes {
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  color: #9dd8ff;
  animation: rotate 3s linear infinite;
}

/* Animations */
@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(157, 211, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(157, 232, 255, 0.7);
  }
}
/* LOADER */

.winbox {
  position: fixed !important;
  z-index: 2000 !important;
  max-width: 100vw;
  max-height: 100vh;
  box-sizing: border-box;
}

.winbox .wb-body {
  overflow: auto;
}

.transparent-winbox {
  background: rgba(0, 0, 0, 0.5) !important; /* fond noir transparent */
  backdrop-filter: blur(5px); /* optionnel : effet de flou derrière */
  color: white; /* texte lisible */
  border: 1px solid rgba(255, 255, 255, 0.2); /* contour léger */
}

.transparent-winbox .wb-body {
  background: transparent !important;
}

/* #winbox-box {
  pointer-events: auto;
} */

.tile {
  width: 150px;
  height: 150px;
  box-sizing: border-box;
  display: inline-block;
  border: 0px solid #ffffff2f;
}
.tile {
  width: clamp(80px, 10vw, 150px);
  height: clamp(80px, 10vw, 150px);
  box-sizing: border-box;
  display: inline-block;
  border: 0px solid #ffffff2f;
  margin: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.2rem;
  position: relative;
}

.tile-current {
  border: 1px solid #ffffff8e;}

.tile-selected {
  border: 1px solid #0091ff8e;
}

.tile-success {
  border: 1px solid #00ff6a8e;
}

.tile-disabled {
  border: 1px solid #ff00008e;
}

.tile:hover {
  border: 1px solid #ffffff2f;
}

.tile-selected:hover {
  border: 1px solid #ffffff2f;
}

.tile-success:hover {
  border: 1px solid #ffffff2f;
}

.tile-disabled:hover {
  border: 1px solid #ffffff2f;
}

.tile .heros img {
  max-width: 6vw;
  max-height: 6vh;
  object-fit: contain;
  display: block;
}

.tile .building img {
  max-width: 11vw;
  max-height: 11vh;
  object-fit: contain;
  display: block;
}

.flash-hit {
  animation: flashRed 0.2s;
}
@keyframes flashRed {
  0% {
      filter: brightness(2) saturate(2) hue-rotate(0deg);
  }
  100% {
      filter: none;
  }
}

.shake-hit {
  animation: shake 0.3s;
}
@keyframes shake {
  0% { transform: translate(0px, 0px); }
  25% { transform: translate(-4px, 2px); }
  50% { transform: translate(4px, -2px); }
  75% { transform: translate(-2px, 2px); }
  100% { transform: translate(0px, 0px); }
}

.card-stats .stat{
  min-width: 80px;
  font-size: 0.85rem;
  background-color: rgba(0, 0, 0, 0.5);
}
