/* sci-beaker（水ようえき）。水・えき＝うすい水色、あたたかい＝赤・つめたい＝青、正かい＝みどり。字は 16px 以上 */
.bq { font-size: 1.05rem; }
.bq [hidden] { display: none !important; }
.bq-guess { background: #fff8e6; border: 2px solid var(--orange, #f59e0b); border-radius: 12px; padding: 8px 12px 10px; margin-bottom: 8px; }
.bq-ask { font-weight: 700; margin: 0 0 6px; font-size: 1.1rem; }
.bq-gb { display: flex; flex-wrap: wrap; gap: 8px; }
.bq-g, .bq-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; }
.bq-g:disabled, .bq-b:disabled, .bq-go:disabled, .bq-tab:disabled { opacity: .45; cursor: default; }
.bq-g[aria-pressed="true"] { opacity: 1; background: #eaf1ff; border-color: #2563eb; }
.bq-fig { position: relative; max-width: 560px; margin: 4px auto; }
.bq-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); }
.bq-ctl { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 4px; }
.bq-seg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bq-sl { font-weight: 700; color: var(--sub, #4b5563); min-width: 4.5em; }
.bq-tab { min-height: 46px; padding: 2px 14px; border: 2px solid var(--line, #e5e7eb); background: #fff; border-radius: 999px; font-weight: 700; font-size: 1rem; color: var(--ink, #1f2937); cursor: pointer; }
.bq-tab[aria-pressed="true"] { background: var(--ink, #1f2937); color: #fff; border-color: var(--ink, #1f2937); }
.bq-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 10px; }
.bq-acts:empty, .bq-ctl:empty { display: none; }
.bq-go { min-height: 52px; 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; }
.bq-go:active { transform: translateY(2px); box-shadow: 0 1px 0 #0a6553; }
.bq-read { background: #f3f6ff; border-radius: 12px; padding: 8px 14px; min-height: 56px; }
.bq-read p { margin: 4px 0; }
.bq-big { font-size: 1.6rem; font-weight: 800; }
.bq-eq { font-weight: 700; background: #fff; border-radius: 8px; padding: 2px 10px; display: inline-block; }
.bq-res { font-weight: 700; color: var(--teal-d, #0f8a72); }
.bq-res.ng, .bq-ng2 { font-weight: 700; color: #c2410c; }
.bq-sum { font-weight: 800; color: var(--teal-d, #0f8a72); }
.bq-note { font-size: 1rem; color: var(--sub, #4b5563); }
.bq-cmp { background: #fff; border-radius: 8px; padding: 4px 10px; }
.bq-bars p { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.bq-bars span { display: inline-block; height: 14px; border-radius: 4px; }
.bq-bars span.s { background: #14a38a; } .bq-bars span.a { background: #8b5cf6; }
.bq-tbl { border-collapse: collapse; margin: 6px 0; width: 100%; background: #fff; font-size: 1rem; }
.bq-tbl th, .bq-tbl td { border: 1px solid #cbd5e1; padding: 4px 6px; text-align: center; vertical-align: top; }
.bq-tbl th { background: #eef2f7; }
/* SVG */
.bq-ol { stroke: #333; stroke-width: 2; stroke-linejoin: round; }
.bq-ol1 { stroke: #333; stroke-width: 1.4; stroke-linejoin: round; }
.bq-sh { fill: #333; opacity: .12; }
.bq-pn { fill: #fff; stroke: #d6dee6; stroke-width: 1.5; }
.bq-pt { font-size: 15px; font-weight: 800; fill: #0f8a72; }
.bq-lb { font-size: 16px; font-weight: 800; fill: #1f2937; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.bq-tw { font-size: 17px; font-weight: 800; fill: #dc2626; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.bq-tc { font-size: 17px; font-weight: 800; fill: #2563eb; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.bq-cnt { font-size: 17px; font-weight: 800; fill: #0f8a72; }
.bq-cnt.ng { fill: #c2410c; }
.bq-big2 { font-size: 34px; font-weight: 800; fill: #1f2937; }
.bq-sm { font-size: 14px; font-weight: 700; fill: #4b5563; }
.bq-sm2 { font-size: 13px; font-weight: 800; fill: #374151; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.bq-sm2.ok { fill: #0f8a72; }
.bq-ax { font-size: 13px; font-weight: 700; fill: #374151; }
.bq-ax2 { font-size: 13px; font-weight: 800; fill: #1f2937; }
.bq-no { font-size: 14px; font-weight: 800; fill: #fff; paint-order: stroke; stroke: #1f2937; stroke-width: 4px; }
.bq-lcd { font-size: 19px; font-weight: 800; fill: #b9f5a6; font-family: ui-monospace, Menlo, Consolas, monospace; }
.bq-lcdu { font-size: 14px; font-weight: 800; fill: #b9f5a6; }
.bq-mag { font-size: 16px; font-weight: 800; fill: #fff; }
.bq-lead { stroke: #f59e0b; stroke-width: 1.5; stroke-dasharray: 4 3; }
.bq-sel { fill: rgba(245, 158, 11, .12); stroke: #f59e0b; stroke-width: 2.5; stroke-dasharray: 6 4; }
.bq-bub { animation: bq-rise 1.8s linear infinite; }
.bq-fl { transform-box: fill-box; transform-origin: 50% 100%; animation: bq-flick .5s ease-in-out infinite alternate; }
@keyframes bq-rise { from { transform: translateY(0); opacity: .9; } to { transform: translateY(-40px); opacity: 0; } }
@keyframes bq-flick { from { transform: scale(1, 1); } to { transform: scale(.94, 1.06); } }
@media (prefers-reduced-motion: reduce) { .bq-bub, .bq-fl { animation: none; } }
