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

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

/* ---------- top bar ---------- */
.sks-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(--sks-card); border-radius: 18px; box-shadow: 0 4px 0 var(--sks-line);
}
.sks-where { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 220px; }
.sks-subject {
  display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
  padding: 3px 10px; border-radius: 999px; background: var(--sks-leaf-soft); color: var(--sks-leaf);
  font-size: 16px; font-weight: 800;
}
.sks-loc { font-size: 18px; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sks-stats { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; }
.sks-score {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px;
  background: var(--sks-sun); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: 0 3px 0 var(--sks-sun-deep);
}
.sks-score-star { color: #fff; text-shadow: 0 1px 0 var(--sks-sun-deep); }
.sks-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(--sks-ink); border-radius: 999px;
}
.sks-badge-btn:hover { background: var(--sks-leaf-soft); color: var(--sks-ink); }
.sks-badge-btn .sks-emo { font-size: 20px; }
.sks-badge-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

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

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

/* ---------- cards you can drag ---------- */
.sks-tile {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; cursor: grab;
  font-size: 20px; font-weight: 800; color: var(--sks-ink); text-align: left;
  background: var(--sks-card); border: 3px solid transparent; border-radius: 16px;
  box-shadow: 0 4px 0 var(--sks-line); touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform .1s, opacity .15s, border-color .15s;
}
.sks-tile:hover { background: var(--sks-card); color: var(--sks-ink); transform: translateY(-2px); }
.sks-tile .sks-emo { font-size: 32px; }
.sks-tile[aria-pressed="true"] { border-color: var(--sks-ink); transform: translateY(-3px); background: #fffbe8; }
.sks-tile.is-lifted { opacity: .3; }
.sks-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;
}
.sks-pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- module 1: food chain ---------- */
.sks-chainboard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.sks-chainboard.is-solved { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.sks-chain { display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: 260px; }
.sks-poolbox { display: flex; flex-direction: column; gap: 8px; }
.sks-poolbox .sks-pool { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.sks-poolbox .sks-tile { width: 100%; }
.sks-node {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center;
  min-height: 60px; padding: 6px 10px; text-align: left;
  background: var(--sks-card); border: 3px solid var(--sks-card); border-radius: 16px;
  transition: background .2s, border-color .2s, box-shadow .3s;
}
.sks-node .sks-emo { grid-row: 1 / span 2; font-size: 34px; }
.sks-node-name { font-size: 19px; font-weight: 800; line-height: 1.1; }
.sks-node-role { font-size: 15px; font-weight: 700; color: var(--sks-soft); line-height: 1.1; }
.sks-sun { background: var(--sks-sun); border-color: var(--sks-sun); }
.sks-sun .sks-node-role { color: var(--sks-ink); }
.sks-slot { display: flex; justify-content: center; background: rgba(255, 255, 255, .55); border: 3px dashed var(--sks-dash); }
.sks-slot-num { font-size: 25px; font-weight: 800; color: var(--sks-dash); }
.sks-slot.is-filled { display: grid; justify-content: stretch; background: var(--sks-right-soft); border: 3px solid var(--sks-right-deep); }
.sks-slot.is-over, .sks-hab.is-over { border-color: var(--sks-ink); border-style: solid; background: #fffbe8; }
.sks-slot.is-glow { animation: sks-glow .9s ease; }
.sks-slot.is-nope, .sks-hab.is-nope { animation: sks-nope .5s ease; }
.sks-slot.is-lit { box-shadow: 0 0 0 4px var(--sks-sun), 0 0 18px var(--sks-sun); }
.sks-arrow { display: flex; justify-content: center; height: 22px; }
.sks-arrow-line { position: relative; width: 4px; height: 14px; margin-top: 1px; background: var(--sks-dash); border-radius: 2px; transition: background .25s; }
.sks-arrow-line::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%);
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 8px solid var(--sks-dash);
  transition: border-color .25s;
}
.sks-arrow.is-flow .sks-arrow-line { background: var(--sks-sun-deep); }
.sks-arrow.is-flow .sks-arrow-line::after { border-top-color: var(--sks-sun-deep); }
.sks-arrow.is-flow { animation: sks-pulse .5s ease; }
.sks-recycle {
  display: flex; align-items: center; gap: 10px; max-width: 62ch; margin: 0 auto; padding: 10px 14px; text-align: left;
  font-size: 18px; font-weight: 600; background: var(--sks-card); border: 2px dashed var(--sks-right-deep); border-radius: 16px;
}
.sks-recycle .sks-emo { font-size: 29px; }

/* ---------- module 2: habitats ---------- */
.sks-pool-row { min-height: 56px; }
.sks-pool-row:empty { display: none; }
.sks-hab-top { min-width: 0; flex-wrap: wrap; row-gap: 2px; }
.sks-hab-name { min-width: 0; }
.sks-chip { max-width: 100%; }
.sks-chip > span:last-child { min-width: 0; overflow-wrap: break-word; }
.sks-habitats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sks-hab {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-height: 128px; 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;
}
.sks-hab-desert { background: #ffe7a3; } .sks-hab-desert:hover { background: #ffe7a3; }
.sks-hab-arctic { background: #e3f4ff; } .sks-hab-arctic:hover { background: #e3f4ff; }
.sks-hab-rainforest { background: #c8efc2; } .sks-hab-rainforest:hover { background: #c8efc2; }
.sks-hab-ocean { background: #a9dcff; } .sks-hab-ocean:hover { background: #a9dcff; }
.sks-hab:hover { color: var(--sks-ink); }
.sks-hab-top { display: flex; align-items: center; gap: 8px; }
.sks-hab-top .sks-emo { font-size: 34px; }
.sks-hab-name { font-size: 22px; font-weight: 800; }
.sks-hab-items { display: flex; flex-wrap: wrap; gap: 6px; }
.sks-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); font-size: 16px; font-weight: 800; animation: sks-pop .4s ease;
}
.sks-chip .sks-emo { font-size: 20px; }
.sks-habmod.is-picking .sks-hab { border-style: dashed; border-color: var(--sks-ink); }
.sks-hab.is-glow { animation: sks-glow .9s ease; }
.sks-pop {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; text-align: left;
  background: var(--sks-card); border-radius: 18px; box-shadow: 0 5px 0 var(--sks-line);
}
.sks-pop.is-in { animation: sks-rise-in .35s ease; }
.sks-pop-text { font-size: 19px; font-weight: 600; }
.sks-need {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px; flex: 0 0 72px;
  padding: 6px 4px; border-radius: 14px; font-size: 16px; font-weight: 800;
}
.sks-need .sks-emo { font-size: 27px; }
.sks-need-food { background: var(--sks-peach); }
.sks-need-water { background: var(--sks-sky); }
.sks-need-shelter { background: var(--sks-lilac); }
.sks-need-space { background: var(--sks-mint); }

/* ---------- module 3: balance the ecosystem ---------- */
.sks-steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; counter-reset: none; }
.sks-step {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 5px; border-radius: 999px;
  background: #efe8da; color: var(--sks-soft); font-size: 17px; font-weight: 800;
}
.sks-step-num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 15px; }
.sks-step.is-now { background: var(--sks-lilac); color: var(--sks-ink); box-shadow: 0 3px 0 var(--sks-lilac-deep); }
.sks-step.is-now .sks-step-num { background: var(--sks-ink); color: #fff; }
.sks-step.is-done { background: var(--sks-right-soft); color: var(--sks-leaf); }
.sks-step.is-done .sks-step-num { background: var(--sks-right-deep); color: #fff; font-size: 0; }
.sks-step.is-done .sks-step-num::after { content: "✓"; font-size: 16px; }
.sks-task { border: 3px solid var(--sks-lilac-deep); }
.sks-task-intro { font-size: 19px; font-weight: 600; color: var(--sks-soft); text-wrap: balance; }
.sks-task-hint { min-height: 1.3em; font-size: 19px; font-weight: 700; color: #b0495a; }
.sks-task-hint:empty { display: none; }
.sks-real { padding: 10px 14px; text-align: left; font-size: 18px; font-weight: 600; background: #fffbe8; border: 2px solid var(--sks-sun); border-radius: 14px; }
.sks-real-kicker { font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sks-sun-deep); }
.sks-lab { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.sks-lab-left, .sks-lab-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sks-web {
  display: flex; align-items: flex-start; justify-content: center; gap: 2px; padding: 10px 8px 8px;
  background: var(--sks-card); border-radius: 18px; box-shadow: 0 4px 0 var(--sks-line);
}
.sks-web-node { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 0 1 72px; min-width: 0; transition: opacity .3s; }
.sks-web-circle {
  position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sks-bg); border: 3px solid var(--sks-dash);
}
.sks-web-circle .sks-emo { font-size: 29px; display: inline-flex; }
.sks-web-name { font-size: 15px; font-weight: 800; line-height: 1.1; text-align: center; overflow-wrap: anywhere; }
.sks-web-arrow { position: relative; flex: 0 1 26px; min-width: 14px; height: 4px; margin-top: 26px; background: var(--sks-soft); border-radius: 2px; transition: opacity .3s; }
.sks-web-arrow::after { content: ""; position: absolute; right: -2px; top: 50%; transform: translateY(-50%); border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 8px solid var(--sks-soft); }
.sks-web-x { display: none; position: absolute; inset: -4px; }
.sks-web-x::before, .sks-web-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 120%; height: 5px; margin: -2.5px 0 0 -60%; background: #c4495a; border-radius: 3px; transform: rotate(45deg); }
.sks-web-x::after { transform: rotate(-45deg); }
.no-pred .sks-web-pred { opacity: .45; }
.no-pred .sks-web-pred .sks-web-x { display: block; }
.no-pred .sks-web-last { opacity: .25; }
.sks-counts { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--sks-card); border-radius: 18px; box-shadow: 0 4px 0 var(--sks-line); }
.sks-count { display: grid; grid-template-columns: 112px minmax(0, 1fr) 64px; align-items: center; gap: 8px; text-align: left; }
.sks-count-h .sks-count-pics { min-height: 46px; align-content: center; }
.sks-count-label { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 800; line-height: 1.1; min-width: 0; }
.sks-count-label .sks-emo { font-size: 22px; display: inline-flex; }
.sks-count-pics { display: flex; flex-wrap: wrap; gap: 1px; min-height: 22px; align-items: center; }
.sks-count-pics .sks-emo { font-size: 19px; display: inline-flex; transition: opacity .3s; }
.sks-count-pics .is-off { opacity: .15; filter: grayscale(1); }
.sks-count-val { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.sks-count-key { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 16px; font-weight: 700; color: var(--sks-soft); }
.sks-count-key .sks-emo { display: inline-flex; font-size: 18px; }
.sks-chart { margin: 0; padding: 10px 8px 8px; background: var(--sks-card); border-radius: 18px; box-shadow: 0 4px 0 var(--sks-line); }
.sks-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.sks-chart-cap { font-size: 16px; font-weight: 800; color: var(--sks-soft); }
.sks-chart-grid line { stroke: #efe6d4; stroke-width: 1; }
.sks-chart-grid text { font-size: 11px; font-weight: 700; fill: #8a8470; font-family: inherit; }
.sks-line { stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.sks-dot { stroke: #fff; stroke-width: 2; }
.sks-l-grass { stroke: #3fae64; } .sks-dot.sks-l-grass { fill: #3fae64; }
.sks-l-rabbit { stroke: #e07b39; } .sks-dot.sks-l-rabbit { fill: #e07b39; }
.sks-end { font-size: 14px; font-weight: 800; font-family: inherit; }
.sks-t-grass { fill: #2a8a4c; } .sks-t-rabbit { fill: #b85a1e; }
.sks-season {
  min-height: 3.2em; padding: 10px 14px; font-size: 19px; font-weight: 700; text-align: left;
  background: #fffbe8; border: 2px solid var(--sks-sun); border-radius: 16px;
}
.sks-season { display: flex; flex-direction: column; gap: 2px; }
.sks-season-num { font-size: 15px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--sks-sun-deep); font-variant-numeric: tabular-nums; }
.sks-season.is-new .sks-season-text { animation: sks-rise-in .4s ease; }
.sks-ask { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--sks-card); border-radius: 20px; box-shadow: 0 5px 0 var(--sks-line); }
.sks-ask-q { font-size: 22px; font-weight: 800; text-wrap: balance; }
.sks-why { font-size: 19px; font-weight: 600; text-align: left; padding: 10px 12px; background: var(--sks-right-soft); border-radius: 14px; }
.sks-cont { align-self: center; width: auto; padding: 10px 22px; font-size: 22px; }

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

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

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

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

/* ---------- wider screens ---------- */
@container sks (min-width: 600px) {
  .sks-chainboard, .sks-chainboard.is-solved { grid-template-columns: minmax(0, 1fr); }
  .sks-chain { flex-direction: row; align-items: stretch; max-width: none; }
  .sks-node { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 112px; padding: 8px 4px; gap: 2px; }
  .sks-node .sks-emo { font-size: 40px; }
  .sks-node-name { font-size: 18px; }
  .sks-node-role { font-size: 14px; }
  .sks-slot.is-filled { display: flex; }
  .sks-arrow { flex: 0 0 22px; height: auto; align-items: center; }
  .sks-arrow-line { width: 12px; height: 4px; margin: 0 7px 0 0; }
  .sks-arrow-line::after { left: auto; right: -8px; bottom: auto; top: 50%; transform: translateY(-50%); border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 8px solid var(--sks-dash); border-right: 0; }
  .sks-arrow.is-flow .sks-arrow-line::after { border-left-color: var(--sks-sun-deep); border-top-color: transparent; }
  .sks-poolbox .sks-pool { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .sks-poolbox .sks-tile { width: auto; }
  .sks-habitats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sks-hab { min-height: 170px; }
  .sks-lab { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
  .sks-opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sks-opts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sks-stop-btn { width: min(60%, 620px); }
  .sks-title { font-size: 36px; }
}
@container sks (max-width: 420px) {
  .sks-stop-btn, .sks-stop-r .sks-stop-btn { width: 100%; }
  .sks-stop-r .sks-stop-btn { flex-direction: row; text-align: left; padding: 12px 16px 12px 12px; }
  .sks-stop-bubble { flex-basis: 58px; height: 58px; }
  .sks-stop-bubble .sks-emo { font-size: 32px; }
  .sks-stop-name { font-size: 21px; }
  .sks-tile { font-size: 18px; padding: 8px 10px 8px 8px; gap: 6px; }
  .sks-tile .sks-emo { font-size: 27px; }
  .sks-node-name { font-size: 17px; }
  .sks-node .sks-emo { font-size: 29px; }
  .sks-hab { min-height: 112px; padding: 8px; }
  .sks-hab-name { font-size: 19px; }
  .sks-hab-top .sks-emo { font-size: 27px; }
  .sks-count { grid-template-columns: 96px minmax(0, 1fr) 56px; }
  .sks-web-circle { width: 46px; height: 46px; }
  .sks-web-arrow { margin-top: 23px; }
  .sks-badge-name { max-width: 140px; }
  .sks-need { flex-basis: 62px; }
}

@container sks (max-width: 340px) {
  .sks-hab-top { gap: 5px; }
  .sks-hab-top .sks-emo { font-size: 22px; }
  .sks-hab-name { font-size: 17px; }
  .sks-hab { padding: 7px; }
  .sks-chip { font-size: 14px; gap: 3px; padding: 3px 7px 3px 4px; }
  .sks-chip .sks-emo { font-size: 17px; }
}

/* ---------- celebration (same as the other games) ---------- */
.sks-party { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 99999; transition: opacity .7s ease; }
.sks-party.is-leaving { opacity: 0; }
.sks-confetti { position: absolute; inset: 0; }
.sks-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: sks-banner-in .8s cubic-bezier(.2, .9, .3, 1.2) .15s both;
}
.sks-balloon { position: absolute; bottom: -150px; animation-name: sks-rise; animation-timing-function: cubic-bezier(.35, .1, .6, 1); animation-fill-mode: both; }
.sks-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: sks-sway 2s ease-in-out infinite alternate; transform-origin: 50% 140%;
}
.sks-balloon-body::before { content: ""; position: absolute; top: 12px; left: 13px; width: 10px; height: 16px; background: rgba(255, 255, 255, .6); border-radius: 50%; }
.sks-balloon-body::after { content: ""; position: absolute; top: 70px; left: 27px; width: 2px; height: 60px; background: rgba(0, 0, 0, .25); }

.sks-game .is-shake { animation: sks-shake .4s ease; }
@keyframes sks-flip { 0% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
@keyframes sks-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
@keyframes sks-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 sks-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 sks-pulse { 50% { transform: scale(1.04); } }
@keyframes sks-pop { 50% { transform: scale(1.1); } }
@keyframes sks-rise-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sks-star-in { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }
@keyframes sks-rise { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 100% { transform: translateY(calc(-100vh - 260px)); opacity: 1; } }
@keyframes sks-sway { from { transform: rotate(-7deg) translateX(-6px); } to { transform: rotate(7deg) translateX(6px); } }
@keyframes sks-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) {
  .sks-game *, .sks-game *::before, .sks-game *::after { animation: none !important; transition: none !important; }
  .sks-banner { animation-duration: .01s; }
}

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

/* v1.4.1 — full content width (like the Growth Path); question screens kept to a comfortable reading width. */
.sks-quizmod, .sks-factmod, .sks-badges, .sks-done { width: 100%; max-width: 900px; margin-left: auto; margin-right: auto; }
@container sks (min-width: 900px) {
  .sks-chainmod, .sks-habmod, .sks-balmod { width: 100%; max-width: 1100px; margin-left: auto; margin-right: auto; }
}
