html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: #000;
  }
  
  #reticle {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    margin-top: -3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    pointer-events: none;
    z-index: 10;
  }
  
  #hud {
    position: fixed;
    left: 12px;
    top: 10px;
    color: white;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
    font-size: 14px;
    line-height: 1.25;
    user-select: none;
    z-index: 10;
    opacity: 0.92;
    width: 340px;
  }
  
  .hud-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .hud-label {
    width: 52px;
    opacity: 0.85;
  }
  
  .hud-value {
    font-variant-numeric: tabular-nums;
  }
  
  .hud-hint {
    opacity: 0.65;
    font-size: 12px;
    margin-left: auto;
  }
  
  .hud-small {
    margin-top: 10px;
    opacity: 0.7;
    font-size: 12px;
  }
  
  .hud-status {
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.85;
    min-height: 16px;
  }
  
  .bar {
    flex: 1;
    height: 10px;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    overflow: hidden;
    outline: 1px solid rgba(255,255,255,0.10);
  }
  
  .bar-fill {
    height: 100%;
    width: 100%;
    background: rgba(120, 220, 255, 0.85);
  }
  
  #overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    background: rgba(0,0,0,0.55);
  }
  
  #overlay.hidden { display: none; }
  
  .panel {
    color: white;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
    text-align: center;
    padding: 18px 18px;
    max-width: 520px;
  }
  
  .panel h1 {
    margin: 0 0 10px 0;
    font-size: 22px;
  }
  
  .panel p {
    margin: 0 0 14px 0;
    opacity: 0.92;
  }
  
  .panel button {
    font-size: 16px;
    padding: 10px 14px;
    cursor: pointer;
  }  

  /* Top-right Group ID label shown during play */
  #groupId {
    position: fixed;
    right: 12px;
    top: 10px;
    color: white;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
    font-size: 14px;
    line-height: 1.25;
    user-select: none;
    z-index: 10;
    opacity: 0.92;
  }