/* Play screen — the two setup cards (Challenge / Custom match), the badge wall,
   and the in-game side panel. Tokens and shared components (.btn, .card, .pill,
   .segmented, .sheet, .pbar, .range, .status-line) live in style.css. */

/* Setup shows no board, so the chooser gets the column to itself instead of the
   ~22rem the in-game side panel is sized for. */
.app-wrap.setup .app-side {
  flex-basis: 100%;
  max-width: 32rem;
}

/* Game clocks — Challenge games only. Bot left, you right, the running side lit
   (EnginePlayScreen.kt GameClockRow / ClockChip). */
.clock-row {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}
.clock-chip {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: var(--paper2);
  border: 1px solid var(--border);
}
.clock-chip.active {
  background: var(--accent-tint);
  border-color: var(--accent);
}
.clock-label {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink3);
}
.clock-time {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.clock-time.low { color: var(--danger); }

/* Small uppercase section label — the web's Eyebrow.kt. */
.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
}

.setup-block { margin: 0.75rem 0 1rem; }
.setup-block .eyebrow { margin-bottom: 0.4rem; }
.setup-block .segmented { display: flex; }
.setup-block .segmented button { flex: 1; }

/* ---- Challenge card (rated) --------------------------------------------- */

/* The hero: accent-tinted and outlined, so the rated game reads as the default
   and the unrated card beneath it as the alternative. */
.challenge-card {
  margin: 0.75rem 0;
  padding: 1.1rem 1.15rem;
  border: 1.5px solid var(--accent);
  border-radius: 16px;
  background: var(--accent-tint);
}

.challenge-bot {
  margin: 0.35rem 0 0.2rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
}

.challenge-flavor {
  margin: 0 0 0.9rem;
  color: var(--ink2);
  font-size: 0.85rem;
}

.challenge-rule {
  margin: 0.5rem 0 0.35rem;
  color: var(--ink3);
  font-size: 0.75rem;
  text-align: center;
}

.btn-block { display: block; width: 100%; }

/* Bots-defeated row — opens the badge wall. Not a bot picker: the wall is
   view-only (BotLadder: no lock/unlock, Custom match plays any bot). */
.defeated-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.55rem 0.4rem;
  font: inherit;
  font-family: var(--font-ui);
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: none;
  border-top: 1px solid var(--accent-soft);
  border-radius: 0 0 8px 8px;
  cursor: pointer;
}
.defeated-row:hover { color: var(--accent); }
.defeated-star { color: var(--warning); }
.defeated-text { flex: 1; font-size: 0.85rem; font-weight: 600; }
.defeated-chev { color: var(--ink4); font-size: 1.1rem; line-height: 1; }

/* ---- Custom match card (unrated) ---------------------------------------- */

.bot-pick .card-head { margin-bottom: 0.7rem; }

.custom-note {
  margin: 0.6rem 0 0;
  color: var(--ink3);
  font-size: 0.75rem;
}

.setup-links { margin: 1rem 0 0; text-align: center; }
.setup-links + .setup-links { margin-top: 0.5rem; }

.bot-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.bot-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.bot-range { color: var(--ink4); font-size: 0.78rem; }

/* Pushed to the end of the row — the number is the thing the slider moves. */
.bot-elo {
  margin-left: auto;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
}

.bot-scale {
  display: flex;
  justify-content: space-between;
  color: var(--ink4);
  font-size: 0.72rem;
  margin-top: 0.15rem;
}

/* Two lines are always reserved so the card doesn't jump between one- and
   two-line bot descriptions as the slider moves. */
.bot-flavor {
  margin: 0.65rem 0 0;
  min-height: 2.6em;
  color: var(--ink3);
  font-size: 0.85rem;
  line-height: 1.3;
}

.bot-now {
  margin: 0.25rem 0 0;
  color: var(--ink3);
  font-size: 0.85rem;
}

/* Where the challenge level landed after a rated game. */
.ladder-note {
  margin: 0.25rem 0 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---- Badge wall --------------------------------------------------------- */

.grid-sub { margin: 0 0 0.85rem; font-size: 0.85rem; }

.grid-progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.grid-progress .pbar { flex: 1; }
.grid-progress .pbar-fill { background: var(--warning); }
.grid-progress-num { font-size: 0.85rem; font-weight: 700; }

.wall-tier { margin: 1rem 0 0.5rem; }

.bot-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

/* A badge, not a button: earning it is the only way in, and tapping does nothing. */
.bot-cell {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.bot-cell.is-defeated { background: var(--warning-soft); border-color: var(--warning); }
.bot-cell.is-current { background: var(--accent-tint); border: 2px solid var(--accent); }

.bot-cell-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.4rem;
}
.bot-cell-elo { flex: 1; font-size: 1rem; font-weight: 600; color: var(--ink3); }
.bot-cell.is-defeated .bot-cell-elo, .bot-cell.is-current .bot-cell-elo { color: var(--ink); }

.bot-cell-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--warning);
  color: var(--on-accent);
  font-size: 0.7rem;
  line-height: 1;
}

.bot-cell-sub { display: block; margin-top: 0.15rem; font-size: 0.75rem; color: var(--ink4); }
.bot-cell.is-defeated .bot-cell-sub { color: var(--ink3); }
.bot-cell.is-current .bot-cell-sub { color: var(--accent); font-weight: 600; }

/* The opening caption under the status line. Android centres its equivalent
   because the line sits under a centred board; here it belongs to the left-aligned
   side column, so it follows the status and ladder lines it sits between. */
.opening-line {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink3);
}
.opening-book { color: var(--accent); font-weight: 600; }

.hint-line {
  margin: 0 0 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: var(--success-soft);
  color: var(--success);
  font-weight: 700;
  font-size: 0.9rem;
}
