/* The tools and demos of guide-tools.js (Hide & Seek). The map stage is always dark (a game board); the panels
   around it follow the page's theme through rz.css tokens. Academy accent = lime. */
.gt { --hs-mark: #ff3d8b; --hs-win: #d6ff3d; }
.gt .hs-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.gt .hs-btns button { font: 500 11.5px/1 var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; }
.gt .hs-btns button:hover { color: var(--fg); border-color: var(--fg); }

/* the board */
.hs-stagew { min-width: 0; display: flex; justify-content: center; }
.hs-stage { position: relative; width: 100%; max-width: 300px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #0e1014; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px -20px rgba(0, 0, 0, .6); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.hs-plan { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: filter .5s; }
.hs-plan .walls { stroke: #e8e3d8; stroke-width: 4; stroke-linecap: round; }
.hs-plan .f { fill: #3a352d; }
.hs-plan .fl { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.5; }
.hs-plan .fl2 { fill: #4d463b; }
.hs-plan .rug { fill: rgba(255, 255, 255, .04); }
.hs-plan .rl { font: 600 8.5px/1 var(--mono, monospace); letter-spacing: .12em; fill: rgba(255, 255, 255, .3); }
.hs-plan .rl.in { fill: var(--hs-win); opacity: .8; }
.hs-plan .door-in { stroke: var(--hs-win); stroke-width: 4; stroke-dasharray: 5 5; }
.hs-layer { position: absolute; inset: 0; }
.hs-spot { position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0f1013; font: 800 15px/1 var(--display, sans-serif); box-shadow: 0 0 0 2px rgba(15, 16, 19, .9), 0 4px 10px rgba(0, 0, 0, .5); cursor: pointer; z-index: 2; transition: transform .2s, box-shadow .2s, opacity .3s; }
span.hs-spot { cursor: default; }
.hs-spot b { position: relative; z-index: 1; text-box: trim-both cap alphabetic; }
.hs-spot:hover, .hs-spot:focus-visible { transform: scale(1.12); }
.hs-spot[aria-pressed="true"] { box-shadow: 0 0 0 2px #0f1013, 0 0 0 5px var(--hs-win), 0 4px 14px rgba(0, 0, 0, .5); }
.hs-mk { position: absolute; width: 54px; height: 54px; left: -12px; top: -12px; opacity: 0; transform: scale(.3) rotate(-20deg); transition: opacity .15s, transform .35s cubic-bezier(.2, 1.6, .4, 1); pointer-events: none; }
.hs-mk svg { width: 100%; height: 100%; display: block; }
.hs-spot.caught .hs-mk { opacity: .95; transform: scale(1) rotate(0); }
.hs-spot.caught { background: #fff; }
.hs-spot.seen { animation: hs-seen .9s; }
@keyframes hs-seen { 50% { box-shadow: 0 0 0 2px #0f1013, 0 0 0 7px rgba(46, 75, 255, .9); } }
.hs-spot.lose { opacity: .55; }
.hs-spot.win { box-shadow: 0 0 0 2px #0f1013, 0 0 0 5px var(--hs-win), 0 0 22px 6px rgba(214, 255, 61, .55); animation: hs-win 1.2s ease-in-out infinite alternate; }
@keyframes hs-win { to { transform: scale(1.12); } }
.hs-face { position: absolute; left: var(--x); top: var(--y); width: 34px; height: 34px; margin: -17px 0 0 -17px; z-index: 3; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); pointer-events: none; }
.hs-face svg { width: 100%; height: 100%; display: block; }
.hs-bub { position: absolute; left: var(--x); top: var(--y); transform: translate(-30%, -170%); z-index: 4; padding: 4px 8px; border-radius: 10px; background: #fff; color: #0f1013; font: 800 12px/1 var(--display, sans-serif); animation: hs-pop .3s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes hs-pop { from { transform: translate(-30%, -170%) scale(.3); } }
.hs-over { position: absolute; left: 0; right: 0; z-index: 5; display: none; text-align: center; color: #fff; pointer-events: none; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.hs-intro { top: 36%; }
.hs-intro small { display: block; font: 600 10px/1 var(--mono, monospace); letter-spacing: .2em; text-transform: uppercase; color: var(--hs-win); }
.hs-intro b { display: block; margin: 8px 0; font: 800 24px/1 var(--display, sans-serif); }
.hs-intro span, .hs-cd .hs-pk { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(15, 16, 19, .78); font: 700 11px/1.2 var(--mono, monospace); letter-spacing: .12em; text-transform: uppercase; }
.hs-cd { top: 4%; }
.hs-cd .hs-n { display: block; margin-top: 8px; font: 800 44px/1 var(--display, sans-serif); color: var(--hs-win); }
.hs-n.bp, .hd-n.bp { animation: hs-beep .5s ease-out; }
@keyframes hs-beep { from { transform: scale(1.5); } }
.hs-win { top: 3%; }
.hs-win span { display: block; font: 600 11px/1 var(--mono, monospace); letter-spacing: .2em; text-transform: uppercase; color: var(--hs-win); }
.hs-win b { display: block; margin-top: 6px; font: 800 30px/1 var(--display, sans-serif); }
.hs-stage[data-phase="intro"] .hs-plan, .hs-stage[data-phase="intro"] .hs-layer .hs-spot { filter: blur(5px); }
.hs-stage[data-phase="intro"] .hs-intro, .hs-stage[data-phase="count"] .hs-cd, .hs-stage[data-phase="win"] .hs-win { display: block; animation: hs-in .35s ease-out; }
@keyframes hs-in { from { opacity: 0; transform: translateY(8px); } }

/* layouts */
.hs-round, .hs-board, .hs-plan2 { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(16px, 3vw, 28px); align-items: start; }
.hs-side { min-width: 0; display: grid; gap: 12px; align-content: start; }
.hs-ctl { display: flex; gap: 8px; flex-wrap: wrap; }
.hs-ctl .tbtn[aria-pressed="true"] { background: var(--lime); color: #0f1013; border-color: var(--lime); }
.hs-say { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fg); }
.hs-say .ok { color: var(--fg); background: rgba(214, 255, 61, .3); padding: 0 4px; border-radius: 4px; }
.hs-say .no { color: var(--fg); background: rgba(255, 61, 139, .28); padding: 0 4px; border-radius: 4px; }
.gt .thd .hs-clock { font: 600 13px/1 var(--mono, monospace); color: var(--fg); letter-spacing: .08em; }
.hs-log { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.hs-log li { font-size: 13.5px; color: var(--muted); padding: 5px 9px; border-radius: 8px; background: rgba(var(--ov, 255, 255, 255), .04); animation: hs-in .3s; }
.hs-log li b { font: 600 12px/1 var(--mono, monospace); color: var(--fg); margin-right: 6px; }
.hs-log li.me { background: rgba(255, 61, 139, .16); color: var(--fg); }
.hs-log li.w { background: rgba(214, 255, 61, .2); color: var(--fg); }
.hs-tip { margin: 0; font-size: 12.5px; color: var(--muted); }

/* board checker */
.hs-bg, .hs-bg svg, .hs-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.hs-bstage { cursor: crosshair; }
.hs-spot.drag { cursor: grab; touch-action: none; }
.hs-spot.drag:active { cursor: grabbing; }
.gt.phone .hs-bstage { max-width: 120px; border-radius: 10px; }
.gt.phone .hs-bstage .hs-spot { width: 14px; height: 14px; margin: -7px 0 0 -7px; font-size: 8px; box-shadow: 0 0 0 1px #0f1013; }
.hs-spots { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.hs-spots li { display: grid; grid-template-columns: 28px minmax(0, 1fr) 30px; gap: 8px; align-items: center; }
.hs-no { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--bg); font: 800 13px/1 var(--display, sans-serif); }
.hs-spots input, .hs-r input, .hs-r select, .hs-meta input { width: 100%; min-width: 0; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2, transparent); color: var(--fg); font: 400 14px/1 var(--body, sans-serif); }
.hs-del { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.hs-del:hover { background: rgba(255, 61, 139, .16); color: var(--fg); }
.hs-warn { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.hs-warn li { font-size: 13.5px; line-height: 1.45; padding: 7px 10px 7px 30px; border-radius: 10px; position: relative; background: rgba(255, 61, 139, .12); color: var(--fg); }
.hs-warn li::before { content: "!"; position: absolute; left: 9px; top: 7px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; font: 800 10px/1 var(--display, sans-serif); background: #ff3d8b; color: #0f1013; }
.hs-warn li.ok { background: rgba(214, 255, 61, .16); }
.hs-warn li.ok::before { content: "✓"; background: var(--lime); }

/* planner */
.hs-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.hs-meta label { display: grid; gap: 4px; font: 500 10.5px/1 var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hs-meta input { width: 90px; }
.hs-rows { display: grid; gap: 6px; }
.hs-rh, .hs-r { display: grid; grid-template-columns: 70px 56px 112px minmax(0, 1fr) 30px; gap: 6px; align-items: center; }
.hs-rh span { font: 500 10.5px/1 var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hs-r input.hs-t { font-family: var(--mono, monospace); }
.hs-sv { margin: 0; font-size: 14px; color: var(--muted); }
.hs-sv b { color: var(--fg); font: 800 18px/1 var(--display, sans-serif); margin: 0 6px; }
.hs-sv span { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--lime); color: #0f1013; font: 700 11px/1.2 var(--mono, monospace); letter-spacing: .08em; }
.hs-pstage .hs-route .rt { fill: none; stroke: var(--hs-win); stroke-width: 3; stroke-dasharray: 6 6; opacity: .8; }
.hs-pstage .hs-route .rt-t { font: 600 10px/1 var(--mono, monospace); fill: #fff; paint-order: stroke; stroke: #0e1014; stroke-width: 3px; }
.hs-pstage .hs-spot.win { animation: none; }

/* checklists, diagnostic */
.hs-check { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.hs-check label { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: var(--fg); cursor: pointer; }
.hs-check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--lime); }
.hs-check input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(var(--ov, 255, 255, 255), .35); }
.hs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hs-chip { padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--fg); font: 500 13.5px/1.2 var(--body, sans-serif); cursor: pointer; }
.hs-chip:hover { border-color: var(--fg); }
.hs-chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: #0f1013; }
.hs-fix { padding: 12px 14px; border-radius: 14px; background: rgba(var(--ov, 255, 255, 255), .04); box-shadow: inset 0 0 0 1px var(--line-2); }
.hs-fix p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--fg); }
.hs-go { display: inline-block; margin-top: 8px; font-size: 13.5px; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- demos (inside .demo, always dark) ---------- */
.hd-maps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 460px; margin: 0 auto; }
.hd-m { margin: 0; display: grid; gap: 8px; }
.hd-mw { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; }
.hd-mw svg { width: 100%; height: 100%; display: block; position: absolute; inset: 0; }
.hd-m figcaption { font-size: 13px; color: #c9cdd6; } .hd-m figcaption b { color: #d6ff3d; } .hd-m.bad figcaption b { color: #ff3d8b; }
.hd-maps .tr { fill: none; stroke: #d6ff3d; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; }
.hd-m.bad .tr { stroke: #ff3d8b; stroke-dasharray: 160; stroke-dashoffset: 160; }
.hd-maps.go .tr { transition: stroke-dashoffset 2.2s ease-in-out; stroke-dashoffset: 0; }
.hd-x { position: absolute; left: 50%; top: 70%; transform: translate(-50%, -50%) scale(0); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #ff3d8b; color: #0f1013; font: 800 20px/1 sans-serif; transition: transform .3s cubic-bezier(.2, 1.6, .4, 1); }
.hd-maps.stop .hd-x { transform: translate(-50%, -50%) scale(1); }
.hd-dot { display: none; }

.hd-cd { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 22px; align-items: center; }
.hd-ph { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; }
.hd-ph > svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: filter .4s; }
.hd-nums b { position: absolute; left: var(--x); top: var(--y); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; color: #0f1013; display: grid; place-items: center; font: 800 10px/1 var(--display, sans-serif); transition: filter .4s; }
.hd-in, .hd-pk { position: absolute; left: 0; right: 0; text-align: center; color: #fff; text-shadow: 0 2px 8px #000; opacity: 0; transition: opacity .3s; }
.hd-in { top: 36%; } .hd-in small { display: block; font: 600 8px/1 var(--mono, monospace); letter-spacing: .2em; color: #d6ff3d; text-transform: uppercase; } .hd-in b { display: block; margin: 5px 0; font: 800 16px/1 var(--display, sans-serif); } .hd-in span { font: 700 8px/1 var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; }
.hd-pk { top: 4%; } .hd-pk span { font: 700 8px/1 var(--mono, monospace); letter-spacing: .12em; text-transform: uppercase; } .hd-pk b { display: block; font: 800 30px/1 var(--display, sans-serif); color: #d6ff3d; }
.hd-cd[data-s="intro"] .hd-ph > svg, .hd-cd[data-s="intro"] .hd-nums b { filter: blur(4px); }
.hd-cd[data-s="intro"] .hd-in, .hd-cd[data-s="count"] .hd-pk { opacity: 1; }
.hd-cd .hd-face, .hd-keys .hd-face, .hd-mark .hd-face { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; left: var(--x, 50%); top: var(--y, 104%); transition: left .8s ease-in-out, top .8s ease-in-out; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }
.hd-cd .hd-face svg, .hd-keys .hd-face svg, .hd-mark .hd-face svg { width: 100%; height: 100%; display: block; }
.hd-cd[data-s="go"] .hd-face { --y: 84%; }
.hd-tl { position: relative; display: grid; gap: 8px; min-width: 0; }
.hd-tr { display: grid; grid-template-columns: 64px repeat(5, minmax(0, 1fr)); gap: 3px; align-items: center; }
.hd-lab { font: 500 10px/1 var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; color: #8d93a0; }
.hd-tr i, .hd-tr u { height: 26px; border-radius: 6px; display: grid; place-items: center; font: 700 12px/1 var(--display, sans-serif); font-style: normal; text-decoration: none; background: rgba(255, 255, 255, .06); color: #8d93a0; transition: background .2s, color .2s; }
.hd-tr u { height: 14px; }
.hd-tr i.on { background: #d6ff3d; color: #0f1013; }
.hd-tr u.on { background: #ff3d8b; }

.hd-keys { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 22px; align-items: center; }
.hd-crop { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.hd-crop > svg, .hd-zoom > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hd-keys .hd-face { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.hd-wp { position: absolute; transform: translate(-50%, -50%); color: #d6ff3d; font-size: 11px; text-align: center; pointer-events: none; }
.hd-wp i { font-style: normal; display: block; } .hd-wp small { display: block; font: 600 8.5px/1 var(--mono, monospace); color: #fff; text-shadow: 0 1px 3px #000; margin-top: 2px; white-space: nowrap; }
.hd-kt { display: grid; gap: 10px; min-width: 0; }
.hd-ktr { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; align-items: center; }
.hd-kbar { position: relative; height: 34px; border-radius: 8px; background: rgba(46, 75, 255, .25); }
.hd-d { position: absolute; left: calc(6% + var(--s) * 22%); top: 50%; transform: translate(-50%, -50%); font-style: normal; color: rgba(255, 255, 255, .3); font-size: 14px; transition: color .2s, transform .2s; }
.hd-d.on { color: #d6ff3d; transform: translate(-50%, -50%) scale(1.2); }
.hd-head { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; left: calc(6% + var(--s, 0) * 22%); transition: left .8s ease-in-out; }
.hd-pause { position: absolute; left: calc(6% + 2.5 * 22%); top: -18px; transform: translateX(-50%); font: 600 9px/1 var(--mono, monospace); letter-spacing: .12em; text-transform: uppercase; color: #ff3d8b; opacity: 0; transition: opacity .2s; }
.hd-keys.paused .hd-pause { opacity: 1; }
.hd-kl { margin: 0 0 0 56px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); font-size: 11px; color: #a4a9b4; text-align: center; gap: 2px; }

.hd-mark { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 22px; align-items: center; }
.hd-zoom { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.hd-zoom .hd-sp { width: 40px; height: 40px; margin: -20px 0 0 -20px; font-size: 20px; }
.hd-zoom .hd-sp .hs-mk { width: 72px; height: 72px; left: -16px; top: -16px; }
.hd-zoom .hd-face { width: 36px; height: 36px; margin: -18px 0 0 -18px; --x: 108%; --y: 70%; }
.hd-mark.arrive .hd-face { --x: 70%; --y: 52%; }
.hd-mark.hit .hd-sp .hs-mk { opacity: .95; transform: scale(1) rotate(0); }
.hd-burst { position: absolute; left: 48.3%; top: 50%; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; border: 3px solid #fff; opacity: 0; transform: scale(.3); }
.hd-mark.hit .hd-burst { animation: hd-burst .5s ease-out; }
@keyframes hd-burst { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.4); } }
.hd-mark .hd-tr { grid-template-columns: 64px minmax(0, 1fr); }
.hd-bar { position: relative; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.hd-bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: 52%; right: 0; border-radius: 6px; opacity: 0; transition: opacity .2s; }
.hd-bar.f::after { left: 0; right: 0; background: rgba(46, 75, 255, .45); opacity: 1; }
.hd-bar.m::after { background: #ff3d8b; }
.hd-bar.a svg { position: absolute; inset: 0; width: 100%; height: 100%; } .hd-bar.a path { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 1.5; }
.hd-mark.hit .hd-bar.m::after { opacity: 1; } .hd-mark.hit .hd-bar.a path { stroke: #d6ff3d; }
.hd-mark .hd-ph2 { position: absolute; left: calc(64px + 3px + (100% - 67px) * .52); top: -4px; bottom: 22px; width: 2px; background: #fff; }
.hd-same { justify-self: end; font: 600 10px/1 var(--mono, monospace); letter-spacing: .12em; text-transform: uppercase; color: #d6ff3d; opacity: 0; transition: opacity .3s; }
.hd-mark.hit .hd-same { opacity: 1; }

.hd-mix { position: relative; display: grid; gap: 8px; }
.hd-lane { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; align-items: center; }
.hd-lt { position: relative; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .05); }
.hd-lt i { position: absolute; top: 3px; bottom: 3px; min-width: 4px; border-radius: 4px; opacity: .45; transition: opacity .3s; }
.hd-lane.bed i { background: rgba(46, 75, 255, .8); } .hd-lane.bp i { background: #d6ff3d; } .hd-lane.im i { background: #ff3d8b; } .hd-lane.vc i { background: #fff; }
.hd-mix.run .hd-lt i { opacity: 1; }
.hd-ruler { margin-left: 114px; display: flex; justify-content: space-between; font: 500 10px/1 var(--mono, monospace); color: #8d93a0; }
.hd-play { position: absolute; top: -4px; bottom: 16px; left: 114px; width: 2px; background: #fff; opacity: 0; }
.hd-mix.run .hd-play { opacity: 1; animation: hd-run 6s linear forwards; }
@keyframes hd-run { to { left: 100%; } }

@media (max-width: 720px) {
  .hs-round, .hs-board, .hs-plan2 { grid-template-columns: minmax(0, 1fr); }
  .hs-stage { max-width: 280px; }
  .hd-cd, .hd-keys, .hd-mark { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .hd-cd .hd-ph { width: 170px; } .hd-crop, .hd-zoom { width: 200px; } .hd-tl, .hd-kt { width: 100%; }
  .hs-rh { display: none; }
  .hs-r { grid-template-columns: 64px 54px minmax(0, 1fr) 30px; padding: 8px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); }
  .hs-r .hs-d { grid-column: 1 / -2; grid-row: 2; }
  .hd-lane { grid-template-columns: 76px minmax(0, 1fr); } .hd-ruler, .hd-play { margin-left: 86px; } .hd-play { left: 86px; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .hs-spot.win, .hd-mix.run .hd-play { animation: none; } .hd-mix.run .hd-play { left: 100%; } }
[dir="rtl"] .hs-stage, [dir="rtl"] .hd-tl, [dir="rtl"] .hd-kt, [dir="rtl"] .hd-mix, [dir="rtl"] .hd-maps { direction: ltr; }
.hs-stage[data-phase="pick"] .hs-face, .hs-stage[data-phase="intro"] .hs-face, .hs-stage[data-phase="count"] .hs-face { opacity: 0; }
.hs-stagew { flex-direction: column; align-items: center; gap: 8px; }
.hs-cap { margin: 0; max-width: 300px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- guide blocks of the guides after the first (guide-app.js R.img / gallery / ex / src / bonus) ---------- */
.g-fig { margin: 4px 0; display: grid; gap: 8px; }
.g-fig img { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 0 0 1px var(--line-2), var(--shadow-1, 0 10px 30px -12px rgba(0, 0, 0, .4)); background: #0b0c10; }
.g-fig figcaption { display: grid; gap: 3px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.g-fig figcaption small { font: 500 11px/1.4 var(--mono, monospace); letter-spacing: .06em; color: var(--muted); opacity: .85; }
.g-fig figcaption a, .g-src a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(var(--ov, 255, 255, 255), .35); }
.g-src { margin: -4px 0 0; font-size: 13.5px; }
.g-gal { margin: 4px 0; display: grid; gap: 10px; }
.g-gal-r { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 520px; }
.g-gal-r > div { display: grid; gap: 6px; min-width: 0; }
.g-gal-r img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; border-radius: 12px; box-shadow: 0 0 0 1px var(--line-2); background: #0b0c10; }
.g-gal-r span { font: 600 12.5px/1.3 var(--body, sans-serif); color: var(--fg); text-align: center; }
.g-gal figcaption { font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 62ch; }
.g-ex { display: grid; gap: 12px; padding: clamp(14px, 2.2vw, 20px); border-radius: 18px; background: rgba(214, 255, 61, .07); box-shadow: inset 0 0 0 1px rgba(214, 255, 61, .3); }
:root[data-theme="light"] .g-ex { background: rgba(160, 200, 0, .08); box-shadow: inset 0 0 0 1px rgba(120, 150, 0, .28); }
.g-ex-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; }
.g-ex-k { padding: 3px 9px; border-radius: 999px; background: var(--lime); color: #0f1013; font: 600 10.5px/1.3 var(--mono, monospace); letter-spacing: .12em; text-transform: uppercase; }
.g-ex-h b { font: 700 15.5px/1.35 var(--body, sans-serif); color: var(--fg); }
.g-ex .g-p { margin: 0; }
.g-bonus { position: relative; display: grid; gap: 12px; margin-top: 8px; padding: clamp(14px, 2.4vw, 22px); border-radius: 22px; background: linear-gradient(180deg, rgba(214, 255, 61, .06), transparent 60%); box-shadow: inset 0 0 0 1px var(--line-2); }
.g-bonus::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--lime) 0 33.3%, var(--blue) 0 66.6%, var(--pink) 0); }
.g-bonus-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.g-bonus-k { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--fg); color: var(--bg); font: 600 10.5px/1.3 var(--mono, monospace); letter-spacing: .12em; text-transform: uppercase; }
.g-bonus-k::before { content: "★"; font-size: 11px; }
.g-bonus-h b { font: 800 20px/1.1 var(--display, sans-serif); color: var(--fg); letter-spacing: -.01em; }
.g-bonus-n { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); max-width: 64ch; }
@media (max-width: 560px) { .g-gal-r { gap: 6px; } .g-gal-r span { font-size: 11.5px; } }

/* ---------- v2.17 the Academy shelf: a horizontal rail of guide cards (owner) ---------- */
#gShelf.gd-shelf { display: block; min-height: 0; }
#gShelf .gd-shelf-h { margin: 0 0 10px; }
.gd-railw { position: relative; margin: 0 -6px; }
.gd-rail { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 6px; padding: 8px 6px 18px; scrollbar-width: none; }
.gd-rail::-webkit-scrollbar { display: none; }
.gd-rail.drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.gd-rail.drag .gd-rc { pointer-events: none; }
#gShelf .gd-rc { flex: 0 0 clamp(250px, 29vw, 320px); scroll-snap-align: start; min-height: 0; padding: 14px 16px !important; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 5px; align-content: start; text-align: start; position: relative; overflow: hidden; isolation: isolate; transition: transform .35s cubic-bezier(.2, .9, .25, 1.2), box-shadow .3s, background-color .3s; }
#gShelf .gd-rc.skel { min-height: 190px; }
#gShelf button.gd-rc { display: block; }
#gShelf .gd-in { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 5px; height: 100%; align-content: start; }
#gShelf .gd-ct { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; }
#gShelf .gd-rc b { font-size: 18px; line-height: 1.15; }
#gShelf .gd-rc .gd-hook { font-style: normal; font-size: 13.5px; line-height: 1.4; }
#gShelf .gd-rc small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.45; }
#gShelf .gd-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 4px; }
#gShelf .gd-rc .gd-ring, #gShelf .gd-rc .gd-free { position: relative; inset: auto; margin: 0; flex: none; transform: none; }
#gShelf .gd-rc .gd-ring { width: 44px; height: 44px; }
#gShelf .gd-rc .gd-ring i { font-size: 10.5px; }
#gShelf .gd-rc .gd-meta { font-size: 10px; line-height: 1.4; opacity: .8; }
#gShelf .gd-next { flex-basis: clamp(200px, 22vw, 250px); border: 1.5px dashed var(--line-2) !important; background: transparent !important; box-shadow: none !important; align-content: center; grid-template-rows: none; }
button.gd-rc:hover, button.gd-rc:focus-visible { transform: translateY(-5px); }
button.gd-rc.on { transform: translateY(-3px); }
button.gd-rc.on::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); animation: gd-sheen 1.4s .3s ease-out 1 both; }
@keyframes gd-sheen { to { transform: translateX(120%); } }
#gShelf .gd-rc > :not(.gd-art) { position: relative; z-index: 1; }
/* rail arrows */
.gd-ra { position: absolute; top: calc(50% - 24px); width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--fg); box-shadow: var(--shadow-2); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 3; }
.gd-ra svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gd-ra-l { left: -8px; } .gd-ra-r { right: -8px; }
.gd-railw.fl .gd-ra-l, .gd-railw.fr .gd-ra-r { opacity: 1; pointer-events: auto; }
.gd-ra:hover { transform: scale(1.08); }
html[dir="rtl"] .gd-ra-l { left: auto; right: -8px; } html[dir="rtl"] .gd-ra-r { right: auto; left: -8px; }
html[dir="rtl"] .gd-ra svg { transform: scaleX(-1); }
@media (pointer: coarse) { .gd-ra { display: none; } }

/* the card's picture: drawn in the card's ink, faint at rest, alive on hover and on the open guide */
.gd-art { position: relative; z-index: 0; flex: none; width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .5; transition: opacity .35s, transform .5s cubic-bezier(.2, .9, .25, 1.2); pointer-events: none; }
.gd-rc:hover .gd-art, .gd-rc.on .gd-art { opacity: 1; transform: rotate(-6deg) scale(1.12); }
.gd-art * { animation-play-state: paused; }
.gd-rc:hover .gd-art *, .gd-rc.on .gd-art *, .gd-rc:focus-visible .gd-art * { animation-play-state: running; }
/* vote: two bars race, comments pop */
.a-vote .bar { fill: currentColor; stroke: none; transform-box: fill-box; transform-origin: 50% 100%; }
.a-vote .bar.a { animation: gv-a 3.2s ease-in-out infinite; } .a-vote .bar.b { animation: gv-b 3.2s ease-in-out infinite; }
@keyframes gv-a { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes gv-b { 0%, 100% { transform: scaleY(.9); } 50% { transform: scaleY(.3); } }
.a-vote .bub { transform-box: fill-box; transform-origin: 50% 100%; animation: gv-pop 3.2s ease-out infinite; }
.a-vote .b2 { animation-delay: 1.6s; }
@keyframes gv-pop { 0%, 60%, 100% { transform: scale(0); } 70% { transform: scale(1.15); } 80%, 95% { transform: scale(1); } }
/* seek: the face walks the plan, one pin gets caught */
.a-seek .pin { fill: currentColor; stroke: none; transform-box: fill-box; transform-origin: center; }
.a-seek .face { fill: none; stroke-width: 4; animation: gs-walk 6s ease-in-out infinite; }
@keyframes gs-walk { 0% { transform: translate(0, 0); } 20% { transform: translate(0, -44px); } 40% { transform: translate(-32px, -50px); } 55% { transform: translate(-32px, -14px); } 75% { transform: translate(30px, -16px); } 100% { transform: translate(0, 0); } }
.a-seek .p4 { animation: gs-hit 6s ease-in-out infinite; }
.a-seek .p2 { animation: gs-hit 6s ease-in-out infinite 2.4s; }
@keyframes gs-hit { 0%, 45% { transform: scale(1); } 52% { transform: scale(1.8); } 60%, 100% { transform: scale(1.3); opacity: .5; } }
/* film: frames run by */
.a-film .strip { animation: gf-run 2.6s linear infinite; }
.a-film .fr { fill: currentColor; stroke: none; opacity: .5; }
.a-film .play { fill: currentColor; stroke: none; }
@keyframes gf-run { to { transform: translateX(-38px); } }
.a-spark path { transform-box: fill-box; transform-origin: center; animation: gk-spin 6s linear infinite; }
@keyframes gk-spin { to { transform: rotate(72deg); } }
.a-book .pg { transform-box: fill-box; transform-origin: 0 50%; animation: gb-flip 3s ease-in-out infinite; }
@keyframes gb-flip { 0%, 30% { transform: scaleX(1); } 60%, 100% { transform: scaleX(-1); } }
@media (prefers-reduced-motion: reduce) { .gd-art *, button.gd-rc.on::after { animation: none !important; } button.gd-rc:hover, button.gd-rc.on { transform: none; } }
@media (max-width: 560px) { #gShelf .gd-rc { flex-basis: 78vw; } #gShelf .gd-next { flex-basis: 58vw; } }

/* ---------- v2.17 the first guide's worked example with real shots (Paid in Full) ---------- */
:is(.dc-shot, .de-ph, .dx-src, .dx-scr, .da-frame, .dh-frame) { position: relative; overflow: hidden; }
.d-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.d-cons .dc-shot { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.d-cons .dc-shot.in { opacity: 1; transform: none; }
.d-cons .dc-shot { aspect-ratio: 9 / 16; }
.d-anat .da-frame .d-img { transition: filter .6s, opacity .6s; }
.d-anat[data-stage="0"] .da-frame .d-img { opacity: 0; }
.d-anat[data-stage="1"] .da-frame .d-img { filter: blur(10px) grayscale(1) brightness(.55); }
.d-anat[data-stage="2"] .da-frame .d-img { filter: blur(3px) grayscale(.7) brightness(.8); }
.de-ph.pushin .d-img { animation: dimg-push 4s linear infinite; animation-play-state: paused; }
.d-edit.playing .de-ph.pushin .d-img { animation-play-state: running; }
@keyframes dimg-push { from { transform: scale(1); } to { transform: scale(1.1); } }
.de-ph .de-cap { z-index: 2; }
.sheet-real { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2); background: #f4efe6; }
.sheet-real img { width: 100%; height: auto; display: block; }
.sz-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sz-scr .sz-face { position: absolute; left: 30%; width: 53%; top: 45.5%; height: 30%; pointer-events: none; }
.sb-scr.real .sb-fig { display: none; }
.g-shot.has-img > summary { display: grid; grid-template-columns: 44px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.g-shot-t { width: 44px; height: 78px; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px var(--line-2); }
.g-shot-b { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 14px; align-items: start; padding-top: 10px; }
.g-shot-b > img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px var(--line-2); }
.g-shot-b > div { min-width: 0; }
@media (max-width: 560px) { .g-shot.has-img > summary { grid-template-columns: 40px minmax(0, 1fr); } .g-shot.has-img > summary .sp { grid-column: 2; } .g-shot-t { width: 40px; height: 71px; grid-row: span 2; } .g-shot-b { grid-template-columns: minmax(0, 1fr); } .g-shot-b > img { max-width: 200px; } }
#gShelf .gd-art { width: 52px; height: 52px; padding: 7px; box-sizing: border-box; border-radius: 15px; background: rgba(var(--ov, 255, 255, 255), .06); }
#gShelf .gd-rc.on .gd-art { background: rgba(15, 16, 19, .1); }

/* ---------- v2.17 the unlock panel: colour for people without a plan (owner: "not just plain") ---------- */
#get .g-locked { position: relative; }
#get .gi-k { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--fg); color: var(--bg); font: 600 11px/1.3 var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; }
#get .gi-k::before { content: ""; width: 26px; height: 8px; border-radius: 2px; background: linear-gradient(90deg, var(--lime) 0 33.3%, var(--blue) 0 66.6%, var(--pink) 0); transform: skewX(-20deg); }
#get h2 em { font-style: normal; background: linear-gradient(90deg, var(--lime), var(--blue) 55%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
#gLockedList li { border: 0 !important; border-radius: 14px !important; background: rgba(var(--ov, 255, 255, 255), .04); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg) !important; align-items: center !important; transition: transform .2s, box-shadow .2s; }
#gLockedList li span { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 9px; font-weight: 700 !important; color: #0f1013 !important; background: var(--lime); }
#gLockedList li:nth-child(3n+2) span { background: var(--blue); color: #fff !important; }
#gLockedList li:nth-child(3n) span { background: var(--pink); }
#gLockedList li:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--fg); }
/* Prime: the Academy's lime */
#get .bb2 .buybox:not(.best) { background: var(--lime) !important; color: #0f1013 !important; border: 0 !important; box-shadow: var(--shadow-1) !important; }
#get .bb2 .buybox:not(.best) :is(.bb-k, .bb-sub, b, .bb-list li, .bb-list li::before) { color: #0f1013 !important; }
#get .bb2 .buybox:not(.best) .bb-list li { box-shadow: inset 0 0 0 1px rgba(15, 16, 19, .18) !important; border-color: rgba(15, 16, 19, .18) !important; }
#get .bb2 .buybox:not(.best) .bb-btn { background: #0f1013 !important; color: var(--lime) !important; box-shadow: none !important; border: 0 !important; }
/* Ultra: ink, with the three colours */
#get .bb2 .buybox.best { position: relative; overflow: hidden; background: #111316 !important; color: #f1f2f4 !important; border: 0 !important; box-shadow: var(--shadow-2) !important; isolation: isolate; }
#get .bb2 .buybox.best::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 2px; background: conic-gradient(from 200deg, var(--lime) 0 120deg, var(--blue) 0 240deg, var(--pink) 0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
#get .bb2 .buybox.best::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; z-index: -1; background: linear-gradient(135deg, var(--lime) 0 33.3%, var(--blue) 0 66.6%, var(--pink) 0); transform: rotate(18deg); opacity: .18; border-radius: 28px; }
#get .bb2 .buybox.best :is(.bb-k, .bb-sub, b, .bb-list li) { color: #f1f2f4 !important; }
#get .bb2 .buybox.best .bb-sub { color: #a4a9b4 !important; }
#get .bb2 .buybox.best .bb-list li { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14) !important; border-color: rgba(255, 255, 255, .14) !important; }
#get .bb2 .buybox.best .bb-list li:nth-child(1)::before { color: var(--lime) !important; } #get .bb2 .buybox.best .bb-list li:nth-child(2)::before { color: #8fa2ff !important; } #get .bb2 .buybox.best .bb-list li:nth-child(3)::before { color: var(--pink) !important; }
#get .bb2 .buybox.best .bb-btn { background: #fff !important; color: #0f1013 !important; border: 0 !important; box-shadow: none !important; }
#get .bb2 .bb-btn:hover { transform: translateY(-2px); }
