/* Overlays added by bridge.js, on top of the compiled game's UI. */
.hw-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 10, 25, 0.8);
  font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif;
}
.hw-card {
  width: min(420px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 20px;
  border: 3px solid #ffd700;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a1a2e, #302b63);
  color: #fff;
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.35);
}
.hw-title { font-size: 26px; color: #ffd700; }
.hw-rank { margin: 10px 0 0; font-size: 17px; }
.hw-text { margin: 6px 0 0; font-family: Arial, sans-serif; font-size: 14px; opacity: 0.85; }
.hw-label { margin-top: 14px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.75; }
.hw-code {
  margin: 4px auto 0;
  padding: 6px 14px;
  display: inline-block;
  border-radius: 10px;
  background: #ffd700;
  color: #1a1a2e;
  font-family: 'Courier New', monospace;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 8px;
}
.hw-hint { margin: 12px 0 0; font-family: Arial, sans-serif; font-size: 14px; line-height: 1.35; }
.hw-btn {
  margin-top: 16px;
  padding: 10px 36px;
  border: 0;
  border-radius: 10px;
  background: #ffd700;
  color: #1a1a2e;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}
.hw-round {
  position: fixed;
  left: max(8px, env(safe-area-inset-left));
  top: max(8px, env(safe-area-inset-top));
  z-index: 99999;
  max-width: calc(50% - 120px);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(26, 26, 46, 0.9);
  border: 2px solid #ffd700;
  color: #ffd700;
  font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.hw-round[hidden] { display: none; }
