:root{--ink:#25302b;--muted:#758078;--paper:#fff8e7;--card:#fff;--green:#42aa7b;--yellow:#ffd166;--red:#ed6a5a;--line:#e8dfc8}
*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{background:var(--paper);color:var(--ink);font-family:ui-rounded,"SF Pro Rounded",system-ui,sans-serif;-webkit-font-smoothing:antialiased}
button,input{font:inherit}button{border:0;cursor:pointer;color:inherit}.hidden{display:none!important}.screen{max-width:460px;min-height:100dvh;margin:auto;padding:calc(24px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:24px}.screen main{flex:1}.middle{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:16px}
header{display:flex;align-items:center;justify-content:space-between;gap:18px}header a{color:var(--muted);text-decoration:none;font-weight:700}.logo{font-weight:900;font-size:22px}.logo span{color:var(--green)}h1{font-size:34px;line-height:1.08;margin:4px 0 24px;letter-spacing:-1px}.eyebrow{text-transform:uppercase;letter-spacing:1.4px;font-weight:800;font-size:12px;color:var(--green);margin:0}.space{margin-top:30px}.muted{color:var(--muted)}
.table-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.table-grid button,.choice button{height:56px;border-radius:16px;background:var(--card);box-shadow:0 3px 0 var(--line);font-weight:900;font-size:19px}.table-grid button.selected,.choice button.selected{background:var(--yellow);box-shadow:0 3px 0 #dfad31;transform:translateY(-1px)}.actions{display:flex;gap:18px;justify-content:center;margin-top:16px}.choice{display:grid;grid-template-columns:1fr 1fr;gap:12px}.secondary{background:transparent;color:var(--muted);font-weight:800;padding:10px 16px}.full{width:100%;height:52px;border:2px solid var(--line);border-radius:16px}.primary{width:100%;height:64px;border-radius:20px;background:var(--green);color:white;font-size:18px;font-weight:900;box-shadow:0 5px 0 #25855a}.primary:disabled{opacity:.45}.history{margin-top:28px;background:#fff3cc;border-radius:18px;padding:16px;text-align:center;color:#7c681f;font-weight:700}
.close{width:44px;height:44px;border-radius:50%;background:var(--card);font-size:30px;color:var(--muted)}header>div:first-child{flex:1}#step{font-size:13px;color:var(--muted);font-weight:800}.progress{height:9px;background:var(--line);border-radius:99px;margin-top:8px;overflow:hidden}.progress i{display:block;height:100%;width:0;background:var(--green);border-radius:99px;transition:width .35s}.game-main{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:28px}.mascot{width:72px;height:72px;border-radius:28px;background:var(--yellow);display:grid;place-items:center;font-size:38px;transform:rotate(-5deg)}.operation{font-size:72px;font-weight:950;letter-spacing:-4px}.listen{display:flex;align-items:center;gap:5px;min-height:40px;color:var(--green);font-weight:800}.listen i{display:block;width:5px;height:12px;background:var(--green);border-radius:5px}.listen i:nth-child(2),.listen i:nth-child(4){height:26px}.listen i:nth-child(3){height:36px}.listen.live i{animation:wave .65s ease-in-out infinite alternate}.listen i:nth-child(2){animation-delay:.1s}.listen i:nth-child(3){animation-delay:.2s}.listen span{margin-left:10px}@keyframes wave{to{transform:scaleY(.3)}}.feedback{padding:14px 22px;border-radius:18px;background:#dff5e9;color:#20754e;font-weight:900;font-size:18px;text-align:center}.feedback.wrong{background:#ffe2dc;color:#a83e32}
.trophy{width:100px;height:100px;border-radius:40px;background:var(--yellow);display:grid;place-items:center;font-size:58px;color:white;box-shadow:0 7px 0 #dfad31}.summary h1{font-size:48px;margin:0}.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%}.stats div{background:white;border-radius:18px;padding:18px;display:flex;flex-direction:column}.stats b{font-size:28px;color:var(--green)}.stats span{font-size:13px;color:var(--muted);font-weight:700}.stack{display:flex;flex-direction:column;gap:10px}#login{display:flex;gap:8px;width:100%}#login input{min-width:0;flex:1;border:2px solid var(--line);border-radius:14px;padding:14px;background:white}#login button{border-radius:14px;padding:0 18px;background:var(--green);color:#fff;font-weight:800}
@media(max-width:360px){.operation{font-size:60px}.table-grid{gap:7px}.table-grid button{height:50px}}
