/* Spark Arcade section on the landing page.
   Layout and imagery follow the landing-concept mockup (LearnSpark_Testing/landing-concept):
   a dark stage, a big two-line heading with the brand gradient on the second line, one
   featured game (Sparky Speedway, a real gameplay capture) beside two smaller game cards
   that use the arcade's own artwork. Type is the site's Nunito, colours the site palette. */
.spark-arcade { position: relative; overflow: hidden; background: #0f1130; color: #f4f5ff; padding: 88px 5% 40px; }
.spark-arcade::before { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 0% 90%, rgba(79,70,229,0.28), transparent 60%), radial-gradient(ellipse at 100% 0%, rgba(236,72,153,0.16), transparent 55%); }
.spark-arcade > .sa-wrap { position: relative; max-width: 1240px; margin: 0 auto; }
.sa-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 64px; margin-bottom: 40px; }
.sa-eyebrow { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #a5b4fc; margin-bottom: 18px; }
.sa-heading h2 { margin: 0; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: clamp(38px, 4.2vw, 58px); line-height: 1.06; letter-spacing: -0.03em; color: #ffffff; text-wrap: balance; }
.sa-heading h2 em { font-style: normal; background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 45%, #EC4899 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sa-heading > div:last-child { max-width: 360px; }
.sa-heading > div:last-child p { margin: 0; font-size: 16px; line-height: 1.7; color: #c7cbe8; }
.sa-label { display: block; margin-top: 22px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #a5b4fc; }
.sa-label i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #EC4899; margin-right: 8px; vertical-align: 1px; }

.sa-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.sa-game { position: relative; display: block; overflow: hidden; border-radius: 16px; border: 1px solid rgba(255,255,255,0.14); background: #171a45; color: #ffffff; text-decoration: none; text-align: left; box-shadow: 0 18px 50px rgba(0,0,0,0.35); }
.sa-game:focus-visible { outline: 3px solid #EC4899; outline-offset: 3px; }
.sa-game img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.sa-game:hover img { transform: scale(1.03); }
.sa-feature { height: 440px; }
.sa-feature img { object-position: center 30%; }
.sa-vignette { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(7,9,34,0) 28%, rgba(7,9,34,0.92) 100%); }
.sa-new { position: absolute; top: 20px; left: 22px; font-size: 11px; font-weight: 900; letter-spacing: 0.12em; background: #fef3c7; color: #92400e; padding: 7px 12px; border-radius: 999px; }
.sa-info { position: absolute; left: 26px; right: 26px; bottom: 26px; }
.sa-info small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: #fbcfe8; }
.sa-info strong { display: block; font-family: 'Nunito', sans-serif; font-size: 34px; font-weight: 900; letter-spacing: -0.02em; margin: 6px 0 8px; line-height: 1.1; }
.sa-info span { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: #dfe2f6; }
.sa-info b { font-size: 22px; font-weight: 400; color: #ffffff; }
.sa-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.sa-small { min-height: 211px; }
.sa-small img { position: absolute; inset: 0; }
.sa-small::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(7,9,34,0) 35%, rgba(7,9,34,0.85) 100%); }
.sa-small > span { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; }
.sa-small small { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: #e0e7ff; }
.sa-small strong { display: flex; justify-content: space-between; align-items: center; font-family: 'Nunito', sans-serif; font-size: 25px; font-weight: 900; letter-spacing: -0.02em; margin-top: 4px; }
.sa-small b { font-size: 19px; font-weight: 400; }

.sa-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0 6px; font-size: 14px; color: #b3b9de; }
.sa-footer .sa-cta { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: #ffffff; text-decoration: none; background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 60%, #EC4899 100%); padding: 12px 22px; border-radius: 12px; box-shadow: 0 10px 30px rgba(124,58,237,0.35); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.sa-footer .sa-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(124,58,237,0.45); }

@media (max-width: 900px) {
    .spark-arcade { padding: 64px 5% 32px; }
    .sa-heading { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 28px; }
    .sa-heading > div:last-child { max-width: none; }
    .sa-grid { grid-template-columns: 1fr; gap: 14px; }
    .sa-feature { height: 360px; }
    .sa-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 14px; }
    .sa-small { min-height: 190px; }
    .sa-info { left: 18px; right: 18px; bottom: 20px; }
    .sa-info strong { font-size: 26px; }
    .sa-small > span { left: 16px; right: 16px; bottom: 16px; }
    .sa-small strong { font-size: 20px; }
}
@media (max-width: 560px) {
    .sa-feature { height: 300px; }
    .sa-side { grid-template-columns: 1fr; }
    .sa-small { min-height: 170px; }
    .sa-footer { flex-direction: column; align-items: flex-start; }
    .sa-footer .sa-cta { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .sa-game img { transition: none; } .sa-game:hover img { transform: none; } }
