/* The learning loop's cards (cards.js): the prediction before a run and the explain card after it.
   UI-1: the lessons pages' warmth: the game's guide, big lettered choices, and the game's chapter color (--pc). Scoped to
   .lc (and .xc in the explain card) because the board's player cards are also called .pcard. */
.pcard.lc { --pc: var(--orange); display: grid; gap: 12px; padding: 16px; border-radius: 18px; border: 2px solid var(--orange); border-color: color-mix(in srgb, var(--pc) 60%, transparent); background: #17151c; background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 16%, #17151c), #17151c 75%); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.phead { display: flex; gap: 12px; align-items: center; min-width: 0; }
.pguide { flex: none; display: grid; justify-items: center; gap: 2px; font: 600 12px var(--body); color: #d9d5de; }
.pguide img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--pc); background: #2b2733; }
.ptext { min-width: 0; display: grid; gap: 2px; }
.pcard.lc .pkick { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pc); }
.pcard.lc .pq { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.2; margin: 0; }
.pcard.lc .popts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; counter-reset: popt; }
.pcard.lc .popt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line); background: rgba(14, 12, 18, .7); color: var(--fg); font: inherit; font-size: 17px; line-height: 1.25; text-align: left; cursor: pointer; transition: border-color .15s, transform .12s, background .15s; }
.pcard.lc .popt::before { counter-increment: popt; content: counter(popt, upper-alpha); flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #3a3644; background: color-mix(in srgb, var(--pc) 30%, #15131a); color: #fff; font: 700 16px var(--display); }
.pcard.lc .popt:not(:disabled):hover { border-color: var(--pc); transform: translateY(-2px); }
.pcard.lc .popt[aria-checked="true"] { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 20%, #15131a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 25%, transparent); }
.pcard.lc .popt[aria-checked="true"]::before { background: var(--pc); color: #15131a; }
.pcard.lc .popt:disabled { cursor: default; }
.pcard.lc.locked .popt:not([aria-checked="true"]) { opacity: .45; }
.pcard.lc .pstatus { margin: 0; font-size: 14px; color: #c9c4cf; }
.pcard.lc.locked .pstatus::before { content: "🔒 "; }
/* the explain card's parts (cards.js adds .xc, so each page's older look for its own reports stays as it was) */
.headline.xc { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 12px 16px; border-radius: 16px; font: 700 21px/1.2 var(--display); color: var(--fg); background: rgba(14, 12, 18, .72); border: 2px solid var(--gold, #ffd23f); }
.headline.xc::before { content: "🔧"; flex: none; font-size: 26px; }
.headline.xc.good { color: var(--fg); border-color: var(--good); background: linear-gradient(135deg, rgba(79, 209, 139, .2), rgba(14, 12, 18, .72) 70%); }
.headline.xc.good::before { content: "🎉"; }
.finding.xc { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; background: rgba(14, 12, 18, .72); border: 2px solid #3a3644; }
.finding.xc .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 700 16px var(--display); color: #15131a; background: var(--blue); }
.finding.xc.good { border-color: rgba(79, 209, 139, .45); } .finding.xc.good .ic { background: var(--good); }
.finding.xc.bad { border-color: rgba(255, 93, 93, .45); } .finding.xc.bad .ic { background: var(--bad); }
.finding.xc h4 { margin: 0 0 2px; font: 700 17px var(--display); }
.finding.xc p { margin: 0; font-size: 15.5px; line-height: 1.45; color: #e2dee6; }
@media (prefers-reduced-motion: no-preference) { .finding.xc { animation: xin .35s ease-out both; } }
@keyframes xin { from { opacity: 0; transform: translateY(6px); } }
.tipbox.xc { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; border: 2px solid var(--gold, #ffd23f); background: linear-gradient(135deg, rgba(255, 210, 63, .14), rgba(14, 12, 18, .75) 70%); font-size: 16px; }
.tipbox.xc .pguide img { border-color: var(--gold, #ffd23f); width: 48px; height: 48px; }
.tipbox.xc .tbody { min-width: 0; display: grid; gap: 4px; justify-items: start; }
.tipbox.xc b { display: block; margin: 0; font: 700 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold, #ffd23f); }
.tipbox.xc .btn { margin-top: 6px; padding: 8px 18px; }
.pcard.nudge { border-color: var(--gold, #ffd23f); box-shadow: 0 0 0 4px rgba(255, 210, 63, .25); }
@media (prefers-reduced-motion: no-preference) { .pcard.nudge { animation: pnudge .45s ease-out; } }
@keyframes pnudge { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

/* A guide's band at the top of a game page (UI-1): the character who runs the game says what to do. --gc is their color. */
.guideband { --gc: var(--orange); display: flex; gap: 14px; align-items: center; margin: 4px 0 16px; padding: 12px 16px; max-width: 860px; border-radius: 18px; background: rgba(20, 18, 24, .82); border: 2px solid var(--orange); border-color: color-mix(in srgb, var(--gc) 55%, transparent); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.guideband img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--gc); background: #2b2733; }
.guideband p { margin: 0; color: #e2dee6; }
.guideband b { color: var(--fg); font-weight: 600; }
.guideband .who { color: var(--gc); font-family: var(--display); font-weight: 700; }
@media (max-width: 440px) { .guideband { padding: 10px 12px; gap: 10px; } .guideband img { width: 48px; height: 48px; } }
