/* Illustrated crew selector, sized for both portrait menus and short landscape phones. */
#title{background:#100920;display:block;padding:0;overflow-y:auto;overflow-x:hidden;touch-action:pan-y;height:100dvh;color:#fff}
#title::before,#title::after{display:none}
.home-shell{position:relative;isolation:isolate;width:min(100%,700px);min-height:100%;margin:auto;padding:18px 20px 30px;background:radial-gradient(ellipse at 50% 24%,#71363666,transparent 52%),linear-gradient(#130d29,#180d26 62%,#10091d)}
.home-nav{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:2}
.home-nav a,.home-nav button{color:#fff;background:#170e2ebd;border:2px solid #80708e8a;border-radius:40px;box-shadow:0 0 12px #bf46ef44;letter-spacing:2px;text-decoration:none;font-weight:900;font-size:11px;padding:7px 13px}
.home-nav button{width:41px;height:41px;padding:0;font-size:22px;letter-spacing:0}
#title .home-brand h1{font-size:0;line-height:0;margin:0 -12px;text-shadow:none;filter:none;background:none;-webkit-text-fill-color:initial}
.home-brand h1 img{width:100%;height:auto;max-height:260px;object-fit:contain;display:block;margin:-4px auto -3px}
#title .home-tagline{font-size:11px;letter-spacing:1.8px;font-weight:900;color:#ffd566;text-shadow:0 0 10px #ff951a77;max-width:none}
#title .home-subtitle{font-size:12px;letter-spacing:1.2px;font-weight:900;color:#50e9f5;text-shadow:0 0 10px #11ccff66;max-width:none}
.home-world,.home-facts{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;gap:9px;margin:13px auto 8px}
.world-pill,.home-facts span{border:2px solid #a440d6;background:#180c29e8;box-shadow:0 0 12px #b82fed50,inset 0 1px 2px #fff4;border-radius:30px;padding:10px 15px;font-size:12px;letter-spacing:1px;font-weight:900}
.world-pill b{color:#ffe163;margin-left:8px}
#homeShop{padding:10px 20px;color:#331b2a;border:2px solid #ffdc70;border-radius:30px;background:linear-gradient(120deg,#fff183,#ffad2d);box-shadow:0 0 19px #ffb33388;font-size:14px;letter-spacing:1px}
.home-facts span{font-size:10px;padding:7px 12px;border-color:#e551d6}
#title #crewHeading{font-size:clamp(25px,6.7vw,40px);letter-spacing:.5px;font-weight:1000;line-height:1.15;margin:15px 0 12px;background:linear-gradient(#ffcc49 10%,#ff6dcd 45%,#f023ac 60%,#ffb92b 90%);color:#ffa44d;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 2px 0 #7b236b) drop-shadow(0 0 8px #ff8b2f77);-webkit-text-stroke:.6px #ffc74a}
.crew-strip{position:relative;margin:0 -7px}
#characterList{display:flex;gap:9px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#9147b8 transparent;padding:7px 5px 12px;touch-action:pan-x pan-y}
#title .crew-card{flex:0 0 calc((100% - 27px)/4);min-width:0;height:172px;padding:5px 3px 7px;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;border:2px solid #8537b5;border-radius:16px;background:radial-gradient(ellipse at 50% 55%,#602285,#200e3e 75%);box-shadow:0 0 8px #9d33c247,inset 0 0 12px #6924a144;position:relative;scroll-snap-align:center;transition:border-color .15s,box-shadow .15s}
.crew-card img{width:100%;height:122px;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 2px 3px #0008);pointer-events:none}
.crew-card strong{display:block;font-size:clamp(10px,2.6vw,17px);line-height:1.2;white-space:nowrap;letter-spacing:.2px;text-shadow:0 2px 3px #000;margin-top:1px}
.free-badge{background:#61f23d;border-radius:9px;color:#072c0b;font-size:9px;letter-spacing:1px;line-height:1.25;padding:1px 9px;font-weight:1000;margin-top:2px;box-shadow:0 0 8px #56fd4c66}
#title .crew-card.selected{border-color:#ffb23a;box-shadow:0 0 0 1px #ff9b33,0 0 18px #ff972b99,inset 0 0 20px #a7503255;background:radial-gradient(ellipse,#6d2f56,#261135 75%)}
.crew-arrow{position:absolute;top:40%;z-index:3;width:30px;height:35px;border-radius:50%;border:2px solid #ac8bb7;background:#190c2be8;padding:0;font-size:27px;line-height:28px;box-shadow:0 0 9px #18091e}
#crewPrev{left:-9px}#crewNext{right:-9px}
#title #crewStatus{font-size:10px;color:#bda5cb;letter-spacing:.3px;min-height:15px;margin:0;max-width:none}
#title .starter-detail{font-size:12px;color:#d5badf;max-width:none;margin:6px 0 10px}#selectedName{color:white}#starterName{color:var(--crew-color,#ffd574)}
#title #modes{display:block;margin:0;width:100%;max-width:none}
#title #play{display:block;width:100%;min-height:56px;border-radius:40px;border:2px solid #e58c59;background:linear-gradient(105deg,#b739e1,#ef6578 48%,#ff930d);box-shadow:0 0 22px #ff99396b,inset 0 -4px 0 #a6476d55;font-size:clamp(18px,4.5vw,25px);letter-spacing:.8px;padding:12px 15px;text-shadow:0 2px 2px #6a376b}
#title #play:disabled{opacity:.65;cursor:progress}
#shareGame{margin:12px -9px 0;width:calc(100% + 18px);min-height:58px;border:3px solid white;border-radius:42px;background:linear-gradient(100deg,#ff249b,#ff8130);font-size:clamp(15px,4.1vw,23px);padding:10px 6px;letter-spacing:.5px;text-shadow:0 2px 3px #8b3b4f;box-shadow:0 0 16px #d42ba855}
#title #shareStatus{font-size:12px;color:#66f4d5;min-height:0;margin:5px 0}#shareFallback{font-size:12px;color:#6aefff;word-break:break-all;user-select:text}
.home-options{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:14px 0 6px}#title #diff{gap:5px}#title #diff button{font-size:10px;border-width:1px;border-color:#785b8a;padding:7px 10px;border-radius:16px}#title #diff button.on{border-color:#efbd66}
#title #rounds{margin:0;min-height:0;background:none;border:0;color:#bda9cb;padding:5px;font-size:11px;text-align:right;box-shadow:none}#title #rounds small{display:block;font-size:9px;font-weight:500;margin-top:2px}
#title #bestRound{display:block;font-size:10px;color:#caa8e0;max-width:none}.home-help{font-size:11px;color:#c8afda;margin:16px auto 0;text-align:left}.home-help summary{text-align:center;cursor:pointer;letter-spacing:1.4px;font-weight:800}#title .home-help p{font-size:12px;line-height:1.5;margin:10px 0}
#shopPreview{background:linear-gradient(145deg,#2f1946,#160c23);color:#fff;border:2px solid #b664cf;border-radius:24px;width:min(92vw,600px);max-height:88dvh;padding:24px;box-shadow:0 0 40px #b83f9955;overflow:auto;touch-action:pan-y}
#shopPreview::backdrop{background:#080310c9}#shopPreview h2{color:#ffd36b;margin:0 25px 10px 0;font-size:25px}#shopPreview p{font-size:13px;line-height:1.5;color:#e3cfe9}#closeShop{position:absolute;right:9px;top:8px;padding:0;width:34px;height:34px;border:1px solid #b68bc4;border-radius:50%;font-size:25px}
#shopWeapons{display:grid;grid-template-columns:1fr 1fr;gap:10px}#shopWeapons>div{background:#3c1a5677;border:1px solid #8b4ca0;border-radius:13px;padding:6px;text-align:center;font-size:11px}.shop-weapon-image{height:130px;background-repeat:no-repeat}
#title button:focus-visible,#title a:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(min-width:850px){.home-shell{max-width:860px;padding:20px 44px 30px}.home-brand h1 img{max-height:225px}.home-scene{height:290px;margin-left:-44px;margin-right:-44px}.home-scene img{height:268px}.home-scene .scene-friend{height:100%}#title .crew-card{height:180px;flex-basis:calc((100% - 45px)/6)}.crew-card img{height:130px}}
@media(max-height:500px) and (orientation:landscape){.home-shell{width:min(100%,1050px);padding:10px 35px 20px;display:grid;grid-template-columns:40% 60%;align-content:start;column-gap:18px}.home-nav{grid-column:1/-1}.home-brand{grid-column:1;grid-row:2}.home-brand h1 img{max-height:155px}.home-scene{grid-column:1;grid-row:3/7;height:160px;margin:0 -15px}.home-scene img{height:145px}.home-scene .scene-friend{height:100%}.crew-picker{grid-column:2;grid-row:2/5;min-width:0}#title #crewHeading{font-size:25px;margin:8px 0}.crew-card img{height:91px}#title .crew-card{height:133px;flex-basis:calc((100% - 36px)/5)}.crew-card strong{font-size:10px}.starter-detail{grid-column:2;grid-row:5}#title #modes{grid-column:2;grid-row:6}#title #play{min-height:44px;font-size:19px;padding:8px}#shareGame{grid-column:2;grid-row:7;min-height:40px;font-size:16px;margin-top:10px}.home-world{grid-column:2;grid-row:8}.home-facts{grid-column:2;grid-row:9}.home-options,.home-help,#bestRound,#shareStatus,#shareFallback{grid-column:1/-1}.home-options{margin-top:10px}.home-tagline{font-size:9px!important}.home-subtitle{font-size:10px!important}.world-pill{font-size:9px;padding:8px}#homeShop{font-size:11px;padding:8px 12px}.home-facts span{font-size:8px;padding:5px 7px}}
@media(prefers-reduced-motion:reduce){#characterList{scroll-behavior:auto}.crew-card{transition:none}}
@media(max-height:500px) and (orientation:landscape){.home-shell{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}}
@media(max-width:600px) and (orientation:portrait){.home-brand h1 img{max-height:160px}.home-scene{height:250px}.home-scene img{height:230px}.home-scene .scene-friend{height:100%}#title .crew-card{height:146px}.crew-card img{height:99px}#title #crewHeading{margin-top:12px;margin-bottom:8px}.home-shell{padding-top:14px}}

/* Cinematic selection stage. Actor and particle depth is in selection-scene.css. */
.home-shell{width:min(100%,1100px);padding:18px 36px 30px;background:radial-gradient(ellipse at 50% 16%,#65305266,transparent 52%),linear-gradient(#130d25,#1b0c2b 68%,#10091d)}
.home-brand h1 img{width:min(100%,480px);max-height:185px;margin:-8px auto -8px}
.home-scene{position:relative;height:clamp(320px,49vw,520px);margin:18px -16px 16px;overflow:hidden;border:1px solid #ffc77c55;border-radius:26px;box-shadow:0 16px 50px #05010b88,0 0 30px #e862bb18;background:#351335}
.home-scene::before,.home-scene::after{display:none}
.scene-caption{position:absolute;left:14px;right:14px;top:12px;z-index:9;display:flex;align-items:center;gap:6px;color:#fff1d3;font-size:9px;font-weight:800;letter-spacing:2px;text-shadow:0 1px 5px #25102b}
.scene-live-dot{width:5px;height:5px;background:#ffe7a3;border-radius:50%;box-shadow:0 0 9px #ffcd67}
#sceneMotion{margin-left:auto;min-height:32px;border:1px solid #ffe0a660;background:#211033b8;border-radius:22px;font-size:9px;letter-spacing:.9px;padding:6px 11px;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
#sceneMotion:disabled{opacity:.6;cursor:default}
#title .scene-hint{position:absolute;z-index:8;bottom:9px;left:0;right:0;max-width:none;font-size:8px;font-weight:800;letter-spacing:2.4px;color:#fff5dcb8;text-shadow:0 1px 5px #12051a;pointer-events:none}
#title #crewHeading{font-size:clamp(25px,4vw,36px);margin:14px 0 10px}
#title .crew-card{height:156px;flex-basis:calc((100% - 54px)/7)}
.crew-card img{height:110px}
.crew-card strong{font-size:13px}
#title #crewStatus{min-height:24px;margin-top:3px}
#title #modes{max-width:650px;margin:auto}
#shareGame{width:min(100%,650px);margin:12px auto 0;min-height:48px;font-size:18px}
.home-options{max-width:650px;margin:15px auto 6px}
.home-help{max-width:650px}
@media(max-width:600px) and (orientation:portrait){
  .home-shell{padding:14px 18px 25px;width:100%}
  .home-brand h1 img{max-height:142px;width:100%;margin:-3px auto -6px}
  .home-scene{height:350px;margin:16px -12px 10px;border-radius:20px}
  .home-nav a{font-size:8px;letter-spacing:1.3px;padding:7px 10px}
  .home-nav button{height:32px;width:32px;font-size:18px}
  #title .home-tagline{font-size:9px;letter-spacing:1px}
  #title .home-subtitle{font-size:9px;letter-spacing:1px}
  #title .crew-card{height:137px;flex-basis:calc((100% - 27px)/4)}
  .crew-card img{height:90px}
  .crew-card strong{font-size:10px}
  #title #crewHeading{font-size:27px;margin:10px 0 6px}
  .scene-caption{left:10px;right:10px;font-size:7px;letter-spacing:1.2px}
  #sceneMotion{font-size:8px;padding:5px 8px}
  #title .scene-hint{font-size:7px;letter-spacing:1.7px}
  #shareGame{font-size:16px;min-height:46px}
}
@media(max-height:500px) and (orientation:landscape){
  .home-shell{width:min(100%,1150px);padding:8px max(20px,env(safe-area-inset-right)) 18px max(20px,env(safe-area-inset-left));display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:20px}
  .home-nav{grid-column:1/-1;grid-row:1}
  .home-nav a{font-size:8px;padding:4px 10px;letter-spacing:1px}
  .home-nav button{height:29px;width:29px;font-size:17px}
  .home-brand{grid-column:1;grid-row:2;z-index:10;pointer-events:none;height:70px}
  .home-brand h1 img{max-height:86px;margin:-10px auto -13px}
  #title .home-tagline,#title .home-subtitle{display:none}
  .home-scene{grid-column:1;grid-row:3/8;height:235px;margin:-5px -8px 0;border-radius:18px}
  .crew-picker{grid-column:2;grid-row:2/5;min-width:0}
  #title #crewHeading{font-size:24px;margin:4px 0}
  #title .crew-card{height:112px;flex-basis:calc((100% - 36px)/5);padding-bottom:5px}
  .crew-card img{height:72px}
  .crew-card strong{font-size:9px}
  .free-badge{font-size:7px;padding:1px 7px}
  #title #crewStatus{min-height:18px;font-size:9px;margin:0}
  .starter-detail{grid-column:2;grid-row:5}
  #title .starter-detail{font-size:10px;margin:3px 0 6px}
  #title #modes{grid-column:2;grid-row:6;width:100%}
  #title #play{min-height:42px;font-size:17px;padding:8px}
  #shareGame{grid-column:2;grid-row:7;width:100%;min-height:36px;font-size:13px;border-width:2px;margin-top:8px}
  .home-world{grid-column:2;grid-row:8;margin:10px 0 4px}
  .home-facts{grid-column:1;grid-row:8;margin:10px 0 4px}
  .home-options,.home-help,#bestRound,#shareStatus,#shareFallback{grid-column:1/-1}
  .scene-caption{font-size:7px;letter-spacing:1px;top:7px;left:8px;right:8px}
  #sceneMotion{font-size:7px;min-height:25px;padding:4px 7px}
  #title .scene-hint{font-size:6px;bottom:4px}
}
@media(prefers-reduced-motion:reduce){#characterList{scroll-behavior:auto}}
