/* Skiliograph Matter & Changes of State v1.0.0 (Nov 14 2026) — shell shared with the other Skiliograph science apps; prefix skc- */
.skc-game {
  --skc-ink: #2b2d42;
  --skc-soft: #5c5f78;
  --skc-card: #ffffff;
  --skc-bg: #fff7e6;
  --skc-line: #e8dcc4;
  --skc-dash: #cfc4ad;
  --skc-sun: #ffcf4a;   --skc-sun-deep: #e8a917;
  --skc-sky: #a9dcff;   --skc-sky-deep: #7cbfee;
  --skc-lilac: #dccbff; --skc-lilac-deep: #b49ef0;
  --skc-peach: #ffd3a8; --skc-peach-deep: #f0ae70;
  --skc-mint: #bff0d4;  --skc-mint-deep: #7fd3a3;
  --skc-right: #8fe3a5; --skc-right-deep: #5cc27b; --skc-right-soft: #eafbef;
  --skc-no: #ffc2c7;    --skc-no-deep: #ee8f99;    --skc-no-soft: #fff1e6;
  --skc-leaf: #a3346f;  --skc-leaf-soft: #fbe2ef;   /* Physical Science accent: berry */
  --skc-gold: #ffb703;  --skc-gold-deep: #d99500;
  --skc-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  container-type: inline-size;
  container-name: skc;
  width: 100%;
  max-width: none;
  margin: 24px 0;
  padding: 16px 16px 24px;
  background: var(--skc-bg);
  border-radius: 24px;
  text-align: center;
  font-family: "Baloo 2", "Comic Sans MS", "Trebuchet MS", system-ui, sans-serif;
  color: var(--skc-ink);
  box-sizing: border-box;
  line-height: 1.35;
}
.skc-game *, .skc-game *::before, .skc-game *::after { box-sizing: border-box; }
.skc-game [hidden] { display: none !important; }
.skc-game p { margin: 0; }
.skc-game ol, .skc-game ul { margin: 0; padding: 0; list-style: none; }
.skc-game button {
  font-family: inherit; -webkit-tap-highlight-color: transparent; line-height: 1.2;
  text-transform: none; letter-spacing: normal; color: var(--skc-ink); margin: 0;
}
.skc-game button:focus-visible, .skc-game [tabindex]:focus-visible { outline: 4px solid var(--skc-ink); outline-offset: 3px; }
.skc-game [tabindex="-1"]:focus { outline: none; }
.skc-emo { font-family: var(--skc-emoji); font-weight: 400; line-height: 1; }

.skc-screen { display: flex; flex-direction: column; gap: 14px; }
.skc-title { margin: 0; font-size: 32px; font-weight: 800; line-height: 1.15; color: var(--skc-ink); font-family: inherit; text-wrap: balance; }
.skc-lead { font-size: 20px; font-weight: 600; color: var(--skc-soft); text-wrap: balance; }
.skc-label { font-size: 17px; font-weight: 800; color: var(--skc-soft); letter-spacing: .03em; }
.skc-h3 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; font-family: inherit; color: var(--skc-ink); }
.skc-how { font-size: 19px; font-weight: 600; color: var(--skc-soft); max-width: 60ch; margin: 0 auto; text-wrap: balance; }
.skc-msg { min-height: 1.6em; font-size: 22px; font-weight: 700; text-wrap: balance; }

