/* The onboarding storyboard in the site: the cube in the section (js/place.js), the cube chip and
   the cube menu (js/cubemenu.js), the getting-started pages (js/start.js) and their parts in the
   sections (js/start-app.js). Loads after css/app.css and uses its tokens. */

/* ===== The cube in the section ===== */
/* The player is not at the top of the page. main.main is a grid: the beginner home and the section
   in view on the left, the cube slot (js/place.js) on the right (body[data-cube="side"]); across the
   top for a scramble section ("wide"); gone for Reference ("none"). */
.main{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:var(--gap);align-items:start}
.main>*{grid-column:1}
.main>#cubeSlot{grid-column:2;grid-row:1/span 2;position:sticky;top:calc(var(--toph,58px) + 12px);max-height:calc(100vh - var(--toph,58px) - 24px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.cubeslot{min-width:0;display:flex;flex-direction:column;gap:var(--gap)}
body[data-cube="side"] .player{grid-template-columns:1fr}
body[data-cube="side"] .player .cubebox svg{max-height:300px}
body[data-cube="wide"] .main,body[data-cube="none"] .main{grid-template-columns:minmax(0,1fr)}
body[data-cube="wide"] .main>#cubeSlot{grid-column:1;grid-row:auto;position:static;max-height:none;overflow:visible}
body[data-cube="none"] .main>#cubeSlot{display:none}
body:not([data-cube="wide"]) #seedBar{display:none}
body:not([data-cube="side"]) #scrPill{display:none}
.scrpill{display:flex;align-items:center;gap:8px;font-size:14px;padding:6px 6px 6px 12px;border:1px solid var(--line);border-radius:999px;background:var(--panel)}
.scrpill b{font-family:var(--mono);font-weight:500;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* A beginner section shows the player only in the player view (js/beghome.js). */
body[data-kind="beg"]:not([data-begview="player"]) .main{grid-template-columns:minmax(0,1fr)}
body[data-kind="beg"]:not([data-begview="player"]) .main>#cubeSlot{display:none}
/* The seed bar loses Scan, Paint and Smart cube: the cube chip in the top bar has them. */
#seedBar #camBtn,#seedBar #paintBtn,#seedBar #smartBtn{display:none}
.planfold>summary{cursor:pointer;list-style:none;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.planfold>summary::-webkit-details-marker{display:none}
.planfold>summary h2{display:inline;margin:0}
.planfold>summary h2::after{content:" ▸";color:var(--muted)}
.planfold[open]>summary h2::after{content:" ▾"}
@media (max-width:1000px){.main{grid-template-columns:minmax(0,1fr) 280px}}
@media (max-width:760px){.main{grid-template-columns:minmax(0,1fr)}.main>#cubeSlot{grid-column:1;grid-row:auto;position:static;max-height:none;overflow:visible}
  body[data-cube="side"] .player{grid-template-columns:minmax(0,1fr)}}

/* ===== The cube chip and the cube menu ===== */
.cubechip{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:500;border-radius:999px;padding:4px 10px 4px 8px;background:var(--panel)}
.cdot{display:inline-block;width:8px;height:8px;border-radius:999px;background:var(--muted);flex:none}
.cdot[data-src="screen"],.cubechip[data-src="screen"] .cdot{background:var(--sticker-B)}
.cdot[data-src="mine"],.cubechip[data-src="mine"] .cdot{background:var(--sticker-W);box-shadow:inset 0 0 0 1px var(--muted)}
.cdot[data-src="smart"],.cubechip[data-src="smart"] .cdot{background:var(--good)}
.cube-pop{width:min(440px,calc(100vw - 24px));display:flex;flex-direction:column;gap:12px}
.cube-pop.hidden{display:none}
.cube-pop .cpop-head{display:flex;align-items:baseline;gap:10px}.cube-pop .cpop-head h3{margin:0}
.csrcs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.csrc{display:flex;align-items:center;justify-content:center;gap:7px;font-size:14px}
.csrc.on{background:var(--text);color:var(--bg);border-color:var(--text)}
.cstat{display:flex;gap:12px;align-items:center;background:var(--panel2);border-radius:12px;padding:10px}
.cstat .cpic{width:84px;flex:none;background:var(--cube-bg);border-radius:10px}.cstat .cpic svg{display:block;width:100%;height:auto}
.cstat>div:last-child{display:flex;flex-direction:column;gap:3px;font-size:14px;line-height:1.4}
.cacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.cact{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:9px 11px;border-radius:10px}
.cact span{font-size:12px;color:var(--muted);font-weight:400}
.cact.main{background:var(--primary);color:var(--primary-ink);border-color:transparent}.cact.main span{color:inherit;opacity:.75}
.cfoot{font-size:13px;line-height:1.45}

/* ===== Getting started ===== */
body.starting .page{display:none}
body.starting header.top>*:not(h1){display:none!important}
.start{max-width:1180px;margin:0 auto;padding:12px 18px 40px;min-height:calc(100vh - var(--toph,58px))}
.start.hidden{display:none}
.st-bar{display:flex;align-items:center;gap:12px;min-height:40px;margin-bottom:8px;flex-wrap:wrap}
.st-crumb{font-size:14px;color:var(--muted)}
.st-link{background:none;border:0;padding:4px 2px;color:var(--link);font-weight:500;text-decoration:underline;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent);align-self:flex-start}
.st-link:hover{color:var(--text)}
.st-center{display:flex;flex-direction:column;align-items:center;gap:24px;padding:24px 0;max-width:1080px;margin:0 auto}
.st-center.st-left{align-items:stretch}
.st-head{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.st-left .st-head{align-items:flex-start;text-align:left}
.start h1{margin:0;font-size:clamp(26px,3.4vw,40px);font-weight:700;letter-spacing:-.02em;line-height:1.15}
.start h1:focus{outline:none}
.st-head p{margin:0;font-size:17px;color:var(--muted)}
.st-small{font-size:13px;margin:0}
.st-lbl{font-family:var(--mono);font-size:11px;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}
.st-goes{margin-top:auto;font-size:13px;color:var(--muted);font-family:var(--mono)}
.st-levels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;width:100%}
.st-level{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:190px;text-align:left;padding:18px 16px;border-radius:16px;background:var(--panel);font-weight:400;line-height:1.4}
.st-level b{font-size:18px;line-height:1.25}.st-level .muted{font-size:14px}
.st-level:hover,.st-card:hover{border-color:var(--muted)}
.lvbars{display:inline-flex;gap:4px}
/* The level chip (js/levelmenu.js): the bars, and the short name on the desktop. A place to come back
   to puts a small accent dot on it. */
.lvchip{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:500;border-radius:999px;padding:4px 10px 4px 9px;background:var(--panel);position:relative}
.lvchip .lvbar{width:9px;height:9px;border-radius:3px}.lvchip .lvbars{gap:3px}
.lvchip.resume::after{content:"";position:absolute;top:1px;right:1px;width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px var(--bg)}
.level-pop .lvresume{width:100%}
.lvlist{display:flex;flex-direction:column;gap:6px}
.lvrow{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;row-gap:1px;align-items:center;text-align:left;padding:8px 11px;border-radius:10px}
.lvrow .lvbars{grid-row:1/span 2}.lvrow .lvbar{width:9px;height:9px;border-radius:3px}.lvrow .lvbars{gap:3px}
.lvrow .muted{font-size:12px;font-weight:400;font-family:var(--mono)}
.lvrow.on{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--panel))}
/* The landing card: where a track ended, above the section, in the pages' own look. Quiet: the
   section under it has the one primary action. */
