/* 8BREAK Virtual — habillage de jeu, charte v1.0 et design system DEC-048. */
@font-face {
  font-family: Inter;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter_400Regular.ttf') format('truetype');
}
@font-face {
  font-family: Inter;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Inter_500Medium.ttf') format('truetype');
}
:root {
  color-scheme: dark;
  --brand-orange: #ff7a00;
  --brand-amber: #ffb347;
  --on-orange: #1a0d03;
  --bg: #110f10;
  --bg-sheet: #171415;
  --text: #fff;
  --text-muted: rgb(255 255 255 / 65%);
  --line: rgb(255 255 255 / 10%);
  --line-strong: rgb(255 255 255 / 16%);
  --glass: rgb(23 20 21 / 94%);
  --glass-strong: rgb(255 255 255 / 7%);
  --focus: #ffb347;
  --shadow-float: 0 16px 48px rgb(0 0 0 / 28%);
  --radius: 18px;
  --radius-card: 28px;
  --radius-pill: 999px;
  --font-sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ink: var(--text);
  --muted: var(--text-muted);
  --accent: var(--brand-orange);
  --panel: var(--glass);
  --edge: var(--line-strong);
  --touch-min: 44px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 12%, rgb(255 122 0 / 7%), transparent 65%), var(--bg);
  color: var(--text);
  font: 400 13px/1.45 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
