/* Englishzilla – flashcards, 60-second challenge, memory */
#ezGame{width:100%;font-family:"Nunito",system-ui,sans-serif;color:#25222e;background:#fff}
#ezGame *{box-sizing:border-box}
#ezGame.wg-full{padding:24px 4vw;overflow:auto;display:flex;flex-direction:column;align-items:center}
#ezGame .wg-top{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 16px;width:100%}
#ezGame .wg-info{flex:1;font-family:"Poppins",system-ui,sans-serif;font-weight:800;font-size:18px;display:flex;gap:16px;flex-wrap:wrap}
#ezGame .wg-info .tm{padding:4px 12px;border-radius:99px;background:#f1e8ff;color:#5a00c2}
#ezGame .wg-info .tm.now{background:#7e10ff;color:#fff;box-shadow:0 0 0 3px #d7d477}
#ezGame .wg-btn{font-family:"Poppins",system-ui,sans-serif;font-weight:800;font-size:15px;text-transform:uppercase;letter-spacing:.02em;border:2px solid #7e10ff;background:#fff;color:#5a00c2;border-radius:12px;padding:9px 16px;cursor:pointer}
#ezGame .wg-btn:hover:not([disabled]){background:#f1e8ff}
#ezGame .wg-btn[disabled]{opacity:.4;cursor:default}
#ezGame .wg-btn.on{background:#7e10ff;color:#fff}
#ezGame .wg-know{background:#178850;border-color:#178850;color:#fff;box-shadow:0 4px 0 #0e5c35}
#ezGame .wg-know:hover:not([disabled]){background:#1fa564}
#ezGame .wg-again{border-color:#e73f70;color:#b8204f}
#ezGame .wg-fs{background:#363845;border-color:#363845;color:#fff}
#ezGame .wg-big{font-size:22px;padding:14px 30px;margin-top:10px}
#ezGame .wg-mode{display:flex;gap:6px}
#ezGame .wg-tip{color:#6a6479;font-weight:700;font-size:15px;margin:10px 0}
#ezGame .wg-row{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:16px 0}
#ezGame .wg-emoji{font-size:clamp(70px,14vw,120px);line-height:1}
#ezGame .wg-desc{font-family:"Poppins",system-ui,sans-serif;font-weight:800;font-size:clamp(18px,2.4vw,26px);line-height:1.3;text-align:center}
/* flashcards */
#ezGame .wg-card{width:min(520px,100%);height:min(320px,62vw);margin:0 auto;perspective:1200px;cursor:pointer;outline:none}
#ezGame .wg-card:focus-visible .wg-card-in{box-shadow:0 0 0 4px #d7d477}
#ezGame .wg-card-in{position:relative;width:100%;height:100%;transition:transform .45s;transform-style:preserve-3d;border-radius:22px}
#ezGame .wg-card.flip .wg-card-in{transform:rotateY(180deg)}
#ezGame .wg-front,#ezGame .wg-back{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;text-align:center}
#ezGame .wg-front{background:#7e10ff;color:#fff;box-shadow:0 8px 0 #5a00c2}
#ezGame .wg-front small{font-family:"Poppins",system-ui,sans-serif;font-weight:800;font-size:16px;opacity:.85}
#ezGame .wg-back{background:#fff;border:3px solid #7e10ff;transform:rotateY(180deg);box-shadow:0 8px 0 #d9c8f5}
#ezGame .wg-back strong{font-family:"Poppins",system-ui,sans-serif;font-weight:900;font-size:clamp(34px,6vw,56px);color:#5a00c2;line-height:1}
#ezGame .wg-back .wg-mini{font-size:40px}
#ezGame .wg-back em{font-style:normal;font-weight:700;color:#4b4658;font-size:17px;max-width:420px}
#ezGame .wg-end{text-align:center;padding:30px 10px}
#ezGame .wg-end h3{font-family:"Poppins",system-ui,sans-serif;font-weight:900;font-size:clamp(26px,4vw,40px);margin:0 0 8px}
#ezGame .wg-end p{font-weight:700;font-size:18px;margin:4px 0}
#ezGame .wg-score{font-family:"Poppins",system-ui,sans-serif;font-weight:900;font-size:clamp(60px,10vw,96px)!important;color:#7e10ff;line-height:1}
#ezGame .wg-rec{color:#178850;font-size:22px!important}
/* challenge */
#ezGame .wg-stage{width:min(720px,100%);margin:0 auto}
#ezGame .wg-hud{display:flex;justify-content:center;gap:22px;font-family:"Poppins",system-ui,sans-serif;font-weight:900;font-size:24px;margin-bottom:10px}
#ezGame .wg-hud .t{background:#363845;color:#fff;border-radius:12px;padding:2px 14px;min-width:70px;text-align:center}
#ezGame .wg-hud.hurry .t{background:#e73f70;animation:wgpulse 1s infinite}
#ezGame .wg-hud .s{color:#178850}#ezGame .wg-hud .x{color:#e73f70}
@keyframes wgpulse{50%{transform:scale(1.08)}}
#ezGame .wg-q{min-height:170px;display:flex;align-items:center;justify-content:center;background:#f6f1fd;border-radius:20px;padding:16px;margin-bottom:14px}
#ezGame .wg-opts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#ezGame .wg-opt{font-family:"Poppins",system-ui,sans-serif;font-weight:800;font-size:clamp(17px,2.2vw,24px);padding:14px 12px;border:3px solid #7e10ff;background:#fff;color:#25222e;border-radius:16px;cursor:pointer;touch-action:manipulation}
#ezGame .wg-opt:hover{background:#f1e8ff}
#ezGame .wg-opt kbd{font:inherit;font-size:.7em;color:#9c8bbf;background:none;padding:0;margin-right:4px}
#ezGame .wg-opt.ok{background:#178850;border-color:#178850;color:#fff}
#ezGame .wg-opt.bad{background:#fdecf1;border-color:#e73f70;color:#b8204f;animation:wgshake .35s}
@keyframes wgshake{25%,75%{transform:translateX(-5px)}50%{transform:translateX(5px)}}
/* memory */
#ezGame .wg-mem{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;width:min(760px,100%);margin:0 auto}
#ezGame .wg-mc{position:relative;aspect-ratio:4/3;border:0;border-radius:16px;padding:0;cursor:pointer;background:transparent;perspective:800px;touch-action:manipulation}
#ezGame .wg-mc-back,#ezGame .wg-mc-face{position:absolute;inset:0;border-radius:16px;display:flex;align-items:center;justify-content:center;padding:6px;backface-visibility:hidden;-webkit-backface-visibility:hidden;transition:transform .35s}
#ezGame .wg-mc-back{background:#7e10ff;color:#fff;font-family:"Poppins",system-ui,sans-serif;font-weight:900;font-size:clamp(26px,4vw,40px);box-shadow:0 5px 0 #5a00c2}
#ezGame .wg-mc-face{background:#fff;border:3px solid #7e10ff;transform:rotateY(180deg)}
#ezGame .wg-mc.open .wg-mc-back,#ezGame .wg-mc.done .wg-mc-back{transform:rotateY(180deg)}
#ezGame .wg-mc.open .wg-mc-face,#ezGame .wg-mc.done .wg-mc-face{transform:rotateY(0)}
#ezGame .wg-mc.done .wg-mc-face{background:#eaf7f0;border-color:#178850}
#ezGame .wg-mc .wg-emoji{font-size:clamp(34px,7vw,64px)}
#ezGame .wg-mc .wg-word{font-family:"Poppins",system-ui,sans-serif;font-weight:800;font-size:clamp(14px,2vw,22px);color:#5a00c2;word-break:break-word}
#ezGame .wg-mc .wg-desc{font-size:clamp(10px,1.3vw,14px)}
#ezGame.wg-full .wg-mem{width:min(1100px,100%)}
#ezGame.wg-full .wg-card{width:min(760px,100%);height:min(440px,60vh)}
@media (max-width:560px){#ezGame .wg-mem{grid-template-columns:repeat(4,1fr);gap:6px}#ezGame .wg-opts{grid-template-columns:1fr}#ezGame .wg-mc{aspect-ratio:3/4}}
@media (prefers-reduced-motion: reduce){#ezGame .wg-card-in,#ezGame .wg-mc-back,#ezGame .wg-mc-face{transition:none}}
