.ag-game-echo-matrix [hidden]{display:none!important}.ag-game-echo-matrix .ag-board{align-items:stretch}.ag-game-echo-matrix .ec-run{scroll-margin-top:var(--ec-under-header,92px);flex-direction:column;align-items:center;gap:8px;display:flex}.ag-game-echo-matrix .ec-phase{font-variant-numeric:tabular-nums;text-align:center;min-height:1.3em;color:var(--ink);margin:0;font-size:.98rem;font-weight:800}.ag-game-echo-matrix .ec-grid{aspect-ratio:1;width:min(100%,clamp(150px,calc(100dvh - var(--ec-under-header,92px) - 300px),340px));grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.ag-game-echo-matrix .ec-cell{border:1px solid var(--line);background:var(--panel-soft);border-radius:12px;transition:background-color .12s,border-color .12s,box-shadow .12s;position:relative}.ag-game-echo-matrix .ec-cell.is-lit{background:var(--accent);border-color:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 30%,transparent)}.ag-game-echo-matrix .ec-cell.is-lit:after{content:"";background:var(--bg);border-radius:50%;width:26%;height:26%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ag-game-echo-matrix .ec-hint{min-height:1.2em;color:var(--muted);text-align:center;margin:0;font-size:.86rem;line-height:1.4}.ag-game-echo-matrix .ec-hint.is-feedback{color:var(--ink);font-weight:800}.ag-game-echo-matrix .ec-sr{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.ag-game-echo-matrix .ec-answers{touch-action:none;-webkit-user-select:none;user-select:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:min(100%,360px);display:grid}.ag-game-echo-matrix .ec-answer{border:1px solid var(--line);background:var(--panel);min-height:50px;color:var(--ink);font:inherit;cursor:pointer;touch-action:manipulation;border-radius:12px;justify-content:center;align-items:center;padding:8px 10px;font-size:.95rem;font-weight:800;display:flex;position:relative}.ag-game-echo-matrix .ec-answer.is-chosen{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 24%,var(--panel))}.ag-game-echo-matrix .ec-answer.is-wrong{border-style:dashed;border-width:2px;border-color:var(--ink)}@keyframes ec-shake{20%{transform:translate(-6px)}40%{transform:translate(6px)}60%{transform:translate(-4px)}80%{transform:translate(2px)}}.ag-game-echo-matrix .ec-answer.is-shake{animation:.34s ease-in-out ec-shake}.ag-game-echo-matrix .ec-answer:hover{border-color:color-mix(in srgb,var(--accent) 55%,var(--line))}.ag-game-echo-matrix .ec-answer:active{background:color-mix(in srgb,var(--accent) 18%,var(--panel))}.ag-game-echo-matrix .ec-run.is-warmup .ec-answer{color:var(--muted)}.ag-game-echo-matrix .ec-key{font:inherit;color:var(--muted);background:0 0;border:0;padding:0 4px;font-size:.8125rem;position:absolute;top:4px;right:6px}.ag-game-echo-matrix .ec-answer:focus-visible,.ag-game-echo-matrix .ec-tone:focus-visible,.ag-game-echo-matrix .ec-sound-ok:focus-within{outline:2px solid var(--accent);outline-offset:2px}.ag-game-echo-matrix .ec-ready{text-align:center;justify-items:center;gap:8px;max-width:520px;margin:0 auto;display:grid}.ag-game-echo-matrix .ec-ready-level{color:var(--ink);margin:0;font-weight:800}.ag-game-echo-matrix .ec-ready-best,.ag-game-echo-matrix .ec-ready-text,.ag-game-echo-matrix .ec-sound-text{color:var(--muted);margin:0;font-size:.9rem;line-height:1.45}.ag-game-echo-matrix .ec-sound{border:1px solid var(--line);background:var(--panel-soft);border-radius:12px;width:100%;margin:2px 0;padding:10px 12px}.ag-game-echo-matrix .ec-sound legend{color:var(--ink);padding:0 6px;font-weight:800}.ag-game-echo-matrix .ec-tones{grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;margin:8px 0;display:grid}.ag-game-echo-matrix .ec-tone{border:1px solid var(--line);background:var(--panel);min-height:44px;color:var(--ink);font:inherit;cursor:pointer;touch-action:manipulation;border-radius:10px;font-weight:800}.ag-game-echo-matrix .ec-tone:active{background:var(--panel-soft)}.ag-game-echo-matrix .ec-tone:disabled,.ag-game-echo-matrix .ec-sound-ok input:disabled{opacity:.45;cursor:default}.ag-game-echo-matrix .ec-sound-ok{min-height:44px;color:var(--ink);cursor:pointer;justify-content:center;align-items:center;gap:8px;font-weight:700;display:flex}.ag-game-echo-matrix .ec-sound-ok input{-webkit-appearance:none;appearance:none;cursor:pointer;background:0 0;border:0;flex:none;place-items:center;width:44px;height:44px;margin:0;padding:0;display:grid}.ag-game-echo-matrix .ec-sound-ok input:before{content:"";border:2px solid var(--muted);background:var(--panel);width:22px;height:22px;color:var(--bg);border-radius:6px;place-items:center;font-size:16px;font-weight:900;line-height:1;display:grid}.ag-game-echo-matrix .ec-sound-ok input:checked:before{content:"✓";border-color:var(--accent);background:var(--accent)}.ag-game-echo-matrix .ec-start{min-height:48px}.ag-game-echo-matrix .ec-start:disabled{opacity:.45;cursor:default}.ag-game-echo-matrix .ec-note{color:var(--muted);margin:0;font-size:.88rem;line-height:1.4}.ag-game-echo-matrix .ec-note.is-error{color:var(--ink);font-weight:800}@media (width<=480px){.ag-game-echo-matrix .ec-tones{grid-template-columns:repeat(4,minmax(0,1fr))}.ag-game-echo-matrix .ec-answer{min-height:46px}.ag-game-echo-matrix .ec-ready-text{font-size:.84rem}}@media (height<=700px){.ag-game-echo-matrix .ec-phase{font-size:.92rem}.ag-game-echo-matrix .ec-answer{min-height:44px}.ag-game-echo-matrix .ec-sound{padding:8px 10px}}@media (height<=700px) and (width>=701px){.ag-game-echo-matrix .ec-tone{min-height:38px}.ag-game-echo-matrix .ec-sound-ok{min-height:36px}.ag-game-echo-matrix .ec-sound-ok input{width:36px;height:36px}.ag-game-echo-matrix .ec-grid{width:min(100%,clamp(150px,calc(100dvh - var(--ec-under-header,92px) - 360px),340px))}}@media (prefers-reduced-motion:reduce){.ag-game-echo-matrix .ec-cell{transition:none}.ag-game-echo-matrix .ec-answer.is-shake{animation:none}}
