:root{color-scheme:dark;--ink: #241910;--paper: #f4ecdc;--sand: #e7d2b0;--clay: #9c4a32;font-family:Liberation Sans,Noto Sans,sans-serif}*{box-sizing:border-box}html,body{margin:0;height:100%;width:100%;overflow:hidden;position:fixed;top:0;right:0;bottom:0;left:0;touch-action:none;overscroll-behavior:none;background:var(--sand);user-select:none;-webkit-user-select:none}#c{display:block;width:100%;height:100%;touch-action:none}#minimap{position:fixed;z-index:7;left:calc(14px + env(safe-area-inset-left));bottom:calc(16px + env(safe-area-inset-bottom));width:156px;height:156px;border-radius:12px;border:2px solid rgba(255,244,220,.7);background:#e7d3a4;box-shadow:0 6px 16px #140c0647;pointer-events:auto;touch-action:manipulation}body.touch-ui #minimap{left:auto;bottom:auto;top:calc(78px + env(safe-area-inset-top));right:calc(12px + env(safe-area-inset-right));width:132px;height:132px}#cash{position:fixed;z-index:6;top:calc(62px + env(safe-area-inset-top));right:calc(12px + env(safe-area-inset-right));left:auto;margin:0;padding:6px 10px;border-radius:999px;background:#1c140cc7;color:#f6efe2;font-weight:800}#mission-card{position:fixed;z-index:19;left:50%;top:16%;transform:translate(-50%);width:min(420px,calc(100% - 24px));padding:16px 16px 12px;border-radius:16px;background:#f6efe2;color:#241910;box-shadow:0 16px 40px #140c0647}#mission-card[hidden]{display:none}#mission-card h2{margin:0 0 4px;font-size:22px}#mission-card p{margin:0 0 8px}#mission-card ol{margin:0 0 8px;padding-left:18px}#mission-card li{margin:2px 0}#mission-card button{min-height:40px;border:0;border-radius:999px;background:#9c4a32;color:#fffaf3;font-weight:800;padding:0 16px}#tracker{position:fixed;z-index:6;left:calc(14px + env(safe-area-inset-left));top:calc(356px + env(safe-area-inset-top));width:min(280px,calc(100% - 28px));margin:0;padding:8px 10px;border-radius:12px;background:#1c140cd1;color:#fffaf3;pointer-events:auto}#tracker[hidden]{display:none}#tracker p{margin:0}#tracker-name{font-size:12px;letter-spacing:.04em;text-transform:uppercase;opacity:.8}#tracker-step{font-weight:800;margin-top:2px}#tracker-meta,#tracker-meter{font-size:13px;margin-top:2px}#tracker-meter:empty{display:none}#tracker.flash{outline:2px solid #ffe08a}#tracker button{margin-top:6px;min-height:28px;border:0;border-radius:999px;background:#3d3428;color:#fffaf3;font-weight:700;padding:0 10px}#goal-arrow{position:fixed;z-index:6;width:28px;height:28px;margin:-14px 0 0 -14px;pointer-events:none;background:#ffe08a;clip-path:polygon(50% 0,100% 100%,0 100%)}#goal-arrow[hidden]{display:none}#event-card,#toast,#feel{position:fixed;z-index:18;left:50%;transform:translate(-50%);border-radius:14px;background:#f6efe2;color:#241910;box-shadow:0 12px 32px #140c0647}#event-card{bottom:calc(120px + env(safe-area-inset-bottom));width:min(360px,calc(100% - 24px));padding:12px}#event-card[hidden],#toast[hidden],#feel[hidden]{display:none}#event-card p{margin:0 0 6px}#event-card strong,#event-title,#event-card button,#toast{font-weight:800}#event-card button{min-height:36px;margin-right:8px;border:0;border-radius:999px;background:#9c4a32;color:#fffaf3;padding:0 12px}#event-no{background:#3d3428!important}#toast{top:calc(72px + env(safe-area-inset-top));padding:10px 14px;text-align:center}#toast p{margin:2px 0 0}#feel{bottom:42%;padding:6px 12px;font-weight:800;background:#1c140cd1;color:#ffe08a;pointer-events:none}#run-btn{display:none;position:fixed;z-index:6;left:calc(150px + env(safe-area-inset-left));bottom:calc(28px + env(safe-area-inset-bottom));min-height:44px;border:0;border-radius:999px;background:#3d3428;color:#fffaf3;font-weight:800;padding:0 14px}body.touch-ui:not(.driving):not(.riding) #run-btn{display:inline-flex;align-items:center}#run-btn.on{background:#9c4a32}body.phone.build-mode #cash{top:calc(46px + env(safe-area-inset-top));bottom:auto;left:auto;right:calc(8px + env(safe-area-inset-right))}body.phone #tracker{top:calc(132px + env(safe-area-inset-top));width:min(210px,54vw);padding:6px 8px;font-size:12px}@media(max-height:480px)and (orientation:landscape){body.phone #tracker{top:calc(90px + env(safe-area-inset-top));left:calc(8px + env(safe-area-inset-left));width:188px;font-size:11px}body.phone #mission-card{top:8px;max-height:calc(100% - 16px);overflow:auto}}#objective{position:fixed;z-index:6;top:calc(54px + env(safe-area-inset-top));left:50%;transform:translate(-50%);margin:0;max-width:min(520px,calc(100% - 24px));padding:8px 12px;border-radius:12px;background:#1c140cb8;color:#fffaf3;text-align:center;font-weight:700}#banner{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;background:#1c140c59;padding:16px}#banner[hidden]{display:none}#phone{position:fixed;z-index:18;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#1c140c47;padding:16px}#phone[hidden]{display:none}.phone-shell{width:min(360px,100%);max-height:min(640px,calc(100% - 24px));overflow:auto;background:#1c140c;color:#fffaf3;border-radius:28px;padding:14px;box-shadow:0 18px 50px #1c140c59}.phone-top,.phone-apps,.phone-list{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.phone-top{justify-content:space-between;margin-bottom:10px}.phone-apps button,.phone-list button,#phone-page button{border:0;border-radius:14px;background:#3d3428;color:#fffaf3;min-height:44px;padding:8px 12px;font-weight:700}#phone-page button{display:block;width:100%;text-align:left;white-space:normal}#shop-btn{position:fixed;z-index:8;left:50%;bottom:calc(92px + env(safe-area-inset-bottom));transform:translate(-50%);min-height:48px;border:0;border-radius:999px;background:#2f6b4f;color:#fffaf3;font-weight:800;padding:0 16px}#shop-btn[hidden]{display:none}@media(max-height:500px){#cash{top:auto;bottom:calc(16px + env(safe-area-inset-bottom));left:auto;right:calc(96px + env(safe-area-inset-right))}#objective{top:calc(46px + env(safe-area-inset-top));max-width:42%;font-size:13px}}#crosshair{position:fixed;left:50%;top:50%;width:18px;height:18px;transform:translate(-50%,-50%);pointer-events:none;z-index:4}#crosshair:before,#crosshair:after{content:"";position:absolute;background:#fffaf3;box-shadow:0 0 0 1px #140e08d9}#crosshair:before{left:8px;top:2px;width:2px;height:14px}#crosshair:after{top:8px;left:2px;width:14px;height:2px}#target-name{position:fixed;left:50%;top:calc(50% + 16px);transform:translate(-50%);color:#fffaf3;text-shadow:0 1px 2px #1a120c;font-size:13px;letter-spacing:.02em;pointer-events:none;z-index:4;min-height:1em}#topbar{position:fixed;z-index:8;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:calc(10px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) 0 calc(12px + env(safe-area-inset-left));pointer-events:none}button,a,input,select,textarea,.pills,#tool-row,#minimap,#drive-pad,#mount-btn{touch-action:manipulation;cursor:pointer}.brand{max-width:min(460px,62vw)}.mark,#overlay h1,#help-card h2{font-family:"Liberation Serif","DejaVu Serif",Georgia,serif;font-weight:700;letter-spacing:-.03em}.mark{margin:0;color:#fffaf3;font-size:28px;text-shadow:0 1px 2px rgba(20,12,6,.65)}#where-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}#where,#detail,#coords,.hint{margin:0;color:#fffaf3;text-shadow:0 1px 2px rgba(20,12,6,.7)}#where-row .sv-link,#save-place{min-height:44px;padding:6px 12px;border-radius:999px;background:#1c140e8c;color:#fffaf3;text-decoration:none;font-size:13px;font-weight:700;text-shadow:none;pointer-events:auto;border:1px solid rgba(255,244,220,.35)}#where{font-size:15px;font-weight:700}#detail,#coords,.hint{font-size:13px;line-height:1.35}#coords{opacity:.9;margin-top:2px}#street-now{margin:2px 0 0;font-size:13px;font-weight:800;color:#fffaf3;text-shadow:0 1px 2px rgba(20,12,6,.45)}#street-now:empty{display:none}.hint{margin-top:8px;max-width:440px}.hint.touch,body.touch-ui .hint.desk{display:none}body.touch-ui .hint.touch{display:block}.pills{position:relative;z-index:9;display:flex;gap:8px;pointer-events:auto;flex-wrap:wrap;justify-content:flex-end;align-items:center}.pills button{display:inline-flex;align-items:center;justify-content:center;line-height:1}body.phone .pills{display:grid;grid-template-columns:repeat(4,max-content);gap:6px;justify-content:end;align-items:center}body.phone #help{grid-column:4;grid-row:1}body.phone #plaza{grid-column:2;grid-row:2}body.phone #sound{grid-column:3;grid-row:2}#tool-row{position:fixed;z-index:14;left:calc(14px + env(safe-area-inset-left));top:calc(64px + env(safe-area-inset-top));display:none;flex-wrap:wrap;gap:6px;max-width:360px;pointer-events:auto;padding:10px;border-radius:14px;background:#1c140eeb}#tool-row button,.dialog .field select,.dialog .field input[type=text]{min-height:40px;border-radius:999px;border:1px solid rgba(255,244,220,.4);background:#1c140e8c;color:#fffaf3;font-weight:700;padding:0 12px}#road-btn[aria-pressed=true],#build-btn[aria-pressed=true],#night-btn[aria-pressed=true]{background:#9c4a32}.look-field{display:flex;flex-direction:row;align-items:center;gap:6px;color:#fffaf3;font-size:13px;font-weight:700}.look-field select{min-height:36px;border-radius:999px;border:0;background:#fffaf3;color:#241910;padding:0 8px}.field.road-name{display:none;flex:1 0 100%;margin:0;color:#fffaf3;font-size:13px;font-weight:700;pointer-events:auto}body.road-mode .field.road-name{display:flex;flex-direction:row;gap:6px;align-items:center}body.driving .hint,body.riding .hint,body.hints-hidden .hint{display:none!important}#menu-btn{display:inline-flex}body:not(.build-mode) #hotbar-wrap,body:not(.build-mode) #btn-break,body:not(.build-mode) #btn-place{display:none!important}#build-tools{display:flex;gap:6px;justify-content:center;pointer-events:auto;margin-top:6px}#build-tools button{border:0;border-radius:999px;min-height:36px;padding:0 10px;background:#3d3428;color:#fffaf3;font-weight:800;font-size:12px}.tabs{display:flex;gap:6px;flex-wrap:wrap}.tabs button,.creative-toggle{border:0;border-radius:999px;min-height:36px;padding:0 12px;background:#e7d7bc;font-weight:700}.tabs button.on{background:#3d3428;color:#fffaf3}.creative-toggle{display:flex;align-items:center;gap:8px}#craft-list{display:flex;flex-direction:column;gap:8px}#craft-list button{text-align:left;border:0;border-radius:12px;min-height:44px;padding:8px 12px;background:#fffaf3;font-weight:700}body.menu-open #tool-row{display:flex}body.touch-ui #tool-row{top:calc(54px + env(safe-area-inset-top));left:8px;right:8px;max-width:none}body.touch-ui .hint{display:none!important}.road-name input{min-height:36px;border-radius:8px;border:0;padding:0 8px;color:#241910;width:140px;user-select:text;-webkit-user-select:text}.field,.check{display:flex;flex-direction:column;gap:4px;font-weight:700;font-size:13px}#tool-row .check{flex-direction:row;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:999px;background:#1c140e7a;color:#f7f1e6}.field-row{display:flex;gap:10px;flex-wrap:wrap}.dialog select,.dialog input[type=text]{min-height:44px;border-radius:10px;border:1px solid rgba(36,25,16,.25);background:#fffaf3;color:#241910;font:inherit;padding:0 10px}#garage-view{width:100%;height:180px;border-radius:12px;background:#d9c7a4}#garage-apply,#garage-call,#saves-card button.wide{min-height:44px;border:0;border-radius:999px;background:#9c4a32;color:#fffaf3;font-weight:700}button{font:inherit}.pills button,#close-help,#enter{min-height:44px;border-radius:999px;border:1px solid rgba(255,244,220,.4);background:#1c140e7a;color:#f7f1e6;padding:0 14px;font-weight:700}#enter,#close-help{width:100%;background:var(--clay);border:0;color:#fffaf3;font-size:18px}#mount-btn{position:fixed;z-index:8;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));transform:translate(-50%);min-height:48px;min-width:128px;padding:0 18px;border:0;border-radius:999px;background:#9c4a32;color:#fffaf3;font-weight:700;pointer-events:auto}#mount-btn[hidden]{display:none}#flip-btn{display:none;position:fixed;z-index:8;right:calc(118px + env(safe-area-inset-right));bottom:calc(118px + env(safe-area-inset-bottom));min-height:44px;min-width:72px;padding:0 14px;border:0;border-radius:999px;background:#3d4c6b;color:#fffaf3;font-weight:700}body.driving #flip-btn{display:block}body.touch-ui.driving #flip-btn{right:auto;left:calc(16px + env(safe-area-inset-left));bottom:calc(164px + env(safe-area-inset-bottom))}#speedo,#radio-btn,#street-pop,#drive-pad{display:none}body.driving #speedo{display:flex;position:fixed;z-index:7;right:calc(16px + env(safe-area-inset-right));bottom:calc(108px + env(safe-area-inset-bottom));width:84px;height:84px;align-items:center;justify-content:center;border-radius:50%;background:#1c140eb8;color:#fffaf3;font-weight:800;font-size:28px;border:3px solid rgba(255,244,220,.45)}body.driving #speedo:after{content:"km/h";position:absolute;bottom:14px;font-size:10px;letter-spacing:.06em}body.driving #radio-btn{display:block;position:fixed;z-index:7;right:calc(16px + env(safe-area-inset-right));bottom:calc(200px + env(safe-area-inset-bottom));min-height:40px;border:0;border-radius:999px;background:#1c140eb8;color:#fffaf3;font-weight:700;padding:0 12px}#street-pop{position:fixed;z-index:7;left:50%;top:calc(18% + env(safe-area-inset-top));transform:translate(-50%);margin:0;padding:8px 14px;border-radius:999px;background:#1c140eb8;color:#fffaf3;font-weight:700}#street-pop[hidden]{display:none}#drive-pad{pointer-events:none}body.touch-ui.driving #drive-pad{display:grid;position:fixed;z-index:7;right:calc(12px + env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom));grid-template-columns:64px 64px;gap:8px;pointer-events:auto}#drive-pad button{width:64px;height:64px;border:0;border-radius:50%;background:#9c4a32;color:#fffaf3;font-weight:800;font-size:12px}#pedal-gas{grid-column:2;grid-row:1 / span 2;height:136px;border-radius:32px;background:#2f6b4f}#pedal-brake{background:#8d3d32}#pedal-hand{background:#3d4c6b}body.touch-ui.driving .actions,body.touch-ui.riding .actions{display:none!important}#gallop-btn{display:none;position:fixed;z-index:8;right:calc(16px + env(safe-area-inset-right));bottom:calc(200px + env(safe-area-inset-bottom));min-width:88px;min-height:64px;border:0;border-radius:32px;background:#2f6b4f;color:#fffaf3;font-weight:800}body.touch-ui.riding:not(.driving) #gallop-btn{display:block}body.touch-ui.driving #gallop-btn{display:none!important}body.touch-ui.driving #speedo,body.touch-ui.riding #speedo{left:auto;right:calc(214px + env(safe-area-inset-right));top:auto;bottom:calc(36px + env(safe-area-inset-bottom));transform:none;width:68px;height:68px;font-size:20px}body.touch-ui.driving #mount-btn,body.touch-ui.riding #mount-btn{left:50%;right:auto;top:auto;bottom:calc(24px + env(safe-area-inset-bottom));transform:translate(-50%);min-width:104px;min-height:52px}body.touch-ui.driving #radio-btn,body.touch-ui.riding #radio-btn{left:auto;right:calc(16px + env(safe-area-inset-right));top:auto;bottom:calc(230px + env(safe-area-inset-bottom));z-index:8}body.phone.driving #radio-btn,body.phone.riding #radio-btn{display:inline-flex;position:static;grid-column:4;grid-row:2;top:auto;right:auto;bottom:auto;left:auto;min-height:32px;margin:0;z-index:10}body.touch-ui.driving #cash,body.touch-ui.riding #cash{top:calc(96px + env(safe-area-inset-top));bottom:auto;left:calc(12px + env(safe-area-inset-left));right:auto}body.touch-ui:not(.phone).driving #cash,body.touch-ui:not(.phone).riding #cash{top:calc(180px + env(safe-area-inset-top))}body.phone.driving #speedo,body.phone.riding #speedo{width:58px;height:58px;font-size:16px;right:calc(206px + env(safe-area-inset-right));bottom:calc(128px + env(safe-area-inset-bottom))}body.phone.driving #speedo:after,body.phone.riding #speedo:after{bottom:6px;font-size:8px}body.phone.driving #mount-btn,body.phone.riding #mount-btn{left:50%;right:auto;transform:translate(-50%);bottom:calc(210px + env(safe-area-inset-bottom))}body.phone.driving #flip-btn{left:calc(12px + env(safe-area-inset-left));right:auto;bottom:calc(200px + env(safe-area-inset-bottom))}body.touch-ui.driving #drive-pad{bottom:calc(18px + env(safe-area-inset-bottom));grid-template-columns:84px 92px;gap:10px}body.touch-ui.driving #drive-pad button{width:84px;height:84px}body.touch-ui.driving #drive-pad #pedal-gas{width:92px;height:178px;border-radius:40px}body.touch-ui #mount-btn{bottom:calc(214px + env(safe-area-inset-bottom))}#hotbar-wrap{position:fixed;z-index:6;left:50%;bottom:calc(14px + env(safe-area-inset-bottom));transform:translate(-50%);display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none}body.touch-ui #hotbar-wrap{bottom:calc(128px + env(safe-area-inset-bottom))}#slot-name{color:#fffaf3;text-shadow:0 1px 2px #1a120c;font-size:13px;font-weight:700}#hotbar{display:flex;gap:6px;pointer-events:auto}.slot{width:56px;height:56px;border-radius:10px;border:2px solid rgba(255,244,220,.22);background:#16100c8c;position:relative;padding:0;touch-action:none}body.touch-ui .slot{width:56px;height:56px}.slot.all{font-size:12px;font-weight:800;color:#f6efe2}.slot img{width:32px;height:32px;image-rendering:pixelated;pointer-events:none}.slot .num{position:absolute;left:4px;top:2px;font-size:10px;color:#f6efe2}.slot.selected{border-color:#f0d7a2;background:#483018e0;transform:translateY(-4px)}.joystick{display:none;position:fixed;z-index:6;left:calc(18px + env(safe-area-inset-left));bottom:calc(18px + env(safe-area-inset-bottom));width:132px;height:132px;border-radius:50%;background:#14100c52;border:2px solid rgba(255,244,220,.45);touch-action:none}body.touch-ui .joystick{display:block}.knob{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:#f4e8d2eb;box-shadow:0 4px 10px #140c0640}.actions{display:none;position:fixed;z-index:6;right:calc(14px + env(safe-area-inset-right));bottom:calc(14px + env(safe-area-inset-bottom));grid-template-columns:84px 84px;grid-template-areas:"break place" "jump jump";gap:10px;justify-items:center}body.touch-ui .actions{display:grid}.actions button{width:80px;height:80px;border-radius:50%;border:2px solid rgba(255,250,240,.45);color:#fffaf3;font-weight:800;font-size:14px;touch-action:none}#btn-break{grid-area:break;background:#8d3d32}#btn-place{grid-area:place;background:#2f6f66}#btn-jump{grid-area:jump;width:94px;height:94px;background:#c47a3a;font-size:16px}.actions button:active,.slot:active,.pills button:active,#enter:active{transform:scale(.97)}#overlay,#help-card{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;padding:calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));background:#1c140e47}#help-card[hidden],#overlay[hidden]{display:none}.card{width:min(460px,100%);background:var(--paper);color:var(--ink);border-radius:18px;padding:26px 24px 20px;box-shadow:0 18px 50px #28180a59}.card h1{font-size:64px;line-height:.9;margin:0 0 8px}.card h2{font-size:32px;margin:0 0 8px}.card p{margin:0 0 12px;line-height:1.4}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:700;color:#7a5a3a}.fine,#boot-status{font-size:13px;color:#5c4636}.card.slim p{font-size:15px}@media(orientation:portrait)and (min-width:521px){body.touch-ui #hotbar-wrap{bottom:calc(214px + env(safe-area-inset-bottom))}body.touch-ui .slot{width:48px;height:48px}.mark{font-size:24px}.card h1{font-size:52px}}@media(max-width:520px){.mark{font-size:20px}#where,#detail,#coords,.hint{font-size:11px}.hint{max-width:52vw}.pills button{min-height:36px;padding:0 10px;font-size:13px}#tool-row{top:calc(150px + env(safe-area-inset-top));bottom:auto;max-width:52vw}#tool-row button{min-height:36px;padding:0 8px;font-size:12px}body.phone #minimap{top:calc(96px + env(safe-area-inset-top));right:calc(8px + env(safe-area-inset-right));width:108px;height:108px}.card h1{font-size:42px}.joystick{width:104px;height:104px;left:calc(10px + env(safe-area-inset-left));bottom:calc(10px + env(safe-area-inset-bottom))}.knob{width:48px;height:48px;margin:-24px 0 0 -24px}.actions{grid-template-columns:68px 68px;gap:8px;right:calc(10px + env(safe-area-inset-right));bottom:calc(10px + env(safe-area-inset-bottom))}.actions button{width:64px;height:64px;font-size:12px}#btn-jump{width:72px;height:72px;font-size:13px}body.touch-ui.driving #cash,body.touch-ui.riding #cash{top:calc(128px + env(safe-area-inset-top))}body.phone #tracker{top:calc(168px + env(safe-area-inset-top))}body.touch-ui #hotbar-wrap{bottom:calc(158px + env(safe-area-inset-bottom));max-width:calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right))}body.touch-ui #hotbar{gap:3px}body.touch-ui .slot{width:32px;height:32px;border-radius:8px}body.touch-ui .slot img{width:20px;height:20px}.slot .num{font-size:9px}.map-row{flex-direction:column;align-items:stretch}.map-actions{display:grid;grid-template-columns:1fr 1fr}}@media(max-height:480px)and (orientation:landscape){#topbar{padding-top:calc(4px + env(safe-area-inset-top))}.mark{font-size:16px}#detail,.hint{display:none}#where,#coords{font-size:11px}.pills button{min-height:32px;padding:0 8px;font-size:12px}body.touch-ui #mount-btn{top:calc(40px + env(safe-area-inset-top));bottom:auto;min-height:40px}body.touch-ui.driving #mount-btn,body.touch-ui.riding #mount-btn{top:auto;bottom:calc(14px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%)}body.touch-ui.riding #gallop-btn{bottom:calc(14px + env(safe-area-inset-bottom));right:calc(100px + env(safe-area-inset-right));min-height:56px;min-width:76px}body.phone #minimap{top:calc(108px + env(safe-area-inset-top));width:72px;height:72px}body.phone.driving #speedo,body.phone.riding #speedo{right:calc(184px + env(safe-area-inset-right));bottom:calc(18px + env(safe-area-inset-bottom))}body.touch-ui.driving #cash,body.touch-ui.riding #cash{top:auto;bottom:calc(84px + env(safe-area-inset-bottom));left:auto;right:calc(184px + env(safe-area-inset-right))}body.phone.driving #mount-btn,body.phone.riding #mount-btn{bottom:calc(14px + env(safe-area-inset-bottom))}body.phone.driving #flip-btn{bottom:calc(108px + env(safe-area-inset-bottom))}body.touch-ui.driving #drive-pad{grid-template-columns:70px 76px;bottom:calc(8px + env(safe-area-inset-bottom))}body.touch-ui.driving #drive-pad button{width:70px;height:64px}body.touch-ui.driving #drive-pad #pedal-gas{width:76px;height:132px;border-radius:34px}body.touch-ui #minimap{top:calc(112px + env(safe-area-inset-top));right:calc(8px + env(safe-area-inset-right));width:72px;height:72px}.joystick{width:88px;height:88px;left:calc(8px + env(safe-area-inset-left));bottom:calc(8px + env(safe-area-inset-bottom))}.knob{width:42px;height:42px;margin:-21px 0 0 -21px}.actions{grid-template-columns:54px 54px 60px;grid-template-areas:"break place jump";gap:6px;right:calc(8px + env(safe-area-inset-right));bottom:calc(8px + env(safe-area-inset-bottom))}.actions button,#btn-jump{width:54px;height:54px;font-size:11px}#btn-jump{width:60px;height:60px}body.touch-ui #hotbar-wrap{bottom:calc(8px + env(safe-area-inset-bottom));max-width:calc(100vw - 290px - env(safe-area-inset-left) - env(safe-area-inset-right))}body.touch-ui.build-mode #hotbar-wrap{bottom:calc(72px + env(safe-area-inset-bottom))}body.touch-ui #slot-name{display:none}#build-tools button{min-height:28px;font-size:11px;padding:0 6px}body.touch-ui #hotbar{gap:3px}body.touch-ui .slot{width:32px;height:32px}body.touch-ui .slot img{width:18px;height:18px}.slot.all{font-size:9px}}.sheet{position:fixed;z-index:30;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;gap:8px;padding:calc(10px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));background:#f4ecdc;color:#241910;touch-action:pan-y;overflow:auto}.sheet[hidden]{display:none}.dialog-back{position:fixed;z-index:32;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;padding:calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));background:#1c140e73}.dialog-back[hidden]{display:none}.dialog{width:min(400px,100%);display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:16px;background:#f4ecdc;color:#241910;box-shadow:0 16px 40px #1c140e47}.dialog .sheet-bar h2{font-size:26px}.dialog #place-form{max-width:none}.sheet-bar{display:flex;align-items:center;justify-content:space-between;gap:12px}.sheet-bar h2{margin:0;font-family:"Liberation Serif",Georgia,serif;font-size:28px}.sheet-bar button,.map-row{min-height:44px;border-radius:999px;border:0;background:#9c4a32;color:#fffaf3;font-weight:700;padding:0 16px}.sheet-note{margin:0;font-size:14px}#city-map{width:100%;height:min(46vh,420px);border-radius:12px;background:#e7d3a4;touch-action:none;flex:0 0 auto}#map-list{display:flex;flex-direction:column;gap:8px}.map-row{width:100%;border-radius:12px;text-align:left;background:#fffaf3;color:#241910;border:1px solid rgba(36,25,16,.12);display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;min-height:0}.map-row strong,.map-row small{display:block}.map-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.map-head{margin:8px 0 0;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#5c4636}.map-actions button,.map-actions .sv-link{min-height:44px;border-radius:999px;border:0;background:#9c4a32;color:#fffaf3;font-weight:700;padding:8px 14px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.map-actions .map-remove{background:#5c4636}.map-row small{color:#5c4636;font-weight:600}#place-form{display:flex;flex-direction:column;gap:12px;max-width:420px}#place-name{min-height:48px;border-radius:12px;border:1px solid rgba(36,25,16,.25);background:#fffaf3;color:#241910;font:inherit;font-size:16px;padding:0 14px;user-select:text;-webkit-user-select:text}#place-form button{min-height:48px;border:0;border-radius:999px;background:#9c4a32;color:#fffaf3;font-weight:700}#palette-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}.palette-block{min-height:72px;border-radius:12px;border:1px solid rgba(36,25,16,.15);background:#fffaf3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:700;color:#241910}.palette-block img{width:28px;height:28px;image-rendering:pixelated}
