/* Connect the colours: the board (game.js sizes it to fit the height) and the choices side by side, centred. */
.cc-main { flex-direction: row; align-items: stretch; justify-content: center; gap: clamp(24px, 4vw, 72px); }
.cc-play { flex: 0 0 auto; min-height: 0; display: grid; place-items: center; }

.cc-board { display: block; width: 400px; height: 400px; touch-action: none; cursor: pointer; outline: none; }
/* The svg itself takes every touch: its children are redrawn while a finger is down, and a touch whose target
   vanishes mid-gesture can leave the browser missing the next tap's click. */
.cc-board * { pointer-events: none; }
.cc-frame { fill: var(--sea-deep); }
.cc-cell { fill: var(--cream); }
.cc-tint { fill-opacity: 0.3; }
.cc-path { fill: none; stroke-width: 0.3; stroke-linecap: round; stroke-linejoin: round; }
.cc-path.is-active { stroke-width: 0.36; }
.cc-disc { stroke: rgba(23, 29, 36, 0.28); stroke-width: 0.03; }
.cc-dot.is-done .cc-disc { stroke: #fff; stroke-width: 0.06; }
.cc-letter {
  font-family: var(--sans); font-size: 0.4px; font-weight: 600; text-anchor: middle; dominant-baseline: central;
  pointer-events: none;
}
.cc-ring { fill: none; stroke-width: 0.07; animation: cc-pulse 1.2s ease-in-out infinite; }
@keyframes cc-pulse { 50% { stroke-opacity: 0.35; } }
.cc-cursor { fill: none; stroke: var(--coral); stroke-width: 0.08; stroke-dasharray: 0.2 0.1; }

/* ---------- side panel ---------- */
.cc-panel { flex: 0 0 auto; width: clamp(320px, 28vw, 500px); display: flex; flex-direction: column; justify-content: center; gap: 18px; min-height: 0; }
.cc-panel .choice { display: flex; }
.cc-panel .choice button { flex: 1 1 auto; padding: 0 0.6em; white-space: nowrap; }
.cc-message { text-align: left; min-height: 2.6em; font-size: 1.35rem; }
.cc-progress { display: grid; gap: 8px; padding: 16px 18px; border-radius: var(--radius); background: var(--sand); font-size: 1.1rem; }
.cc-progress span { font-weight: 500; }
.cc-bar { height: 14px; border-radius: 7px; background: var(--sand-deep); overflow: hidden; }
.cc-bar i {
  display: block; height: 100%; width: 0; border-radius: 7px; transition: width 0.25s ease-out;
  background: linear-gradient(90deg, #e5484d, #f08a24, #f2c230, #2e9e5b, #2f7fd8, #8e5bd0);
}
.cc-tools { display: flex; gap: 12px; }
.cc-keys { margin: 0; font-size: 0.95rem; color: #5b6268; line-height: 1.4; }

@media (prefers-reduced-motion: reduce) {
  .cc-ring { animation: none; }
  .cc-bar i { transition: none; }
}
