@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:600;src:url('/fonts/barlow-condensed-600-normal.woff2') format('woff2');font-display:swap}
@font-face{font-family:'Barlow Condensed';font-style:italic;font-weight:800;src:url('/fonts/barlow-condensed-800-italic.woff2') format('woff2');font-display:swap}
:root{
  --cream:#f6e1bf;--ink:#1c1916;--muted:#c1af98;--orange:#ffb545;--edge:#786653;
  --accent:var(--orange);--accent-hover:#ffd191;--line:#68594a;--raised:#3c342b;--field:#221e19;
  --display:'Barlow Condensed','Arial Narrow',sans-serif;
  --key:linear-gradient(176deg,#494039 0%,#3b332c 24%,#302a25 70%,#29231f 100%);
  --key-lit:linear-gradient(176deg,#5b4c3c,#44392e 32%,#352c25 92%);
  --key-edge:inset 0 1px #c5a88266,inset 1px 0 #ad94754d,inset -1px -2px #17130fe6,0 2px 0 #0c0a08;
  --case:repeating-linear-gradient(102deg,#fff1d302 0 1px,transparent 1px 4px),linear-gradient(160deg,#42382e,#29231e 42%,#1e1a17);
}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;background:var(--ink);color:var(--cream);font:500 15px/1.45 system-ui,sans-serif}
[hidden]{display:none!important}
button,a{touch-action:manipulation}
button:focus-visible,a:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
button{font:inherit;cursor:pointer;color:inherit}
#cover,#game{position:fixed;inset:0}
#cover{isolation:isolate;background:#231a24;display:flex;flex-direction:column;overflow:auto}
#cover::before,#cover::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1}
#cover::before{background:url('/getaway/cover.jpg') 52% 43%/cover no-repeat}
#cover::after{background:linear-gradient(90deg,#16121ce8 0%,#18131bb0 27%,#18131b49 47%,transparent 73%),linear-gradient(0deg,#170f1a 0%,#170f1aa3 13%,transparent 38%,transparent 78%,#22131d7d 100%)}
.coverbar,.gamebar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:23px clamp(20px,5vw,78px)}
.brand{color:var(--cream);text-decoration:none;display:flex;align-items:center;gap:10px}
.brand img{display:block;width:82px;height:auto;border-radius:3px}
.brand b{font:normal 24px/1 var(--display);letter-spacing:.045em}
.coverbar nav,.gamebar nav{display:flex;align-items:center;gap:9px}
.coverbar nav button,.coverbar nav a,.gamebar nav button,.cover-actions button,.world-prompt{padding:10px 16px;background:#221827d1;border:1px solid var(--edge);border-radius:6px;font-weight:750;text-decoration:none;color:var(--cream)}
.coverbar nav button:hover,.gamebar nav button:hover,.cover-actions button:hover{border-color:var(--orange)}
.coverbar nav button span,.cover-actions button span{padding-left:13px}
.cover-content{margin:auto 0;padding:42px clamp(22px,7vw,112px);max-width:830px}
.cover-kicker{display:flex;gap:12px;align-items:center;font-size:11px;font-weight:850;letter-spacing:.24em;color:#ffd8bd}
.cover-kicker>span:first-child{height:2px;width:27px;background:var(--orange)}
.kicker-dot{opacity:.55}
.cover-content h1{font:normal clamp(76px,12.7vw,192px)/.98 var(--display);letter-spacing:-.034em;margin:8px 0 13px;filter:drop-shadow(3px 6px 0 #3d232a);transform:skew(-4deg);transform-origin:left center}
.cover-content>p:not(.cover-status){max-width:420px;font-size:clamp(16px,1.6vw,21px);line-height:1.48;color:#f3dcd2;margin:0 0 25px}
.cover-actions{display:flex;align-items:center;gap:10px}
.cover-actions button{padding:12px 18px}
button.orange,.cover-actions button.orange{color:#21151a;background:var(--orange);border-color:var(--orange)}
button.orange:hover{background:#ffd0ac}
.cover-status{color:#ffbd98;margin:5px 0 0;font-size:13px;min-height:16px}
.district-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;padding:0 clamp(20px,5vw,78px) 26px}
.district-card{display:flex;align-items:center;gap:10px;text-align:left;padding:10px 12px;min-width:0;min-height:63px;background:#251c28e8;border:1px solid var(--edge);border-radius:7px}
.district-card:hover{border-color:var(--district)}
.district-card img{height:24px;width:24px;object-fit:contain}
.district-card strong{display:block;font-size:13px;line-height:1.2}
.district-card small{display:block;margin-top:3px;color:var(--muted);font-size:11px}
.district-card .arrow{margin-left:auto;color:var(--district)}
#game-view{width:100%;height:100%;display:block;touch-action:none}
.gamebar{position:absolute;top:0;left:0;right:0;padding:13px 20px;background:linear-gradient(#191521b9,transparent);pointer-events:none}
.gamebar>*{pointer-events:auto}
.player-hud,.radar{position:absolute;padding:10px 12px;background:#211826e8;border:1px solid var(--edge);border-radius:7px}
.player-hud{right:20px;top:71px;width:196px}
.health-line,.hud-small,.radar-label{display:flex;align-items:center;justify-content:space-between;gap:10px}
.health-line span,.hud-small,.radar-label span{font-size:11px;color:#d3bac6}
.hud-small{margin-top:4px}
meter{width:100%;height:12px;accent-color:#f39178}
meter::-webkit-meter-optimum-value{background:#f39178}
.radar{left:20px;bottom:19px}
.radar canvas{width:170px;height:auto;display:block}
.radar-label{border-top:1px solid var(--edge);padding:6px 0 0;margin-top:5px}
.radar-label strong{font-size:12px}
.desktop-hints{position:absolute;right:20px;bottom:21px;background:#211826d4;padding:8px 11px;border-radius:6px;display:flex;gap:12px;font-size:11px}
kbd{font:700 .9em/1 system-ui;color:#fff0df;background:#3f2f40;border:1px solid #fff3;border-radius:4px;padding:3px 5px}
.world-prompt{position:absolute;left:50%;bottom:100px;transform:translateX(-50%);border-color:#ffa86c75}
.game-toast{position:absolute;left:50%;transform:translateX(-50%);color:#ffcfaf;text-align:center;text-shadow:0 1px 3px black;pointer-events:none}
.game-toast{bottom:153px;font-weight:800;width:min(80%,500px)}
.reticle{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:30px;text-shadow:1px 1px 3px #16121d;pointer-events:none}
.touch-controls{display:none}
#panel{padding:26px 28px;border:1px solid #75555f;border-radius:10px;background:#251b2a;color:var(--cream);width:min(94vw,540px);max-height:90dvh;overflow:auto;box-shadow:0 24px 80px #000a}
#panel.wide{width:min(94vw,850px)}
#panel::backdrop{background:#0f0b13bc;backdrop-filter:blur(7px)}
.panel-buttons{display:flex;align-items:center;justify-content:flex-end;gap:8px;position:sticky;top:0;z-index:3;pointer-events:none;float:right}
.panel-buttons button{pointer-events:auto;width:33px;height:33px;padding:0;background:#3c2a3d;border:1px solid var(--edge);border-radius:5px;font-size:21px}
.panel-title{font:normal 38px/1.1 var(--display);text-transform:uppercase;letter-spacing:.02em;margin:4px 65px 13px 0}
.panel-stack{display:grid;gap:8px;margin:14px 0}
.panel-stack .district-card{width:100%}
.panel-note{color:var(--muted);margin:0 0 14px}
#panel .primary{background:#ffa977;color:#251723!important;border-color:#ffa977}
#panel button.secondary,#panel a.secondary{background:#382938;color:var(--cream)!important}
#panel input:not([type=checkbox]),#panel textarea{background:#1c1520;border-color:#ffffff34;color:var(--cream)}
#panel .dialog-heading p,#panel .form-footnote,#panel .field em,#panel .launch-destination p{color:var(--muted)}
#panel .launch-destination,#panel .review-token,#panel .pangea-artwork,#panel .notice{background:#211823;border-color:#ffffff1f}
#panel .pangea-artwork{padding:10px;border:1px dashed #a58394}
#panel .pangea-artwork.dragging{border-color:var(--orange);background:#3c293d}
.routes-link{display:inline-flex;color:var(--orange);text-decoration:none;padding:5px 0}
.guide-grid{display:grid;grid-template-columns:max-content 1fr;gap:12px 16px;color:var(--cream)}
.guide-grid dd{margin:0;color:var(--muted)}
.crew-card{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:11px 14px;background:#312337;border:1px solid var(--edge);border-radius:5px;text-align:left;width:100%}
.crew-card[aria-pressed=true]{border-color:var(--orange)}
.crew-card small{color:var(--muted)}
@media(max-width:760px){
  #cover::before{background-position:59% 42%}
  #cover::after{background:linear-gradient(0deg,#190f1bef 0%,#1a111bc9 46%,transparent 89%),linear-gradient(90deg,#1d14237d,transparent)}
  .cover-content{padding-top:34vh;padding-bottom:15px}
  .cover-content h1{font-size:clamp(60px,18vw,120px)}
  .coverbar{padding:14px 16px}
  .district-strip{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 16px 16px;gap:6px}
  .district-card{min-height:46px;padding:7px 9px}
  .gamebar{padding:9px 10px}
  .gamebar .brand b{display:none}
  .gamebar nav button{padding:7px 8px;font-size:12px}
  .player-hud{right:10px;top:57px;width:145px}
  .radar{left:10px;bottom:10px;padding:5px 7px}
  .radar canvas{width:114px}
  .radar-label strong,.radar-label span{font-size:9px}
  .desktop-hints{display:none}
  .world-prompt{bottom:182px;white-space:nowrap}
  .game-toast{bottom:227px}
}
@media(pointer:coarse){
 .desktop-hints{display:none}.touch-controls{display:flex;justify-content:space-between;align-items:flex-end;position:absolute;left:10px;right:10px;bottom:109px;pointer-events:none}
 .touch-controls button{pointer-events:auto;touch-action:none;background:#2a1d2edb;border:1px solid var(--edge);border-radius:6px;width:41px;height:41px;padding:0;font-size:13px}
 .touch-actions,.touch-move{display:grid;gap:3px}
 .touch-move{grid-template-columns:repeat(3,41px)}
 .touch-move button:first-child{grid-column:2}.touch-move button:nth-child(2){grid-column:1}
 .world-prompt{bottom:85px;left:auto;right:10px;transform:none}
}
@media(max-width:420px){.cover-content{padding-top:29vh}.cover-actions button{padding:9px 12px}#panel{padding:18px 14px}.brand b{font-size:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
#district-markers{position:absolute;inset:0;pointer-events:none;z-index:1}
.gamebar{z-index:3}
.player-hud,.radar,#waypoint,.world-prompt,.reticle,.touch-controls,#city-overview{z-index:2}
.district-marker{
  position:absolute;top:0;left:0;transform:translate(-50%,-100%);pointer-events:auto;
  display:flex;align-items:center;gap:7px;min-height:36px;
  padding:5px 11px;color:#fff4e9;background:#221a24f3;border:1px solid var(--chain-color);border-radius:5px;
  font-size:13px;font-weight:800;line-height:1.1;white-space:nowrap;box-shadow:0 3px 10px #120e16a0;
}
.district-marker::after{
  content:"";position:absolute;top:calc(100% + 1px);left:50%;width:1px;height:10px;background:var(--chain-color)
}
.district-marker img{object-fit:contain;width:18px;height:18px}
.district-marker:hover,.district-marker.pinned{background:var(--chain-color);color:#221a24}
button.radar{text-align:left}
button.radar:hover{border-color:var(--orange)}
.radar kbd{height:auto;min-width:0;padding:3px 4px}
#actor-name{
  padding:0 2px;font-size:14px;font-weight:800;min-height:22px;
  border:0;border-radius:3px;background:none;
}
#actor-name:hover,#actor-name[aria-pressed=true]{color:var(--orange)}
.inspect-active :is(.radar,.desktop-hints,.touch-controls,#waypoint){display:none}

#room-name{
  position:absolute;z-index:2;padding:6px 10px;border-radius:5px;
  color:#fff2de;background:#231a1ee8;border:1px solid #c6a0817a;
  font-size:13px;font-weight:800;pointer-events:none;
}
#room-name{left:20px;top:73px}
.inside .radar,.inside #waypoint,.inside .fight-hint{display:none}
#map-toggle:disabled{opacity:.46}
#panel[data-screen=wardrobe]{
  width:min(820px,calc(100vw - 24px));padding:16px 20px;overflow:hidden;
  background:#241c1a;border-color:#b89c7c;
}
#panel[data-screen=wardrobe] .panel-title{font-size:31px;margin:0 40px 11px 0}
.wardrobe-layout{display:grid;grid-template-columns:1fr .92fr;gap:17px;align-items:start}
#wardrobe-look{height:min(57dvh,480px);overflow:hidden;border:1px solid #ad8f7461;border-radius:5px;background:#473b3b}
.wardrobe-options{min-width:0;max-height:min(57dvh,480px);overflow:auto;scrollbar-width:thin;padding:2px 4px 4px 3px}
.wardrobe-group{
  border:0;border-top:1px solid #e9ccb94a;margin:13px 0 0;padding:6px 0 0;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px
}
.wardrobe-group legend{padding:0 8px 0 0;color:#f7d1aa;font-size:12px;font-weight:800}
.wardrobe-group button{
  padding:7px 8px;text-align:left;min-height:40px;border-radius:4px;
  font-size:12px;font-weight:730;border:1px solid #d5b29b4e;background:#3b2d2b
}
.wardrobe-group button[aria-pressed=true]{
  background:#dfaa7d;color:#2a1a18;border-color:#f1be94;
}
@media(pointer:coarse){
  .touch-actions{grid-template-columns:repeat(2,48px)}
  .touch-actions button{width:48px}
}
@media(max-width:680px){
  #room-name{left:10px;top:57px;font-size:11px}
  .wardrobe-group{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:7px;padding-top:4px;gap:4px}
  .wardrobe-group button{min-height:34px;padding:5px 6px;font-size:11px}
}
@media(max-width:560px) and (orientation:portrait){
  #panel[data-screen=wardrobe]{width:calc(100vw - 16px);padding:12px}
  #panel[data-screen=wardrobe] .panel-title{font-size:25px;margin-bottom:10px}
  .wardrobe-layout{grid-template-columns:1fr;gap:7px}
  #wardrobe-look{height:min(42dvh,400px)}
  .wardrobe-options{max-height:calc(89dvh - min(42dvh,400px) - 76px)}
}

.coin-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 14px}
.coin-filters>div{display:grid;gap:5px;min-width:0}
.coin-filters label{font-size:13px;color:var(--muted)}
.coin-filters select{width:100%;min-width:0;padding:9px 10px;border:1px solid #75555f;border-radius:5px;background:#332537;color:var(--cream);font:inherit}
.explore-coin{gap:5px;padding:12px 13px}
.explore-more{padding:9px 14px;border:1px solid #75555f;border-radius:5px}

.driver-tools{display:grid;gap:4px}
.driver-tools button{background:#33261eeb;border:1px solid #c89960;border-radius:4px;font-size:12px;color:#ffddae;padding:5px 7px;min-height:32px}
.driver-tools :first-child:not([hidden]){margin-top:6px}
.driver-tools button:focus-visible,.driver-tools button:hover{background:#513b2b}
.driver-tools button:disabled{opacity:.65}
.audio-options{display:grid;gap:8px;border:1px solid #75555f;padding:12px;margin:8px 0 12px}
.audio-options label{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.audio-options select{max-width:100%;color:inherit;background:#32282e}
.audio-options+p a{color:var(--orange)}
@media(pointer:coarse){.driver-tools button{min-height:40px}}

/* Dashboard controls are individual switches. The middle of the street stays clear. */
.gamebar{padding:16px 21px;background:none}
.brand b,.cover-content h1,.panel-title{font-family:var(--display);font-style:italic;font-weight:800}
.gamebar .brand{gap:7px;color:#fff0d7;filter:drop-shadow(0 2px 3px #19140fc7)}
.gamebar .brand b{font-size:27px;letter-spacing:-.025em}
.gamebar .brand img{width:82px;height:auto;border:1px solid #ccb99875;border-radius:3px}
.gamebar .presets{
  position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));
  display:grid;grid-template-columns:repeat(3,auto) auto;gap:3px;padding:4px;
  border:1px solid #695a49;border-bottom-color:#241e18;border-radius:5px;background:#191512;box-shadow:0 3px 9px #0d0a0899,inset 0 1px #ad998066;
}
.gamebar .presets button,.map-heading button,.cover-actions button,.coverbar nav button,.coverbar nav a,.driver-tools button,.touch-controls button,.world-prompt{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--key);box-shadow:var(--key-edge);border:1px solid #5a4d40;border-radius:3px;
  color:var(--cream);font:600 17px/1.1 var(--display);text-shadow:0 1px 1px #110f0c;
}
.gamebar .presets button{min-width:86px;min-height:43px;padding:8px 14px;white-space:nowrap}
.gamebar .presets .ui-icon,.map-heading .ui-icon{height:18px;width:18px;color:#e7bd86;stroke-width:1.65}
.gamebar .presets [data-launch]{color:#ffd79c;min-width:116px}
:is(.gamebar .presets,.map-heading,.cover-actions,.coverbar nav,.driver-tools,.touch-controls) button:hover:not(:disabled),.world-prompt:hover{background:var(--key-lit);border-color:#b19670}
:is(.gamebar .presets,.map-heading,.driver-tools,.touch-controls) button:active,
:is(.gamebar .presets,.map-heading) button[aria-pressed=true]{color:#ffd08a;border-color:#967242;background:#2c251e;box-shadow:inset 0 2px 4px #140f0a}
.gamebar button:focus-visible,.radar:focus-visible,.map-heading button:focus-visible,.district-marker:focus-visible,#panel :focus-visible{outline:2px solid #ffc76b;outline-offset:2px}
.player-hud{top:max(16px,env(safe-area-inset-top));right:max(20px,env(safe-area-inset-right));width:auto;padding:0;border:0;background:none;box-shadow:none;pointer-events:none}
.dash-readout{
  position:relative;display:flex;align-items:center;padding:4px;background:var(--case);border:1px solid #7e6b55;
  border-radius:4px;box-shadow:inset 0 1px #d6be9d55,0 2px 5px #100d0aa3;pointer-events:auto;
}
.dash-readout :is(.health-line,.hud-small){display:contents}
.dash-readout :is(#actor-name,#hp-label,#equipment,#connection){
  position:relative;min-height:26px;display:grid;align-items:center;padding:0 12px;background:linear-gradient(#211b16,#1b1713);
  font:600 16px/1 var(--display);color:#e4c398;border:0;border-right:1px solid #564638;border-radius:0;white-space:nowrap;text-transform:capitalize;
}
.dash-readout #actor-name{font-style:italic;font-weight:800}
.dash-readout .hp-display{position:relative}
.dash-readout #hp-label{padding-bottom:3px;color:#ffbb4b;letter-spacing:.035em}
.dash-readout #equipment{font-size:13px;letter-spacing:.055em}
.dash-readout #connection{border-right:0}
.dash-readout #actor-name:hover{color:#ffcb75}
.dash-readout #health{position:absolute;bottom:3px;width:56%;height:3px;left:22%;pointer-events:none;appearance:none;border:0;border-radius:0;background:#4c3924;accent-color:#e4a03a}
#health::-webkit-meter-bar{height:3px;background:#4c3924;border:0;border-radius:0}
#health::-webkit-meter-optimum-value,#health::-webkit-meter-suboptimum-value,#health::-webkit-meter-even-less-good-value{background:#df9d3b}
#health::-moz-meter-bar{background:#df9d3b}
.driver-tools{margin-top:4px;display:flex;justify-content:flex-end;gap:5px}
.driver-tools button{pointer-events:auto;min-height:34px;font-size:14px;padding:6px 10px}
.driver-tools :first-child:not([hidden]){margin-top:0}
.desktop-hints{right:23px;bottom:79px;background:#211c17de;border:1px solid #81705b80;border-radius:3px;color:#ecd9bc;font:600 13px/1.15 var(--display);padding:5px 8px;gap:12px}
.desktop-hints .fight-hint{display:none}
kbd{min-width:0;height:auto;font:600 12px/1 var(--display);background:#3a3129;color:#f3d8b2;border:1px solid #7a6854;border-radius:2px;padding:2px 4px}
.world-prompt{min-height:40px;border-color:#a7895e}
.game-toast{color:#ffe0ad;font-family:var(--display);font-weight:600;font-size:17px}
.game-toast{z-index:2;bottom:185px}
button.radar{
  --diameter:clamp(115px,14vmin,145px);
  position:absolute;display:flex;align-items:center;flex-direction:column;left:max(20px,env(safe-area-inset-left));bottom:max(19px,env(safe-area-inset-bottom));
  width:var(--diameter);padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--cream);
}
button.radar:hover:not(:disabled){background:none}
.radar-bezel{
  position:relative;display:block;width:100%;aspect-ratio:1;padding:5px;overflow:hidden;border-radius:50%;background:#181511;
  border:1px solid #baa381;box-shadow:0 0 0 2px #181510,0 4px 10px #140f0b90,inset 0 1px 2px #d4b99470;
}
.radar-bezel canvas{width:100%;height:100%;border-radius:50%}
.radar-north{position:absolute;left:50%;top:2px;transform:translateX(-50%);color:#f2dab5;background:#211d16;border:1px solid #79664c;border-radius:2px;font:600 11px/1 var(--display);padding:1px 3px}
button.radar:hover .radar-bezel{border-color:#ffd08a}
.radar-label{display:flex;justify-content:center;gap:5px;padding:3px 6px;margin-top:5px;background:#201b16ed;border:1px solid #76644f;border-radius:3px;max-width:max-content;white-space:nowrap}
.radar-label strong{color:#ecd7b8;font:600 13px/1.1 var(--display)}
.radar-label>span{font-size:0}
.radar-label kbd{font:600 10px/.9 var(--display);padding:1px 2px}
#waypoint{position:absolute;left:max(20px,env(safe-area-inset-left));bottom:calc(max(19px,env(safe-area-inset-bottom)) + clamp(115px,14vmin,145px) + 34px);background:#211c16ed;color:#ffd08a;border:1px solid #b18b54;border-radius:3px;padding:5px 9px;font:600 14px/1.2 var(--display)}
.district-marker{border-radius:3px;background:#251f1af0;font-family:var(--display);font-weight:600;border-color:#8c7a64;border-bottom:2px solid var(--chain-color)}
#game.overview-active{isolation:isolate}
#game.overview-active::before{content:"";position:absolute;inset:0;background:#171410d9;z-index:1;pointer-events:none}
.overview-active :is(.player-hud,.radar,.desktop-hints,.touch-controls,.game-toast,.world-prompt){display:none}
#city-overview{
  position:absolute;inset:65px 0 86px;max-width:950px;width:calc(100% - 64px);margin:auto;max-height:750px;padding:12px;
  display:flex;flex-direction:column;gap:9px;background:var(--case);border:1px solid #8b7760;border-bottom-color:#544637;
  border-radius:6px;box-shadow:inset 0 1px #cfb89a70,inset 0 -2px #181511,0 16px 60px #100d0abb;
}
.map-heading{display:flex;align-items:center;gap:12px;padding:0 2px}
.map-heading h2{flex:1;margin:0;color:#f2d4ac;font:italic 800 clamp(25px,3.2vw,39px)/1 var(--display);letter-spacing:-.015em;text-transform:uppercase}
.map-areas{display:flex;gap:3px}
.map-heading button{min-height:36px;padding:5px 12px;font-size:15px}
.map-areas button::before{content:"";width:4px;height:4px;border-radius:1px;background:#796749}
.map-areas button[aria-pressed=true]::before{background:#ffc165;box-shadow:0 0 4px #f5a43a66}
.map-heading #street-view{min-height:36px;border-color:#685b49;margin-left:8px}
#atlas-screen{position:relative;flex:1;min-height:0;overflow:hidden;background:#211f19;border:2px solid #17130f;border-radius:3px;box-shadow:0 1px #a492725e}
#atlas{position:absolute;inset:0;display:block;width:100%;height:100%}
#atlas-markers{position:absolute;inset:0;pointer-events:none}
#atlas-markers .district-marker{
  min-height:27px;font:600 15px/1 var(--display);padding:4px 7px;gap:5px;width:auto;white-space:nowrap;
  transform:translate(-50%,-50%);color:#f6ddb7;background:#26211bef;border:1px solid #857052;border-left:3px solid var(--chain-color);box-shadow:0 1px 3px #15120ea6;
}
#atlas-markers .district-marker img{display:block;width:14px;height:14px}
#atlas-markers .district-marker::after{display:none}
#atlas-markers .district-marker:is(:hover,.pinned){color:#ffd68b;background:#463724;border-color:#e8b86d}
.atlas-north{position:absolute;left:13px;top:12px;display:grid;justify-items:center;color:#e6c89e;font:600 13px/1 var(--display);pointer-events:none}
.atlas-north::before{content:"";height:16px;width:10px;background:linear-gradient(90deg,#dfc190 50%,#806c51 50%);clip-path:polygon(50% 0,100% 100%,50% 77%,0 100%)}
#atlas-scale{position:absolute;bottom:11px;right:12px;text-align:center;color:#e1c69e;border:solid #aa936f;border-width:0 1px 2px;font:600 12px/1.3 var(--display);pointer-events:none}
.map-caption{display:flex;justify-content:space-between;align-items:center;color:#ddc7a8;font:600 15px/1.2 var(--display);padding:0 2px}
.position-legend::before{content:"";display:inline-block;width:10px;height:12px;margin-right:6px;vertical-align:-1px;clip-path:polygon(50% 0,100% 100%,50% 77%,0 100%);background:#ffd26e}
#panel{background:var(--case);color:var(--cream);border:1px solid #89745e;border-radius:5px;box-shadow:inset 0 1px #c4ac8959,0 20px 70px #17120cbf;scrollbar-color:#89725b #26211b}
#panel::backdrop{background:#181410b8;backdrop-filter:blur(3px)}
.panel-title{color:#f0d0a2;letter-spacing:-.015em}
#panel .panel-buttons button,#panel .crew-card,#panel .district-card,.district-strip .district-card,
#panel :is(.secondary,.wardrobe-group button,.menu-row,.explore-more){background:var(--key);color:var(--cream)!important;border:1px solid #695a49;border-radius:3px;box-shadow:var(--key-edge)}
#panel :is(.crew-card[aria-pressed=true],.wardrobe-group button[aria-pressed=true],.primary),.cover-actions button.orange{background:#e4a951;color:#241b12!important;border:1px solid #f0c47e;text-shadow:none;box-shadow:inset 0 1px #ffe2b0,0 2px #211811;border-radius:3px}
#panel :is(.crew-card,.district-card,.wardrobe-group button,.secondary,.panel-buttons button):hover{border-color:#d0ac76}
#panel .crew-card strong,#panel .district-card strong,.district-strip .district-card strong{font:600 20px/1.1 var(--display)}
#panel .crew-card[aria-pressed=true] small{color:#41311d}
#panel :is(.launch-destination,.review-token,.pangea-artwork,.notice){background:#28221c;border-color:#6f5e4a}
#panel input:not([type=checkbox]),#panel textarea,#panel select{background-color:#211d19;color:#f2dfc3;border-color:#76644f;border-radius:3px;accent-color:var(--orange)}
#panel .pangea-artwork.dragging{background:#493a27;border-color:#ffbb59}
.guide-grid{gap:8px 13px}
.sound-settings{margin-top:15px;padding-top:10px;border-top:1px solid #75644e}
.sound-settings summary{color:var(--cream);font:600 17px/1.3 var(--display);cursor:pointer}
.audio-options{border-color:#75644e}
@media(max-width:760px){
 .gamebar{padding:9px 10px}
 .gamebar .presets{bottom:max(10px,env(safe-area-inset-bottom));right:max(10px,env(safe-area-inset-right))}
 .gamebar .presets button{min-width:61px;min-height:42px;padding:7px 9px;font-size:15px;gap:5px}
 .gamebar .presets [data-launch]{min-width:88px}
 .gamebar .presets .ui-icon{width:15px;height:15px}
 .player-hud{top:max(9px,env(safe-area-inset-top));right:10px}
 .dash-readout :is(#actor-name,#hp-label,#equipment,#connection){padding-left:8px;padding-right:8px;font-size:14px}
 button.radar{--diameter:91px;left:12px;bottom:14px}
 #waypoint{left:10px;bottom:136px}
 #city-overview{inset:50px 0 70px;width:calc(100% - 20px);padding:8px;gap:7px}
 .map-heading{gap:5px}
 .map-heading button{padding:5px 8px}
 .map-heading #street-view{margin-left:0}
}
@media(max-width:560px){
 .gamebar .presets{left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));grid-template-columns:1fr 1fr 1.12fr 1.36fr}
 .gamebar .presets button,.gamebar .presets [data-launch]{min-width:0;padding:5px 3px}
 button.radar{bottom:77px;--diameter:80px}
 .radar-label{margin-top:3px;padding:2px 4px}
 .radar-label strong{font-size:11px}
 .radar-label>span{display:none}
 #waypoint{bottom:183px}
 .map-heading{display:grid;grid-template-columns:1fr auto;grid-template-areas:'title back' 'tabs tabs';gap:7px}
 .map-heading h2{grid-area:title}
 .map-heading #street-view{grid-area:back;font-size:14px}
 .map-areas{grid-area:tabs;display:grid;grid-template-columns:1fr 1fr}
 .map-heading button{min-height:36px}
 #atlas-markers .district-marker{font-size:12px;min-height:25px;padding:3px 5px;gap:3px}
 #atlas-markers .district-marker img{width:11px;height:11px}
 .map-caption{font-size:12px}
 .atlas-north{left:8px;top:8px}
}
@media(pointer:coarse){
 .touch-controls{bottom:max(79px,calc(env(safe-area-inset-bottom) + 65px))}
 .touch-actions,.touch-move{gap:4px}
 .touch-controls button{min-height:41px;font-size:15px}
 button.radar{--diameter:82px;left:11px;bottom:181px}
 #waypoint{bottom:291px;left:10px}
 .world-prompt{right:9px;bottom:228px;font-size:16px}
 .game-toast{bottom:284px}
 .driver-tools button{min-height:40px}
}
@media(pointer:coarse) and (max-height:510px){
 button.radar{--diameter:74px;top:50px;bottom:auto}
 #waypoint{top:49px;left:112px;bottom:auto}
 .touch-controls{bottom:66px}
 .world-prompt{bottom:65px;right:125px}
 .game-toast{bottom:116px}
}
@media(max-height:490px){
 #city-overview{inset:8px 0 69px}
 .overview-active .brand{visibility:hidden}
}

.game-identity{display:flex;align-items:center;gap:9px}
#mute-audio{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:5px 9px;background:var(--key);border:1px solid #74624e;border-radius:3px;box-shadow:var(--key-edge);color:var(--cream);font:600 15px/1 var(--display)}
#mute-audio .ui-icon{width:17px;height:17px;color:#e9bf86}
#mute-audio[aria-pressed=true]{color:#ffd08a;background:#32261a;border-color:#c79651}
#mute-audio:hover{background:var(--key-lit)}
@media(max-width:560px){.gamebar .brand{min-height:42px}.gamebar .brand img{width:50px}.game-identity{gap:6px}#mute-audio{width:42px;min-height:42px;padding:5px}#mute-audio span{display:none}}

#city-loading{position:absolute;inset:0;z-index:5;display:grid;place-items:center;pointer-events:none;color:var(--cream);background:#25211c;font:italic 800 22px var(--display)}
#actor-name{max-width:clamp(55px,12vw,140px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.name-field{display:block;margin:6px 0;color:var(--cream);font:600 17px var(--display)}
#character-name{width:100%;padding:9px 12px;border:1px solid var(--edge)}
.profile-save{border-top:1px solid var(--edge);padding-top:10px}
.profile-save>div{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.profile-save p{font-size:13px;margin:0 0 8px}
.profile-save p:empty{display:none}
.profile-save select,.profile-save .secondary{min-height:38px;padding:7px 10px;font:600 15px var(--display)}
#profile-error{margin-top:7px;color:#ffd093}
#peer-names{position:absolute;inset:0;pointer-events:none;overflow:hidden}
#peer-names span{position:absolute;top:0;left:0;transform:translate(-50%,-100%);padding:2px 6px;color:#f9e0b7;background:#211b15c9;border-radius:2px;font:600 14px var(--display)}
.overview-active #peer-names{display:none}

#city-loading{align-content:center;justify-items:center;gap:12px}
#city-loading img{width:clamp(96px,17vmin,145px);height:auto;border-radius:4px}
.cover-content .cover-logo{margin:12px 0 16px;line-height:0;transform:none;filter:none}
.cover-logo img{display:block;width:clamp(112px,25vmin,220px);height:auto;border-radius:4px}
/* The launch counter is a folded street poster, with the existing neighborhood
   illustration across its masthead and a light, ink-lined form beneath it. */
#panel:is([data-screen^="single-"], [data-screen="launch-districts"]) {
  --paper: #f2e7c9;
  --print: #21251e;
  --muted: #54594b;
  --accent: #365c3e;
  --gutter: clamp(16px, 3.2vw, 32px);
  width: min(94vw, 610px);
  max-height: 92dvh;
  padding: 0;
  overscroll-behavior: contain;
  color: var(--print);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(0deg, #66512e05 0 1px, transparent 1px 4px);
  border: 3px solid #171b16;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #e7d5a7, 5px 6px 0 #171912, 0 18px 52px #100f0db3;
  scrollbar-color: #787962 #d9d0b4;

  &.wide { width: min(94vw, 756px); }
  &::backdrop { background: #16201aca; backdrop-filter: blur(2px); }
  .panel-buttons {
    width: 100%; height: 0; top: 12px; padding-right: 13px;
    float: none; align-items: flex-start; gap: 5px;
  }
  .panel-buttons button {
    width: 34px; height: 34px; border: 1px solid #d3c39a;
    border-radius: 1px; background: #1b231e; color: #f8edce !important;
    box-shadow: 2px 2px 0 #0a0e0b; font: 600 24px/1 var(--display);
  }
  .panel-buttons button:hover { background: #416048; }
  #panel-content { min-width: 0; padding: 0 var(--gutter) 22px; }
  .screen-heading, #panel-content > .panel-title {
    margin: 0 calc(-1 * var(--gutter)) 0;
    padding: 16px max(84px, 13%) 18px var(--gutter);
    background: linear-gradient(90deg, #18231a 4%, #19261bf2 25%, #1b241bb3 53%, #171b1640 76%),
      url('/getaway/cover.jpg') right 18% / auto max(220px, 26vw) no-repeat, #18231a;
    border-bottom: 4px solid #19221a;
  }
  .screen-heading h2, #panel-content > .panel-title {
    font: italic 800 clamp(38px, 5.4vw, 56px)/.97 var(--display);
    text-transform: uppercase; letter-spacing: -.025em; color: #ffefc5;
    text-shadow: 2px 3px 0 #131811, -1px -1px 0 #151811;
  }
  .screen-heading h2 { display: block; margin: 5px 0 7px; }
  .screen-heading h2 > .ui-icon { display: none; }
  .screen-heading .eyebrow {
    display: inline-block; margin: 0; padding: 2px 6px; color: #222b20;
    background: #efd58c; font: 600 12px/1.1 var(--display); letter-spacing: .13em;
  }
  .screen-heading p {
    color: #f6e8c9; font: 600 17px/1.2 var(--display);
    text-shadow: 1px 1px 2px #101510;
  }
  #panel-content > .panel-title {
    padding-top: 27px; padding-bottom: 23px;
  }
  #panel-content > .panel-note { margin: 17px 0 10px; color: #454b3c; }
  .launch-layout { display: block; }
  .launch-destination {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    padding: 8px var(--gutter); margin: 0 calc(-1 * var(--gutter)) 17px;
    color: #fff2d3; background: #364d3b; border-bottom: 2px solid #253128;
  }
  .launch-destination > .chain-mark { width: 22px; height: 22px; margin: 0; }
  .launch-destination h3 { margin: 0; color: inherit; font: 600 19px/1 var(--display); }
  .launch-destination .text-button {
    min-height: 32px; margin: 0 0 0 auto; padding: 3px 5px;
    color: #fff1cf; font: 600 16px/1.2 var(--display); text-decoration: underline;
    text-decoration-color: #adbf99; text-underline-offset: 3px;
  }
  .launch-destination .text-button:hover { background: #243a2b; }
  #singleForm, .field-group, .field-row > * { min-width: 0; }
  .field-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
  .field-group { margin-bottom: 13px; }
  .field, .pangea-options summary {
    color: #292e24; margin-bottom: 4px;
    font: 600 18px/1.16 var(--display);
  }
  .field em, .launch-socials > summary > span { color: #5d6252; font: 600 14px var(--display); }
  input:not([type=checkbox]), textarea, select {
    width: 100%; min-height: 43px; border: 1px solid #777d64;
    border-bottom: 2px solid #3f483a; border-radius: 1px;
    background: #fcf5df; color: #222b20; padding: 8px 10px; box-shadow: inset 0 1px 2px #534d3012;
    font: 600 15px/1.4 Nunito, sans-serif; accent-color: #365c3e;
  }
  input::placeholder, textarea::placeholder { color: #626857; opacity: 1; }
  textarea { min-height: 62px; height: 66px; resize: vertical; }
  .pangea-artwork {
    margin: 0 0 13px; padding: 10px 12px; background: #e7ddbe;
    border: 1px dashed #6f7358; border-radius: 1px; gap: 12px;
  }
  .pangea-artwork.dragging { background: #d4e2b9; border: 2px dashed #365c3e; padding: 9px 11px; }
  .pangea-artwork img { width: 64px; height: 64px; border-radius: 0; background: #f9f0d7; }
  input[type=file] { border: 0; padding: 0; min-height: 34px; background: transparent; box-shadow: none; font-size: 13px; }
  input[type=file]::file-selector-button {
    border: 1px solid #384635; border-radius: 1px; padding: 6px 10px;
    background: #354a37; color: #fff4d4; font: 600 16px/1.15 var(--display);
  }
  .form-footnote { font-size: 12px; line-height: 1.45; margin: 5px 0; color: #535947; }
  .pangea-options { margin: 8px 0 12px; padding: 8px 0; border-block: 1px solid #b0ae90; }
  .pangea-options summary { min-height: 29px; margin: 0; padding: 4px 0; }
  .launch-submit, .primary {
    padding: 10px 18px; border: 2px solid #20281f; border-radius: 1px;
    background: #b7ce8d; color: #18271b !important; box-shadow: 2px 3px 0 #273124;
    font: italic 800 24px/1.05 var(--display); text-transform: uppercase; letter-spacing: .018em;
  }
  .primary:hover:not(:disabled) { background: #d1e6a4; }
  .primary:disabled { background: #d1ceb1; color: #58604d !important; box-shadow: none; border: 1px dashed #84886d; opacity: 1; }
  .secondary {
    color: #f4eacd !important; background: #334636; box-shadow: none;
    border: 1px solid #202f23; border-radius: 1px; font: 600 17px var(--display);
  }
  .text-button, .routes-link { color: #304c35; }
  .text-button:hover { background: #dfd6b6; }
  .routes-link { min-height: 38px; align-items: center; color: #243f2a; text-decoration: underline; text-underline-offset: 3px; }
  #singleForm .routes-link { font: italic 800 20px var(--display); }
  .panel-stack { gap: 6px; margin: 12px 0 10px; }
  .district-card {
    min-height: 52px; padding: 8px 12px; gap: 12px;
    background: #26382b; color: #fff0c9 !important; border: 1px solid #17241a;
    border-left: 5px solid var(--district); border-radius: 1px; box-shadow: 2px 2px 0 #a6a38a;
  }
  .district-card:hover, .district-card:focus-visible { background: #415742; }
  .district-card strong { color: inherit; font: italic 800 23px/1.05 var(--display); }
  .district-card small { display: none; }
  .district-card .arrow { color: var(--district); font-size: 23px; }
  #singleReviewBody, #singleProgress { min-width: 0; padding-top: 15px; }
  .review-token { padding: 12px; margin-bottom: 10px; background: #304535; color: #fff2cd; border: 1px solid #233527; }
  .review-token h3 { color: inherit; font: italic 800 26px var(--display); }
  .review-token p { color: #e0dbbb; }
  .detail-list dt, .detail-list dd { color: #343c30; }
  .detail-list > div { border-color: #b3b496; }
  .notice { background: #e7dfc2; border-color: #b0b296; color: #3e4738; padding-inline: 9px; }
  .pangea-address, .pangea-message { color: #364535; }
  .pangea-message { background: #e5ddc1; border-radius: 1px; }
  .field-error { color: #862c1f; }
  :focus-visible { outline: 3px solid #657d30; outline-offset: 2px; }
}
@media (max-width: 540px) {
  #panel:is([data-screen^="single-"], [data-screen="launch-districts"]) {
    width: calc(100vw - 16px); max-width: none; max-height: calc(100dvh - 20px);
    &.wide { width: calc(100vw - 16px); }
    .screen-heading, #panel-content > .panel-title { background-size: auto, auto 175px; }
    .screen-heading h2, #panel-content > .panel-title { font-size: clamp(31px, 7.4vw, 39px); }
    .screen-heading h2 { margin-top: 8px; }
    input:not([type=file]), textarea, select { font-size: 16px; }
    .panel-buttons { top: 7px; padding-right: 7px; gap: 4px; }
    .panel-buttons button { width: 34px; height: 34px; }
    .launch-destination { gap: 6px; }
    .field-row { gap: 9px; }
    .form-footer { flex-wrap: wrap; }
  }
}

#peer-names span{white-space:nowrap;font:italic 800 clamp(15px,2vmin,20px)/1.12 var(--display);background:none;color:#fff8e7;text-shadow:-1px -1px 0 #1a1411,1px -1px 0 #1a1411,-1px 1px 0 #1a1411,1px 1px 0 #1a1411,0 2px 3px #16120e}
#peer-names #self-name{color:#ffe1a2}
#game:not(.driving) .drift-control,#game.driving .fight-hint{display:none}
#game .touch-actions .drift-control{width:auto;min-width:58px}
#wallet-hud{pointer-events:auto;display:flex;align-items:center;justify-content:center;gap:6px;margin:0 0 4px auto;padding:5px 10px;min-height:32px;background:var(--key);box-shadow:var(--key-edge);border:1px solid #a28661;border-radius:4px;color:#ffda94;font:600 16px/1 var(--display)}
#wallet-hud .ui-icon{width:17px;height:17px}
#wallet-accounts{display:grid;gap:14px}
#wallet-accounts section{padding:12px 15px;background:#25201c;border-left:3px solid #d2a263}
#wallet-accounts h3{font:italic 800 23px var(--display);margin:0 0 8px}
#wallet-accounts :is(p,code){display:block;margin:5px 0;color:#eedfc7;overflow-wrap:anywhere}
#wallet-accounts button{margin:3px 6px 3px 0;background:var(--key);border:1px solid var(--edge);min-height:38px;padding:6px 12px;border-radius:3px}
@media(pointer:coarse){#wallet-hud{min-height:40px}}
