/* The story wizard for any site (16 Nov 2026): the look of Heliopoly's /how/ wizard as it stood after
   12 Nov (light, front-page style, lightbox), gathered in one sheet so any site can use it.
   A theme tints it with its own variables: --wiz-page, --wiz-paper, --wiz-ink, --wiz-accent, --wiz-text.
   Loaded only by pages that include wizard_engine.html. */
.wiz-e{--wp:var(--wiz-page,#f4efe3);--wpa:var(--wiz-paper,#fffdf6);--wi:var(--wiz-ink,#1c2834);
  --wa:var(--wiz-accent,#c9921e);--wt:var(--wiz-text,#2f2a22);
  background:var(--wp);color:var(--wt);padding:34px 0 46px}
.wiz-e .kicker{color:var(--wa)}
.wiz-e h2,.wiz-e .wiz-copy h2,.wiz-e .wiz-top h2{color:var(--wi)}
.wiz-e .sub,.wiz-e .wiz-kid{color:var(--wt)}
.wiz-e .wiz-top{max-width:66ch;margin-bottom:22px}

/* chapters */
.wiz-e .wiz-rail{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:0 0 14px}
.wiz-e .wiz-chap{border:2px solid rgba(0,0,0,.18);border-radius:4px;background:var(--wpa);transition:border-color .2s,background .2s}
.wiz-e .wiz-chap.is-on{border-color:var(--wa);background:color-mix(in srgb,var(--wa) 14%,var(--wpa))}
.wiz-e .wiz-chap-h{display:block;width:100%;text-align:left;background:none;border:0;padding:9px 11px;cursor:pointer;color:inherit}
.wiz-e .wiz-chap-h b{display:block;font:700 .82rem/1.2 "Oswald",sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--wi)!important}
.wiz-e .wiz-chap.is-on .wiz-chap-h b{color:var(--wa)!important}
.wiz-e .wiz-chap-h span{display:block;margin-top:3px;font-size:.74rem;color:var(--wt);opacity:.75}

.wiz-e .wiz-bar{height:3px;border-radius:3px;background:rgba(0,0,0,.12);margin:0 0 22px;overflow:hidden}
.wiz-e .wiz-bar i{display:block;height:100%;width:5%;background:var(--wa);transition:width .3s cubic-bezier(.4,0,.2,1)}

/* the stage and a step */
.wiz-e .wiz-stage{position:relative;transition:height .28s cubic-bezier(.4,0,.2,1)}
.wiz-e .wiz-step{display:none;position:relative;scroll-margin-top:86px}
.wiz-e .wiz-step.is-on{display:block}
@keyframes wizIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes wizOut{from{opacity:1;transform:none}to{opacity:0;transform:translateY(-8px)}}
.wiz-e .wiz-step.is-in{animation:wizIn .24s cubic-bezier(.4,0,.2,1) both}
.wiz-e .wiz-step.is-out{animation:wizOut .15s ease-in both}
.wiz-e.wiz-open .wiz-stage{height:auto!important}
.wiz-e.wiz-open .wiz-step{display:block;margin-bottom:46px;padding-bottom:40px;border-bottom:1px solid rgba(0,0,0,.15)}
.wiz-e .wiz-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:34px;align-items:start}

/* pictures: never cropped (his rule), cut-outs whole */
.wiz-e .wiz-visual{display:flex;flex-direction:column;gap:14px;align-items:center}
.wiz-e .wiz-art{margin:0;width:100%;border:3px solid var(--wi);border-top:8px solid var(--wa);background:var(--wp)}
.wiz-e .wiz-art img,.wiz-e .wiz-film video{display:block;width:100%;height:auto;max-height:62vh;aspect-ratio:4/3;object-fit:contain;background:var(--wp)}
.wiz-e .wiz-cast{display:flex;justify-content:center;align-items:flex-end;gap:6px;width:100%}
.wiz-e .wiz-cast figure{margin:0;flex:0 1 auto}
.wiz-e .wiz-cast img{display:block;height:190px;width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(0 6px 8px rgba(0,0,0,.25))}
.wiz-e .wiz-cast-3 img,.wiz-e .wiz-cast-4 img{height:160px}
.wiz-e .wiz-fan{display:flex;justify-content:center;width:100%}
.wiz-e .wiz-fan .wiz-card{margin:0 -14px;max-width:150px;transform-origin:50% 100%}
.wiz-e .wiz-fan .wiz-card img{display:block;width:100%;height:auto;border-radius:10px;box-shadow:0 8px 18px rgba(0,0,0,.25)}
.wiz-e .wiz-fan-2 .wiz-card:nth-child(1){transform:rotate(-7deg)}.wiz-e .wiz-fan-2 .wiz-card:nth-child(2){transform:rotate(7deg)}
.wiz-e .wiz-fan-3 .wiz-card:nth-child(1){transform:rotate(-10deg)}.wiz-e .wiz-fan-3 .wiz-card:nth-child(3){transform:rotate(10deg)}

