/* FlexiKeys Brain Battle — "Clear sky (soft)" colours from the FlexiKeys website */
:root {
  --sky1: #EEF7FF; --sky2: #DCEEFC; --ink: #17324D; --muted: #4F6782; --line: #D9E8F6;
  --btn: #2F78C4; --btn2: #245FA3; --accent: #2361A5; --paper: rgba(255,255,255,.9);
  --a0: #E25A5F; --a1: #2F78C4; --a2: #E3A82B; --a3: #3A9E6E; --good: #2E9E5B; --bad: #D9464C;
  --memory: #7B5CD6; --reasoning: #2F78C4; --flexibility: #2E9E6B; --speed: #E0782B; --language: #D14D8A; --math: #1C8C9C;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink);
       background: linear-gradient(180deg, var(--sky1), var(--sky2)) fixed; min-height: 100vh; }
button { font: inherit; cursor: pointer; border: 0; color: inherit; }
.hidden { display: none !important; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 10px 30px rgba(36,99,168,.12); padding: 22px; }
.btn { background: var(--btn); color: #fff; padding: 14px 24px; border-radius: 16px; font-weight: 800; box-shadow: 0 5px 0 var(--btn2); transition: transform .08s; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--btn2); }
.btn.ghost { background: #fff; color: var(--accent); box-shadow: 0 5px 0 var(--line); }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 800; color: var(--accent); font-size: .85em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.area-Memory { --area: var(--memory); } .area-Reasoning { --area: var(--reasoning); } .area-Flexibility { --area: var(--flexibility); }
.area-Speed-Attention { --area: var(--speed); } .area-Language { --area: var(--language); } .area-Math { --area: var(--math); }
.pop { animation: pop .35s ease-out; } @keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.shake { animation: shake .35s; } @keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.bob { animation: bob 2.6s ease-in-out infinite; } @keyframes bob { 50% { transform: translateY(-7px); } }
.cloudy-av { display: block; overflow: visible; }

/* game card (Lumosity-style tile) */
.gcard { position: relative; border-radius: 20px; background: #fff; padding: 10px 10px 12px; box-shadow: 0 6px 18px rgba(23,50,77,.1); text-align: left; }
.gcard .art { height: 92px; border-radius: 14px; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 60%), var(--area);
              display: grid; place-items: center; font-size: 48px; }
.gcard .gname { font-weight: 900; font-size: 1.05rem; margin-top: 8px; }
.gcard .garea { color: var(--muted); font-weight: 700; font-size: .85rem; }
