/* Center the painting story around the game's own five tool families. */
.journey{height:calc(520svh + var(--intro-distance))}
.stage{padding:0 4.5vw}
.stage::before{content:"";position:absolute;inset:0;pointer-events:none;background:url('assets/frames-expanded/frame-000.webp') center/cover no-repeat;mask-image:linear-gradient(to bottom,transparent,#000 15%,#000 85%,transparent);opacity:var(--paint-reveal,0)}
.scene-layout{display:flex;flex-direction:column;align-items:center;position:relative;width:100%}
.story-copy{padding:24px 0 0;text-align:center;flex:none;width:100%;min-height:127px}
.story-copy h2{font-size:clamp(35px,4.15vw,60px);line-height:1.08;letter-spacing:-.035em;min-height:0}
.story-description{max-width:660px;font-size:16px;line-height:1.5;min-height:1.5em;margin:17px auto 0}
.story-copy .scroll-cue{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;margin:0}
.scene-wrap{flex:1;min-height:0;align-self:center;width:100%;max-width:1120px;margin:-14px 0 -20px;display:flex;justify-content:center}
#island{width:100%;height:100%;min-height:0;object-fit:contain;mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent),linear-gradient(to bottom,transparent,#000 10%,#000 90%,transparent)}
.sequence-controls{height:145px;display:flex;flex-direction:column;justify-content:center;gap:13px;border:0;position:relative;z-index:3;flex-wrap:nowrap;padding:0 0 20px}
.game-toolbar{display:flex;align-items:center;justify-content:center;gap:6px;padding:9px 13px 7px;border-radius:27px;background:#174b6b91;border:1px solid #c4e8f539;box-shadow:0 7px 0 #255b7b29,0 16px 32px #1645641a}
.game-toolbar button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:78px;min-height:78px;padding:6px 5px 7px;background:transparent;border-radius:18px;color:var(--paper);font:450 13px var(--display);transition:background .2s,box-shadow .2s}
.game-toolbar img{width:51px;height:51px;object-fit:contain;filter:saturate(.7);opacity:.72;transition:transform .2s,filter .2s,opacity .2s}
.game-toolbar button[aria-current=step]{background:#fff9e8;box-shadow:0 3px 0 #284e6770;color:var(--ink)}
.game-toolbar button[aria-current=step] img{filter:saturate(1);opacity:1;transform:translateY(-3px) scale(1.07)}
.game-toolbar button:hover img,.game-toolbar button:focus-visible img{filter:saturate(1);opacity:1;transform:translateY(-3px)}
.game-toolbar button:hover{background:#ffffff18}
.game-toolbar button[aria-current=step]:hover{background:#fff9e8}
.sequence-foot{width:min(540px,100%);height:21px;display:flex;align-items:center;justify-content:center;gap:23px}
.tool-hint{font-size:10px;margin:0;white-space:nowrap;color:#133e54}
.story-replay{padding:4px 0;background:none;font:450 12px var(--display);white-space:nowrap}
.story-replay span{font:500 17px system-ui;margin-left:4px}
.progress-wrap{gap:0;width:70px;flex:none;padding:0}
.progress-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.progress{width:70px;height:3px;background:#2d759a55}
.still-intro{text-align:center;max-width:none}
.still-story article{text-align:center;display:flex;flex-direction:column;gap:0;min-height:0}
.still-story article p{max-width:520px;margin:18px auto 0}
.still-story article img{max-width:820px;margin:-25px auto -30px}
.still-status{text-align:center;font-size:15px;margin:0 auto 30px}.still-status[hidden]{display:none}.still-status button{padding:10px 18px;margin-left:10px;border-radius:25px;background:var(--cream)}
@media(min-width:1700px){.story-copy h2{font-size:64px}.story-description{font-size:18px}}
@media(max-width:760px){
  .journey{height:calc(460svh + var(--intro-distance))}
  .stage{padding:0 18px}
  .story-copy{padding:26px 0 0;min-height:153px;max-width:520px}
  .story-copy h2{font-size:clamp(31px,8.8vw,45px);line-height:1.08;max-width:470px;margin:auto;text-wrap:balance}
  .story-description{font-size:13px;line-height:1.5;max-width:320px;margin:14px auto 0;min-height:3em;text-wrap:balance}
  .scene-wrap{width:calc(100% + 30px);margin:-28px -15px -25px;min-height:0}
  .sequence-controls{height:134px;width:100%;padding:0 0 20px;gap:13px;flex-wrap:nowrap}
  .game-toolbar{width:min(370px,100%);gap:3px;padding:8px 7px 6px;border-radius:24px}
  .game-toolbar button{width:auto;min-width:0;flex:1;min-height:72px;padding:5px 2px 6px;font-size:11px;gap:4px;border-radius:17px}
  .game-toolbar img{width:44px;height:44px}
  .sequence-foot{height:18px;gap:18px;justify-content:space-between;padding:0 5px}
  .tool-hint{font-size:9px}.story-replay{font-size:11px}.progress-wrap{width:40px;flex:none;flex-direction:row;padding:0}.progress{width:40px}
  .still-story article img{margin:0 auto}
}
@media(max-height:720px) and (min-width:761px){
  .story-copy{padding-top:13px;min-height:101px}.story-copy h2{font-size:39px}.story-description{font-size:13px;margin-top:12px}
  .sequence-controls{height:119px;padding-bottom:14px;gap:9px}.game-toolbar button{width:65px;min-height:65px;font-size:11px}.game-toolbar img{width:40px;height:40px}
}
@media(max-height:650px) and (max-width:760px){
  .story-copy{padding-top:13px;min-height:120px}.story-copy h2{font-size:29px}.story-description{font-size:11px;margin-top:10px;max-width:280px}
  .sequence-controls{height:116px;padding-bottom:13px;gap:10px}.game-toolbar button{min-height:62px;font-size:10px}.game-toolbar img{width:36px;height:36px}.game-toolbar{padding-top:6px;padding-bottom:5px}
  .scene-wrap{margin-top:-18px;margin-bottom:-14px}
}
@media(max-width:370px){.game-toolbar img{width:37px;height:37px}.tool-hint{font-size:8px}.sequence-foot{gap:10px;padding:0}.progress-wrap,.progress{width:25px}}
