/* Counting game (P0055) */
.cg-row { margin: 0 0 8px; }
.cg-row > label:first-child { font-weight: bold; margin-right: 6px; }
.cg-sel { min-height: 48px; padding: 0 10px; border: 2px solid #8C96A6; border-radius: 12px; font: inherit; font-size: 1.1em; background: #FFFFFF; margin-right: 14px; }
.cg-check { display: inline-block; min-height: 48px; line-height: 48px; margin-right: 16px; cursor: pointer; }
.cg-check input { width: 24px; height: 24px; vertical-align: middle; margin-right: 6px; }
.cg-q { text-align: center; font-size: 2em; font-weight: bold; color: #24334B; margin: 8px 0; }
.cg-board { background: #FBF1E4; border-radius: 18px; padding: 10px; text-align: center; max-width: 560px; margin: 0 auto 12px; }
.cg-item { position: relative; display: inline-block; width: 18%; max-width: 96px; min-width: 52px; margin: 1%; padding: 4px; border: 3px solid transparent; border-radius: 16px; background: #FFFFFF; cursor: pointer; vertical-align: top; }
.cg-item:hover { border-color: #C38B4A; }
.cg-pic { display: block; width: 100%; height: auto; }
.cg-done { border-color: #3B6970; background: #EEF4F3; }
.cg-badge { position: absolute; right: -4px; top: -6px; min-width: 1.6em; line-height: 1.6em; border-radius: 1em; background: #24334B; color: #FFFFFF; font-weight: bold; font-size: 1.1em; }
.cg-badge:empty { display: none; }
.cg-choices { text-align: center; }
.cg-num { min-width: 92px; min-height: 92px; margin: 0 10px 10px; border: 4px solid #3B6970; border-radius: 22px; background: #FFFFFF; color: #24334B; font-size: 2.6em; font-weight: bold; cursor: pointer; }
.cg-num:hover { background: #EEF4F3; }
.cg-right { background: #3B6970; color: #FFFFFF; }
.cg-try { border-color: #8C96A6; color: #4A5568; }
.cg-stars { text-align: center; font-size: 1.8em; color: #8A5A1F; min-height: 1.3em; margin: 4px 0; word-wrap: break-word; }
.cg-say { text-align: center; font-size: 1.3em; }
@media (max-width: 480px) { .cg-num { min-width: 76px; min-height: 76px; font-size: 2.1em; margin: 0 6px 8px; } .cg-q { font-size: 1.6em; } }
@media (prefers-reduced-motion: no-preference) { .cg-done { transition: background .2s; } }
