/* sci-gas（理科 小6 気体）。酸素＝青・二酸化炭素＝橙赤・ちっ素＝うすい灰色・ほか＝黄。字は 16px 以上（SVG の 目もりの 数字を のぞく） */
.gs { font-size: 1.05rem; }
.gs [hidden] { display: none !important; }
.gs-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.gs-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; }
.gs-tab[aria-pressed="true"] { background: var(--ink, #1f2937); color: #fff; border-color: var(--ink, #1f2937); }
.gs-guess { background: #fff8e6; border: 2px solid var(--orange, #f59e0b); border-radius: 12px; padding: 8px 12px 10px; margin-bottom: 8px; }
.gs-ask { font-weight: 700; margin: 0 0 6px; font-size: 1.1rem; }
.gs-gb { display: flex; flex-wrap: wrap; gap: 8px; }
.gs-g, .gs-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; }
.gs-g:disabled, .gs-b:disabled, .gs-go:disabled { opacity: .45; cursor: default; }
.gs-g[aria-pressed="true"] { opacity: 1; background: #eaf1ff; border-color: #2563eb; }
.gs-it { min-height: 46px; padding: 2px 12px; font-size: 1rem; }
.gs-it[aria-pressed="true"] { background: #fff4dc; border-color: #ea580c; }
.gs-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; }
.gs-warn b { font-size: 1.2rem; }
.gs-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); }
.gs-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 10px; }
.gs-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; }
.gs-go:active { transform: translateY(2px); box-shadow: 0 1px 0 #0a6553; }
.gs-read { background: #f3f6ff; border-radius: 12px; padding: 8px 14px; min-height: 56px; }
.gs-read p { margin: 4px 0; }
.gs-res { font-weight: 700; color: var(--teal-d, #0f8a72); }
.gs-res.ng { color: #c2410c; }
.gs-note { font-size: 1rem; color: var(--sub, #4b5563); }
.gs-rec { display: flex; flex-wrap: wrap; gap: 6px; }
.gs-rec span { border-radius: 999px; padding: 1px 10px; font-size: .95rem; font-weight: 700; }
.gs-rec .y { background: #fff1d6; color: #b45309; }
.gs-rec .n { background: #eceff3; color: #4b5563; }
.gs-svg { cursor: default; }
.gs-lab { font-size: 15px; font-weight: 700; fill: #374151; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.gs-sm { font-size: 14px; fill: #4b5563; }
.gs-xs { font-size: 12.5px; fill: #4b5563; }
.gs-in { font-size: 14px; fill: #1f2937; stroke: rgba(255,255,255,.85); stroke-width: 3px; }
.gs-ab { font-size: 22px; font-weight: 800; fill: #0f8a72; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.gs-q { font-size: 30px; font-weight: 800; fill: #2563eb; paint-order: stroke; stroke: #fff; stroke-width: 5px; }
.gs-tn { font-size: 11px; font-weight: 700; fill: #333; font-family: Arial, sans-serif; }
.gs-seg { min-height: 46px; padding: 2px 12px; font-size: 1rem; }
.gs-seg[aria-pressed="true"] { background: #fff4dc; border-color: #ea580c; }
.gs-tbl { border-collapse: collapse; margin: 6px 0; font-size: .95rem; }
.gs-tbl th, .gs-tbl td { border: 1px solid #cbd5e1; padding: 3px 10px; text-align: center; background: #fff; }
.gs-tbl th { background: #eef2f7; }
.gs-src { font-size: .85rem; color: #6b7280; }
.gs-rec span.keep { background: #fff1d6; color: #b45309; }
.gs-rec span.big { background: #ffe1d1; color: #c2410c; }
.gs-rec span.out { background: #eceff3; color: #4b5563; }
.gs-arrp { stroke: #333; stroke-width: 1.6; stroke-linejoin: round; }
.gs-arr.o2 .gs-arrp { fill: #4fa8ec; }
.gs-arr.co2 .gs-arrp { fill: #f27045; }
.gs-flame { animation: gs-flick .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.gs-smoke { animation: gs-rise 1.6s ease-in-out infinite; }
.gs-bub { animation: gs-rise 1.6s linear infinite; }
@keyframes gs-flick { from { opacity: .85; } to { opacity: 1; } }
@keyframes gs-rise { 0% { transform: translateY(0); opacity: .8; } 100% { transform: translateY(-24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gs-flame, .gs-smoke, .gs-bub { animation: none; } }
