/* AFTER Código — aba educativa do AFTER Games. */
#gamesContent .cg-home,#gamesContent .cg-level-view{display:block;max-width:940px;margin:0 auto;color:#efeaff}
#gamesContent .cg-hero{padding:22px 20px;border:1px solid #8b5cf63d;border-radius:20px;background:radial-gradient(ellipse at 15% 0,rgba(139,92,246,.22),transparent 60%),linear-gradient(160deg,#1a1626,#131020)}
#gamesContent .cg-hero>span{display:block;color:#b79aff;font-size:10px;font-weight:800;letter-spacing:1.6px}
#gamesContent .cg-hero h2{margin:8px 0 6px;font-size:25px;line-height:1.2;letter-spacing:-.4px}
#gamesContent .cg-hero p{margin:0;max-width:58ch;color:#b8b0cc;font-size:13px;line-height:1.55}
#gamesContent .cg-progress{display:flex;align-items:center;gap:11px;margin-top:16px}
#gamesContent .cg-progress strong{color:#fff;font-size:13px}
#gamesContent .cg-progress small{color:#a99ec7;font-size:11px}
#gamesContent .cg-bar{flex:1;height:8px;border-radius:20px;background:#2a2440;overflow:hidden}
#gamesContent .cg-bar i{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#8b5cf6,#c084fc);transition:width .3s ease}
#gamesContent .cg-tiers{display:grid;gap:14px;margin-top:16px}
#gamesContent .cg-tier{padding:16px;border:1px solid #8b5cf62e;border-radius:18px;background:#161226}
#gamesContent .cg-tier>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
#gamesContent .cg-tier>header small{display:block;color:#9d8dc4;font-size:9px;font-weight:800;letter-spacing:1.3px}
#gamesContent .cg-tier>header h3{margin:3px 0 2px;font-size:16px}
#gamesContent .cg-tier>header p{margin:0;color:#a79fc0;font-size:11px}
#gamesContent .cg-tier-count{flex:0 0 auto;padding:4px 9px;border:1px solid #8b5cf652;border-radius:999px;background:#241c3a;color:#c9b4ff;font-size:11px;font-weight:800}
#gamesContent .cg-levels{display:grid;gap:8px}
#gamesContent .cg-level{display:flex;align-items:center;gap:11px;width:100%;min-height:52px;padding:8px 12px;border:1px solid #8b5cf629;border-radius:14px;background:#1d1830;color:#efeaff;font:inherit;text-align:left;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease}
#gamesContent .cg-level:hover{background:#251e3d;border-color:#a78bfa66;transform:translateY(-1px)}
#gamesContent .cg-level b{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:9px;background:#332a52;color:#d6c8ff;font-size:12px}
#gamesContent .cg-level span{flex:1;min-width:0;font-size:13px;font-weight:700}
#gamesContent .cg-level em{flex:0 0 auto;color:#9d92b8;font-size:10px;font-style:normal;letter-spacing:.4px;text-transform:uppercase}
#gamesContent .cg-level.is-done{border-color:#34d3994d;background:#152219}
#gamesContent .cg-level.is-done b{background:#1f5c40;color:#8ff0b4}
#gamesContent .cg-level.is-done em{color:#79d9a5}
#gamesContent .cg-foot{margin:16px 2px 4px;color:#8f86a8;font-size:11px;line-height:1.5}
#gamesContent .cg-exam-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;padding:18px;border:1px solid #f59e0b3d;border-radius:18px;background:radial-gradient(ellipse at 90% 0,rgba(245,158,11,.16),transparent 60%),linear-gradient(160deg,#1d1a14,#151220)}
#gamesContent .cg-exam-cta>div>small{display:block;color:#e9c07a;font-size:9px;font-weight:800;letter-spacing:1.4px}
#gamesContent .cg-exam-cta h3{margin:5px 0 4px;font-size:17px}
#gamesContent .cg-exam-cta p{margin:0;max-width:52ch;color:#b3a8c4;font-size:12px;line-height:1.5}
#gamesContent .cg-exam-cta-side{display:grid;gap:7px;justify-items:start}
#gamesContent .cg-exam-cta-side button{min-height:44px;padding:0 18px;border:1px solid #f59e0b66;border-radius:13px;background:linear-gradient(135deg,#f5b23c,#e08606);color:#241a05;font:inherit;font-size:12.5px;font-weight:800;cursor:pointer}
#gamesContent .cg-exam-cta-side small{color:#a596bd;font-size:10px;font-weight:600;letter-spacing:0}
#gamesContent .cg-exam-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
#gamesContent .cg-exam-head .cg-kicker{margin:12px 0 0}
#gamesContent .cg-exam-count{flex:0 0 auto;padding:4px 10px;border:1px solid #f59e0b52;border-radius:999px;background:#2a2314;color:#f3cf94;font-size:11px;font-weight:800}
#gamesContent .cg-timer{height:7px;margin:12px 0 16px;border-radius:20px;background:#2a2440;overflow:hidden}
#gamesContent .cg-timer i{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#f5b23c,#ef4444);transition:width .25s linear}
#gamesContent .cg-exam h2{font-size:18px;margin:0 0 12px}
#gamesContent .cg-report-view h2{font-size:24px;margin:2px 0 0}
#gamesContent .cg-verdict{margin:8px 0 4px;color:#d9cfef;font-size:13px;line-height:1.55}
#gamesContent .cg-report{display:grid;gap:9px;margin:14px 0;padding:0;list-style:none;counter-reset:cgq}
#gamesContent .cg-report li{counter-increment:cgq;padding:11px 13px;border:1px solid #8b5cf62e;border-radius:13px;background:#151122}
#gamesContent .cg-report li.ok{border-color:#34d39940}
#gamesContent .cg-report li.bad{border-color:#ef444452}
#gamesContent .cg-report li::before{content:'#' counter(cgq);display:block;margin-bottom:2px;color:#8f83ab;font-size:10px;font-weight:800;letter-spacing:.6px}
#gamesContent .cg-report strong{display:block;margin:0 0 4px;color:#e7dcff;font-size:12.5px;line-height:1.45}
#gamesContent .cg-report p{margin:0 0 3px;color:#b3a8c4;font-size:11.5px;line-height:1.5}
#gamesContent .cg-report p:last-child{margin-bottom:0}
#gamesContent .cg-level-view{padding:4px 2px 10px}
#gamesContent .cg-back{min-height:38px;padding:0 14px;border:1px solid #8b5cf63d;border-radius:11px;background:#1c1730;color:#cbb8ff;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
#gamesContent .cg-kicker{display:block;margin:16px 0 4px;color:#9d8dc4;font-size:9px;font-weight:800;letter-spacing:1.4px}
#gamesContent .cg-level-view h2{margin:0 0 8px;font-size:22px;line-height:1.25;letter-spacing:-.3px}
#gamesContent .cg-prompt{margin:0 0 14px;max-width:60ch;color:#bdafd6;font-size:13px;line-height:1.55}
#gamesContent .cg-code{display:grid;gap:2px;margin:0 0 14px;padding:12px;border:1px solid #8b5cf62e;border-radius:16px;background:#0d0b16;overflow-x:auto}
#gamesContent .cg-code code,#gamesContent .cg-line{display:flex;gap:11px;align-items:baseline;width:100%;padding:3px 6px;border:0;border-radius:8px;background:transparent;color:#d9d2ee;font:inherit;font-size:12.5px;line-height:1.6;white-space:pre;text-align:left;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
#gamesContent .cg-code code b,#gamesContent .cg-line b{flex:0 0 18px;color:#5f5578;font-size:10px;text-align:right;font-weight:600}
#gamesContent .cg-line{cursor:pointer}
#gamesContent .cg-line:hover{background:#231c3a}
#gamesContent .cg-line.is-picked{background:#3a2a63;box-shadow:inset 0 0 0 1px #a78bfa80;color:#fff}
#gamesContent .cg-order{display:grid;gap:7px;margin:0 0 14px}
#gamesContent .cg-block{display:flex;align-items:center;gap:8px;padding:7px 7px 7px 11px;border:1px solid #8b5cf62e;border-radius:13px;background:#151123}
#gamesContent .cg-block span{flex:1;min-width:0;color:#d9d2ee;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;white-space:pre-wrap}
#gamesContent .cg-block span b{margin-right:9px;color:#5f5578;font-size:10px}
#gamesContent .cg-block div{display:flex;gap:5px}
#gamesContent .cg-block button{width:34px;height:34px;border:1px solid #8b5cf63d;border-radius:9px;background:#241d3a;color:#cbb8ff;font-size:12px;cursor:pointer}
#gamesContent .cg-block button:disabled{opacity:.35;cursor:default}
#gamesContent .cg-options{display:grid;gap:8px;margin:0 0 14px}
#gamesContent .cg-options button{min-height:46px;padding:10px 14px;border:1px solid #8b5cf63d;border-radius:13px;background:#1d1830;color:#efeaff;font:inherit;font-size:13px;font-weight:650;text-align:left;cursor:pointer;transition:background .16s ease,border-color .16s ease}
#gamesContent .cg-options button:hover{background:#261e3f;border-color:#a78bfa80}
#gamesContent .cg-options button.is-picked{background:#3a2a63;border-color:#c4b5fd;box-shadow:0 0 0 1px #c4b5fd66}
#gamesContent .cg-feedback{margin:0 0 12px;padding:12px 14px;min-height:44px;border:1px solid #8b5cf626;border-radius:13px;background:#141020;color:#b8b0cc;font-size:12px;line-height:1.55}
#gamesContent .cg-feedback strong{display:block;margin-bottom:3px;color:#e7dcff;font-size:12.5px}
#gamesContent .cg-feedback p{margin:0}
#gamesContent .cg-actions{display:flex;flex-wrap:wrap;gap:8px}
#gamesContent .cg-actions button{min-height:44px;padding:0 16px;border-radius:13px;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
#gamesContent .cg-hint{border:1px solid #8b5cf652;background:#241d3a;color:#cbb8ff}
#gamesContent .cg-check{border:1px solid #a78bfa80;background:linear-gradient(135deg,#7c4ddb,#5b34ad);color:#fff}
#gamesContent .cg-next{border:1px solid #34d39955;background:linear-gradient(135deg,#2f9e60,#1f7a49);color:#eafff3}
@media(max-width:600px){
  #gamesContent .cg-hero{padding:18px 15px;border-radius:17px}
  #gamesContent .cg-hero h2{font-size:21px}
  #gamesContent .cg-tier{padding:13px;border-radius:16px}
  #gamesContent .cg-level-view h2{font-size:19px}
  #gamesContent .cg-code{padding:9px}
  #gamesContent .cg-code code,#gamesContent .cg-line{font-size:11.5px}
  #gamesContent .cg-actions button{flex:1 1 auto}
}
@media(prefers-reduced-motion:reduce){
  #gamesContent .cg-level,#gamesContent .cg-bar i{transition:none}
}
