/* Opening screen. Scoped to #ts so the tested battle layout stays untouched. */
#ts{--opening-accent:#ffaf42;display:flex;overflow-y:auto;overflow-x:hidden;align-items:stretch;background:linear-gradient(90deg,#0b1627f5 0%,#0b1627e8 34%,#0b16279e 60%,#0b162720 100%),url('assets/backgrounds/bg01_warehouse.webp?v=4') center/cover no-repeat;scrollbar-width:thin}
#ts::before{height:3px;background:linear-gradient(90deg,var(--opening-accent),#ffaf4200 70%);z-index:4}
#ts::after{background:linear-gradient(0deg,#091321b0,transparent 35%);position:fixed;pointer-events:none}
#ts .title-left{box-sizing:border-box;flex:none;width:61%;max-width:980px;min-height:100%;height:max-content;padding:clamp(30px,5vh,64px) clamp(28px,5.7vw,110px);justify-content:center;align-items:flex-start;background:none;z-index:2;margin-block:auto}
#ts .opening-brand{display:flex;align-items:center;gap:26px;margin-bottom:26px;width:100%}
#ts .amz-logo{display:block;width:180px;height:auto;margin:0;flex:none;image-rendering:auto}
#ts .brand-note{border-left:1px solid #c6b38d55;padding-left:24px;font:10px/1.7 var(--pixel-font);letter-spacing:.18em;color:#c8cfd9}
#ts .opening-eyebrow{font:10px/1.5 var(--pixel-font);letter-spacing:.2em;color:var(--opening-accent);margin:0 0 13px;display:flex;align-items:center;gap:12px}
#ts .opening-eyebrow::before{content:'';width:23px;height:1px;background:var(--opening-accent)}
#ts h1{font:400 clamp(36px,3.65vw,64px)/1.24 var(--pixel-font);letter-spacing:.025em;color:#f6f3eb;margin:0 0 12px;max-width:none;word-break:normal;text-shadow:0 3px 10px #050d1880}
#ts h1 span{display:block;color:#f4c881}
#ts h1 .title-line-two{color:#f6f3eb}
#ts .sub{font:11px/1.5 var(--pixel-font);letter-spacing:.24em;color:#ddc8a5;margin:0 0 19px}
#ts .opening-copy{font:500 clamp(13px,1.15vw,17px)/1.8 'Yu Gothic',Meiryo,sans-serif;color:#d7dfe9;max-width:490px;margin:0 0 23px;white-space:pre-line}
#ts .opening-copy strong{color:#f6f3eb;font-weight:700}
#ts .opening-controls{width:100%;max-width:490px}
#ts .lang-toggle{margin:0 0 15px;gap:8px}
#ts .lang-btn{min-height:36px;padding:7px 17px;font-size:12px;color:#d0d9e4;border:1px solid #8599b077;transition:background .18s,border-color .18s}
#ts .lang-btn.active{border-color:var(--opening-accent);color:#ffbe69;background:#ffaf4214}
#ts .launch-row{display:flex;align-items:flex-end;gap:12px}
#ts .ni-area{margin:0;flex:1;min-width:0;width:100%}
#ts .ni-area label{font:12px/1.5 'Yu Gothic',Meiryo,sans-serif;margin:0 0 7px;color:#c4d1e1}
#ts .ni-area input{width:100%;height:50px;padding:12px 14px;font-size:15px;background:#0c172bd9;border:1px solid #a0aec880;outline-offset:3px;box-shadow:none}
#ts .ni-area input:focus{border-color:var(--opening-accent);background:#18273d}
#ts .start-btn-wrap{margin:0;flex:none}
#ts .start-btn{display:flex;align-items:center;justify-content:center;gap:17px;min-height:50px;padding:12px 23px;font:700 14px/1.5 'Yu Gothic',Meiryo,sans-serif;letter-spacing:.03em;color:#172235;background:#ffb34c;border:1px solid #ffd191;box-shadow:0 5px 0 #855721;transition:background .18s,transform .18s,box-shadow .18s}
#ts .start-btn:hover{background:#ffc675;transform:translateY(-2px);box-shadow:0 7px 0 #855721}
#ts .start-btn:active{transform:translateY(3px);box-shadow:0 2px 0 #855721}
#ts .start-arrow{font:22px/1 var(--pixel-font)}
#ts .opening-meta{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px;font:11px/1.6 'Yu Gothic',Meiryo,sans-serif;color:#b9c9da}
#ts .opening-meta span+span{padding-left:12px;border-left:1px solid #8b9bb95c}

