/* v167 guide walkthrough (js/guide.js). Wick the owl, the dimmed screen with a hole over the thing he is showing,
   his speech bubble, and the round owl button in the top bar. Calm colors, nothing alarming. */
.gd{position:fixed;inset:0;z-index:9990;pointer-events:none;font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.gd-block{position:fixed;background:rgba(9,12,18,.62);pointer-events:auto;transition:left .35s ease,top .35s ease,width .35s ease,height .35s ease}
.gd-ring{position:fixed;border-radius:14px;box-shadow:0 0 0 3px #f2c14e,0 0 24px 6px rgba(242,193,78,.55);pointer-events:none;transition:left .35s ease,top .35s ease,width .35s ease,height .35s ease;animation:gd-pulse 1.8s ease-in-out infinite}
@keyframes gd-pulse{50%{box-shadow:0 0 0 5px #f2c14e,0 0 34px 10px rgba(242,193,78,.35)}}
.gd.gd-moving .gd-who{opacity:0}
.gd-who{position:fixed;display:flex;align-items:flex-end;gap:4px;pointer-events:auto;width:min(540px,calc(100vw - 24px));color:#1d2b28;text-align:left}
.gd-who.gd-flip{flex-direction:row-reverse}
.gd-who.gd-flip .gd-owl{transform:scaleX(-1)}
.gd-who.gd-center{flex-direction:column;align-items:center;gap:0;width:min(500px,calc(100vw - 24px))}
.gd-who.gd-center .gd-owl{width:170px;height:190px}
.gd-from-left{animation:gd-fromL .55s cubic-bezier(.2,1.3,.4,1) both}.gd-from-right{animation:gd-fromR .55s cubic-bezier(.2,1.3,.4,1) both}
.gd-from-top{animation:gd-fromT .6s cubic-bezier(.2,1.3,.4,1) both}.gd-from-bottom{animation:gd-fromB .55s cubic-bezier(.2,1.3,.4,1) both}
@keyframes gd-fromL{from{transform:translateX(-120px);opacity:0}}@keyframes gd-fromR{from{transform:translateX(120px);opacity:0}}
@keyframes gd-fromT{from{transform:translateY(-140px) rotate(-6deg);opacity:0}}@keyframes gd-fromB{from{transform:translateY(120px) scale(.7);opacity:0}}
.gd-owl{width:140px;height:156px;flex:none;filter:drop-shadow(0 10px 14px rgba(0,0,0,.35))}
.gd-owl svg{width:100%;height:100%;display:block;animation:gd-bob 3.2s ease-in-out .6s infinite}
@keyframes gd-bob{50%{transform:translateY(-6px)}}
.gd-owl .gd-lid{transform-box:fill-box;transform-origin:center;transform:scaleY(0);animation:gd-blink 4.5s infinite}
@keyframes gd-blink{0%,92%,100%{transform:scaleY(0)}95%{transform:scaleY(1)}}
.gd-owl.gd-talk .gd-beak{animation:gd-talkb .22s ease-in-out infinite alternate}
@keyframes gd-talkb{to{transform:translateY(4px)}}
.gd-wave .gd-wing{transform-box:fill-box;transform-origin:80% 10%;animation:gd-wing .5s ease-in-out 3 alternate}
@keyframes gd-wing{to{transform:rotate(-28deg)}}
.gd-bub{position:relative;flex:1;min-width:0;background:#fffdf7;border-radius:18px;padding:16px 16px 12px;box-shadow:0 12px 30px rgba(0,0,0,.35),inset 0 0 0 2px #e9b949;margin-bottom:50px}
.gd-center .gd-bub{margin:0;width:100%}
.gd-bub::before{content:"";position:absolute;left:-11px;bottom:26px;border:10px solid transparent;border-right-color:#e9b949;border-left:0}
.gd-flip .gd-bub::before{left:auto;right:-11px;border:10px solid transparent;border-left-color:#e9b949;border-right:0}
.gd-center .gd-bub::before{left:50%;bottom:auto;top:-11px;margin-left:-10px;border:10px solid transparent;border-bottom-color:#e9b949;border-top:0}
.gd-nm{position:absolute;top:-13px;left:14px;background:#173e35;color:#f2c14e;font:900 italic 13px/1 OrthosCard,system-ui,sans-serif;letter-spacing:1.5px;padding:6px 10px;border-radius:7px;text-transform:uppercase}
.gd-chap{position:absolute;top:-11px;right:14px;background:#fbf3df;color:#7a5c1e;font:800 11px/1 system-ui,sans-serif;letter-spacing:1px;padding:5px 8px;border-radius:7px;text-transform:uppercase;box-shadow:inset 0 0 0 1px #e9d6a8}
.gd-say{margin:8px 0 10px;font-size:16px;line-height:1.45;min-height:44px;color:#1d2b28}
.gd-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.gd-wait{font-size:13.5px;color:#5e4d2d;background:#fbf3df;border-radius:9px;padding:7px 10px;margin:0 0 10px}
.gd-acts{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.gd-sp{flex:1}
.gd-btn{font:inherit;font-weight:800;font-size:15px;border:0;border-radius:10px;padding:9px 15px;cursor:pointer;display:inline-flex;align-items:center;gap:7px}
.gd-btn svg{width:17px;height:17px}
.gd-btn.dark{background:#173e35;color:#fff}.gd-btn.gold{background:#e9b949;color:#1b1406}.gd-btn.ghost{background:#fff;color:#173e35;box-shadow:inset 0 0 0 1.5px #cdbf9f}
.gd-link{background:none;border:0;color:#5e4d2d;font:inherit;font-size:13.5px;text-decoration:underline;cursor:pointer;padding:6px 4px}
.gd-spk{display:inline-flex;align-items:center;gap:5px;border:1.5px solid #d8c9a6;background:#fff;border-radius:99px;padding:5px 10px;font:inherit;font-size:12.5px;font-weight:700;color:#173e35;cursor:pointer}
.gd-spk svg{width:15px;height:15px}.gd-spk[aria-pressed=true]{background:#173e35;color:#f2c14e;border-color:#173e35}
.gd-choice{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.gd-ex{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 10px}
.gd-chip{font:inherit;font-size:13px;border:1px solid #d8c9a6;background:#fff;border-radius:99px;padding:5px 11px;cursor:pointer;color:#173e35;font-weight:700}
.gd-demo{margin:0 0 10px;font:17px/1.5 Georgia,serif;color:#2a241c;background:#fbf5e8;border-radius:8px;padding:8px 10px}
.gd-demo.on span{background:#ffe9a8;border-radius:4px;box-shadow:0 0 0 3px #ffe9a8}
.gd-btn:focus-visible,.gd-link:focus-visible,.gd-spk:focus-visible,.gd-chip:focus-visible,.gd-help:focus-visible{outline:3px solid #2f7de1;outline-offset:2px}
.gd-spark{position:fixed;width:8px;height:8px;border-radius:2px;pointer-events:none;animation:gd-spark 1.1s ease-out forwards;z-index:9991}
@keyframes gd-spark{to{transform:translate(var(--dx),var(--dy)) rotate(200deg);opacity:0}}

/* the round owl button in the top bar */
.gd-help{width:36px;height:36px;border-radius:50%;border:2px solid #c9a86a;background:#fffdf7;padding:3px;cursor:pointer;flex:none;display:inline-grid;place-items:center;margin:0 4px}
.gd-help svg{width:100%;height:100%;display:block}
.gd-help:hover{border-color:#e9b949;box-shadow:0 0 0 3px rgba(233,185,73,.3)}

/* students who chose "read to me": the Listen button glows softly */
.reading-toolbar .ra-listen.gd-hint{box-shadow:0 0 0 3px #f2c14e,0 0 18px 4px rgba(242,193,78,.45);animation:gd-pulse 2.4s ease-in-out 4}

/* phones and narrow Chromebook windows: the owl and bubble sit at the top or bottom, out of the way */
@media (max-width:640px){
  .gd-who,.gd-who.gd-flip,.gd-who.gd-center{width:auto;flex-direction:column-reverse;align-items:flex-start;gap:0}
  .gd-who.gd-at-top{flex-direction:column}
  .gd-who .gd-owl,.gd-who.gd-center .gd-owl{width:70px;height:78px;transform:none}
  .gd-bub{width:100%;margin:0 0 4px;padding:15px 12px 10px}.gd-at-top .gd-bub{margin:4px 0 0}
  .gd-say{font-size:14.5px;min-height:0}
  .gd-bub::before,.gd-flip .gd-bub::before{left:30px;right:auto;top:auto;bottom:-11px;border:10px solid transparent;border-top-color:#e9b949;border-bottom:0}
  .gd-at-top .gd-bub::before{bottom:auto;top:-11px;border:10px solid transparent;border-bottom-color:#e9b949;border-top:0}
  .gd-help{width:32px;height:32px}
}
@media (prefers-reduced-motion:reduce){
  .gd *,.gd-block,.gd-ring,.gd-who,.gd-owl svg,.reading-toolbar .ra-listen.gd-hint{animation:none!important;transition:none!important}
  .gd-owl .gd-lid{transform:scaleY(0)}
}
@media (forced-colors:active){
  .gd-block{background:Canvas;opacity:.6}.gd-ring{outline:3px solid Highlight}
  .gd-bub{border:2px solid CanvasText}.gd-btn,.gd-spk,.gd-chip{border:1px solid ButtonText}
}
@media print{.gd,.gd-help{display:none!important}}
