/* SNC2D chemistry games (properties and changes, acids and bases): sorting rows, particle boxes, formulas, and the pH strip. */
.cs-box { text-align: left; }
.cs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cs-row { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 10px 12px; }
.cs-text { color: var(--ink); font-size: 1.02rem; line-height: 1.4; margin-bottom: 8px; }
.cs-opts { display: grid; gap: 6px; }
.cs-n2 { grid-template-columns: 1fr 1fr; }
.cs-n3 { grid-template-columns: repeat(3, 1fr); }
.cs-n4 { grid-template-columns: 1fr 1fr; }
.cs-opt { border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 600 .95rem 'IBM Plex Sans', sans-serif; min-height: 44px; padding: 6px 8px; cursor: pointer; }
.cs-opt.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.cs-box.locked .cs-opt { cursor: default; }
.cs-row.right { border-color: var(--good); }
.cs-row.wrong { border-color: var(--bad); }
.cs-box.locked .cs-opt.ans { border-color: var(--good); box-shadow: inset 0 0 0 1px var(--good); }
.cs-row.wrong .cs-opt.on { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.cs-why { margin-top: 8px; font-size: .9rem; color: var(--muted); line-height: 1.4; }

/* Particle boxes: before and after */
.cs-pics { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; margin: 12px auto 4px; max-width: 420px; }
.cs-pic { border: 2px dashed var(--line); border-radius: 12px; padding: 2px; }
.cs-pic svg { display: block; width: 100%; height: auto; }
.cs-cap { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.cs-arrow { font-size: 1.5rem; color: var(--muted); font-weight: 700; }
.cs-key { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--muted); margin: 6px 0 2px; }
.cs-key i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; border: 1px solid rgba(0, 0, 0, .35); }

/* Formulas and equations in questions */
.cs-f { display: block; font-size: 1.7rem; font-weight: 800; text-align: center; margin: 12px 0 4px; color: var(--ink); }
.cs-eq { display: block; font-size: 1.2rem; font-weight: 700; text-align: center; margin: 10px 0 4px; color: var(--ink); line-height: 1.5; }
.cs-eq .blank { display: inline-block; min-width: 2.4em; border-bottom: 2px solid var(--accent); color: var(--accent); }
.choice .cs-ch { font-weight: 700; }

/* pH strip: 0 to 14, acidic warm, basic cool */
.cs-ph { margin: 12px auto 2px; max-width: 380px; }
.cs-ph-bar { display: grid; grid-template-columns: repeat(15, 1fr); border-radius: 8px; overflow: hidden; height: 22px; }
.cs-ph-bar span { display: flex; align-items: center; justify-content: center; font-size: .62rem; font-weight: 700; color: rgba(0, 0, 0, .65); }
.cs-ph-lbl { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 3px; }
.cs-ph-mark { position: relative; height: 14px; }
.cs-ph-mark b { position: absolute; top: 0; transform: translateX(-50%); font-size: .8rem; color: var(--ink); }

/* Worked example tables in the start sheet */
.intro .cs-tbl { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 6px 0; }
.intro .cs-tbl td, .intro .cs-tbl th { border-top: 1px solid var(--line); padding: 4px 6px; text-align: left; vertical-align: top; }
