:root{--bg:#ffffff;--surface:#f6f8fb;--surface-2:#e9eef5;--ink:#0f1320;--muted:#6c7686;--line:#d9e2ef;--brand:#0aa770;--brand-2:#33c3ff;--good:#16b369;--bad:#e64b4b;--warn:#b38a00;--radius-lg:18px;--radius-sm:10px;--shadow-card:0 32px 80px rgba(0,0,0,.07);--shadow-box:0 16px 32px rgba(0,0,0,.05);--title-lg:1.1rem;--text-md:0.95rem;--text-sm:0.8rem;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);font-family:'Inter',system-ui,Segoe UI,Roboto,Arial,sans-serif}*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:#fff0}body{background:var(--bg);color:var(--ink);min-height:100vh;display:flex;flex-direction:column;overflow-y:auto;font-family:'Inter',system-ui,Segoe UI,Roboto,Arial,sans-serif;line-height:1.4}.headerBar{flex-shrink:0;background:var(--bg);border-bottom:1px solid var(--line);padding:calc(12px + var(--safe-top)) 16px 12px;line-height:1.2;display:flex;align-items:center;justify-content:center}.brandLink{text-decoration:none;color:var(--ink);font-weight:600;font-size:1.05rem;line-height:1.2;padding:6px 14px;border-radius:12px;position:relative;background:#fff;border:1px solid var(--line);box-shadow:0 16px 32px rgb(0 0 0 / .06);background-image:radial-gradient(circle at 0% 0%,rgb(10 167 112 / .12) 0%,#fff0 60%)}.modeMenu{flex-shrink:0;background:var(--surface);border-bottom:1px solid var(--line);padding:10px 12px calc(10px + var(--safe-bottom));display:flex;flex-wrap:wrap;justify-content:center;gap:8px;box-shadow:0 12px 24px rgb(0 0 0 / .03);z-index:5}.modeBtn{border:1px solid var(--line);border-radius:var(--radius-sm);background:#fff;box-shadow:var(--shadow-box);font-size:var(--text-sm);line-height:1.2;font-weight:500;color:var(--ink);padding:10px 12px;min-width:88px;text-align:center;cursor:pointer;user-select:none;display:flex;align-items:center;justify-content:center;gap:6px}.modeBtn.active{background:linear-gradient(135deg,var(--brand) 0%,var(--brand-2) 100%);border:0;color:#fff;box-shadow:0 24px 48px rgb(0 0 0 / .16);font-weight:600}.gameAreaWrap{flex:1;display:flex;justify-content:center;align-items:center;padding:16px;padding-bottom:calc(16px + var(--safe-bottom));background:radial-gradient(circle at 20% 20%,#ffffff 0%,#f6f8fb 60%,#eef3fa 100%);background-size:100% 100%}.gamePanel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);width:100%;max-width:800px;max-height:calc(100vh - 160px);min-height:480px;display:flex;flex-direction:column;overflow:hidden;position:relative}.panelHead{flex-shrink:0;background:linear-gradient(to right,rgb(255 255 255 / .6) 0%,#fff0 60%),var(--surface);border-bottom:1px solid var(--line);padding:16px 20px;display:flex;flex-wrap:wrap;row-gap:8px;column-gap:12px;justify-content:space-between;align-items:flex-start}.panelLeft{min-width:200px}.testTitleRow{display:flex;align-items:flex-start;gap:8px;font-size:var(--title-lg);font-weight:600;line-height:1.3;color:var(--ink)}.testDesc{font-size:var(--text-sm);line-height:1.4;color:var(--muted);margin-top:4px;max-width:360px;text-wrap:balance}.panelRight{text-align:right;min-width:160px;font-size:var(--text-sm);line-height:1.4;color:var(--muted)}.statusRow{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px}.statusLabel{color:var(--muted)}.statusValue{color:var(--ink);font-weight:600}.panelBody{flex:1;min-height:0;overflow-y:auto;padding:20px;display:flex;flex-direction:column;align-items:center;gap:16px;position:relative}.liveBox{background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow-box);min-height:260px;width:100%;max-width:480px;padding:20px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:16px;position:relative}.feedbackBox{min-height:3em;text-align:center;font-size:var(--text-md);line-height:1.4;font-weight:600;max-width:480px;text-wrap:balance}.feedback-good{color:var(--good)}.feedback-bad{color:var(--bad)}.feedback-warn{color:var(--warn)}.guideText{font-size:var(--text-sm);color:var(--muted);line-height:1.4;text-align:center;max-width:480px;text-wrap:balance}.dynamicControls{width:100%;max-width:480px;display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.ctrlBtn{border:1px solid var(--line);background:#fff;color:var(--ink);font-size:var(--text-sm);font-weight:500;border-radius:var(--radius-sm);padding:12px 16px;cursor:pointer;box-shadow:var(--shadow-box);line-height:1.3;min-width:110px;text-align:center;flex:0 0 auto}.ctrlBtn.nextRound{background:linear-gradient(135deg,var(--brand) 0%,var(--brand-2) 100%);color:#fff;border:0;box-shadow:0 24px 48px rgb(0 0 0 / .16);font-weight:600}.ctrlBtn.playAgain{background:linear-gradient(135deg,#e64b4b 0%,#ff8e8e 100%);color:#fff;border:0;box-shadow:0 24px 48px rgb(0 0 0 / .16);font-weight:600}.sharpReadWrap{display:flex;flex-direction:column;align-items:center;gap:20px;user-select:none;max-width:320px}.sharpLettersBox{border:1px solid var(--line);background:#fff;border-radius:var(--radius-sm);padding:16px 20px;min-width:200px;box-shadow:0 16px 32px rgb(0 0 0 / .04)}.sharpLettersLine{font-weight:600;line-height:1.15;color:var(--ink);text-align:center;letter-spacing:2px;font-family:"Inter",system-ui,Segoe UI,Roboto,Arial,sans-serif}.sharpMetaNote{font-size:var(--text-sm);line-height:1.4;color:var(--muted);margin-top:8px;text-align:center}.sharpAnswerRow{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.sharpAnsBtn{border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px 16px;background:#fff;font-size:var(--text-sm);font-weight:500;line-height:1.3;min-width:110px;box-shadow:var(--shadow-box);cursor:pointer;user-select:none}.sharpAnsBtn.good{background:linear-gradient(135deg,var(--brand) 0%,var(--brand-2) 100%);color:#fff;border:0;box-shadow:0 24px 48px rgb(0 0 0 / .16);font-weight:600}.sharpAnsBtn.bad{background:#fff;color:var(--bad);border:1px solid var(--bad);box-shadow:0 16px 32px rgb(0 0 0 / .06);font-weight:600}.grid-3x3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;width:100%;max-width:260px;user-select:none}.cellBox{width:72px;height:72px;max-width:26vw;max-height:26vw;border-radius:var(--radius-sm);background:#d0d0d0;border:2px solid var(--line);box-shadow:0 8px 16px rgb(0 0 0 / .05);display:flex;justify-content:center;align-items:center;font-size:1rem;font-weight:600;color:var(--ink);cursor:pointer;transition:transform .12s,box-shadow .12s,background .12s}.cellBox:active{transform:scale(.95);box-shadow:0 4px 12px rgb(0 0 0 / .08)}.peripheralHolder{position:relative;width:220px;height:220px;max-width:60vw;max-height:60vw;display:flex;align-items:center;justify-content:center}.periCenter{width:14px;height:14px;border-radius:50%;background:var(--brand);position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.periFlash{width:28px;height:28px;border-radius:50%;background:var(--brand-2);position:absolute;opacity:0;transition:opacity .15s;box-shadow:0 10px 24px rgb(0 0 0 / .18)}.answerGrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;width:100%;max-width:260px;margin-top:16px}.answerBtn{border:1px solid var(--line);background:#fff;border-radius:var(--radius-sm);padding:12px 12px;text-align:center;font-size:var(--text-sm);font-weight:500;color:var(--ink);box-shadow:var(--shadow-box);cursor:pointer;user-select:none}.reactBox{width:200px;height:200px;max-width:60vw;max-height:60vw;border-radius:var(--radius-sm);background:#fff;border:2px solid var(--line);box-shadow:0 24px 48px rgb(0 0 0 / .08);display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:600;font-size:1rem;line-height:1.3;cursor:pointer;user-select:none;transition:background .1s,color .1s,border .1s,box-shadow .1s}.reactBox.waiting{background:#fff;color:var(--muted)}.reactBox.ready{background:var(--brand);background:linear-gradient(135deg,var(--brand) 0%,var(--brand-2) 100%);color:#fff;border:0;box-shadow:0 32px 64px rgb(0 0 0 / .18)}.reactMs{font-size:1.4rem;font-weight:600;margin-top:6px;color:inherit}@media(max-width:480px){.panelHead{flex-direction:column;align-items:flex-start;text-align:left}.panelRight{text-align:left}.gamePanel{max-height:none;min-height:440px}.cellBox{width:64px;height:64px}}