/* The opening is a readable statement; only the next story step is a button. */
.dream[data-state=asleep] #caption-kicker{display:none}
.sleep-premise{display:none;font:18px/1.4 var(--font);color:var(--ink);margin:10px 0 0}
.dream[data-state=asleep] .sleep-premise{display:block}
@media(max-width:759px){.sleep-premise{font-size:16px;margin-top:7px}}
/* The next story action stays obvious after dismissing a speech bubble. */
@media(min-width:760px){.dream:not([data-state=lucid]) .scene-caption{height:210px;min-height:210px}}
.dream[data-state=curious] .caption-intro{display:flex;flex-direction:column;align-items:center;gap:9px}
.dream[data-state=curious] #caption-title{order:0;font-size:clamp(24px,2.3vw,32px);margin:0;line-height:1.25}
.dream[data-state=curious] #caption-subtitle{order:1;margin:0;font-size:15px}
.dream[data-state=curious] button.caption-kicker{order:2;display:inline-flex;align-items:center;justify-content:center;gap:22px;min-height:54px;margin:3px 0 5px;padding:12px 27px;background:var(--purple);color:#fffaf0;border:2px solid var(--ink);border-radius:8px 13px 9px 12px;box-shadow:4px 5px 0 var(--ink);font:700 19px/1.25 var(--font);text-decoration:none;transition:translate .18s,box-shadow .18s}
.dream[data-state=curious] button.caption-kicker:after{content:'→';color:inherit;font-size:25px}
.dream[data-state=curious] button.caption-kicker:hover{color:#fffaf0;translate:0 -2px;box-shadow:4px 7px 0 var(--ink)}
.dream[data-state=curious] button.caption-kicker:focus-visible{outline:3px solid var(--purple);outline-offset:6px}
@media(max-width:759px){.dream[data-state=curious] .caption-intro{gap:7px}.dream[data-state=curious] #caption-title{font-size:24px}.dream[data-state=curious] #caption-subtitle{font-size:14px}.dream[data-state=curious] button.caption-kicker{width:min(310px,100%);font-size:18px;min-height:52px;padding:10px 20px}}

/* A sleepy clock, visible dream controls, and a letter worth opening. */
.clock.is-thursday .clock-face{transform:none}.clock-body{transform-box:fill-box;transform-origin:center}.clock-face ellipse{stroke-width:1.6px}
.sleep-zs{pointer-events:none}.drawing .sleep-z{font:600 30px var(--hand);fill:#80694f;opacity:0;transform-box:fill-box;transform-origin:center;animation:sleep-drift 3.8s ease-out infinite}.drawing .z-two{font-size:35px;animation-delay:1.2s}.drawing .z-three{font-size:41px;animation-delay:2.4s}
.dream[data-state=curious] .sleep-zs{opacity:.4}.dream[data-state=lucid] .sleep-zs{display:none}
@keyframes sleep-drift{0%{opacity:0;translate:-7px 15px;rotate:-10deg;scale:.8}15%{opacity:.9}65%{opacity:.65}100%{opacity:0;translate:60px -85px;rotate:12deg;scale:1.1}}

.dream[data-state=lucid] .caption-intro{display:none}.dream[data-state=lucid] .scene-caption{min-height:0;padding-top:4px;padding-bottom:12px}
.dream-effects{width:min(820px,100%);display:block;margin:0 auto;text-align:left}
.director-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0 3px 12px}.director-heading>span{font:700 11px var(--font);letter-spacing:.06em;color:#70553a}.director-heading h2{font:600 27px/1.2 var(--hand);letter-spacing:-.8px;margin:0;color:var(--ink)}
.effect-options{display:flex;gap:13px;align-items:stretch}.dream-effects button{flex:1;display:flex;align-items:center;justify-content:flex-start;gap:11px;min-height:83px;padding:13px 15px;border:2px solid var(--ink);border-radius:6% 5% 7% 4% / 16% 23% 18% 22%;background:#fff8ea;box-shadow:3px 4px 0 #2c29251f;rotate:-1deg;transition:translate .2s,background .2s,box-shadow .2s;color:var(--ink);text-align:left}
.dream-effects button:nth-child(2){rotate:1deg}.dream-effects button:nth-child(3){rotate:-.5deg}.dream-effects button svg{width:36px;height:36px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.dream-effects button>span{display:flex;flex-direction:column;gap:6px}.dream-effects strong{font:700 17px/1.2 var(--font);letter-spacing:-.4px}.dream-effects small{font:12px/1.3 var(--font);color:#77644e}.dream-effects button[aria-pressed=true]{background:var(--purple);color:#fffaf0;border-color:var(--ink);box-shadow:3px 4px 0 var(--ink)}.dream-effects button[aria-pressed=true] small{color:#e8ddff}.dream-effects button:hover{translate:0 -4px;box-shadow:4px 7px 0 #2c292536;border-color:var(--ink)}

#dream-note{left:72%;right:auto;top:3%;width:205px;max-width:none;padding:0;border:0;border-radius:0;background:none;box-shadow:none;transform:none;rotate:-5deg;font:inherit;color:var(--ink);z-index:4;animation:letter-arrival .7s ease-out both,letter-bob 5s ease-in-out .7s infinite;text-align:center;isolation:isolate}
#dream-note>span{position:static;transform:none;display:block;left:auto;top:auto;font:inherit}
#dream-note .letter-eyebrow{font:700 11px var(--font);letter-spacing:.1em;color:#70553a;margin:0 0 0 30px}
.letter-art{width:100%;height:auto;display:block;overflow:visible;filter:drop-shadow(4px 6px 0 #2c29251a)}.letter-art text{font:22px var(--hand)}.letter-paper{transition:translate .3s,rotate .3s;transform-box:fill-box;transform-origin:center}.letter-seal{transition:scale .3s;transform-box:fill-box;transform-origin:center}
#dream-note .letter-address{font:700 20px/1.2 var(--font);letter-spacing:-.6px;margin:0 0 8px}#dream-note .letter-open{font:700 15px var(--font);display:inline-block;color:var(--purple);padding-bottom:3px;border-bottom:1.5px solid var(--purple)}
#dream-note .letter-address{display:inline-block;background:var(--paper);padding:5px 9px;border:1.5px solid var(--ink);rotate:2deg}
#dream-note .letter-open{display:table;margin:0 auto;padding:8px 13px;background:var(--purple);color:#fffaf0;border:1.5px solid var(--ink);border-radius:5% 6% 4% 7% / 20% 25% 20% 25%;box-shadow:2px 3px 0 var(--ink)}
#dream-note:hover{transform:none;animation-play-state:paused}#dream-note:hover .letter-paper,#dream-note:focus-visible .letter-paper{translate:0 -12px;rotate:-2deg}#dream-note:hover .letter-seal{scale:1.13}
.letter-to{font:18px var(--hand);color:#70553a;margin:-7px 0 22px}.paper{overflow:visible}.paper:after{content:'✦';position:absolute;right:29px;bottom:22px;width:38px;height:38px;display:grid;place-items:center;border:1.5px solid #a98c65;border-radius:50%;color:#8b6a42;rotate:-12deg;font:26px var(--hand);opacity:.6;pointer-events:none}.paper-footnote{padding-right:43px}
@keyframes letter-arrival{from{opacity:0;translate:90px -35px;rotate:16deg;scale:.7}to{opacity:1;translate:0 0;rotate:-5deg;scale:1}}
@keyframes letter-bob{50%{translate:0 -8px;rotate:-2deg}}
.project-dialog.from-letter .paper{animation:unfold-letter .4s ease-out}
.nav-access{text-decoration:none}.paper-choices .meet-device{display:flex;align-items:center;justify-content:space-between;gap:25px;background:var(--purple);color:#fffaf0;text-decoration:none;border:2px solid var(--ink);padding:15px 20px;border-radius:4% 5% 4% 6% / 18% 24% 20% 25%;box-shadow:3px 4px 0 var(--ink);font:700 17px/1.4 var(--font)}.paper-choices .meet-device:hover{translate:0 -2px}
@keyframes unfold-letter{from{opacity:0;translate:20px 25px;scale:.86;rotate:3deg}to{opacity:1;translate:0 0;scale:1;rotate:0deg}}
.reduce-motion .sleep-z{animation:none!important;opacity:.55}.reduce-motion .z-two{translate:20px -25px}.reduce-motion .z-three{translate:40px -50px}
@media(prefers-reduced-motion:reduce){body:not(.motion-enabled) .sleep-z{opacity:.55}body:not(.motion-enabled) .z-two{translate:20px -25px}body:not(.motion-enabled) .z-three{translate:40px -50px}}
@media(max-width:759px){
  .dream[data-state=lucid] .scene-caption{padding:6px 17px 12px}.dream-effects{width:100%;margin:0 auto}.director-heading{display:block;text-align:center;margin:0 0 11px}.director-heading>span{font-size:10px}.director-heading h2{font-size:24px;margin-top:4px}.effect-options{gap:8px}.dream-effects button{min-height:91px;flex-direction:column;justify-content:center;text-align:center;padding:10px 5px;gap:7px}.dream-effects button svg{width:27px;height:27px}.dream-effects button>span{gap:0}.dream-effects strong{font-size:12px;line-height:1.2;letter-spacing:-.2px}.dream-effects small{display:none}
  #dream-note{left:auto;right:3%;top:0;width:145px}.letter-art text{font-size:23px}#dream-note .letter-eyebrow{font-size:9px;margin-left:0}#dream-note .letter-address{font-size:17px;margin-bottom:6px}#dream-note .letter-open{font-size:13px}.paper{overflow:auto}.paper:after{display:none}.letter-to{font-size:16px}.paper-footnote{padding-right:0}
}
@media(max-width:759px) and (max-height:740px){#dream-note{width:120px;top:0;right:3%}#dream-note .letter-address{font-size:15px}#dream-note .letter-open{font-size:12px}.director-heading{margin-bottom:8px}.director-heading h2{font-size:21px}.dream-effects button{min-height:76px;padding:8px 4px;gap:5px}.dream-effects button svg{width:24px;height:24px}.dream-effects strong{font-size:11px}.dream[data-state=lucid] .scene-caption{padding-bottom:9px}}
.cat-delivery{display:contents}.delivery-cat{display:none}
.dream[data-state=curious] .cat-delivery{order:2;display:flex;position:relative;align-items:center;justify-content:center;max-width:100%;padding-left:75px;min-height:83px;isolation:isolate;animation:cat-delivers 1.15s cubic-bezier(.22,.7,.25,1) both}
.dream[data-state=curious] .delivery-cat{display:block;position:absolute;width:112px;height:87px;left:0;bottom:0;z-index:-1;animation:delivery-steps .18s ease-in-out 6 alternate}
.dream[data-state=curious] .cat-delivery:after{content:'';position:absolute;left:81px;top:31px;width:19px;height:13px;background:var(--paper);border:2px solid var(--ink);border-radius:9px;rotate:-15deg;pointer-events:none}
.dream[data-state=curious] button.caption-kicker{animation:none;rotate:-2deg;transition:box-shadow .18s,background .18s}
@keyframes cat-delivers{0%{opacity:0;transform:translateX(120px)}12%{opacity:1}85%{transform:translateX(-5px)}100%{opacity:1;transform:translateX(0)}}
@keyframes delivery-steps{from{transform:translateY(0) rotate(-2deg)}to{transform:translateY(-4px) rotate(2deg)}}
@media(max-width:759px){.dream[data-state=curious] .cat-delivery{padding-left:54px;width:min(360px,100%);min-height:75px}.dream[data-state=curious] .delivery-cat{width:89px;height:69px}.dream[data-state=curious] .cat-delivery:after{left:58px;top:29px;width:16px;height:12px}.dream[data-state=curious] .cat-delivery button{font-size:16px;padding:11px 13px;gap:9px}}
@media(prefers-reduced-motion:reduce){.dream[data-state=curious] .cat-delivery,.dream[data-state=curious] .delivery-cat{animation:none}}
.delivery-point{display:none;pointer-events:none}
.dream[data-state=curious] .cat-delivery:not([data-acknowledged]) .delivery-point{display:block;position:absolute;left:39px;top:auto;bottom:-12px;width:85px;height:59px;z-index:2;visibility:hidden;transform-origin:14% 77%;animation:cat-points-to-button 2.6s 5s ease-in-out both}
@keyframes cat-points-to-button{0%,100%{visibility:hidden;transform:translateY(8px)}1%{visibility:visible;transform:translateY(8px)}18%,48%,76%{visibility:visible;transform:translateY(0)}33%,62%{visibility:visible;transform:translate(3px,-2px)}99%{visibility:visible;transform:translateY(8px)}}
@media(max-width:759px){.dream[data-state=curious] .cat-delivery:not([data-acknowledged]) .delivery-point{width:65px;height:45px;left:29px;top:auto;bottom:-9px}}
@media(prefers-reduced-motion:reduce){.dream[data-state=curious] .cat-delivery:not([data-acknowledged]) .delivery-point{animation-name:cat-points-static}}
@keyframes cat-points-static{0%,100%{visibility:hidden}10%,90%{visibility:visible}}
