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

/* Center the 9:16 game box */
#wrap {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#gameBox {
  position: relative;
  width: 360px;   /* will be overwritten by JS fitAspect */
  height: 640px;  /* will be overwritten by JS fitAspect */
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

#unity-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

/* Overlays */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
}

.hidden { display: none !important; }

.overlayCard {
  width: min(420px, 92%);
  border-radius: 14px;
  padding: 18px 18px 16px;
  background: rgba(20,20,20,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}

.brandTitle {
  font-size: 18px;
  font-weight: 700;
}

.brandSub {
  font-size: 12px;
  opacity: .8;
  margin-top: 2px;
}

.barWrap {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
  margin-top: 14px;
}

#barFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6ee7ff, #a78bfa);
  border-radius: 999px;
  transition: width 120ms linear;
}

.barMeta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  opacity: .9;
}

.overlayTitle {
  font-size: 16px;
  font-weight: 700;
}

.overlayBody {
  font-size: 12px;
  opacity: .85;
  margin-top: 6px;
}

.rotateIcon {
  font-size: 28px;
  margin-bottom: 10px;
}

.primaryBtn {
  margin-top: 14px;
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  color: #111;
  background: #fff;
}
