body {
  margin: 0;
  padding: 0;
  background: #000;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
#game-container {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  background: #000;
}


.cortinas {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
}
.cortina {
  width: 50vw;
  height: 100vh;
  background: repeating-linear-gradient(
    90deg,
    #7a0000 0px,
    #a30000 10px,
    #7a0000 20px,
    #a30000 30px
  );
  background-size: 40px 100%;
  transition: transform 2s cubic-bezier(0.77, 0, 0.18, 1);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.cortinas .cortina:nth-child(1) {
  border-right: 3px solid #330000;
  box-shadow: inset 20px 0 40px rgba(0,0,0,0.7);
  background-position: left;
}
.cortinas .cortina:nth-child(2) {
  border-left: 3px solid #330000;
  box-shadow: inset -20px 0 40px rgba(0,0,0,0.7);
  background-position: right;
}

.cortina {
  transform: translateX(0);
  transition: transform 2s cubic-bezier(0.77, 0, 0.18, 1);
}

.cortinas .cortina:nth-child(1).hide { transform: translateX(-100%); }
.cortinas .cortina:nth-child(2).hide { transform: translateX(100%); }

.cortinas .cortina:nth-child(1).close { transform: translateX(0); }
.cortinas .cortina:nth-child(2).close { transform: translateX(0); }

.mensaje {
  position: absolute;
  z-index: 100;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem 2rem;
  border-radius: 10px;
  transition: all 1.5s ease;
}
.mensaje.hide {
  opacity: 0;
  transform: translate(-50%, -150%);
}

.boton-abrir {
  position: absolute;
  z-index: 100;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #a30000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background .3s;
}
.boton-abrir:hover { background: #7a0000; }

#lang-toggle {
  transition: transform 0.2s ease, background-color 0.3s ease;
  animation: pulse 1.5s ease-out 10;
}

#lang-toggle:hover {
  transform: scale(1.1) rotate(-3deg);
  background-color: rgba(251, 191, 36, 0.3);
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}