#ts .title-art{right:1%;bottom:3%;height:88%;width:45%;max-width:800px;object-fit:contain;opacity:1;filter:drop-shadow(0 18px 18px #070e2077);z-index:1;animation:openingEnter 750ms ease-out both;object-position:bottom}
#ts .title-version{position:fixed;left:auto;right:24px;bottom:12px;font:9px/1.5 var(--pixel-font);letter-spacing:.16em;color:#c0cad9;z-index:3}
@keyframes openingEnter{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:translateX(0)}}
@media(min-width:1500px) and (min-height:850px){#ts .opening-brand{margin-bottom:40px}#ts .amz-logo{width:216px}#ts .opening-copy{margin-bottom:30px}#ts .opening-eyebrow{margin-bottom:20px}}
@media(max-width:1100px){#ts .title-left{width:68%;padding-inline:5vw}#ts .title-art{right:0;width:40%;opacity:.75}#ts .amz-logo{width:164px}#ts .brand-note{font-size:9px;padding-left:18px}#ts .opening-brand{gap:18px}#ts .start-btn{padding-inline:16px}}
@media(max-width:700px){#ts{background-position:62% center}#ts .title-left{width:100%;padding:28px 26px 48px;margin-block:0}#ts .opening-brand{margin-bottom:27px;gap:20px}#ts .amz-logo{width:150px}#ts .brand-note{font-size:9px;letter-spacing:.1em;padding-left:18px}#ts h1{font-size:clamp(33px,7.8vw,49px);max-width:none;margin-bottom:10px}#ts .sub{font-size:10px;letter-spacing:.17em;margin-bottom:17px}#ts .opening-eyebrow{font-size:9px;margin-bottom:12px}#ts .opening-copy{font-size:13px;max-width:380px;margin-bottom:21px}#ts .title-art{position:fixed;right:-18%;bottom:15%;height:66%;width:83%;opacity:.17;animation:none}#ts .launch-row{flex-direction:column;align-items:stretch;gap:13px}#ts .ni-area input{height:48px}#ts .start-btn{width:100%;min-height:48px;justify-content:space-between;padding:12px 20px}#ts .opening-meta{font-size:10px;margin-top:15px}#ts .title-version{position:static;align-self:flex-start;margin-top:25px;font-size:8px}}
@media(max-height:650px) and (min-width:701px){#ts .title-left{padding-block:24px 35px;margin-block:0}#ts .amz-logo{width:144px}#ts .opening-brand{margin-bottom:20px}#ts h1{font-size:36px}#ts .opening-copy{font-size:13px;margin-bottom:18px}#ts .title-art{position:fixed;right:0;height:85%;width:39%;opacity:.7}#ts .title-version{display:none}}
@media(prefers-reduced-motion:reduce){#ts *,#ts *::before,#ts *::after{animation:none!important;transition:none!important}}
/* Short landscape phones: keep the start action beside the title. */
@media(max-height:500px) and (orientation:landscape){
 #ts .title-left{width:100%;max-width:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:28px;row-gap:0;padding:22px 28px 30px;align-items:start;min-height:100%;justify-content:normal}
 #ts .opening-brand{grid-column:1;margin:0 0 14px;gap:15px}
 #ts .amz-logo{width:144px}
 #ts .brand-note{font-size:8px;padding-left:13px;letter-spacing:.05em}
 #ts .opening-eyebrow{grid-column:1;font-size:8px;letter-spacing:.06em;margin:0 0 8px}
 #ts h1{grid-column:1;font-size:30px;line-height:1.15;margin:0 0 10px}
 #ts .sub{grid-column:1;font-size:8px;letter-spacing:.1em;margin:0 0 12px}
 #ts .opening-copy{grid-column:1;font-size:11px;line-height:1.6;margin:0}
 #ts .opening-controls{grid-column:2;grid-row:1/6;align-self:center}
 #ts .launch-row{display:flex;flex-direction:column;align-items:stretch;gap:12px}
 #ts .lang-toggle{margin-bottom:14px}
 #ts .start-btn{width:100%;min-height:46px;justify-content:space-between}
 #ts .ni-area input{height:46px}
 #ts .opening-meta{font-size:9px;margin-top:14px;gap:7px}
 #ts .title-art{position:fixed;width:42%;right:2%;height:85%;bottom:0;opacity:.12;animation:none}
 #ts .title-version{display:none}
}

#ts .ni-area label{font-size:15px;color:#e1e7ef}#ts .ni-area input{font-size:18px;height:54px}#ts .start-btn{font-size:16px;min-height:54px}#ts .opening-copy{font-size:17px}#ts .opening-meta{font-size:13px}
@media(max-width:700px){#ts .opening-copy{font-size:15px}#ts .opening-meta{font-size:12px}#ts .ni-area label{font-size:14px}}
@media(max-height:500px) and (orientation:landscape){#ts .opening-copy{font-size:13px}#ts .ni-area label{font-size:13px}#ts .opening-meta{font-size:11px}}

/* v3.5: readable Latin lettering; Japanese title keeps its pixel-art character. */
#ts{--reading-font:'Trebuchet MS','Yu Gothic',Meiryo,sans-serif}
#ts .brand-note{font:700 14px/1.5 var(--reading-font);letter-spacing:.09em;color:#dbe2eb}
#ts .opening-eyebrow{font:700 15px/1.55 var(--reading-font);letter-spacing:.08em}
#ts .sub{font:700 18px/1.45 var(--reading-font);letter-spacing:.13em;color:#f1d4a8}
#ts .opening-copy{font:600 19px/1.7 var(--reading-font);max-width:560px;color:#e2e8f0}
#ts .opening-controls{max-width:560px}
#ts .lang-btn{font:700 16px/1.4 var(--reading-font);min-height:44px;padding:10px 18px}
#ts .ni-area label{font:600 16px/1.5 var(--reading-font)}
#ts .ni-area input{font:600 20px/1.4 var(--reading-font);height:56px}
#ts .start-btn{font:700 18px/1.45 var(--reading-font);min-height:56px}
#ts .opening-meta{font:600 15px/1.6 var(--reading-font);color:#d2deec}
#ts .title-version{font:600 12px/1.5 var(--reading-font);letter-spacing:.08em}
html:lang(en) #ts h1{font-family:var(--reading-font);font-weight:700;letter-spacing:-.015em}
@media(max-width:1100px){#ts .brand-note{font-size:13px}}
@media(max-width:700px){
 #ts .title-left{padding:26px 24px 32px}
 #ts .opening-brand{gap:16px;margin-bottom:22px}
 #ts .brand-note{font-size:12px;padding-left:14px;letter-spacing:.03em}
 #ts .opening-eyebrow{font-size:14px;letter-spacing:.03em;gap:8px}
 #ts .opening-eyebrow::before{width:14px;flex:none}
 #ts .sub{font-size:16px;letter-spacing:.09em}
 #ts .opening-copy{font-size:17px;line-height:1.6;margin-bottom:18px}
 #ts .ni-area label{font-size:15px}
 #ts .opening-meta{font-size:14px;gap:8px}
 #ts .opening-meta span+span{padding-left:8px}
 #ts .title-version{font-size:11px;margin-top:22px}
 html:lang(en) #ts h1{font-size:clamp(32px,8vw,49px)}
}
@media(max-height:500px) and (orientation:landscape){
 #ts .title-left{padding:18px 24px 26px;column-gap:24px}
 #ts .opening-brand{gap:12px;margin-bottom:12px}
 #ts .amz-logo{width:120px}
 #ts .brand-note{font-size:12px;padding-left:12px;letter-spacing:.02em}
 #ts .opening-eyebrow{font-size:13px;letter-spacing:.02em}
 #ts .sub{font-size:15px;letter-spacing:.08em;margin-bottom:10px}
 #ts .opening-copy{font-size:15px;line-height:1.5;margin:0}
 #ts .ni-area label{font-size:14px}
 #ts .opening-meta{font-size:13px;margin-top:12px}
 #ts .lang-btn{min-height:42px;padding:8px 16px}
 #ts .ni-area input,#ts .start-btn{min-height:50px;height:50px}
 html:lang(en) #ts h1{font-size:30px}
}
