/* A viewport-sized title, with every main control kept on screen. */
.survivor-overlay.is-title{height:100dvh;overflow:hidden;}
.is-title .title-shell{height:100dvh;min-height:0;max-height:100dvh;padding:20px clamp(18px,3.8vw,64px) 14px;display:grid;grid-template-rows:20px minmax(0,1fr) auto auto;gap:10px;}
.is-title .title-topline{min-height:0;}
.is-title .title-composition,.is-title .title-returning .title-composition,.is-title .title-team-selection .title-composition{height:100%;min-height:0;max-height:100%;padding:0;grid-template-columns:minmax(170px,.95fr) minmax(170px,1.05fr) minmax(290px,1.05fr);grid-template-rows:minmax(0,1fr);gap:clamp(12px,2vw,32px);}
.is-title .title-copy{grid-column:1;grid-row:1;min-width:0;padding:0;}
.is-title .game-title,.is-title .title-returning .game-title{font-size:clamp(64px,7.4vw,112px);margin:0 0 20px;}
.is-title .title-kicker{margin:0 0 16px;}
.is-title .title-description{margin:0 0 20px;font-size:13px;line-height:1.65;}
.is-title .title-divider{margin-bottom:18px;}
.is-title .title-story{margin-top:16px;}
.is-title .title-hero,.is-title .title-returning .title-hero,.is-title .title-team-selection .title-hero{grid-column:2;grid-row:1;height:100%;min-height:0;max-height:100%;padding:0;margin:0;align-self:stretch;}
.is-title .title-hero .survivor-stage{position:relative;min-height:0;height:100%;width:100%;}
.is-title .title-hero canvas,.is-title .title-returning .title-hero canvas{position:absolute;inset:0;width:100%;max-width:none;height:100%;object-fit:contain;}
.is-title .hero-caption{top:7%;}
.is-title .hero-hint{bottom:3px;font-size:7px;}
.is-title .title-hero .rotate-control{bottom:18px;left:12%;right:12%;}
.is-title .portrait-toggle{top:10px;right:8px;transform:none;}
.is-title .title-identity,.is-title .team-identity{grid-column:3;grid-row:1;min-height:0;max-height:none;max-width:400px;overflow:visible;align-self:center;padding:18px 20px;}
.is-title .identity-heading h2{font-size:23px;margin:6px 0;}
.is-title .identity-heading p{font-size:10px;margin:0;line-height:1.5;}
.is-title .title-identity .field-label{font-size:8px;margin:10px 0 5px;}
.is-title .title-identity input[type=text]{font-size:13px;min-height:34px;padding:7px 10px;}
.is-title .title-identity .sex-options{grid-template-columns:1fr 1fr;gap:6px;}
.is-title .title-identity .sex-options button{padding:8px 10px;gap:2px;min-height:42px;}
.is-title .title-identity .sex-options b{font-size:12px;}
.is-title .title-identity .sex-options span{font-size:9px;}
.is-title .title-identity .skin-options{padding-top:0;max-width:270px;flex-wrap:nowrap;}
.is-title .title-identity .skin-options button{width:25px;height:25px;flex-shrink:0;}
.is-title .title-identity .appearance-options{margin-top:10px;}
.is-title .appearance-options legend{font-size:8px;margin-bottom:5px;}
.is-title .title-identity .appearance-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 7px;}
.is-title .appearance-grid label{font-size:9px;gap:3px;line-height:1.3;}
.is-title .appearance-grid select{min-height:31px;padding:5px;font-size:11px;}
.is-title .appearance-options p{margin:6px 0 0;font-size:8px;}
.is-title .title-identity .start-summary{margin:10px 0;padding-top:8px;}
.is-title .start-summary p{font-size:11px;margin:3px 0;}
.is-title .start-summary small{font-size:9px;line-height:1.4;}
.is-title .title-action{min-height:40px;padding:10px 12px;font-size:12px;}
.is-title .identity-help{font-size:9px;line-height:1.4;margin:6px 0 0;min-height:0;}
.is-title .character-choices{display:block;margin-top:10px;max-height:none;overflow:visible;min-width:0;}
.is-title .character-choices>span{display:block;font-size:8px;margin-bottom:4px;}
.is-title .character-choices select{display:block;width:100%;min-height:31px;min-width:0;padding:5px 8px;color:#dce4cc;border:1px solid #8d9f8655;border-radius:5px;background:#10221e;font:11px system-ui;}
.is-title .character-choices select:focus-visible{outline:2px solid #d9e2ba;outline-offset:2px;}
.is-title .title-footer{margin:0;padding-top:8px;gap:8px 20px;min-height:0;font-size:8px;}
.is-title .title-footer button{padding:5px 0;font-size:10px;}
.is-title .support-card{margin:0;padding:10px 16px;gap:16px;display:flex;}
.is-title .support-card p{font-size:13px;margin:2px 0;}
.is-title .support-card small{font-size:10px;line-height:1.45;}
.is-title .support-card button{margin:0;min-height:36px;padding:9px 12px;width:auto;}
.is-title .support-eyebrow{font-size:8px;}
.is-title .title-returning .title-composition{grid-template-columns:minmax(260px,1fr) minmax(200px,1.1fr) minmax(170px,.65fr);}
.is-title .title-returning .title-worldnote{display:block;margin:0;padding-left:8px;font-size:11px;}
.is-title .resume-identity{margin:14px 0;}
.is-title .resume-identity h2{font-size:25px;margin:5px 0;}
.is-title .resume-note{font-size:10px;margin:8px 0;}
.is-title .new-character-action{font-size:11px;margin-top:10px;}
.is-title .character-kept{font-size:9px;margin-top:6px;}
.is-title .team-options{margin:12px 0 10px;gap:6px;}
.is-title .team-choice{min-height:94px;padding:8px 9px;}
.is-title .team-choice>b{font-size:15px;}
.is-title .team-commitment{font-size:9px;line-height:1.5;margin:8px 0 10px;}
.is-title .neutral-rule{padding:8px 0;}

/* The QR image is the original supplied file, with a white scan margin. */
.support-dialog{width:min(660px,calc(100% - 28px));max-width:660px;padding:28px;max-height:calc(100dvh - 24px);}
.support-dialog h2{font-size:28px;margin:12px 0 14px;}
.support-dialog>p{font-size:12px;line-height:1.6;}
.support-payment{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(0,1.2fr);gap:18px;align-items:center;margin-top:18px;}
.support-qr{margin:0;text-align:center;min-width:0;}
.support-qr img{display:block;width:100%;max-width:218px;height:auto;box-sizing:border-box;padding:12px;background:white;border-radius:6px;margin:auto;}
.support-qr figcaption{font-size:10px;color:#b8c8af;line-height:1.5;margin-top:8px;}
.support-qr a{display:inline-block;font-size:11px;color:#d3dfba;text-underline-offset:3px;margin-top:4px;}
.support-pix{padding:15px;min-width:0;}
.support-pix input{font-size:11px;}
.support-dialog .support-voluntary{font-size:10px;margin-top:16px;}
.support-feedback{min-height:16px;}

@media(max-height:800px){
 .is-title .title-shell{padding-top:12px;padding-bottom:10px;gap:8px;grid-template-rows:16px minmax(0,1fr) auto auto;}
 .is-title .title-topline{font-size:8px;}
 .is-title .title-identity,.is-title .team-identity{padding:14px 16px;}
 .is-title .identity-heading h2{font-size:21px;margin:5px 0;}
 .is-title .title-identity .field-label{margin-top:8px;}
 .is-title .title-description{font-size:12px;}
 .is-title .title-story{font-size:10px;}
 .is-title .title-identity .start-summary{margin:8px 0;padding-top:6px;}
 .is-title .start-summary>span,.is-title .start-summary small,.is-title .appearance-options p{display:none;}
 .is-title .support-card{padding:8px 14px;}
 .is-title .support-card .support-eyebrow{display:none;}
 .is-title .title-footer{padding-top:6px;}
}
@media(max-width:1000px){
 .is-title .title-shell{padding-left:20px;padding-right:20px;}
 .is-title .title-composition,.is-title .title-returning .title-composition,.is-title .title-team-selection .title-composition{grid-template-columns:minmax(150px,.85fr) minmax(130px,.8fr) minmax(280px,1.2fr);gap:12px;}
 .is-title .game-title,.is-title .title-returning .game-title{font-size:66px;letter-spacing:-2px;}
 .is-title .title-description{font-size:11px;}
 .is-title .title-kicker{font-size:8px;letter-spacing:1.2px;}
 .is-title .title-returning .title-composition{grid-template-columns:minmax(200px,1fr) minmax(160px,1fr);}
 .is-title .title-returning .title-worldnote{display:none;}
 .is-title .title-footer>span{display:none;}
}
@media(max-width:700px) and (min-height:501px){
 .is-title .title-shell{padding:10px 14px 8px;gap:7px;grid-template-rows:12px minmax(0,1fr) auto auto;}
 .is-title .title-topline{font-size:6px;letter-spacing:.8px;gap:6px;}
 .is-title .title-topline>span{gap:8px;}
 .is-title .title-mark{width:10px;height:10px;}
 .is-title .title-mark:after{width:3px;height:3px;inset:2px;}
 .is-title .title-signal{font-size:6px;letter-spacing:.6px;}
 .is-title .title-composition,.is-title .title-returning .title-composition,.is-title .title-team-selection .title-composition{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);grid-template-rows:minmax(80px,1fr) auto;gap:7px 10px;}
 .is-title .title-copy{grid-column:1;grid-row:1;align-self:center;padding:0;}
 .is-title .game-title,.is-title .title-returning .game-title{font-size:clamp(38px,10vw,64px);line-height:.9;margin:0 0 8px;}
 .is-title .game-title>span+span{margin-top:3px;}
 .is-title .title-kicker{font-size:7px;letter-spacing:.8px;margin:0 0 9px;}
 .is-title .title-description,.is-title .title-returning .title-description{font-size:10px;line-height:1.5;max-width:200px;margin:0;}
 .is-title .title-divider,.is-title .title-chapter,.is-title .title-story{display:none;}
 .is-title .title-hero,.is-title .title-returning .title-hero,.is-title .title-team-selection .title-hero{grid-column:2;grid-row:1;min-height:0;max-height:100%;margin:0;}
 .is-title .title-hero canvas,.is-title .title-returning .title-hero canvas{left:-16%;width:132%;height:100%;}
 .is-title .title-hero .rotate-control{bottom:0;left:4%;right:4%;gap:6px;}
 .is-title .title-hero .rotate-control>span{display:none;}
 .is-title .title-hero .rotate-control button{height:23px;}
 .is-title .portrait-toggle{top:2px;right:0;font-size:9px;padding:4px 6px;}
 .is-title .hero-caption,.is-title .hero-hint{display:none;}
 .is-title .title-identity,.is-title .team-identity{grid-column:1/-1;grid-row:2;width:100%;max-width:none;min-height:0;max-height:none;margin:0;padding:12px 14px;}
 .is-title .identity-heading .eyebrow{font-size:7px;letter-spacing:1px;}
 .is-title .identity-heading h2{font-size:20px;margin:4px 0;}
 .is-title .identity-heading p{display:none;}
 .is-title .title-identity .field-label{margin:7px 0 4px;font-size:8px;letter-spacing:1px;}
 .is-title .title-identity input[type=text]{min-height:32px;padding:6px 8px;font-size:13px;}
 .is-title .title-identity .sex-options button{min-height:36px;padding:6px 9px;gap:0;}
 .is-title .title-identity .sex-options b{font-size:11px;}
 .is-title .title-identity .sex-options span{font-size:8px;}
 .is-title .title-identity .sex-options i{top:8px;}
 .is-title .title-identity .skin-options{max-width:none;justify-content:space-between;}
 .is-title .title-identity .skin-options button{width:25px;height:25px;}
 .is-title .title-identity .appearance-options{margin-top:8px;}
 .is-title .title-identity .appearance-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 7px;}
 .is-title .appearance-options legend{margin-bottom:4px;font-size:7px;}
 .is-title .appearance-grid label{font-size:8px;gap:2px;}
 .is-title .appearance-grid select{font-size:10px;min-height:30px;padding:4px;}
 .is-title .title-identity .start-summary{margin:7px 0;padding-top:5px;}
 .is-title .start-summary>span,.is-title .start-summary small,.is-title .appearance-options p{display:none;}
 .is-title .start-summary p{font-size:10px;margin:2px 0;}
 .is-title .title-action{min-height:36px;font-size:11px;padding:8px 10px;}
 .is-title .identity-help{font-size:8px;margin-top:5px;}
 .is-title .support-card{padding:8px 10px;gap:10px;align-items:center;}
 .is-title .support-card .support-eyebrow,.is-title .support-card p{display:none;}
 .is-title .support-card small{display:block;font-size:9px;line-height:1.4;}
 .is-title .support-card button{font-size:10px!important;min-height:34px;padding:6px 8px;white-space:normal;max-width:125px;flex-shrink:0;gap:8px;text-align:left;}
 .is-title .support-card button svg{width:12px;}
 .is-title .title-footer{padding-top:5px;gap:6px;}
 .is-title .title-footer button{font-size:9px;padding:4px 0;}
 .is-title .team-options{margin:8px 0;gap:6px;}
 .is-title .team-choice{min-height:76px;padding:7px 8px;}
 .is-title .team-choice>b{font-size:13px;margin-top:5px;}
 .is-title .team-specialty{font-size:8px;margin-top:4px;}
 .is-title .neutral-rule{padding:6px 0;}
 .is-title .team-commitment{font-size:8px;line-height:1.4;margin:7px 0;}
 .is-title .team-back{font-size:9px;margin-top:5px;}
 .is-title .title-returning .title-composition{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);}
 .is-title .title-returning .title-copy{align-self:center;}
 .is-title .title-returning .title-hero{grid-row:1;}
 .is-title .title-returning .title-description{display:none;}
 .is-title .resume-identity{margin:18px 0 12px;}
 .is-title .resume-identity h2{font-size:21px;}
 .is-title .title-returning .title-action{font-size:11px;min-height:44px;}
 .is-title .new-character-action{font-size:10px;line-height:1.5;}
 .is-title .character-kept{font-size:8px;}
 .support-dialog{padding:22px;}
 .support-payment{grid-template-columns:minmax(112px,.85fr) minmax(0,1.15fr);gap:12px;}
 .support-pix{padding:10px;}
 .support-pix input{font-size:9px;padding:8px 5px;}
 .support-pix button{font-size:11px;padding:9px;}
 .support-pix small{font-size:9px;}
 .support-qr img{padding:9px;}
 .support-qr figcaption{font-size:9px;}
}
@media(max-height:660px){
 .is-title .title-shell{padding-top:8px;padding-bottom:6px;gap:6px;grid-template-rows:12px minmax(0,1fr) auto auto;}
 .is-title .title-identity,.is-title .team-identity{padding:10px 12px;}
 .is-title .identity-heading h2{font-size:19px;margin:3px 0;}
 .is-title .identity-heading p,.is-title .title-story{display:none;}
 .is-title .title-identity .field-label{margin:6px 0 3px;font-size:7px;}
 .is-title .title-identity input[type=text]{min-height:28px;padding:5px 8px;font-size:12px;}
 .is-title .title-identity .sex-options button{min-height:31px;padding:4px 8px;gap:0;}
 .is-title .title-identity .sex-options b{font-size:11px;}
 .is-title .title-identity .sex-options span{font-size:8px;}
 .is-title .title-identity .skin-options button{width:22px;height:22px;}
 .is-title .title-identity .appearance-options{margin-top:6px;}
 .is-title .appearance-grid select{min-height:27px;padding:3px;font-size:10px;}
 .is-title .appearance-grid label{font-size:8px;gap:2px;}
 .is-title .title-identity .appearance-grid{gap:4px 6px;}
 .is-title .title-identity .start-summary{margin:6px 0;padding-top:4px;}
 .is-title .start-summary p{font-size:9px;margin:2px 0;}
 .is-title .title-action{min-height:32px;padding:7px 9px;font-size:11px;}
 .is-title .identity-help{font-size:8px;margin-top:4px;}
 .is-title .support-card{padding:6px 10px;}
 .is-title .support-card small{font-size:9px;}
 .is-title .support-card button{min-height:30px;padding:6px 8px;}
 .is-title .title-footer{padding-top:4px;}
 .is-title .title-footer button{padding:3px 0;font-size:9px;}
 .is-title .game-title,.is-title .title-returning .game-title{font-size:clamp(34px,6.2vw,74px);margin-bottom:10px;}
 .is-title .title-kicker{font-size:7px;margin-bottom:8px;}
 .is-title .title-description{font-size:10px;line-height:1.45;}
 .is-title .title-hero .hero-caption,.is-title .hero-hint{display:none;}
 .is-title .team-choice{min-height:68px;padding:6px 8px;}
 .is-title .team-choice>b{font-size:12px;}
 .is-title .team-commitment{font-size:8px;}
 .support-dialog{padding:18px;}
 .support-dialog h2{font-size:24px;margin:8px 0 10px;}
 .support-dialog>p{font-size:11px;line-height:1.5;}
 .support-payment{margin-top:10px;}
 .support-qr img{max-width:154px;}
 .support-dialog .support-voluntary{margin-top:10px;font-size:9px;}
}
@media(max-height:500px){
 .is-title .title-shell{padding:8px 16px 6px;grid-template-rows:minmax(0,1fr) auto auto;gap:5px;}
 .is-title .title-topline{display:none;}
 .is-title .title-composition,.is-title .title-returning .title-composition,.is-title .title-team-selection .title-composition{grid-template-columns:minmax(100px,.65fr) minmax(100px,.8fr) minmax(300px,1.8fr);grid-template-rows:minmax(0,1fr);gap:10px;}
 .is-title .title-copy{grid-column:1;grid-row:1;}
 .is-title .title-hero,.is-title .title-returning .title-hero{grid-column:2;grid-row:1;}
 .is-title .title-identity,.is-title .team-identity{grid-column:3;grid-row:1;padding:8px 10px;}
 .is-title .identity-heading{display:none;}
 .is-title .title-identity .field-label{margin-top:4px;font-size:7px;}
 .is-title .title-identity .sex-options span,.is-title .start-summary,.is-title .identity-help{display:none;}
 .is-title .title-identity .sex-options button{min-height:27px;}
 .is-title .title-identity .skin-options button{height:20px;width:20px;}
 .is-title .title-identity .appearance-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px 6px;}
 .is-title .appearance-grid select{min-height:25px;font-size:10px;}
 .is-title .appearance-options legend{font-size:7px;margin-bottom:3px;}
 .is-title .title-action{min-height:30px;margin-top:7px;padding:6px 8px;font-size:10px;}
 .is-title .support-card{padding:5px 10px;}
 .is-title .support-card .support-eyebrow,.is-title .support-card p{display:none;}
 .is-title .support-card small{font-size:9px;line-height:1.3;}
 .is-title .support-card small br{display:none;}
 .is-title .support-card button{min-height:27px;font-size:9px!important;padding:5px 8px;}
 .is-title .title-footer{padding-top:3px;}
 .is-title .title-footer button{font-size:9px;padding:2px 0;}
 .is-title .title-description,.is-title .title-divider,.is-title .title-chapter,.is-title .title-story,.is-title .title-returning .title-worldnote{display:none;}
 .is-title .game-title,.is-title .title-returning .game-title{font-size:42px;}
 .is-title .portrait-toggle{font-size:8px;}
 .is-title .team-options{margin:4px 0;gap:4px;}
 .is-title .team-choice{min-height:57px;padding:4px 7px;}
 .is-title .team-choice>b{font-size:12px;margin-top:3px;}
 .is-title .team-specialty{font-size:7px;margin-top:2px;}
 .is-title .neutral-rule{padding:4px 0;}
 .is-title .team-commitment{font-size:7px;margin:4px 0;}
 .is-title .team-back{margin-top:3px;font-size:8px;padding:2px 5px;}
 .is-title .resume-identity{margin:8px 0;}
 .is-title .resume-identity h2{font-size:18px;}
 .is-title .resume-identity p,.is-title .resume-note{font-size:8px;}
 .is-title .new-character-action{font-size:9px;margin-top:6px;}
 .is-title .character-kept{font-size:7px;}
 .support-dialog{width:min(660px,calc(100% - 24px));max-height:calc(100dvh - 16px);padding:16px 20px;}
 .support-dialog h2{font-size:22px;margin:5px 0 7px;}
 .support-dialog h2 br{display:none;}
 .support-payment{grid-template-columns:140px minmax(0,1fr);margin-top:8px;gap:16px;}
 .support-qr img{max-width:126px;padding:8px;}
 .support-qr figcaption{font-size:8px;margin-top:4px;}
 .support-qr a{font-size:9px;margin-top:1px;}
 .support-pix{padding:10px;}
 .support-pix input{margin:5px 0 7px;padding:7px;font-size:10px;}
 .support-pix button{padding:7px 10px;font-size:11px;}
 .support-pix small{font-size:10px;margin-top:5px;}
 .support-dialog .support-voluntary{font-size:9px;line-height:1.4;margin:8px 0 0;}
 .support-feedback{font-size:10px!important;min-height:14px;margin-top:4px;}
}

