* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #111;
  color: #fff;
  font-family: "Segoe UI", system-ui, sans-serif;
  user-select: none;
}

#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

#hud {
  position: fixed;
  top: 18px;
  left: 3vw;
  right: 3vw;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  pointer-events: none;
}

.side { flex: 1; }

.bar {
  position: relative;
  height: 24px;
  background: #2a1414;
  border: 3px solid #f4ead2;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35);
}
.bar .ghost, .bar .fill { position: absolute; top: 0; bottom: 0; width: 100%; }
.bar .ghost { background: #e03a2f; }
.bar .fill { background: linear-gradient(#ffe06a, #f0a818); }
.left .bar .ghost, .left .bar .fill { left: 0; }    /* a vida esvazia do centro (tempo) para fora */
.right .bar .ghost, .right .bar .fill { right: 0; }

.row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.name {
  font-weight: 900;
  font-style: italic;
  font-size: 22px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 #000;
}
.pips { display: flex; gap: 6px; }
.pips i {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid #f4ead2;
  background: rgba(0, 0, 0, .4);
}
.pips i.on { background: #ffd23f; box-shadow: 0 0 8px #ffd23f; }

#timer {
  min-width: 70px;
  text-align: center;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  padding: 2px 6px 6px;
  background: rgba(0, 0, 0, .55);
  border: 3px solid #f4ead2;
  border-radius: 6px;
  text-shadow: 2px 2px 0 #000;
}

.combo {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 900;
  font-style: italic;
  color: #ffd23f;
  text-shadow: 3px 3px 0 #7a1d10;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .15s, transform .15s;
}
.right .combo { text-align: right; }
.combo.show { opacity: 1; transform: scale(1); }

#center {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#banner {
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 4px;
  color: #fff4d0;
  -webkit-text-stroke: 3px #7a1d10;
  text-shadow: 6px 6px 0 rgba(0, 0, 0, .45);
  opacity: 0;
  transform: scale(1.4);
  transition: opacity .12s, transform .12s;
}
#banner.show { opacity: 1; transform: scale(1); }
#sub { margin-top: 12px; font-size: 20px; font-weight: 700; text-shadow: 2px 2px 0 #000; }

#help {
  position: fixed;
  left: 12px;
  bottom: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .9);
  text-shadow: 1px 1px 2px #000;
  pointer-events: none;
}
#status { color: #ffd23f; }