body > canvas {
  display: block;
  touch-action: none;
}
.hud {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}
.hud::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 230px;
  background: linear-gradient(var(--bg), rgb(17 15 16 / 85%) 55%, transparent);
}
.top {
  display: grid;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  min-height: 52px;
}
.brand img {
  display: block;
  width: 66px;
  height: auto;
}
.brand-copy {
  border-left: 1px solid var(--line-strong);
  padding-left: 10px;
}
.brand-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  max-width: 110px;
}
.match-players {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  gap: 8px;
  width: 100%;
}
.match-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-content: center;
  column-gap: 4px;
  text-align: center;
  font-size: 25px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.score-divider {
  color: var(--text-muted);
  font-weight: 400;
}
.match-score small {
  grid-column: 1 / -1;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-muted);
}
.player {
  position: relative;
  min-width: 0;
  padding: 11px 10px;
  background: rgb(23 20 21 / 86%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.player.active {
  border-color: rgb(255 122 0 / 60%);
}
.player h2 {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.player.active h2::after {
  content: ' •';
  color: var(--accent);
}
.player strong {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.dots {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  min-height: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: inset -1px -2px 3px #0005;
}

button,
summary,
select,
input {
  font: inherit;
}
button,
summary,
select {
  min-height: var(--touch-min);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--text);
  background: var(--bg-sheet);
  font-weight: 500;
  cursor: pointer;
  padding: 10px 16px;
  transition:
    background 140ms,
    border-color 140ms,
    transform 100ms;
}
button:hover,
summary:hover {
  background: #282324;
  border-color: rgb(255 255 255 / 30%);
}
button:active {
  transform: scale(0.97);
}
button:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
button[aria-pressed='true'] {
  color: var(--accent);
  border-color: rgb(255 122 0 / 50%);
}
.tools {
  position: absolute;
  z-index: 4;
  right: 12px;
  top: max(16px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}
.tools > button,
.tools > details > summary {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
#camera {
  font-size: 0;
}
#camera::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h4l2-2h4l2 2h4v14H4z'/%3E%3Ccircle cx='12' cy='12.5' r='3.5'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.tool-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tool-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
details[open] > summary {
  color: var(--accent);
  border-color: var(--accent);
}
.menu {
  position: fixed;
  top: 76px;
  right: 12px;
  z-index: 8;
  width: min(380px, calc(100vw - 24px));
  max-height: calc(100dvh - 92px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 20px;
  display: grid;
  gap: 7px;
  background: #1c1819;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-float);
}
.menu-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.7px;
}
.menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  background: var(--glass-strong);
  border-color: transparent;
  border-radius: 12px;
}
.menu button:hover {
  border-color: var(--line-strong);
}
.menu button[aria-pressed]::after {
  content: '';
  flex: none;
  width: 28px;
  height: 16px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle at 8px 50%, #b2adb0 0 5px, transparent 6px), #433d3f;
}
.menu button[aria-pressed='true']::after {
  background:
    radial-gradient(circle at 20px 50%, var(--on-orange) 0 5px, transparent 6px), var(--accent);
}
.menu label {
  display: grid;
  grid-template-columns: 1fr 155px;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  color: var(--muted);
}
.menu select {
  min-width: 0;
  border-radius: 12px;
  font-size: 12px;
}
.online-menu {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}
.online-menu form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.online-menu input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  color: var(--text);
  background: var(--bg-sheet);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
#online-create {
  background: var(--text);
  color: var(--bg);
}
.instructions {
  color: var(--muted);
  line-height: 1.65;
}
.instructions p {
  margin: 0 0 12px;
}
.instructions b {
  color: var(--text);
  font-weight: 500;
}
.online-badge {
  position: fixed;
  top: 218px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel);
  font-size: 10px;
  text-align: center;
  color: var(--muted);
}
.online-badge.attention {
  animation: attention 0.6s ease-in-out 2;
}
@keyframes attention {
  50% {
    border-color: var(--accent);
    color: var(--accent);
  }
}
/* Un seul poste de commande : les outils restent en périphérie du tapis. */
.bottom {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--glass);
  box-shadow: var(--shadow-float);
}
.stick {
  position: relative;
  grid-row: 3;
  pointer-events: auto;
  display: grid;
  grid-template-columns: 68px 1fr 106px;
  grid-template-areas: 'spin elevation hit' 'contact hint hit';
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
}
#hit {
  grid-area: hit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: var(--on-orange);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.3px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 20%),
    0 4px 12px rgb(255 122 0 / 12%);
  touch-action: none;
  user-select: none;
}
#hit:hover {
  filter: brightness(1.07);
}
#hit:active {
  transform: scale(0.97);
  box-shadow: inset 0 2px 4px rgb(0 0 0 / 16%);
}
.shoot-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: none;
  pointer-events: none;
}
.stick.locked #hit {
  background: var(--glass-strong);
  color: var(--text-muted);
  border-color: var(--line-strong);
  box-shadow: none;
}
.stick.locked {
  opacity: 0.48;
  filter: grayscale(0.6);
}
.spin-frame {
  grid-area: spin;
  position: relative;
  width: 68px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.spin-target {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 35% 28%, #fff, var(--target, #b8101f) 30%, #000c);
  transition: transform 80ms linear;
}
.spin {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff, #e5e6e8 45%, #7d8490);
  border: 1px solid #adb8c4;
  touch-action: none;
  cursor: crosshair;
  box-shadow: 0 4px 12px #0004;
}
.spin::before,
.spin::after {
  content: '';
  position: absolute;
  background: #0003;
}
.spin::before {
  left: 50%;
  top: 10%;
  width: 1px;
  height: 80%;
}
.spin::after {
  top: 50%;
  left: 10%;
  width: 80%;
  height: 1px;
}
.spin-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  margin: -6.5px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 1px 4px #0008;
}
.contact-label {
  grid-area: contact;
  align-self: start;
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}
.elevation {
  grid-area: elevation;
  justify-self: center;
  width: min(100%, 100px);
  height: 54px;
  padding: 4px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
  touch-action: none;
  cursor: ns-resize;
}
.elevation-cloth {
  stroke: #0f6b3f;
  stroke-width: 3;
}
.elevation-ball {
  fill: #f8f6ee;
  stroke: #0006;
  stroke-width: 0.5;
}
.elevation-shaft {
  stroke: #e6cc9c;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.elevation-butt {
  stroke: #513a28;
  stroke-width: 3.4;
  stroke-linecap: round;
}
.elevation.imposed .elevation-shaft {
  stroke: var(--brand-amber);
}
.elevation-arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.8;
  opacity: 0.7;
}
.spin-hint {
  grid-area: hint;
  font-size: 9px;
  text-align: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.spin-inputs {
  position: absolute;
  left: 0;
  bottom: 100%;
}
.spin-inputs:focus-within {
  width: 250px;
  padding: 12px;
  background: var(--bg-sheet);
  border: 1px solid var(--focus);
  border-radius: var(--radius);
}
.spin-inputs .visually-hidden:focus-within {
  position: static;
  width: auto;
  height: auto;
  clip-path: none;
  white-space: normal;
  display: grid;
  gap: 5px;
}
.spin-inputs input {
  width: 100%;
  accent-color: var(--accent);
}
.status {
  grid-row: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.status b {
  color: var(--text);
  font-weight: 500;
}

.power-panel {
  grid-row: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.power-panel > span {
  color: var(--muted);
  font-size: 10px;
}
.power-panel small {
  display: block;
  grid-column: 2;
  margin-top: 4px;
  font-size: 9px;
  color: var(--muted);
}
.power {
  height: 5px;
  background: rgb(255 255 255 / 12%);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.power > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-amber), var(--brand-orange));
}
#minimap {
  position: absolute;
  right: 12px;
  top: 252px;
  width: min(220px, 56vw);
  height: auto;
  padding: 4px;
  background: var(--bg-sheet);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
}
.placement-controls {
  position: absolute;
  top: 251px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgb(255 122 0 / 40%);
  border-radius: 22px;
  background: var(--panel);
  pointer-events: auto;
}
.placement-controls > span {
  flex-basis: 100%;
  text-align: center;
  color: var(--brand-amber);
  font-size: 12px;
}
.placement-controls button {
  padding: 8px 12px;
  font-size: 11px;
}
#keep-cue {
  color: var(--bg);
  background: var(--text);
}
#placement-controls:not([hidden]) ~ #minimap {
  top: 358px;
}
.match-end {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(17 15 16 / 82%);
  backdrop-filter: blur(5px);
}
.match-end-card {
  width: min(420px, 100%);
  padding: 28px 24px 24px;
  border-radius: 32px;
  background: var(--bg-sheet);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-float);
  text-align: center;
  animation: match-end-in 200ms ease-out;
}
.match-end-mark {
  display: block;
  width: 76px;
  height: auto;
  margin: 0 auto 22px;
}
.match-end-kicker {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.match-end h2 {
  margin: 10px 0 12px;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1.12;
  color: var(--text);
}
.match-end-score {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
}
.match-end-detail {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.match-end-actions {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}
#match-end-rematch {
  color: var(--on-orange);
  background: var(--brand-orange);
  border-color: var(--brand-orange);
}
#match-end-close {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.lobby-primary {
  color: var(--on-orange);
  background: var(--brand-orange);
  border-color: var(--brand-orange);
}
.lobby-secondary {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.lobby-join {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.lobby-join input {
  width: 100%;
  min-width: 0;
  min-height: var(--touch-min);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  color: var(--text);
  background: var(--bg-sheet);
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.lobby-join input::placeholder {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.lobby-join input:hover {
  border-color: rgb(255 255 255 / 30%);
}
.lobby-error {
  margin: 16px 0 0;
  color: var(--text);
}
.waiting-code {
  margin: 16px 0 8px;
  font-size: 44px;
  font-weight: 500;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  line-height: 1.1;
  color: var(--accent);
  user-select: all;
}
.waiting-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
}
.waiting-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-orange);
  animation: waiting-pulse 1.2s ease-in-out infinite;
}
@keyframes waiting-pulse {
  50% {
    opacity: 0.25;
    transform: scale(0.7);
  }
}
@media (prefers-reduced-motion: reduce) {
  .waiting-pulse {
    animation: none;
  }
}
.profiles-card {
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  text-align: left;
}
.profiles-card h2 {
  margin: 10px 0 18px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--text);
}
.profiles-card .match-end-kicker {
  text-align: left;
}
.profile-fieldset {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
}
.profile-fieldset legend {
  padding: 0 8px;
  font-size: 12px;
  color: var(--muted);
}
.profile-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.profile-field input[type='text'] {
  width: 100%;
  min-width: 0;
  min-height: var(--touch-min);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  color: var(--text);
  background: var(--bg-sheet);
  font-weight: 500;
}
.profile-field input[type='text']::placeholder {
  color: var(--muted);
}
.profile-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--text);
  background: var(--bg-sheet);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 140ms;
}
.profile-choice:hover {
  border-color: rgb(255 255 255 / 30%);
}
.profile-choice input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.profile-choice:has(input:checked) {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 1px var(--brand-orange);
}
.profile-choice:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.profile-chip {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 25%);
}
.profile-cue {
  width: 34px;
  height: 8px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 20%);
}
@keyframes match-end-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Tableau de match unifié : score au centre, état du tour dans la fiche du joueur. */
.match-players {
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--glass);
}
.player {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 8px 10px;
  border: 0;
  border-radius: 18px;
  background: transparent;
}
.player.active {
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--player-accent, #ff7a00) 14%, transparent),
    transparent
  );
}
.player.active::before {
  content: '';
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--player-accent, var(--accent));
}
.player h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 6px;
  margin: 0;
  font-size: 11px;
  color: var(--text);
}
.player.active h2::after {
  content: 'Au tir';
  color: var(--player-accent, var(--brand-amber));
  font-size: 8px;
  font-weight: 400;
}
.player strong {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.player .dots {
  margin-top: 2px;
}
#player-1 {
  align-items: flex-end;
  text-align: right;
}
#player-1 h2 {
  justify-content: flex-end;
}
#player-1.active {
  background: linear-gradient(260deg, rgb(255 122 0 / 12%), transparent);
}
#player-1.active::before {
  left: auto;
  right: 0;
}
.match-score {
  align-content: center;
  padding: 4px 10px;
  margin: 7px 0;
  border-inline: 1px solid var(--line);
  font-size: 26px;
  column-gap: 3px;
  line-height: 1.25;
}
.match-score small {
  font-size: 8px;
  line-height: 1.5;
  white-space: nowrap;
}
#match-round {
  margin-top: 4px;
  color: var(--text);
}
.nameplate {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Billes restantes : reflets de sphère, emplacements empochés en creux. */
.dots {
  display: grid;
  gap: 5px;
  min-height: 16px;
}
.balls-row {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 14px;
}
.dot {
  display: block;
  flex: none;
  position: relative;
  width: 12px;
  height: 12px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 32% 23%,
      rgb(255 255 255 / 85%) 0,
      rgb(255 255 255 / 25%) 12%,
      transparent 32%
    ),
    radial-gradient(circle at 40% 33%, var(--ball-color) 25%, var(--ball-shadow) 100%);
  box-shadow:
    inset -1px -2px 3px rgb(0 0 0 / 35%),
    0 2px 3px rgb(0 0 0 / 30%);
}
.dot.red {
  --ball-color: #e82f44;
  --ball-shadow: #750e1e;
  background-color: var(--ball-color);
}
.dot.yellow {
  --ball-color: #ffdb29;
  --ball-shadow: #9a6300;
  background-color: var(--ball-color);
}
.dot.potted {
  background: rgb(0 0 0 / 15%);
  border-color: rgb(255 255 255 / 20%);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 45%);
}
.ball-tray-note {
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.2;
}
#dots-1 {
  justify-items: end;
}

/* L’annulation flotte au-dessus du poste de commande, sans déplacer le bouton tenu. */
.cancel-charge {
  position: absolute;
  right: 12px;
  bottom: calc(100% + 12px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-color: var(--line-strong);
  background: var(--bg-sheet);
  color: var(--text);
  box-shadow: var(--shadow-float);
  pointer-events: auto;
}
.cancel-charge > span {
  font-size: 20px;
  line-height: 1;
}
.cancel-charge kbd {
  margin-left: 6px;
  font: inherit;
  font-size: 10px;
  color: var(--muted);
}
#hit.is-charging {
  box-shadow: 0 0 0 4px rgb(255 122 0 / 16%);
}
