.welcome-screen{position:fixed;z-index:30;top:0;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,720px,75dvh);height:100dvh;overflow:hidden;background:#f4e7c7;color:#5a3823}
.title-layout{height:100%;display:flex;flex-direction:column;padding:max(28px,env(safe-area-inset-top)) 0 max(18px,env(safe-area-inset-bottom));background:#f4e7c7;gap:14px;align-items:center}
.title-name{position:relative;z-index:1;text-align:center;flex:none;width:calc(100% - 32px);max-width:440px;padding:6px 10px;border:6px solid transparent;border-image:url('art/ui-wood/panel.png') 12 / 6px / 0 stretch;background:#fff5de;background-clip:padding-box;image-rendering:pixelated}.title-name h1{font-size:clamp(22px,6.5vw,36px);font-weight:900;line-height:1.2;letter-spacing:.035em;margin:0;color:#a1452b}.title-name p{margin:6px 0 0;font-size:12px;font-weight:700;color:#6b4a31}
.title-art{position:absolute;top:0;left:0;width:100%;height:68%;object-fit:cover;object-position:center;image-rendering:pixelated}
.welcome-actions{position:relative;z-index:1;flex:none;display:flex;flex-direction:column;gap:10px;width:76%;max-width:330px;margin-top:auto}.welcome-actions small{font-size:10px;text-align:center;color:#856640;line-height:1.5}
.welcome-button{display:flex;justify-content:center;align-items:center;min-height:45px;font-size:14px;font-weight:800;line-height:1.4;padding:7px 12px;border:6px solid transparent;border-image:url('art/ui-wood/panel.png') 12 / 6px / 0 stretch;border-radius:0;background:#fff5de;background-clip:padding-box;color:#765032;box-shadow:none;image-rendering:pixelated}
.welcome-primary{background:#bf5032;background-clip:padding-box;color:#fffbea}.welcome-button:active{transform:translateY(2px)}
.story-layout{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;height:100%;padding:max(18px,env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom));gap:16px}
.story-top{display:flex;align-items:center;justify-content:space-between;color:#937249;font-size:11px}.story-top .welcome-button{min-height:34px;font-size:11px;padding:3px 8px}
.story-art{width:100%;height:100%;min-height:0;object-fit:contain;image-rendering:pixelated}.story-copy{padding:14px 12px;border:6px solid transparent;border-image:url('art/ui-wood/panel.png') 12 / 6px / 0 stretch;background:#fff5de;background-clip:padding-box;image-rendering:pixelated}.story-copy h2{font-size:16px;line-height:1.6;color:#945333;margin:0 0 9px}.story-copy p{font-size:13px;line-height:1.9;margin:0;color:#7b5b3b}
.journey-setting{width:100%;margin-top:10px;padding:12px;border:1px solid #c5a370;background:#fff3d6;border-radius:4px;color:#795335;font-size:12px}.restart-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px}.restart-actions .primary{margin:0}.restart-actions .quiet{padding:9px 16px}
.journey-target{outline:2px dashed #5e9674!important;outline-offset:3px}
.guide-steps{list-style:none;padding:0;margin:0;display:grid;gap:15px}.guide-steps li{display:flex;align-items:flex-start;gap:12px}.guide-steps img{width:32px;height:32px;object-fit:contain;flex:none}.guide-steps b{font-size:12px;color:#7b4c2f}.guide-steps p{font-size:11px;line-height:1.7;margin:4px 0 0;color:#86623f}
@media(max-width:370px){.title-layout{padding-top:24px;gap:10px}.welcome-actions{gap:8px}.story-layout{padding-left:12px;padding-right:12px;gap:12px}.story-copy h2{font-size:14px}.story-copy p{font-size:12px}.welcome-button{font-size:13px;min-height:43px}}
@media(max-height:600px){.title-layout{padding-top:12px;padding-bottom:10px;gap:6px}.title-name h1{font-size:23px}.title-name p{font-size:10px;margin-top:3px}.welcome-actions{gap:5px}.welcome-button{min-height:34px;font-size:11px;padding:3px 9px}.story-layout{padding:10px;gap:8px}.story-copy{padding:8px}.story-copy h2{font-size:13px;margin-bottom:5px}.story-copy p{font-size:11px;line-height:1.6}}
