/* ==========================================================================
   PHONE — drawing canvas, team battle and showdown betting.
   Loaded after play-rounds.css.
   ========================================================================== */

/* ---- drawing ------------------------------------------------------------ */

.canvas-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
#drawCanvas {
  width: 100%;
  max-height: 100%;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 14px;
  border: 3px solid var(--line);
  touch-action: none;   /* stop the page panning while a finger draws */
  cursor: crosshair;
}

.draw-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.swatches {
  flex: 1;
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.swatch {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 3px solid var(--line);
  cursor: pointer;
  padding: 0;
}
.swatch.on { border-color: #fff; transform: scale(1.12); }

.tool-btn {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  background: var(--surface);
  border: 2px solid var(--line);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}
.tool-btn:active { transform: scale(.94); }

/* Voting on drawings: a gallery, not a list of buttons. */
.answer-grid.art-grid { grid-template-columns: 1fr 1fr; }
.answer-grid.art-grid > .answer.art {
  padding: 6px;
  background: #fff;
  border-color: var(--purple);
  aspect-ratio: 1;
  min-height: 0;
}
.answer-grid.art-grid > .answer.art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  pointer-events: none;
}
.answer-grid.art-grid > .answer.art.picked { border-color: var(--pink); border-width: 5px; }

/* ---- team battle -------------------------------------------------------- */

.team-banner {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--team, var(--gold));
  border: 3px solid var(--team, var(--gold));
  border-radius: 999px;
  padding: 10px;
  margin-bottom: 12px;
}

/* The tap counter replaces the label mid-battle, so it needs to be huge. */
#battleBtn.go #battleBtnLabel { font-size: 4rem; }