/* Loaded after phone.css; title-only rules keep the story/battle layout separate. */
.title-redesign{height:100svh;height:100dvh;min-height:0;background:#0a191e;isolation:isolate}
.title-redesign .title-art{position:absolute;inset:0;z-index:-2;pointer-events:none}
.title-redesign .title-art img{display:block;width:100%;height:100%;object-fit:contain;object-position:right center}
.title-redesign:before{z-index:-1;background:linear-gradient(90deg,#07161cf5 0%,#07161cd9 22%,#07161c80 43%,transparent 65%),linear-gradient(0deg,#07161c55,transparent 22%);pointer-events:none}
.title-redesign .title-content{width:min(530px,48vw);max-width:none;padding:50px 0 50px max(5vw,env(safe-area-inset-left));height:100%;justify-content:center;align-items:center;gap:35px}
.title-redesign .title-logo{margin:0;width:100%;max-width:360px;text-align:center;font-family:'Cormorant Garamond',Georgia,serif;font-weight:400;color:#f5e3b9;letter-spacing:0;text-shadow:0 2px 3px #031015,0 4px 22px #03101599}
.title-redesign .title-logo span{display:block;font-size:inherit;letter-spacing:inherit;line-height:inherit}
.title-redesign .title-logo .logo-ashes{font-size:clamp(62px,6.9vw,96px);line-height:.83;letter-spacing:.06em;padding-left:.06em}
.title-redesign .title-logo .logo-tiber{font-size:clamp(74px,8.2vw,115px);line-height:.85;letter-spacing:.075em;padding-left:.075em}
.title-redesign .title-logo .logo-bridge{display:flex;align-items:center;justify-content:center;gap:14px;font:400 13px/3 'DM Sans',sans-serif;letter-spacing:.3em;padding-left:.3em;color:#dab87a}
.logo-bridge i{display:block;width:44px;height:1px;background:linear-gradient(90deg,transparent,#dab87a)}
.logo-bridge i:last-child{transform:scaleX(-1)}
.title-redesign .logo-river{display:block;width:76%;height:20px;margin:12px auto 0;color:#dab87a;filter:drop-shadow(0 2px 4px #07161c)}
.title-redesign .title-actions{display:grid;width:min(300px,100%);margin:0;gap:10px}
.title-redesign .title-actions button{display:block;min-width:0;min-height:50px;padding:13px 18px;border:1px solid #c9ad785c;border-radius:4px;text-align:center;white-space:normal;overflow-wrap:anywhere;letter-spacing:.04em;font-size:15px;background:#102329e8;color:#f2e5ca;box-shadow:0 5px 22px #030d1440}
.title-redesign .title-actions button.primary{background:linear-gradient(135deg,#edd29a,#c59a5f);border-color:#e6c58d;color:#172124;font-weight:400}
.title-redesign .title-actions button:hover:not(:disabled){background:#233e43;border-color:#f1d6a0}
.title-redesign .title-actions button.primary:hover{background:#f4dca8}
.title-redesign .title-actions button:disabled{opacity:1;background:#102329c9;color:#8e9c9d;border-color:#9caa9c35;box-shadow:none}
.title-redesign .title-actions .title-help{border-color:transparent;background:#0a191e66;box-shadow:none;min-height:44px;font-size:13px;color:#e1d8c3}
.title-settings{position:absolute;z-index:2;top:calc(env(safe-area-inset-top) + 18px);right:calc(env(safe-area-inset-right) + 20px);width:44px;height:44px;padding:10px;border-radius:50%;border:1px solid #d7bf8955;background:#0a191ec9;color:#ecd2a0;box-shadow:0 2px 10px #03101533}
.title-settings svg{display:block;width:100%;height:100%}
.title-settings:hover{background:#233e43}
.title-redesign button:focus-visible{outline:3px solid #ffe6ad;outline-offset:4px}
.title-settings-panel .title-audio h3{font:400 24px 'Cormorant Garamond',Georgia,serif;color:#e5c58c;margin:18px 0 8px}
.title-settings-panel .title-audio>p{font-size:13px}
.title-settings-panel #title-settings-back{width:100%;min-height:48px;margin-top:20px}
.title-settings-panel .title-motion{display:flex;align-items:center;gap:10px;min-height:44px;margin-top:16px}
body[data-screen=title][data-title-reduced-motion=true] .sheet{animation:none}
body[data-title-reduced-motion=true] .title-redesign button{transition:none}

@media(max-width:760px) and (orientation:portrait){
 .title-redesign{--title-menu-height:180px}
 .title-redesign .title-art{top:calc(env(safe-area-inset-top) * 1.5);bottom:calc(var(--title-menu-height) + env(safe-area-inset-bottom) - 20px)}
 .title-redesign .title-art img{object-fit:cover;object-position:center top}
 .title-redesign .title-art:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0a191e,transparent 14%);pointer-events:none}
 .title-redesign:before{background:linear-gradient(0deg,#0a191e 0%,#0a191e 17%,#0a191ecc 24%,transparent 36%),linear-gradient(180deg,#07161c75 0%,transparent 28%)}
 .title-redesign .title-content{position:relative;width:100%;padding:0;height:100%;justify-content:space-between;gap:0}
 .title-redesign .title-logo{width:74%;max-width:290px;margin:calc(env(safe-area-inset-top) + 32px) auto 0}
 .title-redesign .title-logo .logo-ashes{font-size:clamp(44px,14vw,62px)}
 .title-redesign .title-logo .logo-tiber{font-size:clamp(54px,17vw,76px)}
 .title-redesign .title-logo .logo-bridge{font-size:10px;line-height:2.5;gap:10px}
 .title-redesign .logo-river{height:14px;margin-top:8px}
 .title-redesign .title-actions{width:min(300px,calc(100% - 64px));gap:8px;margin:0 auto calc(env(safe-area-inset-bottom) + 18px)}
 .title-redesign .title-actions button{min-height:48px;padding:12px 16px;border-radius:4px}
 .title-redesign .title-actions .title-help{min-height:44px;padding:10px 16px}
 .title-settings{top:calc(env(safe-area-inset-top) + 12px);right:calc(env(safe-area-inset-right) + 12px);background:#0a191e99;border-color:#d7bf8933}
}
@media(max-width:760px) and (orientation:portrait) and (max-height:680px){
 .title-redesign .title-logo{margin-top:calc(env(safe-area-inset-top) + 18px);width:66%}
 .title-redesign .title-logo .logo-ashes{font-size:40px}
 .title-redesign .title-logo .logo-tiber{font-size:48px}
 .title-redesign .title-logo .logo-bridge{font-size:9px;line-height:2}
 .title-redesign .logo-river{height:10px;margin-top:5px}
 .title-redesign .title-art{top:calc(env(safe-area-inset-top) * 1.5 + 30px)}
 .title-redesign .title-art img{object-fit:contain;width:auto;max-width:100%;margin-inline:auto;mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)}
 .title-redesign .title-art:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0a191e,transparent 18%);pointer-events:none}
}
@media(orientation:landscape) and (max-height:540px){
 .title-redesign .title-content{width:42%;padding:16px 0 16px max(20px,env(safe-area-inset-left));gap:16px}
 .title-redesign .title-logo{max-width:240px}
 .title-redesign .title-logo .logo-ashes{font-size:48px}
 .title-redesign .title-logo .logo-tiber{font-size:58px}
 .title-redesign .title-logo .logo-bridge{font-size:9px;line-height:2.2;gap:10px}
 .title-redesign .logo-river{height:12px;margin-top:5px}
 .title-redesign .title-actions{display:grid;width:min(240px,100%);gap:6px}
 .title-redesign .title-actions button{min-height:44px;font-size:13px;padding:10px 12px}
 .title-settings{top:calc(env(safe-area-inset-top) + 12px);right:calc(env(safe-area-inset-right) + 12px)}
}
