@font-face {
  font-family: 'Stalinist One';
  src: url('Recursos/StalinistOne-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Tiny5";
  src: url("Recursos/Tiny5-Regular.ttf") format("truetype");
}

h3{
  font-family: 'Stalinist One', sans-serif;
  text-align: center;
}

body {
  background: #222 url('Recursos/Fondo.jpg') no-repeat center center;
  background-size: cover;
  display: flex;      
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  color: #eee;
  font-family: sans-serif;
}

div {
  font-family: "Tiny5", sans-serif;
}

#mecha { /* Menu cetral */
  background-color: #0076b68e;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  width: 500px;
  height: 600px;
  border: 5px outset #90e0ef;
  overflow: hidden;
  border-radius: 8px;
  
}

#mecha img {
  position: absolute;
  image-rendering: pixelated;
  background: transparent;
}

#torso {
  width: 274px;
  height: 251px;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

#cabeza, #casco {
  width: 164px;  
  height: 156px;
  z-index: 3;
}

#casco {
  width: 175px; 
  height: 174px;
  z-index: 4;
}

#brazo-izq, #brazo-der {
  width: 225px;
  height: 301px;
  z-index: 4;
}

#brazo-der {
  transform: scaleX(-1);
  transform-origin: top left;
}

#piernas {
  width: 405px;
  height: 335px;
  z-index: 3;
}

#menu { /* Menu cetral */
  background-color: #0076b68e;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 10px;
  border: 5px outset #90e0ef;
  border-radius: 8px;
  width: 220px;
}

#menu h3 {
  margin-top: 0;
  font-size: 18px;
  color: #ffffff;
}

#menu label {
  display: block;
  margin: 10px 0 5px;
  font-size: 14px;
}

#menu select {
  width: 100%;
  padding: 4px;
  background: #222;
  color: #eee;
  border: 1px solid #555;
  border-radius: 4px;
}

#stats { /* stats */
  background-color: #0076b68e;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 15px;
  border: 5px outset #90e0ef;
  border-radius: 8px;
  width: 220px;
}

#stats h3 {
  margin-top: 0;
  font-size: 22px;
  color: #ffffff;
}

.stat { 
  margin: 10px 0; 
}

.stat-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.stat-bar {
  width: 100%;
  height: 16px;
  background: #111;
  border: 1px solid #555;
  border-radius: 4px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(80deg, #0077b6, #00b4d8);
  width: 0%;
  transition: width 0.25s ease-out;
}

#menu label {
  margin-top: 12px;
}

#ataques {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.ataques-col {
  width: 48%;
}

.ataque {
  padding: 4px 6px;
  margin: 4px 0;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
  font-weight: bold;
  color: #fff;
}

.bloqueado {
  position: relative;
  margin-top: 20px;
}

.overlayBloqueado {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(128, 128, 128, 0.904);
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: white;
  pointer-events: none;
  font-size: 1.2em;
  border-radius: 5px;
  border: rgb(255, 255, 255) solid 2px;
}

.fila-selector{
  display:grid;
  grid-template-columns: 42px 1fr 48px;
  align-items:center;
  gap:8px;
  background:#03055eb4;
  border:2px solid #90e0ef;
  border-radius:10px;
  padding:6px;
  margin-bottom:12px;
  box-shadow: 0 0 5px #caf0f8;
}

.btn-swap{
  width:40px; height:40px;
  background:#ff545400;
  border: #ff000000 solid 2px;
  display:flex; justify-content:center; align-items:center;
  cursor:pointer;
  overflow:hidden;
  padding:0;
}
.btn-swap img{
  width:100%; height:100%; object-fit:contain;
  image-rendering:pixelated;
  display:block;
}

.icono-centro{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:4px;
}
.icono-centro img{
  width:45px; height:45px; object-fit:contain;
  image-rendering:pixelated;
  filter: drop-shadow(0 0 4px #caf0f8);
}

.valor-actual{
  font-size:12px; color:#ddd; text-align:center;
  background:#151515; border:1px solid #333; padding:4px 8px; border-radius:6px;
  min-width:90px;
}
