:root{--mf-primary:#0F766E;--mf-primary-hover:#115E59;--mf-primary-light:#ECFDF5;--bg:#faf8f4;--surface:#ffffff;--border:#E5E7EB;--text:#222;--muted:#666;--primary:var(--mf-primary);--shadow:0 4px 12px rgba(0,0,0,.08)}*{box-sizing:border-box}body{margin:0;background:var(--mf-background,var(--bg));font-family:Inter,system-ui,sans-serif;color:var(--text)}.game-shell{width:100%;max-width:960px;margin:0 auto;padding:1.5rem 1rem}.countdown-game{display:flex;flex-direction:column;gap:10px;position:relative}.target-section{display:flex;justify-content:center;align-items:center;width:100%;margin-bottom:24px}.target-card-inline{display:inline-flex;align-items:center;justify-content:center;min-width:190px;min-height:84px;padding:12px 32px;background:white;border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);gap:16px}.target-tag{font-family:Inter,system-ui,sans-serif;font-size:13px;font-weight:700;letter-spacing:0.12em;color:var(--muted);padding-right:16px;border-right:1px solid var(--border);line-height:1;user-select:none}.target-number{font-size:40px;font-weight:700;color:var(--text);line-height:1}.card-row{display:flex;justify-content:center;flex-wrap:nowrap;gap:8px;width:100%}.card{width:calc((100% - 5 * 12px) / 6);aspect-ratio:1;height:auto;font-size:26px;font-weight:600;display:flex;justify-content:center;align-items:center;background:#ffffff;border:1.5px solid var(--border);border-radius:14px;box-shadow:var(--shadow);color:var(--text);cursor:pointer;user-select:none;touch-action:none;transition:transform 0.15s ease,background-color 0.15s ease,border-color 0.15s ease,box-shadow 0.15s ease}.card.number{border-color:var(--border);background:#ffffff}.card.operator{width:calc((100% - 24px) / 4);height:60px;font-size:28px;border:1.5px solid var(--mf-primary);color:var(--mf-primary);background:#ffffff}.card.number:hover,.card.operator:hover{background:var(--mf-primary-light);border-color:var(--mf-primary);transform:translateY(-2px);box-shadow:0 4px 12px rgba(15,118,110,0.12)}.card.number.selected,.card.operator.selected{background:var(--mf-primary-light) !important;border-color:var(--mf-primary) !important;color:var(--mf-primary) !important;box-shadow:0 0 0 2px rgba(15,118,110,0.25)}.target-reached{border:3px solid var(--mf-primary) !important;box-shadow:0 0 24px rgba(15,118,110,0.25) !important}.numbers-section{margin-bottom:26px}.operators-section{margin-bottom:26px}.result{width:calc((100% - 5 * 8px) / 3);aspect-ratio:1.85 / 1;max-width:none;padding:0 12px;display:flex;justify-content:center;align-items:center;font-size:20px;font-weight:600;white-space:normal;overflow:hidden;overflow-wrap:anywhere;word-break:normal;text-align:center;line-height:1.15;flex:0 0 auto}.work-label{font-family:var(--mf-font-heading,Inter,sans-serif);font-size:20px;font-weight:700;letter-spacing:.03em;color:var(--mf-heading,var(--text))}.work-stack{display:flex;flex-direction:column;gap:8px;max-height:520px;overflow-y:auto;padding-right:6px}.work-card{min-height:44px;padding:10px 16px;background:white;border:1px solid var(--border);border-radius:10px;display:flex;align-items:center;justify-content:space-between;font-size:16px;font-weight:500;box-shadow:0 2px 6px rgba(0,0,0,.04);width:100%}.work-current{border:2px solid var(--mf-primary);font-weight:600}.work-card.work-step{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;min-height:48px}.work-step-num{font-size:15px;font-weight:700;color:var(--muted);min-width:24px;flex-shrink:0;user-select:none}.work-text{flex:1;font-size:16px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.work-delete{flex:0 0 34px;width:34px;height:34px;padding:0;border:none;background:transparent;border-radius:8px;display:flex !important;align-items:center;justify-content:center;cursor:pointer;color:#9CA3AF;transition:all .18s ease;flex-shrink:0;margin-left:auto}.work-delete svg{width:18px;height:18px}.work-delete:hover{background:var(--mf-primary-light);color:var(--mf-primary)}.work-delete:active{transform:scale(.94)}.controls-section{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:12px;gap:12px}.controls-section .mf-btn{flex:1 1 0;min-width:0;height:48px}.controls-section .mf-checkbox{flex:1.2 1 0;display:inline-flex;align-items:center;justify-content:center;gap:10px;margin:0;cursor:pointer;user-select:none}.mf-checkbox-label{font-size:15px;font-weight:600;color:var(--text) !important;line-height:1}.game-layout{display:flex;gap:48px;align-items:flex-start}.game-panel{flex:1;display:flex;flex-direction:column;gap:12px}.play-area{flex:1;min-width:0;position:relative}.work-panel{width:360px;flex-shrink:0;display:flex;flex-direction:column;gap:16px;position:sticky;top:24px}.drag-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible !important;z-index:20}#segment1,#segment2{stroke:var(--mf-primary);stroke-width:5;stroke-linecap:round;fill:none;display:none}.mf-game-completed .number,.mf-game-completed .operator{opacity:0.55;cursor:default;pointer-events:none}.mf-game-completed button:disabled{opacity:0.55;cursor:default}.cognitive-badge{font-size:11px;font-weight:700;font-family:monospace;padding:2px 6px;border-radius:4px;background:#F3F4F6;color:#4B5563;border:1px solid #E5E7EB;cursor:help;user-select:none}.mf-badge-anchor_op{background:#ECFDF5;color:#0F766E;border-color:#A7F3D0}.mf-badge-block_op{background:#EFF6FF;color:#1D4ED8;border-color:#BFDBFE}.mf-badge-convergence_op{background:#FFF7ED;color:#C2410C;border-color:#FED7AA}@media (max-width:700px){.card{flex:1 1 0;min-width:0;aspect-ratio:1;height:auto;font-size:24px}.operator{width:62px;height:56px}.game-layout{flex-direction:column}.game-panel,.work-panel{width:100%}.controls-section .mf-btn{width:64px;height:48px;padding:0;border-radius:12px;flex:0 0 64px}.controls-section .mf-btn span{display:none}.result{width:auto;flex:1 1 0;aspect-ratio:auto;height:76px;padding:4px 8px;line-height:1.15}}