/* a figure: the map of pins */
.wiz-e .wiz-map{margin:0;width:100%;border:3px solid var(--wi);border-top:8px solid var(--wa);background:var(--wpa)}
.wiz-e .wiz-map svg{display:block;width:100%;height:auto}
.wiz-e .wm-sea{fill:color-mix(in srgb,var(--wiz-sea,#2fa39b) 18%,#fff)}
.wiz-e .wm-land{fill:color-mix(in srgb,var(--wa) 30%,#f6efe0);stroke:color-mix(in srgb,var(--wa) 60%,#000);stroke-width:1;stroke-linejoin:round}
.wiz-e .wm-pin line{stroke:var(--wi);stroke-width:1.6}
.wiz-e .wm-dot{fill:var(--wi)}
.wiz-e .wm-ring{fill:var(--wpa);stroke:var(--wi);stroke-width:3}
.wiz-e .wm-pin:hover .wm-ring,.wiz-e a:focus .wm-ring{stroke:var(--wa);stroke-width:5}
.wiz-e .wiz-maplist-d{width:100%}.wiz-e .wiz-maplist-d summary{cursor:pointer;font:600 .8rem/1.4 "Oswald",sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--wi);padding:4px 0}
.wiz-e .wiz-maplist{list-style:none;margin:6px 0 0;padding:0;width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:2px 14px;font-size:.88rem}
.wiz-e .wiz-maplist a{display:block;padding:3px 0;text-decoration:none;color:var(--wt);border-bottom:1px dotted rgba(0,0,0,.18)}
.wiz-e .wiz-maplist b{color:var(--wi)}
.wiz-e .wiz-maplist span{opacity:.8}

/* the words */
.wiz-e .wiz-copy h2{font-size:clamp(1.5rem,3.4vw,2.3rem);text-transform:uppercase;margin:4px 0 12px;line-height:1.08}
.wiz-e .wiz-kid{font-size:1.2rem;line-height:1.55;font-weight:500;border-left:4px solid var(--wa);padding:4px 0 4px 14px;margin:6px 0 12px}
.wiz-e .wiz-try{margin-top:14px;padding:12px 16px;border-radius:10px;background:color-mix(in srgb,var(--wa) 14%,#fff);border-left:5px solid var(--wa);color:#3a2e1c;font-size:1.05rem}
.wiz-e .wiz-try b{color:#3a2e1c}
.wiz-e .wiz-more{margin-top:.8rem}

/* a narrator beside the words (Heliopoly's Mayor), a franchise logo */
.wiz-e .wiz-narr{display:flex;gap:14px;align-items:flex-start;margin:0 0 14px}
.wiz-e .wiz-narr img{flex:none;width:110px;height:auto}
.wiz-e .wiz-short{font-size:1.08rem;line-height:1.55;margin:0 0 14px;color:var(--wt)}
.wiz-e .wiz-logo{margin:0 0 .5rem}.wiz-e .wiz-logo img{height:96px;width:auto;display:block}
@media (max-width:600px){.wiz-e .wiz-narr img{width:78px}}

/* moving on */
.wiz-e .wiz-nav{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px;align-items:center;justify-content:space-between}
.wiz-e .wiz-nav-top{margin:0 0 18px;padding-bottom:14px;border-bottom:1px solid rgba(0,0,0,.12)}
.wiz-e .wiz-nav .btn{cursor:pointer}
.wiz-e .wiz-nav .btn[disabled]{opacity:.38;cursor:default}
.wiz-e .btn-quiet{color:var(--wi);background:var(--wpa);border-color:rgba(0,0,0,.25)}
.wiz-e .wiz-count{font:600 .78rem/1 "Oswald",sans-serif;letter-spacing:.1em;color:var(--wt);opacity:.75}
.wiz-e .wiz-arrow{position:absolute;top:150px;z-index:3;width:44px;height:44px;border-radius:50%;border:2px solid var(--wi);
  background:var(--wpa);color:var(--wi);font-size:1.2rem;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.18);transition:transform .15s}
.wiz-e .wiz-arrow:hover{transform:translateY(-2px)}
.wiz-e .wiz-arrow[disabled]{opacity:.3;cursor:default;transform:none}
.wiz-e .wiz-arrow-l{left:-22px}.wiz-e .wiz-arrow-r{right:-22px}
.wiz-e .wiz-all{margin-top:30px;text-align:center}
.wiz-e .wiz-all button{background:none;border:0;cursor:pointer;color:var(--wi);text-decoration:underline;font:inherit}
.wiz-e .wiz-restart{text-align:center;margin:.6rem 0 0}
.wiz-e .wiz-again{background:none;border:0;color:var(--wt);font:inherit;font-size:.95rem;cursor:pointer;text-decoration:underline}

/* the small card on the page, and the lightbox */
.wiz-e .wiz-lbbar{display:none}
.wiz-e.wiz-min .wiz-stage,.wiz-e.wiz-min .wiz-bar,.wiz-e.wiz-min .wiz-all{display:none}
.wiz-e .wiz-launch{margin:14px 0 0;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.wiz-e .wiz-launch-n{font-size:.95rem;opacity:.85}
.wiz-e.wiz-lb .wiz-launch,.wiz-e.wiz-lb .wiz-top{display:none}
.wiz-backdrop{display:none;position:fixed;inset:0;background:rgba(9,20,30,.72);z-index:1990}
body.wiz-lock{overflow:hidden}body.wiz-lock .wiz-backdrop{display:block}
.wiz-e.wiz-lb{position:fixed;inset:3vh 3vw;z-index:2000;overflow:auto;padding:0 0 30px;border:3px solid var(--wi);border-radius:10px;box-shadow:0 30px 90px rgba(0,0,0,.55)}
.wiz-e.wiz-lb .wiz-lbbar{display:flex;position:sticky;top:0;z-index:6;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:var(--wi);padding:10px 16px;margin:0 0 18px}
.wiz-e .wiz-lbbar b{font-size:1rem;letter-spacing:.04em;color:#fffdf6!important}
.wiz-e .wiz-lbctl{display:flex;gap:8px;flex-wrap:wrap}
.wiz-e .wiz-lbctl button{font:inherit;font-size:.9rem;padding:.38rem .8rem;border:2px solid #fffdf6;background:transparent;color:#fffdf6;cursor:pointer;border-radius:4px}
html.wiz-embed,html.wiz-embed body{background:var(--wiz-page,#f4efe3)}
html.wiz-embed .wiz-e.wiz-lb{inset:0;border:0;border-radius:0;box-shadow:none}
html.wiz-embed .wiz-backdrop{display:none!important}
.wiz-frame{position:fixed;inset:3vh 3vw;width:94vw;height:94vh;z-index:2001;border:3px solid #1c2834;border-radius:10px;background:#f4efe3;box-shadow:0 30px 90px rgba(0,0,0,.55)}
html.wiz-embed #gravitrek-omnibis-widget,body.wiz-lock #gravitrek-omnibis-widget{display:none!important}

/* the guides */
.wiz-guides{padding:34px 0 46px}
.wiz-guides .hg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;margin-top:18px}
.wiz-guides .hg{display:flex;flex-direction:column;background:var(--wiz-paper,#fffdf6);border:2px solid var(--wiz-ink,#1c2834);color:var(--wiz-ink,#1c2834);text-decoration:none;box-shadow:4px 4px 0 rgba(0,0,0,.14)}
.wiz-guides .hg img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;background:var(--wiz-page,#f4efe3)}
.wiz-guides .hg b{padding:10px 12px 2px;font-family:"Oswald",sans-serif;text-transform:uppercase;letter-spacing:.04em}
.wiz-guides .hg span{padding:0 12px 12px;font-size:.88rem;opacity:.8}

@media (min-width:901px){.wiz-e .wiz-head{padding:0 30px}}
/* phones */
@media (max-width:900px){.wiz-e .wiz-arrow-l{left:4px}.wiz-e .wiz-arrow-r{right:4px}}
@media (max-width:760px){
  .wiz-e .wiz-arrow{display:none}
  .wiz-e .wiz-head{grid-template-columns:1fr;gap:18px}
  .wiz-e .wiz-rail{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
  .wiz-e .wiz-chap-h span{display:none}
  .wiz-e .wiz-cast img{height:130px}
  .wiz-e .wiz-cast-3 img,.wiz-e .wiz-cast-4 img{height:110px}
  .wiz-e.wiz-lb,.wiz-frame{inset:0;width:100vw;height:100vh;border:0;border-radius:0}
  .wiz-e.wiz-lb .wiz-lbbar{padding:7px 10px;margin:0 0 8px;gap:6px}
  .wiz-e .wiz-lbbar b{font-size:.78rem;flex:1 1 100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .wiz-e .wiz-lbctl{width:100%}.wiz-e .wiz-lbctl button{flex:1 1 0;font-size:.8rem;padding:.38rem .3rem}
  .wiz-e.wiz-lb .wiz-nav-top,.wiz-e.wiz-lb .wiz-rail,.wiz-e.wiz-lb .wiz-all,.wiz-e.wiz-lb .wiz-restart{display:none}
  .wiz-e.wiz-lb{padding-bottom:0}.wiz-e.wiz-lb .wrap{padding-left:14px;padding-right:14px}
  .wiz-e.wiz-lb .wiz-step .wiz-nav{position:sticky;bottom:0;z-index:4;background:var(--wp);margin:14px -14px 0;padding:10px 14px;border-top:2px solid var(--wi)}
  .wiz-e.wiz-lb .wiz-kid{font-size:1.06rem}.wiz-e.wiz-lb h2{font-size:1.35rem}
  .wiz-e .wiz-art img{max-height:46vh}
}
@media (prefers-reduced-motion:reduce){
  .wiz-e .wiz-stage{transition:none}.wiz-e .wiz-step.is-in,.wiz-e .wiz-step.is-out{animation:none}.wiz-e .wiz-bar i{transition:none}
}
