.intro-310 { isolation:isolate;background:#091c27;overflow:hidden; }
.intro-310 .intro-city { position:absolute;inset:-7%;background:center 60%/cover no-repeat url('./intro-city.svg');animation:dw-city-in 3s cubic-bezier(.18,.66,.3,1) both; }
.intro-310 .intro-headlight { position:absolute;inset:0;background:radial-gradient(ellipse at 23% 92%,#ffe6a180,transparent 43%);animation:dw-headlight 1.6s ease-out both; }
.intro-310 .intro-title { z-index:2;text-shadow:0 4px 22px #05121e;animation:dw-title-in 2.85s cubic-bezier(.2,.72,.25,1) both; }
.intro-310 .intro-title strong { color:#f9ecd0;font-size:clamp(40px,9vw,96px);letter-spacing:-.06em;white-space:nowrap; }
.intro-310 .intro-title strong em { color:#a9dfb7;font-style:normal; }
.intro-310 .intro-title small,.intro-310 .intro-title span { color:#ecd3a0;letter-spacing:.20em; }
.intro-310 .intro-film-bars { position:absolute;inset:0;border-block:clamp(12px,4vh,42px) solid #07121a;pointer-events:none;background:radial-gradient(transparent 8%,#091b28bb); }
.intro-310 .intro-skip { z-index:3; }
@keyframes dw-city-in { 0%{transform:scale(1.15) translateY(7%);opacity:.30} 60%{opacity:1} 100%{transform:scale(1.03);opacity:1} }
@keyframes dw-headlight { 0%{transform:translateX(-65%);opacity:.08} 42%{opacity:.95} 100%{transform:translateX(54%);opacity:0} }
@keyframes dw-title-in { 0%,21%{transform:translateY(18px) scale(.97);opacity:0} 47%,86%{transform:none;opacity:1} 100%{opacity:.60} }
.prologue { position:absolute;inset:0;z-index:30;display:grid;place-items:center;overflow:auto;padding:var(--top) var(--right) var(--bottom) var(--side);background:radial-gradient(ellipse at top,#1c4340,#091a26 77%);color:#edf3db; }
.film-shell { width:min(860px,100%);padding:12px; }
.film-head { display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px; }
.film-head h2 { color:#f5e8c5;margin:4px 0 0;font-size:clamp(1.24rem,5.2vw,2.3rem);line-height:1.12; }
.film-head button { white-space:nowrap; }
.film-frame { overflow:hidden;border-radius:14px;border:1px solid #739087;background:#112a32; }
.film-frame video { width:100%;max-height:58vh;aspect-ratio:720/404;object-fit:contain;display:block; }
.film-subtitles { min-height:90px;padding:12px 3px 8px; }
.film-subtitles small { color:#b0d6b9;letter-spacing:.13em;font-weight:750;font-size:.70rem; }
.film-subtitles p { margin:6px 0;color:#f0ebd8;line-height:1.45; }
.film-subtitles strong { color:#f4c98e;margin-right:4px; }
.film-controls input { width:100%;margin:2px 0 10px;accent-color:#a7dfb4; }
.film-buttons { display:flex;align-items:center;gap:8px;flex-wrap:wrap; }
.film-buttons time { margin-left:auto;font-size:.8rem;color:#c9dbd3;font-variant-numeric:tabular-nums; }
.film-status { min-height:1em;margin:8px 0 0;color:#e6d9b8;font-size:.8rem; }
@media(max-width:530px) { .film-shell{padding:7px 4px} .film-buttons button,.film-head button{min-height:44px;padding:6px 8px;font-size:.76rem} .film-subtitles{font-size:.92rem;min-height:100px} }
@media(max-height:470px) { .film-shell{max-width:610px;padding:3px} .film-frame video{max-height:46vh} .film-head{margin-bottom:4px} .film-subtitles{min-height:50px;padding:4px 0} .film-subtitles p{margin:3px 0} .film-buttons button{min-height:32px} }
body.reduced .intro-310 :is(.intro-city,.intro-title,.intro-headlight) { animation:none; }
@media(prefers-reduced-motion:reduce) { .intro-310 :is(.intro-city,.intro-title,.intro-headlight) { animation:none; } }

.phone { background:radial-gradient(ellipse at 100% 0,#214536 0,transparent 53%),#101f1a; }
.phone-nav { grid-template-columns:repeat(5,minmax(0,1fr));background:#192d26; }
.phone-nav button { font-size:10px; }
.qd-home { display:grid;gap:10px; }
.qd-greeting { min-height:113px;padding:13px;display:flex;align-items:end;justify-content:space-between;gap:10px;border:1px solid #9ac9ab56;border-radius:17px;background:linear-gradient(96deg,#14372be8,#203f3280),url("./intro-city.svg") center 62%/cover; }
.qd-greeting span { color:#c6e1ae;font-size:9px;font-weight:900;letter-spacing:.12em; }
.qd-greeting h3 { margin:4px 0 0;overflow-wrap:anywhere;font-size:clamp(20px,5vw,27px);letter-spacing:-.04em; }
.qd-weather { display:grid;gap:3px;justify-items:center;min-width:58px;color:#e2f1ca; }
.qd-weather svg { width:24px;height:24px; }
.qd-weather small { font-size:10px;white-space:nowrap; }
.qd-live { min-height:61px;display:flex;align-items:center;padding:9px 12px;gap:10px;text-align:left;border:1px solid #83ba9368;border-radius:14px;background:#244b3b;color:#e5f4da; }
.qd-live>svg { flex:none;color:#b4ef93;width:22px;height:22px; }
.qd-live>svg:last-child { width:16px; }
.qd-live>span { flex:1;display:grid;gap:3px;font-size:12px; }
.qd-live small { color:#c2d8c7;font-size:10px; }
.qd-apps { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
.qd-app { min-height:72px;display:grid;gap:5px;align-content:center;justify-items:center;border:1px solid #a2cdb72e;border-radius:12px;color:#e6efe1;background:#20352ddd; }
.qd-app>span,.camera-app>span { display:grid;place-items:center;width:33px;height:31px;border-radius:9px;color:#b4f2a4;background:#365c46; }
.qd-app>span[data-tone="cyan"] { color:#b2e1ec;background:#325867; }
.qd-app>span[data-tone="plum"],.camera-app>span { color:#ebd8ff;background:#574967; }
.qd-app>span[data-tone="gold"] { color:#f8d795;background:#614e37; }
.qd-app svg { width:19px;height:19px; }
.qd-app small { font-size:11px;font-weight:760; }
.camera-app>span { width:44px;height:44px;margin-bottom:10px;border-radius:12px; }
.camera-app>span svg { width:25px;height:25px; }
.billing-paper { background:linear-gradient(155deg,#294b3b,#1a3026);border:1px solid #a1c8965c; }
.billing-paper .label-line:last-of-type { color:#baf197; }
.billing-paper>small { color:#bcd1bb;font-size:10px; }
.bill-history summary { display:flex;gap:6px;justify-content:space-between;align-items:center;cursor:pointer;color:#e3f1da; }
.bill-history .billing-paper { margin:9px 0 0; }
.beard-progress { width:100%;accent-color:#a9e48b; }
.photo-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:12px; }
.photo-grid button { min-width:0;display:grid;text-align:left;gap:4px;padding:0 0 8px;border-radius:10px;overflow:hidden;color:#e5f1dc;background:#284737; }
.photo-grid img { width:100%;height:112px;object-fit:cover;background:#23342e; }
.photo-grid :is(strong,small) { padding:0 7px;font-size:11px; }
.photo-grid small { color:#bfd2c6; }
.game-photo { display:block;max-width:100%;max-height:52dvh;margin:0 auto 10px;border-radius:10px;background:#223931; }
.map-tools { display:flex;flex-wrap:wrap;gap:5px;margin:8px 0; }
.map-tools button { min-height:42px;font-size:11px; }
:is(#phone-map,#full-map) { touch-action:none;cursor:grab; }
:is(#phone-map,#full-map):active { cursor:grabbing; }
.photo-open #hud { visibility:hidden;pointer-events:none; }
.camera-view { position:absolute;inset:0;z-index:6;pointer-events:none;color:#edf7e3; }
.camera-view :is(header,footer) { position:absolute;left:var(--side);right:var(--right);display:flex;gap:6px;pointer-events:none; }
.camera-view header { top:var(--top);align-items:center;justify-content:space-between; }
.camera-view header>div { display:grid;gap:4px;padding:8px 11px;border:1px solid #abcca95c;border-radius:10px;background:#16332adf; }
.camera-view header strong { font-size:13px; }
.camera-view footer { bottom:var(--bottom);flex-direction:column;align-items:center;gap:11px; }
.camera-options { display:flex;justify-content:center;flex-wrap:wrap;gap:6px; }
.camera-options button,.camera-shutter .ghost { min-height:44px;background:#142b24e9; }
.camera-view button { pointer-events:auto; }
.camera-options button[aria-pressed="true"] { color:#183222;background:#bbf098; }
.camera-shutter { display:grid;grid-template-columns:minmax(75px,1fr) auto minmax(75px,1fr);gap:9px;align-items:center; }
.camera-shutter .shutter { width:65px;height:65px;border:4px solid #d1e6bd;border-radius:50%;background:#e9f2d9;color:#1b3929;display:grid;place-items:center;box-shadow:inset 0 0 0 3px #31533d,0 4px 17px #112a21b0; }
.camera-shutter svg { width:21px;height:21px; }
.camera-shutter .shutter svg { width:27px;height:27px; }
.camera-frame { position:absolute;inset:21% 11% 26%;display:grid;place-items:center; }
.camera-frame i { width:17px;height:17px;position:absolute;border:2px solid #edf3d6ca; }
.camera-frame i:nth-child(1) { left:0;top:0;border-right:0;border-bottom:0;border-radius:6px 0 0; }
.camera-frame i:nth-child(2) { right:0;top:0;border-left:0;border-bottom:0;border-radius:0 6px 0 0; }
.camera-frame i:nth-child(3) { left:0;bottom:0;border-right:0;border-top:0;border-radius:0 0 0 6px; }
.camera-frame i:nth-child(4) { right:0;bottom:0;border-left:0;border-top:0;border-radius:0 0 6px; }
.camera-frame b { width:12px;height:12px;border:1px solid #eef4dbba;border-radius:50%; }
.bike-controls { position:absolute;left:var(--side);bottom:calc(var(--bottom) + 104px);display:flex;gap:5px; }
.bike-controls button { width:42px;min-height:42px;background:#18362eea;border-color:#85ac92a8; }
.bike-controls button[data-value="-1"] svg { transform:rotate(180deg); }
.bike-controls button[aria-pressed="true"] { background:#e5b866;color:#352a17; }
.bike-controls button[data-action="light"][aria-pressed="true"] { background:#c5ee9f;color:#2e4935; }
.bike-controls button kbd { position:absolute;bottom:-3px;right:-3px; }
.bike-hud .shortcuts .horn-key { display:none; }
body.touch-mode .bike-controls { bottom:calc(var(--bottom) + var(--control-rail) + var(--layout-clearance,0px) + 128px); }
body.touch-mode .bike-controls button { width:44px;min-height:44px; }
@media(max-width:530px) { .context .fuel-tip{display:block;max-width:min(185px,39vw)} .camera-frame{inset:24% 7% 26%} }
@media(max-height:470px) { .camera-frame{inset:22% 12% 29%} .camera-view footer{flex-direction:row;justify-content:space-between} .camera-shutter .shutter{width:51px;height:51px} }
