/* Canadian Capital Cities - Matching (Social Studies). Place cards on the left, capital cards on the right (stacked on narrow screens). */
.cc-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cc-places { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cc-tile { position: relative; container-type: inline-size; aspect-ratio: 3 / 4; border-radius: 14px; border: 3px solid transparent; transition: transform .15s ease, border-color .15s ease; }
.cc-tile.cc-over { border-color: var(--blue-action); transform: scale(1.06); box-shadow: 0 0 0 4px rgba(58,95,184,.3); z-index: 2; }
.cc-say-name { display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: transparent; border-radius: 12px; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cc-say-name img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.cc-say-name:focus-visible, .cc-chip:focus-visible, .cc-cap:focus-visible { outline: 4px solid var(--ink); outline-offset: 2px; }
.cc-chip { position: absolute; left: 5%; right: 5%; bottom: 5%; height: 13%; padding: 0 2%; border: 2px solid var(--ink); border-radius: 999px; background: #e6f6ec; color: var(--ink); font-family: inherit; font-weight: 900; font-size: 9.5cqw; line-height: 1; cursor: pointer; white-space: nowrap; overflow: hidden; }
.cc-tile.cc-done { border-color: var(--green-dark); }
.cc-tile.cc-pop-in { animation: cc-pop .35s ease-out; }
.cc-caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cc-cap { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 4px 8px; border-radius: 16px; background: var(--sky); border: 3px solid var(--blue-action); color: var(--ink); font-size: 1.2rem; font-weight: 900; text-align: center; user-select: none; -webkit-user-select: none; touch-action: none; cursor: grab; box-shadow: 0 4px 0 rgba(0,0,0,.14); }
.cc-cap-gone { visibility: hidden; box-shadow: none; }
.cc-cap.cc-dragging { position: relative; z-index: 50; cursor: grabbing; box-shadow: 0 10px 18px rgba(0,0,0,.25); transition: none; }
.cc-cap.cc-return { transition: transform .3s ease-out; }
@keyframes cc-pop { 0% { transform: scale(.85); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .cc-tile.cc-pop-in { animation: none; } .cc-cap.cc-return { transition: none; } }
@media (max-width: 900px) { .cc-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; } .cc-places { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cc-caps { grid-template-columns: 1fr; gap: 8px; } .cc-cap { min-height: 46px; font-size: 1.1rem; } }
/* Hint page */
.cc-hint-line { font-size: 1.4rem; font-weight: 800; margin: 8px 0 10px; }
.cc-map-wrap { position: relative; max-width: 1000px; margin: 0 auto; }
.cc-map { display: block; width: 100%; height: auto; max-height: calc(100vh - 260px); min-height: 420px; background: #DCECFF; border: 3px solid var(--ink); border-radius: 18px; }
.cc-prov { stroke: var(--ink); stroke-width: .9; stroke-linejoin: round; cursor: pointer; transition: filter .12s; }
.cc-prov:hover, .cc-prov.cc-hot { filter: brightness(1.15) saturate(1.1); stroke-width: 1.8; }
.cc-prov:focus-visible { outline: none; stroke: #fff; stroke-width: 2.4; }
.cc-pname { font: 700 8px 'Trebuchet MS','Arial Rounded MT Bold',system-ui,sans-serif; pointer-events: none; paint-order: stroke; stroke: rgba(255,255,255,.0); }
.cc-leader { stroke: var(--ink); stroke-width: .6; pointer-events: none; }
.cc-dot { fill: #FFD76A; stroke: var(--ink); stroke-width: 1.2; cursor: pointer; }
.cc-ottawa { fill: #E0483E; }
.cc-cname { font: 700 6.6px 'Trebuchet MS','Arial Rounded MT Bold',system-ui,sans-serif; fill: var(--ink); stroke: #fff; stroke-width: 2.2px; paint-order: stroke; stroke-linejoin: round; pointer-events: none; }
.cc-pop { position: absolute; z-index: 5; display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border: 3px solid var(--ink); border-radius: 14px; background: var(--yellow); font-size: 1.15rem; line-height: 1.2; pointer-events: none; box-shadow: 0 6px 14px rgba(0,0,0,.25); white-space: nowrap; }
.cc-pop strong { font-size: 1.2rem; }
.cc-pop span { font-weight: 800; }
.cc-hint .cc-hint-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cc-hint h1 { margin: 0; font-size: 2rem; }
/* Oct 28 2026 (Task 2): the Hint counter on the Hint page — big and clear at the right of the row;
   the how-to page behind the "?" keeps its text large and readable. */
.cc-hint-used { margin: 0 0 0 auto; font-size: 2rem; font-weight: 900; color: var(--ink); }
.cc-help-text { font-size: 1.4rem; font-weight: 700; line-height: 1.5; max-width: 46em; }
.cc-pname.cc-narrow { font-size: 6.4px; }
/* Oct 28 2026 (Task 4): the "?" how-to pages of BOTH Canada capital games — speaker button, demo box
   and pulse highlight. Shared from this file because index.html loads it on every page. The speaker
   reuses the existing .fd-speaker style (find-difference.css); the demo reuses real game styles
   (.cc-tile/.cc-cap for Matching, .ccmc-choice for Multiple Choice). */
.cchelp-speaker { flex: none; width: 56px; height: 56px; }
.cchelp-demo { position: relative; margin-top: 20px; padding: 14px 16px; max-width: 620px; border: 3px dashed #C9BFA3; border-radius: 18px; background: #FFFDF7; }
.cchelp-demo-hintrow { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.cchelp-demo-hintrow .eo-hint-btn { cursor: default; display: inline-flex; align-items: center; justify-content: center; }
.cchelp-demo-q { margin: 4px 0 10px; text-align: center; font-size: 1.35rem; font-weight: 700; }
.cchelp-demo-choices { justify-content: center; gap: 10px; }
.cchelp-demo-choice { min-width: 130px; min-height: 46px; font-size: 1rem; padding: 8px 14px; cursor: default; }
.cchelp-demo-choice:hover { transform: none; box-shadow: 0 4px 0 rgba(0,0,0,.14); }
.cchelp-stage { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cchelp-demo-tile { width: 130px; flex: none; }
.cchelp-demo-tile img { display: block; width: 100%; height: 100%; border-radius: 12px; user-select: none; -webkit-user-drag: none; }
.cchelp-demo-cap { max-width: 200px; cursor: default; transition: transform 1.2s ease-in-out; }
.cchelp-caption { min-height: 1.7em; margin: 10px 0 6px; text-align: center; font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.cchelp-steps { margin: 6px auto 0; max-width: 520px; font-size: 1.1rem; font-weight: 700; text-align: left; }
.cchelp-pulse { outline: 3px solid #1F3864; outline-offset: 2px; animation: cchelp-ring .9s ease-out infinite; }
.cchelp-moving { outline: 3px solid var(--blue-action); outline-offset: 2px; }
.cchelp-outline { outline: 3px solid #1F3864; outline-offset: 2px; }
@keyframes cchelp-ring { 0% { box-shadow: 0 4px 0 rgba(0,0,0,.14), 0 0 0 0 rgba(31,56,100,.5); } 100% { box-shadow: 0 4px 0 rgba(0,0,0,.14), 0 0 0 12px rgba(31,56,100,0); } }
@media (prefers-reduced-motion: reduce) { .cchelp-pulse { animation: none; } .cchelp-demo-cap { transition: none; } }

/* ---- Round 2 (Oct 28 2026, Brandie's review) — shared by BOTH Canada capital games ---- */
/* 2d/3a: the "hints used up" modal pop-up (ONE shared piece; markup in public/hint-limit.mjs). */
.piko-dialog-overlay { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 24, 38, 0.55); }
.piko-dialog-box { width: 100%; max-width: 460px; padding: 26px 24px; border: 3px solid var(--ink); border-radius: 22px; background: var(--paper); text-align: center; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.piko-dialog-text { margin: 0 0 18px; color: var(--ink); font-size: 1.35rem; font-weight: 900; line-height: 1.4; }
.piko-dialog-box .button-row { justify-content: center; }
/* 2k/3b: the small non-clickable Hint button picture inline in the how-to sentence. */
.cchelp-hintpic { display: inline-block; vertical-align: middle; margin: 0 2px; }
.cchelp-hintpic .cchelp-hintpic-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; padding: 3px 14px; font-size: 1rem; cursor: default; }
/* 2l/3c: the speaker sits right after the "How to play" heading, on the same line at the top.
   (.cc-hint-row only becomes a flex row inside .cc-hint, so the head row carries its own flex.) */
.cchelp-head-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; row-gap: 10px; }
.cchelp-head-row h1 { margin: 0; }
.cchelp-head-row .cchelp-speaker { margin: 0; }
/* 2m/3d: the demo hand. TEMPORARY ART — simple outlined pointing hand drawn by Merlin (SVG lives in
   public/help-page.mjs, DEMO_HAND_SVG); Brandie may send it to Picasso for final art later.
   The hand lives inside the demo box (.cchelp-demo is position:relative) and moves with left/top. */
.cchelp-hand { position: absolute; left: 0; top: 0; z-index: 6; width: 40px; height: 44px; pointer-events: none; transition: left .7s ease, top .7s ease; }
.cchelp-hand .cchelp-hand-svg { display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.cchelp-hand-tap { animation: cchelp-hand-dip .4s ease; }
@keyframes cchelp-hand-dip { 0%, 100% { transform: translateY(0) scale(1); } 45% { transform: translateY(7px) scale(.93); } }
.cchelp-ripple { position: absolute; left: 15.7px; top: 1.5px; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 3px solid rgba(31,56,100,.85); opacity: 0; }
.cchelp-ripple-go .cchelp-ripple { animation: cchelp-ripple .55s ease-out; }
@keyframes cchelp-ripple { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(3.2); } }
/* 2m/3d: the two demo looks — the try-again look on a wrong tap and the yes look on a right one. */
.cchelp-demo-wrong { outline: 4px solid #B3261E; outline-offset: 2px; background: #fff3b0; border-color: #d9a800; }
.cchelp-demo-right { outline: 4px solid var(--green-dark); outline-offset: 2px; background: #e6f6ec; }
/* 2m/3d: reduced-motion static steps — Example headings and the small hand drawn at rest per step. */
.cchelp-static { margin-top: 6px; }
.cchelp-steps-head { margin: 12px 0 2px; text-align: center; font-size: 1.15rem; font-weight: 900; color: var(--ink); }
.cchelp-step-hand { display: inline-block; width: 22px; height: 24px; margin-right: 6px; vertical-align: -5px; }
@media (prefers-reduced-motion: reduce) {
  .cchelp-hand { transition: none; }
  .cchelp-hand-tap, .cchelp-ripple-go .cchelp-ripple { animation: none; }
}

/* ---- Round 3 (Oct 28 2026): follow-along WORD HIGHLIGHTING on the two Canada how-to pages ---- */
/* The word being spoken gets a soft yellow background with the dark ink text. Colour change ONLY
   (no padding/border/size change), so nothing jumps and no reduced-motion case is needed.
   Contrast #25312C on #FFF3B0 = 11.6:1 (>= 4.5:1; asserted in test/canada-help-highlight.test.mjs).
   Spans and timing come from public/help-highlight.mjs + assets/help-audio/*.words.json. */
.cchelp-word { border-radius: 4px; }
.cchelp-word-on { background: #FFF3B0; color: #25312C; }
/* The Hint button PICTURE counts as the spoken words "Hint button": outline + yellow while spoken. */
.cchelp-hintpic-on .cchelp-hintpic-btn { background: #FFE066; color: #25312C; outline: 3px solid #8A6D1A; outline-offset: 2px; }
