/**
 * Thẻ "Giải pháp minigame chủ lực" (template-parts/game-featured-cards.php): dùng chung trang chủ + /gamification/.
 * Ảnh bìa = hình game vẽ bằng CSS + mascot, đồng bộ màu thương hiệu.
 */
.sm-cover { position: relative; display: block; container-type: inline-size; background:
    radial-gradient(circle at 74% 62%, rgba(190, 255, 1, 0.28) 0, rgba(190, 255, 1, 0) 34%),
    radial-gradient(rgba(255, 255, 255, 0.13) 1.2px, transparent 1.4px) 0 0 / 18px 18px,
    linear-gradient(135deg, #0038a8 0%, #005eff 55%, #3d8cff 100%) !important; }
.sm-cover-mascot { position: absolute; right: 3cqw; bottom: 0; width: auto !important; height: 90% !important; object-fit: contain !important; filter: drop-shadow(0 10px 14px rgba(0, 20, 70, 0.35)); transition: transform .3s; transform-origin: bottom center; }
.sm-game-feature:hover .sm-cover-mascot { transform: scale(1.04) rotate(-2deg); }
.sm-cover-motif { position: absolute; top: 50%; transform: translateY(-50%); }
/* Vòng quay */
.sm-cover-wheel { left: 9cqw; width: 37cqw; aspect-ratio: 1; border-radius: 50%; border: 1.6cqw solid #fff; box-shadow: 0 10px 24px rgba(0, 20, 70, 0.35);
    background: conic-gradient(#beff01 0 45deg, #fff 0 90deg, #7fb0ff 0 135deg, #e8f0ff 0 180deg, #beff01 0 225deg, #fff 0 270deg, #7fb0ff 0 315deg, #e8f0ff 0 360deg); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.sm-cover-wheel::after { content: ''; position: absolute; inset: 38%; border-radius: 50%; background: #005eff; border: 1cqw solid #fff; }
.sm-cover-wheel i { position: absolute; left: 50%; top: -4.2cqw; width: 5cqw; height: 6cqw; transform: translateX(-50%); background: #beff01; clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
.sm-game-feature:hover .sm-cover-wheel { transform: translateY(-50%) rotate(135deg); }
/* Quiz */
.sm-cover-quiz { left: 7cqw; width: 42cqw; display: flex; flex-direction: column; gap: 2.2cqw; }
.sm-cover-quiz b { display: flex; align-items: center; gap: 2.4cqw; height: 8.6cqw; padding: 0 2cqw; border-radius: 2.4cqw; background: rgba(255, 255, 255, 0.94); box-shadow: 0 6px 14px rgba(0, 20, 70, 0.25); font-size: 3.6cqw; color: #005eff; }
.sm-cover-quiz b::before { content: attr(data-k); flex: none; width: 5cqw; height: 5cqw; border-radius: 50%; background: rgba(0, 94, 255, 0.12); display: flex; align-items: center; justify-content: center; }
.sm-cover-quiz b::after { content: ''; height: 1.4cqw; flex: 1; border-radius: 1cqw; background: rgba(0, 94, 255, 0.18); }
.sm-cover-quiz b.on { background: #beff01; color: #0b1a3a; transform: translateX(3cqw); }
.sm-cover-quiz b.on::before { content: '✓'; background: #0b1a3a; color: #beff01; }
.sm-cover-quiz b.on::after { background: rgba(11, 26, 58, 0.25); }
/* Cào thẻ */
.sm-cover-scratch { left: 7cqw; width: 44cqw; height: 28cqw; margin-top: -14cqw; transform: rotate(-7deg); border-radius: 2.6cqw; background: #fff; box-shadow: 0 12px 26px rgba(0, 20, 70, 0.35); display: flex; align-items: center; padding-left: 4cqw; overflow: hidden; top: 50%; }
.sm-cover-scratch b { font-size: 8.6cqw; line-height: 1; font-weight: 800; color: #005eff; letter-spacing: -0.04em; }
.sm-cover-scratch::after { content: ''; position: absolute; top: 0; bottom: 0; left: 68%; right: 0; background: repeating-linear-gradient(45deg, #c7cfdb 0 6px, #b5bfcd 6px 12px); clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%, 10% 82%, 4% 64%, 12% 46%, 3% 28%, 11% 12%); transition: clip-path .5s; }
.sm-cover-scratch::before { content: ''; position: absolute; right: 4cqw; top: 2.4cqw; width: 6cqw; height: 6cqw; border-radius: 50%; background: #beff01; z-index: 1; box-shadow: 0 0 0 1cqw rgba(190, 255, 1, 0.3); }
.sm-game-feature:hover .sm-cover-scratch::after { clip-path: polygon(60% 0, 100% 0, 100% 100%, 50% 100%, 58% 82%, 52% 64%, 60% 46%, 52% 28%, 58% 12%); }
@media (prefers-reduced-motion: reduce) { .sm-cover *, .sm-cover *::after { transition: none !important; } }
.sm-game-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sm-game-feature { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid rgba(0, 0, 0, 0.08); transition: transform .25s, box-shadow .25s; }
.sm-game-feature:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -14px rgba(0, 40, 120, 0.3); }
.sm-game-feature-media { aspect-ratio: 16 / 10; overflow: hidden; background: #eef3ff; }
.sm-game-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-game-feature-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sm-game-feature-label { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #0047c2; background: rgba(0, 94, 255, 0.08); border-radius: 6px; padding: 3px 9px; }
.sm-game-feature h3 { font-size: 22px; line-height: 1.3; margin: 0; }
.sm-game-feature ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sm-game-feature li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.5; color: #4b5563; }
.sm-game-feature li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid #005eff; border-bottom: 2px solid #005eff; transform: rotate(-45deg); }
.sm-game-feature .btn { margin-top: 8px; align-self: flex-start; text-transform: none; background: #005eff !important; border-color: #005eff !important; color: #fff !important; }
.sm-game-feature .btn:hover { background: #1a78ff !important; border-color: #1a78ff !important; }
html[data-theme="dark"] .sm-game-feature { background: var(--bg-secondary, #151d30); border-color: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .sm-game-feature li { color: #cbd5e1 !important; }
html[data-theme="dark"] .sm-game-feature-label { color: #9cc2ff; background: rgba(0, 94, 255, 0.18); }
html[data-theme="dark"] .sm-game-feature-media { background: #0f1626; }
@media (max-width: 991px) {
    .sm-game-featured { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(280px, 82%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
    .sm-game-feature { scroll-snap-align: start; }
}
