:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f7ea;
  color-scheme: dark;
  --cream:#f3f2e6; --mint:#a8f279; --muted:#a8b9ac; --deep:#122a23; --panel:#142b24;
  --line:rgba(226,247,226,.17); --shadow:0 16px 60px #04120da6;
  --side:max(24px,env(safe-area-inset-left)); --right:max(24px,env(safe-area-inset-right));
  --top:max(22px,env(safe-area-inset-top)); --bottom:max(22px,env(safe-area-inset-bottom));
}
* { box-sizing:border-box; }
html,body,#app { width:100%; height:100%; margin:0; overflow:hidden; }
body { background:#152a24; overscroll-behavior:none; }
[hidden] { display:none !important; }
button,select,input { font:inherit; }
button { cursor:pointer; color:inherit; border:0; touch-action:manipulation; }
button:disabled { cursor:default; opacity:.48; }
button:focus-visible,select:focus-visible,input:focus-visible { outline:2px solid var(--mint); outline-offset:3px; }
button:hover:not(:disabled) { filter:brightness(1.10); }
button:active:not(:disabled) { filter:brightness(.94); }
button svg, .icon, .brand svg, .climate svg, .meters svg { width:20px; height:20px; flex:none; }
svg { stroke:currentColor; fill:none; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.sprite { position:absolute; width:0; height:0; overflow:hidden; }
small { font-size:.8em; }
#app { position:relative; isolation:isolate; }
#sky,#world,#weather-layer,#lights-layer { position:absolute; inset:0; width:100%; height:100%; }
#sky { background:radial-gradient(ellipse at 72% 18%,#f6edc5 0%,transparent 29%),linear-gradient(#4eaac0,#cee7d7); }
#weather-layer,#lights-layer { pointer-events:none; }
#weather-layer.rain { background:repeating-linear-gradient(117deg,transparent 0 23px,#d6efee43 24px,#c7e4ee1a 26px,transparent 27px 53px); background-size:129px 194px; opacity:.45; animation:rain .44s linear infinite; }
#lights-layer.lamps { background:radial-gradient(ellipse at 50% 62%,#ffedbd26 0%,transparent 39%); }
@keyframes rain { to { background-position:-129px 194px; } }

.main-menu { position:absolute; inset:0; z-index:5; display:flex; flex-direction:column; justify-content:space-between; padding:var(--top) clamp(25px,5.8vw,92px) var(--bottom); pointer-events:none; }
.main-menu button { pointer-events:auto; }
.menu-wash { position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#0b201bee,#122b23d9 22%,#122d2394 43%,#152d231e 73%,#10282015),linear-gradient(0deg,#081b18d4,transparent 30%,transparent 75%,#1029216f); }
.menu-header,.menu-footer { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.brand,.hud-brand { display:flex; gap:12px; align-items:center; font-size:15px; font-weight:850; letter-spacing:.068em; }
.brand b { color:var(--mint); }
.brand small,.hud-brand small { display:block; margin-top:3px; font-size:9px; letter-spacing:.19em; color:#aabdac; font-weight:700; }
.menu-edition { display:flex; align-items:center; gap:9px; background:#102a24b5; padding:9px 13px; border:1px solid var(--line); border-radius:40px; color:#dce7d7; font-size:10px; font-weight:800; letter-spacing:.14em; white-space:nowrap; }
.menu-divider { width:1px; height:11px; background:var(--line); margin:0 2px; }
.status-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--mint); box-shadow:0 0 10px #a8f27966; }
.hero { margin-top:auto; margin-bottom:auto; padding:20px 0; }
.kicker,.eyebrow { display:flex; align-items:center; gap:10px; margin:0 0 12px; color:var(--mint); font-size:11px; font-weight:850; letter-spacing:.20em; }
.kicker span { display:block; width:28px; height:2px; background:var(--mint); border-radius:2px; }
.hero h1 { font-size:clamp(62px,9.1vw,142px); line-height:.87; letter-spacing:-.082em; margin:0 0 24px -.05em; font-weight:950; color:var(--cream); text-shadow:0 3px 28px #0b221b54; }
.hero h1 span { display:block; }
.hero h1 em { font-style:normal; color:var(--mint); }
.hero-summary { color:#e0e8d7; font-size:clamp(14px,1.5vw,21px); line-height:1.55; max-width:450px; margin:0 0 28px; text-wrap:pretty; }
.hero-actions { display:flex; gap:10px; flex-wrap:wrap; }
.primary,.ghost,.danger { min-height:44px; border-radius:11px; padding:0 15px; display:inline-flex; align-items:center; justify-content:center; gap:9px; font-size:13px; font-weight:850; line-height:1.25; }
.primary { color:#132a20; background:var(--mint); box-shadow:0 6px 18px #10271a36; }
.ghost { color:#e8efe1; background:#1c3a30; border:1px solid var(--line); }
.danger { color:#ffd2c0; background:#562e26; border:1px solid #a65b488c; }
.hero-actions .primary,.hero-actions .ghost,.hero-actions .settings-main { min-height:51px; }
.hero-actions .primary { min-width:164px; justify-content:space-between; padding:0 17px; }
.hero-actions .ghost,.settings-main { background:#17342cbd; }
.menu-footer { padding-top:15px; border-top:1px solid #e5f3d635; }
.service-strip { display:flex; align-items:center; gap:clamp(10px,2.2vw,33px); }
.service-strip span { display:flex; align-items:center; gap:5px; font-weight:720; font-size:11px; letter-spacing:.03em; color:#dfebdc; white-space:nowrap; }
.service-strip svg,.city-stamp svg { width:18px; height:18px; color:#a8e49f; }
.city-stamp { display:flex; align-items:center; gap:8px; white-space:nowrap; }
.city-stamp strong,.city-stamp small { display:block; }
.city-stamp strong { font-size:10px; letter-spacing:.10em; }
.city-stamp small { color:#b9cab7; font-size:10px; margin-top:3px; }

.hud { position:absolute; inset:0; pointer-events:none; z-index:3; text-shadow:0 1px 3px #0c251f44; }
.hud button { pointer-events:auto; }
.hud-head { position:absolute; left:var(--side); top:var(--top); display:flex; align-items:center; gap:9px; }
.hud-brand,.climate,.nav-card,.map-card,.tutorial-card,.instrument,.drive-action,.icon-button,.offer-toast { background:#112820e8; border:1px solid var(--line); box-shadow:0 4px 18px #112a2450; border-radius:12px; }
.hud-brand { padding:7px 12px 7px 7px; gap:8px; font-size:13px; }
.hud-brand small { font-size:10px; letter-spacing:.01em; font-weight:620; }
.climate { min-height:52px; padding:7px 11px; display:grid; grid-template-columns:19px auto; gap:0 5px; align-items:center; }
.climate #weather-icon { grid-row:span 2; color:#f1d992; line-height:0; }
.climate b { font-size:12px; }
.climate #weather-label { font-size:9px; color:#bfd1ba; white-space:nowrap; }
.nav-card { position:absolute; display:flex; align-items:center; gap:10px; padding:8px 12px; top:var(--top); left:50%; transform:translateX(-50%); max-width:calc(100% - 460px); min-width:min(305px,100%); min-height:54px; }
.nav-card div { min-width:0; flex:1; }
.nav-card small,.nav-card strong,.nav-card div>span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.nav-card small { font-size:9px; color:var(--mint); font-weight:900; letter-spacing:.09em; }
.nav-card strong { font-size:13px; }
.nav-card div>span { font-size:10px; color:#b7c9ba; }
.nav-card>b { font-size:12px; color:#e4efcf; white-space:nowrap; }
.nav-icon { width:34px;height:34px;display:grid;place-items:center;border-radius:9px;color:var(--mint);background:#2e4d3b;flex:none; }
.nav-icon svg { width:20px;height:20px; }
.map-wrap { position:absolute; right:var(--right); top:var(--top); display:flex; gap:7px; align-items:flex-start; }
.map-card { position:relative; padding:4px; display:block; width:153px; height:130px; overflow:hidden; color:#e3ebdb; }
.map-card canvas { display:block; width:100%; height:100%; border-radius:7px; }
.map-card .minimap-icon { position:absolute; right:7px; bottom:7px; width:18px; height:18px; padding:3px; border-radius:4px; background:#10241fe6; pointer-events:none; }
.icon-button { width:42px; min-height:42px; display:inline-grid; place-items:center; position:relative; flex:none; }
.tutorial-card { position:absolute; left:var(--side); top:calc(var(--top) + 65px); max-width:min(238px,55vw); text-align:left; display:grid; gap:5px; padding:11px 12px; overflow:hidden; }
.tutorial-top { display:flex; justify-content:space-between; gap:8px; font-size:9px; font-weight:850; letter-spacing:.08em; color:var(--mint); }
.tutorial-card>strong { font-size:13px; }
#tutorial-description { font-size:11px; color:#ccdbcb; line-height:1.35; }
#tutorial-progress { display:block; background:linear-gradient(90deg,var(--mint) var(--step,12%),#365047 var(--step,12%)); height:2px; margin-top:4px; border-radius:2px; }
.offer-toast { position:absolute; top:calc(var(--top) + 140px); right:var(--right); display:flex; align-items:center; gap:9px; padding:10px; color:var(--mint); text-align:left; }
.offer-toast span { display:grid; gap:1px; }
.offer-toast strong { font-size:12px; }
.offer-toast small { color:#d7e2d3; font-size:10px; }
.offer-toast svg:last-child { width:14px; }
.bottom { position:absolute; inset:auto var(--right) var(--bottom) var(--side); display:grid; grid-template-columns:minmax(130px,1fr) 2.25fr minmax(130px,1fr); align-items:end; gap:9px; }
.instrument { width:max-content; padding:8px 12px 9px; }
.speed-row { display:flex; align-items:center; gap:7px; }
.speed-row strong { font-size:42px; font-weight:900; line-height:1; letter-spacing:-.095em; color:var(--cream); min-width:47px; }
.speed-row>span { display:grid; gap:2px; }
.speed-row b { font-size:9px; font-weight:900; color:var(--mint); letter-spacing:.075em; }
.speed-row small { font-size:8px; color:#bbc9b7; }
.meters { display:flex; gap:8px; border-top:1px solid var(--line); padding-top:5px; margin-top:5px; }
.meters>span { display:flex; align-items:center; gap:3px; color:#d6e4d2; font-size:10px; }
.meters svg { width:12px; height:12px; color:#b9d8ae; }
.context { display:grid; justify-items:center; text-align:center; }
.context p { padding:4px 9px; background:#0c211cd6; border-radius:5px; color:#e0e8d8; font-size:11px; margin:0 0 5px; }
.context p:empty { display:none; }
.context-actions,.shortcuts { display:flex; justify-content:center; flex-wrap:wrap; gap:6px; }
.shortcuts { justify-content:flex-end; flex-wrap:nowrap; }
.drive-action { min-height:40px; padding:6px 11px; font-size:12px; font-weight:830; display:flex; align-items:center; gap:6px; color:#173126; background:#a9ee82; }
.drive-action.secondary { background:#17342eeb; color:#ecf2e2; }
kbd { display:inline-grid; place-items:center; min-width:20px; height:19px; padding:0 3px; background:#10241e2b; border:1px solid currentColor; border-radius:4px; font:750 10px ui-monospace,monospace; }
.shortcuts kbd { position:absolute; bottom:-5px; right:-4px; height:15px; min-width:14px; background:#1b3b31; font-size:8px; color:#cce1cd; }
.phone-key { background:#a8f279; color:#1b3627; }
.phone-key i { position:absolute; width:8px; height:8px; top:4px; right:4px; border-radius:50%; background:#ffab70; box-shadow:0 0 0 1px #482d20; }
.touch { display:none; }
body.touch-mode { --touch-size:clamp(88px,24vw,116px); --control-rail:calc(var(--touch-size) + 13px); }
body.touch-mode .touch { display:flex; justify-content:space-between; align-items:flex-end; position:absolute; inset:auto var(--right) calc(var(--bottom) + 3px) var(--side); }
body.touch-mode .bottom { bottom:calc(var(--bottom) + var(--control-rail) + var(--layout-clearance,0px)); }
body.touch-mode kbd { display:none; }
body.touch-mode .shortcuts .icon-button { width:44px; min-height:44px; }
body.touch-mode .context .drive-action { min-height:44px; }
body.touch-mode .map-wrap .hud-menu { width:44px; min-height:44px; }
.touch-direction { display:grid; align-items:end; }
.thumb-stick { --dx:0px; --dy:0px; width:var(--touch-size); height:var(--touch-size); position:relative; border-radius:50%; display:grid; place-items:center;
  color:#d9f2d8; background:radial-gradient(circle at center,#2d5147ba 0 33%,#102620d6 34% 64%,#416858d9 65% 67%,#112c24ed 68%);
  border:1px solid #9ecab28a; box-shadow:0 5px 20px #07151087,inset 0 0 0 3px #152c21; touch-action:none; pointer-events:auto; user-select:none; }
.stick-knob { position:absolute; left:50%; top:50%; width:49%; height:49%; display:grid; place-items:center; border-radius:50%; border:1px solid #b3dab396; background:linear-gradient(160deg,#4a7660,#1d3c31);
  box-shadow:0 4px 10px #071d18a1; transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))); pointer-events:none; }
.stick-knob svg { width:47%; height:47%; }
.thumb-stick.is-held .stick-knob { color:#173628; background:#a8f279; }
.stick-label { position:absolute; bottom:7%; font-size:8px; font-weight:900; letter-spacing:.08em; color:#e7f6df; pointer-events:none; }
.stick-tick { position:absolute; width:0; height:0; border:4px solid transparent; opacity:.63; pointer-events:none; }
.stick-tick.top { top:8%; border-top:0; border-bottom-color:#cce7ce; }
.stick-tick.bottom { bottom:18%; border-bottom:0; border-top-color:#cce7ce; }
.stick-tick.left { left:8%; border-left:0; border-right-color:#cce7ce; }
.stick-tick.right { right:8%; border-right:0; border-left-color:#cce7ce; }
.wheel-mode .stick-tick:is(.top,.bottom) { display:none; }
.touch button { min-width:51px; min-height:52px; border:1px solid #b8d6bd91; border-radius:17px; display:grid; place-content:center; justify-items:center;
  color:#f0f7e8; background:#142e27eb; box-shadow:0 5px 17px #0d211e8c; touch-action:none; user-select:none; }
.touch button.is-held { background:#a8f279; color:#122e21; }
.touch button svg { width:22px; height:22px; }
.touch button span { font-size:9px; font-weight:900; margin-top:3px; letter-spacing:.07em; }
.touch-steer,.touch-pedals { display:flex; gap:8px; align-items:flex-end; }
.touch-steer button:first-child svg { transform:rotate(-90deg); }
.touch-steer button:last-child svg { transform:rotate(90deg); }
.touch-pedals .brake-pedal { width:clamp(53px,14vw,64px); height:clamp(58px,16vw,70px); color:#ffd5b2; border-color:#f6bf997b; }
.touch-pedals .gas-pedal { width:clamp(64px,17vw,76px); height:clamp(72px,21vw,90px); background:linear-gradient(#4c7e55,#245039); color:#e6ffd8; border-color:#a8f2a194; }
.touch-pedals .is-held { background:#a8f279; color:#122e21; }
#phone-backdrop { position:absolute; inset:0; z-index:7; background:linear-gradient(90deg,#03171360,#0416109c); }

.phone { position:absolute; z-index:8; right:var(--right); bottom:var(--bottom); top:var(--top); width:min(389px,calc(100% - 34px)); max-height:760px; margin-top:auto; display:flex; flex-direction:column; border:1px solid #8aa996; border-radius:28px; background:#101f1a; box-shadow:0 0 0 4px #101e1b,var(--shadow); overflow:hidden; }
.phone-top { height:29px; flex:none; display:flex; align-items:center; justify-content:space-between; position:relative; padding:0 15px; font-size:11px; color:#dbe8d7; font-weight:850; }
.phone-top svg { width:14px; height:14px; vertical-align:middle; }
.phone-camera { position:absolute; left:50%; transform:translateX(-50%); width:61px; height:11px; border-radius:12px; background:#040b09; box-shadow:inset 0 0 0 1px #253931; }
.phone-head { padding:7px 10px 9px; display:flex; align-items:center; gap:9px; border-bottom:1px solid var(--line); }
.phone-head div { flex:1; display:grid; min-width:0; }
.phone-head strong { font-size:17px; letter-spacing:-.025em; }
.phone-head .phone-location { display:flex; align-items:center; gap:5px; color:#bccfc0; font-size:11px; }
.phone-location i { width:5px; height:5px; border-radius:50%; background:var(--mint); }
.phone-head .icon-button { width:44px; min-height:44px; border-radius:11px; box-shadow:none; background:#203a30; }
.phone-head .icon-button svg { width:18px; height:18px; }
.phone-head .phone-close { width:auto; display:flex; padding:0 9px; gap:4px; font-size:11px; font-weight:800; }
.phone-content { overflow:auto; overscroll-behavior:contain; flex:1; padding:12px; scrollbar-width:thin; }
.phone-nav { display:grid; grid-template-columns:repeat(4,1fr); gap:4px; padding:5px 9px 0; border-top:1px solid var(--line); background:#162a22; }
.phone-nav button { display:grid; justify-items:center; align-content:center; min-height:49px; gap:3px; background:none; color:#c2d4c5; font-size:11px; border-radius:10px; }
.phone-nav button.active { background:#2a4637; color:var(--mint); font-weight:850; }
.phone-nav button svg { width:19px; height:19px; }
.home-indicator { background:#84978b; width:90px; height:4px; margin:7px auto; border-radius:4px; flex:none; }
.card { background:#1c362d; border:1px solid #dce9d01e; border-radius:13px; padding:12px; margin-bottom:9px; }
.card:last-child { margin-bottom:0; }
.card h3,.dialog-content h3 { margin:0 0 6px; font-size:15px; }
.card p,.dialog-content p { color:#c3d0c1; font-size:12px; margin:0 0 8px; line-height:1.47; }
.card p:last-child,.dialog-content p:last-child { margin-bottom:0; }
.card .eyebrow { margin-bottom:6px; font-size:9px; }
.shift-status { display:flex; justify-content:space-between; gap:9px; align-items:center; background:linear-gradient(115deg,#203d31,#1a3029); }
.shift-status.on-shift { background:linear-gradient(115deg,#28513b,#1a3029); }
.shift-status h3 { margin-bottom:2px; }
.shift-status p { font-size:11px; }
.toggle { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:7px 9px; border-radius:10px; background:#354e44; min-height:44px; min-width:108px; color:#edf2e8; font-size:11px; font-weight:850; }
.toggle.active { background:#a8f279; color:#172c20; }
.toggle .status-dot { background:#b7c6bd; box-shadow:none; }
.toggle.active .status-dot { background:#2f6b36; }
.service-picker { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px; margin:8px 0; }
.service-picker button { min-height:57px; display:grid; gap:4px; place-content:center; justify-items:center; padding:4px 1px; font-size:10px; font-weight:780; background:#183128; border-radius:9px; color:#dbe7d8; border:1px solid var(--line); white-space:nowrap; }
.service-picker button.active { border-color:var(--service); color:var(--service); background:#2a4838; }
.service-picker svg { width:19px; height:19px; color:var(--service); }
.offer { border-color:#91d48670; background:linear-gradient(150deg,#244538,#1b342a); }
.offer-caption { display:flex; justify-content:space-between; min-height:23px; }
.offer-caption span { padding:4px 6px; border-radius:6px; background:#385b44; white-space:nowrap; }
.offer-head { display:flex; align-items:center; gap:8px; margin-bottom:7px; }
.offer-head div { flex:1; min-width:0; }
.offer-head strong,.offer-head small { display:block; }
.offer-head strong { font-size:14px; }
.offer-head small { color:#c2d4c2; font-size:11px; }
.offer-head>b { color:var(--mint); font-size:13px; white-space:nowrap; }
.service-icon { width:32px;height:32px;display:grid;place-items:center;background:#2b493a;border-radius:8px;color:var(--service); flex:none; }
.service-icon svg { width:18px;height:18px; }
.timeline { display:grid; gap:5px; margin:8px 0; padding:0; list-style:none; }
.timeline li { display:grid; grid-template-columns:12px 1fr; gap:6px; align-items:start; color:#e6eedf; font-size:12px; line-height:1.35; }
.timeline i { height:8px; width:8px; border:2px solid var(--mint); border-radius:50%; margin-top:4px; }
.timeline li:last-child i { border-color:#ffba79; }
.timeline small { display:block; color:#b4c2b2; font-size:10px; }
.action-row { display:flex; flex-wrap:wrap; gap:6px; }
.action-row button { flex:1 1 auto; }
.phone-content .primary,.phone-content .ghost,.phone-content .danger { min-height:44px; font-size:12px; padding:0 10px; border-radius:9px; }
.phone-content .icon { width:17px; height:17px; }
.offer-metrics { display:grid; grid-template-columns:1fr 1fr 1.42fr; gap:5px; margin:9px 0; }
.offer-metrics div { padding:6px; background:#142f26; border-radius:7px; }
.offer-metrics :is(span,b) { display:block; white-space:nowrap; font-size:10px; }
.offer-metrics span { color:#bdd1c1; margin-bottom:3px; }
.offer-metrics b { font-size:12px; }
.offer-actions .primary { flex:2; }
.offer-detail { margin-top:7px; font-size:11px; color:#c7d9cb; }
.offer-detail summary { padding:6px 0; cursor:pointer; min-height:30px; }
.label-line { display:flex; align-items:baseline; justify-content:space-between; gap:7px; margin:6px 0; font-size:11px; color:#c0cebd; }
.label-line strong { font-size:12px; color:#e5eedf; text-align:right; }
.wallet-grid { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-bottom:9px; }
.wallet-grid .card { margin:0; }
.wallet-grid span,.wallet-grid strong { display:block; }
.wallet-grid span { color:#b9cbbb; font-size:10px; margin-bottom:3px; }
.wallet-grid strong { color:#e3f6d8; font-size:14px; }
.list-row { display:flex; align-items:center; gap:7px; width:100%; background:none; border-bottom:1px solid var(--line); padding:8px 1px; text-align:left; color:#e8efe1; font-size:11px; }
.list-row:last-child { border-bottom:0; }
.list-row>span:nth-child(2) { flex:1; min-width:0; }
.list-row small { color:#b1c5b3; display:block; margin-top:2px; line-height:1.4; }
.list-row strong { font-size:11px; }
.list-row .positive { color:var(--mint); white-space:nowrap; }
.list-row .negative { color:#ffb291; white-space:nowrap; }
.phone-map,.full-map { display:block; width:100%; height:auto; aspect-ratio:1.12; border-radius:9px; border:1px solid var(--line); background:#213d34; }
.place-list { display:grid; grid-template-columns:1fr 1fr; gap:5px; }
.place-list .ghost { text-align:left; justify-content:flex-start; padding:5px 7px; }

.dialog-layer { position:absolute; z-index:12; inset:0; display:grid; place-items:center; padding:var(--top) var(--right) var(--bottom) var(--side); background:#0716108c; }
.dialog { width:min(100%,490px); max-height:100%; background:#142a23; border:1px solid #9cb29455; box-shadow:var(--shadow); border-radius:17px; overflow:hidden; display:flex; flex-direction:column; }
.dialog.wide { width:min(100%,640px); }
.dialog-head { display:flex; align-items:center; justify-content:space-between; gap:13px; padding:15px 16px 12px; border-bottom:1px solid var(--line); }
.dialog-head .eyebrow { margin-bottom:4px; font-size:9px; }
.dialog-head h2 { margin:0; font-size:22px; line-height:1.1; letter-spacing:-.035em; }
.dialog-head .icon-button { min-height:33px; width:33px; box-shadow:none; }
.dialog-head .icon-button svg { width:17px;height:17px; }
.dialog-content { padding:13px 16px 16px; overflow:auto; overscroll-behavior:contain; }
.dialog-content .action-row { margin-top:8px; }
.dialog-content .primary,.dialog-content .ghost,.dialog-content .danger { min-height:40px; }
.dialog-layer.wardrobe-layer { background:linear-gradient(90deg,transparent 20%,#0b1c16b5 77%); place-items:center end; }
.dialog-layer.wardrobe-layer .dialog { width:min(100%,400px); }
.wardrobe-list { display:grid; gap:5px; }
.outfit { width:100%; display:flex; align-items:center; gap:9px; background:#1d392f; border:1px solid var(--line); border-radius:8px; padding:8px; text-align:left; }
.outfit.active { border-color:var(--mint); }
.outfit .swatch { width:25px; height:27px; border-radius:5px; background:linear-gradient(155deg,var(--trim) 30%,var(--coat) 31% 63%,#c3d2c6 64% 70%,var(--coat) 71%); }
.outfit strong,.outfit small { display:block; }
.outfit strong { font-size:12px; }
.outfit small { color:#bfd0bf; font-size:10px; }
.settings-row { display:flex; justify-content:space-between; align-items:center; gap:9px; border-bottom:1px solid var(--line); padding:9px 0; }
.settings-row:first-child { padding-top:0; }
.settings-row:last-child { border:0; }
.settings-row label,.settings-row strong { font-size:12px; color:#e3eddc; font-weight:800; }
.settings-row small { display:block; font-weight:450; margin-top:3px; color:var(--muted); font-size:10px; }
select,input[type="text"] { background:#0e231b; border:1px solid #708e79; color:#f0f4e5; border-radius:7px; min-height:36px; padding:5px 8px; font-size:13px; }
input[type="range"],input[type="checkbox"] { accent-color:var(--mint); }
input[type="checkbox"] { width:20px;height:20px; flex:none; }
input[type="range"] { width:100%; }
.form-row { display:flex; gap:7px; }
.form-row input { flex:1; min-width:0; }
.key-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin:9px 0; }
.key-grid span { display:flex; align-items:center; justify-content:space-between; gap:5px; padding:6px 7px; font-size:11px; background:#1c362d; border-radius:6px; }
.receipt-total { border-radius:11px; background:#254433; padding:11px; margin-bottom:8px; display:flex; gap:7px; justify-content:space-between; align-items:center; }
.receipt-total span { display:block; font-size:11px; color:#c3d7c3; }
.receipt-total strong { display:block; font-size:24px; color:var(--mint); letter-spacing:-.04em; }
.receipt-total .icon { width:32px; height:32px; color:var(--mint); }
.toast { position:absolute; z-index:25; left:50%; top:calc(var(--top) + 65px); transform:translateX(-50%); max-width:calc(100% - 36px); padding:9px 13px; border:1px solid #b7e3a477; border-radius:8px; background:#163428f2; color:#eaf5e4; text-align:center; box-shadow:var(--shadow); font-size:12px; font-weight:750; pointer-events:none; }
.toast.error { border-color:#d49178; color:#ffd8ca; background:#3c2821f5; }
body.left-mode .touch { flex-direction:row-reverse; }
body.left-mode .touch-pedals { flex-direction:row-reverse; }
@media (max-width:780px) {
  :root { --side:max(12px,env(safe-area-inset-left));--right:max(12px,env(safe-area-inset-right));--top:max(12px,env(safe-area-inset-top));--bottom:max(12px,env(safe-area-inset-bottom)); }
  .menu-edition { padding:7px 9px; font-size:9px; }
  .nav-card { top:calc(var(--top) + 58px); min-width:0; max-width:calc(100% - 130px); left:var(--side); transform:none; }
  .map-card { width:93px; height:85px; }
  .map-wrap { gap:4px; }
  .map-wrap .icon-button { width:34px; min-height:34px; }
  .tutorial-card { top:calc(var(--top) + 121px); }
  .offer-toast { top:calc(var(--top) + 97px); }
  .bottom { grid-template-columns:minmax(91px,1fr) 2.1fr minmax(79px,1fr); }
  .instrument { padding:6px 7px; }
  .speed-row strong { font-size:34px; min-width:38px; }
  .shortcuts .icon-button { width:34px; min-height:34px; }
  .shortcuts { gap:4px; }
  .shortcuts .icon-button svg { width:17px;height:17px; }
}
@media (max-width:530px) {
  .main-menu { padding-left:19px; padding-right:19px; }
  .brand { font-size:11px; gap:7px; }
  .brand img { width:34px; height:34px; }
  .brand small { font-size:8px; }
  .menu-wash { background:linear-gradient(90deg,#102a24cc,#122c2488 63%,#102a2429),linear-gradient(0deg,#0b221be8 1%,#0b221b3d 62%,#0e28228f); }
  .hero h1 { font-size:clamp(52px,13vw,77px); margin-bottom:16px; }
  .hero-summary { max-width:310px; margin-bottom:18px; }
  .hero-actions .primary,.hero-actions .ghost,.hero-actions .settings-main { min-height:43px; }
  .hero-actions .primary { min-width:130px; }
  .kicker { font-size:9px; letter-spacing:.115em; }
  .kicker span { width:14px; }
  .menu-footer { flex-wrap:wrap; padding-top:10px; gap:9px; }
  .service-strip { gap:12px; }
  .service-strip svg { width:14px; height:14px; }
  .service-strip span,.city-stamp small { font-size:9px; }
  .city-stamp svg { width:14px;height:14px; }
  .city-stamp strong { font-size:8px; }
  .hud-head { gap:5px; }
  .hud-brand { font-size:10px; padding:5px; }
  .hud-brand img { width:27px; height:27px; }
  .hud-brand small { font-size:8px; }
  .climate { min-height:39px; padding:4px 6px; }
  .climate svg { width:16px; height:16px; }
  .climate b { font-size:10px; }
  .climate #weather-label { font-size:8px; }
  .nav-card { top:calc(var(--top) + 44px); padding:6px; gap:5px; min-height:42px; max-width:calc(100% - 148px); }
  .nav-icon { width:23px; height:25px; }
  .nav-icon svg { width:16px;height:16px; }
  .nav-card strong { font-size:10px; }
  .nav-card small,.nav-card div>span,.nav-card>b { font-size:8px; }
  .tutorial-card { top:calc(var(--top) + 93px); padding:7px 8px; max-width:195px; }
  .tutorial-card>strong { font-size:11px; }
  #tutorial-description { font-size:10px; }
  .offer-toast { top:calc(var(--top) + 90px); padding:7px; }
  .offer-toast>svg:first-child { width:15px;height:15px; }
  .offer-toast>svg:last-child { display:none; }
  .offer-toast strong,.offer-toast small { font-size:9px; }
  .bottom { grid-template-columns:minmax(72px,1fr) 2.2fr minmax(77px,1fr); gap:4px; }
  .shortcuts [data-action="horn"] { display:none; }
  .drive-action { min-height:34px; font-size:10px; padding:4px 6px; }
  .context p { display:none; }
  .phone { inset:auto 9px var(--bottom); height:min(85dvh,690px); width:auto; max-width:430px; margin:auto; }
  body.touch-mode .bottom { grid-template-columns:72px minmax(0,1fr) auto; }
  body.touch-mode .map-card { width:83px; height:74px; }
  .dialog-layer.wardrobe-layer { align-items:end; justify-items:center; padding-top:max(18vh,var(--top)); }
  .dialog-layer.wardrobe-layer .dialog { max-height:48dvh; }
}
@media (max-height:470px) and (min-width:531px) {
  .main-menu { padding-top:9px;padding-bottom:9px; }
  .hero { padding:8px 0; }
  .hero h1 { font-size:clamp(54px,11.7vh,84px); margin-bottom:9px; }
  .hero-summary { margin-bottom:9px; font-size:13px; }
  .kicker { margin-bottom:6px; }
  .menu-footer { padding-top:7px; }
  .hero-actions .primary,.hero-actions .ghost,.hero-actions .settings-main { min-height:37px; }
  .phone { width:305px; }
}
@media (prefers-reduced-motion:reduce) { #weather-layer { animation:none!important; } }
body.reduced #weather-layer { animation:none; }

@media (max-height:500px) {
  body.touch-mode { --touch-size:82px; --control-rail:90px; }
  body.touch-mode .map-card { width:106px; height:85px; }
  body.touch-mode .context { transform:translateY(var(--control-rail)); }
  body.touch-mode .tutorial-card { max-width:165px; }
  body.touch-mode .tutorial-card #tutorial-description { display:none; }
  body.touch-mode .touch-pedals .gas-pedal { height:66px; }
  body.touch-mode .touch-pedals .brake-pedal { height:54px; }
  .phone { width:min(380px,calc(100% - 30px)); top:var(--top); }
}

#app { -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; -webkit-tap-highlight-color:transparent; }
#app :is(input,textarea,[contenteditable="true"]) { -webkit-touch-callout:default; -webkit-user-select:text; user-select:text; }
#world { touch-action:none; }
.avatar-picker { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-bottom:9px; }
.avatar-picker .ghost { padding:0 6px; gap:4px; font-size:11px; }
.avatar-picker .ghost.active { border-color:var(--mint); color:var(--mint); background:#284d3b; }
.crawl-key { display:none; }
body.touch-mode .crawl-key { display:inline-grid; font-size:8px; font-weight:950; padding:2px 4px; }
body.touch-mode .crawl-key[aria-pressed="true"] { background:#a8f279; color:#132a20; }
.touch [data-layout] { transform:translate(var(--layout-x,0px),var(--layout-y,0px)); }
body.touch-mode[data-control-size="small"] { --touch-size:82px; --control-rail:95px; }
body.touch-mode[data-control-size="small"] .touch-pedals button { min-height:46px; height:58px; width:53px; }
body.touch-mode[data-control-size="large"] { --touch-size:clamp(99px,27vw,126px); --control-rail:calc(var(--touch-size) + 13px); }
body.touch-mode[data-control-size="large"] .touch-pedals button { width:clamp(62px,18vw,80px); height:clamp(69px,23vw,95px); }
.layout-tools { position:absolute; z-index:4; top:calc(var(--top) + 59px); left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:6px; width:max-content; max-width:calc(100% - 22px); padding:8px; background:#193a2eed; border:1px solid #8fc28f7d; border-radius:11px; }
.layout-tools div { display:grid; gap:2px; font-size:12px; }
.layout-tools small { color:#c7d7c7; }
.layout-tools button { min-height:42px; padding:0 8px; }
body.layout-mode .touch [data-layout] { pointer-events:auto; touch-action:none; outline:2px dashed #a8f279; outline-offset:3px; border-radius:18px; }
body.layout-mode .hud > :not(.touch,.layout-tools) { visibility:hidden; }
@media (max-width:530px) {
  .hero-actions { max-width:360px; }
  .hero-actions .ghost { padding:0 9px; }
  .phone .card .primary { min-height:44px; }
}
.dialog-layer.wardrobe-layer { pointer-events:none; }
.dialog-layer.wardrobe-layer .dialog { pointer-events:auto; }
.delivery-list { display:grid; gap:4px; margin:7px 0; }
.delivery-list div { display:flex; align-items:center; gap:7px; padding:5px; border-radius:7px; background:#142f26; }
.delivery-list b { color:var(--mint); font-size:11px; }
.delivery-list span { flex:1; min-width:0; }
.delivery-list span > * { display:block; }
.delivery-list strong { font-size:11px; }
.delivery-list small { font-size:10px; color:#c0d5c2; }
.demand-card .list-row .ghost { min-width:58px; }

.driver-form { margin:9px 0 12px; }
.driver-form label { display:block; font-size:12px; font-weight:800; color:#e5eee0; margin:0 0 6px; }
.driver-form input { min-height:44px; font-size:16px; }
.driver-form .form-row { align-items:stretch; }
.driver-form .primary { white-space:nowrap; }
.install-preview { display:flex; gap:12px; align-items:center; padding:10px; border:1px solid var(--line); border-radius:12px; margin-bottom:14px; background:#17332c; }
.install-preview img { border-radius:13px; }
.install-preview strong,.install-preview small { display:block; }
.install-preview small { margin-top:3px; color:#c0d5c2; }
.install-steps { font-size:13px; color:#d1e1d1; line-height:1.6; padding-left:22px; }
@media(max-width:530px) {
  .dialog-layer.setup-layer .dialog { max-height:55dvh; }
  .hero-actions [data-action="install"] { order:3; }
}
.brand img,.hud-brand img,.phone-head img { border-radius:24%; }

.install-actions { align-items:center; margin-top:12px; }
.install-actions .ghost { text-decoration:none; }

#world,.touch,.touch * { -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; -webkit-tap-highlight-color:transparent; }
#thumb-stick { translate:var(--float-x,0px) var(--float-y,0px); }
#city-bulletin { color:#ffd292; font-weight:760; }
#lights-layer.led.lamps { background:radial-gradient(ellipse at 50% 66%,#f2ffdd26,transparent 53%); }
.game-photo { display:block; width:100%; max-height:62vh; object-fit:contain; border-radius:10px; }
body.touch-mode .shortcuts .horn-key { display:none; }
@media(max-width:560px) {
  #city-bulletin { position:absolute; top:calc(100% + 5px); left:0; border-radius:5px; padding:3px 6px; white-space:nowrap; background:#182d25; }
  .climate { position:relative; }
}

.vehicle-list .list-row { flex-wrap:wrap; }
.vehicle-price { font-variant-numeric:tabular-nums; color:#ffd68b; }
.vehicle-list .list-row button { min-height:37px; }
.dealer-layer .dialog-content { max-height:min(52vh,480px); }
@media(max-width:600px) {
  .vehicle-list .list-row > span { min-width:48%; }
  .dealer-layer .dialog-content { max-height:44vh; }
}

#windshield { display:none; pointer-events:none; position:absolute; inset:0 0 32%; overflow:hidden; }
body.wet-cabin #windshield { display:block; background-image:radial-gradient(ellipse at 22% 34%,#d2eff576 0 1px,transparent 2px),radial-gradient(ellipse at 69% 73%,#d2eff56a 0 2px,transparent 3px),radial-gradient(ellipse at 40% 58%,#d2eff560 0 1px,transparent 2px); background-size:67px 59px,137px 131px,89px 106px; }
body.wipers-on #windshield { opacity:.62; animation:wipe-glass 1.25s infinite; }
#windshield i { display:none; position:absolute; height:5px; width:min(34vw,300px); background:#354348; left:48%; bottom:4%; transform-origin:right center; }
body.wipers-on #windshield i { display:block; animation:blade 1.25s ease-in-out infinite; }
@keyframes wipe-glass { 45% { opacity:.20; } }
@keyframes blade { 45% { transform:rotate(59deg); } }
#car-controls .ghost { padding:4px 7px; min-height:30px; font-size:11px; }

.fps-hud {
  position:absolute; right:0; top:50px; white-space:nowrap; pointer-events:none;
  color:#bad4bd; background:#11241fdd; border:1px solid #bdd5c22e; border-radius:5px;
  padding:3px 5px; line-height:1; font:650 9px ui-monospace,monospace; font-variant-numeric:tabular-nums;
}
.fps-hud span { color:#e1ffcf; }
.release summary { cursor:pointer; display:flex; align-items:center; gap:10px; list-style:none; }
.release summary::after { content:'+'; color:#bde5b2; margin-left:auto; }
.release[open] summary::after { content:'−'; }
.release summary b { color:#bdff9d; font-size:11px; min-width:53px; }
.release ul { color:#ccdbcc; font-size:12px; line-height:1.5; margin:9px 0 0; padding-left:18px; }
@media(max-width:650px) { .fps-hud { top:47px; padding:3px 4px; } }

.business-tabs { display:flex; flex-wrap:wrap; gap:5px; margin:0 0 12px; }
.business-tabs :is(.ghost,.primary) { min-height:32px; padding:6px 9px; font-size:11px; }
.business-item { border-top:1px solid var(--line); padding:10px 0; }
.business-item:last-child { padding-bottom:0; }
.business-item small { color:#afcab7; }
.business-item summary { cursor:pointer; font-size:12px; }
.fleet-form { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.fleet-form label { display:grid; gap:3px; font-size:11px; color:#bdd2c0; min-width:0; }
.fleet-form select { width:100%; min-width:0; padding:6px; border:1px solid var(--line); border-radius:6px; background:#233a30; color:inherit; }
.fleet-form button { grid-column:1/-1; justify-self:start; }
.crew-code { font-variant-numeric:tabular-nums; letter-spacing:.19em; color:#d0f6a8; }
.crew-members { padding-left:17px; color:#c1d9c5; font-size:12px; }
.crew-status { color:#ffd1a7!important; }

.recall-card { border-color:#466c58; }
.recall-card h3 { margin-bottom:3px; }
.recall-card small { display:block; margin-top:6px; color:#bccfc0; }
.offer-map { margin:8px 0; }
.service-picker button:disabled { opacity:.46; }

.phone-nav { grid-template-columns:repeat(5,minmax(0,1fr)); }
.weather-now { background:linear-gradient(145deg,#315565,#203c36); }
.weather-title { display:flex; align-items:center; gap:12px; margin:8px 0; }
.weather-title .icon { width:42px; height:42px; color:#d2eee8; }
.weather-title h3 { font-size:23px; margin:0; }
.weather-title p { margin:2px 0 0; }
.touch-pedals .reverse-pedal { width:clamp(44px,12vw,55px); height:clamp(50px,14vw,62px); color:#d4e8ff; border-color:#8cb2d88c; }
.reverse-pedal svg { transform:rotate(180deg); }
@media (max-width:440px) {
  .touch-pedals { gap:5px; }
  body.touch-mode[data-control-size="large"] .touch-pedals .reverse-pedal { width:44px; height:57px; }
}
.wardrobe-open #hud { visibility:hidden; }

#clock,#phone-clock { font-variant-numeric:tabular-nums; }
.nav-card[data-tone="pickup"] :is(.nav-icon,small) { color:#9ed9ff; }
.nav-card[data-tone="pickup"] .nav-icon { background:#27495b; }
.nav-card[data-tone="return"] :is(.nav-icon,small) { color:#ffcb87; }
.nav-card[data-tone="return"] .nav-icon { background:#584833; }
.map-legend { display:flex; flex-wrap:wrap; gap:6px 14px; padding:7px 1px; color:#d8e7d9; font-size:10px; }
.map-legend span { display:flex; align-items:center; gap:5px; }
.map-legend span::before { content:""; width:9px; height:4px; border-radius:4px; background:#7ccafa; }
.map-legend [data-tone="trip"]::before { background:#9bef84; }
.map-legend [data-tone="return"]::before { background:#ffbd6a; }
.map-legend [data-tone="demand"]::before { background:#e8994d; height:8px; }
.dispatch-card,.trip-change { border-color:#527767; }
.dispatch-wait,.demand-level { color:#d7e5d9; font-variant-numeric:tabular-nums; }
.dispatch-wait { display:inline-block; margin-left:5px; color:#b4ddaf; }
.demand-level[data-level="3"] { color:#ffcb87; }
.demand-level[data-level="4"] { color:#ffae69; }
.trip-chat { display:grid; gap:8px; margin-bottom:12px; }
.trip-message { justify-self:start; max-width:91%; padding:8px 12px; border-radius:3px 11px 11px; background:#203d32; }
.trip-message.mine { justify-self:end; border-radius:11px 3px 11px 11px; background:#335144; }
.trip-message small { color:#b6cfc1; }
.trip-message p { margin:3px 0 0; }
.room-hud { position:absolute; top:calc(var(--top) + 61px); left:var(--side); display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px;
  max-width:calc(100% - var(--side) - var(--right)); padding:8px 10px; background:#152a23ed; border:1px solid var(--line); border-radius:12px; }
.room-hud strong,.room-hud small { display:block; }
.room-hud strong { color:#e6f2d9; font-size:13px; }
.room-hud small { color:#b7cdbd; font-size:10px; margin-top:3px; }
.room-buttons { display:flex; gap:6px; }
.room-buttons button { min-height:39px; font-size:11px; padding:5px 8px; }
.in-room :is(#weather-layer,#city-bulletin,.map-card,.instrument,.horn-key,.crawl-key) { display:none; }
.in-room .map-wrap .fps-hud { top:46px; right:0; }
.in-room .bottom { grid-template-columns:1fr auto 1fr; }
.in-room .context { grid-column:2; }
.in-room .shortcuts { grid-column:3; }
.lease-options { display:grid; gap:6px; margin:9px 0; }
.lease-option { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:54px; text-align:left; padding:8px 11px; background:#203d32;
  border:1px solid var(--line); border-radius:10px; }
.lease-option strong,.lease-option small { display:block; }
.lease-option small { color:#b7cdbd; margin-top:3px; }
.lease-option b { color:#ffe2ad; white-space:nowrap; }
.lease-price { text-align:right; }
.lease-price del { display:block; margin-top:3px; color:#b7cdbd; font-size:10px; white-space:nowrap; }
.route-comparison { font-size:12px; color:#c8dfcc; margin:8px 0; }
@media (max-width:530px) {
  .nav-card[data-tone="pickup"] strong,.nav-card[data-tone="trip"] strong { white-space:normal; line-height:1.2; }
  .nav-card .nav-icon { width:28px; }
  .nav-card .nav-icon svg { width:18px; height:18px; }
}
.lease-option[aria-pressed="true"] { border-color:#a8f279; background:#2c513f; }
.lease-confirm { border-color:#5a8769; }
.room-vitals { margin:9px 0; }
@media (max-width:530px) {
  .room-hud { top:calc(var(--top) + 45px); }
  body.touch-mode .in-room .bottom { grid-template-columns:1fr minmax(0,1.4fr) auto; }
  .room-buttons button { min-height:44px; }
}
@media (max-height:500px) {
  body.touch-mode .in-room .context { transform:none; }
}

/* Một Ngày Ở Mái Hiên */
.arrival-hud {
  position:absolute; top:calc(var(--top) + 63px); left:var(--side); z-index:2;
  width:min(332px,calc(100% - 132px)); padding:10px 12px; border-radius:12px;
  background:#152e27ef; border:1px solid #a8ce9470; color:#f0f8e9; box-shadow:0 5px 18px #10281c55;
}
.arrival-hud strong { font-size:13px; }
.arrival-hud p { font-size:11px; color:#d2e3cd; line-height:1.38; margin:5px 0; }
.arrival-hud div { display:flex; flex-wrap:wrap; gap:5px; }
.arrival-hud button { min-height:38px; padding:5px 8px; color:#e4f5d8; font-size:10px; font-weight:750; border:1px solid #9bc59579; border-radius:7px; background:#294939; }
.arrival-hud button:focus-visible { outline:2px solid #c4e8a4; }
.nav-card:not([hidden]) + .arrival-hud { top:calc(var(--top) + 139px); }
.in-room .arrival-hud { top:calc(var(--top) + 150px); }
.jump-key svg,.intro-skip svg { width:19px; height:19px; flex:none; }
.world-use {
  position:absolute; z-index:4; transform:translate(-50%,-105%); display:flex; align-items:center; gap:7px;
  min-height:42px; max-width:165px; padding:6px 10px; border-radius:9px; color:#e8ffdf; background:#102b22ed;
  border:1px solid #b5e29c; font-weight:780; font-size:12px; box-shadow:0 4px 17px #13271a80; touch-action:none;
}
.world-use::after { content:""; width:7px; height:7px; background:#102b22; border-right:1px solid #b5e29c; border-bottom:1px solid #b5e29c; transform:rotate(45deg); position:absolute; bottom:-5px; left:calc(50% - 4px); }
.jump-key {
  display:grid; place-content:center; justify-items:center; gap:4px; width:clamp(58px,16vw,74px); min-height:58px;
  border:1px solid #b7e3ad8f; border-radius:19px; padding:6px; background:#183f32e8; color:#e6ffdc;
  font-size:10px; font-weight:900; letter-spacing:.07em; touch-action:none; box-shadow:0 4px 18px #112a2450;
}
.jump-key:active { background:#a8f279; color:#18382c; }
.living-panel {
  pointer-events:auto; position:absolute; z-index:7; left:50%; transform:translateX(-50%);
  bottom:var(--bottom); width:min(490px,calc(100% - 22px)); max-height:49dvh; overflow-y:auto;
  padding:13px 15px; background:#172e27f5; border:1px solid #a3bfa372; border-radius:17px;
  box-shadow:0 8px 34px #112318a0; color:#eef6e8;
}
.living-head { display:flex; justify-content:space-between; gap:8px; align-items:start; }
.living-head small { color:#bfceac; font-weight:800; letter-spacing:.14em; font-size:9px; }
.living-head h2 { margin:3px 0 0; font-size:19px; }
.living-head .ghost { min-height:37px; flex-shrink:0; font-size:11px; }
.living-panel progress { width:100%; height:6px; accent-color:#a8ed7c; margin:7px 0 0; }
.living-panel p { margin:5px 0; font-size:13px; line-height:1.42; }
.living-panel .action-row { margin-top:7px; }
.living-status { color:#badab4; }
.living-status:empty,.gift-status:empty { display:none; }
.living-open .bottom,.living-open .map-wrap,.living-open .arrival-hud,.living-open .room-buttons { visibility:hidden; }
.gift-balance { margin-bottom:13px; }
.gift-suggestion code { color:#def9c6; font-size:15px; }
.gift-status { color:#c5eeb1; min-height:22px; margin:9px 0; }
.gift-status.gift-error { color:#ffb39c; }
#room-transition { position:absolute; inset:0; z-index:4; pointer-events:none; background:#15251f; opacity:0; animation:room-cross .42s ease-out both; }
#room-transition[data-effect="sleep"] { animation:room-sleep 1.25s ease-in-out both; }
@keyframes room-cross { 0% { opacity:.72; } 100% { opacity:0; } }
@keyframes room-sleep { 0% { opacity:0; } 76%,100% { opacity:.98; } }
.intro {
  position:absolute; inset:0; z-index:40; display:grid; place-items:center; overflow:hidden;
  background:radial-gradient(ellipse at 50% 56%,#24614a 0%,#122d25 42%,#0a1716 83%);
  isolation:isolate;
}
.intro-road { position:absolute; bottom:14%; left:25%; right:25%; height:3px; border-radius:3px; background:linear-gradient(90deg,transparent,#b6ef9a,transparent); opacity:.5; animation:intro-road 2.8s ease-out both; }
.intro-title { display:grid; justify-items:center; text-align:center; gap:8px; position:relative; color:#f0ffe2; animation:intro-title .52s cubic-bezier(.2,.65,.3,1) both; will-change:transform,opacity; text-shadow:0 6px 26px #081813; }
.intro-title img { width:clamp(58px,14vw,90px); height:auto; border-radius:23%; margin-bottom:9px; box-shadow:0 0 40px #a5ed8b36; }
.intro-title strong { font-size:clamp(35px,8vw,88px); line-height:1; letter-spacing:-.057em; }
.intro-title span { color:#b5e1ac; font-size:clamp(13px,3vw,19px); font-weight:720; letter-spacing:.12em; }
.intro-skip { position:absolute; right:var(--right); bottom:var(--bottom); min-height:44px; }
@keyframes intro-title { from { opacity:0; transform:translateY(13px) scale(.96); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes intro-road { from { transform:scaleX(.2); opacity:.14; } to { transform:scaleX(1.2); opacity:.58; } }
@media (max-width:530px) {
  .arrival-hud { top:calc(var(--top) + 48px); width:min(255px,calc(100% - 104px)); padding:8px 9px; }
  .in-room .arrival-hud { top:calc(var(--top) + 145px); }
  .nav-card:not([hidden]) + .arrival-hud { top:calc(var(--top) + 121px); }
}
@media (max-height:470px) {
  .arrival-hud { max-width:248px; }
  .arrival-hud button { min-height:35px; }
  .living-panel { max-height:54dvh; padding:9px 12px; }
}
@media (prefers-reduced-motion:reduce) { .intro-road,.intro-title { animation:none; } }
body.reduced .intro-road,body.reduced .intro-title { animation:none; }

/* Cuốc đầu tiên */
body.touch-mode { --touch-size:clamp(98px,27vw,126px); --control-rail:calc(var(--touch-size) + 13px); }
body.touch-mode[data-control-size="large"] { --touch-size:clamp(109px,29vw,139px); }
body.touch-mode[data-control-size="small"] { --touch-size:88px; --control-rail:101px; }
body.touch-mode .thumb-stick .stick-knob { width:46%; height:46%; }
body.touch-mode .jump-key { min-width:62px; min-height:61px; }
.view-key,.shortcuts .view-key,body.touch-mode .shortcuts .view-key {
  width:65px; min-height:49px; grid-template-rows:26px 12px; gap:1px; align-content:center; padding:2px 5px 4px;
  color:#c1ead3; background:linear-gradient(155deg,#20433a,#102d26); border-color:#76a99490;
}
.view-key small { font-size:8px; font-weight:850; color:#e5eddb; line-height:1; white-space:nowrap; }
.shortcuts .view-key svg,.view-key svg { width:28px; height:28px; }
.view-toast { position:absolute; bottom:calc(var(--bottom) + 78px); right:var(--right); padding:6px 9px; border-radius:7px; background:#17372de8; color:#f1e9d4; font-size:11px; border:1px solid var(--line); }
body.touch-mode .view-toast { bottom:calc(var(--bottom) + var(--control-rail) + 61px + var(--layout-clearance,0px)); }
.arrival-hud>small { display:block; color:#c8dfae; font-size:9px; font-weight:900; letter-spacing:.09em; margin-bottom:3px; }
.arrival-hud strong { display:block; }
.arrival-hud #arrival-line { color:#ffe5b7; }
.arrival-hud .arrival-foot { font-size:10px; color:#b8d9b6; }

.avatar-stage { pointer-events:none; position:absolute; z-index:3; top:var(--top); left:var(--side); display:grid; justify-items:start; gap:5px; }
.avatar-stage span { display:flex; align-items:center; gap:6px; padding:5px 8px; border:1px solid #a7d1a985; border-radius:99px; background:#19382d; font-size:9px; letter-spacing:.14em; font-weight:850; color:#def0d5; }
.avatar-stage i { width:6px; height:6px; border-radius:50%; background:#c5e99d; }
.avatar-stage strong { font-size:25px; letter-spacing:-.04em; text-shadow:0 2px 12px #1d3026; }
.avatar-stage small { color:#b9d1c3; font-size:11px; }
.avatar-roster { margin:0 0 11px; }
.avatar-roster-head { display:flex; justify-content:space-between; align-items:center; gap:6px; margin-bottom:7px; font-size:11px; color:#c8dfc6; }
.avatar-roster-head strong { color:#eaf3e2; }
.avatar-filter { display:flex; gap:4px; }
.avatar-filter button { font-size:10px; padding:4px 7px; min-height:30px; }
.avatar-roster-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.avatar-tile { border:1px solid #709d8260; border-radius:12px; padding:4px; color:#eff2dd; background:#162f27; text-align:left; min-width:0; }
.avatar-tile[aria-pressed="true"] { background:#2b503e; border-color:#c0f09a; box-shadow:0 0 0 1px #c0f09a55; }
.avatar-art { width:100%; height:clamp(49px,13vw,72px); display:block; fill:initial; stroke:none; }
.avatar-tile span { display:flex; flex-wrap:wrap; justify-content:space-between; gap:0 4px; align-items:baseline; padding:4px 2px 2px; font-size:11px; }
.avatar-tile small { font-size:9px; color:#c8d9c5; line-height:1.2; }
.avatar-preview-controls { margin:7px 0; }
.avatar-preview-controls .ghost,.avatar-preview-controls .primary { min-height:35px; padding:4px 8px; font-size:11px; }
.audio-options .settings-row:first-child { border-top:0; }
.audio-options input[type="range"] { min-width:89px; width:clamp(89px,31vw,180px); accent-color:#afe883; padding:0; }
.audio-options output { min-width:33px; text-align:right; font-size:12px; color:#c8e8bc; }
.audio-slider { display:flex; align-items:center; gap:7px; }

.living-panel { width:min(445px,calc(100% - 20px)); padding:10px 12px; }
.living-head { align-items:center; }
.living-head h2 { font-size:16px; }
.living-panel .living-rail { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.living-panel .living-rail button { min-height:41px; padding:4px 9px; }
.living-panel .living-description { font-size:12px; }
.living-menu { position:relative; }
.living-menu summary { list-style:none; display:grid; place-items:center; width:44px; height:40px; cursor:pointer; border:1px solid #b3d2b382; border-radius:8px; background:#274438; }
.living-menu summary::-webkit-details-marker { display:none; }
.living-menu summary svg { width:19px; height:19px; }
.living-menu .living-popover { position:absolute; bottom:calc(100% + 8px); right:0; display:grid; gap:4px; width:max-content; min-width:135px; padding:5px; background:#182e26; border:1px solid #86b68c8a; border-radius:9px; box-shadow:0 3px 12px #0b241aaa; z-index:3; }
.living-menu .living-popover button { min-height:39px; text-align:left; justify-content:flex-start; font-size:12px; }
.living-panel:has(.living-menu[open]) { overflow:visible; }
.living-wait { color:#f4deb0; }
.living-open .view-toast { bottom:calc(var(--bottom) + 125px); }
@media(max-width:600px) {
  body.touch-mode .living-panel { width:min(410px,calc(100% - 14px)); padding:7px 9px; border-radius:13px; max-height:33dvh; overflow:visible; }
  body.touch-mode .living-panel .living-description { display:none; }
  body.touch-mode .living-panel .living-head h2 { font-size:13px; margin:2px 0; }
  body.touch-mode .living-panel progress { height:4px; margin-top:4px; }
  body.touch-mode .living-panel .living-head small { font-size:9px; }
  body.touch-mode .living-panel .living-status { margin:2px 0; font-size:11px; }
  body.touch-mode .living-panel .living-rail button { min-height:43px; font-size:12px; flex:1; }
  body.touch-mode .living-open .room-hud { padding:5px 7px; min-height:30px; }
  body.touch-mode .living-open .room-hud #room-needs { display:none; }
  body.touch-mode .living-open .room-buttons { display:none; }
  .avatar-stage strong { font-size:18px; }
  .avatar-stage small { font-size:9px; }
  .avatar-roster-grid { gap:5px; }
  .avatar-tile span { font-size:10px; }
  .dialog-layer.setup-layer .dialog { max-height:57dvh; }
}
@media(max-height:500px) and (orientation:landscape) {
  body.touch-mode { --touch-size:91px; --control-rail:102px; }
  body.touch-mode .living-panel { right:var(--right); left:auto; transform:none; width:min(310px,45vw); }
}
@media(max-width:360px) { body.touch-mode .shortcuts .center-key { display:none; } }

#sky-discs { position:absolute;inset:0;pointer-events:none;overflow:hidden; }
#sky-discs > i { position:absolute;top:0;left:0;width:0;height:0; }
#sky-discs > i::before { content:"";position:absolute;transform:translate(-50%,-50%);border-radius:50%;display:block; }
#sun-disc::before { width:clamp(37px,6.5vh,76px);aspect-ratio:1;background:radial-gradient(circle at 40% 38%,#fffce2,#fff0ab 62%,#ffce8d);box-shadow:0 0 25px 11px #ffe6a784,0 0 82px 27px #ffcf7f51; }
#moon-disc::before { width:clamp(31px,5.3vh,60px);aspect-ratio:1;background:radial-gradient(circle at 27% 63%,#8fa9b165 0 15%,transparent 16%),radial-gradient(circle at 68% 28%,#96b0b260 0 12%,transparent 13%),radial-gradient(circle at 47% 43%,#f1f5e2,#b4cdd1);box-shadow:inset var(--moon-shade,4px) 0 7px #738c9e,0 0 38px 12px #c4e4fa4a; }

.fuel-layer.dialog-layer { background:linear-gradient(90deg,transparent 18%,#0c2320ad);place-items:center end; }
.fuel-layer .dialog { width:min(100%,405px); }
.fuel-steps { display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:.76rem;color:#b7cfc3;margin:0 0 13px; }
.fuel-steps strong { color:#f2c984;text-align:right; }
.station-attendant { display:flex;align-items:flex-start;gap:11px;padding:13px;border:1px solid #50776a;border-radius:13px;margin-bottom:13px;background:#224039; }
.station-attendant .icon { flex:0 0 25px;color:#f2c984; }
.station-attendant p { margin:5px 0 0; }
.fuel-form { display:grid;gap:10px; }
.fuel-form label { display:grid;gap:4px;font-size:.85rem;color:#dae9dc; }
.fuel-form :is(select,input) { width:100%;min-height:42px; }
.fuel-form label[hidden] { display:none; }
.fuel-display { border-radius:12px;padding:16px;background:#142e2b;border:1px solid #557f72;display:grid;gap:7px;color:#f4d492;font-family:ui-monospace,monospace; }
.fuel-display strong { color:#d4f0d8;font-size:2.1rem;line-height:1.1; }
.fuel-display progress { width:100%;height:6px;accent-color:#a5dcaa; }
.fuel-quote .label-line:last-child { font-size:1rem;color:#f4d492; }
.broadcast-hero { background:linear-gradient(145deg,#2b5447,#173731); }
.bulletin-item h3 { display:flex;align-items:center;gap:7px; }
.bulletin-item h3 svg { color:#e9be7c; }
.utility-bill .label-line { align-items:baseline;gap:12px; }
.utility-bill .label-line strong { white-space:nowrap; }

.tv-controls { position:absolute;z-index:9;bottom:max(14px,var(--bottom));left:50%;transform:translateX(-50%);width:min(94vw,590px);background:#102923ee;border:1px solid #5a8275;border-radius:17px;padding:10px 13px;box-shadow:0 12px 28px #0b1f1abb;pointer-events:auto; }
.tv-watching :is(.bottom,.room-hud,.map-wrap,#touch,#world-use) { display:none; }
.tv-title { display:flex;justify-content:space-between;align-items:center;gap:7px;margin-bottom:6px; }
.tv-title span { display:flex;align-items:center;gap:6px;font-weight:750; }
.tv-title .icon { color:#f0c885; }
.tv-actions,.tv-channels { flex-wrap:wrap;gap:5px; }
.tv-channels button,.tv-actions button,.tv-title button { min-height:33px;padding:5px 8px; }
.tv-volume { display:flex;align-items:center;gap:7px;margin:8px 0;font-size:.75rem; }
.tv-volume input { min-width:70px;width:100%;accent-color:#a5dcaa; }
.tv-volume span { white-space:nowrap; }
.tv-full-screen { width:100%;height:auto;aspect-ratio:16 / 9;background:#142b29;border:2px solid #47675f;border-radius:11px; }
.tv-caption { min-height:2em;font-size:.85rem; }
.chat-tabs { margin-bottom:8px; }
@media(max-width:600px) {
  .fuel-layer.dialog-layer { place-items:end center;background:linear-gradient(0deg,#122621db,transparent 85%); }
  .fuel-layer .dialog { max-height:57dvh; }
  .tv-controls { padding:8px 9px; }
  .tv-controls .tv-channels button { font-size:.71rem; }
  .tv-controls .tv-actions button { font-size:.72rem; }
}

.nav-clear-pin { pointer-events:auto; white-space:nowrap; flex:none; min-height:34px; padding:4px 8px; font-size:11px; }
.lottery-hero { background:linear-gradient(125deg,#532c2d,#2e3026); border-color:#95624a; }
.lottery-tabs,.lottery-stock { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:8px 0; }
.lottery-tabs button,.lottery-stock button { justify-content:center; padding-inline:5px; min-height:40px; }
.lottery-stock { grid-template-columns:repeat(2,minmax(0,1fr)); font-variant-numeric:tabular-nums; }
.lottery-form { display:grid; gap:6px; margin:10px 0; }
.lottery-form input:not([type="hidden"]) { width:100%; padding:10px; border-radius:9px; border:1px solid var(--line); background:#0d221a; color:#f5efda; font-size:18px; letter-spacing:.15em; }
.lottery-table { width:100%; border-collapse:collapse; font-size:12px; }
.lottery-table :is(th,td) { text-align:left; padding:7px 4px; border-bottom:1px solid var(--line); }
.lottery-table :is(th,td):last-child { text-align:right; white-space:nowrap; }
.lottery-table tbody tr:first-child { color:#ffcf84; }
.lottery-digits { letter-spacing:.10em; font-variant-numeric:tabular-nums; }
.lottery-plans { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:10px 0; }
.lottery-plans button { display:grid; justify-items:center; gap:3px; min-height:50px; padding:6px 3px; font-size:11px; line-height:1.2; }
.lottery-plans strong { white-space:nowrap; font-variant-numeric:tabular-nums; }

@media (max-width:620px) {
  .nav-clear-pin { min-height:32px; padding-inline:4px; font-size:9px; }
}
.lottery-form textarea { width:100%; padding:10px; resize:vertical; border-radius:9px; border:1px solid var(--line); background:#0d221a; color:#f5efda; font:inherit; font-size:16px; }
.lottery-form fieldset { min-width:0; border:0; padding:0; }
.lottery-check { display:flex; align-items:center; justify-content:center; gap:5px; min-height:44px; border:1px solid var(--line); border-radius:9px; padding:4px; cursor:pointer; }
.lottery-form .lottery-check input { width:auto; accent-color:#a8e29c; }
.lottery-check:has(input:checked) { border-color:#a8e29c; background:#305438; }

.fleet-quote { grid-column:1/-1; padding:8px 10px; border:1px solid var(--line); border-radius:9px; background:#10251d; }
.fleet-quote > strong { font-size:12px; }
.fleet-quote .label-line:last-child { padding-top:6px; border-top:1px solid var(--line); }
.fleet-quote .label-line:last-child strong { color:#b5ef97; }

#sky-fade392 { position:absolute; inset:0; opacity:0; pointer-events:none; }
#rainbow392 {
  position:absolute; inset:0; pointer-events:none; opacity:.42;
  background:radial-gradient(ellipse 39% 55% at 62% 76%,transparent 90%,#9369b655 91%,#79a9d278 92%,#a1cf8585 93%,#f6d98f99 95%,#f3a67c88 96%,#d9776966 97%,transparent 98.5%);
}
#weather-layer.rain[data-weather="hail"] { animation-duration:.33s; }
.vehicle-price .vehicle-bonus392 { display:block; font-size:.73rem; color:#b2ed9b; margin-top:.2rem; }
.trip-quote392 { border-block:1px solid var(--line); padding-block:.26rem; }
.trip-quote392 .label-line strong { white-space:normal; }

.weather-app { display:grid; gap:10px; }
.weather-app .card { margin-bottom:0; }
.weather-choices { display:grid; gap:5px; }
.weather-choices { grid-template-columns:repeat(3,minmax(0,1fr)); }
.weather-choices button { min-width:0; overflow-wrap:anywhere; }
.weather-tabs { margin-bottom:2px; }
.weather-forecast-list { list-style:none; margin:0; padding:0; }
.weather-forecast-row {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:8px;
  align-items:center; padding:9px 0; border-bottom:1px solid var(--line);
}
.weather-forecast-row:last-child { border-bottom:0; }
.weather-forecast-row strong,.weather-forecast-row small,.weather-week small { display:block; }
.weather-forecast-row small,.weather-week small { color:#abc0b5; }
.weather-range,.weather-catalog-status { max-width:105px; text-align:right; color:#d2eee8; font-size:.75rem; }
.weather-week { display:grid; gap:5px; }
.weather-week button { display:flex; justify-content:flex-start; align-items:center; gap:8px; text-align:left; }
.weather-week button[aria-pressed="true"] small { color:inherit; }
.weather-app h4 { margin:14px 0 5px; color:#c9dfd2; }
.review-reward progress { display:block; width:100%; margin:6px 0 10px; accent-color:#afdd8d; }