.landing{display:flex;align-items:center;gap:18px;padding-top:12px;padding-bottom:12px}
.landing-text{flex:1;display:flex;flex-direction:column;gap:3px}.landing h2{margin:0;font-size:20px}.landing p{margin:0;color:var(--muted)}
@media (max-width:760px){.landing{flex-direction:column;align-items:stretch}.lvchip{padding:6px 8px}.lvchip .lvcaret{display:none}}
/* A narrow phone: the level chip takes the room of the beginner top bar's name; the mark stays. */
@media (max-width:430px){body[data-kind="beg"] .top h1{font-size:0;gap:0}}
.lvbar{width:14px;height:14px;border-radius:4px;background:var(--sec);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}.lvbar.off{background:var(--panel3)}
.mlevel .lvbar{width:10px;height:10px;border-radius:3px}
.st-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;width:100%}
.st-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:18px;border-radius:16px;background:var(--panel);text-align:left;font-weight:400;line-height:1.45}
.st-card b{font-size:19px}
.st-card[aria-pressed="true"]{border:2px solid var(--accent);padding:17px;background:color-mix(in srgb,var(--accent) 10%,var(--panel));
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent),0 0 18px 2px color-mix(in srgb,var(--accent) 40%,transparent)}
.st-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:center;max-width:1080px;margin:0 auto;padding:12px 0}
.st-split.st-wide{grid-template-columns:minmax(0,1fr) 320px;align-items:start}
.st-text{display:flex;flex-direction:column;gap:14px}.st-text p{margin:0;line-height:1.5}
.st-side{display:flex;flex-direction:column;gap:12px}
.st-pic{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.st-cube{width:min(100%,380px);background:var(--cube-bg);border-radius:18px;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.st-cube:active{cursor:grabbing}.st-cube svg{display:block;width:100%;height:auto}
.screencube{--lift-glow:var(--accent)}
/* The pieces page: the callout under the picture once the edge is found, its arrow to the cube. */
.st-cubewrap{width:min(100%,380px);display:flex;flex-direction:column;align-items:center;gap:14px}
.st-callout{position:relative;width:min(100%,340px);display:flex;flex-direction:column;align-items:center;gap:6px;
  padding:12px 14px;border-radius:14px;background:var(--panel);border:2px solid var(--accent);box-shadow:var(--shadow);line-height:1.4;animation:stCallout .32s cubic-bezier(.2,1.4,.4,1) both}
.st-callout>b{font-size:18px}.st-callout>span{font-size:14px}
.st-callout::before{content:"";position:absolute;top:-9px;left:50%;width:14px;height:14px;background:var(--panel);border-left:2px solid var(--accent);border-top:2px solid var(--accent);transform:translateX(-50%) rotate(45deg)}
@keyframes stCallout{from{opacity:0;transform:translateY(-10px) scale(.9)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.st-callout{animation:none}}
/* The keys page: the keyboard parts with a keyboard, a line about the buttons on a touch screen. */
.st-touch{display:none}
@media (hover:none){.st-kbd{display:none!important}.st-touch{display:block}}
.st-pad{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;width:min(100%,380px)}
.st-keys{display:grid;grid-template-columns:repeat(3,72px);gap:6px}
.st-keys>i{display:block}
.st-key{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 0;border-radius:10px}
.st-key b{font-family:var(--mono);font-size:20px}.st-key span{font-size:11px;color:var(--muted)}
.st-rules{margin:0;padding-left:18px;line-height:1.7}
.st-faces{margin:-6px 0 0;padding-left:18px;line-height:1.6}
.st-keysets{display:flex;flex-wrap:wrap;gap:12px 28px}.st-keyset{display:flex;flex-direction:column;gap:6px}
.st-foot{display:flex;align-items:center;gap:12px;flex-wrap:wrap;width:100%}
.st-seg{display:inline-flex;border:1px solid var(--line);border-radius:var(--rb);overflow:hidden;background:var(--panel2);flex-wrap:wrap;align-self:flex-start}
.st-seg>button{border:0;border-radius:0;background:transparent;padding:6px 12px;font-size:14px;display:inline-flex;align-items:center;gap:6px}
.st-seg>button+button{border-left:1px solid var(--line)}
.st-seg>button[aria-pressed="true"]{background:var(--text);color:var(--bg)}
.st-dots{display:inline-flex;gap:5px}.st-dots i{width:22px;height:6px;border-radius:3px;background:var(--panel3)}.st-dots i.on{background:var(--accent)}
.st-check{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);cursor:pointer;line-height:1.45}
.st-check input{margin-top:4px;width:18px;height:18px}
.st-hold{display:block;width:100%;text-align:left;padding:12px 11px;border-radius:12px;line-height:1.45;font-weight:inherit}
.st-hold:hover{border-color:var(--accent)}
.st-hl{display:inline-block;margin-inline:3px;border-radius:4px;transition:transform .48s ease-in-out,background-color .48s,box-shadow .48s,color .48s}
.st-hl.on{transform:translateY(-3px) scale(1.03);color:var(--text);background:color-mix(in srgb,var(--accent) 26%,transparent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 26%,transparent),0 0 18px 3px color-mix(in srgb,var(--accent) 60%,transparent);transition-duration:.42s}
@media (prefers-reduced-motion:reduce){.st-hl,.st-hl.on{transition:none}.st-hl.on{transform:none}}
/* The fingertip pads on the hold page's picture (stHandsShow): a pad in the text color with a rim in the panel color (dark on light, light on dark), the
   group being shown with an accent ring. */
.st-pad{fill:color-mix(in srgb,var(--text) 84%,transparent);stroke:var(--panel);stroke-width:2.5;stroke-linejoin:round}
.st-pad.now{stroke:var(--accent);stroke-width:3;filter:drop-shadow(0 0 5px color-mix(in srgb,var(--accent) 75%,transparent))}
/* The opposite colors: three pairs of swatches, a two-way arrow between each. */
.st-opp{display:flex;flex-direction:column;gap:8px;line-height:1.45}
.st-pairs{display:flex;flex-wrap:wrap;gap:8px}
.st-pair{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:var(--panel2);border:1px solid var(--line);font-size:14px;font-weight:600}
.st-pair svg{width:24px;height:12px;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.st-sw{display:inline-flex;align-items:center;gap:5px}
.st-sw i{width:14px;height:14px;border-radius:4px;background:var(--sec);box-shadow:inset 0 0 0 1px rgba(0,0,0,.25)}
.st-kinds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.st-kind{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border-radius:12px;text-align:left}
.st-kind[aria-pressed="true"]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 18%,var(--panel2))}
.st-box{display:flex;flex-direction:column;gap:8px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--panel);line-height:1.45}
.st-box.st-find button,.st-box.st-say button{align-self:flex-start}
/* Meet the cube: Show me a turn, its log, and the two hints under the picture (stDemoTurn). */
.st-demo{display:flex;flex-direction:column;gap:10px}
.st-demorow{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.st-showturn{display:inline-flex;align-items:center;gap:10px;padding:12px 22px 12px 18px;border-radius:999px;font-size:16px;font-weight:600;border:1px solid var(--accent);background:color-mix(in srgb,var(--accent) 16%,var(--panel2));color:var(--text);box-shadow:0 0 0 0 transparent;transition:transform .2s,box-shadow .2s,background-color .2s}
.st-showturn:hover:not(:disabled){transform:translateY(-1px);background:color-mix(in srgb,var(--accent) 26%,var(--panel2));box-shadow:0 8px 22px -8px color-mix(in srgb,var(--accent) 80%,transparent)}
.st-showturn:disabled{opacity:.55;cursor:default}
.st-showturn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.st-showturn.spin svg{animation:stSpin .55s ease-out}
@keyframes stSpin{from{transform:rotate(-200deg)}to{transform:none}}
.st-demolog{display:flex;flex-direction:column;gap:7px;min-height:52px}
/* Before the first turn the log and Reset keep their room, so the first turn moves nothing. */
.st-demolog.off,.st-link.off{visibility:hidden}
.st-tchips{display:flex;flex-wrap:wrap;gap:5px}
.st-tmore{align-self:center;font-size:13px;color:var(--muted);padding-right:2px}
.st-tchip{display:inline-flex;align-items:center;gap:4px;padding:2px 7px 2px 5px;border-radius:7px;background:var(--panel2);border:1px solid var(--line);font-size:14px;line-height:1.3}
.st-tchip i{width:12px;height:12px;border-radius:3px;background:var(--sec);box-shadow:inset 0 0 0 1px rgba(0,0,0,.25)}
.st-tchip.new{border-color:var(--accent)}
.st-hints{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--text)}
.st-hints span{display:inline-flex;align-items:center;gap:8px;padding:5px 12px;border-radius:999px;background:var(--panel2);border:1px solid var(--line)}
.st-hints svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:var(--accent)}
@media (prefers-reduced-motion:reduce){.st-showturn,.st-showturn:hover{transition:none;transform:none}.st-showturn.spin svg{animation:none}}
/* The moves: U D F B R L over U′ … L′. A click lights the move, then the way back (stMoveShow). */
.st-moves{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;max-width:420px}
.st-moves .st-move{font-family:var(--mono);font-size:18px;font-weight:600;min-width:0;padding:10px 0;transition:transform .48s ease-in-out,background-color .48s,box-shadow .48s,border-color .48s}
.st-move.prime{color:var(--mod)}
.st-move.on{transform:translateY(-3px) scale(1.06);border-color:var(--accent);background:color-mix(in srgb,var(--accent) 26%,var(--panel2));box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 26%,transparent),0 0 18px 3px color-mix(in srgb,var(--accent) 60%,transparent);transition-duration:.42s}
@media (prefers-reduced-motion:reduce){.st-moves .st-move{transition:none}.st-move.on{transform:none}}
.st-tick{width:56px;height:56px;border-radius:999px;background:var(--good);color:var(--bg);display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:700}
.st-donelist{display:flex;gap:18px;flex-wrap:wrap;justify-content:center;color:var(--good)}
.st-steps{display:flex;flex-wrap:wrap;gap:6px}
.st-step{font-size:13px;padding:4px 9px;border-radius:999px;border:1px solid var(--line);color:var(--muted)}.st-step.on{border-color:var(--good);color:var(--good)}
.st-rows{display:flex;flex-direction:column;gap:6px}
.st-row{display:grid;grid-template-columns:22px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.st-row .st-seg{align-self:center}
.st-st{font-size:12px;font-family:var(--mono)}.st-st.s0{color:var(--muted)}.st-st.s1{color:var(--warn)}.st-st.s2{color:var(--good)}
.st-big{font-size:22px}
.st-strip{display:flex;gap:3px}.st-strip i{flex:1;height:8px;border-radius:3px;background:var(--panel3)}.st-strip i.s1{background:var(--warn)}.st-strip i.s2{background:var(--good)}
.st-srcs{display:flex;flex-direction:column;gap:6px}
.st-bridge{display:flex;flex-direction:column;gap:10px}
.st-brow{display:grid;grid-template-columns:150px 20px minmax(0,1fr);gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.st-pair{font-size:14px;color:var(--muted);line-height:1.4}
.st-stage{display:flex;flex-direction:column;gap:3px}.st-stage b .sec-sq{margin-right:8px}
.st-path{display:flex;align-items:center;gap:8px;font-size:14px;padding:4px 0}.st-path .spacer{flex:1}.st-path.on{font-weight:600}
.st-cases{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.st-case{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px;border-radius:12px;font-size:13px}
.st-case svg{width:72px;height:72px}
.st-case span{font-size:11px;color:var(--muted)}
.st-case.learning{border-color:var(--warn)}.st-case.learning span{color:var(--warn)}
.st-case.finished{border-color:var(--good)}.st-case.finished span{color:var(--good)}
.st-quiz{display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px;align-items:start;margin-top:10px}
.st-qpic{display:flex;flex-direction:column;align-items:center;gap:6px;background:var(--cube-bg);border-radius:16px;padding:10px}
.st-qpic svg{width:100%;height:auto}
.st-qtext{display:flex;flex-direction:column;gap:12px}.start .st-qtext h1{font-size:24px}
.st-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.st-choice{padding:12px;font-size:16px}
.st-choice.right{border-color:var(--good);color:var(--good)}.st-choice.wrong{border-color:var(--warn);color:var(--warn)}
.st-qtimer{font-size:48px;font-weight:700;font-variant-numeric:tabular-nums;padding:6px 18px;align-self:flex-start}
.st-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.st-switch{display:flex;align-items:center;gap:10px;background:none;border:0;padding:4px 0;text-align:left;font-weight:500}
.st-switch i{width:32px;height:18px;border-radius:999px;background:var(--panel3);position:relative;flex:none;transition:background .15s}
.st-switch i::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:999px;background:var(--text);transition:left .15s}
.st-switch[aria-pressed="true"] i{background:var(--good)}.st-switch[aria-pressed="true"] i::after{left:16px;background:#fff}
.start .spacer,.st-foot .spacer,.st-bar .spacer{flex:1}
/* Your first solve (t1-ready): two cards, then the turn-over that comes in the solve. */
.st-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%}
div.st-card{border:1px solid var(--line)}.st-ready .row{flex-wrap:wrap;gap:8px}
.st-ready1{flex-direction:row;align-items:center;gap:28px;max-width:820px;margin:0 auto;padding:24px 28px}
.st-readypic{flex:none}.st-readypic svg{display:block;width:190px;height:auto}
.st-readytext{display:flex;flex-direction:column;gap:10px}.st-readytext h1{margin:0}.st-readytext p{margin:0;font-size:17px}.st-readytext .row{flex-wrap:wrap;gap:10px;margin-top:6px}
@media (max-width:1000px){.st-levels{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.start{padding:8px 12px 32px}.st-levels,.st-three,.st-two,.st-grid2,.st-split,.st-split.st-wide,.st-quiz{grid-template-columns:1fr}
  .st-split>.st-pic{order:-1}.st-split{gap:16px}
  .st-ready1{flex-direction:column;align-items:flex-start;padding:16px}.st-readypic svg{width:110px}.st-level{min-height:0}.st-row{grid-template-columns:22px minmax(0,1fr)}.st-row .st-seg{grid-column:1/-1}.st-row .st-st{grid-column:2}.st-brow{grid-template-columns:1fr}.st-brow>span[aria-hidden]{display:none}}

/* ===== Getting started, in the site ===== */
.mlevel{display:flex;align-items:center;gap:10px;padding:8px 0 12px;border-bottom:1px solid var(--line);margin-bottom:6px;font-size:15px}
.mlevel .spacer{flex:1}
.tag.mnext{background:var(--accent);color:var(--accent-ink);border-color:transparent;font-family:var(--mono);font-size:11px}
.begcube{display:flex;align-items:center;gap:10px;font-size:14px}.begcube span{flex:1}
/* The Learn home (lnHomeHTML in js/learn.js): Up next with the goal, beside the steps. */
.lh{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:var(--gap);align-items:start}
.lh-next{display:flex;flex-direction:column;gap:14px;padding:20px}
.lh-goal{display:flex;gap:18px;align-items:center}
.lh-pic{flex:none;width:168px;background:var(--cube-bg);border-radius:14px}.lh-pic svg{display:block;width:100%;height:auto}
.lh-body{display:flex;flex-direction:column;gap:8px;min-width:0}.lh-body h2{margin:0;font-size:30px;letter-spacing:-.02em}.lh-body p{margin:0;font-size:16px;line-height:1.5}
.lh-next .begcube{background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:10px 14px}
.lh-act{gap:10px;flex-wrap:wrap}
.lh-st{align-self:flex-start;font-size:12px;color:var(--muted);border:1px solid currentColor;border-radius:7px;padding:1px 7px;white-space:nowrap}
.lh-st.learning{color:var(--accent)}.lh-st.finished{color:var(--good)}
.lh-steps{display:flex;flex-direction:column;gap:2px;padding:14px}
.lh-head{display:flex;justify-content:space-between;align-items:baseline;padding:2px 6px 8px}.lh-head .mono{font-size:12px}
.lh-step{display:flex;gap:10px;align-items:center;padding:7px 8px;border-radius:8px;border:1px solid transparent;background:none;text-align:left;font-weight:400}
.lh-step:hover{background:var(--panel2)}.lh-step.cur{background:var(--panel2);border-color:var(--line)}
.lh-step .mono{font-size:12px;width:14px}.lh-name{flex:1;font-size:14px}
/* Solve my cube: the entry, the hold on every part, the hold screen and the part (js/guide.js). */
.gd-entry{display:flex;flex-direction:column;gap:14px;padding:20px}.gd-entryhead h2{margin:0 0 4px}.gd-entryhead p{margin:0}
.gd-entry .gd-now{display:block;font-size:14px}
.gd-hold{display:flex;align-items:center;gap:8px;flex-wrap:wrap;align-self:flex-start;width:fit-content;padding:8px 14px;border-radius:12px;border:2px solid var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--panel));font-size:17px;margin:6px 0}
.gd-holdsq{display:inline-block;width:18px;height:18px;border-radius:5px;background:var(--sec);box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);flex:none}
.gd-holdnow{display:flex;flex-direction:column;gap:12px;padding:24px;border:2px solid var(--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 22%,transparent)}
.gd-holdnow h2{margin:0;font-size:30px;line-height:1.3;letter-spacing:-.01em}.gd-holdnow h2 .gd-holdsq{width:.8em;height:.8em;margin:0 .25em 0 .1em;vertical-align:-.05em}
.gd-holdnow p{margin:0;font-size:16px}
.gd-head>div:first-child{flex:1;min-width:0}
.gd-head .gd-tools{display:flex;flex-direction:column;align-items:flex-end;gap:0;flex:none}
.gd-count{font-size:14px}
.gd-moves .m{cursor:pointer}
.gd-moves .m.fc{position:relative}
.gd-moves .m.fc::after{content:"";position:absolute;left:3px;right:3px;bottom:-7px;height:4px;border-radius:2px;background:var(--face);box-shadow:0 0 0 1px var(--edge,transparent);pointer-events:none}
.gd-moves .m.c0{--face:var(--sticker-W);--edge:var(--sticker-W-edge)}.gd-moves .m.c1{--face:var(--sticker-R)}.gd-moves .m.c2{--face:var(--sticker-G)}
.gd-moves .m.c3{--face:var(--sticker-Y)}.gd-moves .m.c4{--face:var(--sticker-O)}.gd-moves .m.c5{--face:var(--sticker-B)}
.gd-moves .m.done{background:var(--panel2);color:var(--muted)}.gd-moves .m.fc.done::after{background:color-mix(in srgb,var(--face) 55%,transparent)}
.gd-moves .m.cur{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.gd-steps .gd-moves{row-gap:14px;padding-bottom:6px}
/* The color bar hangs 7px under a tile: the boxed algorithm leaves room for it inside its border. */
.gd-moves .trig{padding-bottom:13px}
/* The key in one strip, and Coming up at its right end. */
.gd-row2{display:flex;gap:var(--gap);align-items:stretch}
.gd-key{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;font-size:13px;padding:8px 14px}
.gd-key .lbl{margin-right:2px}.gd-key>span{white-space:nowrap}.gd-key>span.muted{white-space:normal}
.gd-key b.mono{font-weight:600;margin-right:2px}.gd-key b.mod{color:var(--mod)}
.gd-key b.rot{font-style:italic;font-weight:500;border:1.5px dashed var(--muted);border-radius:5px;padding:0 5px}
.gd-row2 .gd-next{flex:none;max-width:42%;justify-content:center;text-align:right;padding:8px 14px}
/* The cube beside the part: the slot, the player and the section give their panels to the page
   grid. The stage bar across the top; row 1 the cube, with the step buttons under it, beside the
   part (or the hold screen); row 2 the key and Coming up. The player's tile list, its label and its
   Key panel go: the part holds the moves. */
body[data-kind="beg"][data-cube="wide"][data-gd] .main{grid-template-columns:minmax(280px,420px) minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto}
body[data-kind="beg"][data-cube="wide"][data-gd] :is(#cubeSlot,#player,#tab-bsolve){display:contents}
body[data-kind="beg"][data-cube="wide"][data-gd] :is(#seedBar,#begBar,#scrPill,.timerpanel,.progresspanel,#keyPanel,.seqhead,#scramble){display:none}
body[data-kind="beg"][data-cube="wide"][data-gd] .gd-barp{grid-column:1/-1;grid-row:1}
body[data-kind="beg"][data-cube="wide"][data-gd] #player>.cubebox{grid-column:1;grid-row:2;align-self:start}
body[data-kind="beg"][data-cube="wide"][data-gd] #player>.cubebox svg#cube{max-height:min(48vh,400px)}
body[data-kind="beg"][data-cube="wide"][data-gd] #player>.seqpanel{grid-column:1;grid-row:3;align-self:start;gap:8px}
body[data-kind="beg"][data-cube="wide"][data-gd] .gd-part{grid-column:2;grid-row:2/span 2;align-self:start}
body[data-kind="beg"][data-cube="wide"][data-gd] .gd-row2{grid-column:1/-1;grid-row:4}
body[data-kind="beg"][data-cube="wide"][data-gd]:is([data-gd="hold"],[data-gd="won"]) #player>.seqpanel{display:none}
body[data-kind="beg"][data-cube="wide"][data-gd="won"] .main{grid-template-columns:minmax(340px,600px) minmax(0,1fr)}
body[data-kind="beg"][data-cube="wide"][data-gd="won"] #player>.cubebox{grid-row:2/span 2}
body[data-kind="beg"][data-cube="wide"][data-gd="won"] #player>.cubebox svg#cube{max-height:min(68vh,580px)}
body[data-kind="beg"][data-cube="wide"][data-gd="won"] .gd-part{align-self:center}
@media (max-width:1000px){body[data-kind="beg"][data-cube="wide"][data-gd] .main{grid-template-columns:minmax(240px,320px) minmax(0,1fr)}body[data-kind="beg"][data-cube="wide"][data-gd] .gd-body{grid-template-columns:1fr}
  body[data-kind="beg"][data-cube="wide"][data-gd="won"] .main{grid-template-columns:minmax(300px,440px) minmax(0,1fr)}}
@media (max-width:760px){body[data-kind="beg"][data-cube="wide"][data-gd] .main{grid-template-columns:minmax(0,1fr);grid-template-rows:none}
  body[data-kind="beg"][data-cube="wide"][data-gd] #player>.cubebox{grid-column:1;grid-row:2}body[data-kind="beg"][data-cube="wide"][data-gd] #player>.seqpanel{grid-column:1;grid-row:3}
  body[data-kind="beg"][data-cube="wide"][data-gd] .gd-part{grid-column:1;grid-row:4}body[data-kind="beg"][data-cube="wide"][data-gd] .gd-row2{grid-column:1;grid-row:5;flex-direction:column}
  .gd-row2 .gd-next{max-width:none;text-align:left}.gd-holdnow h2{font-size:24px}
  .gd-head>div:first-child{flex-basis:100%}.gd-head .gd-tools{flex:1 1 100%;min-width:0;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start}
  .scrub input[type=range]{min-width:0}
  body[data-kind="beg"][data-cube="wide"][data-gd] #player>.cubebox svg#cube{max-height:32vh}
  body[data-kind="beg"][data-cube="wide"][data-gd="won"] #player>.cubebox{grid-row:3}body[data-kind="beg"][data-cube="wide"][data-gd="won"] .gd-part{grid-row:2}
  body[data-kind="beg"][data-cube="wide"][data-gd="won"] #player>.cubebox svg#cube{max-height:52vh}}
.begcfop{display:grid;grid-template-columns:170px minmax(0,1fr);gap:18px;align-items:center}
.begcfop-pic{background:var(--cube-bg);border-radius:14px}.begcfop-pic svg{display:block;width:100%;height:auto}
.begcfop-text{display:flex;flex-direction:column;gap:8px}.begcfop-text h2{margin:0}
.begcfop-next{border:1px solid var(--accent);border-radius:12px;padding:12px 14px}.begcfop-next p{margin:6px 0}
.begcfop-parts{margin:0;padding-left:18px;line-height:1.6}.begcfop-parts b{margin-right:6px}
.crosslesson{display:flex;flex-direction:column;gap:10px}.crosslesson h2{margin:0}.crosslesson p{margin:0;line-height:1.5}.crosslesson>button{align-self:flex-start}
/* The parts of the lesson (one shows at a time), and a box in a part with its label: Find the edges, Check my plan */
.crosslesson .cl-part{display:flex;flex-direction:column;gap:10px}.crosslesson .cl-part[hidden]{display:none}.crosslesson .cl-part>button{align-self:flex-start}
.crosslesson .cl-box{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--rb);background:var(--panel2)}
.llshow{display:flex;flex-direction:column;gap:8px;margin:6px 0 4px}
.llplan{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px;padding:8px 12px;border-radius:10px;background:var(--panel2)}
.llplan>span:nth-child(2){flex:1;min-width:200px}
.llhide{display:none!important}
.weakspots{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:18px}.everymore{display:flex;flex-direction:column;gap:var(--gap)}.everymore .weakspots{grid-template-columns:1fr}.weakspots h3{margin:0 0 6px}.weakspots p{margin:4px 0}
.weaklist{margin:0 0 8px;padding-left:20px}.weaklist li{display:flex;justify-content:space-between;gap:12px;padding:2px 0}
@media (max-width:760px){.lh{grid-template-columns:1fr}.lh-pic{width:96px}.lh-body h2{font-size:22px}.lh-act>button{flex:1}}
@media (max-width:760px){.weakspots,.begcfop{grid-template-columns:1fr}}
/* One look with the getting-started pages: a crumb over each section ("3×3 Beginner · Practice",
   placeCrumb in js/place.js), as the pages have "Getting started · Basics", and the section's first
   heading in the pages' larger scale. A tab with the cube across the top (body[data-cube="wide"]) has
   the seed bar there and no crumb; nor has the guided solve's own grid (body[data-gd]). */
@media (min-width:761px){.tab.on[data-crumb]::before{content:attr(data-crumb);font-size:14px;color:var(--muted);margin:-2px 2px -4px}}
body[data-gd] #tab-bsolve::before,body[data-cube="wide"] .tab::before{content:none!important}
.tab>.panel:first-child>h2,.tab>.panel:first-child>.row>h2{font-size:26px;letter-spacing:-.01em}
.ln-head h2{font-size:30px;margin-top:2px}
