.tc5-math{--tc5-purple:#6c5ce7;--tc5-pink:#fd79a8;--tc5-yellow:#ffe66d;--tc5-green:#55efc4;--tc5-blue:#74b9ff;--tc5-ink:#2d3436;--tc5-muted:#68707a;font-family:Nunito,"Segoe UI",Arial,sans-serif;color:var(--tc5-ink);line-height:1.45;max-width:1180px;margin:22px auto;padding:0 12px;box-sizing:border-box}.tc5-math *{box-sizing:border-box}.tc5-shell{background:linear-gradient(160deg,#fff9f2 0%,#f8fbff 48%,#f8f2ff 100%);border:1px solid #ece8f8;border-radius:28px;box-shadow:0 18px 50px rgba(77,61,122,.12);overflow:hidden}.tc5-topbar{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;background:rgba(255,255,255,.82);border-bottom:1px solid rgba(108,92,231,.09)}.tc5-brand{display:flex;align-items:center;gap:12px}.tc5-brand-icon{font-size:38px}.tc5-kicker{font-size:12px;font-weight:800;letter-spacing:.08em;color:var(--tc5-purple);text-transform:uppercase}.tc5-brand h2{font-size:25px;line-height:1.1;margin:2px 0 0;color:#3d3565}.tc5-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.tc5-icon-btn{width:44px;height:44px;border:0;border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(67,55,110,.1);font-size:21px;cursor:pointer}.tc5-toolbar{display:flex;justify-content:space-between;gap:18px;padding:16px 24px 10px;flex-wrap:wrap}.tc5-toolbar-group{min-width:0}.tc5-toolbar-label{display:block;font-weight:800;font-size:13px;color:#6d6a7b;margin-bottom:8px}.tc5-chip-row{display:flex;gap:8px;flex-wrap:wrap}.tc5-chip{border:2px solid transparent;background:#fff;color:#4e4b5c;border-radius:999px;padding:9px 14px;font-size:14px;font-weight:800;cursor:pointer;box-shadow:0 4px 12px rgba(68,57,101,.07);transition:.2s}.tc5-chip:hover{transform:translateY(-1px)}.tc5-chip.is-active{background:#f0edff;border-color:#8e80ef;color:#5144bd}.tc5-status{display:flex;align-items:center;justify-content:space-between;padding:8px 24px 14px;gap:16px}.tc5-progress-wrap{display:flex;align-items:center;gap:10px;flex:1;max-width:560px}.tc5-progress{height:12px;background:#e8e4f2;border-radius:999px;overflow:hidden;flex:1}.tc5-progress-bar{display:block;height:100%;width:10%;border-radius:999px;background:linear-gradient(90deg,#6c5ce7,#fd79a8,#ffe66d);transition:width .35s ease}.tc5-progress-text{font-size:13px;font-weight:800;color:#6b6678;white-space:nowrap}.tc5-score{background:#fff4c8;border-radius:999px;padding:7px 13px;font-size:16px;box-shadow:0 4px 12px rgba(120,89,0,.07)}.tc5-stage{padding:4px 24px 24px}.tc5-stage-card{background:rgba(255,255,255,.9);min-height:520px;border-radius:24px;padding:26px 22px 22px;text-align:center;box-shadow:inset 0 0 0 1px rgba(90,74,131,.06),0 12px 30px rgba(61,48,93,.07);position:relative;overflow:hidden}.tc5-start-overlay{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(255,255,255,.88);backdrop-filter:blur(8px)}.tc5-start-overlay.is-hidden{display:none}.tc5-start-panel{max-width:430px;width:min(100%,430px);padding:28px 24px;border-radius:22px;background:#fff;box-shadow:0 16px 42px rgba(61,48,93,.16);border:1px solid #eee9f9}.tc5-start-emoji{font-size:54px;line-height:1}.tc5-start-panel h3{font-size:28px;line-height:1.15;margin:12px 0 8px;color:#403761}.tc5-start-panel p{font-size:17px;font-weight:800;color:#6d667a;margin:0 0 18px}.tc5-start-btn{border:0;border-radius:18px;padding:14px 24px;background:linear-gradient(135deg,#6c5ce7,#fd79a8);color:#fff;font-size:18px;font-weight:900;box-shadow:0 9px 22px rgba(108,92,231,.25);cursor:pointer}.tc5-scene-title{font-size:28px;font-weight:900;color:#403761;margin-bottom:5px}.tc5-scene-subtitle{font-size:17px;font-weight:700;color:#787082;min-height:25px}.tc5-visual{display:flex;align-items:center;justify-content:center;gap:18px;min-height:235px;padding:16px 4px;flex-wrap:wrap}.tc5-group{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;max-width:420px;padding:14px;border-radius:22px}.tc5-group.tc5-start{background:#f4f0ff}.tc5-group.tc5-change{background:#fff2f7}.tc5-group.tc5-result{background:#edfff8}.tc5-symbol{font-size:46px;font-weight:900;color:#6659d8}.tc5-object{width:66px;height:66px;display:flex;align-items:center;justify-content:center;filter:drop-shadow(0 5px 4px rgba(53,49,78,.12));transition:transform .25s ease,opacity .25s ease}.tc5-object svg{width:100%;height:100%;display:block}.tc5-object.tc5-pop{animation:tc5Pop .72s ease both}.tc5-object.tc5-leave{animation:tc5Leave 1.35s ease-in-out both}.tc5-object.tc5-arrive{animation:tc5Arrive 1.25s ease-in-out both}.tc5-question{font-size:26px;font-weight:900;color:#3f3862;margin:2px 0 16px}.tc5-equation-big{display:inline-flex;align-items:center;gap:8px;padding:7px 16px;border-radius:16px;background:#fff8da;font-size:31px}.tc5-answers{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;min-height:72px}.tc5-answer{min-width:84px;border:0;border-radius:18px;padding:14px 19px;background:#fff;box-shadow:0 8px 20px rgba(73,57,114,.12);font-size:25px;font-weight:900;color:#4d426f;cursor:pointer;border:2px solid #eee9f9;transition:.2s}.tc5-answer:hover{transform:translateY(-2px);border-color:#c6bdf5}.tc5-answer.is-correct{background:#dcfff1;border-color:#49d99f;color:#16734f}.tc5-answer.is-wrong{background:#fff0f2;border-color:#ff9eae;color:#a53a4d;animation:tc5Shake .28s ease}.tc5-feedback{min-height:42px;margin-top:12px;font-size:18px;font-weight:800}.tc5-feedback.good{color:#15845a}.tc5-feedback.try{color:#b35a6c}.tc5-next-wrap{margin-top:4px;min-height:54px}.tc5-next-btn{display:none;border:0;border-radius:18px;padding:13px 22px;background:linear-gradient(135deg,#6c5ce7,#8b7cf1);color:#fff;font-size:17px;font-weight:900;box-shadow:0 8px 20px rgba(108,92,231,.26);cursor:pointer}.tc5-next-btn.show{display:inline-flex;align-items:center;gap:8px}.tc5-footer-note{text-align:center;padding:0 20px 20px;color:#7b7587;font-weight:800;font-size:13px}.tc5-drag-layout{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;width:100%;max-width:900px}.tc5-dropzone,.tc5-sourcezone{min-height:180px;border:3px dashed #cfc7ee;border-radius:24px;background:#faf8ff;padding:14px;display:flex;align-content:center;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;position:relative}.tc5-sourcezone{border-color:#ffd0df;background:#fff7fa}.tc5-dropzone.tc5-over,.tc5-sourcezone.tc5-over{background:#eefcf8;border-color:#58d7ae}.tc5-zone-label{width:100%;font-size:14px;font-weight:900;color:#746e82}.tc5-draggable{cursor:grab;touch-action:none;user-select:none}.tc5-draggable:active{cursor:grabbing}.tc5-drag-ghost{position:fixed;z-index:999999;pointer-events:none;width:72px;height:72px;opacity:.88;transform:translate(-50%,-50%) scale(1.07)}.tc5-action-count{font-size:16px;font-weight:900;color:#695e8e;margin-top:5px}.tc5-summary{padding:10px 4px 4px}.tc5-summary-emoji{font-size:64px}.tc5-summary h3{font-size:31px;margin:8px 0;color:#443a67}.tc5-summary p{font-size:18px;color:#686175}.tc5-summary-score{font-size:44px;font-weight:900;color:#6c5ce7;margin:14px 0}.tc5-summary .tc5-next-btn{display:inline-flex}.tc5-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}.tc5-confetti i{position:absolute;top:-20px;width:10px;height:18px;border-radius:4px;animation:tc5Fall 1.4s ease-out forwards}.tc5-math button:focus-visible{outline:3px solid #2f80ed;outline-offset:3px}@keyframes tc5Pop{0%{transform:scale(.2);opacity:0}70%{transform:scale(1.15)}100%{transform:scale(1);opacity:1}}@keyframes tc5Arrive{0%{transform:translateX(110px) scale(.55);opacity:0}100%{transform:translateX(0) scale(1);opacity:1}}@keyframes tc5Leave{0%{transform:translateX(0) scale(1);opacity:1}100%{transform:translateX(115px) translateY(-45px) scale(.55);opacity:0}}@keyframes tc5Shake{0%,100%{transform:translateX(0)}30%{transform:translateX(-7px)}70%{transform:translateX(7px)}}@keyframes tc5Fall{to{transform:translateY(600px) rotate(560deg);opacity:.2}}@media(max-width:820px){.tc5-toolbar{display:block}.tc5-range-group{margin-top:13px}.tc5-stage-card{min-height:500px}.tc5-object{width:58px;height:58px}.tc5-drag-layout{grid-template-columns:1fr}.tc5-drag-layout .tc5-symbol{transform:rotate(90deg);font-size:34px}.tc5-dropzone,.tc5-sourcezone{min-height:135px}.tc5-scene-title{font-size:24px}.tc5-question{font-size:23px}}@media(max-width:560px){.tc5-icon-btn{width:38px;height:38px;border-radius:12px;font-size:18px}.tc5-actions{gap:6px}.tc5-math{padding:0;margin:8px auto}.tc5-shell{border-radius:20px}.tc5-topbar{padding:14px}.tc5-brand-icon{font-size:30px}.tc5-brand h2{font-size:20px}.tc5-toolbar,.tc5-status{padding-left:14px;padding-right:14px}.tc5-chip{padding:8px 11px;font-size:13px}.tc5-stage{padding:2px 10px 14px}.tc5-stage-card{border-radius:19px;padding:20px 10px;min-height:510px}.tc5-visual{gap:10px;min-height:225px}.tc5-group{gap:6px;padding:10px;max-width:100%}.tc5-object{width:52px;height:52px}.tc5-symbol{font-size:36px}.tc5-question{font-size:21px}.tc5-answer{min-width:74px;font-size:23px;padding:12px 15px}.tc5-progress-text{display:none}.tc5-dropzone,.tc5-sourcezone{min-height:120px}.tc5-zone-label{font-size:13px}.tc5-start-panel{padding:24px 18px}.tc5-start-panel h3{font-size:24px}.tc5-start-panel p{font-size:16px}.tc5-start-btn{width:100%;font-size:17px}}
.tc5-exit-fullscreen-btn{display:none}.tc5-math.is-fullscreen,.tc5-math:fullscreen{position:fixed;inset:0;z-index:999999;max-width:none;width:100vw;height:100vh;margin:0;padding:0;background:#f8fbff;overflow:auto}.tc5-math:fullscreen{position:static}.tc5-math.is-fullscreen .tc5-shell,.tc5-math:fullscreen .tc5-shell{min-height:100vh;border:0;border-radius:0;box-shadow:none}.tc5-math.is-fullscreen .tc5-topbar,.tc5-math:fullscreen .tc5-topbar{position:sticky;top:0;z-index:40}.tc5-math.is-fullscreen .tc5-fullscreen-btn,.tc5-math:fullscreen .tc5-fullscreen-btn{display:none}.tc5-math.is-fullscreen .tc5-exit-fullscreen-btn,.tc5-math:fullscreen .tc5-exit-fullscreen-btn{display:inline-flex;align-items:center;justify-content:center;font-size:28px;line-height:1}.tc5-math.is-fullscreen .tc5-stage,.tc5-math:fullscreen .tc5-stage{padding-bottom:22px}.tc5-math.is-fullscreen .tc5-stage-card,.tc5-math:fullscreen .tc5-stage-card{min-height:calc(100vh - 240px);border-radius:22px}.tc5-fullscreen-active{overflow:hidden}@media(max-width:820px){.tc5-math.is-fullscreen .tc5-stage-card,.tc5-math:fullscreen .tc5-stage-card{min-height:calc(100vh - 230px)}}@media(max-width:560px){.tc5-math.is-fullscreen .tc5-shell,.tc5-math:fullscreen .tc5-shell{border-radius:0}.tc5-math.is-fullscreen .tc5-stage-card,.tc5-math:fullscreen .tc5-stage-card{min-height:calc(100vh - 214px);border-radius:18px}}
