/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* BODY */
body {
  background: #0d0d0d;
  color: #fff;
  overflow: hidden;
}

/* TOP BAR */
#topBar {
  min-height: 92px;
  background: #111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px 10px;
  border-bottom: 1px solid #222;
}

/* ROW 1 */
#topRow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* BOTON DE REGRESO */
#backBtn {
  flex: 0 0 auto;
  color: #00ff99;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  padding: 6px 12px;
  border: 2px solid #00ff99;
  border-radius: 8px;
  transition: all 0.2s ease;
}

#backBtn:hover {
  background: #00ff99;
  color: #000;
}

/* BARRA DE TIEMPO */
#timeBarWrap {
  flex: 1 1 auto;
  min-width: 80px;
  height: 16px;
  background: #1b1b1b;
  border: 1px solid #2e2e2e;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.45);
}

#timeBar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #00ff99, #00cc77);
  border-radius: 999px;
  transition: width 0.15s linear;
  box-shadow: 0 0 10px rgba(0,255,153,0.35);
}

/* TIMER */
#timerBox {
  flex: 0 0 auto;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}

/* ROW 2 */
#bottomRow {
  width: 100%;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
}

#bottomRow .divider {
  display: inline-block;
  margin: 0 10px;
}

#bottomRow span {
  font-size: 1.08em;
}

/* GAME VIEW */
#gameView {
  position: relative;
  width: 100%;
  height: calc(100vh - 92px);
  overflow: hidden;
}

/* CANVAS */
#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
  background: radial-gradient(circle at center, #1a1a1a, #000);
}

/* FLOATING NAMES */
#floatingContainer {
  position: absolute;
  bottom: 20px;
  right: 20px;
  pointer-events: none;
}

/* ANIMATED NAME */
.floatingText {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  opacity: 1;
  animation: floatUp 2s ease-out forwards;
}

@keyframes floatUp {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-200px);
    opacity: 0;
  }
}

/* BOTON DE PLAY INICIAL */
.bigPlayBtn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  padding: 22px 46px;
  font-size: 34px;
  font-weight: 900;
  border: none;
  border-radius: 18px;
  background: #ffffff;
  color: #111;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.bigPlayBtn:hover {
  transform: translate(-50%, -50%) scale(1.04);
}