/* ── Games Section ── */
.games-banner{background:linear-gradient(135deg,#e87722,#c96a1a);padding:28px 20px;text-align:center;position:relative;overflow:hidden}
.games-banner::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 30% 50%,rgba(255,255,255,.12),transparent 60%);animation:gBannerPulse 3s ease-in-out infinite}
@keyframes gBannerPulse{0%,100%{opacity:.6}50%{opacity:1}}
.games-banner h3{color:#fff;font-size:clamp(20px,4vw,28px);font-weight:800;margin:0 0 6px}
.games-banner p{color:rgba(255,255,255,.85);font-size:14px;margin:0}

.games-section{padding:3rem 5%;background:linear-gradient(180deg,#fff8f0,#fff)}
.games-header{text-align:center;margin-bottom:2rem}
.games-pill{display:inline-flex;align-items:center;gap:6px;background:#e87722;color:#fff;border-radius:30px;padding:6px 18px;font-size:12px;font-weight:600;margin-bottom:14px;letter-spacing:.04em}
.games-header h2{font-size:clamp(24px,5vw,36px);font-weight:800;color:#1a2e4a;margin:0 0 10px;line-height:1.2}
.games-header p{font-size:15px;color:#666;max-width:520px;margin:0 auto 1rem;line-height:1.6}
.games-chips{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.games-chip{background:#fff;border:1.5px solid #e0e0e0;border-radius:20px;padding:5px 14px;font-size:12px;font-weight:500;color:#444}

/* Tiles */
.games-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;max-width:680px;margin:0 auto}
.game-tile{border-radius:20px;padding:1.5rem;cursor:pointer;border:2.5px solid transparent;transition:all .25s;position:relative;overflow:hidden}
.game-tile:hover{transform:translateY(-4px);box-shadow:0 8px 28px rgba(0,0,0,.1)}
.gt-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}
.gt-icon{font-size:42px;animation:gWiggle 2.5s ease-in-out infinite}
@keyframes gWiggle{0%,100%{transform:rotate(0)}15%{transform:rotate(-8deg)}30%{transform:rotate(8deg)}45%{transform:rotate(-4deg)}60%{transform:rotate(0)}}
.gt-age{font-size:11px;font-weight:600;padding:4px 10px;border-radius:20px;color:#fff}
.gt-name{font-size:17px;font-weight:700;margin-bottom:4px}
.gt-tag{font-size:12px;opacity:.7;margin-bottom:4px}
.gt-desc{font-size:13px;opacity:.85;margin-bottom:14px;line-height:1.5}
.gt-btn{width:100%;padding:11px 0;border-radius:12px;color:#fff;border:none;font-size:14px;font-weight:700;cursor:pointer;letter-spacing:.02em}

/* Viewer */
.game-viewer{max-width:680px;margin:0 auto;border-radius:24px;overflow:hidden;background:#1a2e4a;min-height:560px;display:none}
.game-viewer.active{display:block}
.gv-topbar{display:flex;align-items:center;gap:10px;padding:14px 18px;background:rgba(255,255,255,.07);border-bottom:1px solid rgba(255,255,255,.08)}
.gv-topbar .gv-icon{font-size:22px}
.gv-topbar .gv-title{color:#fff;font-weight:600;font-size:15px;flex:1}
.gv-badge{font-size:12px;font-weight:700;padding:4px 12px;border-radius:20px;color:#fff}
.gv-btn{background:rgba(255,255,255,.12);border:none;color:#fff;width:34px;height:34px;border-radius:50%;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center}
.gv-body{min-height:480px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem 1.5rem}

/* Registration */
.reg-dots{display:flex;gap:8px;margin-bottom:1.75rem}
.reg-dot{height:10px;border-radius:6px;transition:all .3s}
.reg-q{font-size:22px;font-weight:600;color:#fff;text-align:center;margin-bottom:6px}
.reg-hint{font-size:13px;color:rgba(255,255,255,.55);text-align:center;margin-bottom:20px}
.reg-input{width:100%;max-width:320px;padding:13px 16px;border-radius:12px;border:2px solid rgba(255,255,255,.2);background:rgba(255,255,255,.1);color:#fff;font-size:16px;outline:none;text-align:center;font-family:inherit}
.reg-input:focus{border-color:#e87722}
.reg-input.err{border-color:#FAC775}
.reg-err{font-size:12px;color:#FAC775;margin-top:10px;text-align:center}
.reg-ages{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;max-width:340px}
.reg-age{padding:10px 18px;border-radius:30px;border:2px solid rgba(255,255,255,.22);color:#fff;font-size:15px;font-weight:500;cursor:pointer;background:rgba(255,255,255,.08);transition:.15s}
.reg-age.sel{border-color:#e87722;background:#e87722}
.reg-grades{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:340px}
.reg-grade{padding:10px 6px;border-radius:12px;border:2px solid rgba(255,255,255,.18);color:#fff;font-size:13px;font-weight:500;cursor:pointer;text-align:center;background:rgba(255,255,255,.07);transition:.15s}
.reg-grade.sel{border-color:#e87722;background:rgba(232,119,34,.4)}
.reg-next{margin-top:24px;padding:13px 44px;border-radius:12px;background:#e87722;color:#fff;border:none;font-size:15px;font-weight:700;cursor:pointer;box-shadow:0 4px 20px rgba(232,119,34,.55)}

/* Game area */
.game-area{padding:1.25rem;width:100%;color:#fff}
.game-stars{display:flex;justify-content:center;gap:4px;margin-bottom:.75rem}
.game-star{font-size:16px}
.game-star.off{filter:grayscale(1) opacity(.25)}
.game-board{background:rgba(255,255,255,.95);border-radius:16px;padding:1.25rem;color:#1a2e4a;text-align:center}
.game-round{font-size:11px;color:#bbb;margin-top:6px}

/* Feed Animals */
.fa-animals{display:flex;justify-content:center;gap:24px;margin-bottom:1rem;flex-wrap:wrap}
.fa-animal{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px;border-radius:16px;border:3px dashed #ccc;background:#f9f9f9;min-width:90px;cursor:pointer;transition:.2s}
.fa-animal.fed{border-color:#1D9E75;background:#E1F5EE}
.fa-animal .fa-emoji{font-size:52px;transition:.3s}
.fa-animal.happy .fa-emoji{transform:scale(1.3) rotate(-10deg)}
.fa-foods{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;padding:10px;background:#f5f5f5;border-radius:12px;margin-bottom:.75rem}
.fa-food{font-size:36px;width:60px;height:60px;border-radius:12px;background:#fff;border:3px solid #e0e0e0;display:flex;align-items:center;justify-content:center;cursor:grab;transition:.15s}
.fa-food.sel{border-color:#e87722;transform:scale(1.15);box-shadow:0 4px 12px rgba(232,119,34,.4)}
.fa-food.dragging{border-color:#1D9E75}

/* Pop Balloon */
.pb-sky{background:linear-gradient(180deg,#1565C0 0%,#42A5F5 60%,#E3F2FD 100%);border-radius:16px;padding:1.25rem;text-align:center;min-height:300px;position:relative;overflow:hidden}
.pb-q{font-size:16px;font-weight:700;color:#fff;margin-bottom:.5rem;text-shadow:0 1px 4px rgba(0,0,0,.3)}
.pb-field{position:relative;height:220px}
.pb-balloon{position:absolute;cursor:pointer;user-select:none;transition:transform .15s}
.pb-balloon .pb-ball{line-height:1;transition:all .3s}
.pb-balloon.burst .pb-ball{transform:scale(2) rotate(20deg);opacity:0}
.pb-color{border-radius:50%;position:absolute;top:8%;left:5%;opacity:.7;pointer-events:none}

/* Catch Letters */
.cl-word{text-align:center;margin-bottom:.5rem}
.cl-box{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;margin:0 3px;font-size:18px;font-weight:700}
.cl-field{position:relative;height:220px;background:linear-gradient(180deg,#E8F5E9,#C8E6C9);border-radius:12px;overflow:hidden}
.cl-letter{position:absolute;width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.1);user-select:none}
.cl-feedback{position:absolute;top:8px;left:50%;transform:translateX(-50%);background:rgba(0,0,0,.6);color:#fff;padding:4px 14px;border-radius:20px;font-size:13px;font-weight:600;white-space:nowrap}

/* Feed Monster */
.fm-monster{font-size:80px;margin:.5rem 0;transition:all .3s}
.fm-belly{height:18px;background:#f0f0f0;border-radius:10px;margin:0 auto .75rem;max-width:240px;overflow:hidden;border:1px solid #ddd}
.fm-belly-fill{height:100%;border-radius:10px;transition:width .3s}
.fm-food-btn{font-size:52px;background:#fff;border:3px solid #e87722;border-radius:20px;padding:12px 24px;cursor:pointer;display:inline-block;box-shadow:0 4px 16px rgba(232,119,34,.3);transition:transform .1s}
.fm-food-btn:active{transform:scale(.92)}

/* Win/Greeting screens */
.gv-center{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:480px;color:#fff;text-align:center;padding:2rem}

@media(max-width:480px){
  .games-grid{grid-template-columns:1fr}
  .reg-grades{grid-template-columns:repeat(2,1fr)}
  .fa-animals{gap:12px}
  .fa-food{width:50px;height:50px;font-size:28px}
}
