.bedtime-page{
  --night:0;
  margin:0;
  min-height:100dvh;
  height:auto;
  overflow-y:auto;
  background:linear-gradient(150deg,#eee8f6,#dfe5ef);
  color:#35354d;
  font-family:"DM Sans",system-ui,sans-serif}
.bedtime-page *{
  box-sizing:border-box}
.bedtime-page [hidden]{
  display:none!important}
.bedtime-app{
  max-width:1100px;
  margin:auto;
  padding:0 24px 30px}
.bedtime-bar{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:78px}
.bedtime-bar>a{
  margin-right:12px}
.bedtime-bar img{
  width:112px;
  height:auto;
  display:block}
.bedtime-title{
  font-weight:800;
  flex:1;
  font-size:17px}
.bedtime-page button,.bedtime-page a{
  touch-action:manipulation}
.bedtime-page button{
  font:inherit;
  cursor:pointer;
  border:0;
  min-height:48px;
  border-radius:18px;
  color:#383951;
  background:#ffffffb8;
  padding:10px 18px;
  font-weight:750}
.bedtime-page button:disabled{
  cursor:default}
.bedtime-page button:focus-visible,.bedtime-page a:focus-visible{
  outline:4px solid #7762bd;
  outline-offset:4px}
.bedtime-page .bedtime-primary{
  background:#6963a4;
  color:white;
  padding:16px 30px;
  min-height:58px;
  box-shadow:0 5px 0 #514f83;
  font-size:18px}
.bedtime-primary:active{
  transform:translateY(2px);
  box-shadow:0 3px 0 #514f83}
.bedtime-intro{
  min-height:560px;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:40px;
  padding:24px 24px 40px}
.intro-art{
  position:relative;
  min-height:420px;
  border-radius:48% 48% 34% 34%;
  background:linear-gradient(160deg,#e1d6e7,#becadd);
  display:grid;
  place-items:center;
  overflow:hidden}
.intro-art:after{
  content:"";
  position:absolute;
  bottom:7%;
  left:12%;
  right:12%;
  height:15%;
  background:#88779c33;
  border-radius:50%;
  filter:blur(16px)}
.intro-art img{
  width:88%;
  max-height:430px;
  object-fit:contain;
  z-index:1}
.intro-art>span{
  position:absolute;
  right:10%;
  top:2%;
  font:100px Georgia;
  color:#fff4c6;
  transform:rotate(-15deg)}
.eyebrow{
  font-size:12px;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:#686984}
.intro-copy h1{
  font-family:"Bricolage Grotesque",system-ui,sans-serif;
  font-size:clamp(36px,4.6vw,58px);
  line-height:1.05;
  letter-spacing:-.04em;
  margin:20px 0}
.intro-copy>p:not(.eyebrow){
  font-size:19px;
  line-height:1.5;
  max-width:400px}
.intro-copy .intro-hint{
  font-size:13px!important;
  color:#62627b;
  margin-top:24px}
.bedtime-house{
  list-style:none;
  display:flex;
  justify-content:center;
  gap:16px;
  margin:4px auto 18px;
  padding:0}
.bedtime-house li{
  width:110px;
  height:90px;
  background:#fff2d8;
  border:3px solid transparent;
  border-radius:26px 26px 16px 16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  transition:background 1s,filter 1s;
  position:relative}
.bedtime-house li.current{
  border-color:#827bb7}
.bedtime-house img{
  height:52px;
  width:60px;
  object-fit:contain}
.bedtime-house span{
  font-size:12px;
  font-weight:800}
.bedtime-house li.asleep{
  background:#555b7a;
  color:#f1e9cc;
  filter:brightness(.8)}
.bedtime-house li.asleep img{
  filter:brightness(.5);
  transform:rotate(-12deg)}
.bedtime-room{
  height:440px;
  isolation:isolate;
  position:relative;
  border-radius:32px;
  overflow:hidden;
  background:url('/assets/img/scenes/game-picks-bedtime/scene.webp') center/cover;
  border:6px solid #fff9;
  box-shadow:0 18px 40px #33345014}
.room-shade{
  position:absolute;
  inset:0;
  background:#18213c;
  opacity:calc(var(--night)*.22);
  transition:opacity 1.5s;
  z-index:4;
  pointer-events:none}
.room-name{
  position:absolute;
  left:16px;
  top:14px;
  z-index:5;
  background:#fff6e9e6;
  padding:8px 14px;
  border-radius:14px;
  color:#554351;
  font-size:14px;
  font-weight:800}
.bedroom-character{
  position:absolute;
  left:36%;
  bottom:17%;
  width:40%;
  height:76%;
  z-index:2;
  transition:transform 1.2s}
.bedroom-character>#character-image{
  height:100%;
  width:100%;
  object-fit:contain;
  object-position:bottom;
  filter:drop-shadow(0 8px 5px #54351830)}
.bedtime-room[data-friend="luna"] .bedroom-character{
  height:65%;
  left:36%;
  bottom:23%}
.bedtime-room[data-friend="milo"] .bedroom-character{
  height:61%;
  left:36%;
  bottom:23%}
.worn-pajamas{
  position:absolute;
  width:50%;
  height:30%;
  left:25%;
  bottom:7%;
  border-radius:28% 28% 32% 32%;
  clip-path:polygon(20% 0,80% 0,100% 30%,78% 39%,82% 100%,18% 100%,22% 39%,0 30%);
  background-image:radial-gradient(#e8effc 2px,transparent 3px);
  background-size:18px 18px;
  box-shadow:inset 0 -10px 14px #0002}
.held-teddy{
  position:absolute;
  left:8%;
  bottom:0;
  width:38%;
  height:42%;
  object-fit:contain;
  z-index:3}
.bed-pillow{
  position:absolute;
  left:7%;
  bottom:9%;
  width:80%;
  height:27%;
  object-fit:contain;
  z-index:-1}
.tucked-blanket{
  position:absolute;
  left:0;
  bottom:-4%;
  width:100%;
  height:40%;
  background:#9f9ec8;
  border:4px solid #d9dbf0;
  border-bottom:0;
  border-radius:32px 32px 12px 12px;
  box-shadow:inset 0 -18px 25px #4c557a28;
  background-image:repeating-linear-gradient(0deg,transparent 0 35px,#ffffff1a 36px 38px)}
.moving-brush{
  position:absolute;
  left:50%;
  top:42%;
  width:34%;
  height:34%;
  object-fit:contain;
  z-index:5;
  transform:rotate(-25deg);
  animation:brush-teeth .3s ease-in-out alternate infinite}
.sleeping-mark{
  position:absolute;
  right:0;
  top:10%;
  font-size:28px;
  font-weight:900;
  color:#fff2c4;
  letter-spacing:7px;
  transform:rotate(-15deg)}
.bedtime-objects{
  position:absolute;
  left:4%;
  right:4%;
  bottom:3%;
  display:flex;
  justify-content:center;
  gap:20px;
  z-index:6}
.bedtime-objects button{
  min-width:150px;
  min-height:112px;
  background:#fff6e5f2;
  border:3px solid #fff9;
  border-radius:28px;
  display:flex;
  align-items:center;
  gap:8px;
  color:#4e4651;
  padding:8px 18px;
  box-shadow:0 5px 0 #624f3d40}
.bedtime-objects img{
  height:86px;
  width:90px;
  object-fit:contain;
  filter:drop-shadow(0 3px 2px #0002)}
.bedtime-objects button[data-choice="pink"] img{
  filter:hue-rotate(110deg) saturate(.8)}
.bedtime-objects button:disabled{
  opacity:.5;
  box-shadow:none}
.bedtime-objects button.chosen{
  opacity:.9}
.bedtime-objects.helping button:not(:disabled){
  outline:5px solid #f5d586;
  outline-offset:3px}
.bedtime-objects[data-action="light"]{
  justify-content:flex-start;
  left:4%;
  bottom:5%}
.bedtime-objects[data-action="light"] button{
  min-width:130px}
.lights-out .room-shade{
  opacity:.76}
.lights-out .bedroom-character{
  transform:translateY(5%) rotate(-8deg)}
.lights-out .tucked-blanket{
  height:51%}
.lights-out .bedtime-objects{
  opacity:0;
  pointer-events:none}
.room-rest{
  position:absolute;
  inset:0;
  z-index:7;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  color:#fff6d8;
  text-shadow:0 3px 6px #111b2b}
.room-rest>span{
  font:80px Georgia}
.room-rest p{
  font-size:28px;
  font-weight:800;
  margin:0}
.bedtime-prompt{
  text-align:center;
  min-height:114px;
  padding:18px 0 10px}
.bedtime-prompt>p{
  margin:0}
.bedtime-prompt #instruction{
  font-size:23px;
  font-weight:800;
  line-height:1.25}
.bedtime-prompt #model{
  min-height:26px;
  font-size:17px;
  color:#646383;
  margin:7px 0 9px}
.bedtime-prompt .bedtime-primary{
  min-height:48px;
  font-size:16px;
  padding:11px 26px}
.bedtime-communication{
  display:flex;
  gap:12px;
  justify-content:center;
  margin:10px 0 22px}
.bedtime-communication button{
  min-width:100px;
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:center}
.bedtime-communication span{
  font-size:21px}
.bedtime-ending{
  text-align:center;
  min-height:580px;
  padding:24px 0}
.ending-moon{
  font:105px Georgia;
  color:#9c894e}
.bedtime-ending h2{
  font-size:42px;
  letter-spacing:-.025em;
  margin:5px 0 12px}
.bedtime-ending>p{
  font-size:18px;
  color:#62627b}
.sleeping-house{
  display:flex;
  justify-content:center;
  gap:16px;
  margin:34px 0}
.sleeping-house>div{
  width:180px;
  padding:24px 14px;
  background:#f5e6cb;
  border-radius:70px 70px 20px 20px;
  display:flex;
  flex-direction:column;
  gap:14px}
.sleeping-house img{
  height:130px;
  object-fit:contain}
.sleeping-house span{
  font-weight:750;
  font-size:13px}
.sleeping-house .asleep{
  background:#454b69;
  color:#f3e6be}
.sleeping-house .asleep img{
  filter:brightness(.55);
  transform:rotate(-10deg)}
.bedtime-ending>a{
  display:block;
  margin:25px;
  color:#575481;
  font-weight:800;
  min-height:44px}
.bedtime-pause{
  position:fixed;
  inset:0;
  z-index:1000;
  background:#292a49b8;
  display:grid;
  place-items:center;
  padding:24px}
.bedtime-pause>div{
  background:#f5f0fb;
  border-radius:32px;
  padding:32px;
  text-align:center;
  max-width:430px;
  box-shadow:0 20px 50px #1116}
.bedtime-pause span{
  font:65px Georgia;
  color:#8882af}
.bedtime-pause h2{
  font-size:28px;
  margin:14px 0}
.bedtime-pause p{
  line-height:1.5}
.bedtime-pause button{
  display:block;
  width:100%;
  margin-top:18px}
#load-status{
  text-align:center;
  line-height:1.4;
  color:#5b5679;
  max-width:550px;
  margin:10px auto;
  font-size:14px}
.lw-editorial-note-game{
  max-width:680px}
.lw-editorial-note-game[open]{
  font-size:13px}

@keyframes brush-teeth{
  from{
  transform:translateX(-10px) rotate(-25deg)}
to{
  transform:translateX(12px) rotate(-10deg)}
}

@media(max-width:600px){
  .bedtime-app{
  padding:0 12px 22px}
.bedtime-bar{
  gap:7px;
  min-height:65px}
.bedtime-bar>a{
  margin-right:auto}
.bedtime-bar img{
  width:88px}
.bedtime-title{
  display:none}
.bedtime-bar button{
  padding:8px 12px;
  font-size:13px;
  min-height:44px;
  border-radius:14px}
.bedtime-intro{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:0 14px 20px;
  min-height:0}
.intro-art{
  width:220px;
  min-height:230px;
  height:230px;
  border-radius:40%}
.intro-art img{
  height:235px;
  width:100%}
.intro-art>span{
  font-size:70px;
  right:6%}
.intro-copy{
  text-align:center}
.eyebrow{
  font-size:10px}
.intro-copy h1{
  font-size:38px;
  margin:15px 0}
.intro-copy>p:not(.eyebrow){
  font-size:16px;
  margin:16px auto;
  max-width:315px}
.intro-copy .intro-hint{
  font-size:12px!important;
  margin:20px 0 0}
.bedtime-house{
  gap:10px;
  margin:2px 0 12px}
.bedtime-house li{
  height:69px;
  width:82px;
  border-radius:22px 22px 12px 12px}
.bedtime-house img{
  height:35px;
  width:42px}
.bedtime-house span{
  font-size:10px}
.bedtime-room{
  height:315px;
  border:4px solid #fff9;
  border-radius:25px;
  background-position:55% center}
.room-name{
  font-size:12px;
  left:10px;
  top:10px;
  padding:7px 10px}
.bedroom-character{
  left:26%;
  width:65%;
  height:74%;
  bottom:21%}
.bedtime-room[data-friend="luna"] .bedroom-character{
  left:30%;
  width:59%;
  height:65%;
  bottom:27%}
.bedtime-room[data-friend="milo"] .bedroom-character{
  left:25%;
  width:65%;
  height:58%;
  bottom:31%}
.bedtime-objects{
  gap:10px;
  left:3%;
  right:3%;
  bottom:3%}
.bedtime-objects button{
  min-width:115px;
  min-height:90px;
  max-width:150px;
  flex:1;
  flex-direction:column;
  gap:0;
  padding:3px 8px;
  border-radius:22px;
  font-size:12px}
.bedtime-objects img{
  width:70px;
  height:65px}
.bedtime-objects[data-action="light"]{
  justify-content:flex-start}
.bedtime-objects[data-action="light"] button{
  flex:0;
  min-width:110px}
.bedtime-prompt{
  padding:16px 0 6px;
  min-height:92px}
.bedtime-prompt #instruction{
  font-size:20px}
.bedtime-prompt #model{
  font-size:15px;
  min-height:22px;
  margin:6px 0 8px}
.bedtime-communication{
  gap:8px;
  margin:9px 0 13px}
.bedtime-communication button{
  min-width:0;
  flex:1;
  min-height:52px;
  padding:9px 12px;
  border-radius:16px;
  font-size:14px}
.bedtime-communication span{
  font-size:19px}
.room-rest>span{
  font-size:64px}
.room-rest p{
  font-size:24px}
.bedtime-ending{
  padding:8px 0;
  min-height:0}
.ending-moon{
  font-size:85px}
.bedtime-ending h2{
  font-size:32px}
.bedtime-ending>p{
  font-size:16px}
.sleeping-house{
  gap:9px;
  margin:26px 0}
.sleeping-house>div{
  width:30%;
  padding:18px 6px;
  border-radius:40px 40px 16px 16px}
.sleeping-house img{
  height:84px}
.sleeping-house span{
  font-size:11px}
.bedtime-pause>div{
  padding:24px}
.lw-editorial-note-game{
  width:100%;
  margin-top:8px}
}

@media(prefers-reduced-motion:reduce){
  .bedtime-page *{
  animation:none!important;
  transition:none!important;
  scroll-behavior:auto!important}
}


.bedtime-bar .bedtime-brand{
  display:flex;
  align-items:center;
  gap:7px;
  text-decoration:none;
  color:#4b4569;
  line-height:1.03;
  font-size:17px;
  font-weight:800}
.bedtime-bar .bedtime-brand img{
  width:42px;
  height:42px;
  object-fit:contain;
  border-radius:12px}
.bedtime-brand b{
  color:#8978ab}


.bedtime-room[data-friend="luna"] .moving-brush{
  left:40%;
  top:28%}


.bedtime-room[data-friend="milo"] #character-image{
  position:relative;
  z-index:1}
.bedtime-room[data-friend="milo"] .bed-pillow{
  left:-14%;
  bottom:8%;
  width:75%;
  height:42%;
  z-index:0}
.bedtime-room[data-friend="milo"] .tucked-blanket{
  z-index:2}

.sleeping-house .asleep {
  position: relative;
  background: repeating-linear-gradient(90deg, #454b69 0 18px, #4b5271 19px 36px);
}
.sleeping-house .asleep img { visibility: hidden; }
.sleeping-house .asleep::before {
  content: "☾";
  position: absolute;
  left: 50%;
  top: 24%;
  transform: translateX(-50%);
  font: 64px Georgia;
  color: #eee0ad;
}
@media (max-width: 600px) {
  .sleeping-house .asleep::before { font-size: 46px; top: 24%; }
}
