/* 99 Club Studio · Online Play Wave 4 arithmetic UI */
.tt99-play-arithmetic{width:min(100%,680px);display:grid;gap:14px;justify-items:stretch}.tt99-arith-task-tabs{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.tt99-arith-task-tabs button{appearance:none;border:1px solid #c9dadc;background:#f8fbfb;color:#49656a;border-radius:12px;padding:8px 12px;display:flex;align-items:center;gap:7px;font:inherit;cursor:pointer}.tt99-arith-task-tabs button span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e8f1f1;font-size:.72rem;font-weight:900}.tt99-arith-task-tabs button strong{font-size:.92rem}.tt99-arith-task-tabs button.is-current{border-color:#147d75;background:#edf8f6;color:#0f625c;box-shadow:0 0 0 2px rgba(20,125,117,.09)}.tt99-arith-task-tabs button.is-solved{border-color:#98cdb3;background:#eff9f2;color:#246b4f}.tt99-arith-note{margin:0;text-align:center;color:#687c80;font-size:.82rem;line-height:1.45}
.tt99-calc-shell{width:min(100%,430px);margin:auto;border:1px solid #cfdddf;border-radius:24px;background:#eef4f4;padding:16px;box-shadow:0 12px 30px rgba(35,72,79,.10)}.tt99-calc-target{display:flex;justify-content:space-between;align-items:end;padding:0 4px 10px}.tt99-calc-target small{color:#6f8387;font-weight:800}.tt99-calc-target strong{font-size:1.9rem;color:#163f43}.tt99-calc-display{min-height:78px;border-radius:14px;background:#173a3e;color:#e9fffb;padding:12px 14px;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;overflow:hidden}.tt99-calc-display span{max-width:100%;font-size:.88rem;opacity:.78;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tt99-calc-display strong{font-size:1.45rem;margin-top:4px}.tt99-calc-pad{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:12px}.tt99-calc-pad button{min-height:58px;border:1px solid #c4d4d6;border-radius:14px;background:#fff;color:#284c50;font:850 1.1rem/1 system-ui;box-shadow:0 2px 5px rgba(38,71,77,.07)}.tt99-calc-pad button.is-working:active{transform:translateY(1px);background:#eaf7f4}.tt99-calc-pad button.is-broken{background:#e5eaea;color:#a4b0b2;border-style:dashed;box-shadow:none}.tt99-calc-pad button.is-broken span{text-decoration:line-through}.tt99-calc-pad button.is-broken small{display:block;font-size:.48rem;text-transform:uppercase;letter-spacing:.05em;margin-top:4px}.tt99-calc-pad button.utility{background:#f6faf9}.tt99-calc-pad button.equals{background:#147d75;color:#fff;border-color:#147d75}
.tt99-target-card{width:min(100%,570px);margin:auto;border:1px solid #d0dfe0;border-radius:22px;background:#fbfdfd;padding:16px;display:grid;gap:14px}.tt99-target-goal{text-align:center}.tt99-target-goal small{display:block;color:#71868a;font-weight:850;text-transform:uppercase;letter-spacing:.08em}.tt99-target-goal strong{font-size:clamp(2.3rem,11vw,4rem);line-height:1;color:#17494d}.tt99-target-expression{min-height:72px;border:1px solid #cddcde;border-radius:14px;background:#f2f7f7;padding:12px;text-align:center;display:grid;place-items:center}.tt99-target-expression span{font-size:1.05rem;font-weight:800;color:#395d62;overflow-wrap:anywhere}.tt99-target-expression strong{color:#147d75}.tt99-target-numbers{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}.tt99-target-numbers button{width:62px;height:62px;border:2px solid #4e777b;border-radius:16px;background:#fff;color:#214d51;font:950 1.35rem/1 system-ui;box-shadow:0 4px 9px rgba(39,75,81,.08)}.tt99-target-numbers button.is-used{opacity:.25;box-shadow:none}.tt99-target-ops{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.tt99-target-ops button{min-width:49px;height:46px;border:1px solid #bfd2d4;border-radius:12px;background:#eaf5f3;color:#174f4d;font:900 1.1rem/1 system-ui}.tt99-target-actions{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:8px}.tt99-target-actions button{min-height:46px;border:1px solid #c6d8da;border-radius:12px;background:#fff;color:#2f5559;font:800 .85rem/1 system-ui}.tt99-target-actions .tt99-primary{background:#147d75;color:#fff;border-color:#147d75}
.tt99-opgrid-key{display:flex;justify-content:space-between;gap:10px;align-items:center;border:1px solid #d2dfe1;background:#f5f9f9;border-radius:14px;padding:9px 12px;color:#607579}.tt99-opgrid-key small{font-weight:800}.tt99-opgrid-key span{font-weight:900;color:#31575b}.tt99-opgrid-rows{display:grid;gap:9px}.tt99-oprow{display:flex;align-items:center;justify-content:center;gap:7px;min-height:58px;border:1px solid #d2dfe1;border-radius:15px;background:#fff;padding:9px 10px;color:#274c50;transition:.15s ease}.tt99-oprow strong{font-size:1.03rem}.tt99-oprow>span{font-weight:850}.tt99-oprow button{width:46px;height:42px;border:2px solid #9cb9bc;border-radius:10px;background:#f7fbfb;color:#214e52;font:950 1.1rem/1 system-ui}.tt99-oprow button.is-filled{background:#e9f6f3;border-color:#4a968e}.tt99-oprow em{width:20px;font-style:normal;font-weight:950;color:#298057}.tt99-oprow.is-correct{background:#eff9f2;border-color:#94c9aa}.tt99-oprow.is-wrong{background:#fff3ef;border-color:#d99d87}.tt99-oprow.is-wrong em{color:#a7543d}.tt99-oprow.is-hint{box-shadow:0 0 0 3px rgba(216,168,62,.23);border-color:#d7ad54}.tt99-opgrid-code{display:flex;align-items:center;justify-content:center;gap:12px;border-radius:14px;background:#183d41;color:#fff;padding:12px}.tt99-opgrid-code small{text-transform:uppercase;letter-spacing:.08em;opacity:.7;font-weight:800}.tt99-opgrid-code strong{font-size:1.2rem;letter-spacing:.12em}
.tt99-play-complete-snapshot .tt99-calc-pad,.tt99-play-complete-snapshot .tt99-target-numbers,.tt99-play-complete-snapshot .tt99-target-ops,.tt99-play-complete-snapshot .tt99-target-actions,.tt99-play-complete-snapshot .tt99-opgrid-key{display:none!important}.tt99-play-complete-snapshot .tt99-target-card{padding:12px}.tt99-play-complete-snapshot .tt99-arith-note{display:none}
@media(max-width:520px){.tt99-calc-shell{padding:12px;border-radius:18px}.tt99-calc-pad{gap:7px}.tt99-calc-pad button{min-height:52px;border-radius:12px}.tt99-target-card{padding:12px}.tt99-target-numbers button{width:56px;height:56px}.tt99-target-actions{grid-template-columns:1fr 1fr}.tt99-target-actions .tt99-primary{grid-column:1/-1}.tt99-oprow{gap:5px;padding:8px 5px}.tt99-oprow button{width:42px}.tt99-opgrid-key{align-items:flex-start;flex-direction:column}}
