*{box-sizing:border-box}[hidden]{display:none!important}
body{margin:0;background:#f3efe6;color:#171717;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{color:inherit}.app{max-width:1120px;margin:auto;padding:18px 16px 30px}.top{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.top h1{font:800 clamp(30px,5vw,48px) Georgia,serif;margin:5px 0}.nav{display:flex;gap:8px;flex-wrap:wrap}.button,button{font:800 17px system-ui;padding:10px 17px;border:2px solid #222;border-radius:11px;background:#fff;color:#111;box-shadow:0 3px #222;text-decoration:none;cursor:pointer}.button:active,button:active{transform:translateY(2px);box-shadow:0 1px #222}button:disabled{opacity:.4;cursor:default;transform:none}.score{font-size:20px;font-weight:900}.panel{background:#fff;border:3px solid #222;border-radius:19px;box-shadow:0 6px #222;padding:clamp(16px,3vw,28px);margin-top:16px}.lead{text-align:center;font-size:clamp(18px,2.4vw,22px);margin:0 0 8px}.status{text-align:center;font-size:20px;font-weight:800;min-height:30px;margin:12px 0}.sequence-dots{display:flex;justify-content:center;gap:9px;min-height:22px;margin:8px 0 14px}.sequence-dots i{width:15px;height:15px;border:2px solid #777;border-radius:50%;background:#fff}.sequence-dots i.done{background:#65a765;border-color:#397439}.keyboard-wrap{background:#d8d8d8;border:2px solid #333;border-radius:15px;padding:12px;overflow:hidden}.keyboard{height:250px;position:relative;width:100%;user-select:none;touch-action:manipulation}.key{position:absolute;top:0;padding:0;box-shadow:none;transition:background .12s,filter .12s}.key.white{height:100%;background:#fff;border:2px solid #111;border-radius:0 0 7px 7px;z-index:1}.key.black{height:62%;background:#111;border:2px solid #111;border-radius:0 0 5px 5px;z-index:2}.key.start-note{background:#F9DF68}.key.correct-note{background:#65a765!important}.key.wrong-note{background:#c95b5b!important}.key.sequence-success{animation:sequenceSuccess .6s ease-in-out 3}.key-label{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);font-size:13px;font-weight:900;white-space:nowrap;pointer-events:none}.black .key-label{color:#fff;bottom:7px;font-size:11px}@keyframes sequenceSuccess{50%{background:#65a765;filter:brightness(1.22)}}.controls{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:20px}.primary{background:#F9DF68}.repeat{background:#eaf3ff}.next{background:#d9efda}.rule{text-align:center;color:#5b5b5b;margin:16px 0 0}.progress{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;max-width:720px;margin:14px auto 0}.track{height:12px;background:#e3e3e3;border-radius:99px;overflow:hidden}.fill{width:0;height:100%;background:#65a765;transition:width .25s}.mistakes{display:flex;gap:5px}.mistake{width:20px;height:20px;border:2px solid #aaa;border-radius:50%;display:grid;place-items:center;font-weight:900;color:transparent}.mistake.used{border-color:#b80000;color:#b80000}.badge-overlay{position:fixed;inset:0;z-index:1000;background:#000a;display:grid;place-items:center;padding:20px}.badge-card{width:min(500px,94vw);background:#fff8df;border:4px solid #222;border-radius:24px;box-shadow:0 18px 60px #0008;padding:28px;text-align:center}.medal{font-size:80px}.badge-card h2{font:800 36px Georgia,serif;margin:5px}.menu{max-width:850px;margin:auto;padding:36px 18px}.menu h1{text-align:center;font:800 clamp(42px,8vw,72px) Georgia,serif;margin:0}.subtitle{text-align:center;font-size:20px;color:#555}.levels{display:grid;gap:14px;margin-top:25px}.level{display:block;background:#fff;border:3px solid #222;border-radius:16px;box-shadow:0 5px #222;padding:18px 20px;text-decoration:none}.level strong{display:block;font:800 24px Georgia,serif}.level span{display:block;color:#555;margin-top:5px}.home{text-align:center;margin-top:25px}
@media(max-width:700px){.keyboard{height:170px}.keyboard-wrap{padding:7px}.key-label{font-size:10px}.top{justify-content:center;text-align:center}.top .score{width:100%}.panel{padding:14px 8px}.button,button{font-size:15px;padding:8px 12px}}
