/* sci-circuit（理科の 回路）。電池 ＋＝赤・−＝黒、電りゅう＝オレンジ。字は 16px 以上 */
.sc { font-size: 1.05rem; }
.sc [hidden] { display: none !important; }
.sc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sc-tab { min-height: 46px; padding: 2px 16px; border: 2px solid var(--line, #e5e7eb); background: #fff; border-radius: 999px; font-weight: 700; font-size: 1rem; color: var(--ink, #1f2937); cursor: pointer; }
.sc-tab[aria-pressed="true"] { background: var(--ink, #1f2937); color: #fff; border-color: var(--ink, #1f2937); }
.sc-guess { background: #fff8e6; border: 2px solid var(--orange, #f59e0b); border-radius: 12px; padding: 8px 12px 10px; margin-bottom: 8px; }
.sc-ask { font-weight: 700; margin: 0 0 6px; font-size: 1.1rem; }
.sc-gb { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-g, .sc-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; }
.sc-g:disabled, .sc-b:disabled, .sc-go:disabled { opacity: .45; cursor: default; }
.sc-g[aria-pressed="true"] { opacity: 1; background: #eaf1ff; border-color: #2563eb; }
.sc-it { min-height: 46px; padding: 2px 12px; font-size: 1rem; }
.sc-it[aria-pressed="true"] { background: #fff4dc; border-color: #ea580c; }
.sc-warn { background: #fee2e2; border: 3px solid #dc2626; color: #991b1b; border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; font-weight: 700; animation: sc-shake .4s 2; }
.sc-warn b { font-size: 1.2rem; }
.sc-svg { width: 100%; height: auto; display: block; margin: 4px 0; user-select: none; -webkit-user-select: none; touch-action: manipulation; cursor: pointer; border-radius: 14px; background: radial-gradient(ellipse at 50% 30%, #fbfdff 0%, #eef3f8 100%); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.sc-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 10px; }
.sc-go { min-height: 54px; padding: 6px 22px; border: 0; border-radius: 14px; background: var(--teal-d, #0f8a72); color: #fff; font-weight: 700; font-size: 1.1rem; cursor: pointer; box-shadow: 0 3px 0 #0a6553; }
.sc-go:active { transform: translateY(2px); box-shadow: 0 1px 0 #0a6553; }
.sc-read { background: #f3f6ff; border-radius: 12px; padding: 8px 14px; min-height: 56px; }
.sc-read p { margin: 4px 0; }
.sc-res { font-weight: 700; color: var(--teal-d, #0f8a72); }
.sc-res.ng { color: #c2410c; }
.sc-note { font-size: 1rem; color: var(--sub, #4b5563); }
.sc-rec { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-rec span { border-radius: 999px; padding: 1px 10px; font-size: .95rem; font-weight: 700; }
.sc-rec .y { background: #fff1d6; color: #b45309; }
.sc-rec .n { background: #eceff3; color: #4b5563; }
/* SVG */
.sc-lab { font-size: 15px; font-weight: 700; fill: #374151; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.sc-sm { font-size: 14px; fill: #6b7280; }
.sc-tgl { font-size: 17px; fill: #b45309; }
.sc-turnl { fill: #6d28d9; }
.sc-q { font-size: 28px; font-weight: 800; fill: #2563eb; paint-order: stroke; stroke: #fff; stroke-width: 5px; }
.sc-ol { stroke: #333; stroke-width: 2; }
.sc-ol1 { stroke: #333; stroke-width: 1.5; stroke-linejoin: round; }
.sc-mk { stroke: #fff; stroke-width: 3.2; stroke-linecap: round; fill: none; }
.sc-sh { fill: #333; opacity: .12; }
.sc-w0 { fill: none; stroke: #23405e; stroke-width: 8.5; stroke-linecap: round; stroke-linejoin: round; }
.sc-w1 { fill: none; stroke: #6bb6ec; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.sc-w2 { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.sc-cu0 { fill: none; stroke: #5b3416; stroke-width: 6; stroke-linecap: round; }
.sc-cu { fill: none; stroke: #e39a5c; stroke-width: 3.2; stroke-linecap: round; }
.sc-in0 { fill: none; stroke: #5b3416; stroke-width: 4.5; stroke-linejoin: round; }
.sc-in { fill: none; stroke: #e39a5c; stroke-width: 2.4; stroke-linejoin: round; }
.sc-gap { fill: rgba(220, 38, 38, .12); stroke: #dc2626; stroke-width: 2; stroke-dasharray: 3 2; }
.sc-dot { fill: #f97316; stroke: #fff; stroke-width: 1.2; }
.sc-ar { fill: none; stroke: #ea580c; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.sc-ray { stroke: #ffc531; stroke-width: 3; stroke-linecap: round; }
.sc-glow { animation: sc-glow 1.6s ease-in-out infinite alternate; }
.sc-hot { animation: sc-glow .35s ease-in-out infinite alternate; }
.sc-turn { fill: none; stroke: #7c3aed; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sc-prop { transform-box: fill-box; transform-origin: center; }
.sc-prop.on { animation: sc-rot 1s linear infinite; }
.sc-prop.on.ccw { animation-direction: reverse; }
.sc-ghost rect { fill: rgba(255, 255, 255, .5); stroke: #9ca3af; stroke-width: 2; stroke-dasharray: 6 4; }
.sc-end { fill: rgba(37, 99, 235, .08); stroke: #2563eb; stroke-width: 2.5; }
.sc-end.hint { stroke-dasharray: 5 4; animation: sc-pulse 1.2s ease-in-out infinite alternate; }
.sc-end.sel { fill: rgba(37, 99, 235, .2); stroke-width: 4; animation: sc-pulse .6s ease-in-out infinite alternate; }
.sc-tg { fill: rgba(234, 88, 12, .1); stroke: #ea580c; stroke-width: 2.5; stroke-dasharray: 4 3; }
.sc-sw { cursor: pointer; }
@keyframes sc-rot { to { transform: rotate(360deg); } }
@keyframes sc-glow { from { opacity: .75; } to { opacity: 1; } }
@keyframes sc-pulse { from { stroke-opacity: .45; } to { stroke-opacity: 1; } }
@keyframes sc-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .sc-prop.on, .sc-glow, .sc-hot, .sc-end, .sc-warn { animation: none; } }
