/* HC practice: restrained sage/gold celebrations and accessible game controls. */
#hc-minigames{max-width:1050px;margin-inline:auto}body:not([data-app-view]) #hc-minigames{display:none}body[data-app-view=games] #hc-minigames{display:block!important}
.hc-game-intro{max-width:680px;color:#becac2;font-size:18px}.hc-game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:28px 0}.hc-game-card{display:flex;flex-direction:column;padding:26px;border:1px solid #39463e;border-radius:14px;background:linear-gradient(145deg,#18211c,#101518);min-width:0}.hc-game-card h3{font:29px var(--hc-display,Georgia,serif);margin:16px 0 12px}.hc-game-card p{color:#c0cbc4;font-size:15px;line-height:1.7}.hc-game-card button{margin-top:auto;background:#c9dfcf;color:#101b15;min-height:46px}.hc-game-emblem{font:28px Georgia,serif;display:grid;place-items:center;width:56px;height:56px;border-radius:14px;border:1px solid #698271;color:#d8e8dc;background:#24392d}.hc-game-best{font-size:13px;color:#c8d8c9;margin:12px 0}.hc-practice-stats{display:flex;flex-wrap:wrap;gap:12px;color:#d9e5dc;font-size:14px}.hc-practice-stats span{padding:12px 18px;border:1px solid #3c4e43;border-radius:10px}.hc-motion-control{display:flex;align-items:center;gap:9px;font-size:14px;color:#c3cfc6;margin:20px 0}.hc-motion-control input{width:18px;height:18px;margin:0;accent-color:#b9d8c1}
#hc-game-dialog{width:min(780px,calc(100% - 24px));max-height:92vh;max-height:92dvh;overflow:auto;padding:28px;border:1px solid #506156;border-radius:18px;background:#0c1110;color:#e8eee9;font-family:var(--hc-ui,"Segoe UI",Arial,sans-serif)}#hc-game-dialog::backdrop{background:#000c;backdrop-filter:blur(5px)}.hc-game-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.hc-game-top button{margin:0;background:transparent;color:#d5e2d9;border:1px solid #526258;min-height:44px}.hc-game-top span{font-size:11px;letter-spacing:.15em;color:#b9cdbf}#hc-game-title{font:clamp(28px,5vw,38px) var(--hc-display,Georgia,serif);margin:24px 0 12px}#hc-game-content p{line-height:1.75;color:#c6d2ca}.hc-game-track{display:flex;gap:8px;margin:18px 0}.hc-game-dot{width:32px;height:7px;border-radius:10px;background:#303c35}.hc-game-dot.done{background:#a5d1b2}.hc-game-dot.current{background:#d7c396}.hc-game-scenario{padding:22px;background:#18221c;border:1px solid #36493c;border-radius:12px;margin:20px 0}.hc-game-scenario h3{font:24px Georgia,serif;margin:0 0 12px}.hc-game-options{display:grid;gap:12px}.hc-game-options button{margin:0;padding:18px;text-align:left;font-size:16px;background:#17201c;color:#e5ece7;border:1px solid #4c5c51;border-radius:10px;min-height:54px}.hc-game-options button:hover:not(:disabled){background:#263b2d;border-color:#a2c5ad}.hc-game-options button:disabled{cursor:default;opacity:.75}.hc-choice-right,#lc-lesson label.hc-choice-right{background:#244030!important;border-color:#a4d4b3!important}.hc-choice-wrong,#lc-lesson label.hc-choice-wrong{background:#392d1e!important;border-color:#d6bb83!important}.hc-answer-marker{margin-left:auto;font-weight:700;font-size:13px;color:#d3e9d9}.hc-game-numbers{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.hc-game-numbers span{flex:1;min-width:110px;padding:14px;background:#0d1711;border:1px solid #4c6052;border-radius:9px;font-size:14px}.hc-game-numbers strong{display:block;color:#d4e7da;font:25px Georgia,serif;margin-top:7px}.hc-game-form label{font-size:15px;color:#d5e2d9}.hc-game-form input{font-size:20px;max-width:350px}.hc-game-form button,.hc-game-next{min-height:46px;background:#cbded1;color:#102016}.hc-match-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}.hc-match-column{display:grid;gap:10px}.hc-match-column h3{font:20px Georgia,serif;margin:0 0 5px}.hc-match-column button{margin:0;min-height:78px;padding:13px;background:#18221c;color:#e8eee9;border:1px solid #516457;border-radius:10px;font-size:14px;text-align:left}.hc-match-column button[aria-pressed=true]{outline:2px solid #dccca5;background:#3a3425;outline-offset:2px}.hc-match-column button.matched{background:#244030;border-color:#92c8a2;color:#d5eddd;opacity:1}.hc-game-result{text-align:center;padding:16px 0}.hc-game-result .hc-game-medal{font:64px Georgia,serif;color:#d7c396;letter-spacing:10px;margin:15px}.hc-game-result h3{font:30px Georgia,serif}.hc-result-score{font:54px Georgia,serif;color:#b9ddc4}.hc-game-result-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}.hc-game-result-actions button{min-height:46px}
#lc-feedback:not(:empty){border:0;padding:0;background:none;white-space:normal}.hc-win-panel{position:relative;overflow:hidden;padding:23px;border:1px solid #6b9679;border-radius:13px;background:linear-gradient(120deg,#1d3527,#13231a);margin:20px 0;color:#e6f4eb;isolation:isolate}.hc-win-panel.hc-rethink{border-color:#987c4c;background:#2c261b}.hc-win-header{display:flex;align-items:center;gap:16px}.hc-win-icon{position:relative;display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;background:#b4d7bf;color:#14301d;border-radius:50%;box-shadow:0 0 0 7px #8ac89e18}.hc-win-icon svg{width:29px;height:29px}.hc-win-icon svg path{stroke-dasharray:45;stroke-dashoffset:0;animation:hc-check .5s ease-out}.hc-win-panel.hc-rethink .hc-win-icon{background:#decca1;color:#362813;font-size:28px;box-shadow:none}.hc-win-title{font:26px var(--hc-display,Georgia,serif);margin:0!important;line-height:1.2}.hc-win-badge{display:inline-block;margin:7px 0 0;padding:4px 10px;border:1px solid #658c70;border-radius:20px;font-size:12px;letter-spacing:.04em;color:#d5ebdc}.hc-win-panel p{font-size:16px;line-height:1.7;margin:18px 0 0;color:#d0e0d5!important}.hc-win-detail{font-size:13px!important;color:#c9d9ce!important}.hc-win-panel:not(.hc-rethink){animation:hc-win-in .32s ease-out}.hc-spark{position:absolute;top:34px;left:50%;width:5px;height:9px;border-radius:2px;background:#b9d8c3;pointer-events:none;opacity:0;transform:rotate(var(--angle));animation:hc-spark .8s ease-out both;animation-delay:var(--delay)}.hc-spark:nth-child(even){background:#dec99b}.hc-answer-marker{white-space:nowrap}.hc-complete-banner{margin-bottom:20px}.hc-games-link{display:inline-block;margin:18px 0;color:#d5e7da;text-underline-offset:5px}
@keyframes hc-check{from{stroke-dashoffset:45}to{stroke-dashoffset:0}}@keyframes hc-win-in{from{opacity:0;transform:translateY(6px) scale(.98)}to{opacity:1;transform:none}}@keyframes hc-spark{0%{opacity:0;transform:rotate(var(--angle)) translateY(0)}20%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateY(-85px)}}
@media(max-width:760px){.hc-game-grid{grid-template-columns:1fr}.hc-game-card{padding:22px}.hc-game-card h3{font-size:27px}}@media(max-width:480px){#hc-game-dialog{padding:20px}.hc-match-grid{gap:10px}.hc-match-column button{font-size:13px;padding:11px;min-height:92px}.hc-win-panel{padding:18px}.hc-win-icon{flex-basis:48px;width:48px;height:48px}.hc-win-title{font-size:23px}.hc-game-scenario{padding:18px}.hc-game-numbers span{min-width:95px}}@media(prefers-reduced-motion:reduce){.hc-win-panel,.hc-win-icon svg path,.hc-spark{animation:none!important}.hc-spark{display:none}}html[data-hc-motion=off] .hc-win-panel,html[data-hc-motion=off] .hc-win-icon svg path,html[data-hc-motion=off] .hc-spark{animation:none!important}html[data-hc-motion=off] .hc-spark{display:none}