/* ---------- top bar ---------- */
.skc-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  margin-bottom: 16px; padding: 8px 10px 8px 12px; text-align: left;
  background: var(--skc-card); border-radius: 18px; box-shadow: 0 4px 0 var(--skc-line);
}
.skc-where { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 220px; }
.skc-subject {
  display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
  padding: 3px 10px; border-radius: 999px; background: var(--skc-leaf-soft); color: var(--skc-leaf);
  font-size: 16px; font-weight: 800;
}
.skc-loc { font-size: 18px; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skc-stats { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; }
.skc-score {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px;
  background: var(--skc-sun); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: 0 3px 0 var(--skc-sun-deep);
}
.skc-score-star { color: #fff; text-shadow: 0 1px 0 var(--skc-sun-deep); }
.skc-badge-btn {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%;
  padding: 4px 12px; cursor: pointer; font-size: 17px; font-weight: 800;
  background: #fff; border: 2px solid var(--skc-ink); border-radius: 999px;
}
.skc-badge-btn:hover { background: var(--skc-leaf-soft); color: var(--skc-ink); }
.skc-badge-btn .skc-emo { font-size: 20px; }
.skc-badge-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- buttons shared with the other games ---------- */
.skc-big {
  display: block; width: 100%; padding: 15px 20px; cursor: pointer;
  font-size: 26px; font-weight: 800; color: var(--skc-ink);
  background: var(--skc-sun); border: none; border-radius: 18px;
  box-shadow: 0 6px 0 var(--skc-sun-deep);
  transition: transform .1s, box-shadow .1s;
}
.skc-big:hover { transform: translateY(-2px); background: var(--skc-sun); color: var(--skc-ink); }
.skc-big:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--skc-sun-deep); }
.skc-link {
  padding: 8px 12px; cursor: pointer; background: none; border: none;
  font-size: 18px; font-weight: 700; color: var(--skc-ink); text-decoration: underline; text-underline-offset: 4px;
}
.skc-link:hover { background: none; color: var(--skc-ink); }
.skc-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.skc-back {
  padding: 6px 14px; cursor: pointer; font-size: 18px; font-weight: 700; color: var(--skc-ink);
  background: #fff; border: 2px solid var(--skc-ink); border-radius: 999px;
}
.skc-back:hover { background: #fff; color: var(--skc-ink); }
.skc-back:active { transform: scale(.95); }
.skc-tag { font-size: 18px; font-weight: 800; padding: 5px 14px; border-radius: 999px; background: #fff; }
.skc-game[data-tone="sun"] .skc-tag { background: var(--skc-sun); }
.skc-game[data-tone="sky"] .skc-tag { background: var(--skc-sky); }
.skc-game[data-tone="lilac"] .skc-tag { background: var(--skc-lilac); }
.skc-game[data-tone="peach"] .skc-tag { background: var(--skc-peach); }
.skc-game[data-tone="mint"] .skc-tag { background: var(--skc-mint); }
.skc-modtitle { display: block; }
.skc-modtitle .skc-emo { font-size: 34px; margin-right: 8px; vertical-align: -2px; }
.skc-mod { display: flex; flex-direction: column; gap: 14px; }

/* ---------- journey map ---------- */
.skc-maphead { display: flex; flex-direction: column; gap: 4px; }
.skc-trail { position: relative; padding: 6px 0; }
.skc-trail-line { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.skc-trail-line path { fill: none; stroke: var(--skc-dash); stroke-width: 5; stroke-dasharray: 2 12; stroke-linecap: round; }
.skc-stops { position: relative; display: flex; flex-direction: column; gap: 18px; }
.skc-stop { display: flex; }
.skc-stop-l { justify-content: flex-start; }
.skc-stop-r { justify-content: flex-end; }
.skc-stop-btn {
  display: flex; align-items: center; gap: 14px; width: min(100%, 470px);
  padding: 12px 16px 12px 12px; cursor: pointer; text-align: left;
  border: 3px solid transparent; border-radius: 22px;
  box-shadow: 0 5px 0 rgba(43, 45, 66, .13);
  transition: transform .1s, border-color .15s;
}
.skc-stop-r .skc-stop-btn { flex-direction: row-reverse; text-align: right; padding: 12px 12px 12px 16px; }
.skc-stop-btn:hover { transform: translateY(-2px); color: var(--skc-ink); }
.skc-tone-sun   { background: #fff1a8; } .skc-tone-sun:hover   { background: #fff1a8; }
.skc-tone-sky   { background: #d6ecff; } .skc-tone-sky:hover   { background: #d6ecff; }
.skc-tone-lilac { background: #ebe1ff; } .skc-tone-lilac:hover { background: #ebe1ff; }
.skc-tone-peach { background: #ffe4cb; } .skc-tone-peach:hover { background: #ffe4cb; }
.skc-tone-mint  { background: #d6f6e3; } .skc-tone-mint:hover  { background: #d6f6e3; }
.skc-stop-bubble {
  position: relative; flex: 0 0 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; box-shadow: 0 4px 0 rgba(43, 45, 66, .12);
}
.skc-stop-bubble .skc-emo { font-size: 38px; }
.skc-stop-num {
  position: absolute; top: -4px; right: -4px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--skc-ink); color: #fff; font-size: 16px; font-weight: 800;
}
.skc-stop-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.skc-stop-name { font-size: 24px; font-weight: 800; line-height: 1.15; }
.skc-stop-blurb { font-size: 17px; font-weight: 600; color: var(--skc-soft); line-height: 1.25; }
.skc-stop-stars { font-size: 25px; line-height: 1.1; letter-spacing: 2px; margin-top: 2px; }
.skc-mini-star { color: #ddd3bf; }
.skc-mini-star.is-on { color: var(--skc-gold); text-shadow: 0 2px 0 var(--skc-gold-deep); }
.skc-lock { font-size: 16px; font-weight: 800; letter-spacing: 0; color: var(--skc-soft); }
.skc-stop-btn.is-locked { background: #f1ebe0; box-shadow: 0 5px 0 #e3dacb; cursor: not-allowed; }
.skc-stop-btn.is-locked:hover { transform: none; background: #f1ebe0; }
.skc-stop-btn.is-locked .skc-stop-bubble { filter: grayscale(1); opacity: .55; }
.skc-stop-btn.is-locked .skc-stop-name { color: var(--skc-soft); }
.skc-stop-btn.is-done .skc-stop-bubble { box-shadow: 0 0 0 4px var(--skc-right-deep), 0 4px 0 rgba(43, 45, 66, .12); }
.skc-go { margin-top: 4px; }
.skc-grown { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 12px; font-size: 16px; }
.skc-grown .skc-link { font-size: 16px; color: var(--skc-soft); }
.skc-confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; }
.skc-confirm-q { font-weight: 700; }
.skc-confirm-yes { padding: 6px 14px; cursor: pointer; font-size: 16px; font-weight: 800; color: #fff !important; background: #c4495a; border: none; border-radius: 999px; }
.skc-confirm-yes:hover { background: #a93a4a; }

/* ---------- cards you can drag ---------- */
.skc-tile {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; cursor: grab;
  font-size: 20px; font-weight: 800; color: var(--skc-ink); text-align: left;
  background: var(--skc-card); border: 3px solid transparent; border-radius: 16px;
  box-shadow: 0 4px 0 var(--skc-line); touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform .1s, opacity .15s, border-color .15s;
}
.skc-tile:hover { background: var(--skc-card); color: var(--skc-ink); transform: translateY(-2px); }
.skc-tile .skc-emo { font-size: 32px; }
.skc-tile[aria-pressed="true"] { border-color: var(--skc-ink); transform: translateY(-3px); background: #fffbe8; }
.skc-tile.is-lifted { opacity: .3; }
.skc-ghost {
  position: fixed !important; left: 0; top: 0; margin: 0 !important; z-index: 99998; pointer-events: none;
  box-shadow: 0 14px 30px rgba(43, 45, 66, .25) !important; opacity: .95;
}
.skc-pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }


/* ---------- lab steps, task card, chart ---------- */
.skc-steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; counter-reset: none; }
.skc-step {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 5px; border-radius: 999px;
  background: #efe8da; color: var(--skc-soft); font-size: 17px; font-weight: 800;
}
.skc-step-num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 15px; }
.skc-step.is-now { background: var(--skc-lilac); color: var(--skc-ink); box-shadow: 0 3px 0 var(--skc-lilac-deep); }
.skc-step.is-now .skc-step-num { background: var(--skc-ink); color: #fff; }
.skc-step.is-done { background: var(--skc-right-soft); color: var(--skc-leaf); }
.skc-step.is-done .skc-step-num { background: var(--skc-right-deep); color: #fff; font-size: 0; }
.skc-step.is-done .skc-step-num::after { content: "✓"; font-size: 16px; }
.skc-task { border: 3px solid var(--skc-lilac-deep); }
.skc-task-intro { font-size: 19px; font-weight: 600; color: var(--skc-soft); text-wrap: balance; }
.skc-task-hint { min-height: 1.3em; font-size: 19px; font-weight: 700; color: #b0495a; }
.skc-task-hint:empty { display: none; }
.skc-real { padding: 10px 14px; text-align: left; font-size: 18px; font-weight: 600; background: #fffbe8; border: 2px solid var(--skc-sun); border-radius: 14px; }
.skc-real-kicker { font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--skc-sun-deep); }
.skc-lab { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.skc-lab-left, .skc-lab-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.skc-chart { margin: 0; padding: 10px 8px 8px; background: var(--skc-card); border-radius: 18px; box-shadow: 0 4px 0 var(--skc-line); }
.skc-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.skc-chart-cap { font-size: 16px; font-weight: 800; color: var(--skc-soft); }
.skc-chart-grid line { stroke: #efe6d4; stroke-width: 1; }
.skc-chart-grid text { font-size: 11px; font-weight: 700; fill: #8a8470; font-family: inherit; }
.skc-line { stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.skc-dot { stroke: #fff; stroke-width: 2; }
.skc-end { font-size: 14px; font-weight: 800; font-family: inherit; }
.skc-season {
  min-height: 3.2em; padding: 10px 14px; font-size: 19px; font-weight: 700; text-align: left;
  background: #fffbe8; border: 2px solid var(--skc-sun); border-radius: 16px;
}
.skc-season { display: flex; flex-direction: column; gap: 2px; }
.skc-season-num { font-size: 15px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--skc-sun-deep); font-variant-numeric: tabular-nums; }
.skc-season.is-new .skc-season-text { animation: skc-rise-in .4s ease; }
.skc-ask { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--skc-card); border-radius: 20px; box-shadow: 0 5px 0 var(--skc-line); }
.skc-ask-q { font-size: 22px; font-weight: 800; text-wrap: balance; }
.skc-why { font-size: 19px; font-weight: 600; text-align: left; padding: 10px 12px; background: var(--skc-right-soft); border-radius: 14px; }
.skc-cont { align-self: center; width: auto; padding: 10px 22px; font-size: 22px; }

/* ---------- answer buttons (fact check, quiz, balance) ---------- */
.skc-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.skc-opt {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 14px; cursor: pointer;
  font-size: 21px; font-weight: 800; color: var(--skc-ink); text-align: center;
  border: none; border-radius: 18px; transition: transform .1s, box-shadow .1s;
}
.skc-opts-4 .skc-opt { justify-content: flex-start; text-align: left; }
.skc-opt-letter {
  flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .7); font-size: 18px;
}
.skc-c0 { background: var(--skc-sky);   box-shadow: 0 5px 0 var(--skc-sky-deep); }
.skc-c1 { background: var(--skc-lilac); box-shadow: 0 5px 0 var(--skc-lilac-deep); }
.skc-c2 { background: var(--skc-peach); box-shadow: 0 5px 0 var(--skc-peach-deep); }
.skc-c3 { background: var(--skc-mint);  box-shadow: 0 5px 0 var(--skc-mint-deep); }
.skc-c0:hover { background: var(--skc-sky); } .skc-c1:hover { background: var(--skc-lilac); }
.skc-c2:hover { background: var(--skc-peach); } .skc-c3:hover { background: var(--skc-mint); }
.skc-opt:hover { transform: translateY(-2px); color: var(--skc-ink); }
.skc-opt:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(43, 45, 66, .15); }
.skc-opt.is-correct, .skc-opt.is-correct:disabled { background: var(--skc-right); box-shadow: 0 5px 0 var(--skc-right-deep); color: var(--skc-ink); animation: skc-pop .4s ease; }
.skc-opt.is-wrong, .skc-opt:disabled { background: #ece6da; box-shadow: 0 5px 0 #d8d0c0; color: #8f897b; cursor: default; transform: none; }
.skc-opt.is-wrong { text-decoration: line-through; text-decoration-thickness: 2px; }

.skc-dots { display: flex; justify-content: center; gap: 8px; }
.skc-pip { width: 16px; height: 16px; border-radius: 50%; background: #e7dfcf; border: 3px solid transparent; transition: background .2s; }
.skc-pip.is-now { border-color: var(--skc-ink); background: #fff; }
.skc-pip.is-right { background: var(--skc-right-deep); }
.skc-pip.is-miss { background: var(--skc-peach-deep); }
.skc-fact {
  display: flex; flex-direction: column; gap: 10px; padding: 30px 18px; border-radius: 22px;
  background: var(--skc-card); box-shadow: 0 6px 0 var(--skc-line), 0 10px 24px rgba(0, 0, 0, .06);
}
.skc-fact.is-new { animation: skc-flip .45s ease; }
.skc-fact-num { font-size: 17px; font-weight: 800; color: var(--skc-soft); letter-spacing: .04em; }
.skc-fact-text { font-size: clamp(24px, 5.2cqi, 32px); font-weight: 800; line-height: 1.25; text-wrap: balance; }
.skc-qcard { padding: 22px 18px; }
.skc-q-text { font-size: clamp(22px, 4.6cqi, 28px); }
.skc-tf { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.skc-tf-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 8px; cursor: pointer;
  font-size: clamp(27px, 7cqi, 38px); font-weight: 800; color: var(--skc-ink); border: none; border-radius: 20px;
  transition: transform .1s, box-shadow .1s;
}
.skc-tf-btn .skc-emo { font-size: 34px; }
.skc-true { background: var(--skc-right); box-shadow: 0 6px 0 var(--skc-right-deep); }
.skc-false { background: var(--skc-no); box-shadow: 0 6px 0 var(--skc-no-deep); }
.skc-true:hover { background: var(--skc-right); } .skc-false:hover { background: var(--skc-no); }
.skc-tf-btn:hover { transform: translateY(-2px); color: var(--skc-ink); }
.skc-tf-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(43, 45, 66, .15); }
.skc-tf-btn:disabled { background: #ece6da; box-shadow: 0 6px 0 #d8d0c0; color: #8f897b; cursor: default; transform: none; }
.skc-tf-btn.is-correct:disabled { color: var(--skc-ink); animation: skc-pop .4s ease; }
.skc-true.is-correct:disabled { background: var(--skc-right); box-shadow: 0 6px 0 var(--skc-right-deep); }
.skc-false.is-correct:disabled { background: var(--skc-no); box-shadow: 0 6px 0 var(--skc-no-deep); }
.skc-tf-btn.is-wrong { text-decoration: line-through; text-decoration-thickness: 3px; }
.skc-result { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; text-align: left; border-radius: 18px; border: 3px solid; animation: skc-rise-in .3s ease; }
.skc-result.is-ok { background: var(--skc-right-soft); border-color: var(--skc-right); }
.skc-result.is-no { background: var(--skc-no-soft); border-color: var(--skc-peach); }
.skc-result-head { font-size: 22px; font-weight: 800; }
.skc-result-why { font-size: 19px; font-weight: 600; }

/* ---------- results ---------- */
.skc-done { align-items: center; padding-top: 4px; }
.skc-done > .skc-big { max-width: 640px; }
.skc-bigstars { display: flex; gap: 10px; font-size: 81px; line-height: 1; }
.skc-bigstar { color: #ddd3bf; display: inline-block; }
.skc-bigstar.is-on { color: var(--skc-gold); text-shadow: 0 5px 0 var(--skc-gold-deep); animation: skc-star-in .6s cubic-bezier(.2, .9, .3, 1.4) both; }
.skc-done-title { font-size: 38px; font-weight: 800; line-height: 1.15; }
.skc-done-text { font-size: 20px; font-weight: 600; color: var(--skc-soft); max-width: 52ch; text-wrap: balance; }
.skc-donelinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; }
.skc-rankup {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: var(--skc-sun); font-size: 20px; font-weight: 800; box-shadow: 0 4px 0 var(--skc-sun-deep);
}
.skc-rankup .skc-emo { font-size: 27px; }
.skc-togo { font-size: 18px; font-weight: 700; color: var(--skc-soft); }
.skc-unlock { padding: 6px 14px; border-radius: 999px; background: var(--skc-lilac); font-size: 18px; font-weight: 800; }
.skc-hero {
  display: flex; align-items: center; gap: 16px; width: 100%; max-width: 640px; padding: 14px 16px; text-align: left;
  background: var(--skc-card); border-radius: 22px; box-shadow: 0 5px 0 var(--skc-line);
}
.skc-medal {
  position: relative; flex: 0 0 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff1a8, #ffcf4a 55%, #e8a917);
  border: 5px solid #fff; box-shadow: 0 0 0 4px var(--skc-gold), 0 6px 0 4px var(--skc-gold-deep);
}
.skc-medal .skc-emo { font-size: 45px; }
.skc-hero.is-locked .skc-medal { filter: grayscale(1); opacity: .5; }
.skc-hero-text { display: flex; flex-direction: column; min-width: 0; }
.skc-hero-kicker { font-size: 16px; font-weight: 800; color: var(--skc-leaf); letter-spacing: .06em; text-transform: uppercase; }
.skc-hero-name { font-size: 29px; font-weight: 800; line-height: 1.1; }
.skc-hero-sub { font-size: 17px; font-weight: 600; color: var(--skc-soft); }
.skc-summary { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 640px; text-align: left; }
.skc-summary li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; padding: 8px 12px;
  background: var(--skc-card); border-radius: 14px; font-size: 17px; font-weight: 600;
}
.skc-sum-mark { grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; }
.skc-summary .is-ok .skc-sum-mark { background: var(--skc-right-deep); }
.skc-summary .is-no .skc-sum-mark { background: var(--skc-peach-deep); }
.skc-sum-a { font-weight: 800; color: var(--skc-leaf); }

/* ---------- badges ---------- */
.skc-badges { align-items: stretch; }
.skc-prog { display: flex; flex-direction: column; gap: 6px; }
.skc-prog-text { font-size: 18px; font-weight: 800; }
.skc-prog-track { height: 18px; border-radius: 999px; background: #efe6d4; overflow: hidden; }
.skc-prog-fill { height: 100%; border-radius: 999px; background: var(--skc-sun); box-shadow: inset 0 -4px 0 var(--skc-sun-deep); }
.skc-ladder { display: flex; flex-direction: column-reverse; gap: 8px; }
.skc-rung {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-align: left;
  background: var(--skc-card); border: 3px solid transparent; border-radius: 18px;
}
.skc-rung-icon { flex: 0 0 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--skc-leaf-soft); }
.skc-rung-icon .skc-emo { font-size: 29px; }
.skc-rung-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.skc-rung-name { font-size: 21px; font-weight: 800; line-height: 1.15; }
.skc-rung-at { font-size: 16px; font-weight: 700; color: var(--skc-soft); }
.skc-rung-you { padding: 2px 10px; border-radius: 999px; background: var(--skc-ink); color: #fff; font-size: 15px; font-weight: 800; }
.skc-rung.is-now { border-color: var(--skc-ink); background: #fffbe8; }
.skc-rung.is-future { background: #f6f0e4; }
.skc-rung.is-future .skc-rung-icon { background: #ebe3d3; }
.skc-rung.is-future .skc-rung-name { color: var(--skc-soft); }


/* ---------- celebration (same as the other games) ---------- */
.skc-party { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 99999; transition: opacity .7s ease; }
.skc-party.is-leaving { opacity: 0; }
.skc-confetti { position: absolute; inset: 0; }
.skc-banner {
  position: absolute; top: 36%; left: 50%; transform: translate(-50%, -50%);
  background: #fff; color: #2b2d42; padding: 14px 28px; border-radius: 999px;
  font: 800 clamp(25px, 6vw, 38px)/1.2 "Baloo 2", "Comic Sans MS", system-ui, sans-serif;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .15); white-space: nowrap;
  animation: skc-banner-in .8s cubic-bezier(.2, .9, .3, 1.2) .15s both;
}
.skc-balloon { position: absolute; bottom: -150px; animation-name: skc-rise; animation-timing-function: cubic-bezier(.35, .1, .6, 1); animation-fill-mode: both; }
.skc-balloon-body {
  position: relative; width: 56px; height: 70px; background: var(--c); border-radius: 50% 50% 46% 46%;
  box-shadow: inset -8px -10px 0 rgba(0, 0, 0, .1); animation: skc-sway 2s ease-in-out infinite alternate; transform-origin: 50% 140%;
}
.skc-balloon-body::before { content: ""; position: absolute; top: 12px; left: 13px; width: 10px; height: 16px; background: rgba(255, 255, 255, .6); border-radius: 50%; }
.skc-balloon-body::after { content: ""; position: absolute; top: 70px; left: 27px; width: 2px; height: 60px; background: rgba(0, 0, 0, .25); }

.skc-game .is-shake { animation: skc-shake .4s ease; }
@keyframes skc-flip { 0% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
@keyframes skc-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
@keyframes skc-nope { 0%, 100% { box-shadow: 0 0 0 0 rgba(196, 73, 90, 0); } 30% { box-shadow: 0 0 0 5px rgba(196, 73, 90, .55); } }
@keyframes skc-glow { 0% { box-shadow: 0 0 0 0 rgba(92, 194, 123, .9); } 100% { box-shadow: 0 0 0 16px rgba(92, 194, 123, 0); } }
@keyframes skc-pulse { 50% { transform: scale(1.04); } }
@keyframes skc-pop { 50% { transform: scale(1.1); } }
@keyframes skc-rise-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes skc-star-in { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }
@keyframes skc-rise { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 100% { transform: translateY(calc(-100vh - 260px)); opacity: 1; } }
@keyframes skc-sway { from { transform: rotate(-7deg) translateX(-6px); } to { transform: rotate(7deg) translateX(6px); } }
@keyframes skc-banner-in { from { transform: translate(-50%, -40%) scale(.85); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .skc-game *, .skc-game *::before, .skc-game *::after { animation: none !important; transition: none !important; }
  .skc-banner { animation-duration: .01s; }
}

/* v1.4.0 — Science Discovery Path: members-only stops, gold Expert badge */
.skc-stop-btn.is-members .skc-lock { color: var(--skc-leaf); }
.skc-stop-btn.is-members { cursor: pointer; }
.skc-hero.is-gold { background: linear-gradient(135deg, #fff8d6, #ffe7a0); box-shadow: 0 5px 0 #e8c25a; }
.skc-hero.is-gold .skc-medal { background: radial-gradient(circle at 35% 30%, #fffbe0, #ffd34d 50%, #c98a00); box-shadow: 0 0 0 4px #c98a00, 0 6px 0 4px #8a5d00; }
.skc-hero.is-gold.is-locked { background: var(--skc-card); box-shadow: 0 5px 0 var(--skc-line); }
.skc-hero + .skc-hero { margin-top: 10px; }
.skc-game .skd-member.is-shake { animation: skc-shake .4s; }

/* ---------- particle pictures ---------- */
.skc-pbox { display: block; }
.skc-pbox-bg { fill: #fff; stroke: #d9cfbb; stroke-width: 2; }
.skc-pt { fill: #4f8fe0; stroke: #2f63a8; stroke-width: 1.2; transition: opacity .3s; }
.skc-pbox.is-liquid .skc-pt { fill: #35b6c4; stroke: #1f7f8a; }
.skc-pbox.is-gas .skc-pt { fill: #a77be8; stroke: #6e46b0; }

/* ---------- cards you drop into boxes (Stops 1 and 4) ---------- */
.skc-holder, .skc-sort { display: flex; flex-direction: column; gap: 14px; }
.skc-pool-row { min-height: 56px; }
.skc-pool-row:empty { display: none; }
.skc-tile-long { max-width: 360px; padding: 10px 14px; font-size: 19px; line-height: 1.25; }
.skc-zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.skc-zones-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.skc-zone {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-height: 150px; padding: 10px; cursor: pointer;
  text-align: left; border: 3px solid transparent; border-radius: 20px; box-shadow: 0 5px 0 rgba(43, 45, 66, .13);
  transition: border-color .15s, transform .1s;
}
.skc-zone:hover { color: var(--skc-ink); }
.skc-zone-solid, .skc-zone-solid:hover { background: #d6ecff; }
.skc-zone-liquid, .skc-zone-liquid:hover { background: #d3f4ef; }
.skc-zone-gas, .skc-zone-gas:hover { background: #efe4ff; }
.skc-zone-yes, .skc-zone-yes:hover { background: #fff1a8; }
.skc-zone-no, .skc-zone-no:hover { background: #f1e6d4; }
.skc-zone-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.skc-zone-top .skc-emo { font-size: 32px; display: inline-flex; }
.skc-zone-name { font-size: 22px; font-weight: 800; line-height: 1.1; min-width: 0; }
.skc-zone-sub { font-size: 16px; font-weight: 700; color: var(--skc-soft); line-height: 1.2; }
.skc-zone .skc-pbox { width: 84px; height: 84px; align-self: center; }
.skc-zone-items { display: flex; flex-wrap: wrap; gap: 6px; }
.skc-chip {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 10px 3px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); font-size: 16px; font-weight: 800; animation: skc-pop .4s ease;
}
.skc-chip .skc-emo { font-size: 20px; display: inline-flex; }
.skc-chip > span:last-child { min-width: 0; overflow-wrap: break-word; }
.skc-chip-long { padding: 3px 10px; }
.skc-sort.is-picking .skc-zone { border-style: dashed; border-color: var(--skc-ink); }
.skc-zone.is-over { border-color: var(--skc-ink); border-style: solid; background: #fffbe8; }
.skc-zone.is-glow, .skc-spot.is-glow { animation: skc-glow .9s ease; }
.skc-zone.is-nope, .skc-spot.is-nope { animation: skc-nope .5s ease; }
.skc-pop {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; text-align: left;
  background: var(--skc-card); border-radius: 18px; box-shadow: 0 5px 0 var(--skc-line);
}
.skc-pop.is-in { animation: skc-rise-in .35s ease; }
.skc-pop-text { font-size: 19px; font-weight: 600; }
.skc-pill {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px; flex: 0 0 76px;
  padding: 6px 4px; border-radius: 14px; font-size: 16px; font-weight: 800;
}
.skc-pill .skc-emo { font-size: 27px; }
.skc-pill-solid { background: var(--skc-sky); }
.skc-pill-liquid { background: var(--skc-mint); }
.skc-pill-gas { background: var(--skc-lilac); }
.skc-pill-yes { background: var(--skc-sun); }
.skc-pill-no { background: var(--skc-peach); }

/* ---------- Stop 2: Heat & Cool Lab ---------- */
.skc-scenebox { display: flex; flex-direction: column; gap: 10px; }
.skc-stage { padding: 6px; background: var(--skc-card); border-radius: 18px; box-shadow: 0 4px 0 var(--skc-line); }
.skc-scene-svg { display: block; width: 100%; height: auto; }
.skc-side { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.skc-zoom {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 158px; margin: 0; padding: 8px;
  background: var(--skc-card); border-radius: 18px; box-shadow: 0 4px 0 var(--skc-line);
}
.skc-zoom .skc-pbox { width: 112px; height: 112px; }
.skc-zoom-title { font-size: 16px; font-weight: 800; }
.skc-zoom-cap { font-size: 15px; font-weight: 700; line-height: 1.2; color: var(--skc-soft); text-align: center; }
.skc-meters { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.skc-meter { display: flex; flex-direction: column; padding: 8px 12px; text-align: left; background: var(--skc-card); border-radius: 16px; box-shadow: 0 4px 0 var(--skc-line); }
.skc-meter-lab { font-size: 15px; font-weight: 800; color: var(--skc-soft); }
.skc-meter-val { font-size: 26px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.skc-table { fill: #e9dcc3; }
.skc-burner { fill: #5c5f78; }
.skc-tripod { fill: none; stroke: #8a93a6; stroke-width: 4; stroke-linecap: round; }
.skc-flames { transition: opacity .4s; }
.skc-flame { fill: #ff8c42; }
.skc-flame-in { fill: #ffd23f; }
.skc-glass { fill: none; stroke: #7a8ca3; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.skc-water { fill: #7cc4f2; opacity: .85; transition: opacity .4s; }
.skc-ice { fill: #eef9ff; stroke: #8cc8ec; stroke-width: 2; }
.skc-bubble { fill: #fff; opacity: .9; animation: skc-bub 1.2s linear infinite; }
.skc-wisp { fill: none; stroke: #b8c4d4; stroke-width: 4; stroke-linecap: round; opacity: .8; animation: skc-wisp 2.2s ease-in-out infinite; }
.skc-th-tube { fill: #fff; stroke: #8a93a6; stroke-width: 2; }
.skc-th-fill, .skc-th-bulb { fill: #e2453c; }
.skc-th-fill { transition: y .5s, height .5s; }
.skc-th-tick { stroke: #8a93a6; stroke-width: 2; }
.skc-th-lab, .skc-mark-lab { font: 700 14px "Baloo 2", system-ui, sans-serif; fill: var(--skc-soft); }
.skc-mark-lab { fill: #c2392f; }
.skc-freezer { fill: #e6f4ff; stroke: #9cc7e6; stroke-width: 3; }
.skc-flake { fill: #9cc7e6; font-size: 22px; }
.skc-scene-lab { font: 800 16px "Baloo 2", system-ui, sans-serif; fill: var(--skc-ink); }
.skc-ice-layer { fill: #f2fbff; stroke: #a6d7f2; stroke-width: 1.5; }
.skc-crystals path { fill: none; stroke: #9fd0ee; stroke-width: 1.5; }
.skc-mark { stroke: #e2453c; stroke-width: 2; stroke-dasharray: 5 4; }
.skc-sky { fill: #dff1ff; }
.skc-ground { fill: #d5cec2; }
.skc-sun circle { fill: #ffcf4a; }
.skc-sun line { stroke: #ffb703; stroke-width: 4; stroke-linecap: round; }
.skc-shade { fill: rgba(43, 45, 66, .16); }
.skc-trunk { fill: #8a5a32; }
.skc-crown { fill: #4caf6a; }
.skc-puddle { fill: #7cc4f2; stroke: #4f9fd4; stroke-width: 2; transition: rx .6s, ry .6s; }
.skc-chart-grid .is-zero { stroke: #c9bfa9; stroke-dasharray: 4 3; }
.skc-l-temp { stroke: #e2453c; } .skc-dot.skc-l-temp { fill: #e2453c; }
.skc-l-cold { stroke: #3f7fd9; } .skc-dot.skc-l-cold { fill: #3f7fd9; }
.skc-l-sun { stroke: #f08c00; } .skc-dot.skc-l-sun { fill: #f08c00; }
.skc-l-shade { stroke: #3f7fd9; } .skc-dot.skc-l-shade { fill: #3f7fd9; }
.skc-t-temp { fill: #b8332b; } .skc-t-cold, .skc-t-shade { fill: #2f63a8; } .skc-t-sun { fill: #b86600; }

/* ---------- Stop 3: Change Detective ---------- */
.skc-chg-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.skc-chg-stage { position: relative; background: var(--skc-card); border-radius: 20px; box-shadow: 0 5px 0 var(--skc-line); }
.skc-chg-svg { display: block; width: 100%; height: auto; }
.skc-node-box { stroke-width: 3; }
.skc-node-solid { fill: #d6ecff; stroke: #7cbfee; }
.skc-node-liquid { fill: #d3f4ef; stroke: #6cc9bd; }
.skc-node-gas { fill: #efe4ff; stroke: #b49ef0; }
.skc-node-lab {
  position: absolute; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center;
  font-size: 18px; font-weight: 800; line-height: 1.1; pointer-events: none;
}
.skc-node-lab .skc-emo { font-size: 30px; }
.skc-arc { fill: none; stroke-width: 5; stroke-linecap: round; transition: stroke .3s; }
.skc-arc.is-off { stroke: #d9cfbb; stroke-dasharray: 2 9; }
.skc-arc.is-hot { stroke: #e8613c; }
.skc-arc.is-cold { stroke: #3f7fd9; }
.skc-ah-off { fill: #d9cfbb; } .skc-ah-hot { fill: #e8613c; } .skc-ah-cold { fill: #3f7fd9; }
.skc-cue { font: 800 15px "Baloo 2", system-ui, sans-serif; }
.skc-cue-hot { fill: #c2492a; } .skc-cue-cold { fill: #2f63a8; }
.skc-spot {
  position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 6px;
  cursor: pointer; background: #fff; border: 3px dashed var(--skc-dash); border-radius: 999px; transition: border-color .15s;
}
.skc-spot:hover { background: #fff; color: var(--skc-ink); }
.skc-spot-num { font-size: 19px; font-weight: 800; color: var(--skc-soft); }
.skc-spot.is-named { height: 38px; padding: 0 12px; border-style: solid; }
.skc-spot.is-hot, .skc-spot.is-hot:hover { border-color: #e8613c; background: #fff0ea; }
.skc-spot.is-cold, .skc-spot.is-cold:hover { border-color: #3f7fd9; background: #eaf2ff; }
.skc-spot-name { font-size: 16px; font-weight: 800; white-space: nowrap; }
.skc-chgmod.is-picking .skc-spot { border-color: var(--skc-ink); }
.skc-spot.is-over { border-color: var(--skc-ink); border-style: solid; background: #fffbe8; }
.skc-chg-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.skc-chg-pool .skc-tile-long { max-width: 100%; }

/* ---------- Stop 4: Mix, Dissolve & Weigh ---------- */
.skc-weighmod, .skc-sepmod { display: flex; flex-direction: column; gap: 14px; }
.skc-weigh, .skc-sep { padding: 20px 16px; }
.skc-weigh-text { font-size: clamp(21px, 4.4cqi, 27px); }
.skc-scales { display: flex; align-items: flex-start; justify-content: center; gap: 10px; }
.skc-scale { display: flex; flex-direction: column; align-items: center; width: 160px; max-width: 42%; }
.skc-scale-lab { font-size: 15px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--skc-soft); }
.skc-scale-top .skc-emo { font-size: 48px; display: inline-flex; }
.skc-scale-plate { width: 80%; height: 8px; margin-top: 2px; border-radius: 4px; background: #8a93a6; }
.skc-scale-base { display: flex; justify-content: center; width: 100%; margin-top: 4px; padding: 8px; border-radius: 14px; background: #5c5f78; }
.skc-scale-disp {
  min-width: 92px; padding: 4px 10px; border-radius: 8px; background: #cdeccf; color: #1f3d26; text-align: center;
  white-space: nowrap; font: 700 22px/1.2 ui-monospace, "SFMono-Regular", "Courier New", monospace; font-variant-numeric: tabular-nums;
}
.skc-scale-note { margin-top: 4px; font-size: 15px; font-weight: 700; line-height: 1.2; color: var(--skc-soft); }
.skc-scale-arrow { align-self: center; font-size: 32px; font-weight: 800; color: var(--skc-soft); }
.skc-scale.is-glow .skc-scale-disp { animation: skc-pop .5s ease; }
.skc-sep-pics { display: flex; align-items: center; justify-content: center; }
.skc-sep-pics .skc-emo { font-size: 46px; }
.skc-sep-plus { margin: 0 10px; font-size: 30px; font-weight: 800; color: var(--skc-soft); }
.skc-opts-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.skc-tool .skc-emo { font-size: 30px; display: inline-flex; }
.skc-tool .skc-emo svg, .skc-sep-pics .skc-emo svg { width: 1.2em; height: 1.2em; }

@keyframes skc-bub { from { transform: translateY(0); opacity: .9; } to { transform: translateY(-46px); opacity: 0; } }
@keyframes skc-wisp { 0% { transform: translateY(8px); opacity: 0; } 40% { opacity: .85; } 100% { transform: translateY(-16px); opacity: 0; } }

/* ---------- widths and phones ---------- */
.skc-quizmod, .skc-mixmod, .skc-badges, .skc-done { width: 100%; max-width: 900px; margin-left: auto; margin-right: auto; }
.skc-statemod { width: 100%; max-width: 1000px; margin-left: auto; margin-right: auto; }
@container skc (min-width: 600px) {
  .skc-opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .skc-opts-4, .skc-opts-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skc-opts-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .skc-tool { flex-direction: column; gap: 4px; }
  .skc-stop-btn { width: min(60%, 620px); }
  .skc-title { font-size: 36px; }
  .skc-zone { min-height: 200px; }
}
@container skc (min-width: 900px) {
  .skc-labmod, .skc-chgmod { width: 100%; max-width: 1100px; margin-left: auto; margin-right: auto; }
  .skc-lab { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .skc-chg-board { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
@container skc (max-width: 520px) {
  .skc-zones:not(.skc-zones-2) .skc-zone-sub { display: none; }
  .skc-zones:not(.skc-zones-2) .skc-chip:not(.skc-chip-long) > span:last-child { display: none; }
  .skc-zones:not(.skc-zones-2) .skc-chip:not(.skc-chip-long) { padding: 3px 6px; }
  .skc-zone { padding: 7px; min-height: 120px; }
  .skc-zone-top { flex-direction: column; gap: 0; align-items: center; text-align: center; }
  .skc-zone-name { font-size: 18px; }
  .skc-zone .skc-pbox { width: 64px; height: 64px; }
  .skc-zone-sub { font-size: 14px; }
  .skc-zones-2 .skc-zone-top { flex-direction: row; text-align: left; }
  .skc-spot-name { font-size: 13px; }
  .skc-spot.is-named { height: 28px; padding: 0 5px; border-width: 2px; }
  .skc-spot { min-width: 34px; height: 34px; }
  .skc-spot-num { font-size: 16px; }
  .skc-node-lab { font-size: 14px; }
  .skc-node-lab .skc-emo { font-size: 22px; }
  .skc-zoom { width: 130px; }
  .skc-zoom .skc-pbox { width: 92px; height: 92px; }
  .skc-meter-val { font-size: 22px; }
  .skc-scale-top .skc-emo { font-size: 38px; }
  .skc-scale-disp { min-width: 0; font-size: 19px; }
  .skc-pill { flex-basis: 64px; }
}
@container skc (max-width: 380px) {
  .skc-spot-name { font-size: 12px; letter-spacing: -.01em; }
  .skc-scale-disp { font-size: 17px; padding: 4px 6px; }
  .skc-scale-base { padding: 6px; }
}
@container skc (max-width: 420px) {
  .skc-stop-btn, .skc-stop-r .skc-stop-btn { width: 100%; }
  .skc-stop-r .skc-stop-btn { flex-direction: row; text-align: left; padding: 12px 16px 12px 12px; }
  .skc-stop-bubble { flex-basis: 58px; height: 58px; }
  .skc-stop-bubble .skc-emo { font-size: 32px; }
  .skc-stop-name { font-size: 21px; }
  .skc-tile { font-size: 18px; padding: 8px 10px 8px 8px; gap: 6px; }
  .skc-tile .skc-emo { font-size: 27px; }
  .skc-tile-long { font-size: 17px; }
  .skc-badge-name { max-width: 140px; }
  .skc-zone-top .skc-emo { font-size: 26px; }
}
