/* Checkers — page styles (hub chrome comes from ../style.css). */
.ck-wrap { max-width: 430px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.ck-banner {
  font-family: "Baloo 2", cursive; font-weight: 800; font-size: 21px; color: #22384a;
  background: #fff3b0; border: 3px solid #e3a008; border-radius: 14px;
  padding: 9px 12px; margin: 8px 0 10px; min-height: 52px;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.ck-seg { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 6px auto 10px; }
.ck-modebtn {
  border: 2px solid #5b2a86; background: #fff; color: #4c2a9e; border-radius: 999px;
  padding: 9px 16px; font-family: "Baloo 2", cursive; font-weight: 700; font-size: 17px;
  cursor: pointer; min-height: 48px; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.ck-modebtn.ck-on { background: #5b2a86; color: #fff; }
.ck-modebtn:active { transform: scale(.97); }
.ck-tray {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: "Baloo 2", cursive; font-weight: 700; font-size: 15.5px; color: #22384a;
  min-height: 34px; padding: 2px 2px;
}
.ck-tray-label { white-space: nowrap; }
.ck-tray-caps { display: inline-flex; gap: 3px; flex-wrap: wrap; align-items: center; }
.ck-tray-none { font-weight: 600; color: #7a8794; font-size: 13.5px; }
.ck-mini { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.ck-mini-red { background: #d92b1f; }
.ck-mini-black { background: #232833; }
.ck-boardbox { position: relative; width: 100%; max-width: 400px; margin: 2px auto; }
.ck-board {
  display: grid; grid-template-columns: repeat(8, 1fr); width: 100%;
  border: 4px solid #7a4a21; border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 22px rgba(34,56,74,.25); box-sizing: border-box; background: #7a4a21;
  touch-action: manipulation;
}
.ck-cell {
  position: relative; aspect-ratio: 1 / 1; border: 0; margin: 0; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; font-family: inherit;
}
.ck-light { background: #f0d9b5; }
.ck-dark { background: #b58863; }
.ck-cell.ck-selected { box-shadow: inset 0 0 0 4px #ffd23e, inset 0 0 0 7px #b8860b; }
.ck-cell.ck-canmove { box-shadow: inset 0 0 0 3px rgba(255,210,62,.85); }
.ck-cell.ck-dest::after {
  content: ""; width: 34%; height: 34%; border-radius: 50%;
  background: rgba(30,138,73,.75); box-shadow: 0 0 0 3px rgba(255,255,255,.55);
  position: absolute; pointer-events: none;
}
.ck-cell.ck-dest-jump::after {
  content: ""; width: 78%; height: 78%; border-radius: 50%;
  border: 5px solid #2f9e44; background: rgba(47,158,68,.18);
  position: absolute; pointer-events: none; box-sizing: border-box;
}
.ck-piece {
  width: 82%; height: 82%; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  pointer-events: none; position: relative; z-index: 1;
  box-shadow: none;
}
.ck-piece::after {
  content: ""; position: absolute; inset: 16%; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.28);
}
.ck-red { background: #d92b1f; }
.ck-black { background: #232833; }
.ck-crown { font-size: clamp(13px, 4.6vw, 20px); line-height: 1; position: relative; z-index: 1; }
.ck-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 2px; flex-wrap: wrap; }
.ck-moves { font-family: "Baloo 2", cursive; font-weight: 800; font-size: 17px; color: #7a5aa0; margin: 0; }
.ck-new {
  font-family: "Baloo 2", cursive; font-size: 18px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg, #79c94e, #1e8a49); border: none; border-radius: 999px;
  padding: 11px 24px; cursor: pointer; min-height: 48px; box-shadow: 0 4px 12px rgba(30,138,73,.35);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.ck-new:active { transform: scale(.97); }
.ck-how { font-size: 15px; font-weight: 600; color: #41528a; margin: 10px 2px 4px; line-height: 1.45; }
.ck-overlay {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  background: rgba(34,56,74,.55); border-radius: 10px; padding: 14px; box-sizing: border-box;
}
.ck-overlay[hidden] { display: none; }
.ck-card {
  background: #fffdf7; border-radius: 20px; padding: 22px 18px; text-align: center; max-width: 300px; width: 100%;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.ck-card h3 { margin: 0 0 6px; font-family: "Baloo 2", cursive; font-size: 28px; color: #22384a; }
.ck-card p { margin: 0 0 14px; font-size: 16.5px; font-weight: 600; color: #41528a; line-height: 1.4; }

/* ===== No double-tap zoom / no pink tap flash (Desarae, Nov 10, 2026) =====
   touch-action: manipulation on the page and on everything tappable
   kills the double-tap-to-zoom that fast little fingers trigger
   mid-game, while pinch-zoom and ordinary scrolling keep working.
   Selection and the long-press callout are off on game surfaces, so a
   double-tap can't flash a pink text selection (and zoom to it)
   either; form fields stay selectable and editable. Local rules for
   drawing / drag surfaces (coloring canvas, sorter pieces, swipe
   strips) keep their own touch-action: those selectors are more
   specific than the element selectors below, so they still win. */
html { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
body, button, a, input, select, textarea, label, [role="button"] { touch-action: manipulation; }
html, body, body *:not(input):not(textarea) { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
* { -webkit-tap-highlight-color: transparent; }
input, textarea { -webkit-user-select: text; user-select: text; }

/* win/loss record line (Desarae, Nov 11, 2026) */
.wl-line { text-align: center; font-weight: 800; color: #7a5200; margin: 4px auto 0; min-height: 1.2em; font-size: 15px; }
