/* The sleep diary: ink, butter yellow, quiet breathing. */
:root{--butter:#e9d88c;--night-blue:#787d9c;--paper:#f6f3e9;--pencil:#45474c}
.dream-layout{grid-template-columns:1.05fr 1fr;gap:6%;align-items:center}
.experience-top .back svg,.question-controls .back svg{width:20px;height:20px}
.experience-top .back span,.question-controls .back span{font-size:11px}
.question-content{padding-top:0}
.question-heading .section-label{color:#c2c6b8;letter-spacing:1.8px;font-size:10px}
.question-heading .section-label i{font-style:normal;opacity:.35;margin-inline:2px}
.question-heading h2{font-size:clamp(29px,3.2vw,43px);line-height:1.35;margin-top:17px}
.question-note{font-size:12px;line-height:1.8;margin:17px 0 25px;color:#adb5ac}
.doodle-scene{position:relative;isolation:isolate;background:var(--paper);border-radius:12px 12px 54px 12px;color:var(--pencil);height:490px;min-width:0;margin:0;overflow:hidden;border:1px solid #eae4d4}
.doodle-scene:before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 45% 52%,#fff8 0%,transparent 64%);z-index:-1}
.doodle-topline{position:absolute;top:27px;left:29px;right:29px;display:flex;justify-content:space-between;gap:15px;letter-spacing:2px;font-size:8px;color:#85847b;z-index:3}
.doodle-topline span:last-child{letter-spacing:1px;white-space:nowrap}
.doodle-art{position:absolute;inset:68px 5px 62px;display:grid;place-items:center}
.doodle-character{width:100%;height:100%;object-fit:contain;animation:dream-breath 7s ease-in-out infinite;transform-origin:50% 65%;filter:drop-shadow(0 5px 3px #aba58d0b)}
.doodle-scene[data-chapter=turn] .doodle-character{animation:dream-roll 8s ease-in-out infinite;transform-origin:50% 60%}
.doodle-scene[data-chapter=disturbance] .doodle-character{animation-duration:8s}
.doodle-scene[data-chapter=material] .doodle-character,.doodle-scene[data-chapter=durability] .doodle-character{animation:dream-rest 9s ease-in-out infinite}
.doodle-scene[data-tone=active] .doodle-character{animation:dream-rock 5.5s ease-in-out infinite}
.doodle-scene[data-tone=slow] .doodle-character{animation-duration:13s}
.dream-moon{position:absolute;right:10%;top:15%;width:55px;height:55px;color:var(--butter);transform:rotate(-9deg);animation:dream-moon 14s ease-in-out infinite;z-index:2}
.dream-star{position:absolute;width:26px;height:26px;color:var(--butter);z-index:2;animation:dream-twinkle 7s ease-in-out infinite}
.star-one{left:9%;top:58%;transform:rotate(-10deg)}
.star-two{right:12%;bottom:22%;width:20px;height:20px;animation-delay:-3s}
.dream-spark{position:absolute;left:16%;top:23%;color:#8d90a0;font:22px Georgia,serif;animation:dream-twinkle 9s ease-in-out infinite -2s;transform:rotate(12deg)}
.dream-wind{display:none;position:absolute;right:11%;top:54%;width:53px;height:45px;z-index:2;transform:rotate(-13deg)}
.doodle-scene[data-chapter=heat] .dream-wind{display:block}
.dream-wind i{display:block;height:11px;margin-bottom:3px;border-top:1px solid #999eab;border-radius:50%;opacity:.5;animation:dream-wind 6s ease-in-out infinite}
.dream-wind i:nth-child(2){width:80%;margin-left:14%;animation-delay:-2s}
.dream-wind i:nth-child(3){width:65%;margin-left:24%;animation-delay:-4s}
.doodle-scene[data-tone=warm] .dream-wind i{border-color:#ba967c;animation-duration:9s}
.dream-response{position:absolute;top:72px;left:28px;max-width:53%;padding:10px 14px;background:#fffdf4;border:1px solid #dfd8c4;border-radius:13px 13px 13px 2px;opacity:0;transform:translateY(5px);transition:opacity .35s,transform .35s;z-index:4;box-shadow:0 4px 15px #71644905}
.dream-response.is-visible{opacity:1;transform:translateY(0)}
.dream-response span{display:block;font-size:9px;color:#969181;letter-spacing:1px;margin-bottom:2px}
.dream-response strong{display:block;font-size:12px;font-weight:500;line-height:1.6}
.doodle-scene figcaption{position:absolute;bottom:25px;left:29px;right:30px;display:flex;align-items:center;gap:11px;font-size:12px;line-height:1.7}
.caption-stroke{width:22px;height:8px;flex-shrink:0;border-top:1px solid #8e8c7d;border-radius:50%;transform:rotate(-7deg)}
.doodle-scene figcaption small{font-size:8px;letter-spacing:1px;color:#939082;margin-left:auto;white-space:nowrap}
.dream-answers{gap:11px}
.dream-choice{min-height:89px;padding:16px 14px;gap:11px;border-radius:7px;background:#ffffff02;border-color:#d5d9d02b}
.dream-choice:hover{border-color:#c8c8b66e;background:#fff9e909;transform:translateY(-1px)}
.dream-choice.selected{background:#e9dfb7;border-color:#e9dfb7;color:#353b42}
.dream-choice:focus-within{outline-color:var(--butter)}
.choice-indicator{width:18px;height:18px;border:1px solid #929b8c88;border-radius:50%;display:grid;place-items:center;flex-shrink:0;transition:background .2s,border-color .2s}
.choice-indicator svg{width:14px;height:14px;opacity:0}
.selected .choice-indicator{background:#777b94;border-color:#777b94;color:#fff}
.selected .choice-indicator svg{opacity:1}
.choice-copy{min-width:0}
.dream-choice b{font-size:13px;font-weight:550;line-height:1.5}
.dream-choice small{font-size:10px;line-height:1.7;color:#a8b0a7;margin-top:4px}
.dream-choice.selected small{color:#5f665f}
.dream-answers.material-answers .dream-choice{min-height:70px;padding:12px 14px}
.dream-answers.material-answers .dream-choice:last-child{min-height:63px}
.dream-layout .feedback{font-size:10px;line-height:1.8;min-height:29px;margin-top:13px;color:#b6b9a8}
.dream-layout .question-controls{padding-top:18px;margin-top:9px}
.dream-layout .dream-next{border-radius:5px;background:var(--butter);color:#323941;gap:30px;font-size:13px;min-height:48px;transition:opacity .2s,background .2s,transform .2s}
.dream-next svg{width:23px;height:23px}
.dream-layout .dream-next:hover{background:#f2e4af}
.dream-layout .dream-next:disabled{opacity:.3}
.in-journey .site-header{height:84px}
.in-journey .nav-start{display:none}
.in-journey .footer{margin-top:10px}
@keyframes dream-breath{0%,100%{transform:translateY(1px) scale(1)}50%{transform:translateY(-2px) scale(1.013)}}
@keyframes dream-roll{0%,100%{transform:rotate(-1.4deg) translateY(1px)}50%{transform:rotate(1.4deg) translateY(-2px)}}
@keyframes dream-rest{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes dream-rock{0%,40%,100%{transform:rotate(0)}50%{transform:rotate(-.8deg)}60%{transform:rotate(.8deg)}70%{transform:rotate(0)}}
@keyframes dream-moon{0%,100%{transform:rotate(-9deg) translateY(0)}50%{transform:rotate(-3deg) translateY(-4px)}}
@keyframes dream-twinkle{0%,100%{opacity:.6}50%{opacity:1}}
@keyframes dream-wind{0%,100%{transform:translateX(-3px);opacity:.2}50%{transform:translateX(4px);opacity:.7}}
@media(min-width:1450px){.doodle-scene{height:530px}}
@media(max-width:1100px){.dream-layout{gap:4%}.doodle-scene{height:470px}.doodle-topline{left:23px;right:23px;font-size:7px}.doodle-scene figcaption{left:23px;right:25px;font-size:11px}.doodle-scene figcaption small{display:none}.dream-choice{padding:13px 11px;gap:9px}.dream-choice b{font-size:12px}.dream-choice small{font-size:10px}}
@media(max-width:760px){
 .in-journey .site-header{height:68px}.in-journey .experience{padding-top:12px}.in-journey .experience-top{margin-bottom:15px;min-height:28px}.experience-top .back{gap:7px}.experience-top .back svg{width:17px}.experience-top .back span{font-size:10px}
 .dream-layout{display:flex;flex-direction:column;gap:0;align-items:stretch}.dream-layout .question-content{display:contents}.question-heading{order:1}.doodle-scene{order:0}.dream-answers{order:2}.dream-layout .feedback{order:3}.dream-layout .question-controls{order:4}
 .question-heading .section-label{font-size:9px;letter-spacing:1.3px}.question-heading h2{font-size:28px;line-height:1.35;margin-top:9px;transform:skewX(-5deg)}.question-heading h2 br{display:none}.question-note{font-size:11px;margin:9px 0 16px;line-height:1.7}
 .doodle-scene{height:clamp(200px,27svh,248px);border-radius:9px 9px 32px 9px;margin-bottom:18px}.doodle-topline{top:14px;left:19px;right:19px;font-size:6px;letter-spacing:1.5px}.doodle-art{inset:12px 12px 25px}.doodle-character{object-fit:contain}
 .dream-moon{width:35px;height:35px;right:10%;top:20%}.dream-star{width:21px;height:21px}.star-one{left:10%;top:62%}.star-two{right:12%;bottom:23%;width:16px;height:16px}.dream-spark{left:14%;top:25%;font-size:17px}.dream-wind{right:13%;top:55%;width:34px}.dream-wind i{height:7px;margin-bottom:2px}
 .dream-response{top:40px;left:17px;padding:7px 10px;max-width:45%;border-radius:9px 9px 9px 1px}.dream-response span{font-size:7px;letter-spacing:.5px;margin-bottom:1px}.dream-response strong{font-size:10px}
 .doodle-scene figcaption{bottom:13px;left:19px;right:19px;font-size:10px;gap:8px}.caption-stroke{width:16px;height:6px}.doodle-scene figcaption small{display:block;font-size:7px;letter-spacing:.5px}
 .dream-answers{gap:9px}.dream-choice{min-height:78px;padding:12px;gap:9px;border-radius:6px}.dream-choice b{font-size:13px}.dream-choice small{font-size:10px;line-height:1.65;margin-top:3px}.choice-indicator{width:17px;height:17px}.choice-indicator svg{width:12px;height:12px}
 .dream-layout .feedback{margin-top:10px;min-height:25px;font-size:10px}.dream-layout .question-controls{padding-top:15px;margin-top:3px}.dream-layout .dream-next{font-size:12px;min-height:46px;padding:12px 18px;gap:23px}.question-controls .back{gap:7px}.question-controls .back span{font-size:11px}
 .dream-answers.material-answers .dream-choice{min-height:63px;padding:10px 12px}.dream-answers.material-answers .dream-choice:last-child{min-height:56px}
}
@media(max-width:365px){.question-heading h2{font-size:25px}.dream-choice{gap:7px;padding:11px 9px}.dream-choice b{font-size:12px}.dream-choice small{font-size:9px}.doodle-scene figcaption small{display:none}.question-note{font-size:10px}}
.motion-paused .doodle-character,.motion-paused .dream-moon,.motion-paused .dream-star,.motion-paused .dream-spark,.motion-paused .dream-wind i{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.doodle-character,.dream-moon,.dream-star,.dream-spark,.dream-wind i{animation:none!important}.dream-response,.dream-choice{transition:none!important}}

/* Each answer starts with its own animated character, then a short explanation. */
.dream-choice{display:grid;grid-template-rows:86px auto;gap:10px;padding:9px 10px 13px;min-height:153px;align-items:start}
.choice-illustration{position:relative;display:block;width:100%;height:86px;border-radius:4px;background:#f2efe6;overflow:hidden;pointer-events:none}
.choice-illustration img{width:100%;height:100%;object-fit:contain;transform-origin:50% 62%;animation:dream-breath 8s ease-in-out infinite}
.dream-choice:nth-child(2) .choice-illustration img{animation-delay:-2s}
.dream-choice:nth-child(3) .choice-illustration img{animation-delay:-4s}
.dream-choice:nth-child(4) .choice-illustration img{animation-delay:-6s}
.choice-illustration[data-chapter=turn] img{animation:dream-roll 9s ease-in-out infinite}
.choice-illustration[data-tone=active] img{animation:dream-rock 5.5s ease-in-out infinite}
.choice-illustration[data-tone=slow] img{animation-duration:14s}
.choice-breeze{display:none;position:absolute;top:20%;right:13%;width:16px;transform:rotate(-12deg)}
.choice-illustration[data-chapter=heat] .choice-breeze{display:block}
.choice-breeze i{display:block;height:6px;border-top:1px solid #949cb3;border-radius:50%;animation:dream-wind 7s ease-in-out infinite}
.choice-breeze i:nth-child(2){width:80%;animation-delay:-2s}
.choice-breeze i:nth-child(3){width:60%;animation-delay:-4s}
.choice-illustration[data-tone=warm] .choice-breeze{transform:rotate(-85deg);right:24%;top:14%}
.choice-illustration[data-tone=warm] .choice-breeze i{border-color:#bc9763}
.choice-indicator{position:absolute;top:15px;right:16px;background:#fffdf2;z-index:1}
.choice-copy{display:block;padding:0 3px}
.dream-choice small{margin-top:2px}
.dream-choice.selected .choice-illustration{background:#fbf5e3}
.dream-answers.material-answers .dream-choice{display:grid;grid-template-columns:48px 1fr;grid-template-rows:auto;align-items:center;gap:10px;min-height:74px;padding:10px}
.material-answers .choice-illustration{width:48px;height:48px;background:#eeeadf}
.material-answers .choice-indicator{display:none}
.material-answers .selected .choice-copy:after{content:'✓';position:absolute;right:9px;top:5px;font-size:10px;color:#52634a}
.dream-answers.material-answers .dream-choice:last-child{min-height:68px}
@media(min-width:761px){.dream-layout .doodle-scene{height:560px}.dream-layout .question-heading h2{font-size:38px}}
@media(max-width:1100px) and (min-width:761px){.dream-choice{grid-template-rows:73px auto;min-height:143px}.choice-illustration{height:73px}.dream-layout .question-heading h2{font-size:33px}}
@media(max-width:760px){.dream-layout .doodle-scene{height:190px;margin-bottom:19px}.question-heading h2{font-size:27px}.question-note{margin-bottom:16px}.dream-choice{grid-template-rows:67px auto;min-height:129px;padding:7px 8px 11px;gap:8px}.choice-illustration{height:67px}.choice-indicator{top:12px;right:13px;width:16px;height:16px}.choice-copy{padding:0 2px}.dream-choice b{font-size:12px}.dream-choice small{font-size:10px;line-height:1.6}.dream-answers.material-answers .dream-choice{grid-template-columns:38px 1fr;gap:6px;min-height:68px;padding:9px 7px}.material-answers .choice-illustration{width:38px;height:44px}.material-answers .dream-choice b{font-size:11px}.material-answers .dream-choice small{font-size:9px}.dream-answers.material-answers .dream-choice:last-child{min-height:61px}}
.motion-paused .choice-illustration img,.motion-paused .choice-breeze i{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.choice-illustration img,.choice-breeze i{animation:none!important}}
