/* sci-balance（重さ・てこ）。支点＝みどり・力点＝オレンジ・作用点＝むらさき（S-043）、正かい＝みどり・ちがう＝赤。字は 16px 以上 */
.bl { font-size: 1.05rem; }
.bl [hidden] { display: none !important; }
.bl-q { background: #fff8e6; border: 2px solid var(--orange, #f59e0b); border-radius: 12px; padding: 8px 12px 10px; margin-bottom: 8px; }
.bl-ask { font-weight: 700; margin: 0 0 6px; font-size: 1.1rem; }
.bl-gb { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-b { min-height: 50px; min-width: 50px; padding: 4px 16px; border: 2px solid var(--ink, #1f2937); background: #fff; border-radius: 12px; font-weight: 700; font-size: 1.05rem; color: var(--ink, #1f2937); cursor: pointer; font-family: inherit; }
.bl-b:disabled { opacity: .45; cursor: default; }
.bl-g[aria-pressed="true"] { opacity: 1; background: #eaf1ff; border-color: #2563eb; }
.bl-g.right { opacity: 1; background: var(--teal-l, #e8f8f4); border-color: var(--teal-d, #0f8a72); }
.bl-g.right::before { content: "○ "; color: var(--teal-d, #0f8a72); }
.bl-g.wrong { opacity: 1; border-color: #dc2626; }
.bl-g.wrong::before { content: "× "; color: #dc2626; }
.bl-fig { position: relative; max-width: 560px; margin: 4px auto; }
.bl-svg { width: 100%; height: auto; display: block; user-select: none; -webkit-user-select: none; touch-action: manipulation; border-radius: 14px; background: radial-gradient(ellipse at 50% 30%, #fbfdff 0%, #eef3f8 100%); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.bl-info { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 6px 0; }
.bl-info:empty { display: none; }
.bl-ctl { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 4px; }
.bl-ctl:empty, .bl-acts:empty { display: none; }
.bl-seg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-radius: 12px; padding: 4px 6px; border: 2px solid transparent; }
.bl-seg.diff { border-color: #f59e0b; background: #fff8e6; }
.bl-sl { font-weight: 700; color: var(--sub, #4b5563); min-width: 4.6em; }
.bl-tab { min-height: 46px; padding: 2px 14px; border-radius: 999px; border-color: var(--line, #d1d5db); position: relative; }
.bl-tab[aria-pressed="true"] { background: #c2410c; color: #fff; border-color: #c2410c; }
.bl-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 10px; }
.bl-go { border: 0; background: var(--teal-d, #0f8a72); color: #fff; box-shadow: 0 3px 0 #0a6553; }
.bl-go:active { transform: translateY(2px); box-shadow: 0 1px 0 #0a6553; }
.bl-out { background: #f3f6ff; border-radius: 12px; padding: 8px 14px; min-height: 40px; }
.bl-out:empty { display: none; }
.bl-out p { margin: 6px 0; }
.bl-ask2 { font-weight: 800; font-size: 1.12rem; }
.bl-note { font-size: 1rem; color: var(--sub, #4b5563); }
.bl-ok { font-weight: 800; color: var(--teal-d, #0f8a72); }
.bl-ng { font-weight: 800; color: #c2410c; }
.bl-warn { background: #fee2e2; border: 3px solid #dc2626; color: #991b1b; border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.bl-big { font-size: 1.2rem; font-weight: 800; }
.bl-eq { font-weight: 700; background: #fff; border-radius: 8px; padding: 4px 10px; }
.bl-sum { background: #fff; border-left: 5px solid var(--teal-d, #0f8a72); padding: 6px 10px; font-weight: 700; }
.bl-tb { border-collapse: collapse; margin: 6px 0; background: #fff; font-size: 1rem; }
.bl-tb th, .bl-tb td { border: 1px solid #cbd5e1; padding: 4px 8px; text-align: center; }
.bl-tb th { background: #eef2f7; font-weight: 700; }
/* SVG */
.bl-tab[aria-pressed="true"] { background: var(--ink, #1f2937); color: #fff; border-color: var(--ink, #1f2937); }
.bl-items { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bl-sw { display: inline-block; width: 18px; height: 18px; border-radius: 4px; margin-right: 6px; vertical-align: -3px; border: 1.5px solid #333; }
.bl-sw-wood { background: linear-gradient(135deg, #f9d19a, #c28a50); }
.bl-sw-plastic { background: linear-gradient(135deg, #a9dff1, #2c8caf); }
.bl-sw-alum { background: linear-gradient(135deg, #f2f7fa, #a1b5c3); }
.bl-sw-iron { background: linear-gradient(135deg, #b2bdc7, #657582); }
.bl-meter { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 460px; }
.bl-ml { font-weight: 700; color: var(--sub, #4b5563); white-space: nowrap; }
.bl-mb { flex: 1; height: 22px; border-radius: 11px; background: #eef2f7; border: 2px solid #cbd5e1; overflow: hidden; }
.bl-mf { display: block; height: 100%; background: linear-gradient(90deg, #fcd34d, #f59e0b 50%, #ea580c); border-radius: 9px; transition: width .35s; }
.bl-mw { min-width: 6.5em; color: #c2410c; }
/* SVG */
.bl-ol { stroke: #333; stroke-width: 2.2; stroke-linejoin: round; }
.bl-ol1 { stroke: #333; stroke-width: 1.2; stroke-linejoin: round; }
.bl-dn { font-size: 12px; font-weight: 800; fill: #333; }
.bl-rd { fill: #1f2937; stroke: #8fa3ae; stroke-width: 2; }
.bl-rdt { font-size: 16px; font-weight: 800; fill: #b9f5d8; }
.bl-tk { font-size: 13px; font-weight: 800; fill: #5a2a0a; }
.bl-pf { fill: #28956a; stroke: #fff; stroke-width: 2; }
.bl-pe { fill: #f29c2f; stroke: #fff; stroke-width: 2; }
.bl-pl { fill: #9565bb; stroke: #fff; stroke-width: 2; }
.bl-ld { stroke: #94a3b8; stroke-width: 1.2; stroke-dasharray: 3 3; }
.bl-pt { font-size: 14px; font-weight: 800; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.bl-pt.pf { fill: #1d7a55; } .bl-pt.pe { fill: #c2410c; } .bl-pt.pl { fill: #7b4aa3; }
.bl-hit { cursor: pointer; }
.bl-wg { cursor: grab; }
