:root{--paper:#f4f3eb;--ink:#14382e;--muted:#748077;--green:#245b46;--lime:#d6ec8b;--line:#dce1d5;--white:#fffef9;--gold:#edb954}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #e7b53b;outline-offset:4px}button:disabled{cursor:not-allowed;opacity:.45}.hidden{display:none!important}.brandbar{height:96px;padding:0 6%;display:flex;align-items:center;gap:22px;border-bottom:1px solid var(--line);font-size:11px;letter-spacing:2px;font-weight:700}.brand{font-family:'Manrope',sans-serif;font-weight:800;font-size:23px;letter-spacing:-2px;text-decoration:none;color:var(--ink)}.brand span{color:#70964b;display:inline-block;margin:0 2px}.build-tag{margin-left:auto;border:1px solid #cbd4c4;padding:9px 13px;border-radius:30px;font-size:9px;letter-spacing:1px}.city-layout{max-width:1440px;margin:auto;display:grid;grid-template-columns:1.05fr 1fr;gap:8%;padding:65px 7% 35px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:#70816b}h1{font-family:'Manrope',sans-serif;font-size:clamp(54px,5.8vw,88px);font-weight:600;letter-spacing:-5px;line-height:1.08;margin:30px 0}h1 em{font-family:Georgia,serif;font-weight:400;color:#6f8a55}p{color:var(--muted);line-height:1.8}.intro>p,.setup-layout>div>p{font-size:17px}.intro-footer{margin-top:95px;font-size:9px;letter-spacing:2px;display:flex;align-items:center;gap:12px}.tiny-line{width:32px;height:1px;background:#779466}.section-label{font-size:10px;font-weight:600;letter-spacing:1.4px;display:flex;justify-content:space-between;margin-bottom:18px}.bengaluru-card{border-radius:14px;overflow:hidden;border:1px solid #cfdbcb;background:var(--white);box-shadow:0 15px 45px #17392a0a}.city-art{height:214px;background:#dae5d4;position:relative;overflow:hidden}.sun{width:108px;height:108px;border-radius:50%;background:#f0d696;position:absolute;right:55px;top:22px}.skyline{position:absolute;bottom:25px;left:20px;right:0;height:120px;display:flex;align-items:end;gap:12px;opacity:.65}.skyline i{display:block;width:45px;height:80px;background:repeating-linear-gradient(90deg,transparent 0 12px,#688c7628 12px 15px),#a9bea4;border-top:5px solid #859f83}.skyline i:nth-child(2n){height:110px;width:60px}.skyline i:nth-child(3n){height:55px;width:85px}.metro{position:absolute;bottom:30px;width:100%;height:12px;background:#6b8a70;transform:rotate(-4deg)}.metro:after{content:'';position:absolute;left:60%;top:10px;background:#6b8a70;height:45px;width:13px}.auto-art{position:absolute;right:38px;bottom:4px;font-size:100px;filter:drop-shadow(0 9px 5px #24472c35)}.city-script{position:absolute;top:22px;left:25px;color:#527350;font-size:18px}.card-body{padding:23px 26px 25px}.city-meta{display:flex;justify-content:space-between;font-size:9px;color:#7a8c78;letter-spacing:1px}.live-dot:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#7e9c52;margin-right:7px}.card-body h2{font-family:'Manrope',sans-serif;font-size:30px;letter-spacing:-1px;margin:15px 0 4px}.card-body p{margin:4px 0 20px;font-size:12px}.primary{background:var(--green);color:#fffef5;border:0;padding:15px 18px;border-radius:6px;font-weight:600;display:flex;justify-content:space-between;align-items:center;width:100%;gap:15px}.primary:hover{background:#174530}.future-cities{margin-top:20px;display:grid;grid-template-columns:1fr 1fr;gap:9px}.future-cities div{border:1px solid var(--line);padding:14px 12px;border-radius:6px;font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:5px}.future-cities span{font-size:7px;letter-spacing:.7px;color:#879280}.city-note{font-size:11px;text-align:center;margin-top:15px}.text-button{background:none;border:0;color:var(--ink);padding:0}.setup-layout{max-width:1200px;margin:75px auto;display:grid;grid-template-columns:1fr 1fr;gap:90px;padding:0 35px}.setup-facts{display:flex;gap:27px;margin-top:40px}.setup-facts span{font-size:8px;letter-spacing:1px;color:var(--muted)}.setup-facts strong{display:block;margin-top:10px;color:var(--ink);font-size:12px;letter-spacing:0}.setup-cities{margin-top:52px;border-top:1px solid var(--line);padding-top:26px}.setup-cities .eyebrow{margin-bottom:16px}.setup-cities .small{margin-top:14px;color:#8a9484}.setup-city-list{display:grid;grid-template-columns:1fr 1fr;gap:9px}.setup-city{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;background:var(--white);border:1px solid var(--line);border-radius:7px;padding:13px 14px;color:var(--ink);width:100%}.setup-city:hover{background:#eef2e6;border-color:#c3d0bb}.setup-city strong{font-size:13px;letter-spacing:-.2px}.setup-city span{font-size:9px;letter-spacing:1px;color:var(--muted)}.setup-city.is-current{background:#eaf0dd;border-color:#bccfa8;cursor:default}.setup-city.is-current span{color:#5f7a4e}@media (max-width:900px){.setup-city-list{grid-template-columns:1fr}}.setup-card{padding:38px;background:var(--white);border:1px solid var(--line);border-radius:12px}.setup-card h2{font-size:28px;margin:20px 0 30px;letter-spacing:-1px}.setup-card label{font-size:12px;display:block;margin-bottom:10px}input{width:100%;padding:15px;background:var(--paper);border:1px solid #cad6c5;border-radius:6px;color:var(--ink)}.prototype-note{font-size:11px;color:#77856c;background:#f0f2e7;padding:15px;line-height:1.7;margin:24px 0}.secondary{background:transparent;border:1px solid #cfdbca;padding:12px;color:var(--ink);border-radius:6px;width:100%;font-size:12px;margin-top:12px}.secondary:hover{background:#e8eddf}.small{font-size:10px;line-height:1.9}.game-header{height:78px;background:var(--white);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 25px;gap:26px}.game-title{border-left:1px solid var(--line);padding-left:25px;display:flex;flex-direction:column;gap:5px}.game-title strong{font-family:'Manrope';font-size:18px;letter-spacing:-.5px}.game-title span{font-size:8px;letter-spacing:1.5px;color:var(--muted)}.world-status{margin-left:auto;display:flex;gap:18px;align-items:center;font-size:12px}.world-status button{background:none;border:0;color:var(--ink);font-size:12px}.wallet{display:flex;flex-direction:column;gap:3px;border-left:1px solid var(--line);padding-left:25px}.wallet span{font-size:8px;letter-spacing:1.5px;color:var(--muted)}.wallet strong{font-size:20px;letter-spacing:-.5px}.icon-button{background:none;border:1px solid var(--line);width:32px;height:32px;border-radius:50%;color:var(--ink)}.play-layout{display:grid;grid-template-columns:270px minmax(0,1fr) 205px;height:calc(100dvh - 78px);min-height:550px}.left-panel,.right-panel{padding:23px 20px;overflow-y:auto;background:var(--white)}.left-panel{border-right:1px solid var(--line)}.right-panel{border-left:1px solid var(--line)}.driver-card{display:flex;align-items:center;gap:10px}.avatar{width:37px;height:37px;background:#e7ebda;border-radius:50%;display:grid;place-items:center;font-size:23px}.driver-card>div{display:flex;flex-direction:column;gap:4px;min-width:0}.driver-card strong{font-size:12px;max-width:120px;overflow:hidden;text-overflow:ellipsis}.driver-card div span{font-size:9px;color:var(--muted)}.rating{margin-left:auto;font-size:11px;color:#8b823d;white-space:nowrap}.shift-card{padding:20px 16px;background:#ecf0df;border:1px solid #dfe6cd;border-radius:8px;margin-top:22px}.shift-card .eyebrow{font-size:8px;letter-spacing:1.5px}.shift-card h2{font-family:'Manrope';font-size:23px;line-height:1.25;letter-spacing:-.8px;margin:14px 0}.shift-card p{font-size:10px;margin:0 0 15px}.progress-track{height:4px;background:#d4dec2;border-radius:10px;overflow:hidden}.progress-track i{display:block;width:0;height:100%;background:#59783d}.progress-label{display:flex;justify-content:space-between;font-size:8px;color:#7c896e;margin-top:8px}.panel-heading{font-size:9px;letter-spacing:1.4px;font-weight:700;margin:26px 0 13px;display:flex;justify-content:space-between;gap:6px}.panel-heading .live-dot{font-size:7px;color:#7a8f64;letter-spacing:.4px}.job-card{border:1px solid var(--line);border-radius:8px;padding:13px;margin-top:9px}.job-top{display:flex;justify-content:space-between;font-size:9px;color:var(--muted)}.job-top strong{color:var(--ink);font-size:15px}.route{border-left:1px dashed #acb59d;margin:15px 0 15px 4px;padding-left:13px;display:flex;flex-direction:column;gap:13px}.route span{position:relative;font-size:11px}.route span:before{content:'';position:absolute;left:-17px;top:3px;width:6px;height:6px;background:#dcac4d;border-radius:50%}.route span:last-child:before{background:#5e8663}.job-card button{padding:9px;font-size:10px;background:#eaf0df;color:var(--ink);border:0;border-radius:4px;width:100%;font-weight:600}.job-card button:hover{background:#d9e6c8}.life-actions button{display:flex;justify-content:space-between;align-items:center;background:none;border:0;border-bottom:1px solid #e7e9df;width:100%;padding:14px 0;color:var(--ink);font-size:11px}.save-status{margin-top:20px;color:#9aA08d}.map-wrap{position:relative;background:#dfe4cf;overflow:hidden}canvas{display:block;width:100%;height:100%;outline:0}.map-top{position:absolute;top:18px;left:18px;right:18px;display:flex;justify-content:space-between;gap:8px;pointer-events:none}.map-pill{font-size:8px;letter-spacing:1px;border:1px solid #cdd6c5;background:#fffef4eb;box-shadow:0 2px 8px #22351d08;border-radius:5px;padding:10px 12px;color:#4d6247;pointer-events:auto}.map-pill i{display:inline-block;width:5px;height:5px;background:#6b9450;border-radius:50%;margin-right:5px}.navigation{position:absolute;left:18px;right:18px;bottom:60px;background:#173d32f0;color:white;padding:17px;display:flex;align-items:center;gap:16px;border-radius:8px;box-shadow:0 5px 20px #173d3220;pointer-events:none;max-width:520px;margin:auto}.navigation strong{display:block;font-size:13px;margin-bottom:5px}.navigation span:not(.nav-arrow){font-size:10px;color:#c5d3b9}.nav-arrow{font-size:30px;color:var(--lime);font-weight:400}.map-bottom{position:absolute;bottom:20px;left:18px;right:18px;display:flex;justify-content:space-between;font-size:6px;letter-spacing:.7px;color:#62715b;gap:12px}.interaction{position:absolute;top:72px;left:50%;transform:translateX(-50%);min-width:245px}.interaction .primary{box-shadow:0 5px 20px #173d3250}kbd{background:#ffffff24;border:1px solid #ffffff33;border-radius:3px;padding:3px 7px;font-size:10px}.right-panel .eyebrow{font-size:9px}.vehicle-preview{font-size:74px;text-align:center;margin:15px 0 0;filter:drop-shadow(0 5px 2px #30492712)}.right-panel h3{text-align:center;font-size:15px;margin:8px 0}.right-panel>p{text-align:center;font-size:8px;letter-spacing:.7px}.speed{text-align:center;margin:23px 0}.speed strong{font-family:'Manrope';font-size:57px;letter-spacing:-3px;font-weight:500}.speed span{display:block;font-size:8px;letter-spacing:2px;color:var(--muted)}.meter{margin:18px 0}.meter>div{display:flex;justify-content:space-between;font-size:10px}.meter strong{font-size:10px}progress{width:100%;height:5px;appearance:none;border:0;margin-top:9px;background:#e9ecdf;border-radius:5px;overflow:hidden}progress::-webkit-progress-bar{background:#e9ecdf}progress::-webkit-progress-value{background:#8ca563}progress::-moz-progress-bar{background:#8ca563}.vehicle-controls{display:flex;gap:7px}.vehicle-controls button{background:#eff2e8;color:var(--ink);border:1px solid #e1e6d5;padding:9px 5px;border-radius:4px;font-size:8px;flex:1}.essential{padding:10px 0;border-bottom:1px solid #e7e9df}.essential span{font-size:10px;display:block}.essential small{font-size:8px;color:var(--muted);display:block;margin-top:5px}.touch-controls{display:none}.pickup-line{position:fixed;top:132px;left:50%;transform:translate(-50%,-12px);background:#fffdf2;color:#173d32;border:1px solid #d8e0cd;box-shadow:0 8px 34px #142e2326;padding:14px 20px;border-radius:14px 14px 14px 4px;z-index:30;max-width:min(560px,86vw);text-align:center;opacity:0;pointer-events:none;transition:opacity .22s,transform .22s}.pickup-line.show{opacity:1;transform:translate(-50%,0)}.pickup-line strong{display:block;font-size:17px;line-height:1.55;font-weight:600}.pickup-line small{display:block;margin-top:7px;font-size:11px;color:#77856c;line-height:1.6}.pickup-line small:empty{display:none}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:#173d32;color:#f8f9ed;box-shadow:0 4px 30px #142e2340;padding:15px 23px;border-radius:8px;z-index:20;max-width:90vw;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid var(--line);border-radius:14px;background:var(--white);color:var(--ink);padding:32px;max-width:500px;width:calc(100% - 30px);max-height:85dvh}dialog::backdrop{background:#0f2e24aa;backdrop-filter:blur(4px)}dialog h2{font-family:'Manrope';font-size:27px;letter-spacing:-1px;margin:15px 0}dialog p{font-size:12px}dialog ul{padding-left:18px;line-height:2;font-size:12px;color:var(--muted)}dialog #close-modal{margin-top:25px}.asset-card{padding:15px;background:#edf0e3;border-radius:7px;margin:12px 0}.asset-card h3{font-size:15px;margin:0}.asset-card p{font-size:11px;margin:7px 0}.asset-card button{margin:0}.receipt{font-size:45px;font-family:'Manrope';margin:15px 0;color:var(--green)}
@media(min-width:1600px){.play-layout{grid-template-columns:300px minmax(0,1fr) 235px}.left-panel,.right-panel{padding:28px}.city-layout{padding-top:85px}}@media(max-width:1100px){.play-layout{grid-template-columns:235px minmax(0,1fr)}.right-panel{display:none}.left-panel{padding:18px 14px}.city-layout{gap:5%;padding:45px 5%}.intro-footer{margin-top:60px}.setup-layout{gap:45px}}@media(max-width:700px){.brandbar{height:70px;padding:0 20px;gap:12px}.brandbar>span:not(.build-tag){font-size:8px;letter-spacing:1px}.build-tag{font-size:7px;padding:7px;letter-spacing:0}.city-layout{display:block;padding:30px 22px}.intro h1{font-size:58px;letter-spacing:-3px;margin:20px 0}.intro>p{font-size:14px}.intro-footer{display:none}.city-panel{margin-top:35px}.city-art{height:185px}.setup-layout{display:block;margin:30px auto;padding:0 22px}.setup-layout h1{font-size:56px;letter-spacing:-3px}.setup-facts{margin:25px 0}.setup-card{padding:25px}.game-header{padding:0 13px;height:68px;gap:12px}.game-header>.brand{font-size:18px}.game-title{padding-left:12px}.game-title strong{font-size:14px}.game-title span{font-size:6px;letter-spacing:.5px}.world-status{gap:5px;flex-direction:column;font-size:10px}.world-status button{font-size:9px}.wallet{padding-left:10px}.wallet strong{font-size:15px}.wallet span{font-size:6px}.icon-button{min-width:25px;width:25px;height:25px}.play-layout{display:flex;flex-direction:column;height:auto;min-height:0}.map-wrap{order:-1;height:62dvh;min-height:390px}.left-panel{overflow:visible;border:0;padding:20px}.driver-card{max-width:340px}.shift-card{margin-top:15px}.shift-card h2 br{display:none}#job-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.touch-controls{display:flex;position:absolute;bottom:35px;right:15px;align-items:end;gap:5px}.touch-controls>div{display:flex;flex-direction:column;gap:5px}.touch-controls button{width:40px;height:37px;border:1px solid #d5dfc3;background:#fffdefd9;color:var(--green);border-radius:7px;touch-action:none;user-select:none}.touch-controls button:active{background:var(--lime)}.navigation{bottom:133px;padding:13px}.navigation strong{font-size:11px}.navigation span:not(.nav-arrow){font-size:9px}.map-bottom{bottom:12px;font-size:5px}.map-top{left:12px;right:12px;top:12px}.map-pill{font-size:6px;padding:9px}.interaction{top:57px;min-width:210px}.interaction button{font-size:11px;padding:12px}.right-panel{display:block;padding:20px;overflow:visible}.vehicle-preview,.right-panel>h3,.right-panel>#ownership-label{display:none}.right-panel .speed{margin:0;float:right}.right-panel .meter{max-width:70%}.right-panel>p{font-size:10px}.right-panel .eyebrow{margin-bottom:15px}.vehicle-controls{max-width:70%}.vehicle-controls button{font-size:11px}.right-panel .essential{display:inline-block;width:32%;vertical-align:top}.right-panel .panel-heading{clear:both}}

/* 3D driving view */
.map-wrap{background:#adc9d5}.map-top{justify-content:flex-start}.map-top #camera-mode{margin-left:auto}.map-bottom{font-size:8px;color:#fff;background:#16392ed9;padding:9px;border-radius:4px;bottom:12px}.map-bottom a{color:#eef3d7}.navigation{bottom:70px}.map-pill{font-size:9px}.interaction{top:75px}.game-title strong{font-size:19px}@media(max-width:700px){.map-pill{font-size:6px}.map-bottom{font-size:6px}.navigation{bottom:135px}}

.comms-panel{border:1px solid #cbdac4;border-radius:8px;margin-top:20px;padding:13px;background:#f0f4e5}.comms-panel .panel-heading{margin:0 0 12px;font-size:8px}.comms-panel strong{font-size:12px}.comms-panel p{font-size:12px;line-height:1.6;margin:10px 0;color:#435c48}.comms-actions{display:flex;gap:5px}.comms-actions button{background:#fffef7;border:1px solid #ced9c4;color:#28533d;border-radius:4px;padding:8px;font-size:10px}.sound-controls{display:grid;grid-template-columns:1fr auto;gap:9px;border-bottom:1px solid #dce1d5;padding-bottom:16px;margin-bottom:19px}.sound-controls button{border:1px solid #cbdac4;background:#edf3df;color:#24553e;border-radius:5px;padding:9px;font-size:10px}.sound-controls label{align-self:center;font-size:9px}.sound-controls input{padding:0;grid-column:1/-1;accent-color:#47764b}.sound-controls #test-sound{grid-column:1/-1;background:transparent}.street-map{position:absolute;bottom:165px;right:16px;width:190px;border:1px solid #acbfa3;border-radius:7px;background:#fffef5ee;overflow:hidden;box-shadow:0 4px 12px #16352722}.street-map button{display:block;border:0;background:#214c3a;color:#e8f0d5;font-size:9px;padding:9px;width:100%;text-align:left}.street-map canvas{width:190px;height:130px}.street-map span{display:block;padding:7px;font-size:8px;color:#355640}.resume-overlay{position:absolute;inset:0;z-index:9;background:#17362855;display:grid;place-items:center;backdrop-filter:blur(2px)}.resume-overlay>div{background:#fffef5;padding:28px;width:310px;border-radius:12px;box-shadow:0 12px 40px #12372433}.resume-overlay h2{font-size:22px;margin:0}.resume-overlay p{font-size:12px}.resume-overlay .primary{font-size:12px}.map-bottom{z-index:2}@media(max-width:700px){.street-map{width:135px;right:10px;bottom:245px}.street-map canvas{width:135px;height:93px}.street-map span{font-size:6px}.street-map button{font-size:7px}.comms-panel{margin-top:15px}.sound-controls{grid-template-columns:1fr 1fr}.resume-overlay>div{width:270px;padding:20px}}

#voice-status{grid-column:1/-1;font-size:8px;color:#6b7d65;line-height:1.5}

.emergency-panel {margin:16px 0 24px;padding:14px;border:1px solid #bccbc0;border-radius:8px;background:#edf2e8;text-align:left}.emergency-panel p{font-size:13px;line-height:1.5}.emergency-panel button{width:100%;margin:5px 0}.emergency-panel small{display:block;font-size:10px;line-height:1.5;color:#5f7065;margin-top:7px}

.free-life-panel{padding:12px 0;border-bottom:1px solid #d9dfd2;margin-bottom:18px}.free-life-panel button{width:100%;margin:4px 0}.free-life-panel p{font-size:12px}#modal-content select{width:100%;padding:12px;margin:8px 0 18px;border:1px solid #bac9b7;border-radius:6px;background:#fff;font:inherit}#modal-content label{display:block}

.setup-card select{width:100%;padding:10px;margin:6px 0 12px;background:#fff;border:1px solid #bdcbb7;border-radius:6px;font:inherit}

/* Advertising admin */
#ad-admin{width:min(760px,94vw);max-height:88vh;overflow:auto;padding:26px;border:none;border-radius:14px;background:#fbfaf4;color:#1f2a25}
#ad-admin::backdrop{background:rgba(18,28,24,.55)}
.ad-admin-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.ad-admin-head h2{margin:4px 0 2px}
.ad-count{margin:0;font-size:13px;color:#5d6b62}
.ad-help{font-size:13px;color:#5d6b62;line-height:1.5;margin:12px 0 0}
.ad-notice{margin:12px 0 0;padding:10px 12px;border-radius:8px;background:#e7f0e4;border:1px solid #bcd2b8;font-size:13px}
.ad-list{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:14px}
.ad-row{display:grid;grid-template-columns:170px 1fr;gap:14px;padding:14px;border:1px solid #d8d6c6;border-radius:10px;background:#fff}
.ad-preview{aspect-ratio:2/1;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8px;overflow:hidden}
.ad-preview strong{font-size:15px;line-height:1.15}
.ad-preview span{font-size:11px;opacity:.85;margin-top:4px}
.ad-preview img{width:100%;height:100%;object-fit:cover;border-radius:6px}
.ad-fields{display:grid;gap:8px}
.ad-fields label{display:block;font-size:12px;color:#5d6b62}
.ad-fields input[type=text]{width:100%;padding:8px;margin-top:3px;border:1px solid #c9c7b6;border-radius:6px;font:inherit}
.ad-fields input[type=color]{width:46px;height:30px;padding:0;border:1px solid #c9c7b6;border-radius:6px;background:#fff}
.ad-inline{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
.ad-file input{display:block;margin-top:3px;font-size:12px;max-width:190px}
.ad-controls{margin-top:2px}
.ad-row button{padding:6px 10px;border:1px solid #c9c7b6;border-radius:6px;background:#f3f1e6;font:inherit;font-size:12px;cursor:pointer}
.ad-row button:disabled{opacity:.45;cursor:default}
.ad-admin-actions{display:flex;gap:12px;align-items:center;margin-top:20px;flex-wrap:wrap}
.ad-admin-actions #ad-add{padding:10px 14px;border:1px solid #c9c7b6;border-radius:8px;background:#f3f1e6;font:inherit;cursor:pointer}
.ad-admin-actions .primary{margin-left:auto}
@media (max-width:620px){.ad-row{grid-template-columns:1fr}}

/* Public transport destination picker */
.ride-options{display:grid;gap:8px;margin:14px 0 4px}
.ride-option{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border:1px solid #c9c7b6;border-radius:8px;background:#fff;font:inherit;text-align:left;cursor:pointer}
.ride-option:hover{border-color:#1f6b45;background:#f3f8f1}
.ride-meta{font-size:12px;color:#5d6b62;white-space:nowrap}

.kozhikode-card{margin-top:20px}.kozhikode-card .city-art{height:170px;background:linear-gradient(#cce4df 0 60%,#eddfb9 60%)}.kozhikode-card .city-script{color:#216a68}.coastal-waves{position:absolute;left:0;right:0;bottom:0;height:53px;background:repeating-linear-gradient(175deg,#58a8ac 0 15px,#abd9d4 16px 19px)}

.language-picker{display:flex;align-items:center;gap:8px;font-size:11px;letter-spacing:0;flex-shrink:0}.language-picker select{width:auto;max-width:140px;padding:7px 9px;margin:0;border:1px solid #cbd4c4;border-radius:6px;background:var(--white);color:var(--ink);font:inherit}.language-picker span{font-size:11px!important}.game-header .language-picker>span{display:none}html[data-language="ml"] body{font-family:"Noto Sans Malayalam","Malayalam Sangam MN",sans-serif}html[data-language="kn"] body{font-family:"Noto Sans Kannada","Kannada Sangam MN",sans-serif}html[data-language="hi"] body{font-family:"Noto Sans Devanagari","Devanagari Sangam MN",sans-serif}html:not([lang="en"]) h1,html:not([lang="en"]) h2,html:not([lang="en"]) h3,html:not([lang="en"]) .game-title strong{font-family:inherit;letter-spacing:0;line-height:1.5}html:not([lang="en"]) h1{font-size:clamp(35px,4.5vw,62px)}html:not([lang="en"]) .eyebrow,html:not([lang="en"]) .panel-heading,html:not([lang="en"]) .setup-facts span{letter-spacing:0;line-height:1.6}html:not([lang="en"]) .primary,html:not([lang="en"]) .secondary{line-height:1.6}html:not([lang="en"]) .game-title strong{font-size:16px}@media(max-width:700px){.brandbar{padding:12px 4%;gap:12px;flex-wrap:wrap;height:auto;min-height:76px}.brandbar .build-tag{display:none}.language-picker{margin-left:auto}.game-header{gap:9px;padding:0 10px}.game-header .language-picker select{max-width:90px;padding:5px;font-size:10px}.game-header .game-title{padding-left:8px}.game-header .wallet{padding-left:8px}.game-header .wallet strong{font-size:15px}}

.setup-language{margin:0 0 20px}.setup-language select{width:100%;padding:12px 14px;min-height:46px;border:1px solid #cad6c5;border-radius:6px;background:var(--paper);color:var(--ink);font:inherit;line-height:1.5}

/* City chat, docked on the game view so it is always reachable */
/* The two docks share one column so they stack without fighting each other. */
.dock-stack{position:absolute;left:16px;bottom:60px;width:min(320px,42vw);z-index:3;
  display:grid;gap:8px;align-content:end}
.chat-dock{background:#12302acc;backdrop-filter:blur(6px);border:1px solid #ffffff26;border-radius:10px;
  color:#eef3e6;box-shadow:0 6px 22px #0b1f1a44;overflow:hidden;font-size:12px}
.chat-dock-head{display:flex;align-items:center;gap:6px;padding:6px 8px}
.chat-dock-toggle{flex:1;display:flex;align-items:center;gap:6px;padding:4px 6px;border:0;border-radius:6px;
  background:transparent;color:#dfe9d6;font:inherit;font-weight:700;letter-spacing:.08em;font-size:10px;cursor:pointer;text-align:left}
.chat-dock-toggle:hover{background:#ffffff1a}
.chat-dot{width:7px;height:7px;border-radius:50%;background:#7fd8a0;flex:none}
.chat-unread{min-width:16px;padding:0 4px;border-radius:8px;background:#c2571c;color:#fff;
  font-size:10px;line-height:16px;text-align:center;letter-spacing:0}
.chat-voice-btn{padding:4px 8px;border:1px solid #ffffff33;border-radius:6px;background:#ffffff14;
  color:#eef3e6;font:inherit;font-size:11px;cursor:pointer;white-space:nowrap;max-width:150px;overflow:hidden;text-overflow:ellipsis}
.chat-voice-btn:hover{background:#ffffff26}
.chat-dock-body{padding:0 8px 8px;display:grid;gap:6px}
.chat-dock[data-open=false] .chat-dock-body{display:none}
.chat-dock .chat-log{list-style:none;margin:0;padding:0;max-height:112px;overflow-y:auto;display:grid;gap:4px;line-height:1.35}
.chat-dock .chat-log li{word-break:break-word}
.chat-dock .chat-log .who{font-weight:700;color:#9fe0b4}
.chat-dock .chat-log .who.self{color:#8ec8f0}
.chat-dock .chat-log .tag{font-size:9px;letter-spacing:.06em;color:#a9bcae;margin-left:4px}
.chat-dock .chat-log .empty{color:#a9bcae}
.chat-form{display:flex;gap:5px;align-items:center}
.chat-form input{flex:1;min-width:0;padding:6px 8px;border:1px solid #ffffff2e;border-radius:6px;
  background:#0b1f1a80;color:#eef3e6;font:inherit;font-size:12px}
.chat-form input::placeholder{color:#9fb0a4}
.chat-form input:focus{outline:2px solid #7fd8a0;outline-offset:0}
.chat-channel{padding:6px 7px;border:1px solid #ffffff2e;border-radius:6px;background:#ffffff14;
  color:#eef3e6;font:inherit;font-size:11px;cursor:pointer;white-space:nowrap}
.chat-channel[data-channel=city]{background:#2f7fb4;border-color:#2f7fb4;color:#fff}
.chat-send{padding:6px 10px;border:1px solid #2f8a5f;border-radius:6px;background:#2f8a5f;color:#fff;font:inherit;cursor:pointer}
.chat-dock .chat-note{margin:0;font-size:10px;color:#a9bcae;line-height:1.35}
.chat-dock .chat-note:empty{display:none}
/* Meeting people: gestures, and whatever you have arranged to do. */
.social-dot{background:#f0c24b}
.emote-bar{display:flex;flex-wrap:wrap;gap:4px}
.emote-bar button{padding:3px 7px;border:1px solid #ffffff2e;border-radius:6px;background:#ffffff14;
  color:#eef3e6;font:inherit;font-size:13px;line-height:1.4;cursor:pointer}
.emote-bar button:hover{background:#ffffff2e}
.emote-bar button[aria-pressed=true]{background:#f0c24b;border-color:#f0c24b;color:#1b2a24}
.plan-list{list-style:none;margin:0;padding:0;display:grid;gap:5px;max-height:132px;overflow-y:auto}
.plan-list li{display:grid;gap:3px;padding:5px 6px;border-radius:7px;background:#0b1f1a66;line-height:1.35}
.plan-list li.waiting{background:#4a3a1066}
.plan-list .plan-top{display:flex;gap:5px;align-items:baseline;justify-content:space-between}
.plan-list .plan-where{color:#9fe0b4;font-weight:700;word-break:break-word}
.plan-list .plan-when{font-size:10px;color:#a9bcae;white-space:nowrap}
.plan-list .plan-buttons{display:flex;gap:4px;flex-wrap:wrap}
.plan-list button{padding:3px 8px;border:1px solid #ffffff2e;border-radius:6px;background:#ffffff14;
  color:#eef3e6;font:inherit;font-size:11px;cursor:pointer}
.plan-list button.yes{background:#2f8a5f;border-color:#2f8a5f;color:#fff}
.plan-list .empty{background:none;padding:0;color:#a9bcae}
.social-actions{display:flex;gap:5px;flex-wrap:wrap}
.social-actions button{flex:1 1 auto}
/* Choosing who to meet, where, and when. */
.pick-list{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:6px;max-height:240px;overflow-y:auto}
.pick-list li{display:flex;gap:10px;align-items:center;justify-content:space-between;
  padding:8px 10px;border:1px solid #d6ddcd;border-radius:8px;background:#fbfbf5}
.pick-list .pick-name{font-weight:600}
.pick-list .pick-note{display:block;font-size:11px;color:#5c6b5f}
.pick-list li[aria-selected=true]{border-color:#2f8a5f;background:#eaf6ee}
.pick-list button{white-space:nowrap}
.pick-row{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.pick-row button{flex:1 1 110px}
.pick-row button[aria-pressed=true]{background:#2f8a5f;border-color:#2f8a5f;color:#fff}
.guest-list{list-style:none;margin:0;padding:0;display:grid;gap:4px;font-size:13px}
.guest-list .coming{color:#1d7a52;font-weight:600}
.guest-list .declined{color:#8a5c33}
@media (max-width:900px){
  .dock-stack{width:min(260px,60vw);bottom:auto;top:110px}
  .chat-dock{font-size:11px}
  .chat-dock .chat-log{max-height:80px}
  .plan-list{max-height:96px}
}

/* Framing your own face for your character */
.avatar-editor{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-start;margin:0 0 14px}
.avatar-editor canvas{width:240px;height:240px;max-width:100%;border-radius:10px;border:1px solid #cad6c5;
  background:#e8ece0;touch-action:none;cursor:grab}
.avatar-editor canvas:active{cursor:grabbing}
.avatar-controls{flex:1 1 200px;min-width:180px;display:grid;gap:6px;align-content:start}
.avatar-controls input[type=range]{width:100%}
.swatches{display:flex;gap:10px;flex-wrap:wrap;font-size:12px;color:#5c6b5f}
.swatch{display:inline-flex;align-items:center;gap:5px}
.swatch i{width:16px;height:16px;border-radius:4px;border:1px solid #00000022;display:inline-block}

.delhi-card{margin-top:20px}.delhi-card .city-art{height:170px;background:#eedec8}.delhi-card .city-script{color:#8a513b}.delhi-card .skyline i{background:#bc8a69;border-color:#a57455}

/* --- City select: one simple frame that holds every city ---------------- */
/* The old screen stacked tall illustrated cards, so Kochi and Delhi lived
   below the fold. The screen is now a short header plus one row of compact
   cards, sized so all four cities are visible without scrolling. */
#city-screen{min-height:100dvh;display:flex;flex-direction:column}
#city-screen .brandbar{height:70px}
.city-layout{max-width:1340px;width:100%;margin:0 auto;padding:30px 5% 34px;display:flex;flex-direction:column;justify-content:center;gap:26px;flex:1}
.city-layout .intro{display:flex;align-items:flex-end;justify-content:space-between;gap:36px;flex-wrap:wrap}
.city-layout .intro h1{font-size:clamp(30px,3.3vw,44px);letter-spacing:-2px;line-height:1.12;margin:10px 0 0}
.city-layout .intro>p{font-size:13px;line-height:1.7;margin:0 0 6px;max-width:330px}
.city-panel{display:flex;flex-direction:column;gap:14px}
.section-label{margin-bottom:0}
.city-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:stretch}
.city-card{display:flex;flex-direction:column;border:1px solid #cfdbcb;border-radius:12px;background:var(--white);overflow:hidden;box-shadow:0 10px 30px #17392a08}
.city-band{height:62px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;background:#dbe7d3}
.city-band .city-script{position:static;font-size:14px;color:#4f7150}
.city-emoji{font-size:26px;line-height:1}
.city-card .card-body{padding:16px 16px 18px;display:flex;flex-direction:column;flex:1}
.city-card .city-meta{font-size:8px}
.city-card h2{font-size:19px;letter-spacing:-.6px;margin:11px 0 5px}
.city-card p{font-size:11px;line-height:1.65;margin:0 0 14px;flex:1}
.city-card .primary{padding:11px 14px;font-size:12px;gap:10px}
.is-kozhikode .city-band{background:#cfe4e0}.is-kozhikode .city-script{color:#216a68}
.is-kochi .city-band{background:#d5e3e9}.is-kochi .city-script{color:#2a5f77}
.is-delhi .city-band{background:#eedec8}.is-delhi .city-script{color:#8a513b}
.future-cities{margin-top:0;grid-template-columns:repeat(2,minmax(0,220px));justify-content:center}
.city-note{margin-top:0}
@media(max-width:1100px){.city-layout{padding:26px 5% 24px;gap:20px}.city-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.city-layout{display:flex;padding:18px 18px;gap:14px}.city-panel{margin-top:0;gap:10px}.city-layout .intro{gap:10px;display:block}.city-layout .intro h1{font-size:28px;letter-spacing:-1.4px;margin:8px 0 0}.city-layout .intro>p{font-size:12px;margin-top:10px;max-width:none}.city-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.city-band{height:44px;padding:0 10px}.city-band .city-script{font-size:11px}.city-emoji{font-size:19px}.city-card .card-body{padding:12px 12px 13px}.city-card h2{font-size:15px;margin:8px 0 4px}.city-card p{font-size:10px;line-height:1.55;margin-bottom:10px}.city-card .primary{padding:9px 11px;font-size:11px;gap:6px}.future-cities{grid-template-columns:1fr 1fr;gap:8px}.future-cities div{padding:10px}.city-note{font-size:10px}}

#sound-source{display:block;margin-top:6px;font-size:8px;letter-spacing:.6px;color:#8a9483}

/* A private line is one conversation inside the city log: marked, and clickable
   to answer the person it belongs to. */
.chat-dock .chat-log li.private{border-left:2px solid #6fb2d8;padding-left:6px;cursor:pointer}
.chat-dock .chat-log li.private .who{color:#a9d8f0}
.chat-dock .chat-log li.private .tag{color:#8fc4e4}
.chat-dock .chat-log li.private:hover{background:#ffffff12;border-radius:4px}
.chat-channel[data-channel=private]{background:#1d4a63;border-color:#69a8c8;color:#e4f2f8}

/* Street treasure: the points chip, the panel that counts what you have found,
   and the rewards those points buy. */
.wallet.points strong{color:#8a6a14}
.wallet.points{padding-left:18px}
.treasure-card{border:1px solid #e6dfc4;background:#fbf6e4;border-radius:8px;padding:14px 14px 12px}
.treasure-row{display:flex;align-items:center;gap:9px;font-size:10px;padding:4px 0;color:#5c6552}
.treasure-row strong{margin-left:auto;font-size:12px;color:var(--ink)}
.gem{width:11px;height:11px;display:inline-block;flex-shrink:0;transform:rotate(45deg);border-radius:2px;box-shadow:0 1px 2px #3c3a1c26}
.gem-silver{background:linear-gradient(135deg,#ffffff,#aab4c2)}
.gem-gold{background:linear-gradient(135deg,#ffe9a8,#d29b13);border-radius:50%;transform:none}
.gem-diamond{background:linear-gradient(135deg,#e4fcff,#3fc0da)}
#treasure-note{margin:9px 0 4px;color:#7c896e}
.treasure-card .secondary{margin-top:8px}
.reward-card{display:flex;align-items:center;gap:14px;padding:13px 15px;background:#edf0e3;border-radius:7px;margin:10px 0}
.reward-card>div{min-width:0;flex:1}
.reward-card h3{font-size:14px;margin:0}
.reward-card p{font-size:11px;margin:5px 0 0}
.reward-card button{width:auto;margin:0;flex-shrink:0;white-space:nowrap;background:#fffef7}
@media(max-width:700px){.wallet.points{padding-left:8px}.wallet.points strong{font-size:15px}}

/* The accident procedure, spelled out step by step. A player who has just
   crashed should never have to guess what unblocks their next ride. */
.incident-steps{margin:.6rem 0 .5rem;padding-left:1.15rem;display:grid;gap:.3rem}
.incident-steps li{font-size:.78rem;line-height:1.35;opacity:.55}
.incident-steps li.done{opacity:.42;text-decoration:line-through}
.incident-steps li.now{opacity:1;font-weight:600}
.incident-steps li.now::marker{font-weight:700}
.incident-steps .step-hint{display:block;font-weight:400;opacity:.8;font-size:.72rem;margin-top:.1rem}

.is-thiruvananthapuram .city-band{background:#e4dbc3}.is-thiruvananthapuram .city-script{color:#665229}
.city-card h2,.city-card .primary{overflow-wrap:anywhere;min-width:0}

/* =====================================================================
   Touch & small-screen play (mobile.js adds html.touch-ui)
   Phones and tablets get a full-screen street, controls under the thumbs,
   and the two side panels in a slide-up menu.
   ===================================================================== */
.m-only{display:none!important}
html.touch-ui .m-only{display:revert!important}
html.touch-ui [hidden]{display:none!important}
html.touch-ui{-webkit-text-size-adjust:100%;touch-action:manipulation}
html.touch-ui body{overflow-x:hidden}
html.touch-ui input,html.touch-ui select,html.touch-ui textarea{font-size:16px}
html.touch-ui button{touch-action:manipulation}

/* Menus: never wider than the phone */
html.touch-ui .brandbar{padding:calc(10px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));height:auto;min-height:60px;flex-wrap:wrap;gap:10px}
html.touch-ui .brandbar .language-picker select{max-width:120px}
html.touch-ui dialog{padding:22px 18px calc(18px + env(safe-area-inset-bottom));width:calc(100% - 24px);max-height:88dvh;overflow:auto;overscroll-behavior:contain}
html.touch-ui dialog h2{font-size:23px}
html.touch-ui #ad-admin{padding:18px}
@media (max-width:700px){
  html.touch-ui .setup-layout{display:flex;flex-direction:column;gap:22px;margin:20px auto 40px;padding:0 18px}
  html.touch-ui .setup-layout>div:first-child{display:contents}
  html.touch-ui .setup-layout h1{font-size:44px;letter-spacing:-2px;margin:10px 0 0;line-height:1.05}
  html.touch-ui .setup-layout>div>p{font-size:14px;margin:0}
  html.touch-ui .setup-layout .setup-facts{margin:0;gap:16px;flex-wrap:wrap}
  html.touch-ui .setup-card{order:1;padding:22px 18px}
  html.touch-ui .setup-card h2{margin:12px 0 18px}
  html.touch-ui .setup-cities{order:2;margin-top:0}
  html.touch-ui .city-grid{grid-template-columns:1fr}
  html.touch-ui .city-card p{flex:none}
}

/* ---- Boot loader: shown while a chosen city downloads ---- */
.boot-loader{display:none}
html.booting .boot-loader,html.starting .boot-loader{display:flex;position:fixed;inset:0;z-index:100;flex-direction:column;align-items:center;justify-content:center;gap:22px;background:var(--paper)}
html.booting #city-screen{visibility:hidden}
.boot-loader .brand{font-size:34px}
.boot-loader i{display:block;width:160px;height:4px;border-radius:4px;background:#dce4d2;overflow:hidden;position:relative}
.boot-loader i:after{content:'';position:absolute;inset:0;width:40%;border-radius:4px;background:var(--green);animation:boot-slide 1.1s ease-in-out infinite}
html.starting .boot-loader{z-index:2147483000}
.boot-note{display:none;margin:0;font-size:13px;color:var(--muted);letter-spacing:.2px}
html.starting .boot-note{display:block}
@keyframes boot-slide{0%{transform:translateX(-100%)}100%{transform:translateX(260%)}}
/* While a city is being built: a little auto drives along the kerb, the bar
   fills as each step finishes, and a tip rotates underneath. Movement uses
   transforms only, so it keeps going even while the page is busy building. */
.boot-road,.boot-pct,.boot-tip{display:none}
html.starting .boot-road{display:block;position:relative;width:min(300px,76vw);height:34px;border-bottom:2px dashed #c9d3bf;overflow:hidden}
.boot-auto{position:absolute;left:0;bottom:1px;font-size:26px;line-height:1;will-change:translate;animation:boot-drive 2.6s linear infinite;translate:-40px 0;transform:scaleX(-1)}
.boot-loader.measured i{width:min(300px,76vw);height:6px;margin-top:-8px}
.boot-loader.measured i:after{animation:none;width:100%;transform-origin:0 50%;transform:scaleX(var(--load,0));transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.boot-loader.measured i:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent);transform:translateX(-100%);animation:boot-shine 1.5s ease-in-out infinite;z-index:1}
html.starting .boot-loader.measured .boot-pct{display:block;margin:-14px 0 0;font:700 12px/1 Manrope,system-ui,sans-serif;color:var(--green);font-variant-numeric:tabular-nums;letter-spacing:.5px}
html.starting .boot-tip:not(:empty){display:block;max-width:min(340px,82vw);margin:6px 0 0;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--white);font-size:12px;line-height:1.55;color:var(--ink);text-align:center}
@keyframes boot-drive{0%{translate:-40px 0}100%{translate:min(340px,80vw) 0}}
@media (max-height:460px){html.starting .boot-loader{gap:12px}html.starting .boot-loader .brand{font-size:26px}html.starting .boot-road{height:28px}html.starting .boot-tip:not(:empty){margin:0;padding:7px 12px;font-size:11px}}
@keyframes boot-shine{100%{transform:translateX(100%)}}
@media (prefers-reduced-motion:reduce){.boot-auto{animation:none;translate:120px 0}.boot-loader.measured i:before{display:none}.boot-loader.measured i:after{transition:none}}

/* =====================================================================
   Phone & tablet game view
   mobile.js sets on <html>:
     touch-ui      phone / tablet / narrow window
     in-game       the street is on screen
     m-portrait    held upright   ·  m-landscape  held sideways
     m-foot        walking (movement stick instead of pedals)
     m-stick-steer the player chose the stick for steering
     roomy         tablet-sized screen
   The game is never turned sideways by the page: it follows the phone.
   ===================================================================== */
html.touch-ui{--sl:env(safe-area-inset-left,0px);--sr:env(safe-area-inset-right,0px);--st:env(safe-area-inset-top,0px);--sb:env(safe-area-inset-bottom,0px);--hud:44px;--pad:10px;--glass:#0e231cdb;--glass-line:#ffffff30;--ctl:70px;--pedal-w:62px;--gas-w:76px;--gas-h:126px}
html.touch-ui.in-game,html.touch-ui.in-game body{height:100%;overflow:hidden;overscroll-behavior:none}
html.touch-ui.in-game body{position:fixed;inset:0;width:100%;background:#0f2a22}
/* No frosted glass over the moving 3D street: re-blurring every frame costs phones their frame rate. */
/* Blurring the whole page behind a dialog is slow on phones; a plain dim reads the same. */
html.touch-ui.in-game .chat-dock,html.touch-ui.in-game .resume-overlay,html.touch-ui dialog::backdrop{-webkit-backdrop-filter:none;backdrop-filter:none}

html.touch-ui #game-screen{position:fixed;inset:0;display:block;background:#0f2a22;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
html.touch-ui #game-screen.hidden{display:none!important}
html.touch-ui #game-screen input,html.touch-ui #game-screen select,html.touch-ui #game-screen textarea{-webkit-user-select:text;user-select:text}
html.touch-ui .play-layout{position:absolute;inset:0;display:block;height:auto;min-height:0}
html.touch-ui .map-wrap{position:absolute;inset:0;height:auto;min-height:0;order:0}
html.touch-ui #world{touch-action:none}
html.touch-ui .navigation,html.touch-ui .map-bottom,html.touch-ui .street-map button,html.touch-ui .street-map span{display:none}

/* ---- Glass buttons shared by the HUD ---- */
html.touch-ui #m-menu,html.touch-ui #pause,html.touch-ui #weather,html.touch-ui .map-top .map-pill,html.touch-ui .m-act{width:var(--hud);height:var(--hud);min-width:var(--hud);padding:0;border-radius:50%;border:1px solid var(--glass-line);background:var(--glass);color:#fff;display:grid;place-items:center;box-shadow:0 3px 12px #0005;font-size:19px;line-height:1;letter-spacing:0;transition:transform .08s,background .15s}
html.touch-ui #m-menu:active,html.touch-ui #pause:active,html.touch-ui #weather:active,html.touch-ui .map-top .map-pill:active,html.touch-ui .m-act:active{transform:scale(.92);background:#245b46}
.m-icon-only{font-size:0!important;color:transparent!important}
.m-icon-only::before{content:attr(data-icon);font-size:19px;line-height:1;color:#fff}

/* ---- Top bar: menu · wallet · points ……… weather · pause ---- */
html.touch-ui .game-header{position:absolute;top:0;left:0;right:0;z-index:7;height:auto;min-height:0;background:none;border:0;padding:calc(8px + var(--st)) calc(var(--pad) + var(--sr)) 0 calc(var(--pad) + var(--sl));gap:8px;pointer-events:none;align-items:center;justify-content:flex-start}
html.touch-ui .game-header>*{pointer-events:auto}
html.touch-ui .game-header>.brand,html.touch-ui .game-header .game-title,html.touch-ui .game-header #clock,html.touch-ui .game-header .wallet span,html.touch-ui .game-header .language-picker{display:none}
html.touch-ui #m-menu{order:-4;background:#245b46f0;font-size:20px}
html.touch-ui .game-header .wallet{order:-3;padding:0 14px;height:var(--hud);border:1px solid var(--glass-line);border-radius:22px;background:var(--glass);justify-content:center;box-shadow:0 3px 12px #0005}
html.touch-ui .game-header .wallet.points{order:-2;padding:0 12px}
html.touch-ui .game-header .wallet strong{font-size:15px;color:#fff;letter-spacing:0;font-variant-numeric:tabular-nums;white-space:nowrap}
html.touch-ui .game-header .wallet.points strong{color:#ffd66b}
html.touch-ui .game-header .wallet.points strong::before{content:'◆ ';font-size:12px;color:#7fe0f0}
html.touch-ui .game-header .world-status{order:-1;margin:0 0 0 auto;display:block}
html.touch-ui #pause{order:0}

/* ---- Camera + map buttons ---- */
html.touch-ui .map-top{position:absolute;left:auto;gap:8px;z-index:6;pointer-events:none}
html.touch-ui .map-top>.map-pill:first-child{display:none}
html.touch-ui .map-top #camera-mode{margin:0}

/* ---- Minimap ---- */
html.touch-ui .street-map{bottom:auto;right:calc(var(--pad) + var(--sr));width:132px;border-radius:14px;border:2px solid #ffffffa0;z-index:2;box-shadow:0 3px 14px #0006}
html.touch-ui .street-map canvas{width:132px;height:90px}

/* ---- Directions card ---- */
html.touch-ui .m-nav-chip{position:absolute;z-index:5;height:52px;padding:0 14px 0 7px;border-radius:16px;background:#113a2de8;border:1px solid #ffffff26;color:#fff;display:flex!important;align-items:center;gap:10px;box-shadow:0 4px 16px #0006;pointer-events:none}
html.touch-ui .m-nav-chip[hidden]{display:none!important}
html.touch-ui .m-nav-ico{flex:none;width:38px;height:38px;border-radius:11px;background:#d6ec8b;color:#173d32;display:grid;place-items:center;font-size:20px;line-height:1}
html.touch-ui .m-nav-txt{min-width:0;display:flex;flex-direction:column;gap:2px}
html.touch-ui .m-nav-txt strong{font-size:14px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.touch-ui .m-nav-txt small{font-size:12px;line-height:1.2;color:#cfe2c3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.touch-ui .m-nav-txt small:empty{display:none}

/* ---- Meet people & city chat: round icons that open into panels ---- */
html.touch-ui .dock-stack{position:absolute;bottom:auto;left:calc(var(--pad) + var(--sl));width:auto;display:flex;flex-direction:column;align-items:flex-start;gap:8px;z-index:6}
html.touch-ui .chat-dock{font-size:13px;border-radius:22px;background:var(--glass)}
html.touch-ui .chat-dock[data-open=false]{width:var(--hud);height:var(--hud);overflow:visible;box-shadow:0 3px 12px #0005}
html.touch-ui .chat-dock[data-open=false] .chat-dock-head{padding:0;height:var(--hud)}
html.touch-ui .chat-dock[data-open=false] .chat-voice-btn{display:none}
html.touch-ui .chat-dock-toggle{position:relative;font-size:0!important;height:var(--hud);min-width:var(--hud);padding:0 10px;justify-content:center;gap:0;border-radius:22px}
html.touch-ui .chat-dock-toggle .chat-dot{display:none}
html.touch-ui .chat-dock-toggle::before{font-size:20px;line-height:1;content:'💬'}
html.touch-ui #social-collapse::before{content:'👥'}
html.touch-ui .chat-dock[data-open=true]{width:min(320px,42vw);border-radius:16px;z-index:8}
html.touch-ui .chat-dock[data-open=true] .chat-dock-head{padding:4px 6px}
html.touch-ui .chat-dock[data-open=true] .chat-dock-toggle{justify-content:space-between;height:40px}
html.touch-ui .chat-dock[data-open=true] .chat-dock-toggle::after{content:'✕';font-size:16px;color:#dfe9d6}
html.touch-ui .chat-unread{position:absolute;top:-4px;right:-4px;font-size:10px!important;min-width:18px;line-height:18px;border-radius:9px;box-shadow:0 0 0 2px #10261f}
html.touch-ui .chat-voice-btn{width:40px;height:40px;padding:0;border-radius:50%;display:grid;place-items:center;max-width:none}
html.touch-ui .chat-voice-btn.is-on{background:#2f8a5f;border-color:#8fd3a5}
html.touch-ui .chat-dock .chat-log{max-height:120px;font-size:13px}
html.touch-ui .plan-list{max-height:120px}
html.touch-ui .emote-bar button{min-height:36px;min-width:40px;font-size:16px}
html.touch-ui .social-actions button{height:42px;flex:1 1 0}
html.touch-ui .social-actions button.m-icon-only::before{font-size:20px}
html.touch-ui .chat-form input{font-size:16px;padding:9px}
html.touch-ui .chat-form .chat-send,html.touch-ui .chat-form .chat-channel{height:40px;min-width:40px}

/* ---- Thumb controls ---- */
html.touch-ui .touch-controls{display:flex;position:absolute;left:calc(12px + var(--sl));right:calc(12px + var(--sr));bottom:calc(14px + var(--sb));align-items:flex-end;justify-content:space-between;gap:8px;z-index:4;pointer-events:none}
html.touch-ui .touch-controls>*{pointer-events:auto}
html.touch-ui .tc-left{display:flex;align-items:flex-end}
html.touch-ui .tc-steer{display:flex;flex-direction:row;gap:10px}
html.touch-ui .touch-controls button{border:2px solid #ffffff5c;background:#0e231c8c;color:#fff;box-shadow:0 4px 16px #0005;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:0;text-shadow:0 1px 3px #0009;transition:transform .06s,background .1s}
html.touch-ui .touch-controls button b{font-size:26px;line-height:1;font-weight:700}
/* Icons only: no words on the thumb controls. */
html.touch-ui .touch-controls button span{display:none}
html.touch-ui .touch-controls button.pressed,html.touch-ui .touch-controls button:active{background:#d6ec8be6;color:#173d32;border-color:#fff;transform:scale(.94);text-shadow:none}
html.touch-ui .tc-steer button{width:var(--ctl);height:var(--ctl);border-radius:22px}
html.touch-ui .tc-pedals{display:grid;grid-template-columns:var(--pedal-w) var(--gas-w);grid-template-rows:auto auto;gap:10px;align-items:end}
html.touch-ui .tc-pedals .tc-brake{grid-column:1;grid-row:1;width:var(--pedal-w);height:calc(var(--gas-h) - 58px);border-radius:18px;background:#b8402c99;border-color:#ffb3a366}
html.touch-ui .tc-pedals .tc-brake b{font-size:22px}
html.touch-ui .tc-pedals .tc-reverse b{font-size:18px}
html.touch-ui .tc-pedals .tc-reverse{grid-column:1;grid-row:2;width:var(--pedal-w);height:48px;border-radius:14px}
html.touch-ui .tc-pedals .tc-gas{grid-column:2;grid-row:1/3;width:var(--gas-w);height:var(--gas-h);border-radius:24px;background:#2f8a4fa6;border-color:#bff0a866}
html.touch-ui .tc-pedals .tc-brake.pressed{background:#ffb3a3;color:#5a1a0e}

/* Movement stick (always on foot; for steering when chosen) */
html.touch-ui .tc-stick{display:none!important;position:relative;width:136px;height:136px;border-radius:50%;background:radial-gradient(circle,#ffffff1f 0 38%,#0e231c80 39%);border:2px solid #ffffff55;box-shadow:0 4px 16px #0005;touch-action:none}
html.touch-ui .tc-stick::before{content:'◀';position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#ffffffa0;font-size:14px}
html.touch-ui .tc-stick::after{content:'▶';position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#ffffffa0;font-size:14px}
html.touch-ui.m-foot .tc-stick::before{content:'';inset:8px;left:8px;top:8px;transform:none;border-radius:50%;background:conic-gradient(from -8deg,#ffffff90 0 16deg,transparent 16deg 82deg,#ffffff90 82deg 98deg,transparent 98deg 172deg,#ffffff90 172deg 188deg,transparent 188deg 262deg,#ffffff90 262deg 278deg,transparent 278deg);-webkit-mask:radial-gradient(circle,transparent 60%,#000 61% 66%,transparent 67%);mask:radial-gradient(circle,transparent 60%,#000 61% 66%,transparent 67%)}
html.touch-ui.m-foot .tc-stick::after{display:none}
html.touch-ui .tc-knob{position:absolute;left:50%;top:50%;width:60px;height:60px;margin:-30px 0 0 -30px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#d6ec8b);box-shadow:0 4px 12px #0007;pointer-events:none;transition:transform .12s ease-out}
html.touch-ui .tc-stick.active .tc-knob{transition:none}
html.touch-ui.m-foot .tc-steer,html.touch-ui.m-stick-steer .tc-steer{display:none}
/* Steering wheel: turned by dragging, springs back to straight. */
html.touch-ui .tc-wheel{display:block;position:relative;width:calc(var(--gas-h) + 8px);height:calc(var(--gas-h) + 8px);border-radius:50%;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;cursor:grab;outline:none}
html.touch-ui .tc-wheel.active{cursor:grabbing}
html.touch-ui .tc-wheel.springing .tc-wheel-art{transition:transform .22s cubic-bezier(.2,.9,.3,1.25)}
html.touch-ui .tc-wheel-art{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 4px 10px #0008);will-change:transform;pointer-events:none}
html.touch-ui .tc-wheel .w-back{fill:#0e231c33;stroke:#ffffff4d;stroke-width:1.5}
html.touch-ui .tc-wheel .w-rim{fill:none;stroke:#0e231cd0;stroke-width:11}
html.touch-ui .tc-wheel .w-grip{fill:none;stroke:#ffffff45;stroke-width:9;stroke-dasharray:1.2 6.1}
html.touch-ui .tc-wheel .w-spoke{fill:none;stroke:#0e231cd0;stroke-width:7;stroke-linecap:round}
html.touch-ui .tc-wheel .w-hub{fill:#0e231ce6;stroke:#ffffff66;stroke-width:2}
html.touch-ui .tc-wheel .w-hub-dot{fill:#d6ec8b}
html.touch-ui .tc-wheel .w-mark{fill:#d6ec8b}
html.touch-ui .tc-wheel.active .w-rim,html.touch-ui .tc-wheel.active .w-spoke{stroke:#173d32f2}
html.touch-ui .tc-wheel.active .w-grip{stroke:#d6ec8bcc}
html.touch-ui .tc-wheel.active .w-back{fill:#d6ec8b2e;stroke:#d6ec8b99}
html.touch-ui.m-foot .tc-wheel,html.touch-ui.m-stick-steer .tc-wheel{display:none}
html.touch-ui.m-foot .tc-stick,html.touch-ui.m-stick-steer .tc-stick{display:block!important}
html.touch-ui.m-foot .tc-pedals,html.touch-ui.m-foot .m-dash{visibility:hidden}

/* Speed & fuel */
html.touch-ui .m-dash{display:flex!important;flex-direction:column;align-items:center;color:#fff;text-shadow:0 1px 5px #000c;pointer-events:none!important;padding-bottom:2px;min-width:0}
html.touch-ui .m-dash strong{font-family:'Manrope',sans-serif;font-size:36px;line-height:1;font-weight:800;letter-spacing:-1px;font-variant-numeric:tabular-nums}
html.touch-ui .m-dash small{font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;opacity:.85;margin-top:1px}
html.touch-ui .m-dash .m-bar{display:block;width:64px;height:6px;border-radius:4px;background:#ffffff40;margin-top:6px;overflow:hidden;box-shadow:0 1px 3px #0006}
html.touch-ui .m-dash .m-bar b{display:block;height:100%;width:100%;background:#b8dd6a;border-radius:4px;transition:width .3s}
html.touch-ui .m-dash .m-bar b.low{background:#f0795a}

/* ---- Quick actions: one row of icons ---- */
html.touch-ui .m-actions{position:absolute;left:50%;transform:translateX(-50%);display:flex!important;flex-direction:row;gap:10px;z-index:4}
html.touch-ui .m-act{width:48px;height:48px;min-width:48px}
html.touch-ui .m-act b{font-size:21px;line-height:1;font-weight:400}
html.touch-ui .m-act.is-on{background:#2f8a5fe6;border-color:#8fd3a5}
html.touch-ui .m-act[hidden]{display:none!important}
html.touch-ui .m-act:disabled{opacity:.45}
html.touch-ui.m-foot .m-act[data-proxy=engine],html.touch-ui.m-foot .m-act[data-proxy=horn]{display:none!important}
/* On foot the right thumb is free, so run / get in / leave sit under it, larger */
html.touch-ui.m-foot .m-actions{left:auto;right:calc(16px + var(--sr));transform:none;bottom:calc(22px + var(--sb));gap:14px}
html.touch-ui.m-foot .m-act{width:62px;height:62px;min-width:62px}
html.touch-ui.m-foot .m-act b{font-size:26px}

/* ---- Context action (pick up, enter, refuel, rest…): icon + words ---- */
html.touch-ui .interaction{position:absolute;top:auto;left:50%;transform:translateX(-50%);min-width:0;width:max-content;max-width:calc(100% - 24px);z-index:5}
html.touch-ui .interaction .primary{display:block;width:auto;max-width:100%;height:54px;line-height:50px;padding:0 22px 0 14px;border-radius:27px;font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:2px solid #fff;background:#245b46;color:#fff;box-shadow:0 6px 20px #0008}
html.touch-ui .interaction .primary kbd{display:none}
html.touch-ui .interaction .primary::before{content:'👆';display:inline-block;font-size:22px;line-height:1;margin-right:10px;vertical-align:-4px}
@keyframes m-pulse{0%{box-shadow:0 0 0 0 #d6ec8bb3,0 6px 20px #0008}100%{box-shadow:0 0 0 16px #d6ec8b00,0 6px 20px #0008}}
html.touch-ui .interaction .primary[data-kind^="enter-building"]::before{content:'🚪'}
html.touch-ui .interaction .primary[data-kind^="leave-building"]::before{content:'🚶'}
html.touch-ui .interaction .primary[data-kind^="room-action"]::before{content:'🛎'}
html.touch-ui .interaction .primary[data-kind="room-action:buy"]::before{content:'🛍'}
html.touch-ui .interaction .primary[data-kind^="board"]::before{content:'🚌'}
html.touch-ui .interaction .primary[data-kind^="drive"]::before{content:'🔑'}
html.touch-ui .interaction .primary[data-kind="job:pickup"]::before{content:'🙋'}
html.touch-ui .interaction .primary[data-kind="job:dropoff"]::before{content:'🏁'}
html.touch-ui .interaction .primary[data-kind^="settle"]::before,html.touch-ui .interaction .primary[data-kind="service:police"]::before{content:'📝'}
html.touch-ui .interaction .primary[data-kind^="walk-to-scene"]::before{content:'👮'}
html.touch-ui .interaction .primary[data-kind="service:home"]::before{content:'🛏'}
html.touch-ui .interaction .primary[data-kind="service:fuel"]::before{content:'⛽'}
html.touch-ui .interaction .primary[data-kind="service:garage"]::before{content:'🔧'}
html.touch-ui .interaction .primary[data-kind="service:tea"]::before{content:'☕'}
html.touch-ui .interaction .primary[data-kind="service:hospital"]::before{content:'🏥'}

/* ---- Paused ---- */
html.touch-ui .resume-overlay{z-index:9;background:#0b1f1a99}
html.touch-ui .resume-overlay>div{width:min(320px,calc(100% - 40px));padding:24px;border-radius:20px;text-align:center}
html.touch-ui .resume-overlay .primary{min-height:54px;font-size:16px;border-radius:27px;justify-content:center}

/* ---- Brief messages ---- */
html.touch-ui #toast{bottom:auto;transform:translate(-50%,-10px);font-size:13px;padding:11px 18px;border-radius:22px;text-align:center;z-index:40;line-height:1.4}
html.touch-ui #toast.show{transform:translate(-50%,0)}
html.touch-ui .pickup-line{padding:9px 16px;z-index:30}
html.touch-ui .pickup-line strong{font-size:14px;line-height:1.45}
html.touch-ui .pickup-line small{display:none}

/* =====================================================================
   Portrait: HUD on top, street in the middle, thumbs at the bottom
   ===================================================================== */
html.m-portrait .m-nav-chip{top:calc(60px + var(--st));left:calc(var(--pad) + var(--sl));right:calc(var(--pad) + var(--sr))}
html.m-portrait .dock-stack{top:calc(122px + var(--st))}
html.m-portrait .street-map{top:calc(122px + var(--st))}
html.m-portrait .map-top{top:calc(222px + var(--st));right:calc(var(--pad) + var(--sr));flex-direction:row}
html.m-portrait .chat-dock[data-open=true]{width:calc(100vw - 2 * var(--pad) - var(--sl) - var(--sr))}
html.m-portrait .m-actions{bottom:calc(14px + var(--gas-h) + 14px + var(--sb))}
html.m-portrait .interaction{bottom:calc(14px + var(--gas-h) + 14px + 48px + 14px + var(--sb))}
html.m-portrait.m-foot .interaction{bottom:calc(14px + 136px + 18px + var(--sb))}
html.m-portrait #toast{top:calc(122px + var(--st));left:50%;max-width:calc(100% - 24px)}
html.m-portrait .pickup-line{top:auto;bottom:calc(var(--gas-h) + 150px + var(--sb));max-width:calc(100% - 32px)}
html.m-portrait .pickup-line.show{transform:translate(-50%,0)}

/* =====================================================================
   Landscape: directions centred on top, pedals in the corners
   ===================================================================== */
html.m-landscape{--gas-h:118px}
html.m-landscape .m-nav-chip{top:calc(8px + var(--st));left:50%;transform:translateX(-50%);width:clamp(170px,calc(100% - 500px),420px)}
html.m-landscape .map-top{top:calc(8px + var(--st));right:calc(var(--pad) + var(--sr) + var(--hud) + 8px);flex-direction:row}
html.m-landscape .game-header .world-status{margin-right:calc(2 * (var(--hud) + 8px))}
html.m-landscape .dock-stack{top:calc(62px + var(--st))}
html.m-landscape .street-map{top:calc(62px + var(--st))}
html.m-landscape .touch-controls{align-items:flex-end}
html.m-landscape .m-dash{position:absolute;left:50%;bottom:0;transform:translateX(-50%)}
html.m-landscape .m-actions{bottom:calc(14px + 70px + var(--sb))}
html.m-landscape .interaction{bottom:calc(14px + 70px + 60px + var(--sb))}
html.m-landscape.m-foot .interaction{bottom:calc(14px + 62px + var(--sb))}
html.m-landscape #toast{top:calc(66px + var(--st));max-width:min(440px,50%)}
html.m-landscape .pickup-line{top:calc(66px + var(--st));max-width:min(440px,50%)}
@media (max-height:380px){
  html.m-landscape{--hud:40px;--ctl:62px;--pedal-w:56px;--gas-w:68px;--gas-h:104px}
  html.m-landscape .street-map{width:112px}
  html.m-landscape .street-map canvas{width:112px;height:76px}
  html.m-landscape .m-act{width:44px;height:44px;min-width:44px}
  html.m-landscape .m-dash strong{font-size:30px}
  html.m-landscape .m-actions{bottom:calc(10px + 66px + var(--sb))}
  html.m-landscape .interaction{bottom:calc(10px + 66px + 54px + var(--sb))}
  html.m-landscape.m-foot .interaction{bottom:calc(10px + 54px + var(--sb))}
  html.m-landscape .interaction .primary{height:48px;line-height:44px;font-size:14px}
  html.m-landscape .touch-controls{bottom:calc(10px + var(--sb))}
  html.m-landscape .tc-stick{width:118px;height:118px}
}
/* Narrow phones held upright */
@media (max-width:389px){
  html.m-portrait{--hud:40px;--pad:8px;--ctl:62px;--pedal-w:54px;--gas-w:66px;--gas-h:112px}
  html.m-portrait .game-header{gap:6px}
  html.m-portrait .game-header .wallet{padding:0 10px}
  html.m-portrait .game-header .wallet strong{font-size:14px}
  html.m-portrait .m-dash strong{font-size:28px}
  html.m-portrait .m-dash .m-bar{width:48px}
  html.m-portrait .street-map{width:116px}
  html.m-portrait .street-map canvas{width:116px;height:79px}
  html.m-portrait .map-top{top:calc(210px + var(--st))}
  html.m-portrait .m-act{width:44px;height:44px;min-width:44px}
  html.m-portrait .m-actions{gap:8px}
  html.m-portrait .tc-stick{width:124px;height:124px}
}
/* Tablets: roomier controls */
html.touch-ui.roomy{--hud:50px;--ctl:84px;--pedal-w:74px;--gas-w:92px;--gas-h:148px}
html.touch-ui.roomy .street-map{width:200px}
html.touch-ui.roomy .street-map canvas{width:200px;height:136px}
html.touch-ui.roomy .m-act{width:56px;height:56px;min-width:56px}
html.touch-ui.roomy .tc-stick{width:160px;height:160px}
html.m-portrait.roomy .map-top{top:calc(272px + var(--st))}

/* =====================================================================
   The menu: a bottom sheet when upright, a side drawer when sideways
   ===================================================================== */
html.touch-ui .left-panel,html.touch-ui .right-panel{display:block;position:fixed;z-index:21;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;border:0;background:var(--white);visibility:hidden;-webkit-user-select:text;user-select:text;transition:transform .28s cubic-bezier(.2,.8,.2,1),visibility 0s .28s}
html.touch-ui .m-sheet-head{display:flex!important;position:fixed;z-index:22;align-items:center;gap:8px;background:var(--white);border-bottom:1px solid var(--line);visibility:hidden;transition:transform .28s cubic-bezier(.2,.8,.2,1),visibility 0s .28s;touch-action:none}
html.touch-ui .m-tabs{display:flex;gap:6px;flex:1;min-width:0;padding:4px;background:#eef1e6;border-radius:24px}
html.touch-ui .m-tabs button{flex:1;min-width:0;border:0;background:none;color:var(--ink);border-radius:20px;padding:10px 6px;font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.touch-ui .m-tabs button[aria-selected=true]{background:var(--green);color:#fff;box-shadow:0 2px 6px #173d3233}
html.touch-ui #m-sheet-close,html.touch-ui .m-sheet-icon{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:none;color:var(--ink);font-size:18px;flex:none;padding:0}
html.touch-ui .m-sheet-backdrop{display:block!important;position:fixed;inset:0;z-index:20;background:#0b1f1a80;opacity:0;pointer-events:none;transition:opacity .25s}
html.touch-ui #game-screen.sheet-open .m-sheet-backdrop{opacity:1;pointer-events:auto}
html.touch-ui #game-screen.sheet-open .m-sheet-head,html.touch-ui #game-screen.sheet-open[data-panel=left] .left-panel,html.touch-ui #game-screen.sheet-open[data-panel=right] .right-panel{transform:none;visibility:visible;transition:transform .28s cubic-bezier(.2,.8,.2,1)}
html.touch-ui #game-screen[data-panel=left] .right-panel,html.touch-ui #game-screen[data-panel=right] .left-panel{display:none}
html.touch-ui #game-screen.sheet-dragging .m-sheet-head,html.touch-ui #game-screen.sheet-dragging .left-panel,html.touch-ui #game-screen.sheet-dragging .right-panel{transition:none}

html.m-portrait{--sheet-top:calc(var(--st) + 10dvh)}
html.m-portrait .m-sheet-head{left:0;right:0;top:var(--sheet-top);height:70px;padding:18px calc(12px + var(--sr)) 8px calc(12px + var(--sl));border-radius:22px 22px 0 0;box-shadow:0 -12px 30px #0005;transform:translateY(100vh)}
html.m-portrait .m-sheet-head::before{content:'';position:absolute;top:7px;left:50%;width:44px;height:5px;margin-left:-22px;border-radius:3px;background:#c9d1c0}
html.m-portrait .left-panel,html.m-portrait .right-panel{left:0;right:0;width:auto;top:calc(var(--sheet-top) + 70px);bottom:0;padding:16px calc(18px + var(--sr)) calc(28px + var(--sb)) calc(18px + var(--sl));transform:translateY(100vh)}
html.m-landscape .m-sheet-head{right:0;left:auto;top:0;width:min(420px,60%);height:calc(60px + var(--st));padding:calc(8px + var(--st)) calc(10px + var(--sr)) 8px 12px;box-shadow:-10px 0 30px #0004;transform:translateX(105%)}
html.m-landscape .left-panel,html.m-landscape .right-panel{right:0;left:auto;width:min(420px,60%);top:calc(60px + var(--st));bottom:0;padding:14px calc(16px + var(--sr)) calc(24px + var(--sb)) 16px;transform:translateX(105%)}
html.touch-ui .m-credit a{color:var(--muted)}

/* Panels laid out for the sheet: readable sizes, full-width targets */
html.touch-ui .left-panel,html.touch-ui .right-panel{font-size:14px}
html.touch-ui .right-panel>.language-picker{margin:0 0 14px;justify-content:space-between}
html.touch-ui .right-panel>.language-picker>span{display:inline!important;font-size:13px!important}
html.touch-ui .right-panel>.language-picker select{max-width:none;flex:1;padding:10px}
html.touch-ui .driver-card strong{font-size:15px;max-width:60vw}
html.touch-ui .driver-card div span{font-size:12px}
html.touch-ui .rating{font-size:13px}
html.touch-ui .eyebrow,html.touch-ui .shift-card .eyebrow,html.touch-ui .right-panel .eyebrow{font-size:11px}
html.touch-ui .left-panel .shift-card{margin-top:14px;padding:16px}
html.touch-ui .left-panel .shift-card h2{font-size:22px;margin:8px 0}
html.touch-ui .left-panel .shift-card h2 br{display:none}
html.touch-ui .shift-card p{font-size:13px}
html.touch-ui .progress-track{height:6px}
html.touch-ui .progress-label{font-size:12px}
html.touch-ui .panel-heading{font-size:12px;margin:22px 0 10px;align-items:center}
html.touch-ui .panel-heading .live-dot{font-size:10px}
html.touch-ui .treasure-card{padding:14px;border-radius:12px}
html.touch-ui .treasure-row{font-size:14px;padding:6px 0}
html.touch-ui .treasure-row strong{font-size:15px}
html.touch-ui .gem{width:14px;height:14px}
html.touch-ui #treasure-note{font-size:12px}
html.touch-ui #job-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
html.touch-ui .job-card{border-radius:12px;padding:14px;margin-top:0;background:#fffef9}
html.touch-ui .job-top{font-size:12px}
html.touch-ui .job-top strong{font-size:18px}
html.touch-ui .route span{font-size:13px}
html.touch-ui .job-card button{font-size:14px;min-height:46px;border-radius:10px;background:var(--green);color:#fff}
html.touch-ui .left-panel button,html.touch-ui .right-panel button{min-height:46px}
html.touch-ui .secondary{font-size:14px;border-radius:10px}
html.touch-ui .comms-panel p,html.touch-ui .comms-panel strong{font-size:14px}
html.touch-ui .comms-actions button{flex:1;font-size:13px}
html.touch-ui .life-actions button{font-size:15px;padding:12px 0}
html.touch-ui .small{font-size:12px}
html.touch-ui .right-panel .vehicle-preview,html.touch-ui .right-panel>h3,html.touch-ui .right-panel>#ownership-label{display:block}
html.touch-ui .right-panel .vehicle-preview{font-size:48px;margin:6px 0 0}
html.touch-ui .right-panel>h3{font-size:18px}
html.touch-ui .right-panel>p{font-size:11px}
html.touch-ui .right-panel .speed{float:none;margin:10px 0}
html.touch-ui .right-panel .speed strong{font-size:40px}
html.touch-ui .meter>div,html.touch-ui .meter strong{font-size:13px}
html.touch-ui .right-panel .meter,html.touch-ui .right-panel .vehicle-controls{max-width:none}
html.touch-ui .right-panel .vehicle-controls{flex-wrap:wrap}
html.touch-ui .right-panel .vehicle-controls button{font-size:13px;border-radius:10px}
html.touch-ui .right-panel .vehicle-controls label,html.touch-ui .right-panel .vehicle-controls select{flex-basis:100%;font-size:13px}
html.touch-ui .right-panel .vehicle-controls select{padding:11px;border:1px solid #cad6c5;border-radius:10px;background:#fff}
html.touch-ui .m-steer-pref{display:flex!important;align-items:center;gap:6px;margin:14px 0 4px;padding:4px;background:#eef1e6;border-radius:24px}
html.touch-ui .m-steer-pref span{font-size:12px;font-weight:700;padding:0 8px;color:var(--muted)}
html.touch-ui .m-steer-pref button{flex:1;border:0;background:none;border-radius:20px;font-size:13px;font-weight:700;color:var(--ink);min-height:40px!important}
html.touch-ui .m-steer-pref button[aria-pressed=true]{background:var(--green);color:#fff}
html.touch-ui .right-panel .essential{display:block;width:auto}
html.touch-ui .essential span{font-size:14px}
html.touch-ui .essential small{font-size:12px}
html.touch-ui .right-panel>p.small:last-child{display:none}
html.touch-ui .sound-controls{grid-template-columns:1fr 1fr}
html.touch-ui .sound-controls label,html.touch-ui #voice-status,html.touch-ui #sound-source{font-size:12px}
html.touch-ui .sound-controls input[type=range]{min-height:32px}
html.touch-ui .sound-controls button{font-size:13px;border-radius:10px}
html.touch-ui .emergency-panel small,html.touch-ui .incident-steps li{font-size:13px}

/* ---- Dialogs: a bottom sheet when upright, the way back always in reach ---- */
html.touch-ui dialog{overscroll-behavior:contain}
html.touch-ui dialog p,html.touch-ui dialog ul{font-size:14px}
html.touch-ui dialog button{min-height:46px}
html.touch-ui #modal #close-modal{position:sticky;bottom:0;min-height:54px;font-size:15px;border-radius:12px;box-shadow:0 -10px 20px var(--white)}
html.m-portrait.in-game dialog[open]{margin:auto 0 0;width:100%;max-width:none;border-radius:22px 22px 0 0;max-height:88dvh;padding:24px 18px calc(18px + var(--sb));border:0}
html.m-landscape.in-game dialog[open]{max-height:calc(100dvh - 20px);width:min(560px,calc(100% - 24px))}

/* Setup: the start button follows you down the form */
html.touch-ui .setup-card button[type=submit]{position:sticky;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:3;min-height:54px;font-size:16px;border-radius:12px;box-shadow:0 10px 26px #173d3245}
html.touch-ui .setup-card select,html.touch-ui .setup-card input{min-height:50px}

/* Phone welcome: one tap per line, with the icon the player will see. */
#modal-content ol.m-welcome{list-style:none;margin:14px 0 10px;padding:0;display:grid;gap:8px}
#modal-content ol.m-welcome li{display:flex;align-items:center;gap:12px;padding:9px 12px;background:#eef1e6;border-radius:14px;font-size:14px;line-height:1.35}
#modal-content ol.m-welcome li b{flex:0 0 34px;height:34px;display:grid;place-items:center;border-radius:50%;background:var(--green);color:#fff;font-size:17px;line-height:1}
#modal-content .modal-error{margin-top:6px;padding:8px 10px;border-radius:10px;background:#f3e6df;color:#7a3a28;font-family:ui-monospace,Menlo,monospace;font-size:11px;word-break:break-word}

.build-id{display:block;margin:12px 0 0;font-size:10px;color:var(--muted);letter-spacing:.5px}
.sound-controls #spoken-toggle{grid-column:1/-1}

/* The next button to press blinks: a bright ring that flashes on and off. */
html.touch-ui kbd{display:none}
@keyframes m-next{0%,100%{box-shadow:0 0 0 3px #ffe45c,0 0 18px 6px #ffe45caa;filter:brightness(1.25)}50%{box-shadow:0 0 0 3px #ffe45c00,0 0 0 0 #ffe45c00;filter:brightness(1)}}
html.touch-ui .m-next{animation:m-next .9s ease-in-out infinite!important}
html.touch-ui .touch-controls button.m-next{border-color:#ffe45c}
html.touch-ui .m-next.pressed,html.touch-ui .m-next:active{animation:none!important}
