/* ════════════════════════════════════════════════════════════════
   promo-freegames.css — "Grade 6 Maths games FREE until 31 Dec" popup
   Reuses the popup frame from promo-2027.css (.pr-overlay, .pr-wrap,
   .pr-close, .pr-actions, .pr-more, .pr-later). Opened by js/promo-freegames.js.
   ════════════════════════════════════════════════════════════════ */
.fg-card{
  position:relative; display:block; width:100%; max-height:calc(100vh - 120px); overflow-x:hidden; overflow-y:auto;
  background:linear-gradient(160deg,#0b3b8c 0%,#2350d8 55%,#3b82f6 100%); color:#fff;
  border-radius:18px; box-shadow:0 30px 80px rgba(2,6,23,.5); text-decoration:none !important;
  font-family:'Noto Sans Sinhala','Open Sans',system-ui,sans-serif;
}
.fg-card:hover,.fg-card:focus{ color:#fff; }
.fg-card::before{ content:""; position:absolute; top:-80px; right:-60px; width:240px; height:240px;
  border-radius:50%; background:#fdd447; opacity:.95; z-index:0; }
.fg-card::after{ content:""; position:absolute; bottom:90px; left:-50px; width:140px; height:140px;
  border-radius:50%; background:#f26a4b; opacity:.35; z-index:0; }
.fg-card > *{ position:relative; z-index:1; }

.fg-top{ display:flex; justify-content:space-between; align-items:flex-start; padding:22px 24px 0; }
.fg-gift{ font-size:58px; line-height:1; animation:fgWiggle 2.4s 1s ease-in-out infinite; transform-origin:50% 90%; }
.fg-free{
  font-family:'Poppins','Open Sans',sans-serif; font-weight:900; font-size:54px; line-height:.9; letter-spacing:-1px;
  color:#0f1b3d; text-align:right; padding-top:14px;
}
.fg-free small{ display:block; font-size:20px; letter-spacing:0; font-family:'Noto Sans Sinhala','Open Sans',sans-serif; font-weight:900; }

.fg-title{ margin:10px 0 0; padding:0 24px; font-weight:900; line-height:1.15; color:#fff; }
.fg-title .g{ display:block; font-size:22px; }
.fg-title .g b{ color:#fdd447; font-size:46px; margin-right:6px; vertical-align:-5px; }
.fg-title .m{ display:block; font-size:34px; }

.fg-until{
  display:inline-block; margin:12px 24px 4px; padding:7px 14px; border-radius:999px;
  background:#fdd447; color:#0f1b3d; font-weight:900; font-size:15px;
  animation:fgPulse 2s 1.2s ease-in-out infinite;
}

.fg-list{ list-style:none; margin:10px 0 0; padding:0 18px; }
.fg-list li{
  display:flex; align-items:center; gap:12px; margin:0 0 9px; padding:10px 14px;
  background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22); border-radius:14px;
  font-weight:700; font-size:14.5px; animation:prRise .5s ease both;
}
.fg-list li:nth-child(1){ animation-delay:.35s; } .fg-list li:nth-child(2){ animation-delay:.5s; } .fg-list li:nth-child(3){ animation-delay:.65s; }
.fg-list li span{ font-size:24px; flex:none; width:30px; text-align:center; }
.fg-list li b{ color:#fdd447; }

.fg-play{
  display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px;
  padding:16px 24px; background:#0f1b3d; color:#fdd447; font-weight:900; font-size:20px;
}
.fg-play i{ font-style:normal; color:#fff; font-size:26px; transition:transform .2s; }
.fg-card:hover .fg-play i{ transform:translateX(6px); }
.fg-note{ display:block; padding:0 24px 12px; margin-top:-2px; background:#0f1b3d; color:#cbd5e1; font-size:12px; font-weight:600; }

.fg-float{ position:absolute; z-index:0; font-weight:900; color:#fff; opacity:.12; font-size:30px;
  animation:prFloat 5s ease-in-out infinite; pointer-events:none; }
.fg-float.f1{ left:52%; top:150px; } .fg-float.f2{ right:18px; top:300px; animation-delay:1.3s; } .fg-float.f3{ left:12px; top:250px; animation-delay:2.2s; }

@keyframes fgWiggle{ 0%,70%,100%{ transform:rotate(0); } 75%{ transform:rotate(-12deg); } 85%{ transform:rotate(10deg); } 92%{ transform:rotate(-5deg); } }
@keyframes fgPulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(253,212,71,.6); } 50%{ box-shadow:0 0 0 10px rgba(253,212,71,0); } }

@media (max-width:420px){
  .fg-free{ font-size:44px; } .fg-gift{ font-size:48px; }
  .fg-title .m{ font-size:30px; } .fg-play{ font-size:18px; }
}
@media (prefers-reduced-motion:reduce){ .fg-card *{ animation:none !important; } }
