html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

#root, #gameContainer {
  width: 100%;
  height: 100%;
  position: relative;
}

canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.panel {
  pointer-events: auto;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 14px 16px;
  border-radius: 10px;
  text-align: center;
  max-width: 85%;
}

.hidden { display: none !important; }

.cta {
  margin-top: 10px;
  font-size: 16px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #000;
}
/* loading should never capture clicks */
#loading { pointer-events: none; }

/* endcard MUST capture clicks */
#endcard { pointer-events: auto; }
#endcard .panel { pointer-events: auto; }