* { box-sizing: border-box; }
/* The practice table wears the same cue-arena look as a live game. */
body {
  margin: 0; color: #f7eed9; font-family: var(--game-font);
  background: radial-gradient(ellipse at 50% 57%, #2b3b50, #192230 75%) fixed #192230;
}
/* As wide as the window: on a computer the table grows with it. */
main { margin: 0 auto; padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
h1 { margin: 0; font-size: 1.35rem; font-weight: 700; color: #d1d9df; }
.head-start { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
header .btn { min-height: 44px; padding: 0 16px; font-size: .95rem; }
header nav { display: flex; align-items: center; gap: 16px; }
header nav a:not(.btn) { color: var(--accent); font-weight: 700; }
.bottom { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.toggle {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 7px; font-weight: 600; cursor: pointer;
  background: linear-gradient(#2d3b4a, #0d131d); border: 1px solid #5c6777;
}
.toggle input { width: 20px; height: 20px; accent-color: var(--accent); }
.toast {
  align-self: center; text-align: center; padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 600;
  background: rgba(16, 24, 36, .81);
}
@media (max-width: 700px) { main { padding: 8px 10px 16px; } h1 { font-size: 1.25rem; } }

/* The practice table on a phone lying on its side: a thin bar above, and the table under it. */
@media (orientation: landscape) and (max-height: 520px) {
  main { max-width: none; padding: 4px 8px 12px; gap: 6px; }
  header { flex-wrap: nowrap; }
  h1 { font-size: 1rem; }
  .club-brand { font-size: 17px; }
  .club-brand img { width: 24px; height: 24px; }
  header .btn { min-height: 34px; padding: 0 12px; font-size: .82rem; }
  header nav { gap: 12px; font-size: .85rem; }
}
