/* v14: artwork and controls have separate layout boxes, never overlapping text. */
.intro-splash{height:100dvh;box-sizing:border-box;display:grid;grid-template-rows:minmax(0,1fr) auto;align-items:stretch;justify-content:stretch;padding:0;overflow:hidden;background:#355d47}
.intro-splash::before{inset:-30px;background:url('./assets/bretus-welcome.jpeg') center/cover;filter:blur(28px);opacity:.62;z-index:-1}
.welcome-poster{position:relative;display:block;min-width:0;min-height:0;overflow:hidden}
.welcome-poster img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain;filter:none;mask-image:linear-gradient(90deg,transparent,#000 2%,#000 98%,transparent)}
.welcome-footer{position:relative;min-width:0;gap:12px 28px;padding:12px max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom));background:#173f36;color:#fff5d8;border-top:1px solid #88a47c;box-shadow:none;flex-wrap:wrap}
.welcome-footer p{font-size:clamp(12px,1.1vw,16px);line-height:1.65;overflow-wrap:anywhere}
.welcome-footer button{flex-shrink:0;min-height:52px;min-width:180px;line-height:1.3;margin:0}
.start-screen{display:flex;align-items:safe center;justify-content:flex-end;padding:clamp(18px,3vw,48px);gap:24px;background:#173f36;overflow:auto;overscroll-behavior:contain}
.start-screen .menu-illustration{position:absolute;inset:0;width:100%;height:100%;z-index:0;overflow:hidden}
.start-screen .menu-illustration img{width:100%;height:100%;object-fit:cover;object-position:30% center}
.start-screen::before{inset:0;z-index:1;background:linear-gradient(90deg,transparent 38%,#173f3655 65%,#173f3699);pointer-events:none}
.start-screen .menu-bear{left:3%;top:17%;width:36%;height:80%;z-index:1}
.start-screen .title-content{position:relative;z-index:2;display:block;width:clamp(310px,42%,540px);max-width:100%;margin:0;padding:clamp(20px,2.6vw,36px)!important;background:#173f36;border:1px solid #b7cd9e88;border-radius:24px;text-align:left;box-shadow:0 10px 35px #102b2655}
.start-screen h1{display:block;margin:0 0 18px;font-size:clamp(28px,2.8vw,43px);line-height:1.2;letter-spacing:.2px;overflow-wrap:normal}
.start-screen h1 span{margin-top:3px;line-height:1.2}
.start-screen .intro{display:block;font-size:15px;line-height:1.5;margin:0 0 20px}
.start-screen .hero-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0;max-width:none}
.start-screen .hero-actions>button{min-width:0;min-height:58px;margin:0;padding:12px 16px;line-height:1.35;border-radius:13px}
.start-screen .hero-actions>button span{font-size:14px;min-width:0;letter-spacing:.4px}
.start-screen .hero-actions>button small{display:block;font-size:11px;line-height:1.4;margin-top:4px}
.start-screen .title-content .primary{min-height:62px;font-size:24px}
.start-screen .minor-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}
.start-screen .minor-actions button{min-height:44px;font-size:12px;line-height:1.4;padding:6px 2px;white-space:normal;letter-spacing:.3px}
.start-screen .start-hint{font-size:12px;line-height:1.5;margin:14px 0 0}
@media(orientation:portrait){
 .welcome-footer{flex-direction:column;gap:8px;padding-top:10px}.welcome-footer p{font-size:12px;text-align:center}.welcome-footer button{width:min(100%,460px)}
 .start-screen{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:0;gap:0}
 .start-screen::before{display:none}
 .start-screen .menu-illustration{position:relative;inset:auto;z-index:0;flex:none;width:100%;height:auto;aspect-ratio:16/9;min-height:0}
 .start-screen .menu-illustration img{position:absolute;inset:0;object-fit:cover;object-position:center}
 .start-screen .menu-bear{left:5%;top:16%;width:37%;height:81%}
 .start-screen .title-content{width:100%;max-width:none;margin:0;flex:1;padding:22px clamp(18px,5vw,56px) 24px!important;border:0;border-top:1px solid #91ab7766;border-radius:0;box-shadow:none}
 .start-screen h1{font-size:clamp(26px,6.3vw,38px);margin-bottom:16px}
 .start-screen .intro{display:none}.start-screen .hero-actions{gap:11px}
 .start-screen .hero-actions>button{min-height:55px}.start-screen .title-content .primary{min-height:58px}
 .start-screen .minor-actions{margin-top:16px;gap:14px}.start-screen .minor-actions button{font-size:12px}
 .start-screen .start-hint{display:none}
}
@media(orientation:landscape) and (max-height:650px){
 .start-screen{padding:12px 18px;align-items:flex-start}
 .start-screen .title-content{width:48%;padding:16px!important;border-radius:18px}
 .start-screen h1{font-size:26px;margin-bottom:12px}.start-screen .intro,.start-screen .start-hint{display:none}
 .start-screen .hero-actions{gap:8px}.start-screen .hero-actions>button,.start-screen .title-content .primary{min-height:44px;padding:8px 12px}
 .start-screen .hero-actions>button small{display:none}.start-screen .minor-actions{gap:8px;margin-top:10px}
 .welcome-footer{padding-top:7px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.welcome-footer button{min-height:44px}.welcome-footer p{font-size:12px}
}
@media(orientation:landscape) and (max-height:420px){
 .start-screen .title-content{width:56%;padding:12px!important}.start-screen h1{font-size:22px;line-height:1.15;margin-bottom:10px}.start-screen h1 span{display:inline;margin-left:7px}
 .start-screen .hero-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.start-screen .hero-actions>button{font-size:18px;gap:8px}.start-screen .hero-actions>button span{font-size:11px}
 .start-screen .minor-actions{margin-top:8px}.start-screen .minor-actions button{font-size:11px}
}
/* Size the actual square, so feathering follows its edges even on wide displays. */
.welcome-poster{container-type:size}
@supports(width:1cqw){.welcome-poster img{inset:auto;left:50%;top:50%;width:min(100cqw,100cqh);height:min(100cqw,100cqh);transform:translate(-50%,-50%);mask-image:linear-gradient(90deg,transparent,#000 1.5%,#000 98.5%,transparent),linear-gradient(0deg,transparent,#000 1.5%,#000 98.5%,transparent);mask-composite:intersect}}
@media(orientation:landscape) and (max-height:480px){
 .intro-splash{grid-template-columns:minmax(0,1.7fr) minmax(220px,1fr);grid-template-rows:minmax(0,1fr)}
 .welcome-poster{container-type:normal;overflow-y:auto;touch-action:pan-y}
 .welcome-poster img{position:static;inset:auto;transform:none;width:100%;height:auto;max-width:none;mask-image:none}
 .welcome-footer{flex-direction:column;justify-content:center;flex-wrap:nowrap;padding:18px;gap:18px;border-top:0;border-left:1px solid #88a47c}
 .welcome-footer p{font-size:13px;line-height:1.7;text-align:center}.welcome-footer button{width:100%;min-width:0}
}
