/* The tactics board (public/taktik.js), in the app and on the website: both define the colours used here
   (--card, --field, --line, --ink, --muted, --brand). */
.tk { display: grid; gap: 10px; }
.tk p { margin: 0; }
.tk-sports, .tk-bar, .tk-modes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tk-chip { min-height: 40px; padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.tk-chip.on, .tk-mode.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.tk-stage { border-radius: 14px; overflow: hidden; background: #1d2b27; }
/* no scrolling or zooming while a finger moves a player or draws */
.tk-svg { display: block; width: 100%; height: auto; max-height: 78vh; touch-action: none; user-select: none; -webkit-user-select: none; }
.tk-token { cursor: grab; }
.tk-drawing .tk-svg { cursor: crosshair; }
.tk-drawing .tk-token { cursor: crosshair; }
.tk-hint, .tk-note { color: var(--muted); font-size: .9rem; }
.tk-n { display: flex; align-items: center; gap: 6px; }
.tk-n input { width: 70px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; }
/* "Groß anzeigen": only the field, as large as the screen allows, and under it the row to move and draw */
.tk:is(:fullscreen, .big-view) { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: #0f1a17; overflow: hidden; }
.tk:is(:fullscreen, .big-view) :is(.tk-sports, .tk-settings, .tk-hint, .tk-note) { display: none; }
.tk:is(:fullscreen, .big-view) .tk-stage { flex: 1 1 auto; min-height: 0; display: flex; border-radius: 0; background: none; }
.tk:is(:fullscreen, .big-view) .tk-svg { width: 100%; height: 100%; max-height: none; }
.tk:is(:fullscreen, .big-view) .tk-tools { order: 2; justify-content: center; }
/* a phone held sideways: the row goes beside the field, so the field gets the whole height */
@media (orientation: landscape) and (max-height: 600px) {
  .tk:is(:fullscreen, .big-view) { flex-direction: row; align-items: stretch; }
  .big-view.tk { padding-top: max(12px, env(safe-area-inset-top)) !important; padding-right: calc(120px + env(safe-area-inset-right)) !important; }
  .tk:is(:fullscreen, .big-view) .tk-tools { flex-direction: column; flex-wrap: nowrap; justify-content: center; }
  .tk:is(:fullscreen, .big-view) .tk-modes { flex-direction: column; }
}
@media print { .tk-sports, .tk-bar, .tk-hint, .tk-note { display: none !important; } }
