/* Carrom 3D — premium courtyard HUD (2026-10-18) */

/* No accidental text selection, long-press callouts or tap flashes in play */
html, body, .game-shell, .game-shell * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.game-shell { background: radial-gradient(circle at 50% 40%, #4a2638 0%, #1c0f1e 100%); }

/* Glass HUD: one frosted strip, warm golden edge */
.hud-top {
  width: auto;
  align-self: center;
  margin: 0 auto;
  padding: 6px;
  gap: 6px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 238, 214, .16), rgba(60, 24, 40, .38));
  border: 1px solid rgba(255, 214, 150, .32);
  box-shadow: 0 10px 28px rgba(20, 6, 16, .45), inset 0 1px 0 rgba(255, 255, 255, .18);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.hud-chip {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: none;
  border-radius: 12px;
}
.hud-chip span.label { color: rgba(255, 226, 180, .62); }
.turn-indicator {
  border-color: rgba(255, 210, 74, .8);
  background: linear-gradient(135deg, rgba(255, 210, 74, .24), rgba(255, 120, 60, .12));
  box-shadow: 0 0 16px rgba(255, 196, 80, .35);
  animation: c3d-turn 2.2s ease-in-out infinite;
}
.turn-indicator[data-color="black"] {
  border-color: rgba(150, 170, 255, .75);
  background: linear-gradient(135deg, rgba(120, 140, 255, .24), rgba(40, 40, 80, .3));
  box-shadow: 0 0 16px rgba(130, 150, 255, .32);
}
@keyframes c3d-turn { 50% { box-shadow: 0 0 26px rgba(255, 196, 80, .55); } }

.hud-btn {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 220, 170, .28);
  border-radius: 12px;
}
.auto-btn {
  font-weight: 900;
  letter-spacing: .06em;
  color: #ffe9b8;
}
.auto-btn.active {
  color: #2a1408;
  background: linear-gradient(135deg, #ffd24a, #ff8a3d);
  border-color: #ffe7a0;
  box-shadow: 0 0 18px rgba(255, 170, 60, .6);
}
.auto-btn.hidden { display: none; }

/* Striker slider: identity.css pinned it to the left gutter while style.css
   still shifted it -50%, so half of it hung off-screen. Centre it properly. */
.baseline-positioner {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(86vw, 360px);
  background: linear-gradient(180deg, rgba(255, 238, 214, .16), rgba(60, 24, 40, .5));
  border-color: rgba(255, 214, 150, .32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.baseline-positioner.hidden { transform: translate(-50%, 15px); }
.positioner-label { color: rgba(255, 232, 196, .8); white-space: nowrap; }
@media (max-width: 700px) {
  .baseline-positioner { width: min(90vw, 360px); }
  .hud-top { flex-wrap: nowrap; padding: 4px; gap: 4px; max-width: 100%; }
  .hud-top .hud-btn { min-width: 40px; min-height: 38px; padding: 0 9px; font-size: .62rem; }
  .hud-chip { white-space: nowrap; }
}

/* Graphics toggle (setup + pause) */
.gfx-toggle { display: inline-flex; gap: 6px; }
.gfx-toggle button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid #6c432e;
  background: #ead7aa;
  color: #4b3023;
  font-weight: 900;
  cursor: pointer;
}
.gfx-toggle button.active { background: #8f3d2e; color: #fff3cf; border-color: #5d241b; }
.gfx-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
  color: #4b3023;
}
