*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top,#262447,#111322 70%);color:#faf9ff;font-family:system-ui,Arial,sans-serif;min-height:100vh}button{cursor:pointer}.screen{max-width:700px;margin:0 auto;padding:18px}.top{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.top h1{font-size:19px;margin:0}.score{background:#342f59;padding:8px 14px;border-radius:30px;color:#e1d5ff;font-weight:800}.game-area{background:#1f2240;border:1px solid #49446b;border-radius:22px;min-height:300px;padding:25px;position:relative;overflow:hidden}.controls{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:16px}.controls button,.start,.choice{border:0;background:#7756f0;color:white;padding:13px 19px;border-radius:12px;font-weight:800}.start{margin:16px auto;display:block}.muted{color:#9ca1c5;font-size:13px;text-align:center;line-height:1.5}.memory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;max-width:460px;margin:auto}.memory-card{height:82px;border:1px solid #8074bd;background:#423762;border-radius:14px;font-size:35px;transition:.1s}.memory-card.revealed{background:#d5ccff;color:#17132d}.tictac{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:320px;margin:0 auto}.tictac button{height:90px;font-size:55px;font-weight:900;background:#343453;border:1px solid #605a82;border-radius:13px;color:#fc81b8}.tictac button:nth-child(even){color:#8ce4ff}canvas{width:min(420px,95%);height:auto;display:block;margin:auto;border-radius:14px;background:#0f182e;image-rendering:pixelated}.tap-dot{width:80px;height:80px;border-radius:50%;position:absolute;border:7px solid #fff8;background:linear-gradient(150deg,#ffaf56,#e34496);box-shadow:0 0 30px #ff5b8c99;display:none}.color-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;max-width:470px;margin:20px auto}.color-tile{min-height:88px;border-radius:18px;border:4px solid #ffffff4a}.prompt{text-align:center;font-size:26px;font-weight:900;margin:24px 0}.math-question{text-align:center;font-size:66px;font-weight:900;padding:30px 10px;color:#ffce6b}.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;max-width:420px;margin:auto}.answer-grid button{padding:20px;border:0;border-radius:13px;background:#493b84;color:white;font-size:24px;font-weight:800}.result{font-weight:800;text-align:center;font-size:17px;margin:15px}.mobile-arrows{display:grid;grid-template-columns:repeat(3,55px);gap:5px;justify-content:center;margin-top:10px}.mobile-arrows button{background:#343354;color:white;border:0;border-radius:9px;height:40px}.mobile-arrows button:nth-child(1){grid-column:2}.mobile-arrows button:nth-child(2){grid-column:1;grid-row:2}.mobile-arrows button:nth-child(3){grid-column:3;grid-row:2}.mobile-arrows button:nth-child(4){grid-column:2;grid-row:2}
