html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #eee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  /* Chặn zoom, kéo trang, vuốt lùi, menu giữ lâu và bôi chọn chữ của trình duyệt. */
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

/* Vùng an toàn: tránh tai thỏ / Dynamic Island / thanh home của iPhone. */
#nro-stage {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  right: env(safe-area-inset-right, 0px);
  bottom: env(safe-area-inset-bottom, 0px);
  left: env(safe-area-inset-left, 0px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cỡ hiển thị do index.html tính (giữ tỉ lệ cỡ lúc mở game). */
#unity-canvas {
  display: block;
  background: #000;
  outline: none;
  touch-action: none;
}

.nro-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  text-align: center;
  background: #000;
}

#nro-loading img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
}

#nro-title {
  margin: 14px 0 18px;
  font-size: 18px;
  font-weight: 600;
}

#nro-bar {
  width: min(320px, 80vw);
  height: 10px;
  border-radius: 5px;
  background: #333;
  overflow: hidden;
}

#nro-bar-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #f7a400, #ffd23f);
  transition: width .2s;
}

#nro-status {
  margin-top: 10px;
  font-size: 14px;
  color: #bbb;
}

#nro-hint {
  margin-top: 22px;
  max-width: 360px;
  font-size: 13px;
  line-height: 1.5;
  color: #999;
}

#nro-message {
  z-index: 3;
  font-size: 15px;
  line-height: 1.6;
}

#nro-message a, #nro-message button {
  margin-top: 16px;
  padding: 10px 22px;
  border: 0;
  border-radius: 8px;
  background: #f7a400;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

/* Thiết bị cảm ứng cầm dọc: game chỉ chạy ngang. */
#nro-rotate {
  z-index: 2;
  display: none;
  font-size: 17px;
}

#nro-rotate .icon {
  font-size: 54px;
  margin-bottom: 12px;
  transform: rotate(90deg);
}

@media (orientation: portrait) {
  .touch #nro-rotate {
    display: flex;
  }
}

[hidden] {
  display: none !important;
}
