@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--bg:#101d24;--panel:#14262e;--line:#2b4147;--muted:#9bafb0;--mint:#a4f5b1;--gold:#f5cd76;--red:#ff8c79}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#edf5eb;font:14px 'DM Sans',system-ui,sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:600 12px 'DM Sans',system-ui;min-height:44px;padding:9px 14px;border:1px solid var(--line);border-radius:7px;background:#20363d;color:inherit;cursor:pointer;transition:background .15s,transform .15s}button:hover{background:#304b50}button:active{transform:translateY(1px)}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}.primary{background:var(--mint);border-color:var(--mint);color:#122c25}.primary:hover{background:#c4ffd0}.quiet{background:transparent;color:var(--muted)}#app{height:100dvh;display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);overflow:hidden}header{height:76px;flex-shrink:0;display:flex;align-items:center;gap:30px;padding:0 28px;border-bottom:1px solid var(--line)}.brand{font:800 29px 'Barlow Condensed',sans-serif;letter-spacing:1px;display:flex;align-items:center;text-decoration:none;color:#f1f6ed}.brand>span:last-child{color:var(--mint)}.orb{width:20px;height:20px;border:4px solid var(--mint);box-shadow:0 0 18px #a4f5b130;border-radius:50%;margin-right:10px}.mission-label{font-size:10px;letter-spacing:2px;color:var(--muted)}nav{margin-left:auto;display:flex;gap:6px}nav button{background:transparent;padding:8px 11px}.status{display:flex;align-items:center;gap:28px;min-height:67px;padding:10px 28px;background:#182c32;border-bottom:1px solid var(--line);flex-shrink:0}#phase{font-size:11px;font-weight:700;letter-spacing:1.5px;color:var(--mint);white-space:nowrap}#phase i{display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:9px}#round{font-size:11px;letter-spacing:1px;color:#d0dcd5}.objective{font-size:12px;color:var(--muted)}#endBtn{margin-left:auto;min-width:132px}#endBtn span{margin-left:18px}main{display:grid;grid-template-columns:minmax(0,1fr) 292px;flex:1;min-height:0}#battlefield{position:relative;overflow:hidden;background:radial-gradient(ellipse at center,#263e3d,#101f26);min-height:0}#board{width:100%;height:100%;display:block;touch-action:none;user-select:none}.map-caption{position:absolute;left:24px;top:20px;pointer-events:none;display:grid;gap:4px;text-shadow:0 2px 4px #101d24}.map-caption span{font:600 16px 'Barlow Condensed',sans-serif;letter-spacing:2px}.map-caption small{font-size:8px;letter-spacing:1.8px;color:#9caeaa}.camera{position:absolute;left:20px;bottom:18px;display:flex;gap:5px}.camera button{background:#152830ed;box-shadow:0 4px 16px #0002}.camera button:first-child,.camera button:last-child{width:44px;font-size:20px;padding:0}#toast{position:absolute;bottom:76px;left:50%;transform:translateX(-50%);max-width:90%;padding:11px 18px;background:#101e26f2;border:1px solid #55706a;border-radius:8px;text-align:center;pointer-events:none;opacity:0;transition:opacity .2s;font-size:12px;z-index:3}#toast.show{opacity:1}#inspector{padding:24px 21px 15px;background:var(--panel);border-left:1px solid var(--line);overflow:auto}.eyebrow{font-size:9px;letter-spacing:2px;color:var(--mint);font-weight:700}.unit-head{display:flex;align-items:center;gap:8px;margin:14px 0}#portrait{width:68px;height:68px;flex-shrink:0;background:radial-gradient(#354c4e,#1d333a);border-radius:10px}.unit-head h1{font:600 25px 'Barlow Condensed',sans-serif;margin:0 0 4px}.unit-head p{color:var(--muted);font-size:10px;margin:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;gap:8px}.stats small{display:block;font-size:8px;letter-spacing:1.2px;color:var(--muted);margin-bottom:5px}.stats strong{font:600 18px 'Barlow Condensed',sans-serif}#detail{font-size:12px;color:#bbc9c3;line-height:1.7;min-height:58px}.preview{border:1px solid #688d75;border-radius:7px;padding:10px;font-size:12px;line-height:1.6;background:#1f3836;margin:10px 0}.actions{display:flex;flex-wrap:wrap;gap:7px}.actions button{flex:1}.squad-title{font-size:9px;letter-spacing:1.5px;margin:24px 0 10px;color:var(--muted);display:flex;justify-content:space-between}.roster{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.roster button{height:48px;padding:4px;position:relative}.roster img{width:30px;height:30px;object-fit:contain;image-rendering:pixelated}.roster button.active{border-color:var(--mint);background:#365646}.roster button.spent{opacity:.45}.roster small{position:absolute;right:3px;bottom:2px;font-size:9px;background:#14262e;border-radius:3px;padding:0 2px}.legend{display:flex;justify-content:space-between;margin-top:20px;color:var(--muted);font-size:9px}.legend i{display:inline-block;width:7px;height:7px;margin-right:4px;border-radius:2px}.green{background:var(--mint)}.red{background:var(--red)}.gold{background:var(--gold)}.field-note{margin-top:24px;border-top:1px solid var(--line);padding-top:16px}.field-note span{font-size:8px;letter-spacing:1.5px;color:var(--gold)}.field-note p{font-size:11px;line-height:1.7;color:var(--muted)}#restartBtn{width:100%;margin-top:10px}footer{height:30px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;padding:0 24px;border-top:1px solid var(--line);font-size:9px;color:#91a6a5;letter-spacing:.3px}dialog{border:1px solid #50675d;border-radius:16px;padding:0;background:#14262e;color:#eef6ec;max-width:760px;width:calc(100% - 28px);max-height:calc(100dvh - 28px);box-shadow:0 30px 120px #0008}dialog::backdrop{background:#08151cd9;backdrop-filter:blur(8px)}.brief-art{background:linear-gradient(90deg,#101e29ef,#101e2933),url('../BankJob.png') center 40%/cover;padding:34px 36px;min-height:240px}.brief-kicker{font-size:9px;letter-spacing:3px;color:var(--mint)}h2{font:600 46px/.98 'Barlow Condensed',sans-serif;margin:18px 0}h2 em{font-style:normal;color:var(--mint)}.brief-art p{font-size:12px;color:#ccdbcf}.brief-body{padding:26px 36px}.brief-body>p{line-height:1.7;color:#c1d0c7;font-size:13px}.brief-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 26px;margin:20px 0}.brief-grid b{font-size:11px;color:var(--gold)}.brief-grid p{font-size:11px;line-height:1.6;color:var(--muted);margin-top:6px}.brief-controls{display:flex;gap:10px}#result,#confirm{max-width:450px;padding:32px;text-align:center}#result p,#confirm p{line-height:1.7;color:#b7cbc0}#result button{margin:6px}.result-orb{font-size:52px;color:var(--mint)}#confirm h2{font-size:32px}#confirm .brief-controls{justify-content:center}
@media(max-width:1000px){header{padding:0 16px;gap:18px;height:64px}.mission-label{display:none}main{grid-template-columns:minmax(0,1fr) 250px}#inspector{padding:18px 16px}.status{padding:8px 16px;gap:18px}.objective{font-size:10px}.field-note{margin-top:16px}}
@media(max-width:650px) and (orientation:portrait){header{height:58px;padding:0 12px;gap:8px}.brand{font-size:23px;letter-spacing:.5px}.orb{width:16px;height:16px;border-width:3px;margin-right:7px}nav{gap:3px}nav button{font-size:10px;padding:6px 7px}nav #helpBtn span,nav #soundBtn{display:none}.status{padding:6px 12px;min-height:57px;gap:14px}#phase,#round{font-size:9px;letter-spacing:1px}.objective{display:none}#endBtn{min-width:103px;padding:8px 10px;font-size:11px}#endBtn span{margin-left:8px}main{display:flex;flex-direction:column}#battlefield{flex:1;min-height:180px}#inspector{flex-shrink:0;max-height:42%;padding:12px 16px;border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;overflow:auto}#panelLabel,.field-note,.legend,.squad-title,#restartBtn{display:none}.unit-head{margin:0;gap:8px}#portrait{width:45px;height:45px}.unit-head h1{font-size:21px}.unit-head p{font-size:9px}.stats{padding:3px 0;border:0;align-content:center;gap:4px}.stats small{font-size:7px}.stats strong{font-size:16px}#detail{grid-column:1/-1;min-height:0;margin:0;font-size:10px;line-height:1.5}.preview{grid-column:1/-1;margin:0;padding:7px;font-size:11px}.actions{grid-column:1/-1}.actions:empty{display:none}.actions button{min-height:44px;font-size:12px}.roster{grid-column:1/-1;grid-template-columns:repeat(5,1fr)}.roster button{height:38px;min-height:38px}.roster img{width:28px;height:28px}.map-caption{top:12px;left:14px}.map-caption span{font-size:12px}.map-caption small{display:none}.camera{left:12px;bottom:10px;gap:4px}.camera button{min-height:40px}.camera button:first-child,.camera button:last-child{width:40px}#toast{bottom:58px;width:max-content;max-width:90%;font-size:11px}footer{height:23px;padding:0 12px;font-size:8px}#saveStatus{font-size:7px}.brief-art{padding:24px;min-height:180px}.brief-body{padding:20px 24px}.brief-grid{gap:8px 16px;margin:14px 0}h2{font-size:38px}}
@media(max-height:520px) and (orientation:landscape){header{height:48px;padding:0 12px}.brand{font-size:24px}nav button{min-height:36px}.status{min-height:48px;padding:4px 12px}#endBtn{min-height:38px}.objective{display:none}main{grid-template-columns:minmax(0,1fr) 230px}#inspector{padding:12px}#panelLabel,.field-note,.legend{display:none}.unit-head{margin:0 0 8px}#portrait{width:42px;height:42px}.unit-head h1{font-size:21px}.stats{padding:8px 0}#detail{font-size:10px;min-height:0;line-height:1.5;margin:8px 0}.squad-title{margin:12px 0 6px}.preview{padding:7px;margin:6px 0;font-size:11px}.actions{gap:4px}.actions button{padding:8px;font-size:11px}footer{height:22px}.map-caption{top:10px;left:14px}.map-caption small{display:none}.camera{bottom:10px;left:12px}.brief-art{min-height:150px;padding:20px 30px}h2{font-size:34px}.brief-body{padding:20px 30px}}
.roster{grid-template-columns:repeat(5,minmax(0,1fr))}.roster button{min-width:0}.roster img{max-width:100%}
@media(max-width:650px) and (orientation:portrait){#inspector{height:260px;max-height:44%;align-content:start}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.range-key{position:absolute;top:18px;right:18px;display:flex;flex-wrap:wrap;gap:8px 12px;max-width:280px;padding:10px 12px;border-radius:8px;background:#10212bf0;pointer-events:none;font-size:9px;letter-spacing:.4px;color:#edf5eb;border:1px solid #47615b}.range-key i{display:inline-block;width:12px;height:9px;margin-right:5px}.move-key{border:2px solid #8fff8b;background:#386d46}.attack-key{border:2px dashed #ff947d;background:#654641}.blocked-key{background:#626975}.range-key small{font-size:8px;color:#c3d1cb;line-height:1.5;letter-spacing:0}.range-key{display:none}#battlefield:has(~ #inspector #actions:not(:empty)) .range-key{display:flex}@media(max-width:650px){.range-key{top:10px;right:10px;max-width:226px;padding:7px 8px;gap:6px;font-size:8px}.map-caption{display:none}.range-key small{font-size:7px}}

:root{--bg:#151b29;--panel:#202839;--line:#394253;--muted:#a7afbe;--mint:#ffba76;--gold:#ffcf73;--red:#78d7ff}.brand{letter-spacing:2px}.orb{border:0;border-radius:0;background:linear-gradient(110deg,transparent 18%,#ffad6d 18%,#ffad6d 34%,transparent 34%,transparent 43%,#ffad6d 43%,#ffad6d 59%,transparent 59%,transparent 68%,#ffad6d 68%,#ffad6d 84%,transparent 84%);width:28px;height:26px;margin-right:9px;box-shadow:none}.brand>span:last-child{margin-left:5px}header{background:#171d2b}.status{background:#222c3c}#battlefield{background:radial-gradient(ellipse at center,#303d50,#171e2c)}.primary{color:#302318}.primary:hover{background:#ffcea0}button{background:#30394b}.roster{grid-template-columns:repeat(3,minmax(0,1fr))}.roster button.active{border-color:#ffba76;background:#684a37}#portrait{background:radial-gradient(#4b505d,#283347)}.preview{background:#343c47;border-color:#bd9a70}.brief-art{min-height:255px;background:linear-gradient(90deg,#141a29e8,#141a2944),url('../BankJob.png') center/cover}.brief-kicker{color:#ffbf79}.brief-body b{color:#ffce8e}.range-key{background:#171f30f2}.map-caption{color:#ddd3b9}.objective{color:#ffce8e;font-weight:600}.field-note{border-color:#445066}.legend .red{background:#ff947d}.legend .green{background:#8fff8b}#inspector{scrollbar-width:thin}#missionArt{width:100%;border-radius:8px;display:block;margin-top:14px;border:1px solid var(--line)}.brief-grid{gap:10px 26px}.brief-grid p{font-size:12px}#inspectBtn{background:transparent}@media(max-width:650px) and (orientation:portrait){#missionArt{display:none}.objective{display:block;font-size:9px;position:absolute;top:104px;left:12px;z-index:2;background:#171f30e8;padding:5px 8px;border-radius:4px}.status{position:relative}.objective{position:static;display:none}.brief-art{min-height:180px}.roster{grid-template-columns:repeat(3,minmax(0,1fr))}#inspector{height:270px}.range-key{max-width:230px}}@media(max-height:520px) and (orientation:landscape){#missionArt{display:none}.brief-art{min-height:180px}}

#jobTracker{position:absolute;right:16px;bottom:18px;color:#ffcf73;border-color:#8e754d;background:#1b2435ee;font-size:11px;padding:8px 12px;max-width:190px;text-align:left}#jobTracker:hover{background:#3d3840}.controls-note{font-size:10px!important;color:#a7afbe!important}@media(max-width:650px){#jobTracker{right:10px;bottom:10px;max-width:190px;font-size:10px;padding:7px 9px}}@media(max-width:350px){#jobTracker{font-size:9px;max-width:156px}}

.mission-picker{display:flex;gap:8px;margin-bottom:18px}.mission-picker button{flex:1;font-size:11px}.mission-picker button.active{border-color:#8bddff;color:#b5efff}.alert-note{color:#9bedff}body.police{--mint:#8cdeff;--gold:#bcecff}body.police .brand>span:last-child{color:#8cdeff}body.police .primary{background:#8cdeff;border-color:#8cdeff;color:#172638}body.police #jobTracker{color:#a4e9ff;border-color:#6794aa}body.police .brief-art{background:linear-gradient(100deg,#122c42ed,#1b2c3bc9),url('../BankJob.png') center/cover}body.police .objective{color:#a5e7ff}

.mission-picker{display:flex;gap:8px;margin-bottom:18px}.mission-picker button{flex:1;font-size:11px}.mission-picker button.active{border-color:#8bddff;color:#b5efff}.alert-note{color:#9bedff}body.police{--mint:#8cdeff;--gold:#bcecff}body.police .brand>span:last-child{color:#8cdeff}body.police .primary{background:#8cdeff;border-color:#8cdeff;color:#172638}body.police #jobTracker{color:#a4e9ff;border-color:#6794aa}body.police .brief-art{background:linear-gradient(100deg,#122c42ed,#1b2c3bc9),url('../BankJob.png') center/cover}body.police .objective{color:#a5e7ff}

body.getaway .roster{grid-template-columns:repeat(5,minmax(0,1fr))}body.getaway.police .roster{grid-template-columns:repeat(4,minmax(0,1fr))}.mission-picker{flex-wrap:wrap}.mission-picker button{min-width:100px}.side-options{display:flex;gap:8px;margin:12px 0 20px}.side-options button{flex:1}.side-options button.active{border-color:var(--gold);background:#46556a}#sidePicker[hidden]{display:none}#sidePicker>p{font-size:12px;color:#b8ced6}body.getaway .brief-art{background:linear-gradient(100deg,#161f32ef,#192735bb),url('../BankJob.png') center/cover}

/* Eight robber slots wrap into two touch-friendly rows. */
body.getaway .roster{grid-template-columns:repeat(4,minmax(0,1fr))}body.getaway.police .roster{grid-template-columns:repeat(5,minmax(0,1fr))}body.getaway .roster button{min-height:44px;height:44px}

/* Keep the longer Heist Tactics wordmark clear of mobile controls. */
@media(max-width:650px) and (orientation:portrait){.brand{font-size:20px;letter-spacing:.3px;white-space:nowrap}.brand .orb{width:19px;flex-shrink:0;margin-right:5px}header{gap:5px}nav button{padding-left:6px;padding-right:6px}}
