/* The journey: a space flight between planets. Dark starry world, bright candy colors,
   and calm cream "screens" where the questions live. */
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka-hebrew.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --space: #150d3d; --space2: #23165f; --ink: #1b1638; --paper: #fffaf0; --line: #e9dfcb;
  --star: #ffd23f; --star-d: #d9a400; --coral: #ff6b5e; --mint: #2fd6b5; --sky: #59bdff; --lilac: #b79cff;
  --ok: #1fa971; --ok-bg: #e2f8ec; --no: #f0773a; --no-bg: #fff0e3; --dim: #c9c2f0;
  --he: "Fredoka", "Segoe UI", Arial, sans-serif;
  --ar: "Sakkal Majalla", "Traditional Arabic", "Noto Naskh Arabic", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; font-family: var(--he); font-size: 19px; color: #f6f2ff; background-color: var(--space);
  background-image:
    radial-gradient(1.6px 1.6px at 24px 36px, #fff 55%, transparent 60%), radial-gradient(1.1px 1.1px at 130px 90px, #ffffffb0 55%, transparent 60%),
    radial-gradient(2.2px 2.2px at 210px 170px, #ffe9a8 55%, transparent 60%), radial-gradient(1.2px 1.2px at 70px 220px, #bfe9ff 55%, transparent 60%),
    radial-gradient(900px 620px at 88% -8%, #4b2bb5 0%, transparent 62%), radial-gradient(760px 560px at -6% 108%, #0f6f8a66 0%, transparent 62%);
  background-size: 260px 260px, 310px 310px, 380px 380px, 290px 290px, auto, auto; background-attachment: fixed;
}
button, input { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.ar { font-family: var(--ar); direction: rtl; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
svg.ic { vertical-align: middle; flex: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 8px 18px; background: rgba(21, 13, 61, .88); backdrop-filter: blur(8px); border-bottom: 1px solid #ffffff1f; }
.brand { display: flex; align-items: center; gap: 8px; background: none; border: none; color: #fff; font-weight: 700; font-size: 21px; padding: 0; }
.seg { display: flex; background: #ffffff1a; border-radius: 18px; padding: 4px; gap: 4px; }
.seg button { border: none; background: none; color: var(--dim); border-radius: 14px; padding: 5px 16px; line-height: 1.15; text-align: center; }
.seg button b { display: block; font-size: 18px; font-weight: 600; }
.seg button small { font-size: 13px; }
.seg button.on { background: var(--star); color: var(--ink); box-shadow: 0 3px 0 var(--star-d); }
.chips { display: flex; gap: 8px; margin-inline-start: auto; }
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 16px; padding: 4px 12px; background: #ffffff1a; font-weight: 600; }
.chip.gold { color: var(--star); } .chip.fire { color: #ff9d5c; }
.chip b { color: #fff; }
.tools { display: flex; gap: 8px; }
.tool { display: inline-flex; align-items: center; gap: 6px; border: 2px solid #ffffff33; background: none; color: var(--dim); border-radius: 14px; padding: 5px 11px; font-size: 16px; font-weight: 500; }
.tool.on { border-color: var(--mint); color: var(--mint); background: #2fd6b51f; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: none; border-radius: 18px; padding: 12px 24px; font-weight: 700; font-size: 20px; color: var(--ink); background: var(--star); box-shadow: 0 6px 0 var(--star-d); transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--star-d); }
.btn.go { font-size: 22px; padding: 13px 30px; }
.btn.teal { background: var(--mint); box-shadow: 0 6px 0 #17a88c; }
.btn.ghost { background: #fff; box-shadow: 0 6px 0 #d8cfbd; }
.btn.small { padding: 7px 14px; font-size: 16px; border-radius: 13px; box-shadow: 0 4px 0 var(--star-d); }
.btn.small.ghost { box-shadow: 0 4px 0 #d8cfbd; }
.btn[disabled] { opacity: .45; cursor: default; }
.link { background: none; border: none; color: var(--sky); text-decoration: underline; padding: 0; font-size: inherit; }

/* ---------- home: hero and map ---------- */
.home { max-width: 1060px; margin: 0 auto; padding: 18px 18px 70px; }
.hero { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 6px 0 4px; }
.float { animation: float 4s ease-in-out infinite; }
.robot .jet { animation: jet .35s ease-in-out infinite alternate; transform-origin: 60px 126px; }
.bubble { position: relative; background: var(--paper); color: var(--ink); border-radius: 26px; padding: 16px 22px 14px; max-width: 520px; box-shadow: 0 8px 0 #00000040; }
.bubble::before { content: ""; position: absolute; inset-inline-start: -13px; top: 46px; border: 13px solid transparent; border-inline-end-color: var(--paper); border-inline-start-width: 0; }
.bubble p { margin: 0 0 12px; font-size: 22px; font-weight: 500; line-height: 1.35; }
.bubble small { display: block; margin-top: 12px; color: #6a6485; font-size: 15px; }
.tracknote { text-align: center; color: var(--dim); font-size: 16px; margin: 10px 0 0; }
.map { margin-top: 18px; }
.world { display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 0 12px; padding: 4px 0 14px; }
.world.flip { grid-template-columns: 1fr 210px; }
.world.flip .pl { order: 2; }
.world.flip .orbit { justify-content: flex-end; }
.pl { text-align: center; }
.pl h3 { margin: -10px 0 0; font-size: 21px; font-weight: 600; line-height: 1.2; color: #fff; }
.pl p { margin: 2px 0 0; font-size: 15px; color: var(--dim); }
.orbit { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 30px 10px; padding: 34px 4px 0; }
.orbit::before { content: ""; position: absolute; inset-inline: 30px; top: 68px; border-top: 4px dotted #ffffff3d; }
.node { position: relative; width: 104px; padding: 0; border: none; background: none; color: #fff; text-align: center; }
.node .num { position: relative; display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin: 0 auto; border-radius: 50%; font-size: 30px; font-weight: 700; color: #fff; background: var(--pc); box-shadow: 0 7px 0 #00000059, inset 0 -7px 0 #0000002e, inset 0 5px 0 #ffffff40; transition: transform .1s; }
.node:hover .num { transform: translateY(-3px); }
.node:active .num { transform: translateY(4px); box-shadow: 0 3px 0 #00000059, inset 0 -7px 0 #0000002e; }
.node.done .num { background: var(--star); color: var(--ink); }
.node.next .num { outline: 4px solid #fff; outline-offset: 3px; animation: pulse 1.8s ease-in-out infinite; }
.node.soon .num { background: #ffffff26; color: var(--dim); box-shadow: none; }
.node .rk { position: absolute; top: -40px; inset-inline-start: 50%; transform: translateX(50%); animation: float 2.4s ease-in-out infinite; }
.node .nm { display: block; margin-top: 10px; font-size: 15px; line-height: 1.2; color: #ece7ff; }
.stars3 { display: inline-flex; gap: 1px; direction: ltr; }
.stars3 .st { color: #ffffff38; display: inline-flex; }
.stars3 .st.on { color: var(--star); }
.node .stars3 { margin-top: 3px; }

/* ---------- first launch ---------- */
.onb, .finish, .lesson { max-width: 760px; margin: 0 auto; padding: 26px 18px 60px; }
.onb-card, .done-card { background: var(--paper); color: var(--ink); border-radius: 30px; padding: 24px 26px 28px; text-align: center; box-shadow: 0 10px 0 #00000040; }
.onb-card h1, .done-card h1 { margin: 4px 0 6px; font-size: 34px; }
.onb-card p { font-size: 21px; margin: 10px 0; }
.onb-card input { width: min(320px, 100%); text-align: center; font-size: 26px; font-weight: 600; padding: 10px 14px; border-radius: 16px; border: 3px solid var(--line); background: #fff; color: var(--ink); }
.sugg { display: flex; gap: 8px; justify-content: center; margin: 10px 0 4px; flex-wrap: wrap; }
.sugg button { border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 14px; padding: 4px 14px; font-size: 18px; }
.swatches { display: flex; gap: 12px; justify-content: center; margin: 6px 0 20px; }
.swatches button { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.swatches button.on { box-shadow: 0 0 0 4px var(--ink); }
.onb-gender { display: flex; gap: 14px; justify-content: center; margin: 12px 0 6px; }
.onb-gender button { min-width: 110px; border: 3px solid var(--line); background: #fff; color: var(--ink); border-radius: 16px; padding: 6px 22px; font-size: 24px; font-weight: 600; }
.onb-gender button.on { border-color: var(--ink); background: var(--star); box-shadow: 0 4px 0 var(--star-d); }

/* ---------- lesson intro ---------- */
.teach { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.bubble.big { max-width: none; flex: 1; }
.bubble.big h2 { margin: 0 0 6px; font-size: 26px; }
.bubble.big ol { margin: 0; padding-inline-start: 24px; font-size: 20px; line-height: 1.5; }
.tag { display: inline-block; background: #efe8ff; color: #5b3bd1; border-radius: 12px; padding: 2px 12px; font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.lesson-go { text-align: center; margin-top: 18px; }

/* ---------- mission play ---------- */
.play { max-width: 940px; margin: 0 auto; padding: 14px 16px 230px; }
.play.reading { max-width: 1240px; }
.playbar { display: flex; align-items: center; gap: 12px; }
.x { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; border: none; background: #ffffff1f; color: #fff; }
.fuel { flex: 1; display: flex; gap: 6px; direction: rtl; }
.fuel i { flex: 1; height: 16px; border-radius: 9px; background: #ffffff26; transition: background .25s; }
.fuel i.cur { background: #fff; } .fuel i.ok { background: var(--mint); } .fuel i.no { background: var(--no); }
.combo { display: inline-flex; align-items: center; gap: 3px; color: #ffffff4d; font-weight: 700; min-width: 46px; }
.combo.on { color: #ff9d5c; animation: pop .3s; }
.timebar { height: 8px; background: #ffffff26; border-radius: 6px; overflow: hidden; margin-top: 10px; }
.timebar i { display: block; height: 100%; width: 100%; background: var(--star); transition: width 1s linear; }
.ptitle { margin: 14px 4px 10px; font-size: 20px; font-weight: 500; color: var(--dim); }
.qcard { background: var(--paper); color: var(--ink); border-radius: 28px; padding: 22px 24px 18px; box-shadow: 0 10px 0 #00000040; }
.stem.he { font-size: 25px; font-weight: 600; line-height: 1.45; }
.stem.ar { font-size: 32px; line-height: 1.9; }
.stem .huge { font-size: 52px; }
.stem-he { margin-top: 6px; background: #e8f4ff; color: #1d5e96; border-radius: 12px; padding: 6px 12px; font-size: 18px; line-height: 1.5; }
.qfig { margin: 16px 0 4px; }
.qfig.mathdisp { direction: ltr; text-align: center; font-size: 36px; font-weight: 600; }
.qfig.mathdisp table { margin: 0 auto; border-collapse: collapse; }
.qfig.mathdisp td { border: 3px solid var(--ink); padding: 8px 20px; font-size: 34px; }
.figwrap { display: flex; justify-content: center; }
.fig { width: 100%; height: auto; }
.figrow { max-width: 640px; } .figgrid { max-width: 320px; } .carpet { max-width: 540px; border-radius: 10px; } .numfig { max-width: 560px; }
.pairbig { display: flex; justify-content: center; align-items: center; gap: 18px; font-size: 40px; }
.pairbig b { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 4px 22px; font-weight: 700; }
.pairbig i { font-style: normal; font-weight: 700; }
.sentence { font-size: 27px; line-height: 1.9; font-weight: 500; text-align: center; }
.blank { display: inline-block; width: 92px; border-bottom: 4px solid var(--ink); margin: 0 4px; transform: translateY(4px); }
mark.k { background: #ffe38a; border-radius: 6px; padding: 0 4px; }
.opts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opts.tiles { grid-template-columns: repeat(4, 1fr); direction: ltr; max-width: 640px; margin-inline: auto; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; background: #fff; color: var(--ink); border: 3px solid var(--line); border-bottom-width: 7px; border-radius: 18px; padding: 11px 14px; font-size: 22px; font-weight: 500; transition: transform .08s, border-color .1s; }
.opt[disabled] { cursor: default; }
.opt:not([disabled]):hover { border-color: var(--sky); transform: translateY(-2px); }
.opt:not([disabled]):active { transform: translateY(3px); border-bottom-width: 4px; margin-bottom: 3px; }
.opt .lt { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: #efe8ff; color: #5b3bd1; font-weight: 700; font-size: 20px; }
.opt .ob { flex: 1; min-width: 0; }
.opt .ot.ar { font-size: 28px; line-height: 1.6; }
.opt .ohe { display: block; color: #1d5e96; font-size: 16px; }
.opts.tiles .opt { flex-direction: column; gap: 6px; padding: 8px 8px 10px; }
.opts.tiles .ob { width: 100%; display: flex; justify-content: center; }
.tile { width: 100%; max-width: 124px; height: auto; display: block; }
.ctile { border-radius: 6px; }
.opt.right { border-color: var(--ok); background: var(--ok-bg); }
.opt.right .lt { background: var(--ok); color: #fff; }
.opt.wrong { border-color: var(--no); background: var(--no-bg); animation: shake .35s; }
.opt.wrong .lt { background: var(--no); color: #fff; }
.qtools { display: flex; gap: 8px; margin-top: 14px; }
.tool2 { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); background: #fff; color: #6a6485; border-radius: 14px; padding: 5px 13px; font-size: 17px; font-weight: 500; }
.tool2.on { border-color: var(--sky); color: #1d5e96; background: #e8f4ff; }
.hintbox { margin-top: 10px; background: #fff3c9; border-radius: 14px; padding: 9px 14px; font-size: 19px; line-height: 1.5; }
.sheet { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 7px max(16px, calc((100vw - 940px) / 2)); background: var(--ok-bg); color: var(--ink); border-top: 5px solid var(--ok); max-height: 46vh; overflow: auto; animation: up .22s ease-out; }
.sheet.no { background: var(--no-bg); border-top-color: var(--no); }
.sheet h3 { margin: 0; font-size: 25px; line-height: 1.2; }
.sheet .btn.go { padding-block: 9px; }
/* fb-bar: the explanation inside the card, under the options, in the colour of the verdict; the tools row is done once answered */
#qcard .qfb { margin-top: 10px; font-size: 19px; line-height: 1.5; border-inline-start: 6px solid var(--ok); }
#qcard .qfb.no { border-inline-start-color: var(--no); }
#qcard .qfb .ar { font-size: 24px; } #qcard .qfb .ar.big { font-size: 30px; }
#qcard.answered .qtools, #qcard.answered #hint { display: none; }
.sheet .who svg { width: 44px; height: 44px; }
#qcard[style*="--fit-tiles"] .qbody.side .opts.tiles { width: var(--fit-tiles); }
/* fb-bar: sentence options short enough for two columns show two by two on desktop screens up to 900px tall (as on the short
   screens below), so a sentence question keeps room for its explanation inside the card */
@media (min-width: 700px) and (max-height: 900px) and (orientation: landscape) { .play .opts.one.fit-mid { grid-template-columns: 1fr 1fr; } }
.spark { position: fixed; z-index: 60; width: 11px; height: 11px; border-radius: 3px; pointer-events: none; animation: spark .65s ease-out forwards; }

/* reading (Stage A) */
.rsplit { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: start; }
.passage { background: var(--paper); color: var(--ink); border-radius: 26px; padding: 14px 18px; max-height: 76vh; overflow: auto; position: sticky; top: 12px; box-shadow: 0 10px 0 #00000040; }
.passage h2 { font-family: var(--ar); font-size: 32px; text-align: center; margin: 4px 0 8px; }
.passage .qtools { margin: 0 0 8px; }
.pl-line { display: flex; gap: 10px; align-items: baseline; padding: 1px 4px; }
.pl-line .n { flex: none; width: 24px; color: #9a94b0; font-size: 14px; text-align: center; }
.pl-line .t { font-size: 27px; line-height: 2; }
.pl-line .h { display: block; font-family: var(--he); font-size: 15px; color: #1d5e96; line-height: 1.4; margin-bottom: 4px; }
.pl-line.mark { background: #ffe9a8; border-radius: 10px; }
.gloss { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.gloss span { border: 1px solid var(--line); border-radius: 14px; padding: 2px 10px; background: #fff; font-size: 15px; }
.gloss .ar { font-size: 21px; }

/* word cards (Arabic bridge) */
.flash { background: var(--paper); color: var(--ink); border-radius: 30px; padding: 26px 20px; text-align: center; box-shadow: 0 10px 0 #00000040; }
.flash .cnt { color: #6a6485; font-size: 16px; }
.flash .em { font-size: 56px; line-height: 1.2; }
.flash .w { font-family: var(--ar); font-size: 60px; margin: 2px 0; }
.flash .m { font-size: 28px; font-weight: 700; color: #5b3bd1; }
.flash .ex { margin: 14px 0 18px; }
.flash .ex .ar { font-size: 28px; }
.flash .ex .he { color: #6a6485; }

/* ---------- mission end ---------- */
.done-card .bigstars { margin-top: -6px; }
.done-card .bigstars .st { color: #e4dccb; }
.done-card .bigstars .st.on { color: var(--star); filter: drop-shadow(0 4px 0 var(--star-d)); animation: pop .5s backwards; }
.done-card .bigstars .st:nth-child(2) { animation-delay: .18s; transform: translateY(-10px); }
.done-card .bigstars .st:nth-child(3) { animation-delay: .36s; }
.score { font-size: 22px; margin: 0 0 14px; }
.fact { background: #efe8ff; border-radius: 18px; padding: 12px 16px; font-size: 19px; line-height: 1.5; margin: 0 auto 18px; max-width: 560px; }
.fact b { color: #5b3bd1; }
.row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mistakes { text-align: start; margin-top: 20px; }
.mistakes summary { cursor: pointer; font-weight: 600; font-size: 19px; }
.mist { border-top: 1px solid var(--line); padding: 10px 0; font-size: 18px; line-height: 1.5; }
.mist .fig { max-width: 420px; }

/* ---------- light pages: parent screen and simulation intro ---------- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 18px 16px 60px; }
.card { background: var(--paper); color: var(--ink); border-radius: 26px; padding: 18px 22px; box-shadow: 0 10px 0 #00000040; }
.card h2 { margin: 2px 0 8px; } .card h3 { margin: 20px 0 6px; }
.card a { color: #2a56c6; }
.sub { color: #6a6485; font-size: 15px; }
.intro .tip { background: #fff3c9; border-radius: 14px; padding: 10px 14px; margin: 10px 0; line-height: 1.6; }
.intro .ex { border: 2px dashed var(--line); border-radius: 16px; padding: 12px 14px; margin: 10px 0; line-height: 1.7; font-size: 18px; }
.next-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
table.grid { width: 100%; border-collapse: collapse; font-size: 16px; }
table.grid th, table.grid td { border-bottom: 1px solid var(--line); padding: 7px 6px; text-align: start; }
table.grid th { background: #f4ead6; }
.warn { color: #c93a2b; font-weight: 700; }
.result { text-align: center; }
.feedback { margin-top: 8px; border-radius: 14px; padding: 10px 14px; font-size: 18px; line-height: 1.6; text-align: start; }
.feedback.ok { background: var(--ok-bg); } .feedback.no { background: var(--no-bg); }
.display { direction: ltr; text-align: center; font-size: 28px; margin: 10px 0; }
.display table { margin: 0 auto; border-collapse: collapse; }
.display td { border: 2px solid #333; padding: 6px 16px; }
#toast { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 70; background: #fff; color: var(--ink); border-radius: 16px; padding: 10px 18px; font-weight: 600; box-shadow: 0 6px 0 #00000040; opacity: 0; pointer-events: none; transition: opacity .25s; max-width: 92vw; text-align: center; }
#toast.show { opacity: 1; }

/* ---------- simulation booklet (looks like the paper test) ---------- */
.paper-wrap { background: #d9d4cb; padding: 14px 0 40px; min-height: 100vh; color: #111; }
.simbar { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; color: #111; }
.clock { background: #fff; border-radius: 10px; padding: 6px 14px; font-weight: 700; font-size: 20px; direction: ltr; }
.clock.low { color: #c93a2b; }
.page { background: #fff; color: #111; width: min(820px, 96vw); min-height: 1080px; margin: 0 auto 16px; padding: 46px 54px; box-shadow: 0 2px 12px rgba(0, 0, 0, .18); font-family: "Times New Roman", var(--ar); position: relative; }
.page .pno { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #555; font-size: 14px; }
.page .sec { font-family: var(--ar); font-size: 24px; font-weight: 700; }
.page .ins { font-family: var(--ar); font-size: 22px; font-weight: 700; margin: 4px 0 16px; }
.page .ptitle { font-family: var(--ar); font-size: 30px; text-align: center; font-weight: 700; margin: 6px 0 14px; color: #111; }
.page .pline { display: flex; gap: 10px; font-family: var(--ar); font-size: 22px; line-height: 2.1; }
.page .pline .n { width: 22px; flex: none; color: #555; font-size: 13px; }
.page .pq { font-family: var(--ar); font-size: 23px; margin: 18px 0 6px; font-weight: 700; line-height: 1.8; }
.page .pq .qn { margin-left: 6px; }
.page .popt { display: flex; gap: 10px; align-items: center; font-family: var(--ar); font-size: 22px; padding: 3px 26px; cursor: pointer; line-height: 1.8; }
.page .popt .pl2 { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid transparent; font-weight: 700; }
.page .popt.sel .pl2 { border-color: #1a3fbf; }
.page .pdisp { direction: ltr; text-align: center; font-size: 26px; margin: 8px 0; font-family: "Segoe UI", Arial, sans-serif; }
.page .pdisp table { margin: 0 auto; border-collapse: collapse; }
.page .pdisp td { border: 1.5px solid #222; padding: 6px 14px; }
.cover { text-align: center; }
.cover h1 { font-family: var(--ar); font-size: 44px; margin: 140px 0 10px; }
.cover .f { font-family: var(--ar); font-size: 24px; margin: 26px 0; }
.navgrid { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; max-width: 820px; margin: 0 auto 10px; }
.navgrid button { width: 34px; height: 30px; border: 1px solid #aaa; border-radius: 6px; background: #fff; font-size: 14px; color: #111; }
.navgrid button.ans { background: #cfe8d6; }
.navgrid button.flag { outline: 2px solid #e07a2e; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.node .rk { animation-name: floatrk; }
@keyframes floatrk { 0%, 100% { transform: translateX(50%) translateY(0); } 50% { transform: translateX(50%) translateY(-6px); } }
@keyframes jet { from { transform: scaleY(.7); opacity: .55; } to { transform: scaleY(1.15); opacity: .9; } }
@keyframes pulse { 0%, 100% { outline-color: #fff; } 50% { outline-color: #ffffff59; } }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.2); } 100% { transform: scale(1); opacity: 1; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) rotate(200deg) scale(.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 860px) {
  .world, .world.flip { grid-template-columns: 1fr; }
  .world.flip .pl { order: 0; } .world.flip .orbit { justify-content: flex-start; }
  .rsplit { grid-template-columns: 1fr; } .passage { position: static; max-height: 46vh; }
  .opts.two { grid-template-columns: 1fr; }
  .hero { flex-direction: column; } .bubble::before { display: none; }
  .tool span { display: none; }
  .sheet { grid-template-columns: 1fr auto; } .sheet .who { display: none; }
}
@media (max-width: 560px) { .opts.tiles { grid-template-columns: repeat(2, 1fr); } .pairbig { font-size: 30px; } .stem.he { font-size: 22px; } }

@media print {
  body { background: #fff; }
  .top, .simbar, .navgrid, .noprint, #toast { display: none !important; }
  .paper-wrap { background: #fff; padding: 0; }
  .page { box-shadow: none; margin: 0; width: auto; min-height: 0; page-break-after: always; display: block !important; padding: 20mm 18mm; }
  .page .popt.sel .pl2 { border-color: transparent; }
  .page .pline { font-size: 15pt; line-height: 1.8; }
  .page .pq { font-size: 15pt; margin: 12pt 0 4pt; }
  .page .popt { font-size: 14pt; padding: 1pt 20pt; }
  .page .ins, .page .sec { font-size: 14pt; }
  .page .ptitle { font-size: 20pt; }
  .page .pdisp, .page .pdisp td { font-size: 18pt; }
  .page .pno { display: none; }
  .qblock { break-inside: avoid; }
  .cover h1 { margin-top: 60mm; }
  .page:last-child { page-break-after: auto; }
}

/* the path zigzags: in flipped rows the missions run away from the planet, left to right */
.world.flip .orbit { direction: ltr; justify-content: flex-start; }
.world.flip .node { direction: rtl; }

/* short answers (numbers) sit in one row of four big keys */
.opts.four { grid-template-columns: repeat(4, 1fr); max-width: 640px; margin-inline: auto; }
.opts.four .opt { flex-direction: column; gap: 4px; padding: 8px 6px 10px; text-align: center; font-size: 28px; font-weight: 600; }
.opts.four .ot.ar { font-size: 30px; }
/* three-row grids and carpets: the figure and the four pieces side by side */
.qbody.side { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 12px 34px; }
.qbody.side .qfig { margin: 14px 0 0; }
.qbody.side .figgrid { width: 300px; } .qbody.side .carpet { width: 470px; }
.qbody.side .opts.tiles { grid-template-columns: 1fr 1fr; width: 270px; margin: 14px 0 0; }
@media (max-width: 860px) { .qbody.side { grid-template-columns: 1fr; } .qbody.side .figgrid, .qbody.side .carpet { width: 100%; } .qbody.side .opts.tiles { grid-template-columns: repeat(4, 1fr); width: auto; } .opts.four { grid-template-columns: 1fr 1fr; } }

/* ---------- Stage B mock test: the official paper look (sb- classes only) ---------- */
.sb-wrap .simbar span { font-size: 16px; }
.navgrid button.sb-cur { border: 2px solid #111; font-weight: 700; }
.page.sb-page { box-sizing: border-box; width: min(794px, 96vw); min-height: 1123px; padding: 40px 56px 60px; font-family: Arial, "Segoe UI", sans-serif; color: #000; background: #fff; }
.sb-page.sb-free { min-height: 0; }
.sb-foot { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 12px; color: #222; }
.sb-ph { font-size: 25px; font-weight: 700; margin: 0 0 14px; text-align: center; }
.sb-gh { font-size: 20px; font-weight: 700; margin: 14px 0 8px; border-bottom: 1.5px solid #000; padding-bottom: 3px; }
.sb-ins p { font-size: 18px; line-height: 1.55; margin: 0 0 6px; }
.sb-exh { display: inline-block; font-weight: 700; font-size: 17px; border: 1.5px solid #000; padding: 1px 12px; margin: 12px 0 6px; }
.sb-ex { border: 1.5px dashed #000; padding: 12px 16px; }
.sb-sol { margin-top: 10px; font-size: 16px; line-height: 1.55; border-top: 1px solid #888; padding-top: 8px; }
.sb-solfig { display: flex; justify-content: center; margin-bottom: 6px; }
.sb-solfig .fig { max-width: 300px; } .sb-solfig .figrow { max-width: 420px; } .sb-solfig .figgrid { max-width: 190px; } .sb-solfig .carpet { max-width: 260px; }
.sb-time { font-weight: 700; font-size: 17px; margin: 14px 0 0; text-align: center; }
.sb-cover { text-align: center; padding-top: 200px; }
.sb-cover h1 { font-size: 46px; margin: 0 0 12px; }
.sb-csub { font-size: 24px; margin-bottom: 110px; }
.sb-f { font-size: 24px; margin: 30px 0; }
.sb-list { font-size: 20px; line-height: 1.6; padding-inline-start: 26px; }
.sb-list li { margin: 10px 0; }
.sb-luck { text-align: center; font-size: 28px; font-weight: 700; margin-top: 40px; }
.sb-q { margin: 0 0 24px; }
.sb-stem { display: flex; gap: 8px; align-items: flex-start; font-size: 19px; line-height: 1.55; }
.sb-qn { font-weight: 700; flex: none; }
.sb-st { flex: 1; }
.sb-q .pairbig { justify-content: flex-start; font-size: 21px; gap: 10px; }
.sb-q .pairbig b { background: none; border: 0; padding: 0; font-weight: 700; }
.sb-q .sentence { font-size: 19px; text-align: start; font-weight: 400; line-height: 1.6; }
.sb-q .blank { width: 64px; border-bottom: 2px solid #000; transform: none; }
.sb-wdisp { direction: ltr; text-align: center; margin: 6px 0; }
.sb-opts { list-style: none; margin: 6px 0 0; padding: 0 30px 0 0; }
.sb-opt { display: flex; align-items: center; gap: 10px; font-size: 18px; padding: 3px 4px; }
.sb-d { font-size: 14px; min-width: 10px; text-align: center; }
.sb-box { box-sizing: border-box; width: 24px; height: 24px; border: 1.5px solid #000; display: inline-flex; align-items: center; justify-content: center; font: 700 21px/1 Arial, sans-serif; flex: none; background: #fff; color: #000; }
.sb-opt[data-act], .sb-tile[data-act] { cursor: pointer; border-radius: 6px; }
.sb-opt[data-act]:hover, .sb-tile[data-act]:hover { background: #f1f1f1; }
.sb-qh { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.sb-fig { display: flex; justify-content: center; margin: 4px 0 10px; }
.sb-fig .figwrap { width: 100%; }
.sb-fig .numfig { max-height: 250px; } .sb-fig .figgrid, .sb-fig .carpet { max-height: 330px; }
.sb-fig .figrow { max-width: 600px; } .sb-fig .figgrid { max-width: 250px; } .sb-fig .carpet { max-width: 430px; } .sb-fig .numfig { max-width: 420px; }
.sb-tiles { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 540px; margin: 0 auto; padding: 0; }
.sb-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px; }
.sb-th { display: flex; align-items: center; gap: 6px; }
.sb-tile .tile { max-width: 104px; }
.sb-flag { margin-inline-start: auto; flex: none; background: none; border: 1px solid #bbb; border-radius: 6px; font: 13px Arial, sans-serif; padding: 2px 8px; cursor: pointer; color: #555; }
.sb-flag.on { border-color: #e07a2e; background: #fff1e4; color: #000; }
.sb-end { text-align: center; font-weight: 700; font-size: 17px; margin-top: 18px; }
.sb-go { text-align: center; margin-top: 26px; }
.sb-pbar { padding: 10px; }
.sb-rv { text-align: start; background: #fff; border-radius: 14px; padding: 10px; margin: 8px 0; }
.sb-key { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.sb-key th, .sb-key td { border: 1px solid #000; padding: 4px 7px; vertical-align: top; text-align: start; }
.sb-key td.sb-kans { font-size: 18px; font-weight: 700; text-align: center; width: 54px; }
.sb-kfig { display: flex; justify-content: flex-start; margin-bottom: 4px; }
.sb-kfig .fig { max-width: 230px; } .sb-kfig .figrow { max-width: 330px; } .sb-kfig .figgrid { max-width: 140px; } .sb-kfig .carpet { max-width: 190px; }
.sb-script h3 { font-size: 18px; margin: 14px 0 4px; }
.sb-script p, .sb-script li { font-size: 16px; line-height: 1.55; margin: 0 0 4px; }
.sb-say { font-weight: 700; }
@page sb { size: A4; margin: 10mm; }
@media print {
  .page.sb-page { page: sb; width: auto; min-height: 276mm; margin: 0; padding: 8mm 12mm 14mm; box-shadow: none; break-after: page; }
  .page.sb-page.sb-free { min-height: 0; }
  .sb-flag, .sb-go { display: none !important; }
  .sb-foot { bottom: 4mm; font-size: 9pt; }
  .sb-ph { font-size: 17pt; } .sb-gh { font-size: 14pt; } .sb-ins p, .sb-list { font-size: 13pt; } .sb-sol, .sb-time { font-size: 11.5pt; }
  .sb-stem, .sb-opt, .sb-q .sentence { font-size: 13pt; } .sb-q .pairbig { font-size: 15pt; } .sb-qh { font-size: 13pt; }
  .sb-q { break-inside: avoid; margin-bottom: 14pt; }
  .sb-fig .fig { max-height: 72mm; } .sb-fig .numfig { max-height: 62mm; } .sb-solfig .fig { max-height: 45mm; }
  .sb-key tr { break-inside: avoid; }
  .sb-cover { padding-top: 60mm; }
}

/* ---------- worlds (skins): the root carries data-skin="space" | "animals" ---------- */
/* mission nodes in both worlds: open = outlined, finished = filled with a check ring, current = cream with a gold ring */
:root { --nodebg: #221864; --ring: #150d3d; }
.node .num { background: var(--nodebg); border: 4px solid var(--pl, var(--pc)); color: #fff; box-shadow: 0 6px 0 #00000045; z-index: 1; }
.node.done .num { background: var(--pc); border-color: var(--pc); color: #fff; text-shadow: 0 2px 0 #00000030; box-shadow: 0 7px 0 #00000059, inset 0 -7px 0 #0000002e, inset 0 5px 0 #ffffff40; }
.node.next .num { background: var(--paper); color: var(--pc); border-color: var(--star); outline: 4px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 12px #ffd23f2e, 0 7px 0 #00000059; }
.node.soon .num { border-color: transparent; }
.node.next .nm { color: var(--star); font-weight: 600; }
.node .rk { z-index: 3; }
.skin-chk { position: absolute; z-index: 2; top: -6px; inset-inline-end: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); color: var(--ok); display: flex; align-items: center; justify-content: center; border: 3px solid var(--ring); }
/* the world switch beside the companion, in the parent screen, and the two picture cards on first launch */
.skin-buddy { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.skin-sw { display: inline-flex; gap: 3px; padding: 3px; border-radius: 16px; background: #ffffff1a; vertical-align: middle; }
.skin-sw button { display: inline-flex; align-items: center; gap: 4px; border: none; background: none; color: var(--dim); border-radius: 13px; padding: 3px 11px; font-size: 15px; font-weight: 600; }
.skin-sw button.on { background: var(--star); color: var(--ink); box-shadow: 0 3px 0 var(--star-d); }
.card .skin-sw { background: #f4ead6; } .card .skin-sw button { color: #6a6485; } .card .skin-sw button.on { color: var(--ink); }
.skin-cards { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 6px 0 4px; }
.skin-card { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 150px; border: 3px solid var(--line); background: #fff; color: var(--ink); border-radius: 20px; padding: 8px 14px 6px; }
.skin-card.on { border-color: var(--ink); background: #fff3c9; box-shadow: 0 4px 0 var(--star-d); }
.skin-card b { font-size: 22px; }
.skin-card-art { display: flex; align-items: flex-end; gap: 2px; height: 76px; }

/* ---------- the animals world: dusk forest, fox cub, habitats, paw trail (skin-an-*) ---------- */
[data-skin="animals"] { --space: #0c261d; --dim: #cfe2c6; --mint: #4fdcae; --nodebg: #102e22; --ring: #0c261d; }
[data-skin="animals"] body { background-color: #0c261d; background-size: auto;
  background-image: radial-gradient(1400px 460px at 50% 100%, #e8963c 0%, #b8682a99 30%, #6a4a1c40 55%, transparent 75%), radial-gradient(700px 420px at 90% -10%, #1f5a43 0%, transparent 65%), linear-gradient(180deg, #0a2119 0%, #0f2e23 40%, #1d3a24 72%, #4a3a1c 100%); }
[data-skin="animals"] #app { position: relative; z-index: 1; }
[data-skin="animals"] .top { background: rgba(9, 30, 22, .9); }
[data-skin="animals"] .node .nm { color: #eef5e4; }
[data-skin="animals"] .node.next .nm { color: var(--star); }
[data-skin="animals"] .pl h3 { margin-top: -2px; }
[data-skin="animals"] .home { padding-bottom: 120px; }
[data-skin="animals"] .map { margin-top: 26px; }
[data-skin="animals"] .orbit { gap: 34px 10px; padding-top: 40px; }
[data-skin="animals"] .orbit::before { display: none; }
[data-skin="animals"] .node::after { content: ""; position: absolute; z-index: 0; top: 23px; inset-inline-start: 50%; width: 114px; height: 22px; opacity: .6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='22' viewBox='0 0 38 22'%3E%3Cg fill='%23ffe7b0'%3E%3Cg transform='translate(2 1) rotate(-90 9 9)'%3E%3Cellipse cx='9' cy='12' rx='4.6' ry='3.8'/%3E%3Ccircle cx='3.6' cy='7' r='1.8'/%3E%3Ccircle cx='7' cy='4.2' r='1.8'/%3E%3Ccircle cx='11' cy='4.2' r='1.8'/%3E%3Ccircle cx='14.4' cy='7' r='1.8'/%3E%3C/g%3E%3Cg transform='translate(20 5) rotate(-90 9 9)'%3E%3Cellipse cx='9' cy='12' rx='4.6' ry='3.8'/%3E%3Ccircle cx='3.6' cy='7' r='1.8'/%3E%3Ccircle cx='7' cy='4.2' r='1.8'/%3E%3Ccircle cx='11' cy='4.2' r='1.8'/%3E%3Ccircle cx='14.4' cy='7' r='1.8'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat-x right center; }
[data-skin="animals"] .world.flip .node::after { inset-inline-start: auto; inset-inline-end: 50%; transform: scaleX(-1); }
[data-skin="animals"] .node:last-child::after { display: none; }
[data-skin="animals"] .fact { background: #e3f3dc; }
[data-skin="animals"] .fact b { color: #2a7a4a; }
[data-skin="animals"] .link { color: #7fd0ff; }
[data-skin="animals"] .bubble .link { color: #1d6fb0; }
.skin-an-fox .tail { animation: skin-an-wag 1.6s ease-in-out infinite alternate; transform-origin: 80px 112px; }
@keyframes skin-an-wag { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
#skin-an-scene { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.skin-an-hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 300px; }
.skin-an-canopy { position: absolute; top: 56px; width: 260px; height: 220px; }
.skin-an-canopy.r { right: -30px; } .skin-an-canopy.l { left: -30px; transform: scaleX(-1); }
.skin-an-ff { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #f4ff9e; box-shadow: 0 0 10px 4px #e6ff6a80, 0 0 22px 8px #e6ff6a26; animation: skin-an-glow 3.2s ease-in-out infinite; }
.skin-an-ff.s { width: 4px; height: 4px; }
@keyframes skin-an-glow { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-6px); } }
@media (max-width: 860px) { .skin-an-canopy { width: 160px; height: 136px; } }
@media (max-width: 480px) { [data-skin="animals"] .orbit { gap: 34px 4px; } [data-skin="animals"] .node::after { width: 104px; } }
@media print { #skin-an-scene { display: none !important; } }

/* ---------- test strategy in practice (strat.js): cross out, skip and come back, grace time, pace cue, the lesson ---------- */
.strat-li { position: relative; }
.strat-x { position: absolute; top: -9px; inset-inline-end: -9px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: #8a83a6; box-shadow: 0 3px 0 #00000026; cursor: pointer; }
.strat-x:hover { border-color: var(--no); color: var(--no); }
.strat-x.on { background: var(--no); border-color: var(--no); color: #fff; }
.strat-x[disabled] { display: none; }
.opt.strat-crossed { opacity: .5; filter: grayscale(1); background: #f3f0ea; }
.opt.strat-crossed:hover { transform: none; border-color: var(--line); }
.opt.strat-crossed .ob { position: relative; }
.opt.strat-crossed .ot { text-decoration: line-through; text-decoration-thickness: 3px; }
.opt.strat-crossed .ob::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top right, transparent calc(50% - 2px), #4a4466 calc(50% - 2px), #4a4466 calc(50% + 2px), transparent calc(50% + 2px)); }
.opts.four .opt.strat-crossed .ob::after, .opts.two .opt.strat-crossed .ob::after, .opts.one .opt.strat-crossed .ob::after { display: none; }
.strat-ptitle { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.strat-qn { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; color: var(--dim); white-space: nowrap; }
.strat-backtag { display: inline-flex; align-items: center; gap: 5px; background: #ffffff1f; border: 2px dashed var(--star); color: var(--star); border-radius: 12px; padding: 2px 10px; font-size: 15px; }
.fuel i.strat-skip { background: transparent; border: 2px dashed var(--star); }
.strat-skipbtn { border-style: dashed; }
.strat-pace { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; border-radius: 14px; padding: 5px 12px; font-size: 16px; color: #6a6485; background: #f1edf9; }
.strat-pace.on { color: #6b4a00; background: #fff3c9; }
.simbar .strat-pace { margin-inline-start: 0; }
.strat-gline { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; padding: 6px 14px; border-radius: 16px; background: #e8f4ff; border: 2px solid var(--sky); color: #1d4f7a; }
.strat-gline svg { flex: none; }
.strat-gtxt { flex: 1; font-size: 18px; font-weight: 700; }
.strat-gsec { display: inline-flex; align-items: baseline; gap: 6px; flex: none; color: #1d5e96; }
.strat-gsec b { font-size: 30px; line-height: 1; min-width: 1.2em; text-align: center; } .strat-gsec small { font-size: 14px; }
.qbody.side > .strat-gline { grid-column: 1 / -1; }
.timebar i.strat-gbar { background: var(--sky); }
.sb-tile { position: relative; }
.sb-opt .strat-x-sb { position: static; margin-inline-start: 16px; width: 30px; height: 30px; box-shadow: none; flex: none; }
.sb-tile .strat-x-sb { top: -6px; inset-inline-end: -6px; width: 30px; height: 30px; }
.sb-opt.strat-crossed .sb-ot { text-decoration: line-through; text-decoration-thickness: 2px; color: #999; }
.sb-tile.strat-crossed svg:not(.ic) { opacity: .35; }
.sb-opt.strat-crossed, .sb-tile.strat-crossed { background: #f1f1f1; }
/* the lesson */
.strat-cnt { display: flex; align-items: center; gap: 6px; font-size: 15px; color: #6a6485; margin-bottom: 4px; }
.strat-cnt span:last-child { margin-inline-start: 8px; }
.strat-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.strat-dot.on { background: #5b3bd1; } .strat-dot.done { background: var(--mint); }
.strat-idea { margin: 0; font-size: 19px; line-height: 1.5; }
.strat-ins { margin: 0 0 6px; font-size: 19px; font-weight: 600; }
.strat-try .opts { margin-top: 10px; }
.strat-fbx { margin-top: 12px; border-radius: 14px; padding: 9px 14px; font-size: 19px; line-height: 1.5; }
.strat-fbx.ok { background: var(--ok-bg); } .strat-fbx.no { background: var(--no-bg); }
.strat-minis { display: grid; gap: 10px; }
.strat-mini { display: flex; align-items: center; gap: 12px; background: #fff; border: 3px solid var(--line); border-radius: 16px; padding: 8px 12px; font-size: 18px; }
.strat-mini b { flex: none; } .strat-mt { flex: 1; }
.strat-mini.hard .strat-mt { font-size: 15px; color: #4a4466; }
.strat-mini.later { border-style: dashed; border-color: var(--star-d); }
.strat-later { display: inline-flex; align-items: center; gap: 4px; color: #8a6400; font-weight: 600; white-space: nowrap; }
.strat-clock { display: flex; align-items: center; gap: 10px; color: #6a6485; }
.strat-clock .timebar { flex: 1; margin: 0; }
.strat-q3 { font-size: 21px; font-weight: 700; margin: 12px 0 6px; }
.strat-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.strat-two .opt { justify-content: center; text-align: center; }
.strat-pts { display: block; font-size: 16px; color: #5b3bd1; }
.strat-go { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.node.strat-node .num .ic { color: #fff; }
.node.strat-node.next .num .ic { color: var(--pc); }
.strat-par { max-width: 760px; }
@media (max-width: 560px) { .strat-two { grid-template-columns: 1fr; } .strat-qn { font-size: 15px; } .strat-x { width: 34px; height: 34px; } }
@media print { .strat-x, .strat-pace { display: none !important; } }
.strat-clock .timebar { background: var(--line); } .strat-clock .timebar i { background: var(--sky); }

/* fit: on desktop and tablet-landscape screens a question shows whole without scrolling.
   ui.js fitQ() sets --fit-fig on the card when the figure must give up height; short screens tighten the spacing (fonts unchanged). */
#qcard .qfig .fig, .fit-lesson .qcard .qfig .fig { max-height: var(--fit-fig, none); }
@media (min-width: 700px) and (max-height: 820px) and (orientation: landscape) {
  .play { padding-top: 6px; }
  .play .timebar { margin-top: 6px; }
  .play .ptitle { margin: 4px 4px 4px; }
  .play .qcard { padding: 12px 22px 10px; }
  .play .qfig { margin: 6px 0 0; }
  .play .qbody.side .qfig { margin: 6px 0 0; }
  .play .opts { margin-top: 10px; gap: 8px; }
  .play .qbody.side .opts.tiles { margin-top: 6px; }
  .play .opt { padding-top: 6px; padding-bottom: 6px; border-bottom-width: 5px; }
  .play .opts.four .opt { padding: 5px 6px 6px; }
  .play .qtools { margin-top: 8px; }
  .play .sentence { line-height: 1.6; }
  .play .strat-gline { margin: 6px 0 2px; padding: 3px 14px; }
}
@media (min-width: 700px) and (max-height: 680px) and (orientation: landscape) { .play .qbody.side .opts.tiles { width: 228px; } }
/* fit: very short landscape screens (about 650px): a sentence of up to 3 lines with 4 whole-clause options and a 3-line feedback band;
   a little less air above and between the options keeps the last option above the band (options stay above 50px tall, fonts unchanged) */
@media (min-width: 700px) and (max-height: 680px) and (orientation: landscape) {
  .play .qcard { padding-top: 8px; }
  .play .opts { margin-top: 6px; gap: 6px; }
  .play .opts.one .opt { padding-top: 4px; padding-bottom: 4px; }
}
/* ---------- the collection: gear strip, album, home entry, mission-end reveal (coll-*) ---------- */
:root { --coll-groupbg: #120b3acc; --coll-dash: #ffffff33; }
[data-skin="animals"] { --coll-groupbg: #0a1f17cc; }
.coll-page { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 12px 24px 60px; }
.coll-phead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.coll-phead h1 { margin: 0; font-size: 32px; font-weight: 700; color: #fff; }
.coll-back { display: inline-flex; align-items: center; gap: 8px; border: none; border-radius: 16px; font-weight: 700; color: var(--ink); background: var(--star); box-shadow: 0 5px 0 var(--star-d); font-size: 19px; padding: 9px 20px; }
.coll-grow { display: grid; grid-template-columns: 270px 180px 1fr; align-items: center; gap: 0 18px; background: var(--paper); color: var(--ink); border-radius: 28px; padding: 6px 26px 10px; box-shadow: 0 8px 0 #00000045; }
.coll-gtext h2 { margin: 0 0 4px; font-size: 25px; font-weight: 700; line-height: 1.2; }
.coll-gtext p { margin: 0; font-size: 17px; color: #5d5878; line-height: 1.35; text-wrap: balance; }
.coll-cnt { display: inline-block; margin-top: 10px; background: #f1e7d2; border-radius: 12px; padding: 3px 12px; font-size: 16px; font-weight: 600; color: #5a4a2a; }
.coll-buddy { position: relative; display: flex; justify-content: center; }
.coll-buddy::before { content: ""; position: absolute; inset: 14px 6px 0; border-radius: 50%; background: radial-gradient(closest-side, #ffd23f55, #ffd23f00); }
.coll-buddy svg { position: relative; }
/* fix-: the 170px companion of the approved mock keeps the strip at its old height (the drawing has air at top and bottom) */
.coll-grow > .coll-buddy svg { margin: -6px 0 -10px; }
.coll-path { display: flex; flex-direction: column; gap: 8px; }
.coll-stages { display: flex; justify-content: space-between; align-items: flex-start; }
.coll-stage { position: relative; flex: 1; text-align: center; }
.coll-stage::after { content: ""; position: absolute; top: 33px; inset-inline-start: calc(50% + 38px); width: calc(100% - 76px); border-top: 4px dotted #d9c9a6; }
.coll-stage:last-child::after { display: none; }
.coll-stage.coll-sgot::after { border-top-color: #e2a35a; }
.coll-med { position: relative; width: 70px; height: 70px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.coll-stage.coll-sgot .coll-med { background: #fff; border: 4px solid #f07a2c; box-shadow: 0 5px 0 #00000026; }
[data-skin="space"] .coll-stage.coll-sgot .coll-med { border-color: #7a5be0; }
.coll-stage.coll-snext .coll-med { background: #fff7d6; border: 4px solid var(--star); box-shadow: 0 0 0 7px #ffd23f40, 0 5px 0 #00000026; }
.coll-stage.coll-snext .coll-med svg { opacity: .55; }
.coll-stage.coll-slock .coll-med { background: #f1e8d6; border: 3px dashed #d4c39e; }
.coll-stage.coll-slock .coll-med svg * { fill: #dccdab !important; stroke: #dccdab !important; opacity: 1 !important; }
.coll-chk { position: absolute; top: -6px; inset-inline-end: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; border: 3px solid var(--paper); }
.coll-lb { display: block; margin-top: 6px; font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.coll-stage.coll-slock .coll-lb { color: #8f8366; font-weight: 500; }
.coll-stage.coll-snext .coll-lb { color: #9a6c00; }
.coll-nextrow { display: flex; align-items: center; gap: 12px; background: #fff3c2; border-radius: 16px; padding: 7px 14px; }
.coll-t { font-size: 17px; font-weight: 600; white-space: nowrap; }
.coll-bar { flex: 1; height: 14px; border-radius: 8px; background: #efdfa8; overflow: hidden; min-width: 80px; display: block; }
.coll-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(180deg, #ffe066, #f5b400); }
.coll-ahead { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin: 18px 0 10px; }
.coll-ahead h2 { margin: 0; font-size: 25px; font-weight: 700; color: #fff; }
.coll-count { display: inline-flex; align-items: center; gap: 10px; background: #ffffff1c; border-radius: 16px; padding: 4px 14px; font-weight: 600; color: #fff; font-size: 17px; }
.coll-count .coll-bar { width: 90px; flex: none; height: 10px; background: #ffffff26; min-width: 0; }
.coll-how { font-size: 17px; color: var(--dim); margin-inline-start: auto; }
.coll-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.coll-group { background: var(--coll-groupbg); border: 1px solid #ffffff1a; border-radius: 22px; padding: 9px 12px 13px; }
.coll-gh { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.coll-gh svg { flex: none; }
.coll-gh b { font-size: 19px; font-weight: 600; color: #fff; }
.coll-gh small { margin-inline-start: auto; font-size: 15px; color: var(--dim); white-space: nowrap; }
.coll-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.coll-card { position: relative; border-radius: 16px; min-height: 124px; font-family: inherit; }
button.coll-card { border: none; color: inherit; text-align: center; }
.coll-got { background: #fff; padding: 5px 5px 0; box-shadow: 0 5px 0 #00000055; transform: rotate(-1.6deg); display: flex; flex-direction: column; }
.coll-cards .coll-got:nth-child(2n) { transform: rotate(1.4deg); }
.coll-art { border-radius: 12px; height: 84px; display: flex; align-items: center; justify-content: center; background: var(--tint); position: relative; overflow: hidden; }
.coll-art::after { content: ""; position: absolute; top: -20px; inset-inline-end: -26px; width: 60px; height: 40px; background: #ffffff40; transform: rotate(35deg); }
[data-skin="space"] .coll-art, [data-skin="space"] .coll-big { background: radial-gradient(circle at 30% 25%, var(--tint), #0d0830 88%); }
[data-skin="space"] .coll-art::after { background: #ffffff1a; }
.coll-nm { display: block; text-align: center; font-size: 17px; font-weight: 700; color: var(--ink); padding: 4px 0 6px; }
.coll-lock { border: 3px dashed var(--coll-dash); background: #ffffff0a; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.coll-sil { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.coll-sil svg * { fill: #ffffff12 !important; stroke: #ffffff12 !important; opacity: 1 !important; }
.coll-q { position: relative; width: 54px; height: 54px; border-radius: 50%; background: #ffffff14; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; color: #ffffffa6; }
.coll-sel { outline: 4px solid var(--star); outline-offset: 3px; }
.coll-new { position: absolute; top: -8px; inset-inline-start: -6px; background: #d0477f; color: #fff; font-size: 13px; font-weight: 700; border-radius: 10px; padding: 1px 8px; box-shadow: 0 2px 0 #00000040; z-index: 2; }
.coll-feature { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 12px 16px; display: grid; grid-template-columns: 116px 1fr; gap: 4px 14px; align-items: center; box-shadow: 0 8px 0 #00000045; border: 4px solid var(--star); }
.coll-feature.coll-empty { display: flex; gap: 12px; }
.coll-feature.coll-empty p { margin: 0; font-size: 19px; line-height: 1.4; }
.coll-big { grid-row: span 2; background: var(--tint); border-radius: 18px; border: 5px solid #fff; box-shadow: 0 4px 0 #00000020; display: flex; align-items: center; justify-content: center; height: 132px; transform: rotate(-2deg); }
.coll-ft { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.coll-ft h3 { margin: 0; font-size: 28px; font-weight: 700; }
.coll-tag { background: #2f6fd6; color: #fff; font-size: 14px; font-weight: 600; border-radius: 10px; padding: 1px 10px; }
[data-skin="animals"] .coll-tag { background: #2a7a4a; }
.coll-fact { margin: 0; font-size: 19px; line-height: 1.4; }
.coll-fact b { color: #2f6fd6; }
[data-skin="animals"] .coll-fact b { color: #2a7a4a; }
/* home entry, under the world switch */
.coll-entry { display: inline-flex; align-items: center; gap: 7px; border: none; border-radius: 16px; padding: 6px 14px; margin-top: 2px; font-size: 17px; font-weight: 700; color: var(--ink); background: var(--paper); box-shadow: 0 4px 0 #00000045; }
.coll-entry svg { color: #d0477f; }
.coll-entry b { background: #f1e7d2; color: #5a4a2a; border-radius: 10px; padding: 0 8px; font-size: 15px; font-weight: 600; }
/* mission end: the new card and the new gear */
.done-card.coll-done h1 { margin-top: 0; }
.coll-reveal { display: flex; align-items: center; gap: 18px; max-width: 560px; margin: 0 auto 14px; padding: 12px 16px; border-radius: 20px; background: #fff3c2; text-align: start; animation: coll-in .7s ease-out .5s backwards; }
.coll-rcard { flex: none; width: 112px; background: #fff; border-radius: 16px; padding: 5px 5px 0; box-shadow: 0 5px 0 #00000030; transform: rotate(-2deg); }
.coll-rcard .coll-art { height: 92px; }
.coll-rtext { display: flex; flex-direction: column; gap: 2px; }
.coll-rhead { font-size: 15px; color: #b0306a; font-weight: 700; }
.coll-rname { font-size: 26px; font-weight: 700; line-height: 1.15; }
.coll-rname small { font-size: 15px; font-weight: 600; color: #6a6485; margin-inline-start: 6px; }
.coll-rtext p { margin: 4px 0 0; font-size: 18px; line-height: 1.4; }
.coll-rtext p b { color: #5b3bd1; }
[data-skin="animals"] .coll-rtext p b { color: #2a7a4a; }
.coll-gearnew { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 560px; margin: 0 auto 16px; padding: 6px 14px; border-radius: 16px; background: #e2f8ec; font-size: 19px; animation: coll-in .7s ease-out .9s backwards; }
.coll-gearnew svg { background: #fff; border-radius: 50%; padding: 3px; border: 3px solid var(--ok); }
.coll-par { background: #f4ecdb; border-radius: 12px; padding: 8px 12px; }
@keyframes coll-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .coll-reveal, .coll-gearnew { animation: none; } }
@media (max-width: 1000px) {
  .coll-grow { grid-template-columns: 1fr 150px; gap: 8px 16px; }
  .coll-gtext, .coll-buddy { grid-row: 1; }
  .coll-grow > .coll-buddy svg { width: 150px; height: 168px; margin: 0; }
  .coll-path { grid-column: 1 / -1; }
  .coll-groups { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) { .coll-how { margin-inline-start: 0; flex-basis: 100%; } }
@media (max-width: 600px) {
  .coll-page { padding: 10px 14px 60px; }
  .coll-phead h1 { font-size: 26px; }
  .coll-back { font-size: 17px; padding: 8px 14px; }
  .coll-grow { grid-template-columns: 1fr 112px; padding: 10px 14px 14px; border-radius: 24px; }
  .coll-buddy svg, .coll-grow > .coll-buddy svg { width: 112px; height: 125px; }
  .coll-gtext h2 { font-size: 21px; } .coll-gtext p { font-size: 16px; }
  .coll-med { width: 54px; height: 54px; } .coll-med > svg { width: 36px; height: 36px; }
  .coll-chk { width: 22px; height: 22px; top: -8px; inset-inline-end: -8px; border-width: 2px; }
  .coll-stage::after { top: 25px; inset-inline-start: calc(50% + 29px); width: calc(100% - 58px); border-top-width: 3px; }
  .coll-lb { font-size: 13px; }
  .coll-nextrow { flex-wrap: wrap; gap: 6px 10px; padding: 8px 12px; }
  .coll-nextrow .coll-bar { order: 3; flex-basis: 100%; }
  .coll-groups { grid-template-columns: 1fr; }
  .coll-group:nth-child(n+4) { order: 2; }
  .coll-feature { order: 1; grid-template-columns: 96px 1fr; }
  .coll-big { height: 112px; }
  .coll-ft h3 { font-size: 24px; } .coll-fact { font-size: 17px; }
  .coll-reveal { gap: 12px; padding: 10px 12px; } .coll-rcard { width: 92px; } .coll-rcard .coll-art { height: 76px; } .coll-rname { font-size: 22px; }
}

/* ---------- fix-: the trail between mission nodes stops at the last node of each row; space draws it per node when a row wraps or on narrow screens (markRows in ui.js) ---------- */
[data-skin="animals"] .node.fix-rowend::after { display: none; }
.orbit.fix-seg::before { display: none; }
[data-skin="space"] .orbit.fix-seg .node:not(.fix-rowend)::after { content: ""; position: absolute; z-index: -1; top: 32px; inset-inline-start: 50%; width: calc(100% + 10px); border-top: 4px dotted #ffffff3d; }
[data-skin="space"] .world.flip .orbit.fix-seg .node:not(.fix-rowend)::after { inset-inline-start: auto; inset-inline-end: 50%; }
[data-skin="space"] .orbit.fix-seg { isolation: isolate; }

/* fix-: phone top bar in two rows: name and the three icon tools on the first, track switch and counters on the second */
@media (max-width: 480px) {
  .top { gap: 8px 8px; padding: 6px 10px; }
  .top .brand { flex: 1 1 auto; min-width: 0; font-size: 18px; gap: 6px; }
  .top .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top .tools { order: 1; gap: 6px; }
  .top .tool { padding: 5px 9px; }
  .top .seg { order: 2; }
  .top .chips { order: 3; }
}

/* ---------- fix-: print booklets in black and white; answer-key pages numbered by the printer page (a key table may run over two sheets) ---------- */
@page fixkey { size: A4; margin: 10mm 10mm 12mm; @bottom-center { content: "עמוד " counter(page) " מתוך " counter(pages); direction: rtl; font: 9pt Arial, sans-serif; color: #000; } }
@media print {
  .page.sb-page.fix-keypg { page: fixkey; min-height: 0; }
  .fix-keypg .sb-foot { display: none; }
  .page mark.k { background: none; padding: 0; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }
  .page [stroke="#1fa971"] { stroke: #000; stroke-dasharray: 9 5; }
  .page [fill="#12875a"] { fill: #000; font-weight: 700; text-decoration: underline; }
}
/* fix-: the Stage A booklet (pages without a named page) prints on A4 with a page number at the bottom */
@page { size: A4; @bottom-center { content: "עמוד " counter(page) " מתוך " counter(pages); direction: rtl; font: 9pt Arial, sans-serif; color: #000; } }
/* fix-: the "turn the page" line stays on the page it belongs to; a sheet that is a few lines too long tightens instead of spilling one line onto an empty page */
@media print {
  .fix-pnext { break-before: avoid; margin-top: 8pt !important; }
  .page:not(.sb-page) { padding: 14mm 16mm 12mm; }
  .page:not(.sb-page) .pline { line-height: 1.85; }
}

/* companion name field with the dice button (draws a random name from the world's pool) */
.fx-namerow { display: flex; gap: 10px; justify-content: center; align-items: center; margin: 0 0 4px; }
.fx-namerow input { flex: 0 1 auto; }
.fx-dice { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border: 3px solid var(--line); background: #fff; color: var(--ink); border-radius: 16px; cursor: pointer; padding: 0; }
.fx-dice:hover, .fx-dice:focus-visible { border-color: var(--ink); }
.fx-dice.fx-roll svg { animation: fx-roll .45s ease-out; }
@keyframes fx-roll { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(200deg) scale(.85); } 100% { transform: rotate(360deg) scale(1); } }
/* mission end confetti: a fixed layer over the screen, never part of the layout */
.fx-confetti { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.fx-confetti i { position: absolute; top: -16px; width: 9px; height: 14px; border-radius: 2px; opacity: .9; animation: fx-fall 2s ease-in forwards; }
@keyframes fx-fall { to { transform: translate(var(--fx-x), 105vh) rotate(var(--fx-r)); opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .fx-confetti { display: none; } .fx-dice.fx-roll svg { animation: none; } }

/* ---------- fit-: every child screen shows whole on a computer or TV screen used as a monitor (landscape, 700px wide and up).
   Measured by tools/fit_check.js: no page scroll and every button inside the viewport. Phones and portrait screens scroll as before. ---------- */
@media (min-width: 700px) and (orientation: landscape) {
  /* the room under a question was kept for the feedback band; fitQ() keeps the options above the band instead, so the page needs no scroll room */
  .play { padding-bottom: 14px; }
  .onb, .finish, .lesson { padding-bottom: 14px; }
  .coll-page { padding-bottom: 14px; }
}
/* the rule screen before a first mission and the strategy lesson: the explanation and the button beside the solved example */
@media (min-width: 900px) and (orientation: landscape) {
  .fit-lesson { max-width: 1240px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-rows: auto 1fr; gap: 0 22px; align-items: start; }
  .fit-lesson > .teach { grid-column: 1; grid-row: 1; margin-bottom: 14px; }
  .fit-lesson > .qcard { grid-column: 2; grid-row: 1 / span 2; }
  .fit-lesson > .lesson-go { grid-column: 1; grid-row: 2; margin-top: 0; }
/* the mission's explanation page (one button): the button in the middle under the explanation bubble, not under bubble and
   companion; the companion is 108px wide with a 10px gap (the parent's note of 18.11.2026). A narrow column keeps 270px for the
   button, so it never breaks into two lines. The strategy lesson and the guided example keep their rows of two or three buttons. */
.fit-lesson > .lesson-go-mid { padding-inline-start: clamp(0px, calc(100% - 270px), 118px); }
  /* first launch: the world choice beside the name fields */
  .onb { max-width: 1080px; }
  .onb-card { display: flex; align-items: center; gap: 0 30px; }
  .fit-onb-a, .fit-onb-b { flex: 1 1 0; min-width: 0; }
}
/* the solved example of a rule screen in its narrower column: the side-by-side figure and pieces share the width */
@media (min-width: 900px) and (orientation: landscape) {
  .fit-lesson .qbody.side { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; }
  .fit-lesson .qbody.side .figgrid, .fit-lesson .qbody.side .carpet { width: 100%; }
  .fit-lesson .qbody.side .opts.tiles { width: 220px; }
}
/* the collection on short screens: smaller companion and card pictures, less air (text sizes unchanged) */
@media (min-width: 700px) and (max-height: 820px) and (orientation: landscape) {
  .coll-page { padding-top: 6px; }
  .coll-phead { margin-bottom: 6px; }
  .coll-back { padding: 6px 18px; }
  .coll-grow { padding: 6px 22px 8px; grid-template-columns: 250px 130px 1fr; }
  .coll-grow > .coll-buddy svg { width: 112px; height: 125px; margin: -4px 0 -6px; }
  .coll-ahead { margin: 8px 0 6px; }
  .coll-groups { gap: 10px; }
  .coll-group { padding: 6px 10px 8px; }
  .coll-gh { margin-bottom: 6px; }
  .coll-card { min-height: 92px; }
  .coll-art { height: 58px; }
  .coll-art > svg { width: 52px; height: 52px; }
  .coll-sil > svg { width: 56px; height: 56px; }
  .coll-big { height: 100px; } .coll-big > svg { width: 84px; height: 84px; }
  .coll-feature { padding: 8px 14px; grid-template-columns: 104px 1fr; }
}
/* wide and short: the gear strip becomes a column beside the album */
@media (min-width: 1200px) and (max-height: 820px) and (orientation: landscape) {
  .coll-page { max-width: 1340px; display: grid; grid-template-columns: 320px minmax(0, 1fr); grid-template-areas: "head head" "grow ahead" "grow groups"; grid-template-rows: auto auto 1fr; gap: 0 18px; align-items: start; }
  .coll-phead { grid-area: head; }
  .coll-grow { grid-area: grow; grid-template-columns: 1fr 112px; gap: 6px 10px; padding: 8px 16px 12px; margin-top: 8px; }
  .coll-gtext, .coll-buddy { grid-row: 1; }
  .coll-path { grid-column: 1 / -1; }
  .coll-med { width: 54px; height: 54px; } .coll-med > svg { width: 36px; height: 36px; }
  .coll-chk { width: 22px; height: 22px; top: -8px; inset-inline-end: -8px; border-width: 2px; }
  .coll-stage::after { top: 25px; inset-inline-start: calc(50% + 29px); width: calc(100% - 58px); border-top-width: 3px; }
  .coll-lb { font-size: 15px; }
  .coll-nextrow { flex-wrap: wrap; gap: 4px 10px; padding: 6px 12px; }
  .coll-nextrow .coll-bar { order: 3; flex-basis: 100%; }
  .coll-ahead { grid-area: ahead; }
  .coll-how { margin-inline-start: 0; }
  .coll-groups { grid-area: groups; }
  .coll-feature { grid-template-columns: 80px 1fr; gap: 4px 12px; }
  .coll-big { height: 84px; } .coll-big > svg { width: 70px; height: 70px; }
}
/* the mission end on short screens: the companion beside the stars and the title; the new card a little smaller */
@media (min-width: 700px) and (max-height: 820px) and (orientation: landscape) {
  .finish { padding-top: 10px; }
  .done-card { display: grid; grid-template-columns: 1fr auto auto 1fr; column-gap: 18px; padding: 12px 22px 14px; }
  .done-card > * { grid-column: 1 / -1; }
  .done-card > :first-child { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .done-card > .bigstars, .done-card > h1, .done-card > .score { grid-column: 3; }
  .done-card .bigstars { margin-top: 0; }
  .done-card h1 { margin: 0 0 2px; }
  .done-card .score { margin-bottom: 8px; }
  .coll-reveal { margin-bottom: 8px; padding: 8px 14px; }
  .coll-rcard { width: 96px; } .coll-rcard .coll-art { height: 66px; }
  .coll-gearnew { margin-bottom: 10px; }
  .done-card .fact { margin-bottom: 10px; }
  .done-card .mistakes { margin-top: 10px; }
}
/* the mistakes list opened on a computer screen: the card news steps aside and the list scrolls inside its own box (fitMist in ui.js) */
@media (min-width: 700px) and (orientation: landscape) {
  .done-card:has(.mistakes[open]) :is(.coll-reveal, .coll-gearnew, .fact) { display: none; }
  .done-card .mistakes[open] { overflow: auto; overscroll-behavior: contain; }
}
/* the rule screen and the lesson on short screens: the spacing of the question screen (fonts unchanged) */
@media (min-width: 700px) and (max-height: 820px) and (orientation: landscape) {
  .fit-lesson { padding-top: 10px; }
  .fit-lesson .qcard { padding: 10px 20px 10px; }
  .fit-lesson .tag { margin-bottom: 2px; }
  .fit-lesson .qfig { margin: 6px 0 0; }
  .fit-lesson .opts { margin-top: 8px; gap: 8px; }
  .fit-lesson .opt { padding-top: 5px; padding-bottom: 5px; border-bottom-width: 5px; }
  .fit-lesson .opts.four .opt { padding: 4px 6px 5px; }
  .fit-lesson .hintbox { margin-top: 8px; padding: 6px 12px; }
  .fit-lesson .bubble.big { padding: 12px 20px 12px; }
  .fit-lesson .stem.ar { line-height: 1.6; }
}
/* the feedback band on short screens: wider and lower, so the right option stays above it (text sizes unchanged) */
@media (min-width: 700px) and (max-height: 820px) and (orientation: landscape) {
  .sheet { padding: 5px max(16px, calc((100vw - 1180px) / 2)); gap: 12px; }
  #qcard .qfb { margin-top: 8px; padding-block: 6px; line-height: 1.4; }
}
@media (min-width: 700px) and (max-height: 680px) and (orientation: landscape) {
  .play .sentence { line-height: 1.45; }
  .play .stem.he { line-height: 1.3; }
}
@media (min-width: 700px) and (max-height: 680px) and (orientation: landscape) {
  .play .x { width: 38px; height: 38px; }
  .play .ptitle { line-height: 1.2; }
  .play .qtools { margin-top: 6px; }
  .play .tool2 { padding-top: 3px; padding-bottom: 3px; }
  .play .hintbox { margin-top: 6px; padding: 5px 12px; line-height: 1.4; }
  .play .strat-gline > svg { width: 34px; height: 34px; }
  .sheet .who { display: none; }
  .sheet { grid-template-columns: 1fr auto; }
}
@media (min-width: 700px) and (max-height: 680px) and (orientation: landscape) { .play .opts.one.fit-mid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 700px) and (max-height: 820px) and (orientation: landscape) { .fit-lesson .opts.one.fit-mid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 700px) and (max-height: 680px) and (orientation: landscape) { .coll-card { min-height: 82px; } .coll-art { height: 50px; } .coll-art > svg { width: 46px; height: 46px; } .coll-ahead { margin: 4px 0 4px; } }
@media (min-width: 700px) and (max-height: 680px) and (orientation: landscape) { .fit-lesson .qbody.side .opts.tiles { width: 170px; } }
@media (min-width: 700px) and (max-height: 680px) and (orientation: landscape) { .fit-lesson .hintbox { line-height: 1.4; } .fit-lesson .stem.he { line-height: 1.3; } }
@media (min-width: 700px) and (max-height: 680px) and (orientation: landscape) { .fit-lesson .opt .ot.ar { line-height: 1.3; } }

/* ---------- hs-: the story home (main.home.hs.hs-w-<world>, 1240px and up; ?home=classic shows the classic map).
   One route from place to place (ui.js places everything on it), three scenery layers that move at different speeds,
   places that ease in as they reach the screen. Only transform and opacity move; reduced motion shows the static map.
   A world's look: .hs-w-<world> rules below (space: glowing flight line and sky; animals: paw prints and dusk forest). ---------- */
.home.hs { max-width: 1180px; }
.home.hs > .hero, .home.hs > .tracknote { position: relative; z-index: 1; }
.home.hs .hs-map { position: relative; z-index: 1; margin-top: 6px; }
.hs-sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hs-far, .hs-mid, .hs-near { position: absolute; top: 0; left: 0; right: 0; will-change: transform; }
.hs-route { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }
.hs-route path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hs-launch { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--star); box-shadow: 0 0 0 6px #ffd23f40, 0 0 22px 6px #ffd23f66; }
.hs-goal { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(closest-side, #ffd23f40, #ffd23f14 60%, transparent); animation: hs-breathe 5s ease-in-out infinite; }
/* the places: big art with a soft halo, floating slowly; the drift layer is moved by the scroll handler */
.hs-pl { --ps: 170px; position: absolute; z-index: 1; width: var(--ps); height: var(--ps); transform-origin: 50% 80%; }
.hs-dest .hs-pl { --ps: 210px; }
.hs-drift { will-change: transform; }
.hs-bob { position: relative; width: var(--ps); height: var(--ps); display: grid; place-items: center; animation: float 7s ease-in-out infinite; }
.hs-st:nth-child(even) .hs-bob { animation-delay: -3.5s; animation-duration: 8s; }
.hs-bob > svg { position: relative; z-index: 1; display: block; }
.hs-glow { position: absolute; inset: -46px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--pl) 42%, transparent), transparent 72%); animation: hs-breathe 6s ease-in-out infinite; }
.hs-shade { position: absolute; z-index: 2; left: calc(var(--ps) * .1857); top: calc(var(--ps) * .1857); width: calc(var(--ps) * .6286); height: calc(var(--ps) * .6286); border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffffff2e 0, transparent 30%, transparent 48%, #0b063047 72%, #0b0630b0 100%); box-shadow: inset 3px 4px 7px #ffffff2e; }
.hs-flag { position: absolute; z-index: 3; left: 50%; top: calc(var(--ps) * .19 - 60px); }
.hs-flag svg { display: block; transform-origin: 14px 70px; animation: hs-wave 4s ease-in-out infinite; }
@keyframes hs-wave { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes hs-breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
/* the station caption under each place: station tag, chapter title, subtitle and the companion's line */
.hs-cap { position: absolute; z-index: 1; text-align: center; }
.hs-tag { display: inline-block; padding: 2px 13px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--ink); background: var(--pl); box-shadow: 0 3px 0 #00000045; }
.hs-dest .hs-tag { font-size: 17px; padding: 3px 16px; background: var(--star); box-shadow: 0 3px 0 var(--star-d), 0 0 18px #ffd23f80; }
.hs-cap h3 { margin: 7px 0 0; font-size: 20px; font-weight: 600; line-height: 1.2; color: #fff; }
.hs-cap p { margin: 2px 0 0; font-size: 15px; color: var(--dim); }
.hs-cap h3, .hs-cap p { text-wrap: balance; }
.hs-cap .hs-say { display: flex; width: fit-content; max-width: 100%; align-items: center; justify-content: center; gap: 6px; margin: 9px auto 0; padding: 5px 10px; border-radius: 16px; background: #ffffff14; font-size: 16px; line-height: 1.25; color: #f3efff; }
.hs-say > svg { flex: none; }
/* nodes keep the approved node style; they sit on the route (absolute, centre of the number on the line) */
.hs-map .node { position: absolute; z-index: 2; transform-origin: 52px 34px; }
.home.hs .hs-map .node::after { display: none; }
.hs-map .node .nm { font-size: 17px; text-shadow: 0 2px 6px var(--space); }
.hs-map .node .rk { top: -58px; }
.hs-map .node .rk > svg { width: 30px; height: auto; transform: rotate(var(--hs-tilt, 0deg)) scaleX(var(--hs-flip, 1)); }
/* easing in as a station reaches the screen: the place and its caption rise from a slight tilt, the nodes light up one by one;
   hs-done (set by ui.js 1.7 s after the reveal) fixes the end state without a transition */
.hs-anim .hs-pl, .hs-anim .hs-cap { opacity: 0; transform: perspective(900px) translateY(48px) rotateX(26deg) scale(.84); transition: opacity .9s ease, transform 1.2s cubic-bezier(.16, .84, .3, 1); }
.hs-anim .hs-cap { transition-delay: .12s; }
.hs-anim .hs-pl.hs-in, .hs-anim .hs-cap.hs-in { opacity: 1; transform: none; }
.hs-anim .node.hs-n { opacity: 0; transform: scale(.5); transition: opacity .5s ease calc(.3s + var(--hs-k, 0) * 90ms), transform .7s cubic-bezier(.34, 1.5, .64, 1) calc(.3s + var(--hs-k, 0) * 90ms); }
.hs-anim .node.hs-n.hs-in { opacity: 1; transform: none; }
.hs-anim .hs-pl.hs-done, .hs-anim .hs-cap.hs-done, .hs-anim .node.hs-n.hs-in.hs-done { transition: none; }

/* space: far stars, nebulae and distant planets, bright dust; a glowing line flown and a dotted trail ahead */
.hs-w-space .hs-far { background-image: radial-gradient(1px 1px at 40px 60px, #ffffffc0 55%, transparent 60%), radial-gradient(1.4px 1.4px at 170px 20px, #d8ccff 55%, transparent 60%),
    radial-gradient(1px 1px at 260px 140px, #ffffff99 55%, transparent 60%), radial-gradient(1.8px 1.8px at 90px 190px, #fff3c4 55%, transparent 60%);
  background-size: 300px 230px, 410px 330px, 350px 270px, 520px 410px; opacity: .8; }
.hs-neb { position: absolute; width: 640px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--hs-c) 20%, transparent), transparent); }
.hs-far-pl { position: absolute; opacity: .5; }
.hs-dust { position: absolute; width: calc(7px * var(--hs-s)); height: calc(7px * var(--hs-s)); border-radius: 50%; background: radial-gradient(circle, #fff 0 22%, #ffe9a880 40%, transparent 70%); opacity: .75; }
.hs-w-space .hs-r-band { stroke: #ffffff; stroke-opacity: .05; stroke-width: 24; }
.hs-w-space .hs-r-ahead { stroke: #ffffff6b; stroke-width: 5.5; stroke-dasharray: .1 15; }
.hs-w-space .hs-r-glow { stroke: var(--star); stroke-opacity: .2; stroke-width: 20; }
.hs-w-space .hs-r-done { stroke: var(--star); stroke-width: 6; }
.hs-w-space .hs-r-core { stroke: #fff8d6; stroke-width: 2; }

/* animals: misty hill ridges, tree silhouettes, leaves and fireflies; a dirt trail of paw prints, bright where walked, faint ahead */
.hs-ridge { position: absolute; left: 0; width: 100%; height: 200px; opacity: .55; }
.hs-tree { position: absolute; opacity: .75; transform: translateX(-50%); }
.hs-tree.hs-tree-far { opacity: .3; }
.hs-tree svg { display: block; }
.hs-leaf { position: absolute; opacity: .55; }
.hs-leaf svg { display: block; transform: rotate(var(--hs-r)); }
.hs-ff { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #f4ff9e; box-shadow: 0 0 10px 4px #e6ff6a80, 0 0 22px 8px #e6ff6a26; animation: skin-an-glow 3.2s ease-in-out infinite; }
.hs-w-animals .hs-r-band { stroke: #e8c48a; stroke-opacity: .08; stroke-width: 30; }
.hs-w-animals .hs-r-done { stroke: #ffd27a; stroke-opacity: .22; stroke-width: 18; }
.hs-w-animals .hs-r-ahead, .hs-w-animals .hs-r-glow, .hs-w-animals .hs-r-core { display: none; }
.hs-paw-done { fill: #ffe7b0; }
.hs-paw { fill: #ffe7b0; opacity: .28; }
.hs-w-animals .hs-launch { background: #ffe7b0; box-shadow: 0 0 0 6px #ffe7b040, 0 0 22px 6px #ffd27a55; }
.hs-w-animals .hs-glow { inset: -36px; }
.hs-w-animals .hs-cap .hs-say { background: #ffffff17; color: #f3f8ec; }
.hs-w-animals .hs-map .node .rk { top: -46px; }
.hs-w-animals .hs-map .node .rk > svg { width: 42px; }

/* Science world: a bright laboratory. Light tiled wall, dark ink labels, a teal top bar. Prefix: skin-sc-. */
[data-skin="science"] { --space: #e3f5f6; --dim: #3f5a66; --nodebg: #ffffff; --ring: #e3f5f6; --mint: #1f9c8f; --sky: #1d6fb0; }
[data-skin="science"] body { color: #13303a; background-color: #e3f5f6; background-attachment: fixed;
  background-image: radial-gradient(900px 520px at 88% -8%, #c4ecff 0%, transparent 64%), radial-gradient(760px 520px at -4% 104%, #d2f5e4 0%, transparent 62%),
    linear-gradient(#ffffffb3 2px, transparent 2px), linear-gradient(90deg, #ffffffb3 2px, transparent 2px);
  background-size: auto, auto, 56px 56px, 56px 56px; }
[data-skin="science"] #app { position: relative; z-index: 1; }
[data-skin="science"] .top { background: rgba(14, 74, 92, .94); }
[data-skin="science"] .top { --dim: #cfe9ef; }
[data-skin="science"] .bubble { box-shadow: 0 8px 0 #0e4a5c26, 0 0 0 2px #0e4a5c1a; }
[data-skin="science"] .pl h3 { color: #10303c; margin-top: 2px; }
[data-skin="science"] .pl p { color: #3f5a66; }
[data-skin="science"] .node .num { color: #10303c; }
[data-skin="science"] .node.done .num { color: #fff; }
[data-skin="science"] .node.next .num { outline-color: #0e4a5c; box-shadow: 0 0 0 12px #ffb02e33, 0 7px 0 #0e4a5c40; }
[data-skin="science"] .node .num { box-shadow: 0 6px 0 #0e4a5c2e; }
[data-skin="science"] .node.done .num { box-shadow: 0 7px 0 #0e4a5c40, inset 0 -7px 0 #0000002e, inset 0 5px 0 #ffffff40; }
[data-skin="science"] .node .nm { color: #10303c; }
[data-skin="science"] .node.next .nm { color: #0b6a84; font-weight: 700; }
[data-skin="science"] .stars3 .st { color: #0e4a5c2e; }
[data-skin="science"] .stars3 .st.on { color: #f0a800; }
[data-skin="science"] .skin-sw { background: #0e4a5c1f; }
[data-skin="science"] .skin-sw button { color: #2f5260; }
[data-skin="science"] .skin-sw button.on { color: var(--ink); }
[data-skin="science"] .coll-entry { box-shadow: 0 4px 0 #0e4a5c33, 0 0 0 2px #0e4a5c14; }
[data-skin="science"] .tracknote { color: #3f5a66; }
[data-skin="science"] .link { color: #1d6fb0; }
[data-skin="science"] .home { padding-bottom: 120px; }
[data-skin="science"] .map { margin-top: 26px; }
[data-skin="science"] .orbit { gap: 34px 10px; padding-top: 40px; }
[data-skin="science"] .orbit::before { display: none; }
/* the trail: a lab wire with little contact dots */
[data-skin="science"] .node::after { content: ""; position: absolute; z-index: 0; top: 29px; inset-inline-start: 50%; width: 114px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='10' viewBox='0 0 24 10'%3E%3Cpath d='M0 5h24' stroke='%232f7f93' stroke-width='3'/%3E%3Ccircle cx='12' cy='5' r='3.2' fill='%23ffffff' stroke='%232f7f93' stroke-width='2'/%3E%3C/svg%3E") repeat-x right center; opacity: .75; }
[data-skin="science"] .world.flip .node::after { inset-inline-start: auto; inset-inline-end: 50%; }
[data-skin="science"] .node:last-child::after, [data-skin="science"] .node.fix-rowend::after { display: none; }

.skin-sc-bulb .skin-sc-halo { animation: skin-sc-glow 2.6s ease-in-out infinite; transform-origin: 60px 50px; }
.skin-sc-bulb .skin-sc-rays { animation: skin-sc-glow 2.6s ease-in-out infinite; }
@keyframes skin-sc-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.skin-sc-flask .skin-sc-bub { animation: skin-sc-rise 2.4s ease-in-out infinite; }
.skin-sc-flask .skin-sc-bub.b2 { animation-delay: -.8s; } .skin-sc-flask .skin-sc-bub.b3 { animation-delay: -1.6s; }
@keyframes skin-sc-rise { 0% { transform: translateY(6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-8px); opacity: 0; } }

#skin-science-scene { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.skin-sc-shelf { position: absolute; top: 92px; width: 250px; height: 144px; opacity: .8; }
.skin-sc-shelf.r { right: -40px; } .skin-sc-shelf.l { left: -40px; transform: scaleX(-1); }
.skin-sc-deco { position: absolute; width: 150px; height: 150px; opacity: .45; }
.skin-sc-deco.a { top: 44%; left: 2%; } .skin-sc-deco.m { top: 50%; right: 2%; }
@media (max-width: 860px) { .skin-sc-deco { width: 90px; height: 90px; } }
.skin-sc-bench { position: absolute; left: 0; bottom: 0; width: 100%; height: 96px; }
.skin-sc-bubble { position: absolute; bottom: 90px; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #7fc4d8; background: #ffffff80; opacity: 0; animation: skin-sc-up 9s linear infinite; }
.skin-sc-bubble.s { width: 11px; height: 11px; border-width: 2px; }
@keyframes skin-sc-up { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .8; } 80% { opacity: .5; } 100% { transform: translateY(-70vh); opacity: 0; } }
@media (max-width: 860px) { .skin-sc-shelf { width: 150px; height: 87px; } }
@media (max-width: 480px) { [data-skin="science"] .orbit { gap: 34px 4px; } [data-skin="science"] .node::after { width: 104px; } }
@media print { #skin-science-scene { display: none !important; } }
[data-skin="science"] .node.strat-node:not(.done) .num .ic { color: var(--pc); }

/* Magic kingdom world: dusk over fairy-tale hills, a far castle, floating islands. Prefix: skin-mg-. */
[data-skin="magic"] { --space: #24164f; --dim: #ddd0f5; --nodebg: #2d1b5c; --ring: #2a1856; --mint: #7fe3b8; }
[data-skin="magic"] body { background-color: #24164f; background-size: auto; background-attachment: fixed;
  background-image: radial-gradient(1300px 420px at 50% 100%, #f4a07a 0%, #d0688a99 32%, #7a3a8f40 58%, transparent 78%), radial-gradient(760px 460px at 92% -10%, #5a3aa8 0%, transparent 64%),
    linear-gradient(180deg, #1f1448 0%, #2f1c63 38%, #4a2677 66%, #6a3384 100%); }
[data-skin="magic"] #app { position: relative; z-index: 1; }
[data-skin="magic"] .top { background: rgba(31, 18, 70, .9); }
[data-skin="magic"] .pl h3 { margin-top: -4px; text-shadow: 0 2px 0 #1a0d3a99; }
[data-skin="magic"] .node .nm { color: #f3ecff; text-shadow: 0 1px 0 #1a0d3a99; }
[data-skin="magic"] .node.next .nm { color: var(--star); }
[data-skin="magic"] .link { color: #b9d8ff; }
[data-skin="magic"] .bubble .link { color: #5b3bd1; }
[data-skin="magic"] .home { padding-bottom: 120px; }
[data-skin="magic"] .map { margin-top: 26px; }
[data-skin="magic"] .orbit { gap: 34px 10px; padding-top: 40px; }
[data-skin="magic"] .orbit::before { display: none; }
/* the trail: a line of tiny golden sparkles */
[data-skin="magic"] .node::after { content: ""; position: absolute; z-index: 0; top: 25px; inset-inline-start: 50%; width: 114px; height: 18px; opacity: .8;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='18' viewBox='0 0 26 18'%3E%3Cpath d='M8 3 Q9 8 14 9 Q9 10 8 15 Q7 10 2 9 Q7 8 8 3 Z' fill='%23ffd76a'/%3E%3Ccircle cx='20' cy='9' r='1.8' fill='%23ffd76a'/%3E%3C/svg%3E") repeat-x right center; }
[data-skin="magic"] .world.flip .node::after { inset-inline-start: auto; inset-inline-end: 50%; }
[data-skin="magic"] .node:last-child::after, [data-skin="magic"] .node.fix-rowend::after { display: none; }

.skin-mg-wizard .skin-mg-orb { animation: skin-mg-blink 2.4s ease-in-out infinite; }
.skin-mg-isl { animation: skin-mg-hover 5s ease-in-out infinite; }
.world:nth-child(2n) .skin-mg-isl { animation-delay: -2.5s; }
@keyframes skin-mg-hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.skin-mg-forest .skin-mg-ff { animation: skin-mg-blink 2.6s ease-in-out infinite; }
@keyframes skin-mg-blink { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

#skin-magic-scene { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.skin-mg-moon { position: absolute; top: 96px; left: 4%; width: 96px; height: 96px; }
.skin-mg-hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 320px; }
.skin-mg-tw { position: absolute; width: 10px; height: 10px; background: #fff6c8; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: skin-mg-twinkle 3s ease-in-out infinite; }
.skin-mg-tw.s { width: 6px; height: 6px; }
@keyframes skin-mg-twinkle { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@media (max-width: 860px) { .skin-mg-moon { width: 64px; height: 64px; } }
@media (max-width: 480px) { [data-skin="magic"] .orbit { gap: 34px 4px; } [data-skin="magic"] .node::after { width: 104px; } }
@media print { #skin-magic-scene { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .skin-mg-isl, .skin-mg-wizard .skin-mg-orb { animation: none !important; } }

/* Art and music studio world: warm cream wall, bunting, wooden floor, dark ink labels. Prefix: skin-st-. */
[data-skin="studio"] { --space: #fff0da; --dim: #6a4a3f; --nodebg: #ffffff; --ring: #fff0da; --mint: #1f9c8f; --sky: #1d6fb0; }
[data-skin="studio"] body { color: #3a1f2b; background-color: #fff0da; background-attachment: fixed;
  background-image: radial-gradient(circle at 14px 14px, #f6d3a6 2.2px, transparent 2.8px), radial-gradient(900px 520px at 90% -8%, #ffd6e4 0%, transparent 62%),
    radial-gradient(800px 520px at -4% 104%, #ffe0a8 0%, transparent 62%), linear-gradient(180deg, #fff4e3 0%, #ffe9cc 100%);
  background-size: 44px 44px, auto, auto, auto; }
[data-skin="studio"] #app { position: relative; z-index: 1; }
[data-skin="studio"] .top { background: rgba(98, 36, 70, .95); }
[data-skin="studio"] .top { --dim: #f3d9e6; }
[data-skin="studio"] .bubble { box-shadow: 0 8px 0 #7a3a2a26, 0 0 0 2px #7a3a2a1a; }
[data-skin="studio"] .pl h3 { color: #3a1f2b; margin-top: 0; }
[data-skin="studio"] .pl p { color: #6a4a3f; }
[data-skin="studio"] .node .num { color: #3a1f2b; box-shadow: 0 6px 0 #7a3a2a2e; }
[data-skin="studio"] .node.done .num { color: #fff; box-shadow: 0 7px 0 #7a3a2a40, inset 0 -7px 0 #0000002e, inset 0 5px 0 #ffffff40; }
[data-skin="studio"] .node.next .num { outline-color: #622446; box-shadow: 0 0 0 12px #ffb02e33, 0 7px 0 #7a3a2a40; }
[data-skin="studio"] .node .nm { color: #3a1f2b; }
[data-skin="studio"] .node.next .nm { color: #a8204e; font-weight: 700; }
[data-skin="studio"] .stars3 .st { color: #7a3a2a2e; }
[data-skin="studio"] .stars3 .st.on { color: #f0a800; }
[data-skin="studio"] .skin-sw { background: #7a3a2a1c; }
[data-skin="studio"] .skin-sw button { color: #6a4a3f; }
[data-skin="studio"] .skin-sw button.on { color: var(--ink); }
[data-skin="studio"] .coll-entry { box-shadow: 0 4px 0 #7a3a2a33, 0 0 0 2px #7a3a2a14; }
[data-skin="studio"] .tracknote { color: #6a4a3f; }
[data-skin="studio"] .link { color: #1d6fb0; }
[data-skin="studio"] .home { padding-bottom: 120px; }
[data-skin="studio"] .map { margin-top: 26px; }
[data-skin="studio"] .orbit { gap: 34px 10px; padding-top: 40px; }
[data-skin="studio"] .orbit::before { display: none; }
/* the trail: dabs of paint in three colours */
[data-skin="studio"] .node::after { content: ""; position: absolute; z-index: 0; top: 27px; inset-inline-start: 50%; width: 114px; height: 14px; opacity: .85;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='14' viewBox='0 0 42 14'%3E%3Cellipse cx='7' cy='7' rx='5' ry='3.6' fill='%23ff6b5e'/%3E%3Cellipse cx='21' cy='7' rx='5' ry='3.6' fill='%23ffb02e'/%3E%3Cellipse cx='35' cy='7' rx='5' ry='3.6' fill='%232a86d0'/%3E%3C/svg%3E") repeat-x right center; }
[data-skin="studio"] .world.flip .node::after { inset-inline-start: auto; inset-inline-end: 50%; }
[data-skin="studio"] .node:last-child::after, [data-skin="studio"] .node.fix-rowend::after { display: none; }

.skin-st-drop { overflow: visible; }

#skin-studio-scene { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.skin-st-bunting { position: absolute; top: var(--top-h, 76px); left: 0; width: 100%; height: 60px; opacity: .9; }
.skin-st-wall { position: absolute; top: 170px; width: 200px; height: 220px; }
.skin-st-wall.l { left: -30px; } .skin-st-wall.r { right: -30px; }
.skin-st-floor { position: absolute; left: 0; bottom: 0; width: 100%; height: 100px; }
.skin-st-note { position: absolute; width: 24px; height: 32px; opacity: .55; animation: skin-st-float 6s ease-in-out infinite; }
@keyframes skin-st-float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
@media (max-width: 860px) { .skin-st-wall { width: 120px; height: 132px; } }
@media (max-width: 480px) { [data-skin="studio"] .orbit { gap: 34px 4px; } [data-skin="studio"] .node::after { width: 104px; } }
@media print { #skin-studio-scene { display: none !important; } }
[data-skin="studio"] .node.strat-node:not(.done) .num .ic { color: var(--pc); }

/* ---------- the three newer worlds: the screens they share with space and animals (world prefixes hs-sc-, hs-mg-, hs-st-) ---------- */
/* light grounds (science, studio): dark ink and dark tints where the night worlds use white */
[data-skin="science"] { --lt-ink: #10303c; --lt-a: #0e4a5c; --coll-groupbg: #ffffffeb; }
[data-skin="studio"] { --lt-ink: #3a1f2b; --lt-a: #7a3a2a; --coll-groupbg: #ffffffeb; }
[data-skin="magic"] { --coll-groupbg: #2a185acc; }
:is([data-skin="science"], [data-skin="studio"]) .x { background: color-mix(in srgb, var(--lt-a) 12%, transparent); color: var(--lt-ink); }
:is([data-skin="science"], [data-skin="studio"]) .fuel i { background: color-mix(in srgb, var(--lt-a) 18%, transparent); }
:is([data-skin="science"], [data-skin="studio"]) .fuel i.cur { background: var(--lt-ink); }
:is([data-skin="science"], [data-skin="studio"]) .fuel i.ok { background: var(--ok); }
:is([data-skin="science"], [data-skin="studio"]) .combo { color: color-mix(in srgb, var(--lt-a) 38%, transparent); }
:is([data-skin="science"], [data-skin="studio"]) .combo.on { color: #e0702a; }
:is([data-skin="science"], [data-skin="studio"]) .playbar .tool { border-color: color-mix(in srgb, var(--lt-a) 30%, transparent); }
:is([data-skin="science"], [data-skin="studio"]) .playbar .tool.on { color: var(--ok); border-color: var(--ok); background: #1fa9711a; }
:is([data-skin="science"], [data-skin="studio"]) .timebar { background: color-mix(in srgb, var(--lt-a) 15%, transparent); }
:is([data-skin="science"], [data-skin="studio"]) :is(.coll-phead h1, .coll-ahead h2, .coll-gh b) { color: var(--lt-ink); }
:is([data-skin="science"], [data-skin="studio"]) .coll-count { color: var(--lt-ink); background: color-mix(in srgb, var(--lt-a) 10%, transparent); }
:is([data-skin="science"], [data-skin="studio"]) .coll-count .coll-bar { background: color-mix(in srgb, var(--lt-a) 15%, transparent); }
:is([data-skin="science"], [data-skin="studio"]) .coll-group { border-color: color-mix(in srgb, var(--lt-a) 14%, transparent); }
:is([data-skin="science"], [data-skin="studio"]) .hs-cap h3 { color: var(--lt-ink); }
:is([data-skin="science"], [data-skin="studio"]) .hs-cap .hs-say { background: #ffffffd9; color: var(--lt-ink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--lt-a) 10%, transparent); }
:is([data-skin="science"], [data-skin="studio"]) .hs-map .node .nm { text-shadow: 0 0 6px #fff, 0 0 3px #fff; }
/* the fact line after a mission and the album texts in each world's colours */
[data-skin="science"] .fact { background: #dcf3f7; } [data-skin="science"] :is(.fact b, .coll-fact b, .coll-rtext p b) { color: #0b6a84; } [data-skin="science"] .coll-tag { background: #0b6a84; }
[data-skin="magic"] .fact { background: #efe6ff; } [data-skin="magic"] :is(.fact b, .coll-fact b, .coll-rtext p b) { color: #6a3fc4; } [data-skin="magic"] .coll-tag { background: #6a3fc4; }
[data-skin="studio"] .fact { background: #ffe9d6; } [data-skin="studio"] :is(.fact b, .coll-fact b, .coll-rtext p b) { color: #a8204e; } [data-skin="studio"] .coll-tag { background: #a8204e; }
[data-skin="magic"] .hs-cap .hs-say { background: #ffffff17; color: #f3ecff; }
/* the album on the light grounds (science, studio): cards still to collect drawn in dark ink, the stage ring in each world's accent */
:is([data-skin="science"], [data-skin="studio"]) .coll-lock { border-color: color-mix(in srgb, var(--lt-a) 30%, transparent); background: color-mix(in srgb, var(--lt-a) 4%, transparent); }
:is([data-skin="science"], [data-skin="studio"]) .coll-sil svg * { fill: color-mix(in srgb, var(--lt-a) 9%, transparent) !important; stroke: color-mix(in srgb, var(--lt-a) 9%, transparent) !important; }
:is([data-skin="science"], [data-skin="studio"]) .coll-q { background: color-mix(in srgb, var(--lt-a) 9%, transparent); color: color-mix(in srgb, var(--lt-a) 62%, transparent); }
:is([data-skin="science"], [data-skin="studio"]) .coll-got { box-shadow: 0 5px 0 color-mix(in srgb, var(--lt-a) 30%, transparent), 0 0 0 1px color-mix(in srgb, var(--lt-a) 12%, transparent); }
:is([data-skin="science"], [data-skin="studio"]) .coll-grow, :is([data-skin="science"], [data-skin="studio"]) .coll-feature { box-shadow: 0 8px 0 color-mix(in srgb, var(--lt-a) 22%, transparent), 0 0 0 1px color-mix(in srgb, var(--lt-a) 10%, transparent); }
/* long card names and long facts (coll.js): names over 9 letters a size smaller; on short wide screens a long fact runs under the sticker and the title */
.coll-nm.coll-nm2 { font-size: 15px; line-height: 1.12; }
@media (min-width: 1200px) and (max-height: 820px) and (orientation: landscape) {
  .coll-feature.coll-long { grid-template-columns: 58px 1fr; padding: 8px 12px; }
  .coll-feature.coll-long .coll-big { grid-row: 1; height: 60px; border-width: 3px; } .coll-feature.coll-long .coll-big > svg { width: 50px; height: 50px; }
  .coll-feature.coll-long .coll-fact { grid-column: 1 / -1; font-size: 17px; line-height: 1.32; }
}
[data-skin="science"] .coll-stage.coll-sgot .coll-med { border-color: #0b6a84; } [data-skin="magic"] .coll-stage.coll-sgot .coll-med { border-color: #6a3fc4; } [data-skin="studio"] .coll-stage.coll-sgot .coll-med { border-color: #a8204e; }

/* science on the story home: a glass tube along the route, coloured liquid in the stretch done with bubbles flowing in it;
   faint atoms far back, flasks and jars at the sides, bubbles near */
.hs-w-science .hs-r-band { stroke: #8fc7d6; stroke-opacity: .6; stroke-width: 24; }
.hs-w-science .hs-r-ahead, .hs-w-science .hs-r-glow { stroke: #ffffff; stroke-opacity: .9; stroke-width: 15; }
.hs-w-science .hs-r-done { stroke: #2fd6a0; stroke-width: 9; }
.hs-w-science .hs-r-core { stroke: #f2fffa; stroke-width: 4.5; stroke-dasharray: .1 16; animation: hs-sc-flow 1.4s linear infinite; }
@keyframes hs-sc-flow { to { stroke-dashoffset: -16.1; } }
.hs-w-science .hs-launch { background: #2fd6a0; box-shadow: 0 0 0 6px #2fd6a040, 0 0 22px 6px #2fd6a055; }
.hs-w-science .hs-goal { background: radial-gradient(closest-side, #2fd6a033, #2fd6a014 60%, transparent); }
.hs-sc-far { position: absolute; opacity: .28; }
.hs-sc-glass { position: absolute; opacity: .5; }
.hs-sc-bub { position: absolute; width: calc(15px * var(--hs-s)); height: calc(15px * var(--hs-s)); border-radius: 50%; border: 2px solid #7fc4d8; background: #ffffff80; opacity: .6; }

/* magic on the story home: a sparkling path, golden where walked with sparkles beside it, faint dotted ahead;
   far stars, castles on far hills and soft clouds, twinkling sparkles near */
.hs-w-magic .hs-r-band { stroke: #b48cff; stroke-opacity: .13; stroke-width: 26; }
.hs-w-magic .hs-r-ahead { stroke: #ffe9a8; stroke-opacity: .5; stroke-width: 4; stroke-dasharray: .1 11; }
.hs-w-magic .hs-r-glow { stroke: #ffd76a; stroke-opacity: .2; stroke-width: 14; }
.hs-w-magic .hs-r-done { stroke: #ffd76a; stroke-width: 3.5; }
.hs-w-magic .hs-r-core { display: none; }
.hs-spk-done { fill: #fff3b0; } .hs-spk { fill: #fff3b0; opacity: .3; }
.hs-w-magic .hs-launch { background: #fff3b0; box-shadow: 0 0 0 6px #fff3b040, 0 0 22px 6px #ffd76a66; }
.hs-w-magic .hs-far { background-image: radial-gradient(1.2px 1.2px at 40px 60px, #fff6c8c0 55%, transparent 60%), radial-gradient(1.5px 1.5px at 170px 20px, #ffd9f0 55%, transparent 60%),
    radial-gradient(1px 1px at 260px 140px, #ffffff99 55%, transparent 60%); background-size: 300px 230px, 410px 330px, 350px 270px; opacity: .7; }
.hs-w-magic .hs-flag, .hs-w-studio .hs-flag { translate: -50% 0; }
.hs-mg-crown, .hs-st-rosette { filter: drop-shadow(0 3px 0 #00000040); }
.hs-mg-castle { position: absolute; opacity: .55; } .hs-mg-castle svg { display: block; }
.hs-mg-cloud { position: absolute; width: calc(240px * var(--hs-s)); height: calc(70px * var(--hs-s)); border-radius: 999px; background: radial-gradient(closest-side, #c9a8ff2e, transparent); }
.hs-mg-tw { position: absolute; width: calc(9px * var(--hs-s)); height: calc(9px * var(--hs-s)); background: #fff6c8; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: skin-mg-twinkle 3s ease-in-out infinite; }

/* studio on the story home: a brush stroke of paint where the child has been, a pencil line ahead, music notes beside it;
   big soft paint splashes far back, framed pictures at the sides, notes and paint dots near */
.hs-w-studio .hs-r-band { stroke: #e9c9a6; stroke-opacity: .55; stroke-width: 26; }
.hs-w-studio .hs-r-ahead { stroke: #b8713a; stroke-opacity: .5; stroke-width: 3; stroke-dasharray: 10 9; }
.hs-w-studio .hs-r-glow { stroke: #ff6b5e; stroke-opacity: .9; stroke-width: 16; }
.hs-w-studio .hs-r-done { stroke: #ffb02e; stroke-width: 6; transform: translate(1px, -3px); }
.hs-w-studio .hs-r-core { stroke: #ffffff; stroke-opacity: .55; stroke-width: 2; stroke-dasharray: 34 16; transform: translate(-1px, 4px); }
.hs-note-done { fill: #8a5bd6; stroke: #8a5bd6; } .hs-note { fill: #8a5bd6; stroke: #8a5bd6; opacity: .3; }
.hs-w-studio .hs-launch { background: #ff6b5e; box-shadow: 0 0 0 6px #ff6b5e40, 0 0 22px 6px #ff6b5e44; }
.hs-st-blob { position: absolute; opacity: .2; }
.hs-st-frame { position: absolute; opacity: .6; transform: rotate(var(--hs-r)); } .hs-st-frame svg { display: block; }
.hs-st-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; opacity: .45; }
.hs-st-fnote { position: absolute; width: 22px; height: 30px; opacity: .55; }
@media (prefers-reduced-motion: reduce) { .hs-w-science .hs-r-core, .hs-mg-tw { animation: none; } }
/* first launch with five worlds (computer screens): three small picture cards a row and a smaller companion, so the choice fits beside the name fields */
@media (min-width: 900px) and (orientation: landscape) {
  .skin-cards { gap: 8px; max-width: 480px; margin-inline: auto; }
  .skin-card { flex: 0 0 calc(33.333% - 6px); min-width: 0; padding: 4px 6px; border-radius: 16px; }
  .skin-card b { font-size: 19px; line-height: 1.2; }
  .skin-card-art { height: 58px; } .skin-card-art svg { height: 54px; width: auto; }
  .fit-onb-a #obot svg { width: 112px; height: auto; }
  .fit-onb-a h1 { margin: 0 0 2px; }
}
/* the world switch with five worlds: never wider than the screen; on a phone the buttons wrap to a second row when they must */
.skin-sw button { white-space: nowrap; }
@media (max-width: 560px) { .skin-sw { flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 32px); } .skin-sw button { padding: 3px 8px; font-size: 14px; gap: 3px; } }

/* par-: the parent screen. Key dates as tiles, one table per track (chapter rows, question types under them), Stage A in a dialog */
.par-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 4px; }
.par-dates > div { background: #f4ecdb; border-radius: 14px; padding: 8px 16px; display: grid; }
.par-dates small { color: #6a6485; font-size: 14px; } .par-dates b { font-size: 19px; }
.par-dates .btn { color: var(--ink); text-decoration: none; margin-inline-start: auto; }
.par-chapters tr.par-ch td { font-weight: 600; border-top: 2px solid #e6dcc6; }
.par-chapters tr.par-sub td { color: #57516f; font-size: 15px; padding-block: 4px; } .par-chapters tr.par-sub td:first-child { padding-inline-start: 26px; }
.par-coll { max-width: 620px; }
.par-dlg { border: 0; border-radius: 26px; padding: 20px 24px; width: min(900px, 94vw); max-height: 90vh; background: var(--paper); color: var(--ink); font: inherit; box-shadow: 0 10px 0 #00000040; }
.par-dlg::backdrop { background: #0b0630b3; }
.par-dlg h2 { margin: 0 0 8px; } .par-dlg h3 { margin: 18px 0 6px; } .par-dlg a { color: #2a56c6; }

/* q-pal: the companion beside a question, on screens with a free margin left of the card. It only breathes, slowly, so the
   eye stays on the question; it steps aside when the feedback band (which has its own companion) comes up. */
.q-pal { display: none; }
@media (min-width: 1340px) and (orientation: landscape) {
  .q-pal { display: block; position: fixed; left: calc((100vw - 940px) / 2 - 172px); top: 44%; pointer-events: none; animation: q-pal-breathe 6s ease-in-out infinite; transition: opacity .25s; }
  .play.reading .q-pal, .play:has(.sheet) .q-pal { opacity: 0; }
}
@keyframes q-pal-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .q-pal { animation: none; } }
.par-datetab small { color: #6a6485; font-size: 14px; } .par-datetab td { vertical-align: top; }
.par-music td { font-size: 15px; text-align: start; } .par-music td[dir=ltr] { text-align: right; }

/* logo-h: the logo in the middle of the top bar, on every screen: the firefly above the glowing name (the owner's own
   picture, img/logo-bar.webp: img/logo-dark.webp at 375 x 308, twice the widest it is shown, cropped to the firefly and the name) and two lines of text beside it. The bar is a different
   dark colour in each world; the two text colours were checked on all five (brand/header). */
:root { --logo-slo: #eaff8f; --logo-sub: #ffffff; --logo-k: .125; --top-h: 118px; }
.top { display: grid; grid-template-columns: 1fr auto 1fr; padding-block: 3px; }
.top .seg { justify-self: start; }
.top-end { justify-self: end; display: flex; align-items: center; gap: 8px 14px; }
.logo-h { display: flex; align-items: center; gap: 10px; background: none; border: none; padding: 0; color: inherit; }
/* the picture is 1500 x 1232; the part shown is x 60..1480, y 150..1045: the whole firefly and its trail of light.
   A little more light, because the bar is not black. --top-h = the height of the bar (the studio bunting hangs under it). */
.logo-h-art { display: block; position: relative; overflow: hidden; flex: none; width: calc(1420px * var(--logo-k)); height: calc(895px * var(--logo-k)); }
.logo-h-art img { position: absolute; width: calc(1500px * var(--logo-k)); left: calc(-60px * var(--logo-k)); top: calc(-150px * var(--logo-k)); max-width: none; filter: brightness(1.22) saturate(1.15) drop-shadow(0 0 5px rgba(225, 255, 110, .35)); }
.logo-h-txt { display: grid; text-align: center; line-height: 1.25; }
.logo-h-txt b { font-size: 18px; font-weight: 500; color: var(--logo-slo); white-space: nowrap; }
.logo-h-txt small { font-size: 17px; font-weight: 400; color: var(--logo-sub); white-space: nowrap; }
/* low screens (laptops): a smaller logo, so a question still fits without scrolling */
@media (max-height: 720px) { :root { --logo-k: .094; --top-h: 90px; } .logo-h-txt b { font-size: 16px; } .logo-h-txt small { font-size: 15px; } }
@media (max-width: 1280px) { .logo-h-txt { display: none; } }
@media (max-width: 860px) { :root { --logo-k: .08; } .top { display: flex; } .logo-h { flex: 1 1 auto; justify-content: flex-start; order: 0; } .top .seg { order: 2; } .top-end { order: 1; } }
.top-solo { display: grid; grid-template-columns: 1fr auto 1fr; }
.top-solo-start { display: flex; align-items: center; justify-content: flex-start; }
.top-solo .tool.top-back span { display: inline; } /* the way back keeps its words on a phone too: an arrow alone is not clear */
@media (max-width: 480px) { .top-solo .tool.top-back { padding-inline: 6px; gap: 2px; font-size: 14px; } .top-solo .tool.top-back span { font-size: 14px; } }
/* par-world: the world switch of the parent portal, in its own box */
.par-world { background: #f4ecdb; border: 2px solid #e6d9bd; border-radius: 18px; padding: 12px 16px 6px; margin: 16px 0; }
.par-world h3 { margin: 0 0 10px; }
.par-world .skin-sw { background: #fffaf0; } .par-world .skin-sw button { font-size: 18px; padding: 8px 16px; }
.top .tool span { white-space: nowrap; }
/* the question screen in the two light worlds: the progress line gets a pale backing so it reads on the scenery, and on a tall
   screen the studio's question starts below the bunting */
:is([data-skin="science"], [data-skin="studio"]) .playbar { background: #fffaf0e0; border-radius: 20px; padding: 4px 8px; }
@media (min-height: 760px) { [data-skin="studio"] .play { padding-top: 70px; } }
/* parent portal: headings in the middle */
.par-card h2, .par-card h3, .par-dlg h2, .par-dlg h3 { text-align: center; }
.par-card table.grid, .par-card .par-fam-table, .par-card .strat-par { margin-inline: auto; }
/* the page-turn button at the foot of a mock test page on screen */
.sb-end .sb-turn { margin-top: 8px; } .sim-turn { text-align: center; margin: 16px 0 6px; }
/* site-foot: the company line. At the end of a page that scrolls, or a small credit in the corner of a screen that must fit */
.site-foot { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; gap: 14px; padding: 18px 16px 22px; font-size: 15px; color: var(--dim); }
.site-foot button { background: none; border: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; }
.site-foot:not(.site-foot-corner) { flex-wrap: wrap; }
.site-foot a { color: inherit; text-decoration: underline; }
.site-seller { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 16px; font-size: 14.5px; }
.buy-ok { margin: 12px 0; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; text-align: right; }
.buy-ok label { display: flex; align-items: flex-start; gap: 10px; font-size: 17px; line-height: 1.5; color: var(--ink); cursor: pointer; }
.buy-ok input { flex: none; width: 22px; height: 22px; margin: 3px 0 0; accent-color: #2a56c6; cursor: pointer; }
.buy-ok .btn { display: block; margin: 10px auto 0; }
.par-dlg .buy-msg { margin: 8px 0 0; font-size: 16px; line-height: 1.45; text-align: center; color: var(--ink); }
.buy-msg:empty { display: none; }
.par-dlg a[dir="ltr"] { overflow-wrap: anywhere; }
@media (max-width: 480px) { .land-dlg a[dir="ltr"], .trial-dlg a[dir="ltr"] { font-size: 15px; } }
.site-foot-corner { position: fixed; bottom: 4px; left: 10px; z-index: 5; padding: 0; gap: 10px; font-size: 12.5px; opacity: .8; }
.paper-wrap + .site-foot { background: #d9d4cb; color: #444; }
/* ab-: the About page (v31). The night opens it (title, slogan, the companions on a lit hill) and closes it (contact); between them
   one cream sheet with the two questions side by side, three shorter notes, and the founder's letter with his photo as a framed
   print. Headings in the middle, text at the start. The night and the edge colours are the v31 parent portal's. */
.ab-page { --ab-night: #1f1557; --ab-hill: #2b206e; --ab-glow: #eaff8f; --ab-edge: #e6d9bd; --ab-indigo: #3b2a8f;
  max-width: 1200px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.ab-night { position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #fff8e6; border-radius: 30px; box-shadow: 0 10px 0 #00000040;
  background: radial-gradient(circle at 10% 16%, #eaff8f30 0, #eaff8f0e 14%, transparent 30%), radial-gradient(circle at 94% 100%, #59bdff2a 0, transparent 40%),
    radial-gradient(560px 260px at 50% -10%, #6a45ff45, transparent 70%), var(--ab-night); }
.ab-hero { padding: 42px 20px 0; }
.ab-hero h1 { position: relative; z-index: 1; margin: 0; font-size: 50px; line-height: 1.1; color: #fff; }
.ab-slogan { position: relative; z-index: 1; margin: 10px 0 20px; font-size: 22px; font-weight: 600; color: var(--ab-glow); }
.ab-buddies { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-end; gap: 26px; flex-wrap: wrap; padding-bottom: 20px; }
.ab-buddies span { position: relative; display: grid; place-items: center; width: 92px; height: 92px; }
.ab-buddies span:nth-child(even) { transform: translateY(-12px); }
.ab-buddies span::after { content: ""; position: absolute; inset: auto 6px -8px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, #eaff8f55, transparent); z-index: -1; }
.ab-hill { position: absolute; inset: auto 0 0 0; width: 100%; height: 74px; z-index: 0; }
.ab-hill path { fill: var(--ab-hill); }
.ab-fly { position: absolute; z-index: 0; left: var(--x); top: var(--y); width: 8px; height: 8px; border-radius: 50%; background: var(--ab-glow, #eaff8f); box-shadow: 0 0 12px 4px #eaff8f88; animation: land-blink 2.6s ease-in-out var(--d, 0s) infinite; }
.ab-sheet { background: var(--paper); color: var(--ink); border-radius: 28px; box-shadow: 0 10px 0 #00000040; }
.ab-card { color: var(--ink); }
.ab-card h2, .ab-sheet h2 { margin: 10px 0 10px; font-size: 24px; line-height: 1.25; text-align: center; }
.ab-ic { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; background: var(--c); color: #fff;
  box-shadow: 0 4px 0 #00000026, 0 0 0 7px color-mix(in srgb, var(--c) 15%, transparent); }
.ab-card p, .ab-card li, .ab-sheet p { font-size: 18px; line-height: 1.6; margin: 0 0 8px; }
.ab-card ul { padding-inline-start: 20px; margin: 0; } .ab-card li { margin-bottom: 6px; }
/* the two questions: one sheet, two columns, a dashed seam between them */
.ab-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ab-intro > .ab-card { padding: 26px 26px 22px; }
.ab-intro p { font-size: 17.5px; }
.ab-intro > .ab-card + .ab-card { border-inline-start: 2px dashed var(--ab-edge); }
/* three shorter notes, each marked by its colour on the top edge */
.ab-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ab-notes > .ab-card { background: var(--paper); border-radius: 24px; padding: 20px 24px 14px; box-shadow: 0 8px 0 #00000033; border-top: 7px solid var(--c); }
.ab-notes .ab-ic { width: 44px; height: 44px; }
.ab-notes p, .ab-notes li { font-size: 17px; }
/* the founder's letter: his photo as a framed print, his text beside it, his closing line and his name stand out */
.ab-me { padding: 28px 28px 32px; }
.ab-letter { display: grid; grid-template-columns: minmax(260px, 370px) minmax(0, 1fr); gap: 22px 28px; align-items: start; margin-top: 12px; }
.ab-photo { margin: 6px 0 0; padding: 10px 10px 12px; background: #fff; border-radius: 10px; box-shadow: 0 12px 26px #1b163830, 0 0 0 1px var(--ab-edge); transform: rotate(1.5deg); }
.ab-photo img { display: block; width: 100%; height: auto; border-radius: 5px; }
.ab-story p { font-size: 17.5px; line-height: 1.7; }
/* each of the founder's lines on a line of its own, close together; a paragraph ends with a wider gap. "pretty" keeps a last word from standing alone */
.ab-par p { margin: 0 0 3px !important; text-wrap: pretty; } .ab-par p:last-child { margin-bottom: 0 !important; }
.ab-par + .ab-par { margin-top: 22px; } .ab-card > .ab-par { margin-bottom: 8px; }
.ab-closing p:last-child { font-weight: 600; color: var(--ab-indigo); }
/* the sign-off stands under the photo and the letter, in the middle of the sheet (the parent's note of 18.11.2026) */
.ab-sign { text-align: center; margin-top: 26px; } .ab-sheet .ab-sign p { font-size: 17.5px; line-height: 1.7; }
.ab-sheet .ab-sign p:last-child { padding-top: 4px; font-size: 30px; font-weight: 700; line-height: 1.3; color: var(--ab-indigo); }
/* contact: the night again, closing the page */
.ab-contact { padding: 30px 20px 22px; }
.ab-contact > * { position: relative; z-index: 1; }
.ab-contact h2 { margin: 10px 0 6px; font-size: 26px; color: #fff; }
.ab-contact p { margin: 0 0 16px; font-size: 18px; color: #ece7ff; }
.ab-contact .ab-fly { position: absolute; z-index: 0; }
.ab-mail { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.ab-mail .btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.ab-contact .btn.ghost { box-shadow: 0 6px 0 #b4aad8; }
.ab-copy.ok { background: #17806f; color: #fff; }
.ab-contact .ab-co { margin: 20px 0 0; font-size: 15px; color: #c9c2f0; }
.ab-page > .next-row { margin-top: 2px; justify-content: center; }
.par-about { text-align: center; margin: 0 0 4px; }
@media (max-width: 1000px) { .ab-notes { grid-template-columns: 1fr 1fr; } .ab-notes > .ab-card:last-child { grid-column: 1 / -1; } .ab-letter { grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); gap: 20px 28px; } }
@media (max-width: 900px) { .ab-letter { grid-template-columns: 1fr; } .ab-photo { transform: none; width: 100%; max-width: 560px; margin-inline: auto; } .ab-intro { grid-template-columns: 1fr; } .ab-intro > .ab-card + .ab-card { border-inline-start: 0; border-top: 2px dashed var(--ab-edge); } }
@media (max-width: 640px) { .ab-notes { grid-template-columns: 1fr; } .ab-hero { padding-top: 30px; } .ab-hero h1 { font-size: 36px; } .ab-slogan { font-size: 19px; margin-bottom: 14px; }
  .ab-buddies { gap: 6px; padding-bottom: 14px; } .ab-buddies span { width: 54px; height: 54px; } .ab-buddies svg { width: 50px; height: 50px; } .ab-buddies span:nth-child(even) { transform: translateY(-7px); } .ab-hill { height: 46px; }
  .ab-intro > .ab-card { padding: 22px 18px 18px; } .ab-me { padding: 24px 18px 26px; } .ab-notes > .ab-card { padding: 18px 18px 12px; } .ab-sheet .ab-sign p:last-child { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .ab-fly { animation: none; } }
/* fit-bar: on a low screen (a laptop) the top bar is compact while a question is on screen (the landing page and the first
   launch keep the full bar of the other pages: the first launch fits under it, card bottom 580 of 625 at 1366x625), so the
   question still fits without scrolling: a small logo, the track switch in one line, less air above the card.
   Measured with tools/fit_check.js at 1366x625 (the tall bar pushed 8 of 25 screen types 10 to 54 px past the screen). */
@media (max-height: 720px) and (min-width: 861px) {
  .top:has(+ main.play) { --logo-k: .045; padding-block: 2px; }
  .top:has(+ main.play) .seg button small { display: none; }
  .top:has(+ main.play) .seg button { padding-block: 3px; }
  .top:has(+ main.play) .logo-h-txt b { font-size: 14px; } .top:has(+ main.play) .logo-h-txt small { font-size: 13px; }
  .top + main.play { padding-top: 2px; }
  .top + main.play .ptitle { margin-block: 2px; }
  :is([data-skin="science"], [data-skin="studio"]) .top + main.play .playbar { padding-block: 1px; }
  .top-solo + main.onb { padding-top: 10px; }
}

/* lim-: the parent timer (limit.js). The break screen is one centred card; the box in the parent portal follows .par-world */
.lim-screen { display: grid; place-items: center; padding: 28px 16px; }
.lim-card { background: var(--paper); color: var(--ink); border-radius: 30px; padding: 24px 34px 22px; text-align: center; box-shadow: 0 10px 0 #00000040; max-width: 560px; }
.lim-card h1 { margin: 4px 0 6px; font-size: 34px; }
.lim-card p { font-size: 20px; margin: 8px 0; }
.lim-clock b { display: inline-block; min-width: 3.2em; font-size: 30px; font-variant-numeric: tabular-nums; color: #1f9c8f; }
.par-limit, .par-boost { text-align: center; padding-bottom: 10px; }
.lim-fields { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 14px 0 8px; }
.lim-fields label { font-weight: 600; }
.lim-fields input { width: 76px; font: inherit; text-align: center; padding: 4px 6px; border: 2px solid #e6d9bd; border-radius: 10px; background: #fffaf0; }
.lim-line { font-size: 18px; margin: 8px 0; padding: 6px 10px; border-radius: 12px; }
.lim-saved { color: #14796e; font-weight: 700; }
.lim-flash { animation: lim-flash 1.6s ease-out; }
@keyframes lim-flash { from { background: #ffe27a; } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .lim-flash { animation: none; } }
/* par-boost: the strengthening plan of the parent portal */
.par-boost h4 { margin: 12px 0 4px; font-size: 18px; }
.par-tips { text-align: right; max-width: 760px; margin: 0 auto 10px; padding-inline-start: 22px; }
.par-tips li { margin: 6px 0; }
.par-tips b { display: block; }
.par-boost-go { margin: 10px 0; }

/* par-page: the parent portal as numbered boxes, two in a row on a wide screen (parent.js). The dates box takes the full row. */
.par-wrap { max-width: 1560px; }
.par-page { color: var(--ink); }
.par-head { background: var(--paper); border-radius: 26px; padding: 14px 22px 12px; box-shadow: 0 10px 0 #00000040; text-align: center; }
.par-head h2 { margin: 0 0 10px; font-size: 30px; }
.par-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 980px; margin: 0 auto; }
.par-tile { background: #f4ecdb; border: 2px solid #e6d9bd; border-radius: 16px; padding: 8px 10px; display: grid; }
.par-tile b { font-size: 26px; line-height: 1.2; } .par-tile small { color: #6a6485; font-size: 15px; }
.par-head-go { margin: 12px 0 0; }
.par-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; margin-top: 22px; align-items: stretch; }
.par-box { background: var(--paper); border-radius: 24px; padding: 14px 18px 12px; box-shadow: 0 8px 0 #00000040; min-width: 0; }
.par-box.par-full { grid-column: 1 / -1; }
.par-box > h3 { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--line); font-size: 22px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.par-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--star); box-shadow: 0 3px 0 var(--star-d); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.par-box h4 { margin: 16px 0 6px; font-size: 18px; text-align: center; }
.par-box h4:first-of-type { margin-top: 6px; }
.par-box a { color: #2a56c6; }
.par-box table.grid { font-size: 15px; }
.par-box .sub { font-size: 14px; margin: 8px 0 4px; }
.par-center { text-align: center; } .par-center .btn { margin: 3px 2px; }
/* the progress file: download in green, upload in blue, the reset in red (the parent's note of 18.11.2026). White text on
   #1b7f45 and #2563eb is above 5:1, the red text on its pale ground above 5:1 */
.btn.small.par-save { background: #1b7f45; color: #fff; box-shadow: 0 4px 0 #11552e; }
.btn.small.par-load { background: #2563eb; color: #fff; box-shadow: 0 4px 0 #1a46a8; }
.btn.small.par-wipe { background: #fde2e1; color: #b3261e; box-shadow: 0 4px 0 #e7a5a1; }
.par-save .ic, .par-load .ic { flex: none; }
.par-file .btn { min-width: 232px; }
/* the window with the ways to write to us (about.js) */
.mail-dlg { width: min(560px, 94vw); text-align: center; }
.mail-dlg h2 { justify-content: center; }
.mail-ways { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px; margin: 6px 0 14px; }
.mail-ways .btn { text-decoration: none; min-width: 150px; color: var(--ink); }
.mail-dlg .next-row { justify-content: center; }
.par-verdict { font-size: 19px; text-align: center; margin: 4px 0 10px; background: #fff3c9; border-radius: 14px; padding: 8px 12px; }
.par-fam-table small { color: #6a6485; font-size: 14px; } .par-fam-table .btn { white-space: nowrap; }
.par-plan { background: #f4ecdb; border: 2px solid #e6d9bd; border-radius: 18px; padding: 4px 14px 10px; margin: 14px 0 8px; }
.par-box .skin-sw { background: #f4ead6; } .par-box .skin-sw button { color: #6a6485; font-size: 17px; padding: 7px 14px; } .par-box .skin-sw button.on { color: var(--ink); }
.par-box.par-limit { background: var(--paper); border: 0; text-align: center; padding-bottom: 12px; }
.lim-sw { text-align: center; margin: 4px 0; }
@media (max-width: 1100px) { .par-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .par-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .par-box { padding-inline: 12px; overflow-x: auto; } }
/* lim-gate: the parent code window */
.lim-gate { width: min(440px, 94vw); text-align: center; }
.lim-gate-in { width: 190px; font: inherit; font-size: 32px; letter-spacing: .3em; text-align: center; padding: 6px 4px; border: 3px solid #e6d9bd; border-radius: 14px; background: #fff; }
.lim-gate-in:focus { outline: 3px solid var(--star); border-color: var(--star-d); }
.lim-gate-msg { min-height: 1.5em; margin: 6px 0; }
/* guide: the step of the guided example before strengthening practice */
.guide-tag b { color: #8a5a00; }
.guide-skip { margin-inline-start: 14px; font-size: 17px; }
.par-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.par-set > div { background: #f4ecdb; border: 2px solid #e6d9bd; border-radius: 16px; padding: 4px 12px 8px; min-width: 0; }
.par-set .skin-sw { flex-wrap: wrap; justify-content: center; background: #fffaf0; } .par-set .simbm { font: inherit; text-align: center; border: 2px solid #e6d9bd; border-radius: 10px; background: #fffaf0; margin-top: 6px; }
.par-datetab { font-size: 14px !important; } .par-datetab small { font-size: 13px; }
.par-set h4:first-child { margin-top: 6px; }
@media (max-width: 700px) { .par-set { grid-template-columns: minmax(0, 1fr); } }
/* top-about: the about button of the top bar and the divider before the parents' buttons. Hidden while a question or a mock
   test is on screen (leaving there goes through the logo, which asks first). */
#app:has(main.play, .sb-live, .paper-wrap #clk) .top-about { display: none; }
/* top-land: the house, the way to the home page (landing, where the purchase is). Hidden like About while a question or a mock test is on screen */
#app:has(main.play, .sb-live, .paper-wrap #clk) .top-land { display: none; }
.lim-rec { margin: 6px 0; } .lim-rec:empty { display: none; } .lim-rec:not(:empty) { background: #fff3c9; border-radius: 12px; padding: 7px 12px; }
.lim-rec b { font-size: 22px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.lim-gate-in[maxlength="8"] { width: 250px; font-size: 28px; letter-spacing: .18em; }
/* The top bar in the parent's layout (ui.js topbar): home, about and the track switch at the start; the logo with its text in
   the middle; counters, the tool tray and the filled parent-portal button at the end. */
.top-start { justify-self: start; display: flex; align-items: center; gap: 8px; }
.top .tool.top-home { padding: 6px 9px; }
.bar-tray { background: #ffffff1a; border-radius: 18px; padding: 4px; gap: 4px; align-items: center; }
.bar-tray .tool { border-color: transparent; border-radius: 14px; padding: 5px 10px; }
.bar-tray .tool.on { border-color: transparent; background: #2fd6b533; }
.top .tool.top-parent { background: var(--star); color: var(--ink); border-color: transparent; font-weight: 700; padding: 7px 14px; box-shadow: 0 3px 0 var(--star-d); }
.top-end { gap: 8px 10px; } .top-end .chips { gap: 6px; }
@media (max-width: 1500px) { .top .tool.top-about span { display: none; } }
@media (max-width: 860px) { .top-start { order: 2; } }
/* a question on a low screen: the compact bar keeps its 45px (fit-bar) */
@media (max-height: 720px) and (min-width: 861px) {
  .top:has(+ main.play) .bar-tray { padding: 0 4px; } .top:has(+ main.play) .tool { padding-block: 3px; } .top:has(+ main.play) .tool.top-parent { padding-block: 4px; box-shadow: none; }
}
/* fit-tab: a question on a portrait tablet (768x1024 and similar) shows whole without scrolling, like on a computer.
   ui.js fitQ() works on landscape screens only, so here the figure gets a height cap in CSS: the screen height less what
   sits above and below it (--tq-fixed), the studio bunting, picture answers, an open hint, or the feedback band (the answers
   stay above the band). The four number answers stand in one row as on a computer. Fonts and the order of the parts unchanged.
   Measured with docs/review/work/tablet-fit.md (every Stage B type, 30 loads each, with and without the feedback band). */
@media (min-width: 700px) and (max-width: 1100px) and (orientation: portrait) {
  .play { padding-bottom: 14px; }
  #qcard { --tq-fixed: 480px; --tq-skin: 0px; --tq-clock: 0px; --tq-opts: 0px; --tq-state: 0px; }
  [data-skin="studio"] #qcard { --tq-skin: 64px; }
  .play:has(.timebar) #qcard { --tq-clock: 20px; }
  #qcard:has(.opts.tiles) { --tq-opts: 92px; }
  #qcard:has(#hint .hintbox) { --tq-state: 120px; }
  /* the band of a number question explains every row (up to about 270px); the band of a picture question is shorter */
  .play:has(#sheet .sheet) #qcard { --tq-state: 180px; }
  .play:has(#sheet .sheet) #qcard:has(.opts.tiles) { --tq-state: 110px; }
  #qcard .qfig .fig { max-height: calc(100vh - var(--tq-fixed) - var(--tq-skin) - var(--tq-clock) - var(--tq-opts) - var(--tq-state)); }
  .play .opts.four { grid-template-columns: repeat(4, 1fr); }
}

/* land-: the landing page (landing.js), one page that scrolls: hero with a live sample question, the five parts, how it works,
   the five worlds, the parent portal (a light band), the calm approach, the dates, parents' questions, the closing call.
   Fireflies are a fixed canvas behind it; .rv rises in when it enters the screen (landing.js adds .in). */
.land { position: relative; overflow-x: clip; padding-bottom: 10px; }
.land > section, .land-float { position: relative; z-index: 1; }
.land-ff { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; }
.land-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.land-narrow { max-width: 860px; }
.land-sec { padding: 80px 0; }
.land-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.land h2 { font-size: 42px; line-height: 1.15; margin: 12px 0 12px; color: #fff; }
/* every heading breaks into lines of even length, never one word alone on the last line */
.land h1, .land h2, .land-cc b, .land-step b { text-wrap: balance; }
.land-lead { font-size: 20px; line-height: 1.6; color: #ffffffd0; margin: 0; }
.land-eye { display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px; border-radius: 99px; background: #ffffff14; border: 1px solid #ffffff26; color: #eaff8f; font-size: 16px; font-weight: 600; }
.land-eye i { width: 9px; height: 9px; border-radius: 50%; background: #eaff8f; box-shadow: 0 0 10px 3px #eaff8f99; animation: land-blink 2.4s ease-in-out infinite; }
@keyframes land-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.rv { opacity: 0; transform: translateY(28px); transition: opacity .75s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform .75s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.land-in { animation: land-up .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
@keyframes land-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes land-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.land-bob { animation: land-bob 4s ease-in-out infinite; }

/* hero: what it is on one side, the live question on a tablet on the other, hills and a scroll cue at the bottom */
.land-hero { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 30px 50px; align-items: center; padding: 30px 28px 120px; min-height: calc(100vh - var(--top-h) - 1px); }
.land-hero::before { content: ""; position: absolute; inset: -60px -10vw 0; z-index: -2; pointer-events: none; background: radial-gradient(560px 380px at 22% 42%, #6a45ff40, transparent 70%), radial-gradient(520px 360px at 88% 26%, #2fd6b51c, transparent 70%); }
.land-say h1 { font-size: 54px; line-height: 1.12; margin: 16px 0 14px; color: #fff; }
.land-glow { color: var(--star); text-shadow: 0 0 28px #ffd23f66; position: relative; white-space: nowrap; }
.land-glow::after { content: ""; position: absolute; inset-inline: 4px; bottom: -6px; height: 7px; border-radius: 8px; background: linear-gradient(90deg, #eaff8f00, #eaff8f, #eaff8f00); animation: land-shine 3.6s ease-in-out infinite; }
@keyframes land-shine { 0%, 100% { opacity: .3; transform: scaleX(.6); } 50% { opacity: .95; transform: scaleX(1); } }
.land-sub { font-size: 21px; line-height: 1.6; margin: 0 0 26px; color: #ffffffd9; max-width: 33em; }
.land-go { display: flex; flex-wrap: wrap; gap: 14px; }
.land-go .btn.go { font-size: 23px; padding: 14px 32px; }
.btn.land-try { position: relative; overflow: hidden; }
.btn.land-try::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, #ffffffb0 50%, transparent 65%); transform: translateX(-130%); animation: land-sweep 5s ease-in-out 1.6s infinite; }
@keyframes land-sweep { 0%, 72% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.land-demo { position: relative; width: 100%; max-width: 580px; justify-self: center; }
.land-dev { position: relative; padding: 12px; border-radius: 30px; background: linear-gradient(160deg, #3d2c96, #1a1150 62%); box-shadow: inset 0 0 0 2px #ffffff26, 0 34px 60px -24px #000d, 0 0 90px -16px #7b5cff88; transform: perspective(1500px) rotateY(8deg) rotateX(2deg); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.land-dev:hover, .land-dev:focus-within { transform: perspective(1500px) rotateY(0) rotateX(0); }
.land-screen { position: relative; aspect-ratio: 16 / 10.4; border-radius: 20px; overflow: hidden; background: radial-gradient(420px 260px at 85% 0%, #4b2bb5, transparent 70%), linear-gradient(180deg, #1e1457, #120b38); }
.land-stage { position: absolute; left: 50%; top: 50%; width: 860px; transform: translate(-50%, -50%); transform-origin: 50% 50%; }
.land-pbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: #fff; font-size: 22px; }
.land-pnum { background: var(--c); color: var(--ink); font-weight: 700; border-radius: 12px; padding: 4px 12px; font-size: 18px; }
.land-pstars { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--star); background: #ffffff1a; border-radius: 14px; padding: 4px 14px; }
.land-pstars b { color: #fff; } .land-pstars.pop { animation: land-pop .5s; }
@keyframes land-pop { 40% { transform: scale(1.35); } }
.land-cursor { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0; transform: translate(260px, 320px); transition: transform .8s cubic-bezier(.45, .05, .25, 1), opacity .3s; filter: drop-shadow(0 3px 4px #0009); }
.land-cursor.on { opacity: 1; }
.land-cursor svg { display: block; transition: transform .15s; } .land-cursor.tap svg { transform: scale(.78); }
.land-turn { position: absolute; top: -15px; left: 50%; z-index: 6; transform: translate(-50%, -8px); background: #eaff8f; color: var(--ink); font-weight: 700; font-size: 15px; border-radius: 12px; padding: 4px 14px 8px; white-space: nowrap; box-shadow: 0 0 22px #eaff8f88; opacity: 0; transition: .35s; pointer-events: none; }
.land-turn.on { opacity: 1; transform: translate(-50%, 0); }
/* a thin line that runs out until the show goes on by itself (landing.js sets --wait) */
.land-turn::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--ink); opacity: .4; transform: scaleX(0); transform-origin: right; }
.land-turn.run::after { animation: land-wait var(--wait, 5s) linear forwards; }
@keyframes land-wait { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.land-fb { position: absolute; bottom: 12px; left: 50%; z-index: 4; transform: translate(-50%, 14px); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 16px; padding: 7px 16px; border-radius: 14px; box-shadow: 0 6px 18px #0007; opacity: 0; transition: .3s; pointer-events: none; }
.land-fb.on { opacity: 1; transform: translate(-50%, 0); } .land-fb .land-next { pointer-events: auto; }
.land-fb.ok { background: var(--ok-bg); color: #10734b; } .land-fb.ok .ic { color: var(--star-d); }
.land-fb.no { background: var(--no-bg); color: #a24a14; }
.land-next { border: none; background: var(--ok); color: #fff; font-weight: 700; border-radius: 10px; padding: 4px 12px; font-size: 15px; }
.land-spark { position: absolute; width: 12px; height: 12px; margin: -6px; border-radius: 50%; z-index: 6; pointer-events: none; background: radial-gradient(circle, #fff 0 25%, #eaff8f 45%, transparent 70%); animation: land-spark .9s ease-out forwards; }
@keyframes land-spark { from { transform: translate(0, 0) scale(1.4); opacity: 1; } to { transform: translate(var(--tx), var(--ty)) scale(.3); opacity: 0; } }
.land-peek { position: absolute; bottom: 92px; left: -42px; z-index: 3; pointer-events: none; filter: drop-shadow(0 12px 14px #0008); }
.land-try-say { text-align: center; color: #ffffffa8; font-size: 15px; margin: 18px 0 8px; }
.land-parts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.land-part { display: inline-flex; align-items: center; gap: 6px; border: 2px solid #ffffff26; background: #ffffff0f; color: #fff; border-radius: 99px; padding: 6px 16px; font-size: 18px; font-weight: 500; transition: border-color .2s, background .2s, transform .2s; }
.land-part span { color: var(--c); display: inline-flex; }
.land-part:hover { border-color: var(--c); transform: translateY(-2px); }
.land-part.on { background: var(--c); border-color: var(--c); color: var(--ink); } .land-part.on span { color: var(--ink); }
.land-hills { position: absolute; left: 50%; bottom: 0; width: 100vw; height: 110px; transform: translateX(-50%); z-index: -1; }
.land-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #ffffffb0; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #ffffff40; display: grid; place-items: center; animation: land-cue 2.2s ease-in-out infinite; }
@keyframes land-cue { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* the five parts of the test, and the clock */
.land-test { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 26px; align-items: center; }
.land-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.land-pc { position: relative; overflow: hidden; background: #ffffff0d; border: 1px solid #ffffff1f; border-radius: 22px; padding: 18px 16px 24px; }
.land-pc.in { transition: opacity .75s, transform .3s, border-color .3s, background .3s; }
.land-pc.in:hover { transform: translateY(-6px); border-color: var(--c); background: #ffffff16; }
.land-pc-n { position: absolute; top: 10px; left: 14px; font-size: 44px; font-weight: 700; color: #ffffff17; line-height: 1; }
.land-pc-g { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); margin-bottom: 12px; }
.land-pc b { display: block; font-size: 19px; color: #fff; margin-bottom: 6px; }
.land-pc p { margin: 0; font-size: 15.5px; line-height: 1.5; color: #ffffffb8; }
.land-pc-bar { position: absolute; bottom: 0; inset-inline: 0; height: 5px; background: var(--c); transform: scaleX(0); transform-origin: right; transition: transform .8s cubic-bezier(.2, .7, .2, 1) calc(var(--d) + .4s); }
.land-pc.in .land-pc-bar { transform: scaleX(1); }
.land-clock { text-align: center; color: #fff; order: -1; }
.land-clock svg { width: 140px; height: 140px; display: block; margin: 0 auto 4px; filter: drop-shadow(0 0 18px #ffd23f44); }
.land-clock b { font-size: 40px; line-height: 1; display: block; } .land-clock span { color: #ffffffb0; font-size: 17px; }
.land-clock-arc { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s ease-out .8s; }
.land-clock.in .land-clock-arc { stroke-dashoffset: 0; }
.land-clock-hand { transform-origin: 60px 64px; transition: transform 2.4s ease-out .8s; }
.land-clock.in .land-clock-hand { transform: rotate(420deg); }

/* how it works: three steps on a firefly trail that draws itself while scrolling */
.land-steps { position: relative; }
.land-trail { position: absolute; top: 18px; left: 6%; width: 88%; height: 120px; overflow: visible; }
.land-trail-bg { stroke: #ffffff26; stroke-width: 4; stroke-dasharray: 2 12; stroke-linecap: round; }
.land-trail-fg { stroke: #eaff8f; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px #eaff8f); }
.land-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; position: relative; }
.land-step { text-align: center; }
.land-st-art { display: grid; place-items: center; width: 150px; height: 150px; margin: 0 auto 14px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #3a2a8f, #1a1150 70%); border: 2px solid #ffffff22; box-shadow: 0 0 0 10px #ffffff08; transition: box-shadow .7s, border-color .7s; }
.land-step.lit .land-st-art { border-color: #eaff8f; box-shadow: 0 0 0 10px #eaff8f14, 0 0 54px #eaff8f55; }
.land-st-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--star); color: var(--ink); font-weight: 700; margin-bottom: 8px; box-shadow: 0 3px 0 var(--star-d); }
.land-step b { display: block; font-size: 23px; color: #fff; margin-bottom: 6px; }
.land-step p { margin: 0 auto; max-width: 21em; font-size: 17px; line-height: 1.55; color: #ffffffc0; }
.land-st-map { position: relative; display: inline-block; }
.land-st-stars { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.land-st-stars .st { color: var(--star); filter: drop-shadow(0 0 6px #ffd23f88); }
.land-st-clock { color: #eaff8f; display: grid; filter: drop-shadow(0 0 12px #eaff8f66); }

/* the five worlds: tabs, and a stage where one world turns into the next */
.land-wgrid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 44px; align-items: center; }
.land-wtabs { display: flex; gap: 8px; margin: 26px 0 14px; }
.land-wt { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 2px solid #ffffff22; background: #ffffff0d; color: #fff; border-radius: 20px; padding: 8px 4px; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background .25s, border-color .25s, color .25s; }
.land-wt span { display: block; height: 56px; transition: transform .3s; }
.land-wt:hover span { transform: translateY(-4px) rotate(-5deg); }
.land-wt.on { background: var(--star); border-color: var(--star); color: var(--ink); box-shadow: 0 5px 0 var(--star-d); }
.land-wsay { color: #eaff8f; font-size: 18px; line-height: 1.5; margin: 6px 0 0; }
.land-wfeat { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.land-wfeat li { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 1.5; color: #ffffffd0; text-align: start; }
.land-wfeat b { color: #fff; }
.land-wf-ic { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: #ffffff14; color: var(--star); }
.land-winfo { min-height: 8.6em; }
.land-wfact { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; padding: 10px 14px; border-radius: 16px; background: #ffffff12; border: 1px solid #ffffff24; font-size: 16px; line-height: 1.5; color: #ffffffd8; text-align: start; }
.land-wfact > svg { flex: none; margin-top: 2px; color: var(--star); } .land-wfact b { color: #eaff8f; }
.land-wstage { position: relative; aspect-ratio: 1.3; max-height: 470px; width: 100%; justify-self: center; border-radius: 36px; overflow: hidden; border: 2px solid #ffffff26; box-shadow: 0 30px 60px -24px #000d; }
.land-wl { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(1.06); transition: opacity .8s, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.land-wl.on { opacity: 1; transform: none; }
.land-wl-place { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); }
.land-wl-place > svg { width: 290px; height: 290px; }
.land-wl-pal { position: relative; transform: translateY(16%); filter: drop-shadow(0 16px 18px #0007); }
.land-wl.on .land-wl-pal { animation: land-popin .8s cubic-bezier(.3, 1.5, .5, 1) .15s both; }
@keyframes land-popin { from { transform: translateY(40%) scale(.6); opacity: 0; } to { transform: translateY(16%) scale(1); opacity: 1; } }
.land-w-space { background: radial-gradient(1.6px 1.6px at 24px 36px, #fff 55%, transparent 60%) 0 0 / 120px 120px, radial-gradient(500px 340px at 80% 0%, #4b2bb5, transparent 70%), linear-gradient(180deg, #1e1457, #120b38); }
.land-w-animals { background: radial-gradient(700px 300px at 50% 108%, #e8963c, #b8682a99 35%, transparent 75%), linear-gradient(180deg, #0a2119, #0f2e23 45%, #1d3a24 75%, #4a3a1c); }
.land-w-science { background: linear-gradient(#ffffffb3 2px, transparent 2px) 0 0 / 44px 44px, linear-gradient(90deg, #ffffffb3 2px, transparent 2px) 0 0 / 44px 44px, radial-gradient(500px 300px at 85% 0%, #c4ecff, transparent 65%), #e3f5f6; }
.land-w-magic { background: radial-gradient(700px 300px at 50% 108%, #f4a07a, #d0688a99 35%, transparent 75%), linear-gradient(180deg, #1f1448, #2f1c63 40%, #4a2677 70%, #6a3384); }
.land-w-studio { background: radial-gradient(circle at 14px 14px, #f6d3a6 2.2px, transparent 2.8px) 0 0 / 40px 40px, radial-gradient(500px 300px at 90% 0%, #ffd6e4, transparent 62%), linear-gradient(180deg, #fff4e3, #ffe9cc); }

/* for parents: a light band with the portal drawn as an example; bars and numbers fill when it enters the screen */
.land-band { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: center; background: var(--paper); color: var(--ink); border-radius: 40px; padding: 54px 50px; box-shadow: 0 30px 80px -30px #000c; }
.land-band::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; top: -200px; right: -160px; background: radial-gradient(circle, #ffd23f50, transparent 70%); pointer-events: none; }
.land-band h2 { color: var(--ink); }
.land-band .land-lead { color: #57516f; }
.land-band .land-eye { background: #5b3bd112; border-color: #5b3bd130; color: #5b3bd1; }
.land-band .land-eye i { background: var(--star); box-shadow: 0 0 10px 3px #ffd23f99; }
.land-pts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.land-pts li { display: flex; gap: 10px; align-items: flex-start; font-size: 18px; line-height: 1.5; }
.land-pts .ic { flex: none; margin-top: 2px; color: #fff; background: var(--ok); border-radius: 50%; padding: 3px; width: 24px; height: 24px; }
.land-mock { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 16px; box-shadow: 0 24px 50px -24px #1b163866; }
.land-mock-top { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 12px; }
.land-mock-top b { display: inline-flex; gap: 8px; align-items: center; font-size: 19px; }
.land-mock-top span { background: #efe8ff; color: #5b3bd1; border-radius: 10px; padding: 2px 10px; font-size: 14px; font-weight: 600; }
.land-mock-box { background: #fbf7ee; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.land-mock-box h3 { margin: 0 0 8px; font-size: 15px; color: #6b6585; font-weight: 600; }
.land-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.land-bars li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 3em; align-items: center; gap: 10px; font-size: 15px; }
.land-bars i { height: 12px; border-radius: 8px; background: #ece6da; position: relative; overflow: hidden; }
.land-bars i::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 0; border-radius: 8px; background: linear-gradient(270deg, #8b6cff, #5b3bd1); transition: width 1.1s cubic-bezier(.2, .7, .2, 1) var(--d); }
.land-mock.in .land-bars i::after { width: var(--v); }
.land-bars li.weak span { font-weight: 700; color: #c4521a; }
.land-bars li.weak i::after { background: linear-gradient(270deg, #ffb36b, #f0773a); }
.land-bars b { font-variant-numeric: tabular-nums; }
.land-mock-row { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 10px; margin-top: 10px; }
.land-weak { background: #fff3e6; border-color: #ffd7b0; }
.land-weak p { margin: 0 0 8px; font-size: 17px; }
.land-mock-btn { display: inline-block; background: var(--star); box-shadow: 0 3px 0 var(--star-d); border-radius: 10px; padding: 4px 12px; font-weight: 700; font-size: 14px; animation: land-pulse 2.4s ease-in-out infinite; }
@keyframes land-pulse { 50% { transform: scale(1.07); } }
.land-sims { display: flex; align-items: flex-end; gap: 10px; height: 70px; padding-top: 18px; }
.land-sims i { flex: 1; height: 0; position: relative; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #2fd6b5, #17a88c); transition: height 1s cubic-bezier(.2, .7, .2, 1) var(--d); }
.land-mock.in .land-sims i { height: var(--h); }
.land-sims b { position: absolute; top: -19px; left: 0; right: 0; text-align: center; font-size: 13px; }
.land-timer { margin: 6px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 15px; } .land-timer b { font-size: 28px; } .land-timer .ic { color: #5b3bd1; }
.land-timer-s { display: block; margin-top: 4px; font-size: 13px; color: #6b6585; }
.land-mock-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.land-mock-tiles div { background: #f4efff; border-radius: 14px; padding: 8px 6px; text-align: center; }
.land-mock-tiles b { display: block; font-size: 20px; line-height: 1.25; color: #3b2a8f; font-variant-numeric: tabular-nums; white-space: nowrap; }
.land-mock-tiles small { display: block; font-size: 12.5px; line-height: 1.3; color: #6b6585; }
.land-mock-row.land-mock-two { grid-template-columns: 1.6fr 1fr; }
.land-retest { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 0; }
.land-retest span { display: grid; text-align: center; font-size: 13px; color: #6b6585; } .land-retest b { font-size: 24px; line-height: 1.2; color: #c4521a; }
.land-retest .up b { color: #10734b; } .land-retest i { display: grid; color: #9a93b5; } .land-retest i svg { transform: rotate(90deg); }
.land-tip p { margin: 0; font-size: 14px; line-height: 1.5; }
.land-pts b { font-weight: 700; }

/* the calm approach */
.land-calm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.land-cc { background: linear-gradient(170deg, #ffffff14, #ffffff06); border: 1px solid #ffffff22; border-radius: 26px; padding: 26px 24px; }
.land-cc.in { transition: opacity .75s, transform .3s, border-color .3s; }
.land-cc.in:hover { transform: translateY(-5px); border-color: #eaff8f66; }
.land-cc-ic { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: #eaff8f1f; color: #eaff8f; margin-bottom: 14px; box-shadow: 0 0 24px #eaff8f22; }
.land-cc b { display: block; font-size: 22px; color: #fff; margin-bottom: 6px; } .land-cc p { margin: 0; color: #ffffffc0; font-size: 17px; line-height: 1.6; }

/* this year's dates: an axis that fills up to today, and three milestones */
.land-line { position: relative; padding-top: 34px; }
.land-axis { position: relative; height: 6px; border-radius: 6px; background: #ffffff1c; }
.land-axis > i { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 0; border-radius: 6px; background: linear-gradient(270deg, #ffd23f, #eaff8f); transition: width 1.6s cubic-bezier(.2, .7, .2, 1) .3s; }
.land-axis.in > i { width: var(--now); }
.land-now { position: absolute; top: 50%; inset-inline-start: var(--x); transform: translate(50%, -50%); z-index: 2; }
.land-now i { display: block; width: 18px; height: 18px; border-radius: 50%; background: #eaff8f; animation: land-ping 2s ease-out infinite; }
@keyframes land-ping { 0% { box-shadow: 0 0 0 0 #eaff8f99, 0 0 18px #eaff8f; } 100% { box-shadow: 0 0 0 16px #eaff8f00, 0 0 18px #eaff8f; } }
.land-now b { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); background: #eaff8f; color: var(--ink); border-radius: 10px; padding: 2px 10px; font-size: 14px; white-space: nowrap; }
.land-line ol { list-style: none; margin: -16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.land-line li { text-align: center; padding: 0 12px; }
.land-dot { display: block; width: 26px; height: 26px; margin: 0 auto 14px; border-radius: 50%; background: #1a1150; border: 5px solid var(--star); box-shadow: 0 0 18px #ffd23f66; position: relative; z-index: 1; }
.land-dd { display: block; font-size: 26px; color: var(--star); }
.land-dt { display: block; font-size: 20px; color: #fff; font-weight: 600; margin: 2px 0 6px; }
.land-line small { display: block; color: #ffffffa8; font-size: 15px; line-height: 1.55; }
.land-src { text-align: center; color: #ffffff99; font-size: 15px; margin: 34px 0 0; } .land-src a { color: var(--sky); }

/* parents' questions */
.land-faq { display: grid; gap: 12px; }
.land-faq details { background: #ffffff0d; border: 1px solid #ffffff1f; border-radius: 20px; padding: 0 22px; }
.land-faq details.in { transition: opacity .75s, transform .75s, background .3s, border-color .3s; }
.land-faq details[open] { background: #ffffff16; border-color: #eaff8f55; }
.land-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; font-size: 20px; font-weight: 600; color: #fff; }
.land-faq summary::-webkit-details-marker { display: none; }
.land-faq summary .ic { flex: none; color: #eaff8f; transition: transform .3s; }
.land-faq details[open] summary .ic { transform: rotate(180deg); }
.land-faq details p { margin: 0 0 20px; color: #ffffffcc; font-size: 18px; line-height: 1.65; animation: land-up .45s ease both; }

/* the closing call, the floating button, the buy window */
.land-final { text-align: center; padding-bottom: 40px; }
.land-final::before { content: ""; position: absolute; left: 50%; top: 10%; width: 1000px; height: 560px; transform: translateX(-50%); z-index: -1; pointer-events: none; background: radial-gradient(closest-side, #ffd23f2a, transparent); }
.land-fpals { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin-bottom: 6px; }
.land-fp { animation: land-bob 3.2s ease-in-out var(--d) infinite; filter: drop-shadow(0 10px 12px #0007); }
.land-fp:nth-child(2), .land-fp:nth-child(4) { margin-bottom: 18px; } .land-fp:nth-child(3) { margin-bottom: 30px; }
.land-final h2 { font-size: 50px; }
.land-final .land-go { justify-content: center; margin-top: 26px; }
.land-float { position: fixed; z-index: 15; bottom: 18px; left: 18px; transform: translateY(150%); opacity: 0; transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.land-float.on { transform: none; opacity: 1; }
.land-float .btn { box-shadow: 0 5px 0 var(--star-d), 0 12px 30px #0009; font-size: 19px; padding: 11px 22px; }
/* a visitor in the free trial gets "לרכישה" beside "חזרה למפה" (the parent's note of 18.11.2026) */
.land-float { display: flex; gap: 12px; } .land-float .btn { white-space: nowrap; } .land-float .btn.ghost { box-shadow: 0 5px 0 #d8cfbd, 0 12px 30px #0009; }
@media (max-width: 480px) { .land-float { gap: 8px; } .land-float .btn { font-size: 17px; padding: 10px 16px; } }
.land-dlg { width: min(520px, 94vw); text-align: center; }
.land-dlg h2 { color: var(--ink); } /* the page's white headings must not reach the light window */
.land-dlg p { font-size: 18px; line-height: 1.6; }

/* the trailer in the hero (it took the place of the live sample, which moved under the five parts) */
.land-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.land-vdemo { max-width: 660px; }
.land-vdev.on, .land-vdev.on:hover { transform: none; }
.land-vid { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #0b0726; }
.land-vid video { display: block; width: 100%; height: 100%; object-fit: cover; }
.land-play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0 12px 5%; border: 0; border-radius: 0; background: linear-gradient(180deg, transparent 52%, #0b072699); color: #fff; font: inherit; cursor: pointer; }
.land-vid.go .land-play { display: none; }
.land-play-p { display: inline-flex; align-items: center; gap: 12px; padding: 7px; padding-inline: 8px 22px; border-radius: 99px; background: #1b1638e6; border: 2px solid #ffd23f; box-shadow: 0 10px 26px #0009; transition: transform .2s, box-shadow .2s; }
.land-play:hover .land-play-p, .land-play:focus-visible .land-play-p { transform: translateY(-2px) scale(1.04); box-shadow: 0 0 0 6px #ffd23f40, 0 10px 26px #0009; }
.land-play-i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #ffd23f; color: #1b1638; }
.land-play-i svg { margin-left: 4px; }
.land-play-t { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.land-play-t b { font-size: 20px; }
.land-play-t small { font-size: 14px; color: #ffffffc8; }
.land-play-2, .land-vid.again .land-play-1 { display: none; }
.land-vid.again .land-play-2 { display: inline; }

/* the live sample question, under the five parts: what to do beside it, the tablet on the other side */
/* the tablet is wide (the parent's note of 18.11.2026: at 580px its question was drawn at 860px and shrunk to 61%, and the
   explanation, the answers and the strip looked piled on each other): up to 800px, and never taller than the screen under the bar
   (16 / 10.4 is the screen's own shape) */
.land-tryq { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 800px); gap: 30px 48px; align-items: center; margin-top: 70px; }
.land-tryq .land-demo { justify-self: center; max-width: min(800px, calc((100vh - var(--top-h) - 80px) * 1.54)); }
.land-try-h { font-size: 30px; line-height: 1.25; color: #fff; margin: 0 0 8px; }
.land-tryq .land-try-say { text-align: start; font-size: 18px; margin: 0 0 18px; }
.land-tryq .land-parts { flex-direction: column; align-items: flex-start; }
.land-tryq .land-peek { bottom: -18px; }
@media (max-width: 860px) {
  .land-tryq { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin-top: 48px; text-align: center; }
  .land-tryt { display: contents; }
  .land-try-h { font-size: 26px; } .land-tryq .land-try-say { text-align: center; margin-bottom: 16px; }
  .land-tryq .land-demo { order: 1; margin-bottom: 18px; }
  .land-tryq .land-parts { order: 2; flex-direction: row; align-items: center; }
  .land-tryq .land-peek { bottom: -14px; }
  .land-play-p { gap: 8px; padding: 4px; padding-inline: 5px 14px; } .land-play-i { width: 38px; height: 38px; } .land-play-i svg { width: 20px; height: 20px; }
  .land-play-t b { font-size: 16px; } .land-play-t small { font-size: 12px; }
}

/* short computer screens (1366x625): the hero still shows whole */
@media (max-height: 720px) and (min-width: 861px) {
  .land-hero { padding: 8px 28px 72px; min-height: calc(100vh - var(--top-h) - 1px); }
  .land-say h1 { font-size: 46px; margin-top: 12px; } .land-sub { font-size: 19px; margin-bottom: 20px; }
  .land-demo { max-width: 490px; } .land-try-say { margin: 10px 0 6px; }
}
@media (max-width: 1080px) {
  .land-test { grid-template-columns: minmax(0, 1fr); } .land-clock { order: -1; }
  .land-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .land-band, .land-wgrid { grid-template-columns: minmax(0, 1fr); }
  .land-wtext { text-align: center; } .land-wtabs { justify-content: center; } .land-wfeat, .land-winfo { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 860px) {
  .land-winfo { min-height: 10.2em; }
  .land-hero { grid-template-columns: minmax(0, 1fr); text-align: center; min-height: 0; padding: 22px 16px 110px; }
  .land-say h1 { font-size: 38px; } .land-sub { margin-inline: auto; } .land-go { justify-content: center; }
  .land-dev { transform: none; } .land-peek { left: -12px; bottom: 96px; transform: scale(.7); transform-origin: bottom left; }
  .land-screen { aspect-ratio: 1 / 1; }
  .land h2, .land-final h2 { font-size: 32px; } .land-lead { font-size: 18px; } .land-sec { padding: 56px 0; } .land-wrap { padding: 0 16px; }
  .land-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .land-trail { display: none; } .land-steps ol { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .land-calm { grid-template-columns: minmax(0, 1fr); }
  .land-band { padding: 32px 18px; border-radius: 28px; } .land-mock-row, .land-mock-row.land-mock-two { grid-template-columns: minmax(0, 1fr); }
  .land-mock-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .land-bars li { grid-template-columns: 8.5em minmax(0, 1fr) 2.6em; font-size: 14px; }
  .land-axis { display: none; } .land-line { padding-top: 0; } .land-line ol { grid-template-columns: minmax(0, 1fr); gap: 26px; margin: 0; }
  .land-float { left: 50%; transform: translate(-50%, 150%); } .land-float.on { transform: translate(-50%, 0); }
  .land-fp svg { width: 64px; height: auto; }
}
@media (max-width: 480px) {
  .land-say h1 { font-size: 32px; } .land-sub { font-size: 18px; } .land-go .btn.go { font-size: 20px; padding: 12px 22px; }
  .land-strip { grid-template-columns: minmax(0, 1fr); } .land-wt { min-width: 0; flex: 1 1 28%; }
  .land-faq summary { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .land .rv, .land-in { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .land-bob, .land-fp, .land-eye i, .land-glow::after, .btn.land-try::after, .land-cue, .land-mock-btn, .land-now i, .land-wl.on .land-wl-pal { animation: none !important; }
  .land-dev, .land-dev:hover { transform: none; }
}

/* the free trial (trial.js): locked nodes, the trial line on the map, the end screen and its window */
.node.trial-locked, .hs-anim .node.hs-n.hs-in.trial-locked { opacity: .5; filter: saturate(.35); }
.node.trial-locked .rk { display: none; }
.trial-lk { position: absolute; top: -6px; inset-inline-end: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 2px 6px #0006; pointer-events: none; }
.top .seg button.trial-locked { opacity: .5; }
.trial-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; }
.trial-note .ic { color: var(--star-d); flex: none; }
main.trial-end { padding: 12px 16px 30px; display: grid; justify-items: center; }
.trial-card { width: 100%; max-width: 980px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 22px 30px; align-items: center; background: var(--paper); color: var(--ink); border-radius: 32px; padding: 18px 32px; box-shadow: 0 30px 60px -30px #000c; }
.trial-say { text-align: center; }
.trial-pal { display: grid; justify-items: center; }
.trial-card h1 { margin: 4px 0 6px; font-size: 34px; }
.trial-did { font-size: 18px; line-height: 1.55; margin: 0 0 14px; }
.trial-go-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.trial-more { background: #fbf7ee; border: 1px solid var(--line); border-radius: 22px; padding: 16px 20px; }
.trial-more h2 { font-size: 18px; margin: 0 0 10px; color: #6b6585; }
.trial-more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 17px; line-height: 1.45; }
.trial-more li { display: flex; gap: 10px; align-items: flex-start; }
.trial-more .ic { flex: none; color: #fff; background: var(--ok); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; }
.trial-code-row { display: grid; justify-items: center; gap: 6px; }
.trial-code-row label { font-size: 16px; color: #57516f; }
.trial-code-in { width: 8.5em; text-align: center; font-size: 26px; letter-spacing: .3em; padding: 6px 10px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); font-variant-numeric: tabular-nums; }
.trial-code-in:focus { outline: 3px solid var(--star); outline-offset: 1px; }
.trial-msg { min-height: 1.4em; margin: 0; font-size: 15px; color: #57516f; } .trial-msg.bad { color: #b3261e; font-weight: 600; }
.trial-dlg h2 { color: var(--ink); display: flex; align-items: center; gap: 8px; }
.trial-dlg p { font-size: 17px; line-height: 1.55; }
.land-dlg .trial-code-row { margin: 4px 0 10px; }
@media (max-width: 860px) { .trial-card { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; } .trial-card h1 { font-size: 30px; } }

/* ---------- v30 interface fixes (review of v29, findings 6 to 20) ---------- */
/* streak: the run of right answers shows from 2 on; below that its place stays empty, so the progress line does not move */
.combo:not(.on) { visibility: hidden; }
/* the focus moved to a question or a mock test page after it is drawn: no frame around the whole block */
.ptitle:focus, .page:focus { outline: none; }
/* touch screens: a highlight drawn by hover stays on the option under the finger after the next question is drawn; only a real
   pointer that hovers gets it (and no grey tap flash) */
button { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .opt:not([disabled]):hover { border-color: var(--line); transform: none; }
  .node:hover .num, .btn:hover { transform: none; }
  .strat-x:hover { border-color: var(--line); color: inherit; }
}
/* ask-dlg: the app's question window (ui.js App.ui.ask), the look of the trial window, narrower */
.ask-dlg { width: min(520px, 94vw); text-align: center; }
.ask-dlg p { margin: 6px 0 14px; }
.ask-dlg .next-row { justify-content: center; }
/* the mock tests: every option is a button (keyboard and screen readers); it looks as before */
.page button.popt { width: 100%; background: none; border: 0; color: inherit; text-align: start; }
.sb-ob { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; border-radius: 6px; }
.sb-tile .sb-ob { flex-direction: column; flex: none; gap: 6px; }
@media (hover: hover) { .sb-live .sb-opt:hover, .sb-live .sb-tile:hover { background: #f1f1f1; } }
.sb-live .sb-opt, .sb-live .sb-tile { border-radius: 6px; }
/* the opening pages of the mock test on screen: "הבא" / "התחל את חלק" stays at the bottom of the screen while the page scrolls */
.sb-live .sb-go { position: sticky; bottom: 0; z-index: 3; margin-top: 18px; padding: 14px 0 16px; background: linear-gradient(#ffffff00, #fff 34%); }
/* the five parts on the mock test's first screen, as a short list */
.sb-parts { list-style: none; counter-reset: sbp; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 4px 0 12px; padding: 0; }
.sb-parts li { counter-increment: sbp; display: grid; align-content: center; text-align: center; background: #f4ecdb; border: 2px solid #e6d9bd; border-radius: 14px; padding: 6px 6px; line-height: 1.3; }
.sb-parts li b::before { content: counter(sbp) ". "; }
.sb-parts li span { font-size: 15px; color: #6a6485; }
@media (max-width: 860px) { .sb-parts { grid-template-columns: minmax(0, 1fr); gap: 5px; } .sb-parts li { display: flex; justify-content: space-between; text-align: start; padding: 4px 12px; } }
/* parent portal: the level header in one line; a field that was not saved is marked */
.par-nowrap { white-space: nowrap; }
.par-dlg input[aria-invalid="true"], .par-set input[aria-invalid="true"] { border: 2px solid #c93a2b; background: #fff0ee; }
.par-err:empty { display: none; }
/* touch widths: the three small links get a tap area of 44px; the negative margin keeps the layout as it was */
@media (max-width: 860px), (pointer: coarse) {
  .site-foot button, .site-foot a, .trial-note .link, .sb-flag { display: inline-flex; align-items: center; min-height: 44px; padding-block: 11px; margin-block: -11px; }
}
/* phone, during a question: the top bar is one row (home, the logo, the tools, the parent portal; the stage switch and the
   counters wait for the map), and the company line does not sit on the hint row. Computer and tablet sizes are not touched. */
@media (max-width: 600px) {
  .top:has(+ main.play) { flex-wrap: nowrap; gap: 6px; padding: 4px 8px; --logo-k: .05; }
  .top:has(+ main.play) .seg, .top:has(+ main.play) .chips { display: none; }
  .top:has(+ main.play) .top-start { order: 0; }
  .top:has(+ main.play) .logo-h { order: 1; flex: 1 1 auto; justify-content: center; min-width: 0; }
  .top:has(+ main.play) .top-end { order: 2; gap: 6px; }
  .top:has(+ main.play) .bar-tray { padding: 2px; gap: 2px; }
  .top:has(+ main.play) .bar-tray .tool { padding: 4px 6px; }
  .top:has(+ main.play) .tool.top-parent { padding: 5px 9px; }
  #app:has(main.play) > .site-foot-corner { display: none; }
}/* the trailer's wait (landing.js vidPlay): from the press until the film plays, the same button with a turning ring in place of the
   arrow and the line "הסרטון נטען"; the button does not react to the pointer meanwhile */
.land-play-w { display: none; }
.land-vid.wait .land-play-n { display: none; } .land-vid.wait .land-play-w { display: inline; }
.land-vid.wait .land-play { cursor: progress; }
.land-vid.wait .land-play-i svg { display: none; }
.land-vid.wait .land-play-i::after { content: ""; width: 24px; height: 24px; border-radius: 50%; border: 3px solid #1b163840; border-top-color: #1b1638; animation: land-spin .8s linear infinite; }
@keyframes land-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .land-vid.wait .land-play-i::after { animation-duration: 2.4s; } }/* fb-side and fb-quiet (ui.js answer(), the parent's decision 22): the explanation beside the figure after an answer on a landscape
   screen 700px wide and up; on a phone the answers neither chosen nor right step back to a compact line */
.qbody.fb-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 40%); gap: 6px 18px; align-items: center; }
.qbody.fb-side > .qfig { grid-column: 1; grid-row: 1; }
.qbody.fb-side > .qfb { grid-column: 2; grid-row: 1; margin: 12px 0 0; }
.qbody.fb-side > .opts { grid-column: 1 / -1; grid-row: 2; }
li.fb-quiet .opt { padding-block: 3px; font-size: 16px; opacity: .55; border-bottom-width: 3px; }
li.fb-quiet .opt .lt { width: 26px; height: 26px; font-size: 15px; border-radius: 9px; }
li.fb-quiet .opt .ob .ot { font-size: 16px; }/* the tablet after an answer (landing.js reveal, the parent's decision of 17.11.2026): the app's slim strip at the foot of the
   tablet, in the space kept free under the question (FB_STRIP, 56px), so it never covers an answer: the verdict and "המשך"
   (the companion peeks beside it); the explanation inside the card as in the app */
.land-fb { left: 8px; right: 8px; bottom: 6px; transform: translateY(14px); justify-content: center; white-space: normal; border-radius: 12px; padding: 3px 12px; min-height: 40px; box-sizing: border-box; font-size: 15px; line-height: 1.25; box-shadow: 0 4px 12px #0006; }
.land-fb.on { transform: none; }
.land-fb.strip { justify-content: space-between; border-top: 4px solid var(--ok); }
.land-fb.strip.no { border-top-color: var(--no); }
.land-fb.strip b { flex: 1; text-align: start; font-size: 16px; }
.land-fb.strip { padding-inline-end: 62px; } /* the button stays clear of the companion that peeks over the tablet's corner */
.land-qcard .qfb { margin-top: 10px; font-size: 24px; line-height: 1.35; border-inline-start: 6px solid var(--ok); }
.land-qcard .qbody.land-fb-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 44%); gap: 8px 18px; align-items: center; }
.land-qcard .qbody.land-fb-side > .opts { grid-column: 1; grid-row: 1; } .land-qcard .qbody.land-fb-side > .qfb { grid-column: 2; grid-row: 1; margin: 18px 0 0; }
.land-qcard .qfb.no { border-inline-start-color: var(--no); }

/* wide-card (the parent's note of 17.11.2026: on a computer the question card looked cramped and the rule hard to read): on a
   landscape computer screen the question card grows with the screen and keeps 180px beside it for the companion, from 940px
   (1300px wide) to 1240px (1600px wide and up); the feedback strip and the companion follow its edges, and the explanation beside
   the figure gets a larger font and more air. The figure takes the new room by itself (fitQ still keeps everything on screen). */
@media (min-width: 1100px) and (orientation: landscape) {
  :root { --play-w: clamp(940px, calc(100vw - 360px), 1240px); }
  .play:not(.reading) { max-width: var(--play-w); }
  .sheet { padding-inline: max(16px, calc((100vw - var(--play-w)) / 2)); }
  .q-pal { left: calc((100vw - var(--play-w)) / 2 - 172px); }
  #qcard .qbody.fb-side > .qfb { font-size: 20px; line-height: 1.55; padding: 12px 16px; }
  /* the figure caps grow with the card (940px card: number figure 560px, a row 640px, a grid 320px, a carpet 540px) */
  #qcard .numfig { max-width: calc(var(--play-w) * .6); } #qcard .figrow { max-width: calc(var(--play-w) * .68); }
  #qcard .figgrid { max-width: calc(var(--play-w) * .34); } #qcard .carpet { max-width: calc(var(--play-w) * .575); }
}
/* fb-side: the four short answers under the figure and the explanation keep their full row (a grid item with auto side margins
   shrank them to the width of their number) */
.qbody.fb-side > .opts.four { width: 100%; }
/* fb-wide (ui.js answer()): a tall explanation beside a narrow figure takes the wider column */
.qbody.fb-side.fb-wide { grid-template-columns: minmax(0, 1fr) minmax(240px, 60%); }

/* fb-read: the explanation as a worked example (ui.js fbRead). The lead line carries the rule, the calculation rows sit under it
   with their math in white chips that are easy to check against the figure, and the closing line gives the answer in a green
   badge, the colour of the right answer's tile. The box keeps its verdict tint and side line. */
#qcard .qfb { display: grid; gap: 5px; padding: 12px 16px; border-radius: 18px; }
.qfb-lead { display: flex; align-items: flex-start; gap: 10px; } .qfb-lead.rule { font-weight: 600; }
.qfb-key { color: #10734b; } .qfb.no .qfb-key { color: #a24a14; }
.qfb-bulb { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff3c9; color: #c98a00; display: grid; place-items: center; margin-top: 1px; }
.qfb-step, .qfb-line, .qfb-end { color: #3d3760; }
.qfb-step { font-size: .92em; }
/* under a rule with its bulb, the calculations and the conclusion (with its dotted line) start where the rule's text starts */
.qfb:has(.qfb-bulb) :is(.qfb-step, .qfb-line, .qfb-end) { margin-inline-start: 42px; }
.qfb-step .ltr, .qfb-end .ltr { background: #fff; border-radius: 9px; padding: 0 8px; margin: 1px 0; font-weight: 700; color: var(--ink); box-shadow: 0 1px 0 #00000014; }
.qfb-end { margin-top: 3px; padding-top: 7px; border-top: 2px dotted #00000026; font-weight: 600; }
.qfb-end > b, .qfb-end .ltr b { display: inline-block; min-width: 1.7em; text-align: center; border-radius: 9px; padding: 0 7px; background: var(--ok); color: #fff; }
.qfb-end .ltr:has(b) { background: none; box-shadow: none; padding: 0; }
/* ===== v31 parent portal (work copy): a "what now" panel in the head, jump buttons to the eight boxes, meters instead of
   bare percentages, columns for the mock tests and the last 14 days, tables that turn into labelled cards on a phone ===== */
:root { --pv-night: #1f1557; --pv-glow: #eaff8f; --pv-sand: #f4ecdb; --pv-edge: #e6d9bd; --pv-track: #ece3cf; --pv-muted: #5e5878;
  --pv-lo: #c93a2b; --pv-lo-f: #e0533f; --pv-mid: #8a5a00; --pv-mid-f: #f0a92e; --pv-hi: #13784f; --pv-hi-f: #2bb57f; --pv-col: #9d8fe0; --pv-col-now: #3b2a8f; }
.par-box { scroll-margin-top: calc(var(--top-h) + 14px); }
.par-box:focus { outline: none; } .par-box:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; }
.par-head { padding: 16px 22px 14px; }
.par-head h2 { font-size: 32px; margin-bottom: 14px; }
.par-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; max-width: 1180px; margin: 0 auto; align-items: stretch; }
.par-now { position: relative; overflow: hidden; background: var(--pv-night); color: #fff8e6; border-radius: 22px; padding: 16px 22px 18px; text-align: right;
  background-image: radial-gradient(circle at 8% 18%, #eaff8f38 0, #eaff8f12 16%, transparent 34%), radial-gradient(circle at 96% 110%, #59bdff2e 0, transparent 40%); }
.par-now h3 { margin: 0 0 8px; text-align: center; font-size: 20px; color: var(--pv-glow); font-weight: 600; }
.par-now-say { font-size: 22px; line-height: 1.45; margin: 0 0 6px; }
.par-now-say b { color: #fff; font-weight: 700; }
.par-now-sim { font-size: 17px; color: #ddd6ff; margin: 0 0 4px; } .par-now-sim b { color: #fff; }
.par-now-go { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.par-hero .par-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; margin: 0; }
.par-hero .par-tile { align-content: center; padding: 10px 12px; background: var(--pv-sand); }
.par-hero .par-tile b { font-size: 28px; } .par-hero .par-tile small { color: var(--pv-muted); }
.par-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px auto 0; max-width: 1180px; }
.par-jump button { display: inline-flex; align-items: center; gap: 7px; border: 2px solid var(--pv-edge); background: #fff; color: var(--ink); border-radius: 999px; padding: 5px 13px 5px 10px; font-size: 16px; font-weight: 600; cursor: pointer; }
.par-jump button:hover { border-color: var(--star-d); background: #fff8df; }
.par-jump span { width: 24px; height: 24px; border-radius: 50%; background: var(--star); display: inline-grid; place-items: center; font-size: 14px; font-weight: 700; }
.par-head-go { margin: 12px 0 0; }
/* tables */
.par-box table.par-t { font-size: 15px; }
.par-t td { vertical-align: middle; }
.par-t th { color: #3d3760; font-weight: 600; }
.par-t .par-bar { margin-top: 5px; max-width: 120px; }
.par-acc { font-weight: 700; } .par-acc.lo { color: var(--pv-lo); } .par-acc.mid { color: var(--pv-mid); } .par-acc.hi { color: var(--pv-hi); }
.par-chapters tr.par-sub td { color: #4d4768; }
/* meters */
.par-bar { display: block; position: relative; height: 8px; border-radius: 6px; background: var(--pv-track); overflow: hidden; }
.par-bar i { display: block; height: 100%; border-radius: inherit; background: #8f86b8; }
.par-bar.lo i { background: var(--pv-lo-f); } .par-bar.mid i { background: var(--pv-mid-f); } .par-bar.hi i { background: var(--pv-hi-f); }
.par-bar-80::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 80%; width: 2px; background: #1b1638a6; }
/* box 3: one row per topic */
.par-verdict { text-align: right; }
.par-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.par-tp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "name meter" "go meter"; gap: 6px 18px; align-items: center; background: #fff; border: 2px solid var(--line); border-inline-start: 6px solid var(--pv-hi-f); border-radius: 14px; padding: 9px 12px; }
.par-tp.lo { border-inline-start-color: var(--pv-lo-f); } .par-tp.mid { border-inline-start-color: var(--pv-mid-f); }
.par-tp-name b { display: block; font-size: 17px; } .par-tp-name small { color: var(--pv-muted); font-size: 14px; }
.par-tp-m { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: center; }
.par-tp-m small { grid-column: 1 / -1; color: var(--pv-muted); font-size: 14px; }
.par-tp-pct { font-size: 22px; font-weight: 700; min-width: 2.8em; }
.par-tp.lo .par-tp-pct { color: var(--pv-lo); } .par-tp.mid .par-tp-pct { color: var(--pv-mid); } .par-tp.hi .par-tp-pct { color: var(--pv-hi); }
.par-tp .par-bar { height: 12px; }
.par-tp-name { grid-area: name; } .par-tp-m { grid-area: meter; } .par-tp-go { grid-area: go; } .par-tp-go .btn { white-space: nowrap; }
.par-ok { color: var(--pv-hi); font-weight: 600; font-size: 15px; white-space: nowrap; }
.par-rest { font-size: 15px; color: var(--pv-muted); margin: 10px 0 0; }
/* box 4: the two steps of the plan, then the tips */
.par-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.par-step { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 10px 14px 8px; display: flex; flex-direction: column; }
.par-step h4 { margin: 2px 0 6px !important; }
.par-step p { margin: 4px 0; font-size: 16px; }
.par-step-go { margin-top: auto !important; padding-top: 8px; text-align: center; }
.par-share { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 16px; }
.par-share b { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 9px; background: var(--pv-sand); margin-inline-end: 6px; }
.par-tips { list-style: none; padding: 0; max-width: none; display: grid; gap: 8px; }
.par-tips li { background: #fff; border: 2px solid var(--line); border-inline-start: 5px solid var(--mint); border-radius: 12px; padding: 8px 12px; margin: 0; font-size: 16px; line-height: 1.5; }
.par-tips b { display: block; margin-bottom: 2px; }
/* boxes 5 and 6: columns */
.par-lead { font-size: 17px; margin: 2px 0 10px; text-align: right; }
.par-none { font-size: 16px; color: var(--pv-muted); background: var(--pv-sand); border-radius: 12px; padding: 10px 14px; margin: 4px 0 10px; text-align: right; }
.par-cols { display: flex; align-items: stretch; gap: 6px; height: 160px; margin: 4px 0 2px; }
.par-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.par-col b { font-size: 14px; line-height: 18px; min-height: 18px; }
.par-col span { flex: 1; width: 100%; max-width: 52px; display: flex; align-items: flex-end; background: #f6efe0; border-radius: 8px 8px 0 0; }
.par-col i { display: block; width: 100%; background: var(--pv-col); border-radius: 8px 8px 0 0; }
.par-col.now i { background: var(--pv-col-now); } .par-col.now b, .par-col.now small { font-weight: 700; color: var(--ink); }
.par-col small { font-size: 13px; color: var(--pv-muted); line-height: 20px; white-space: nowrap; border-top: 2px solid var(--pv-edge); width: 100%; text-align: center; padding-top: 2px; }
.par-cols-sim { height: 170px; } .par-cols-sim .par-col span { max-width: 64px; }
.par-dir { margin: 2px 0 6px !important; text-align: right; }
.par-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.par-parts li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 15px; }
.par-parts .par-bar { height: 10px; } .par-parts b { white-space: nowrap; }
.par-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.par-stat { background: var(--pv-sand); border-radius: 12px; padding: 8px 8px; display: grid; align-content: start; text-align: center; }
.par-stat b { font-size: 22px; } .par-stat small { font-size: 13px; color: var(--pv-muted); line-height: 1.3; } .par-stat em { font-style: normal; font-size: 13px; color: var(--pv-muted); }
/* box 7: the timer's fields as four small cards, today's minutes as a meter */
.lim-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 8px; }
.lim-f { display: grid; justify-items: center; gap: 4px; background: var(--pv-sand); border-radius: 14px; padding: 8px 6px; font-weight: 400 !important; }
.lim-f span { font-weight: 600; font-size: 16px; } .lim-f small { font-size: 13px; color: var(--pv-muted); }
.lim-f input { width: 84px; font-size: 20px; font-weight: 600; background: #fff; }
.lim-meter { display: block; height: 10px; border-radius: 6px; background: var(--pv-track); margin: 8px auto 2px; max-width: 420px; overflow: hidden; }
.lim-meter i { display: block; height: 100%; background: var(--mint); border-radius: inherit; }
/* phone and narrow windows */
@media (max-width: 900px) { .par-hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .par-steps { grid-template-columns: minmax(0, 1fr); } .lim-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .par-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .par-head { padding: 12px 12px; } .par-head h2 { font-size: 26px; }
  .par-now { padding: 14px 14px 16px; } .par-now-say { font-size: 19px; }
  .par-hero .par-tile b { font-size: 24px; }
  .par-jump { gap: 6px; } .par-jump button { font-size: 14px; padding: 4px 10px 4px 8px; }
  .par-box { overflow-x: visible; }
  .par-t, .par-t tbody, .par-t tr, .par-t td { display: block; width: 100%; }
  .par-t thead { display: none; }
  .par-t tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 4px 12px; border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; background: #fff; }
  .par-box table.grid.par-t td, .par-box .par-chapters tr.par-ch td { border: 0; padding: 2px 0; }
  .par-t td::before { content: attr(data-l); display: block; font-size: 12px; color: var(--pv-muted); }
  .par-t td:first-child { grid-column: 1 / -1; font-size: 16px; } .par-t td:first-child::before { display: none; }
  .par-t td:empty { display: none; }
  .par-chapters tr.par-sub { margin-inline-start: 14px; width: auto; background: var(--paper); }
  .par-chapters tr.par-sub td:first-child { padding-inline-start: 0; }
  .par-tp { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "meter" "go"; }
  .par-tp-go { text-align: center; }
  .par-parts li { grid-template-columns: minmax(0, 1fr) auto; } .par-parts .par-bar { grid-column: 1 / -1; grid-row: 2; }
  .par-cols-days .par-col:nth-child(even):not(.now) small { color: transparent; }
  .par-col small { font-size: 11px; }
}
.par-datetab a { display: inline-block; padding-block: 4px; }
/* v31 box 1: one card per kind of cohort, its three steps in order (parent.js datesTable) */
.par-dates2 { display: grid; gap: 12px; }
.par-dcard { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 10px 14px 8px; }
.par-dcard h4 { margin: 0 0 6px !important; font-size: 18px; }
.par-dwho { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.par-dwho li { background: var(--pv-sand); border-radius: 14px; padding: 3px 12px; font-size: 15px; }
.par-dsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: dstep; }
.par-dstep { counter-increment: dstep; position: relative; display: grid; align-content: start; gap: 2px; background: var(--paper); border-radius: 12px; padding: 8px 10px 8px 10px; border-top: 4px solid var(--mint); }
.par-dstep small { font-size: 14px; color: var(--pv-muted); } .par-dstep small::before { content: counter(dstep) ". "; font-weight: 700; color: var(--ink); }
.par-dstep b { font-size: 17px; }
.par-dstep.none { border-top-color: var(--pv-edge); } .par-dstep.none b { font-weight: 400; color: var(--pv-muted); }
.par-dlink { margin: 8px 0 2px; text-align: center; font-size: 15px; } .par-dlink a { display: inline-block; padding-block: 4px; }
@media (max-width: 640px) { .par-dsteps { grid-template-columns: minmax(0, 1fr); } }
/* v31 box 6: the day columns have no track (their height is relative to the busiest day); a day without practice is a low stub */
.par-cols-days .par-col span { background: none; }
.par-cols-days .par-col.zero i { block-size: 4px !important; background: var(--pv-edge); border-radius: 3px; }
/* v31: the number of a column sits right above its bar */
.par-col span { flex-direction: column; justify-content: flex-end; align-items: stretch; padding-top: 20px; box-sizing: border-box; }
.par-col span b { display: block; text-align: center; font-size: 14px; line-height: 18px; min-height: 18px; }
.par-col i { flex: none; }

/* ===== v31 landing portal sample (18.11.2026): the sample beside "שליטה מלאה" in the language of the v31 parent portal: the dark
   "what now" panel with the four numbers beside it, accuracy bars in red, orange and green with a mark at 80%, the mock tests as
   columns with the last one in the portal's deep purple. Same words and numbers as before; uses the portal's --pv-* tokens. */
.land-mock-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; margin-bottom: 10px; }
.land-mock-now { position: relative; overflow: hidden; background: var(--pv-night); color: #fff8e6; border-radius: 18px; padding: 12px 16px 14px; text-align: start;
  background-image: radial-gradient(circle at 12% 18%, #eaff8f2a 0, transparent 34%), radial-gradient(340px 160px at 50% -20%, #6a45ff40, transparent 70%); }
.land-mock-now h3 { margin: 0 0 6px; text-align: center; font-size: 15px; font-weight: 600; color: var(--pv-glow); }
.land-mock-now p { margin: 0 0 4px; font-size: 16px; line-height: 1.4; } .land-mock-now p b { color: #fff; }
.land-mock-now small { display: block; margin-bottom: 10px; font-size: 13px; color: #ddd6ff; } .land-mock-now small b { color: #fff; }
.land-mock-hero .land-mock-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.land-mock-hero .land-mock-tiles div { display: grid; align-content: center; background: var(--pv-sand); border: 2px solid var(--pv-edge); }
.land-mock-hero .land-mock-tiles b { color: var(--ink); } .land-mock-hero .land-mock-tiles small { color: var(--pv-muted); }
.land-bars i::before { content: ""; position: absolute; z-index: 1; inset-block: 0; inset-inline-start: 80%; width: 2px; background: #1b1638a6; }
.land-bars li.lo i::after { background: var(--pv-lo-f); } .land-bars li.mid i::after { background: var(--pv-mid-f); } .land-bars li.hi i::after { background: var(--pv-hi-f); }
.land-bars li.lo b { color: var(--pv-lo); } .land-bars li.mid b { color: var(--pv-mid); } .land-bars li.hi b { color: var(--pv-hi); }
.land-bars li.weak span { color: var(--pv-lo); }
.land-sims i { background: var(--pv-col); } .land-sims i.now { background: var(--pv-col-now); }
@media (max-width: 640px) { .land-mock-hero { grid-template-columns: minmax(0, 1fr); } }
.land-mock-now .land-mock-btn { color: var(--ink); }
/* v35: the way back to a mission that a refresh cut (ui.js keepOpen) */
.bubble .btn.resume { display: block; margin: 10px auto 2px; max-width: 100%; white-space: normal; line-height: 1.3; }
/* v35, buttons a finger can hit (review 18.11.2026: the world switch was 24px high on a phone, the cross-out button 34px; 44px is the
   usual least for touch). The world chips grow; the cross-out button keeps its look and gets a wider press area around it. */
@media (max-width: 560px), (pointer: coarse) {
  .hero .skin-sw { gap: 4px; } .hero .skin-sw button { min-height: 44px; padding-inline: 12px; }
  .strat-x::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
}
/* v35, the phone's top bar in one row (review 18.11.2026: three rows took 145 of 812px on every screen). The parent's order: the map
   button, the logo, the stars and the streak, the menu button; the rest of the bar is in the menu (ui.js topMenu). Wider screens keep
   the full bar and never show the menu. */
.top-burger, .top-menu { display: none; }
@media (max-width: 560px) {
  :root { --top-h: 56px; }
  #app .top:not(.top-solo) { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; padding: 4px 10px; --logo-k: .05; min-height: 56px; }
  #app .top:not(.top-solo) .top-start { order: 0; flex: none; } #app .top:not(.top-solo) .logo-h { order: 1; flex: 1 1 auto; justify-content: center; min-width: 0; }
  #app .top:not(.top-solo) .top-end { order: 2; flex: none; flex-wrap: nowrap; gap: 6px; }
  #app .top .top-start > .top-land, #app .top .top-start > .top-about, #app .top .top-start > .seg, #app .top .top-end > .bar-tray, #app .top .top-end > .top-parent, #app .top .logo-h-txt { display: none; }
  #app .top .top-start > .top-home:not(.top-land), #app .top .top-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; }
  #app .top .top-end .chips { gap: 4px; flex-wrap: nowrap; order: 0; } #app .top .top-burger { order: 9; }
  #app .top .top-menu:not([hidden]) { display: grid; gap: 6px; position: absolute; top: calc(100% + 6px); inset-inline-end: 8px; z-index: 30; width: min(250px, calc(100vw - 16px)); padding: 10px;
    border-radius: 18px; background: #1b1450; border: 2px solid #ffffff33; box-shadow: 0 14px 34px #000a; }
  #app .top .top-menu .tool { display: flex; justify-content: flex-start; gap: 10px; width: 100%; min-height: 44px; padding: 6px 12px; font-size: 17px; border-color: #ffffff26; color: #fff; }
  #app .top .top-menu .tool span { display: inline; }
  #app .top .top-menu .tool.on { background: #2fd6b533; border-color: #2fd6b5; }
  #app .top .top-menu .tool.top-parent { background: var(--star); color: var(--ink); border-color: transparent; box-shadow: 0 3px 0 var(--star-d); }
  #app .top .top-menu .seg { order: 0; justify-self: stretch; } #app .top .top-menu .seg button { flex: 1; min-height: 44px; } #app .top .top-menu .seg button small { display: block; }
}
