/* Learning section on language pages + the Beanstalk game banner (27 Oct 2026).
   Adult colours = palette v3; the .kids variant uses the kids green + pink. Flags are stickers hanging
   over a card's top corner, slightly tilted (owner's placement rule). */

/* ---------- learning section ---------- */
.learn .head { margin-bottom: 34px; }
.potd { position: relative; background: #fff; border-radius: 26px; padding: 30px 28px 24px; box-shadow: 0 14px 40px rgba(31,42,58,.08); border: 1px solid #EEF0EA; max-width: 760px; margin: 0 auto 40px; text-align: center; }
.potd .lbl { display: inline-block; background: #F7DDD5; color: #8a4a55; font-weight: 800; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.potd .big { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; color: #485935; margin: 14px 0 4px; line-height: 1.15; }
.potd .rom { font-style: italic; color: #6B7A5A; margin: 0 0 2px; font-size: 1.05rem; }
.potd .mean { color: #5d6470; margin: 6px 0 0; font-size: 1.05rem; }
.potd-act { display: flex; gap: 16px; justify-content: center; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.potd-play { font-weight: 700; color: #4F7CAC; text-decoration: none; }
.potd-play:hover { text-decoration: underline; }
.flag-stk { position: absolute; top: -22px; right: 26px; width: 76px; height: 57px; object-fit: cover; border-radius: 10px; border: 4px solid #fff; box-shadow: 0 6px 16px rgba(31,42,58,.18); transform: rotate(8deg); }
.flag-pin { position: absolute; top: -16px; right: 18px; width: 46px; height: 34px; object-fit: cover; border-radius: 7px; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(31,42,58,.16); transform: rotate(-8deg); }

.learn-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.learn-grid.two { margin-top: 28px; }
@media (min-width: 860px) { .learn-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.lcard { position: relative; background: #fff; border-radius: 24px; padding: 26px 22px 18px; border: 1px solid #EEF0EA; box-shadow: 0 10px 30px rgba(31,42,58,.06); min-width: 0; }
.lcard h3 { margin: 0 0 8px; color: #485935; font-size: 1.15rem; padding-right: 56px; }
.lcard .h3b { margin-top: 22px; }
.wlist { list-style: none; margin: 0; padding: 0; }
.wlist li { display: grid; grid-template-columns: 38px minmax(0, 1fr) 40px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #F0F2EC; }
.wlist li:last-child { border-bottom: 0; }
.wlist .emo { font-size: 26px; text-align: center; }
.wlist .w { min-width: 0; }
.wlist b { display: block; font-size: 1.08rem; color: #1F2A3A; overflow-wrap: anywhere; }
.wlist i { display: block; font-size: .9rem; color: #6B7A5A; }
.wlist small { display: block; font-size: .88rem; color: #6b7280; }
.say-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #EEF3E6; color: #485935; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s, background .15s; padding: 0; }
.say-btn svg { width: 20px; height: 20px; }
.say-btn:hover { background: #E1EBD4; transform: scale(1.06); }
.say-btn.playing { background: #9FBAD6; color: #1F2A3A; animation: say-pulse 1s ease-in-out infinite; }
.say-btn.big-say { width: 58px; height: 58px; background: #485935; color: #fff; }
.say-btn.big-say svg { width: 26px; height: 26px; }
@keyframes say-pulse { 50% { transform: scale(1.1); } }
.no-tts .say-btn { display: none; }
.no-tts .wlist li { grid-template-columns: 38px minmax(0, 1fr); }
.lcard.tip { background: #F1F6EA; border-color: #E2EBD6; }
.lcard.fact { background: #FDF3EF; border-color: #F4E1DA; }
.lcard .lic { position: absolute; top: -18px; left: 20px; width: 44px; height: 44px; border-radius: 13px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 6px 14px rgba(31,42,58,.14); transform: rotate(-8deg); }
.lcard.tip h3, .lcard.fact h3 { margin-top: 10px; }
.dots { margin: 0; padding: 0 0 0 4px; list-style: none; }
.dots li { position: relative; padding: 6px 0 6px 26px; line-height: 1.5; }
.dots li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 13px; height: 10px; border-radius: 60% 40% 60% 40%; background: #93A267; transform: rotate(-20deg); }

/* ---------- game banner ---------- */
.game-band { padding-top: 36px; padding-bottom: 36px; }
.gb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; background: linear-gradient(135deg, #485935, #5E7444); color: #fff; border-radius: 30px; padding: 22px; box-shadow: 0 18px 44px rgba(72,89,53,.25); overflow: hidden; position: relative; }
@media (min-width: 760px) { .gb { grid-template-columns: 270px minmax(0, 1fr); padding: 26px 36px 26px 26px; gap: 36px; } }
.gb-art { display: block; max-width: 270px; width: 100%; margin: 0 auto; transition: transform .2s; }
.gb-art:hover { transform: rotate(-1.5deg) scale(1.02); }
.gb-svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 22px rgba(0,0,0,.2)); }
.gb-flag { transform-box: fill-box; transform-origin: left center; animation: gb-wave 2.4s ease-in-out infinite; }
@keyframes gb-wave { 0%, 100% { transform: skewY(-4deg) scaleX(1); } 50% { transform: skewY(4deg) scaleX(.94); } }
.gb-text .kicker { display: inline-block; background: rgba(255,255,255,.16); color: #fff; font-weight: 800; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.gb-text h2 { color: #fff !important; margin: 12px 0 8px; font-size: clamp(1.5rem, 3.6vw, 2.1rem); line-height: 1.15; }
.gb-text p { color: rgba(255,255,255,.88); margin: 0 0 18px; line-height: 1.55; }
.gb-text .gb-btn { font-size: 1.05rem; padding: .95em 1.6em; }
.gb-text small { display: block; margin-top: 12px; color: rgba(255,255,255,.65); font-size: .82rem; line-height: 1.45; }
.gb .bunting { display: flex; gap: 3px; margin: -4px 0 14px; padding-top: 2px; border-top: 2px solid rgba(255,255,255,.45); max-width: 460px; }
.gb .bunting img { flex: 1 1 0; min-width: 0; max-width: 24px; height: 27px; object-fit: cover; clip-path: polygon(0 0, 100% 0, 50% 100%); animation: gb-flutter 2.6s ease-in-out infinite; transform-origin: top center; }
.gb .bunting img:nth-child(odd) { animation-delay: -1.3s; }
@keyframes gb-flutter { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .gb-flag, .gb .bunting img, .say-btn.playing { animation: none; } }

/* kids variant: green + pink, plum text */
.game-band.kids .gb { background: linear-gradient(135deg, #FCE7E5, #E6F4D6); color: #22384B; box-shadow: 0 18px 44px rgba(47,93,42,.14); border: 3px solid #fff; }
.game-band.kids .gb-text .kicker { background: #fff; color: #2F6FA8; }
.game-band.kids .gb-text h2 { color: #2F5D2A !important; }
.game-band.kids .gb-text p { color: #22384B; }
.game-band.kids .gb-text small { color: #4F6476; }
.game-band.kids .gb .bunting { border-top-color: rgba(47,93,42,.3); }

/* learning section on the kids language pages: kids colours, never the adult palette */
body.kids .learn { padding: 60px 0; }
body.kids .learn .head h2, body.kids .lcard h3 { color: #2F5D2A; }
body.kids .potd, body.kids .lcard { border: 3px solid #fff; box-shadow: 0 12px 30px rgba(91,69,102,.10); }
body.kids .potd .big { color: #2F5D2A; }
body.kids .potd .lbl { background: #FCE7E5; color: #2F6FA8; }
body.kids .potd .rom, body.kids .wlist i { color: #4F6476; }
body.kids .say-btn { background: #E6F4D6; color: #2F5D2A; }
body.kids .say-btn.big-say { background: #A9D77F; color: #2F5D2A; }
body.kids .lcard.tip { background: #EEF8E4; }
body.kids .lcard.fact { background: #FDF0EE; }
body.kids .dots li::before { background: #F4A9B0; }
body.kids .potd-play { color: #2F6FA8; }
.wlist b[dir="rtl"] { text-align: left; }
