/* 理化求生記（只有理化網站載入）：接在 math.css 後面，動手實驗的畫面 */
.sx .mx-f { overflow: hidden; touch-action: manipulation; }
/* 題目畫面用荒島當背景（家長 2026-11-05），不用數學的深色太空。寫在場景自己的底色前面，場景要自己的底色時才蓋得過去 */
.mx { --isle: url(../assets/bg_sx_q_beach.jpg); }
.mx .mx-f, .sx .mx-f.sx-dark { background: #cfe9c8 var(--isle) center / cover no-repeat; }
.mx-f[data-isle="1"] { --isle: url(../assets/bg_sx_q_forest.jpg); }
.mx-f[data-isle="2"] { --isle: url(../assets/bg_sx_q_rocks.jpg); }
.mx::before { background: rgba(6, 12, 30, .25); }
.mx-boss .nm { text-shadow: 0 2px 4px rgba(0, 0, 0, .75); }
/* 有圖的題目：圖的顏色是配深色底的，畫在立在荒島上的黑板裡 */
.sx-board > .mx-svg:not(.sx-svg) { top: 14px; left: 14px; width: calc(100% - 28px); height: calc(100% - 28px); border-radius: 8px; background: radial-gradient(circle at 50% 40%, #234a5c, #16264a); box-shadow: 0 0 0 7px #b3803f, 0 0 0 9px #6e4a22, 0 8px 18px rgba(0, 0, 0, .35); }
/* 小動物踩在地上：腳下一點影子 */
.sx-isle .mx-ufo image { filter: drop-shadow(0 8px 6px rgba(50, 40, 20, .35)); }
/* 題目框變高、變矮時畫面會多出一點邊：邊的顏色和場景接得起來，不會出現黑條 */
.sx-rail .mx-f { background: #cfeefc; }
.sx-cyc .mx-f { background: #5cc4d8; }
.sx-cyc .mx-sc-btn, .sx-cyc .mx-sc-clear { display: none; }
.sx-svg .sx-tick { fill: #5a4320; font-weight: 800; font-family: var(--font); }

/* 軌道砲車 */
.sx-track { stroke: #5b3a1c; stroke-width: 7; stroke-linecap: round; }
.sx-panel { fill: rgba(8, 16, 38, .84); stroke: rgba(180, 220, 255, .35); stroke-width: 2; }
.sx-crate { fill: #e9b64a; stroke: #7a5310; stroke-width: 2; }
.sx-force { stroke: #e5482e; stroke-width: 7; stroke-linecap: round; }
.sx-force-h { fill: #e5482e; }
.sx-force.green { stroke: #1f8f5a; }
.sx-force-h.green { fill: #1f8f5a; }
.sx-line { fill: none; stroke: #ffd24d; stroke-width: 3.5; stroke-linejoin: round; }
.sx-line.ghost { stroke: #7fe3ff; stroke-dasharray: 7 5; }
.sx-drop { stroke: rgba(120, 40, 120, .45); stroke-width: 3; stroke-dasharray: 5 8; }
.sx-bob { animation: mxbob 1.8s ease-in-out infinite; }
.sx-nah { animation: mxnah .5s 2; }

/* 調條件和表格 */
.sx-ctl { display: grid; gap: 8px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 248, 230, .97); box-shadow: var(--shadow); }
.sx-step { display: grid; grid-template-columns: 4.2em 76px 1fr 76px; gap: 8px; align-items: center; font-size: 23px; font-weight: 900; color: var(--ink); }
.sx-step .mx-key { height: 72px; font-size: 34px; }
.sx-step .mx-key:disabled { opacity: .35; filter: grayscale(1); cursor: default; } /* 到最小或最大了 */
.sx-step .val { padding: 8px 4px; text-align: center; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 3px #c9b98f; font-size: 28px; }
.sx-ctl .sx-fire { min-height: 78px; width: 100%; grid-column: auto; }
.sx-fire:disabled { filter: grayscale(.8); opacity: .7; }
.sx-tw { flex: 1; min-height: 70px; overflow: auto; border-radius: 12px; background: rgba(255, 248, 230, .97); box-shadow: var(--shadow); }
.sx-table { width: 100%; border-collapse: collapse; text-align: center; font-size: 21px; font-weight: 800; color: var(--ink); }
.sx-table th { position: sticky; top: 0; padding: 5px 4px; background: #27406f; color: #fff; font-size: 16px; font-weight: 900; }
.sx-table td { padding: 5px 4px; border-top: 1px solid #e5d9b8; }
.sx-table tr.new td { background: #d8f5e0; }
.sx-table tr.flag td { background: #ffd9d3; color: #8a2f25; }
.sx-mini { margin-top: 6px; border-radius: 10px; overflow: hidden; font-size: 19px; background: #fff; }
.sx-mini td { padding: 2px 4px; }

/* 阿殼說話 */
.sx-say { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; background: rgba(255, 248, 230, .97); box-shadow: var(--shadow); font-size: 22px; font-weight: 900; color: var(--ink); line-height: 1.35; animation: sxin .25s; }
.sx-say img { flex: none; width: 58px; height: 58px; object-fit: contain; }
@keyframes sxin { from { transform: translateY(12px); opacity: 0; } }

/* 旋風砲 */
.sx-ring { fill: none; stroke: #d9534a; stroke-width: 4; stroke-dasharray: 12 10; opacity: .75; }
.sx-orbit { fill: none; stroke: rgba(90, 60, 20, .4); stroke-width: 3; stroke-dasharray: 4 7; }
.sx-rope { stroke: #6d4b22; stroke-width: 5; stroke-linecap: round; }
.sx-ball { fill: #ffd24d; stroke: #8a5a00; stroke-width: 3; }
.sx-aim { stroke: rgba(60, 70, 110, .65); stroke-width: 4; stroke-dasharray: 10 9; }
.sx-aim.on { stroke: #e5482e; stroke-width: 6; }
.sx-pull { stroke: #e5482e; stroke-width: 5; stroke-linecap: round; }
.sx-miss { stroke: rgba(120, 80, 30, .55); stroke-width: 3; stroke-dasharray: 3 8; }
.sx-arw { fill: none; stroke: #27406f; stroke-width: 6; stroke-linecap: round; }
.sx-arwh { fill: #27406f; }
.sx-alabel { fill: #27406f; font-weight: 900; font-family: var(--font); paint-order: stroke; stroke: #fff; stroke-width: 6px; }
.sx-hud { display: flex; justify-content: space-around; gap: 8px; padding: 10px; border-radius: 14px; background: rgba(255, 248, 230, .97); box-shadow: var(--shadow); font-size: 25px; font-weight: 900; color: var(--ink); }
.mx-p .sx-release { flex: 1; min-height: 150px; width: 100%; font-size: 46px; grid-column: auto; }
.mx-pick.off { opacity: .55; }
/* 光 */
.sx-night .mx-f { background: #16264a; }
.sx-nightbg { fill: #16264a; }
.sx-night .sx-svg { overflow: visible; }
.sx-night .mx-f { overflow: hidden; }
.sx-star { fill: rgba(255, 255, 255, .55); }
.sx-mirror { stroke: #cfefff; stroke-width: 10; stroke-linecap: round; cursor: pointer; }
.sx-mirror.on { stroke: #ffe27a; }
.sx-laser-pre { fill: none; stroke: rgba(255, 180, 180, .7); stroke-width: 3; stroke-dasharray: 9 8; }
.sx-laser-pre.on { stroke: #6ee7a2; stroke-width: 4; }
.sx-laser { fill: none; stroke: #ff5d5d; stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 5px #ff5d5d); }
.sx-spear { stroke: #7a4a22; stroke-width: 7; stroke-linecap: round; }
.sx-normal { stroke: rgba(255, 255, 255, .6); stroke-width: 2; stroke-dasharray: 5 6; }
.sx-rope { fill: none; stroke: #e8c88a; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.sx-rest { stroke: rgba(255, 255, 255, .22); stroke-width: 2; stroke-dasharray: 4 8; }
.sx-wtarget { fill: none; stroke: #ffc94d; stroke-width: 5; stroke-dasharray: 12 9; }
.sx-ribbon { fill: #ff5d5d; stroke: #fff; stroke-width: 3; }
.sx-bracket { stroke: #ffe27a; stroke-width: 3; }
.sx-bracket.amp { stroke: #6ee7a2; }
.sx-fog { fill: rgba(232, 240, 246, .9); filter: blur(10px); }
.sx-fog.deep { fill: rgba(16, 78, 112, .97); }
.sx-pulse { fill: none; stroke: #ff9d2e; stroke-width: 9; stroke-linecap: round; }
.sx-scope { fill: #082a22; stroke: #4fd1a5; stroke-width: 4; }
.sx-grid { stroke: rgba(120, 230, 190, .16); stroke-width: 2; }
.sx-wref { fill: none; stroke: rgba(220, 230, 235, .5); stroke-width: 4; }
.sx-wme { fill: none; stroke: #ffe27a; stroke-width: 4; }
.sx-peg { fill: #8a5a2b; stroke: #5a3a18; stroke-width: 2; }
.sx-string { fill: none; stroke: #e8e8e8; stroke-width: 4; }
.sx-listen { height: 58px; font-size: 22px; }
.sx-jar { fill: rgba(190, 230, 255, .12); stroke: rgba(210, 240, 255, .75); stroke-width: 6; }
.sx-bell { fill: #e8b53c; stroke: #8a5a00; stroke-width: 4; }
.sx-air { fill: rgba(150, 220, 255, .75); }
.sx-ringwave { fill: none; stroke: #ffe27a; stroke-width: 5; }
.sx-rock { fill: #55617a; stroke: #2f374a; stroke-width: 4; }
.sx-lamp { fill: #ffd24d; stroke: #fff; stroke-width: 3; }
.sx-turn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sx-turn .mx-key { height: 72px; font-size: 26px; }
.sx-axis2 { stroke: rgba(220, 235, 255, .7); stroke-width: 2; }
.sx-lens { fill: rgba(150, 215, 255, .35); stroke: #bfe6ff; stroke-width: 3; }
.sx-candle { stroke: #ffd24d; stroke-width: 8; stroke-linecap: round; }
.sx-candle.real { stroke: #ff9d5c; }
.sx-candle.virt { stroke: rgba(255, 210, 77, .55); stroke-dasharray: 6 6; }
.sx-flame { fill: #ff7b3b; }
.sx-flame.real { fill: #ffb04d; }
.sx-flame.virt { fill: rgba(255, 123, 59, .5); }
.sx-ray { fill: none; stroke: #ffe27a; stroke-width: 2.5; }
.sx-ray.back { stroke: rgba(255, 226, 122, .5); stroke-dasharray: 6 6; }
.sx-screen { fill: #e8e8e8; opacity: .85; }
.sx-goals { display: grid; gap: 4px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 248, 230, .97); box-shadow: var(--shadow); font-size: 19px; font-weight: 800; color: var(--ink); }
.sx-goals span.on { color: #1d8a4c; }
.sx-lamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sx-lampbtn { height: 84px; font-size: 26px; color: #fff; opacity: .55; }
.sx-lampbtn.R { background: linear-gradient(180deg, #ff6b6b, #c92a2a); box-shadow: 0 4px 0 #861b1b; }
.sx-lampbtn.G { background: linear-gradient(180deg, #51cf66, #2b8a3e); box-shadow: 0 4px 0 #1c5e2a; }
.sx-lampbtn.B { background: linear-gradient(180deg, #5c7cfa, #2b3fbf); box-shadow: 0 4px 0 #1c2a80; }
.sx-lampbtn.on { opacity: 1; outline: 4px solid #ffe27a; }
.sx-cl { mix-blend-mode: screen; }
.sx-cm { stroke: rgba(255, 255, 255, .12); stroke-width: 2; }
/* 功與能 */
.sx-coast .mx-f { background: #bfe8fb; }
.sx-ctrack { fill: none; stroke: #5b3a1c; stroke-width: 7; stroke-linejoin: round; }
.sx-lb-u { fill: #7cc0ff; font-weight: 900; } .sx-lb-k { fill: #ff8a5c; font-weight: 900; } .sx-lb-h { fill: #c8c8c8; font-weight: 900; }
.sx-rope2 { stroke: #6d4b22; stroke-width: 5; stroke-linecap: round; }
.sx-level { stroke: rgba(30, 60, 110, .45); stroke-width: 3; stroke-dasharray: 10 8; }
.mx-poly.solid.gold { fill: #ffd24d; stroke: #ffd24d; }
.mx-poly.solid.green { fill: #6ee7a2; stroke: #6ee7a2; }
/* 解答圖的光線（光、水中和透鏡，2026-11-10）：光線粗一點、箭頭實心，手機直拿也看得清楚 */
.mx-l.ray { stroke-width: 4; }
.mx-poly.solid.red { fill: #ff7b6b; stroke: #ff7b6b; }
.mx-poly.solid.pink { fill: #ff9ad5; stroke: #ff9ad5; }
.mx-poly.pink { fill: rgba(255, 154, 213, .18); stroke: #ff9ad5; stroke-dasharray: 7 5; }
.mx-t.red { fill: #ff8f80; font-weight: 900; }
/* 手機直拿：解答圖只有約 300px 寬，黑板邊框變窄、線加粗（整頁有縮放，線的粗細要放大才看得到） */
html.hp .mx-okfig.sx-board > .mx-svg:not(.sx-svg) { top: 6px; left: 6px; width: calc(100% - 12px); height: calc(100% - 12px); box-shadow: 0 0 0 4px #b3803f, 0 0 0 6px #6e4a22; }
html.hp .mx-okfig .mx-l { stroke-width: 4.5; }
html.hp .mx-okfig .mx-l.thin { stroke-width: 3; }
html.hp .mx-okfig .mx-l.ray, html.hp .mx-okfig .mx-l.thick { stroke-width: 7; }
/* 很寬的解答圖（比例＞2.4）放在說明上面、佔滿卡片寬（sci_lab.js 加 .sx-okwide，2026-11-10 磁力砲和發電字卡） */
.mx-okrow:has(> .mx-okfig.sx-okwide) { flex-direction: column; align-items: stretch; gap: 10px; }
/* 手機直拿：右上的「✏️ 草稿」固定在角落，標題長（「📝 錯題複習：發明展覽館」）時愛心會跑到按鈕底下（2026-11-10 總管看到）。
   有草稿按鈕的畫面，上方列右邊留出按鈕的位置，標題太長就縮成「…」，愛心一定看得到 */
html.hp #s-play:has(.mx-sc-btn) .play-top { padding-right: 140px; }
html.hp #s-play:has(.mx-sc-btn) .play-top .ttl { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.hp .play-top .hearts { flex: none; }
.sx-glabel { font-size: 21px; font-weight: 900; color: var(--ink); text-align: center; }
.sx-jet .sx-glabel { padding: 8px; border-radius: 12px; background: rgba(255, 248, 230, .97); }
.sx-gauge { height: 26px; border-radius: 13px; background: #e5d9b8; box-shadow: inset 0 0 0 2px #a8976d; overflow: hidden; }
.sx-gauge i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5fe3b0, #ffd24d); transition: width .25s; }
.sx-gauge.hot i { background: linear-gradient(90deg, #ffb04d, #e5482e); }

/* 噴射艇 */
.sx-jet .mx-f { background: #5cc4d8; }
.sx-water { fill: #5cc4d8; }
.sx-wave { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 3; stroke-linecap: round; }
.sx-gas { fill: #fff; opacity: .9; }
.sx-pad { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 96px; gap: 8px; flex: 1; min-height: 0; }
.sx-pad .sx-arrow { font-size: 44px; height: auto; }
.sx-padc { display: grid; place-items: center; font-size: 26px; font-weight: 900; color: #fff; }

@media (orientation: portrait) {
  .sx-rail .mx-p { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .sx-rail .mx-p .mx-keys, .sx-rail .mx-p .mx-slots, .sx-rail .mx-p .mx-picks { grid-column: 1 / -1; }
  .sx-step { grid-template-columns: 2.6em 60px 1fr 60px; gap: 6px; font-size: 20px; }
  .sx-step .val { font-size: 22px; padding: 8px 2px; }
  .sx-tw { max-height: 250px; }
  .sx-table { font-size: 19px; }
  .mx-p .sx-release { min-height: 170px; flex: none; }
}

/* 電解質和酸鹼（class 開頭 sx-acid-）。燒杯、機械手臂、防護艙也給反應速率、有機用 */
.sx-acid-warn { position: absolute; left: 8px; right: 8px; top: 6px; z-index: 4; padding: 2px 10px; border-radius: 8px; background: rgba(255, 244, 200, .92); color: #7a4a00; font-size: 16px; font-weight: 900; text-align: center; pointer-events: none; }
.sx-acid-liq { opacity: .9; }
.sx-acid-glass { fill: none; stroke: rgba(225, 245, 255, .9); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.sx-acid-bub { fill: rgba(255, 255, 255, .55); stroke: #fff; stroke-width: 1.5; }
.sx-acid-cham { fill: rgba(170, 225, 255, .08); stroke: rgba(170, 225, 255, .75); stroke-width: 5; }
.sx-acid-rail { stroke: #8e9bb3; stroke-width: 8; stroke-linecap: round; }
.sx-acid-arm { stroke: #b7c3d6; stroke-width: 12; stroke-linecap: round; }
.sx-acid-joint { fill: #e9b64a; stroke: #7a5310; stroke-width: 3; }
.sx-acid-hand { fill: none; stroke: #e9b64a; stroke-width: 6; stroke-linecap: round; }
.sx-acid-burner { fill: #d8a06a; stroke: #7a5310; stroke-width: 3; }
.sx-acid-band { fill: rgba(110, 231, 162, .28); }
.sx-acid-wire { stroke: #e8b53c; stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sx-acid-rod { fill: #3a3f4d; stroke: #9aa3b5; stroke-width: 2; }
.sx-acid-batt { fill: #586478; stroke: #cfd8e6; stroke-width: 3; }
.sx-acid-bulb { fill: #3b4254; stroke: #e6ecf6; stroke-width: 4; transition: fill .15s; }
.sx-acid-bulb.on { fill: #ffe27a; }
.sx-acid-glow { fill: rgba(255, 226, 122, .75); filter: blur(14px); transform: scale(2.4); transform-origin: 625px 60px; }
.sx-acid-pos { fill: #ff9d5c; stroke: #fff; stroke-width: 2; }
.sx-acid-neg { fill: #5cb4ff; stroke: #fff; stroke-width: 2; }
.sx-acid-mol { fill: #d6dbe5; stroke: #fff; stroke-width: 2; }
.sx-acid-ionl { fill: #101a30; font-weight: 900; font-family: var(--font); }
.sx-acid-beam { stroke: #e8c88a; stroke-width: 12; stroke-linecap: round; }
.sx-acid-strip { fill: #f2eddc; stroke: #8a7a55; stroke-width: 2; }
.sx-acid-marble { fill: #e8e6df; stroke: #8f8a7c; stroke-width: 2; }
.sx-acid-pool { stroke: rgba(255, 255, 255, .55); stroke-width: 4; }
.sx-acid-thermo { fill: rgba(255, 255, 255, .9); stroke: #6d7890; stroke-width: 3; }
.sx-acid-dropb { fill: #6ea8ff; stroke: #fff; stroke-width: 1; }
.sx-acid-dropa { fill: #ff8a5c; stroke: #fff; stroke-width: 1; }
/* 廣用試紙的五種顏色（題目的圖用） */
.mx-rect.sx-acid-u0 { fill: #d62828; stroke: #fff; }
.mx-rect.sx-acid-u1 { fill: #f08c28; stroke: #fff; }
.mx-rect.sx-acid-u2 { fill: #40b054; stroke: #fff; }
.mx-rect.sx-acid-u3 { fill: #3460d6; stroke: #fff; }
.mx-rect.sx-acid-u4 { fill: #683ec4; stroke: #fff; }
/* 操作區 */
.sx-acid-row5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sx-acid-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sx-acid-cup { height: 64px; font-size: 26px; }
.sx-acid-cup:disabled { opacity: .45; }
.sx-acid-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sx-acid-tool { height: 56px; font-size: 20px; }
.sx-acid-tool.on, .sx-acid-lbl.on { background: linear-gradient(180deg, #ffe9a8, #ffc94d); box-shadow: 0 4px 0 #b08a24; }
.sx-acid-lrow { display: grid; grid-template-columns: 2em 1fr 1fr 1fr; gap: 6px; align-items: center; font-size: 26px; font-weight: 900; color: var(--ink); text-align: center; }
.sx-acid-lbl { height: 58px; font-size: 22px; }
.sx-acid-noz { height: 74px; font-size: 21px; touch-action: none; user-select: none; -webkit-user-select: none; }
.sx-acid-noz.on { filter: brightness(.85); transform: translateY(3px); }
.mx-key.sx-acid-b { background: linear-gradient(180deg, #d8e6ff, #9dbcf5); box-shadow: 0 4px 0 #6a87c0; }
.mx-key.sx-acid-a { background: linear-gradient(180deg, #ffe2d3, #f5ac86); box-shadow: 0 4px 0 #c0764e; }
/* 手機橫拿：畫面矮，實驗台的按鈕要小一點 */
@media (orientation: landscape) and (max-height: 480px) {
  .sx-acid-compact .sx-step .mx-key { height: 50px; font-size: 26px; }
  .sx-acid-compact .sx-step .val { padding: 4px; font-size: 22px; }
  .sx-acid-compact .sx-fire { min-height: 56px; }
}

/* 理化求生記：探索物質組成、化學反應、氧化還原共用的畫面（原子球、週期表、防護艙） */
.mx-c.sx-atom-b { stroke: rgba(0, 0, 0, .35); stroke-width: 2; }
.mx-c.sx-atom-b.H { fill: #f4f6fb; }
.mx-c.sx-atom-b.C { fill: #4a4f5c; }
.mx-c.sx-atom-b.N { fill: #4d7cf0; }
.mx-c.sx-atom-b.O { fill: #e5533f; }
.mx-c.sx-atom-b.S { fill: #f2c53d; }
.mx-c.sx-atom-b.Cl { fill: #3fae55; }
.mx-c.sx-atom-b.Na { fill: #9b6fe0; }
.mx-c.sx-atom-b.K { fill: #b86fd8; }
.mx-c.sx-atom-b.Mg { fill: #3e9f86; }
.mx-c.sx-atom-b.Ca { fill: #7f8fa8; }
.mx-c.sx-atom-b.Al { fill: #c9d3de; }
.mx-c.sx-atom-b.Fe { fill: #a8623a; }
.mx-c.sx-atom-b.Cu { fill: #d9793c; }
.mx-c.sx-atom-b.Zn { fill: #6f8fb0; }
.mx-c.sx-atom-b.Pb { fill: #5f6878; }
.mx-c.sx-atom-b.Ag { fill: #dfe5ec; }
.mx-c.sx-atom-b.Au { fill: #f0c83c; }
.mx-c.sx-atom-b.Hg { fill: #8f9bb0; }
.mx-c.sx-atom-b.Mn { fill: #8a6fb0; }
.mx-c.sx-atom-b.Sn { fill: #9aa6b4; }
.sx-atom-dk { fill: #1c2233; font-weight: 900; font-family: var(--font); }
.mx-c.sx-atom-cloud { fill: rgba(120, 200, 255, .1); stroke: rgba(170, 220, 255, .45); stroke-width: 2; stroke-dasharray: 6 8; }
.mx-c.sx-atom-p { fill: #ff6b5e; stroke: #7a1f18; stroke-width: 2; }
.mx-c.sx-atom-n { fill: #c6ccd6; stroke: #5a6270; stroke-width: 2; }
.mx-c.sx-atom-e, .sx-atom-e { fill: #ffe27a; stroke: #8a5a00; stroke-width: 2; }
.sx-atom-card { fill: rgba(8, 16, 38, .92); stroke: rgba(180, 220, 255, .4); stroke-width: 2; }
.mx-rect.sx-atom-cell { fill: rgba(120, 180, 255, .2); stroke: rgba(180, 220, 255, .55); }
.mx-c.sx-atom-cat { fill: #d9534a; stroke: #fff; stroke-width: 2; }
.mx-c.sx-atom-an { fill: #3f78d9; stroke: #fff; stroke-width: 2; }

/* 原子模型 */
.sx-atom-solid { fill: #3f8fb0; stroke: #bfe6ff; stroke-width: 3; }
.sx-atom-cl2 { fill: rgba(120, 200, 255, .22); stroke: #bfe6ff; stroke-width: 3; }
.sx-atom-nuc { fill: rgba(255, 210, 120, .28); stroke: #ffd27a; stroke-width: 2; }

/* 週期表 */
.sx-atom-td { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .14); stroke-width: 1.5; }
.sx-atom-td.met { fill: rgba(92, 192, 130, .24); stroke: rgba(150, 230, 180, .55); cursor: pointer; }
.sx-atom-td.non { fill: rgba(240, 130, 150, .24); stroke: rgba(255, 180, 195, .6); cursor: pointer; }
.sx-atom-td.on { fill: rgba(255, 226, 122, .55); stroke: #ffe27a; stroke-width: 3.5; }
.sx-atom-td.got { fill: rgba(255, 200, 60, .75); stroke: #fff; stroke-width: 2.5; }
.sx-atom-td.miss { fill: rgba(255, 70, 60, .7); }
.sx-atom-td.hint { stroke: #7fe3ff; stroke-width: 3.5; }
.sx-atom-sym { fill: #fff; font-weight: 900; font-family: var(--font); pointer-events: none; }
.sx-atom-zh { fill: #dbe8ff; font-weight: 800; font-family: var(--font); pointer-events: none; }
.sx-atom-read { padding: 8px 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 3px #c9b98f; font-size: 26px; font-weight: 900; color: var(--ink); text-align: center; min-height: 72px; }
.sx-atom-read b { font-size: 34px; color: #b3402f; }
.sx-atom-read small { display: block; font-size: 18px; font-weight: 800; color: var(--ink-2); }
.sx-atom-dpad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sx-atom-dpad .mx-key { height: 60px; font-size: 30px; }

/* 防護艙、機械手臂 */
.sx-atom-glass { fill: rgba(170, 225, 255, .08); stroke: rgba(190, 235, 255, .8); stroke-width: 5; }
.sx-atom-armbase { fill: #6d7a90; stroke: #2f3748; stroke-width: 3; }
.sx-atom-armseg { stroke: #ffb04d; stroke-width: 15; stroke-linecap: round; }
.sx-atom-joint { fill: #3f4a5e; stroke: #dfe7f2; stroke-width: 3; }
.sx-atom-grip { fill: none; stroke: #dfe7f2; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.sx-atom-water { fill: #4aa6d6; stroke: #bfe6ff; stroke-width: 3; opacity: .85; }
.sx-atom-bub { fill: rgba(255, 255, 255, .8); }
.sx-atom-flame { fill: #ff9d2e; stroke: #ffe27a; stroke-width: 2; }
.sx-atom-danger { fill: #ff7b6b; font-weight: 900; font-family: var(--font); paint-order: stroke; stroke: rgba(6, 12, 30, .9); stroke-width: 4px; }
.sx-atom-warn { position: absolute; left: 8px; right: 8px; top: 6px; z-index: 4; padding: 3px 10px; border-radius: 10px; background: rgba(255, 240, 200, .95); color: #7a3b00; font-size: 16px; font-weight: 800; text-align: center; pointer-events: none; transition: opacity .6s; }
.sx-atom-warn.off { opacity: 0; }
.sx-atom-mini { margin-top: 4px; max-height: 170px; overflow: auto; }
.sx-atom-mini .sx-table { font-size: 17px; }
@media (orientation: portrait) {
  .sx-atom-mini { max-height: 200px; }
  .sx-atom .sx-tw, .sx-react .sx-tw, .sx-redox .sx-tw { min-height: 180px; }
}

/* 靜電和電路（sci_circuit.js、circuit.gen.js 的圖） */
.mx-c.sx-circuit-sym { fill: #16264a; stroke: #ffe27a; stroke-width: 3; }
.mx-l.sx-circuit-thick { stroke-width: 7; }
.mx-rect.sx-circuit-gap { fill: #16264a; stroke: none; }
.sx-circuit-lead { stroke: #cfe6ff; stroke-width: 4; fill: none; }
.sx-circuit-batl { stroke: #ffd24d; stroke-width: 5; }
.sx-circuit-bats { stroke: #ffd24d; stroke-width: 11; }
.sx-circuit-bulb { fill: #1d2c52; stroke: #ffe27a; stroke-width: 4; }
.sx-circuit-bulb.hot { fill: #fff3b0; }
.sx-circuit-fil { fill: none; stroke: #ffb04d; stroke-width: 3.5; }
.sx-circuit-glow { fill: #ffe27a; opacity: 0; filter: blur(16px); transition: opacity .25s; pointer-events: none; }
.sx-circuit-meter { fill: #0e1c3d; stroke: #8fd0ff; stroke-width: 4; }
.sx-circuit-meter.burn { stroke: #ff5d5d; fill: #3a1212; }
.sx-circuit-swarm { stroke: #ffd24d; stroke-width: 5; stroke-linecap: round; }
.sx-circuit-swdot { fill: #ffe27a; }
.sx-circuit-wire { fill: none; stroke: #ffb976; stroke-width: 5; stroke-linecap: round; }
.sx-circuit-wire.fixed { stroke: #9fb2d6; }
.sx-circuit-wire.hot { stroke: #ff3b2e; stroke-width: 8; filter: drop-shadow(0 0 7px #ff5d5d); }
.sx-circuit-flow { fill: none; stroke: #5cc8ff; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1 24; pointer-events: none; }
.sx-circuit-arrow { fill: #ffd24d; stroke: #5a3a00; stroke-width: 2; pointer-events: none; }
.sx-circuit-term { fill: #fff; stroke: #27406f; stroke-width: 4; cursor: pointer; }
.sx-circuit-term.on { fill: #ffd24d; stroke: #e5482e; stroke-width: 5; }
.sx-circuit-smoke { fill: rgba(200, 200, 200, .85); filter: blur(4px); pointer-events: none; }
.sx-circuit-rod { stroke: rgba(255, 255, 255, .8); stroke-width: 3; }
.sx-circuit-cloth { stroke: rgba(255, 255, 255, .5); stroke-width: 3; stroke-dasharray: 7 7; }
.sx-circuit-chg.p { fill: #e5482e; stroke: #fff; stroke-width: 1.5; }
.sx-circuit-chg.n { fill: #2a7fd6; stroke: #fff; stroke-width: 1.5; }
.sx-circuit-chgt { fill: #fff; font-weight: 900; font-family: var(--font); pointer-events: none; }
.sx-circuit-jar { fill: rgba(190, 230, 255, .1); stroke: rgba(210, 240, 255, .6); stroke-width: 4; }
.sx-circuit-stem { stroke: #e0b84a; stroke-width: 9; stroke-linecap: round; }
.sx-circuit-ball { fill: #e8c04e; stroke: #8a5a00; stroke-width: 3; }
.sx-circuit-leaf { stroke: #ffe27a; stroke-width: 8; stroke-linecap: round; }
.sx-circuit-finger { fill: #f2c9a0; stroke: #a8724a; stroke-width: 3; }
.sx-circuit-loop { fill: none; stroke: #cfe6ff; stroke-width: 4; }
.sx-circuit-box { fill: #16264a; stroke-width: 5; }
.sx-circuit-tower { fill: #f2efe2; stroke: #8a8470; stroke-width: 4; }
.sx-circuit-beam { fill: #ffe27a; pointer-events: none; }
.sx-circuit-longstep { grid-template-columns: 3em 56px 1fr 56px; font-size: 20px; }
.sx-circuit-longstep .val { font-size: 19px; padding: 8px 2px; }
@media (orientation: portrait) {
  .sx-circuit-longstep .val { font-size: 17px; }
}
.sx-circuit-btns { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.sx-circuit-btns .mx-key { height: 72px; font-size: 24px; }
@media (orientation: landscape) {
  .sx-circuit-btns { grid-auto-flow: row; }
}

/* 電的應用（sci_elec.js、elec.gen.js 的圖） */
.mx-l.sx-elec-rod { stroke-width: 12; }
.sx-elec-kettle { fill: #d8dde6; stroke: #7b8596; stroke-width: 4; }
.sx-elec-handle { fill: none; stroke: #5b3a1c; stroke-width: 13; stroke-linecap: round; }
.sx-elec-coil { fill: none; stroke: #6d7380; stroke-width: 6; stroke-linejoin: round; }
.sx-elec-coil.hot { stroke: #ff6a2e; filter: drop-shadow(0 0 6px #ff6a2e); }
.sx-elec-tube { fill: rgba(255, 255, 255, .15); stroke: #cfe6ff; stroke-width: 3; }
.sx-elec-red { fill: #ef5a4c; }
.sx-elec-line { fill: none; stroke-width: 4; stroke-linejoin: round; }
.sx-elec-step { grid-template-columns: 3.4em 62px 1fr 62px; font-size: 21px; }
.sx-elec-step .mx-key { height: 62px; }
.sx-elec-step .val { font-size: 23px; padding: 6px 2px; }
.sx-elec-fuse { fill: none; stroke: #ffd24d; stroke-width: 5; }
.sx-elec-fuse.melt { stroke: #e5482e; stroke-dasharray: 8 30; }
.sx-circuit-lead.off { opacity: .35; }
.sx-circuit-lead.hot { stroke: #ff3b2e; stroke-width: 8; filter: drop-shadow(0 0 7px #ff5d5d); }
.sx-elec-app { fill: #1d2c52; stroke: #7f94bd; stroke-width: 3; }
.sx-elec-app.on { fill: #6b5a12; stroke: #ffd24d; }
.sx-elec-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sx-elec-toggle { height: 62px; display: grid; place-content: center; font-size: 20px; line-height: 1.15; }
.sx-elec-toggle span { font-size: 15px; font-weight: 800; color: var(--ink-2); }
.sx-elec-toggle.on { outline: 4px solid #ffd24d; background: linear-gradient(180deg, #fff3b0, #ffd24d); }
.sx-elec-meter { fill: #e8e8e0; stroke: #6d7380; stroke-width: 5; }
.sx-elec-digits { fill: #16264a; }
.sx-elec-digit { fill: #7dffb0; font-weight: 900; letter-spacing: .08em; font-family: ui-monospace, Menlo, monospace; }
.sx-elec-disc { fill: #bfc4cc; stroke: #6d7380; stroke-width: 3; }
.sx-elec-glass { fill: none; stroke: rgba(220, 240, 255, .8); stroke-width: 6; stroke-linejoin: round; }
.sx-elec-sollab { fill: #16264a; font-weight: 900; font-family: var(--font); paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 4px; }
.sx-elec-bridge { fill: none; stroke: rgba(220, 240, 255, .65); stroke-width: 20; stroke-linejoin: round; }
.sx-elec-needle { stroke: #e5482e; stroke-width: 4; stroke-linecap: round; }
.sx-elec-gauge { fill: #f4f1e4; stroke: #6d7380; stroke-width: 3; }
.sx-elec-psu { fill: #27406f; stroke: #8fd0ff; stroke-width: 3; }
.sx-elec-ion { stroke: #fff; stroke-width: 1; opacity: .9; }
.sx-elec-bubble { fill: rgba(255, 255, 255, .8); }
.sx-elec-wide .sx-table { font-size: 17px; }
.sx-elec-wide td:nth-child(-n+3) { white-space: nowrap; }

/* 能源（理化網站）：接在 sci.css 後面 */
.sx-energy .sx-svg { overflow: hidden; }
.sx-energy-tw { fill: #f4efe1; stroke: #6b5a3c; stroke-width: 3; }
.sx-energy-tws { fill: #d9534a; }
.sx-energy-room { fill: rgba(190, 230, 255, .35); stroke: #6b5a3c; stroke-width: 3; }
.sx-energy-lamp { fill: #ffe27a; }
.sx-energy-beam { fill: rgba(255, 236, 150, .55); }
.sx-energy-sea { fill: #1f5f8a; }
.sx-energy-sea.dark { fill: #102f4d; }
.sx-energy-need { fill: none; stroke: #fff; stroke-width: 2.5; }
.sx-energy-now { stroke: #ff7a5c; stroke-width: 2; }
.sx-energy-short { fill: rgba(255, 70, 50, .5); }
.sx-energy-storm { fill: #101a30; }
.sx-energy-drop { stroke: rgba(170, 210, 255, .5); stroke-width: 2.5; }
.sx-energy-rain { animation: sxenrain .55s linear infinite; }
@keyframes sxenrain { from { transform: translate(0, -26px); } to { transform: translate(-8px, 0); } }
.sx-energy-ray { stroke: #ffe27a; stroke-width: 4; }
.sx-energy-ray.hot { stroke: #fff; stroke-width: 9; filter: drop-shadow(0 0 8px #ffe27a); }
.sx-energy-over { color: #c0392b; font-weight: 900; }
.sx-energy-srcs { grid-template-columns: 1fr 1fr; }
.sx-energy-src { min-height: 58px; font-size: 21px; border-left: 12px solid var(--c); }
.sx-energy-src.done { filter: grayscale(.45); opacity: .75; }
.sx-energy-src.on { filter: none; opacity: 1; outline: 4px solid #ffd24d; outline-offset: 2px; } /* 正在模擬的那一種 */
.sx-energy-srcs.busy .sx-energy-src:not(.on) { opacity: .45; }
.sx-energy-mix .sx-step { grid-template-columns: 3.4em 56px 1fr 56px; font-size: 20px; gap: 6px; }
.sx-energy-mix .sx-step .mx-key { height: 46px; font-size: 26px; }
.sx-energy-mix .sx-step .val { padding: 3px 2px; font-size: 21px; }
.sx-energy-mix { gap: 5px; }
.sx-energy .sx-ctl .sx-fire { min-height: 60px; }
.sx-energy .sx-glabel { font-size: 20px; }
.sx-energy-tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; flex: 1; min-height: 0; grid-auto-rows: minmax(72px, 1fr); }
.sx-energy-tool { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 4px 6px; font-size: 21px; }
.sx-energy-tool img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.sx-energy-tool.used { opacity: .7; }
.sx-energy-tool.wrong { filter: grayscale(1); opacity: .5; }
.sx-energy-figbox { position: absolute; inset: 8% 6%; border-radius: 14px; background: rgba(8, 16, 38, .92); box-shadow: 0 0 0 3px rgba(150, 200, 255, .4); overflow: hidden; z-index: 3; }
.sx-energy-book { position: absolute; inset: 10px; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: #fdf6e0; box-shadow: var(--shadow), inset 0 0 0 4px #c9a56a; color: var(--ink); overflow: hidden; }
.sx-energy-book .hd { font-size: 26px; font-weight: 900; text-align: center; }
.sx-energy-pages { flex: 1; min-height: 0; overflow: auto; display: grid; gap: 6px; align-content: start; }
.sx-energy-page { display: grid; grid-template-columns: 6.4em 1fr; gap: 8px; padding: 6px 8px; border-bottom: 2px dashed #d7c8a0; font-size: 20px; font-weight: 800; line-height: 1.35; }
.sx-energy-page b { color: #8a4b12; }
.sx-energy-page.now { background: #fff3c4; border-radius: 8px; }
.sx-energy-leave { min-height: 110px; width: 100%; font-size: 30px; }
.sx-energy-dam { fill: #9a9a8d; stroke: #55554c; stroke-width: 3; }
.sx-energy-res { opacity: .95; }
.sx-energy-pipe { stroke: #55554c; stroke-width: 22; stroke-linecap: round; }
.sx-energy-flow { stroke: #bfe8fb; stroke-linecap: round; }
.sx-energy-wheel { fill: rgba(255, 255, 255, .15); stroke: #5b3a1c; stroke-width: 6; }
.sx-energy-spoke { stroke: #5b3a1c; stroke-width: 5; }
@media (orientation: portrait) {
  .sx-energy .sx-tw { max-height: 130px; }
  .sx-energy-tools { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 84px; flex: none; }
  .sx-energy-tool { flex-direction: column; font-size: 19px; gap: 2px; }
  .sx-energy-tool img { width: 42px; height: 42px; }
  .sx-energy-mix .sx-step .mx-key { height: 44px; }
}

/* 溫度與熱（只有理化網站載入） */
.sx-heat-bg { fill: #2a2740; }
.sx-heat-chart { fill: rgba(8, 16, 38, .7); stroke: rgba(180, 220, 255, .3); stroke-width: 2; }
.sx-heat-line { fill: none; stroke-width: 4.5; stroke-linejoin: round; stroke-linecap: round; }
.sx-heat-l1 { stroke: #7fe3ff; }
.sx-heat-l2 { stroke: #ffd24d; }
.sx-heat-l3 { stroke: #ff7f6a; }
.sx-heat-pot { fill: none; stroke: #c9d3e2; stroke-width: 7; stroke-linejoin: round; }
.sx-heat-water { fill: rgba(92, 192, 230, .7); }
.sx-heat-ice { fill: #e4f6ff; stroke: #9fd4ee; stroke-width: 2; }
.sx-heat-bub { fill: rgba(255, 255, 255, .75); }
.sx-heat-tube { fill: #f6f9fd; stroke: #9aa8bb; stroke-width: 2; }
.sx-heat-bulb { fill: #e5482e; stroke: #9aa8bb; stroke-width: 2; }
.sx-heat-col { fill: #e5482e; }
.sx-heat-steel { fill: #8f9bb0; stroke: #4c5668; stroke-width: 2; }
.sx-heat-fire { fill: #ff8a2e; }
.sx-heat-fire2 { fill: #ffe27a; }
.sx-heat-flick { animation: sxhflick .32s ease-in-out infinite alternate; transform-origin: 0 0; }
@keyframes sxhflick { from { transform: scale(1, 1); } to { transform: scale(1.06, .92); } }
.sx-heat-bag { fill: rgba(220, 110, 90, .45); stroke: #c9574a; stroke-width: 6; }
.sx-heat-sand { fill: #e0c07a; }
.sx-heat-track { fill: rgba(8, 16, 38, .7); stroke: rgba(180, 220, 255, .4); stroke-width: 2; }
.sx-heat-fill { fill: #ff9d5c; }
.sx-heat-sky { fill: #8fd2f2; }
.sx-heat-nightsky { fill: #16264a; }
.sx-heat-seaw { fill: #3c9dc4; }
.sx-heat-sun { fill: #ffd24d; stroke: #ffb300; stroke-width: 6; }
.sx-heat-moon { fill: #f4f1d6; }
.sx-heat-wind { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.sx-heat-wind.bad { stroke: #ff9d8a; }
.sx-heat-ground { fill: #3a4a35; }
.sx-heat-roof { fill: #7a4e1a; stroke: #4a2d0e; stroke-width: 4; }
.sx-heat-wallm { fill: #99a3b3; stroke: #4c5668; stroke-width: 4; }
.sx-heat-wallw { fill: #b77f43; stroke: #6d4b22; stroke-width: 4; }
.sx-heat-wallh { fill: #d9b566; stroke: #7a5310; stroke-width: 4; }
.sx-heat-lin0 { fill: #33363f; }
.sx-heat-lin1 { fill: #dfe6f2; }
.sx-heat-door { fill: #8b5a2b; stroke: #4a2d0e; stroke-width: 3; }
.sx-heat-gap { stroke: #7fe3ff; stroke-width: 8; stroke-dasharray: 8 8; }
.sx-heat-gap.off { stroke: #4a2d0e; stroke-dasharray: none; }
.sx-heat-arrow { fill: none; stroke-linecap: round; stroke-width: 6; opacity: .9; }
.sx-heat-arrow.c { stroke: #ff9d5c; }
.sx-heat-arrow.v { stroke: #7fe3ff; }
.sx-heat-arrow.r { stroke: #ffe27a; }
.sx-heat-need { stroke: #6ee7a2; stroke-width: 3; stroke-dasharray: 8 6; }
.sx-heat-al { fill: #cfd6df; stroke: #79848f; stroke-width: 3; }
.sx-heat-fe { fill: #7c8590; stroke: #3c434b; stroke-width: 3; }
.sx-heat-cu { fill: #c97a42; stroke: #7a4318; stroke-width: 3; }
.sx-heat-dot { fill: #ffd24d; stroke: #fff; stroke-width: 2; }
.sx-heat-dot.w { fill: #7fe3ff; }

/* 電流與磁現象（sci_magnet.js、magnet.gen.js 的圖） */
.mx-c.sx-magnet-wire { fill: #16264a; stroke: #ffd24d; stroke-width: 4; }
.sx-magnet-n { fill: #e5482e; stroke: #fff; stroke-width: 2; }
.sx-magnet-s { fill: #2a7fd6; stroke: #fff; stroke-width: 2; }
.sx-magnet-dial { fill: #f4f1e4; stroke: #8a7a50; stroke-width: 4; }
.sx-magnet-tipn { fill: #e5482e; }
.sx-magnet-tips { fill: #9aa3ad; }
.sx-magnet-fil { stroke: #d8dfe8; stroke-width: 2.5; stroke-linecap: round; }
.sx-magnet-line { fill: none; stroke: #7fd4ff; stroke-width: 2.5; }
.sx-magnet-arrow { fill: #ffd24d; stroke: #5a3a00; stroke-width: 1; }
.sx-magnet-ring { fill: none; stroke: #7fd4ff; stroke-width: 2.5; }
.sx-magnet-wirec { fill: #27406f; stroke: #ffd24d; stroke-width: 4; }
.sx-magnet-dot { fill: #ffd24d; }
.sx-magnet-cross { stroke: #ffd24d; stroke-width: 4; stroke-linecap: round; }
.sx-magnet-cover { fill: #4a5a7a; stroke: #cfe6ff; stroke-width: 3; }
.sx-magnet-core { fill: #6f7680; stroke: #3d434b; stroke-width: 3; }
.sx-magnet-turn { stroke: #e0924a; stroke-width: 9; stroke-linecap: round; }
.sx-magnet-cur { stroke: #ffd24d; stroke-width: 5; }
.sx-magnet-curh { fill: #ffd24d; }
.sx-magnet-nail { fill: #c7ccd6; stroke: #5b626b; stroke-width: 1.5; }
.sx-magnet-field { stroke: rgba(127, 212, 255, .5); stroke-width: 2.5; }
.sx-magnet-arm { stroke: rgba(255, 255, 255, .55); stroke-width: 8; stroke-linecap: round; }
.sx-magnet-end { fill: #ffd24d; font-weight: 900; font-family: var(--font); paint-order: stroke; stroke: rgba(6, 12, 30, .8); stroke-width: 3px; }
.sx-magnet-wirebar { fill: #e0924a; stroke: #7a4a22; stroke-width: 3; }
.sx-magnet-wirebar.under { opacity: .85; stroke-dasharray: 8 6; }
/* 安培右手定則字卡：程式往上接的導線，顏色照 Gemini 畫的導線（2026-11-10） */
.sx-wire-rod { fill: #d9a83c; stroke: #5a3a14; stroke-width: 2; }
.sx-wire-hi { stroke: #fde39a; stroke-width: 2; }
/* 馬達字卡的旋轉箭頭（2026-11-10） */
.sx-rot { fill: none; stroke: #ffd24d; stroke-width: 4; }
.sx-force.gold { stroke: #ffd24d; }
.sx-force-h.gold { fill: #ffd24d; }
/* 小六家長試玩版（2026-11-11，只有試玩檔 grade6 才會用到）：簡易馬達的線圈、電磁起重機 */
.sx-rotor-turn { stroke: #f2c08a; stroke-width: 4; stroke-linecap: round; opacity: .85; }
.sx-crane-rail { stroke: #9aa3ad; stroke-width: 6; }
.sx-crane-rope { stroke: #d8dfe8; stroke-width: 3; }
.sx-crane-trolley { fill: #f0b43c; stroke: #5a3a00; stroke-width: 2; }
.sx-crane-body { fill: #6f7680; stroke: #3d434b; stroke-width: 3; }
.sx-crane-head.on .sx-crane-body { stroke: #ffd24d; stroke-width: 5; filter: drop-shadow(0 0 8px rgba(255, 210, 77, .85)); }
.sx-crane-iron { fill: #8a6f5c; stroke: #3a2a20; stroke-width: 2.5; }
.sx-crane-al { fill: #dfe4ea; stroke: #8a9099; stroke-width: 2.5; }
.sx-crane-wood { fill: #b7834b; stroke: #6b4423; stroke-width: 2.5; }
.sx-crane-plate { fill: #5d636d; stroke: #22262b; stroke-width: 2.5; }
.sx-crane-bin { fill: rgba(63, 127, 196, .35); stroke: #7fb6ff; stroke-width: 4; }
.sx-crane-wheel { fill: #222; stroke: #9aa3ad; stroke-width: 4; }
.sx-magnet-wirebar.see { opacity: .72; }
.sx-magnet-core.sx-rotor-on { fill: #8a6a4a; stroke: #ffd24d; stroke-width: 4; }

/* 物質的世界（只有理化網站載入） */
.sx-matter-bg { fill: #1b3040; }
.sx-matter-glass { fill: none; stroke: rgba(225, 242, 255, .9); stroke-width: 5; stroke-linejoin: round; }
.sx-matter-mud { fill: #8d7350; }
.sx-matter-mud2 { fill: rgba(190, 170, 130, .55); }
.sx-matter-mudw { fill: rgba(160, 190, 200, .45); }
.sx-matter-clear { fill: rgba(120, 205, 240, .5); }
.sx-matter-sea { fill: rgba(92, 192, 230, .65); }
.sx-matter-seaflat { fill: #3c9dc4; }
.sx-matter-funnel { fill: rgba(225, 242, 255, .18); stroke: rgba(225, 242, 255, .85); stroke-width: 4; }
.sx-matter-filter { stroke: #ffe9b8; stroke-width: 9; }
.sx-matter-p0 { fill: #6c6456; stroke: #36302a; stroke-width: 1.5; }
.sx-matter-p1 { fill: #c39a63; stroke: #7a5a2c; stroke-width: 1; }
.sx-matter-p2 { fill: #8d7350; }
.sx-matter-p3 { fill: #fff; }
.sx-matter-chart { fill: rgba(8, 16, 38, .7); stroke: rgba(180, 220, 255, .3); stroke-width: 2; }
.sx-matter-saltbit { fill: #f6f9fd; stroke: #9aa8bb; stroke-width: 1.5; }
.sx-matter-sugarbit { fill: #fff6d6; stroke: #c7a95c; stroke-width: 1.5; }
.sx-matter-dish { fill: rgba(240, 240, 240, .25); stroke: #e8e8e8; stroke-width: 7; stroke-linecap: round; }
.sx-matter-op { height: 58px; font-size: 22px; }
.sx-matter-on { outline: 4px solid #ffd24d; }
.sx-matter-pipe { fill: none; stroke: rgba(225, 242, 255, .85); stroke-width: 9; stroke-linejoin: round; }
.sx-matter-pipe2 { fill: none; stroke: #e8c88a; stroke-width: 9; stroke-linejoin: round; }
.sx-matter-sleeve { fill: none; stroke: rgba(120, 140, 170, .55); stroke-width: 34; }
.sx-matter-sleeve.on { stroke: rgba(70, 170, 240, .7); }
.sx-matter-thermo { stroke: #ff5d5d; stroke-width: 6; stroke-linecap: round; }
.sx-matter-vapor { fill: rgba(240, 248, 255, .85); }
.sx-matter-vapor.on { fill: #7fd3f7; }
.sx-matter-fire { fill: #ff8a2e; }
.sx-matter-fire2 { fill: #ffe27a; }
.sx-matter-flick { animation: sxmflick .32s ease-in-out infinite alternate; transform-origin: 0 0; }
@keyframes sxmflick { from { transform: scale(1, 1); } to { transform: scale(1.06, .92); } }
.sx-matter-steel { fill: #8f9bb0; stroke: #4c5668; stroke-width: 2; }
.sx-matter-armline { stroke: #c9d3e2; stroke-width: 12; stroke-linecap: round; }
.sx-matter-cabin { fill: rgba(190, 230, 255, .07); stroke: rgba(210, 240, 255, .55); stroke-width: 5; stroke-dasharray: 16 7; }
.sx-matter-adj { display: grid; grid-template-columns: 2em 1fr 1fr 1.5fr 1fr 1fr; gap: 5px; align-items: center; font-size: 21px; font-weight: 900; color: var(--ink); }
.sx-matter-adj .mx-key { height: 58px; font-size: 19px; }
.sx-matter-adj .val { padding: 8px 2px; text-align: center; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 3px #c9b98f; font-size: 21px; }
.sx-matter-wool { fill: #c7ccd6; stroke: #79848f; stroke-width: 3; stroke-dasharray: 3 3; }
.sx-matter-rust { fill: #b4602c; stroke: #6d3412; stroke-width: 3; stroke-dasharray: 3 3; }
.sx-matter-tick { stroke: rgba(225, 242, 255, .9); stroke-width: 2.5; }
.sx-matter-lime { fill: rgba(225, 245, 255, .55); }
.sx-matter-limeb { fill: rgba(240, 240, 240, .85); }
.sx-matter-row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sx-matter-b.mx-key.fire { grid-column: auto; height: 62px; font-size: 26px; }
.sx-matter-wick { fill: #c98a3e; stroke: #7a4e1a; stroke-width: 3; }
.sx-matter-gas { fill: rgba(220, 225, 235, .28); }
.sx-matter-candle { fill: #fff2d0; stroke: #c7a95c; stroke-width: 2; }
.sx-matter-ground { fill: #4b3c28; }
.sx-matter-log { fill: #7a4e1a; stroke: #4a2d0e; stroke-width: 3; }
.sx-matter-pan { fill: #4c5668; stroke: #252c38; stroke-width: 3; }
.sx-matter-grass { fill: none; stroke: #c7b45c; stroke-width: 5; stroke-linecap: round; }
.sx-matter-wire { fill: none; stroke: #e5482e; stroke-width: 7; stroke-linecap: round; }
.sx-matter-dot { fill: #ffd24d; stroke: #fff; stroke-width: 2; }
.sx-matter-dot2 { fill: #7fe3ff; stroke: #fff; stroke-width: 2; }
@media (orientation: portrait) {
  .sx-matter-adj { grid-template-columns: 1.6em 1fr 1fr 1.5fr 1fr 1fr; font-size: 19px; }
  .sx-matter-op { height: 54px; }
}

/* 基本測量（只有理化網站載入） */
.sx-measure-bg { fill: #1d3048; }
.sx-measure-ruler { fill: #f3e2b3; stroke: #8a6a2c; stroke-width: 2; }
.sx-measure-tick { stroke: #4a3412; stroke-width: 2; }
.sx-measure-tick2 { stroke: rgba(220, 235, 255, .7); stroke-width: 2; }
.sx-measure-tick3 { stroke: rgba(235, 248, 255, .95); stroke-width: 2.5; }
.sx-measure-zero { stroke: #e5482e; stroke-width: 5; }
.sx-measure-dial { fill: #fff8e4; stroke: #8a6a2c; stroke-width: 2; }
.sx-measure-num { fill: #4a3412; font-weight: 900; font-family: var(--font); }
.sx-measure-num2 { fill: #27406f; font-weight: 900; font-family: var(--font); }
.sx-measure-crack { fill: none; stroke: #8a6a2c; stroke-width: 3; }
.sx-measure-plank { fill: #c98a3e; stroke: #7a4e1a; stroke-width: 2; }
.sx-measure-loupe { fill: #dff0ff; stroke: #ffd24d; stroke-width: 5; }
.sx-measure-hull { fill: #8b5a2b; stroke: #5a3a18; stroke-width: 3; }
.sx-measure-hole { fill: #0b1530; stroke: #3a2410; stroke-width: 2; }
.sx-measure-gap { fill: rgba(229, 72, 46, .55); stroke: #e5482e; stroke-width: 2; }
.sx-measure-metal { fill: #8f9bb0; stroke: #4c5668; stroke-width: 2; }
.sx-measure-beam { stroke: #c9d3e2; stroke-width: 10; stroke-linecap: round; }
.sx-measure-ptr { stroke: #27406f; stroke-width: 5; stroke-linecap: round; }
.sx-measure-pan { fill: #dfe6f2; stroke: #6a7486; stroke-width: 2; }
.sx-measure-weight { fill: #e8b53c; stroke: #8a5a00; stroke-width: 1.5; }
.sx-measure-weights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sx-measure-w { height: 54px; font-size: 22px; }
/* 手機上整頁縮到約 0.59 倍：砝碼要點得到，至少 52px 高 */
.sx-measure-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 52px; align-items: center; }
.sx-measure-chip { min-height: 52px; padding: 4px 10px; border-radius: 10px; background: #e8b53c; color: #3a2410; font-size: 20px; font-weight: 900; }
.sx-measure-none { color: var(--ink-2); font-size: 16px; font-weight: 800; }
.sx-measure-water { fill: rgba(92, 192, 230, .55); }
.sx-measure-brine { fill: rgba(190, 225, 215, .6); }
.sx-measure-glass { fill: none; stroke: rgba(225, 242, 255, .9); stroke-width: 5; }
.sx-measure-was { stroke: #ffd24d; stroke-width: 2.5; stroke-dasharray: 8 7; }
.sx-measure-rock { fill: #6c7688; stroke: #3c4454; stroke-width: 3; }
.sx-measure-wood { fill: #d7a15a; stroke: #7a4e1a; stroke-width: 3; }
.sx-measure-salt { fill: #f4f7fb; stroke: #9aa8bb; stroke-width: 3; }
.sx-measure-al { fill: #cfd6df; stroke: #79848f; stroke-width: 3; }
.sx-measure-fe { fill: #7c8590; stroke: #3c434b; stroke-width: 3; }
.sx-measure-cu { fill: #c97a42; stroke: #7a4318; stroke-width: 3; }
.sx-measure-pb { fill: #5a6068; stroke: #2c3036; stroke-width: 3; }
.sx-measure-glassb { fill: rgba(170, 225, 225, .75); stroke: #5c9a9a; stroke-width: 3; }
.sx-measure-chart { fill: rgba(8, 16, 38, .7); stroke: rgba(180, 220, 255, .3); stroke-width: 2; }
.sx-measure-dot { fill: #ffd24d; stroke: #fff; stroke-width: 2; }
.sx-measure-mline { stroke: #ffd24d; stroke-width: 3.5; }
.sx-measure-refline { stroke: #7fe3ff; stroke-width: 3; stroke-dasharray: 8 6; }
.sx-measure-sea { fill: rgba(92, 192, 230, .4); }
.sx-measure-rope { fill: none; stroke: #e8c88a; stroke-width: 6; stroke-linecap: round; }
.sx-measure-row3 { grid-template-columns: repeat(3, 1fr); }
.sx-measure-m { height: 66px; font-size: 21px; }
.sx-measure-m:disabled { opacity: .55; }
@media (orientation: portrait) {
  .sx-measure-w { height: 50px; }
}

/* 直線運動（理化網站）：接在 sci.css 後面 */
.sx-motion .sx-svg { overflow: hidden; }
.sx-motion-road { fill: #8b92a0; }
.sx-motion-edge { stroke: #f4f4f4; stroke-width: 4; }
.sx-motion-num { fill: #fff; font-weight: 800; font-family: var(--font); paint-order: stroke; stroke: rgba(30, 30, 40, .8); stroke-width: 3px; }
.sx-motion-lab { fill: #27406f; font-weight: 900; font-family: var(--font); paint-order: stroke; stroke: #fff; stroke-width: 5px; }
.sx-motion-live { fill: none; stroke: #ff6a4d; stroke-width: 4; stroke-linejoin: round; }
.sx-motion-target { fill: none; stroke: #ffe27a; stroke-width: 4; stroke-dasharray: 11 8; }
.sx-motion-cursor { stroke: rgba(255, 255, 255, .75); stroke-width: 2; }
.sx-motion-disp { stroke: #e5482e; stroke-width: 7; stroke-linecap: round; }
.sx-motion-disph { fill: #e5482e; }
.sx-motion-leg { stroke: #2f7de0; stroke-width: 6; stroke-linecap: round; }
.sx-motion-ramp { fill: #c7a06a; stroke: #6d4b22; stroke-width: 3; }
.sx-motion-tape { fill: #fbf3dc; stroke: #c9b98f; stroke-width: 2; }
.sx-motion-tape.gold { fill: #fff0bd; stroke: #d6a92c; }
.sx-motion-dot { fill: #27406f; }
.sx-motion-dot.gold { fill: #c28a00; }
.sx-motion-pedals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; min-height: 110px; }
.sx-motion-pedal { font-size: 25px; color: #fff; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.sx-motion-pedal.gas { background: linear-gradient(180deg, #51cf66, #2b8a3e); box-shadow: 0 4px 0 #1c5e2a; }
.sx-motion-pedal.brake { background: linear-gradient(180deg, #ff6b6b, #c92a2a); box-shadow: 0 4px 0 #861b1b; }
.sx-motion-pedal.on { filter: brightness(1.25); transform: translateY(3px); box-shadow: none; }
.sx-motion .sx-glabel { padding: 8px; border-radius: 12px; background: rgba(255, 248, 230, .97); font-size: 19px; }
.sx-motion .mx-p > .sx-fire { min-height: 66px; width: 100%; }
.sx-motion .sx-step { font-size: 21px; }
.sx-motion .sx-step .mx-key { height: 56px; font-size: 30px; }
.sx-motion .sx-step .val { padding: 6px 4px; font-size: 24px; }
.sx-motion .sx-ctl { gap: 6px; padding: 8px 10px; }
.sx-motion .sx-ctl .sx-fire { min-height: 66px; }
@media (orientation: portrait) {
  .sx-motion .sx-step { grid-template-columns: 3.1em 46px 1fr 46px; gap: 4px; font-size: 19px; }
  .sx-motion .sx-step .mx-key { height: 50px; }
  .sx-motion .sx-tw { max-height: 150px; }
  .sx-motion .sx-ctl .sx-fire { min-height: 58px; }
  .sx-motion-pedals { flex: none; grid-auto-rows: 110px; }
  .sx-motion .mx-p > .sx-fire { grid-column: 1 / -1; }
  .sx-motion .mx-p > .sx-glabel { grid-column: 1 / -1; }
  .sx-motion .mx-p > .sx-goals { grid-column: 1 / -1; }
  .sx-motion .mx-p > .sx-motion-pedals { grid-column: 1 / -1; }
}

/* 有機化合物（class 開頭 sx-organic-） */
.sx-organic-dot { fill: rgba(190, 220, 255, .35); }
.sx-organic-C, .mx-c.sx-organic-C { fill: #3a3f4d; stroke: #cfd8e6; stroke-width: 3; }
.sx-organic-H, .mx-c.sx-organic-H { fill: #f5f5f5; stroke: #9aa3b5; stroke-width: 3; }
.sx-organic-O, .mx-c.sx-organic-O { fill: #e5483e; stroke: #ffd5d0; stroke-width: 3; }
.mx-c.sx-organic-H + .mx-t.big { fill: #101a30; stroke: none; }
.sx-organic-bond { stroke: #e8eefc; stroke-width: 8; stroke-linecap: round; }
.sx-organic-lab { fill: #fff; font-weight: 900; font-family: var(--font); pointer-events: none; }
.sx-organic-lab.dark { fill: #1c2440; }
.sx-organic-free { fill: #ff5d5d; stroke: #fff; stroke-width: 1.5; }
.sx-organic-hit { fill: transparent; cursor: pointer; }
.sx-organic-ghost { fill: rgba(255, 255, 255, .1); stroke: rgba(255, 226, 122, .7); stroke-width: 2; stroke-dasharray: 6 5; }
.sx-organic-pick { height: 64px; font-size: 19px; display: flex; align-items: center; justify-content: center; gap: 2px; }
.sx-organic-pick.on { background: linear-gradient(180deg, #ffe9a8, #ffc94d); box-shadow: 0 4px 0 #b08a24; }
.sx-organic-ball { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-style: normal; font-weight: 900; font-size: 20px; flex: none; }
.sx-organic-ball.C { background: #3a3f4d; color: #fff; }
.sx-organic-ball.H { background: #f5f5f5; color: #1c2440; box-shadow: inset 0 0 0 2px #9aa3b5; }
.sx-organic-ball.O { background: #e5483e; color: #fff; }
/* 肥皂 */
.sx-organic-soap { fill: #fff6d8; stroke: #c9b98f; stroke-width: 3; }
.sx-organic-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sx-organic-step { min-height: 60px; font-size: 19px; line-height: 1.2; padding: 4px; }
.sx-organic-step:disabled { opacity: .4; }
.sx-organic-cloth { fill: #e8d7b4; }
.sx-organic-oil { fill: #e8b53c; stroke: #a77a14; stroke-width: 3; opacity: .92; }
.sx-organic-tail { stroke: #ff9d3c; stroke-width: 9; stroke-linecap: round; }
.sx-organic-head { fill: #6ea8ff; stroke: #fff; stroke-width: 3; }
.sx-organic-foam { fill: rgba(255, 255, 255, .85); stroke: #cde6f6; stroke-width: 2; }
.sx-organic-scum { fill: #d8d4c4; stroke: #8f8a7c; stroke-width: 1; }
/* 塑膠 */
.sx-organic-pol { fill: rgba(150, 215, 255, .14); stroke: rgba(210, 240, 255, .6); stroke-width: 3; }
.sx-organic-chain { stroke: #ffd27a; stroke-width: 5; stroke-linecap: round; fill: none; }
.sx-organic-node { fill: #ff9d5c; stroke: #fff; stroke-width: 1.5; }
.sx-organic-belt { fill: #4a5568; stroke: #2d3546; stroke-width: 4; }
.sx-organic-roller { fill: #8e9bb3; stroke: #2d3546; stroke-width: 3; }
.sx-organic-crate { fill: #fff6d8; stroke: #a8976d; stroke-width: 4; }
.sx-organic-bin { stroke: #fff; stroke-width: 3; }
.sx-organic-bin.b0 { fill: #2fae66; }
.sx-organic-bin.b1 { fill: #d9467a; }
.sx-organic-bin.b2 { fill: #3f8de0; }
.sx-organic-bins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sx-organic-binbtn { height: 92px; font-size: 21px; line-height: 1.2; padding: 4px; }
/* 加熱實驗 */
.sx-organic-dish { fill: #e9e4d6; stroke: #8f8a7c; stroke-width: 4; }
.sx-organic-pow { stroke: #b8b3a4; stroke-width: 2; }
.sx-organic-fun { fill: rgba(200, 230, 255, .2); stroke: rgba(225, 245, 255, .9); stroke-width: 4; }
.sx-organic-urow { display: grid; grid-template-columns: 1.6em 1.2fr 1fr 1fr; gap: 6px; align-items: center; font-size: 24px; font-weight: 900; color: var(--ink); text-align: center; }

/* 力與壓力（理化網站）：接在 sci.css 後面 */
.sx-press .sx-svg { overflow: hidden; }
.sx-press-ruler { fill: #f6ecd6; stroke: #8a6a35; stroke-width: 2; }
.sx-press-tick { stroke: #5a4320; stroke-width: 2; }
.sx-press-num { fill: #5a4320; font-weight: 800; font-family: var(--font); }
.sx-press-zero { stroke: #7fe3ff; stroke-width: 2.5; stroke-dasharray: 7 6; }
.sx-press-zero.on { stroke: #ffd24d; }
.sx-press-coil { fill: none; stroke: #d7dee8; stroke-width: 4.5; stroke-linejoin: round; }
.sx-press-coil.bad { stroke: #ff7a5c; }
.sx-press-coil.dark { stroke: #5a6474; stroke-width: 3.5; }
.sx-press-wt { fill: #8d97a8; stroke: #4f5868; stroke-width: 2; }
.sx-press-wtt { fill: #fff; font-weight: 900; font-family: var(--font); paint-order: stroke; stroke: rgba(40, 24, 8, .85); stroke-width: 3px; }
.sx-press-dot { fill: #ffd24d; stroke: #8a5a00; stroke-width: 2; }
.sx-press-dot.bad { fill: #ff7a5c; stroke: #8a2f25; }
.sx-press-ore { fill: #8d7bb0; stroke: #4c3d6b; stroke-width: 3; }
.sx-press-wood { fill: #c7925a; stroke: #6d4b22; stroke-width: 3; }
.sx-press-rope { stroke: #6d4b22; stroke-width: 4; }
.sx-press-hand { fill: #ffb27a; stroke: #8a5a30; stroke-width: 3; }
.sx-press-lab { fill: #27406f; font-weight: 900; font-family: var(--font); paint-order: stroke; stroke: #fff; stroke-width: 5px; }
.sx-press-log { fill: #a9794a; stroke: #5b3a1c; stroke-width: 2; }
.sx-press-limit { stroke: #ffd24d; stroke-width: 3; stroke-dasharray: 9 7; }
.sx-press-limit.bad { stroke: #ff7a5c; }
.sx-press-oil { fill: #d9a441; opacity: .85; }
.sx-press-wall { fill: none; stroke: #cfd6e2; stroke-width: 5; }
.sx-press-hull { fill: #b9834c; stroke: #5b3a1c; stroke-width: 3; }
.sx-press-plank { stroke: rgba(70, 40, 15, .4); stroke-width: 2; }
.sx-press-hg { fill: #aeb6c2; }
.sx-press-hgc { fill: #c9d0da; }
.sx-press-glass { fill: rgba(200, 235, 255, .16); stroke: rgba(220, 240, 255, .8); stroke-width: 3; }
.sx-press-water { fill: #4ea9d8; }
.sx-press-wline { stroke: rgba(255, 255, 255, .7); stroke-width: 3; }
.sx-press-bub { fill: rgba(255, 255, 255, .75); }
.sx-press-sponge { fill: #f7d862; stroke: #a8862a; stroke-width: 3; }
.sx-press-brick { fill: #c8644a; stroke: #6e2f20; stroke-width: 2.5; }
.sx-press-brick.side { fill: #a94f39; }
.sx-press-brick.top { fill: #dc7f64; }
.sx-press-over { color: #c0392b; }
.sx-press-hold { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.sx-press-hold.on { filter: brightness(1.2); transform: translateY(3px); }
/* 條件比較多，調整鈕要矮一點才放得下 */
.sx-press .sx-step { font-size: 21px; }
.sx-press .sx-step .mx-key { height: 56px; font-size: 30px; }
.sx-press .sx-step .val { padding: 6px 4px; font-size: 24px; }
.sx-press .sx-ctl { gap: 6px; padding: 8px 10px; }
.sx-press .sx-ctl .sx-fire { min-height: 66px; }
@media (orientation: portrait) {
  .sx-press .sx-step { grid-template-columns: 3.1em 46px 1fr 46px; gap: 4px; font-size: 19px; }
  .sx-press .sx-step .mx-key { height: 50px; }
  .sx-press .sx-tw { max-height: 150px; }
  .sx-press .sx-ctl .sx-fire { min-height: 58px; }
}

/* 反應速率與平衡（class 開頭 sx-rate-） */
.sx-rate-box { fill: rgba(150, 215, 255, .18); stroke: rgba(210, 240, 255, .85); stroke-width: 4; }
.sx-rate-hot { fill: #ff9d5c; stroke: #fff; stroke-width: 1.5; }
.sx-rate-cool { fill: #6fb5f0; stroke: #fff; stroke-width: 1.5; }
.sx-rate-solid { fill: #e8e6df; stroke: #8f8a7c; stroke-width: 2; }
.sx-rate-ball { fill: #ff7b8b; stroke: #fff; stroke-width: 3; }
.sx-rate-neck { stroke: #cfd8e6; stroke-width: 5; }
.sx-rate-goal { fill: rgba(255, 210, 77, .85); stroke: #fff; stroke-width: 2; }
.sx-rate-goald { fill: #ffd24d; stroke: #fff; stroke-width: 3; }
.sx-rate-mn { fill: #2f2f38; stroke: #8f8f9a; stroke-width: 1.5; }
.sx-rate-tube { stroke: rgba(225, 245, 255, .95); stroke-width: 6; }
.sx-rate-swatch { stroke: #ffd24d; stroke-width: 6; }
.sx-rate-no2 { fill: #96401a; stroke: #f5d8c6; stroke-width: 1; }
.sx-rate-n2o4 { fill: rgba(255, 255, 255, .7); stroke: #9aa3b5; stroke-width: 1; }
.sx-rate-top { fill: #f3f6fa; stroke: #cfd8e6; stroke-width: 8; }
.sx-rate-x { stroke: #27406f; stroke-width: 14; stroke-linecap: round; }
.sx-rate-cloud { fill: #e9d868; }

/* 理化求生記：化學反應（天平、容器、拼裝台的計數） */
.sx-react-beam { stroke: #ffd24d; stroke-width: 9; stroke-linecap: round; }
.sx-react-str { fill: none; stroke: rgba(230, 240, 255, .7); stroke-width: 2.5; }
.sx-react-glass { fill: rgba(190, 235, 255, .16); stroke: #d7f1ff; stroke-width: 3.5; }
.sx-react-liq { fill: rgba(90, 190, 240, .55); }
.sx-react-wool { fill: rgb(120, 120, 125); stroke: rgba(255, 255, 255, .5); stroke-width: 2; stroke-dasharray: 3 3; }
.sx-react-ppt { fill: #fff; stroke: rgba(0, 0, 0, .25); stroke-width: 1; }
.sx-react-o2 { fill: #ff8a7a; stroke: #fff; stroke-width: 1; }
.sx-react-ok { fill: #6ee7a2; font-weight: 900; font-family: var(--font); paint-order: stroke; stroke: rgba(6, 12, 30, .8); stroke-width: 3px; }
.sx-react-bad { fill: #ff8a7a; font-weight: 900; font-family: var(--font); paint-order: stroke; stroke: rgba(6, 12, 30, .8); stroke-width: 3px; }
.sx-react-cover { fill: #0d1a36; stroke: none; }

/* 理化求生記：氧化與還原（卡牌、熔爐、防鏽試管、燃燒台） */
.sx-redox-hand { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sx-redox-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 124px; padding: 8px; border: 0; border-radius: 16px; background: linear-gradient(180deg, #fff8e6, #ffe3a8); box-shadow: 0 5px 0 #b98a2e, var(--shadow); color: var(--ink); cursor: pointer; font-family: var(--font); }
.sx-redox-card b { font-size: 46px; line-height: 1.1; color: #8a2f25; font-weight: 900; }
.sx-redox-card span { font-size: 25px; font-weight: 900; }
.sx-redox-card:disabled { filter: grayscale(.9); opacity: .5; cursor: default; }
.sx-redox-chip { fill: rgba(255, 255, 255, .1); stroke: rgba(255, 255, 255, .3); stroke-width: 2; }
.sx-redox-chip.on { fill: rgba(255, 226, 122, .3); stroke: #ffe27a; stroke-width: 3; }
.sx-redox-chip.done { fill: rgba(110, 231, 162, .25); stroke: #6ee7a2; }
.mx-poly.sx-redox-oven, .sx-redox-oven { fill: #8a4a2b; stroke: #ffb04d; stroke-width: 3; }
.mx-poly.sx-redox-fire, .sx-redox-fire { fill: #ffb04d; stroke: #ffe27a; stroke-width: 2; }
.sx-redox-water { fill: rgba(90, 190, 240, .55); }
.sx-redox-oil { fill: rgba(240, 200, 90, .75); }
.sx-redox-nail { fill: #aeb6c2; stroke: #59626f; stroke-width: 2; }
.sx-redox-rust { fill: #b4552a; opacity: .9; }
.sx-redox-salt { fill: #fff; stroke: rgba(0, 0, 0, .25); stroke-width: 1; }
.sx-redox-burner { fill: #5aa8ff; opacity: .9; }
.sx-redox-flame { stroke: rgba(255, 255, 255, .55); stroke-width: 2; opacity: .95; }
.sx-redox .sx-table { font-size: 18px; }
@media (orientation: portrait) {
  .sx-redox-hand { grid-template-columns: repeat(4, 1fr); }
  .sx-redox-card { min-height: 104px; }
}