/* The character picker shares the footer instead of lengthening the form. */
.is-title .title-characters:empty{display:none;}
.is-title .title-characters .character-choices{display:flex;align-items:center;gap:8px;margin:0;}
.is-title .title-characters .character-choices>span{margin:0;white-space:nowrap;}
.is-title .title-characters select{width:190px;min-height:28px;}
@media(max-width:1000px){.is-title .title-characters .character-choices>span{display:none;}.is-title .title-characters select{width:150px;font-size:10px;}}
@media(max-width:700px){.is-title .title-characters select{width:116px;min-height:25px;font-size:9px;padding:4px;}.is-title .title-footer{gap:5px;}}
@media(max-width:350px){.is-title .title-characters select{width:105px;font-size:8px;}.is-title .title-footer button{font-size:8px;}}
@media(max-width:700px) and (max-height:600px) and (min-height:501px){
 .is-title .title-composition,.is-title .title-team-selection .title-composition{grid-template-rows:minmax(60px,1fr) auto;}
 .is-title .identity-heading{display:none;}
 .is-title .game-title,.is-title .title-returning .game-title{display:flex;gap:5px;font-size:24px;letter-spacing:-1px;margin:0;}
 .is-title .game-title>span+span{margin:0;}
 .is-title .title-kicker{font-size:6px;margin-bottom:5px;}
 .is-title .title-description{display:none;}
 .is-title .portrait-toggle{font-size:8px;padding:3px 4px;top:0;}
 .is-title .title-hero .rotate-control{left:0;right:0;bottom:0;}
 .is-title .title-hero .rotate-control button{font-size:14px;height:18px;width:18px;}
 .is-title .title-identity{padding:8px 10px;}
 .is-title .title-identity>.field-label:first-of-type{margin-top:0;}
 .is-title .support-card small{font-size:8px;}
 .is-title .support-card button{font-size:9px!important;max-width:112px;}
 .is-title .title-returning .title-composition{grid-template-rows:minmax(0,1fr);}
}
@media(max-height:500px){
 .is-title .title-returning .title-composition{grid-template-columns:minmax(230px,1fr) minmax(150px,1.1fr);}
 .is-title .title-returning .game-title{display:flex;gap:8px;font-size:40px;}
 .is-title .title-returning .game-title>span+span{margin:0;}
}
