/* A draft table beside the collection: positions stay visible while choosing cards. */
.crew-picker{display:flex;align-items:center;gap:8px;min-height:44px;background:#23364c;border:1px solid #768498;padding:7px 11px;font-size:12px;letter-spacing:0;color:#f5e9cb}
.crew-picker svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}
.starter-dialog{width:1160px;max-width:calc(100vw - 32px);max-height:calc(100svh - 32px);padding:0;background:#14223a;border:1px solid #a5a082;border-radius:7px;overflow:auto;box-shadow:0 22px 90px #0009}
.starter-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:25px 30px 20px;border-bottom:1px solid #64718566;background:linear-gradient(110deg,#243b52,#18273e)}
.starter-header h2{font:800 54px/.98 Barlow,sans-serif;margin:7px 0 10px;color:#fff0cf}
.starter-header p:last-child{font-size:13px;line-height:1.5;color:#c6d2df}
.starter-header .close-button{flex:none;width:44px;height:44px;display:grid;place-items:center;background:#111e30;position:static}
.starter-header .close-button svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.6}
.starter-run-note{margin:16px 28px 0;padding:12px 15px;background:#493b2d;border:1px solid #af9158;color:#ffe4b1;font-size:13px;line-height:1.5}
.starter-layout{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:30px;padding:26px 28px 30px;align-items:start}
.starter-lineup{position:sticky;top:20px;background:#20364b;padding:19px 15px 15px;border:1px solid #647c8e;border-radius:3px;box-shadow:0 5px 0 #0c1929}
.starter-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.starter-section-title h3{font:800 27px/1.1 Barlow,sans-serif;color:#f7e7c1}
.starter-section-title>span{font-size:11px;color:#d4dcea;font-variant-numeric:tabular-nums}
.starter-placement{font-size:11px;line-height:1.5;color:#becfdd;margin:10px 0 16px;min-height:33px}
.starter-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 10px}
.starter-position{position:relative;min-width:0}
.starter-position>button:first-child{display:flex;flex-direction:column;align-items:stretch;text-align:left;width:100%;min-height:172px;height:100%;padding:5px;background:#15283b;border:1px dashed #8193a6;border-radius:4px;color:#e9e2d0;position:relative;overflow:hidden}
.starter-position:has(.starter-portrait)>button:first-child{background:#ddceab;border:1px solid #f4dfaa;color:#22374a;box-shadow:0 3px 0 #0e1b2d}
.starter-position[data-moving=true]>button:first-child{outline:3px solid #f6c466;outline-offset:3px}
.starter-position strong{font:800 17px/1.05 Barlow,sans-serif;padding:7px 2px 3px;overflow-wrap:anywhere}
.starter-position small{font-size:9px;line-height:1.4;padding:2px;display:block;margin-top:auto}
.position-number{position:absolute;left:7px;top:7px;z-index:1;font-size:10px;font-weight:800;background:#15283bf0;color:#ffe5a8;padding:3px 5px;border:1px solid #8a9d9c;border-radius:2px}
.starter-portrait{display:block;position:relative;overflow:hidden;aspect-ratio:1.04;border:1px solid #27394b;background:#27394b}
.starter-portrait>img,.starter-portrait>svg{display:block;width:100%;height:100%;object-fit:cover}
.starter-position .position-placeholder{min-height:98px;display:grid;place-items:center}
.position-placeholder svg{width:25px;height:25px;color:#7c93a8}
.starter-remove{position:absolute;top:-9px;right:-9px;z-index:2;width:44px;height:44px;display:grid;place-items:center;background:transparent}
.starter-remove .ui-icon{background:#20364b;border:1px solid #b3bdbe;border-radius:50%;padding:4px;width:27px;height:27px;color:#f5ead2}
.starter-lineup-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #8193a655;margin-top:18px;padding-top:9px;font-size:11px;color:#f4d699}
.starter-lineup-foot button{min-height:44px;padding:6px;background:transparent;text-decoration:underline;text-underline-offset:4px;color:#d9e0e6;font-size:11px}
.starter-keepsake{font-size:11px;line-height:1.6;color:#b8ccda;border-left:2px solid #b49a66;padding-left:10px;margin-top:12px}
.starter-tools{display:flex;gap:10px;margin:16px 0}
.starter-tools label{flex:1;min-width:0}
.starter-tools input{width:100%;height:44px;background:#0e1a2d;color:#f9edd4;border:1px solid #6c7e96;border-radius:3px;padding:10px 12px;font:inherit;font-size:13px}
.starter-tools input::placeholder{color:#b4c0d0}
.starter-tools button{min-height:44px;flex:none;font-size:11px;padding:8px;background:#2a3d53;border:1px solid #71869d}
.starter-owned{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px 13px;align-items:stretch}
.starter-card{min-width:0;display:flex;flex-direction:column;background:#e4d8bb;border:1px solid #f5e5b8;border-radius:5px;box-shadow:0 4px 0 #0b192b;overflow:hidden;color:#25384b}
.starter-card[data-selected=true]{outline:2px solid #f5c56d;outline-offset:3px;background:#f3e4bf}
.starter-card>button{width:100%;padding:7px 7px 0;text-align:left;background:transparent;color:inherit;display:flex;flex-direction:column;flex:1}
.starter-card>button:disabled{opacity:1;cursor:default}
.starter-card>button:disabled .starter-add{background:#c6bea9;color:#586065}
.starter-house{font-size:8px;letter-spacing:.4px;text-transform:uppercase;margin:1px 0 7px;min-height:10px}
.starter-card .starter-portrait{width:100%;border-radius:2px}
.starter-card strong{font:800 23px/1.03 Barlow,sans-serif;display:block;margin:9px 0 7px;min-height:47px;overflow-wrap:anywhere}
.starter-card-stats{font-size:11px;font-weight:700;display:block;border-top:1px solid #9da69e;border-bottom:1px solid #9da69e;padding:7px 0;width:100%;line-height:1.5}
.starter-card-stats b{display:block;font-size:10px;font-weight:400}
.starter-ability{font-size:10px;line-height:1.4;display:block;padding:8px 0 12px;flex:1}
.starter-add{display:flex;align-items:center;justify-content:space-between;gap:3px;background:#284559;color:#fff0cf;min-height:37px;width:100%;font-size:10px;padding:8px}
.starter-add svg{width:14px;height:14px}
.starter-card[data-selected=true] .starter-add{background:#476354;color:#fff3d7}
.starter-print{font-size:10px;margin:9px 7px 10px;line-height:1.4}
.starter-print-label{font-size:9px;display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:7px}
.starter-print-label select{font:inherit;font-size:10px;width:100%;min-height:36px;color:#203248;background:#f9efd9;border:1px solid #9e9e8c;border-radius:2px;padding:5px}
.starter-empty{padding:28px 15px;background:#20364b;border:1px dashed #82929e;font-size:13px;line-height:1.7}
.starter-empty h4{font:800 32px/1.1 Barlow,sans-serif;margin:0 0 10px}.starter-empty a{display:inline-block;margin-top:15px;color:#ffe3a3}
.starter-footer{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:17px 28px 20px;background:#112035;border-top:1px solid #9b9e8c;box-shadow:0 -10px 25px #101c2d77;z-index:4}
.starter-footer p{font-size:12px;line-height:1.5;max-width:610px;min-height:18px;color:#e4e7df}
.starter-footer a{font-size:11px;display:inline-block;margin-top:7px;color:#d9c18a;text-underline-offset:3px}
.starter-footer .start-button{flex:none;font-size:26px;min-width:220px;padding:15px 20px}
.starter-footer .start-button:disabled{opacity:1;background:#435064;color:#b4bfce;border-color:#64768b;box-shadow:0 4px 0 #0d1727}
.starter-portrait[data-finish]:not([data-finish=standard]):after,.crew-card[data-finish]:not([data-finish=standard]) .card-picture:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(125deg,transparent 20%,#ffe29c30 38%,#d5dcff35 48%,#8fc8c830 57%,transparent 72%);mix-blend-mode:screen}
.crew-card[data-finish]:not([data-finish=standard]){border-color:#edf0cc;box-shadow:0 5px 0 #0a1423,inset 0 0 0 2px #fff2ba55}
@media(max-width:960px){.starter-layout{grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:20px;padding:20px}.starter-owned{grid-template-columns:repeat(2,minmax(0,1fr))}.starter-lineup{padding:15px 11px}.starter-position>button:first-child{min-height:155px}.starter-position strong{font-size:15px}.starter-position small{font-size:8px}.starter-header{padding:22px}.starter-header h2{font-size:45px}.starter-footer{padding:16px 20px}.starter-footer .start-button{min-width:190px;font-size:23px}}
@media(max-width:720px){.starter-dialog{max-width:calc(100vw - 16px);max-height:calc(100svh - 16px)}.starter-layout{grid-template-columns:1fr;gap:26px;padding:16px}.starter-lineup{position:static}.starter-header{padding:18px 16px}.starter-header h2{font-size:39px}.starter-header p:last-child{font-size:12px;max-width:290px}.starter-header .dialog-kicker{font-size:8px}.starter-header .close-button{width:44px;height:44px}.starter-position>button:first-child{min-height:150px}.starter-position strong{font-size:17px}.starter-position small{font-size:9px}.starter-placement{min-height:0}.starter-keepsake{margin-top:5px}.starter-owned{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 12px}.starter-card strong{font-size:24px;min-height:47px}.starter-house{font-size:9px}.starter-ability{font-size:11px}.starter-card-stats{font-size:12px}.starter-add{min-height:42px;font-size:11px}.starter-print-label select{min-height:44px}.starter-footer{display:grid;grid-template-columns:1fr;gap:10px;padding:12px 16px max(14px,env(safe-area-inset-bottom))}.starter-footer p{font-size:11px;min-height:0}.starter-footer a{font-size:10px}.starter-footer .start-button{min-height:48px;width:100%;font-size:24px}.starter-run-note{margin:14px 16px 0;font-size:12px}.starter-section-title{gap:6px}.starter-section-title h3{font-size:26px}.starter-section-title>span{font-size:10px}.starter-print{font-size:10px}}
@media(max-width:370px){.starter-layout{padding:12px}.starter-lineup{padding:13px 9px}.starter-board{gap:11px 7px}.starter-position strong{font-size:14px}.starter-position small{font-size:8px}.starter-position>button:first-child{min-height:146px}.starter-card strong{font-size:22px}.starter-card-stats{font-size:11px}.starter-header h2{font-size:36px}.starter-card .starter-house{font-size:8px}}

/* Keep the controls in view; each desktop column has its own scroll area. */
.starter-dialog[open]{display:flex;flex-direction:column;height:min(900px,calc(100svh - 32px))}
.starter-header{flex:none}
.starter-layout{flex:1;min-height:0;overflow:hidden;grid-template-rows:minmax(0,1fr)}
.starter-lineup{position:static;max-height:100%;overflow:auto;scrollbar-width:thin}
.starter-collection{min-height:0;max-height:100%;overflow:auto;padding:3px 5px 8px;scrollbar-width:thin;scrollbar-color:#62758c #152338}
.starter-footer{position:relative;flex:none}
@media(min-width:721px) and (max-height:850px){
 .starter-header{padding:17px 26px 15px}.starter-header h2{font-size:42px;margin:5px 0 7px}
 .starter-layout{padding:18px 24px;gap:24px}.starter-lineup{padding:12px 11px}
 .starter-placement{min-height:0;margin:8px 0 10px;font-size:10px}
 .starter-board{gap:10px 8px}.starter-position>button:first-child{min-height:126px;padding:4px}
 .starter-position .starter-portrait{height:64px;aspect-ratio:auto;width:100%}.starter-position .position-placeholder{min-height:64px}
 .starter-position strong{font-size:16px;padding:5px 2px 2px;min-height:36px}.starter-position small{font-size:8px;padding:0 2px}
 .starter-lineup-foot{margin-top:8px;padding-top:0}.starter-keepsake{font-size:10px;line-height:1.4;margin-top:4px}
 .starter-footer{padding:13px 24px 16px}.starter-footer .start-button{min-height:51px;padding:10px 18px;font-size:24px}
 .starter-owned .starter-portrait{max-height:140px}.starter-card strong{font-size:23px;min-height:38px;margin:7px 0 6px}
 .starter-card-stats{padding:5px 0}.starter-ability{padding:6px 0 9px}.starter-print{margin:7px}
 .starter-section-title h3{font-size:25px}.starter-tools{margin:12px 0}
}
@media(max-width:720px){
 .starter-dialog[open]{height:calc(100svh - 16px)}
 .starter-layout{display:block;overflow:auto;padding:16px}
 .starter-lineup{overflow:visible;max-height:none;margin-bottom:25px}
 .starter-collection{overflow:visible;max-height:none;padding:0 3px 8px}
 .starter-footer{box-shadow:0 -5px 15px #101c2d55}
}
.starter-mobile-tabs{display:none}
.starter-collection-head{position:sticky;top:-3px;z-index:3;background:#14223a;padding:3px 0 1px;box-shadow:0 5px 0 #14223a}
@media(max-width:720px){
 .starter-mobile-tabs{display:flex;gap:4px;flex:none;padding:0 16px;background:#17283e;border-bottom:1px solid #77869b66}
 .starter-mobile-tabs button{flex:1;min-height:46px;padding:9px 8px;color:#bdcbd8;font-size:13px;background:transparent;border-bottom:3px solid transparent}
 .starter-mobile-tabs button[aria-pressed=true]{color:#ffe1a4;border-color:#efbf69;background:#253b51}
 .starter-mobile-tabs span{font-size:11px;margin-left:6px;color:#e4d5b7}
 .starter-dialog[data-view=collection] .starter-lineup,.starter-dialog[data-view=formation] .starter-collection{display:none}
 .starter-collection-head{top:-16px;padding-top:10px}
 .starter-header{padding:14px 16px}.starter-header h2{font-size:36px;margin-bottom:7px}
 .starter-header p:last-child{font-size:11px}
 .starter-position>button:first-child{min-height:145px}
 .starter-lineup{padding:12px 11px;margin-bottom:0}
 .starter-lineup-foot{margin-top:12px}.starter-keepsake{font-size:10px;line-height:1.4}
 .starter-footer p{font-size:10px;line-height:1.4}.starter-footer{gap:8px;padding-top:10px}
 .starter-footer a{margin-top:4px}
}
@media(max-width:720px){.starter-position strong{font-size:clamp(11px,3.5vw,14px);overflow-wrap:normal}}
