/* HYPELINE clip cards, feed app, witness recording bubbles and Sunport 6 News. */
#clip-stack{position:absolute;right:max(16px,env(safe-area-inset-right));top:calc(max(12px,env(safe-area-inset-top)) + 300px);display:grid;gap:10px;pointer-events:none;z-index:4}
.clip-card{width:176px;border-radius:14px;overflow:hidden;background:#12141c;color:var(--paper);box-shadow:0 10px 26px rgba(0,0,0,.4);animation:clip-in .35s cubic-bezier(.2,1.2,.3,1);transition:opacity .35s,transform .35s}
.clip-card.out{opacity:0;transform:translateX(30px)}
.clip-card header{display:flex;justify-content:space-between;align-items:center;padding:7px 10px;font-size:10px;letter-spacing:.08em}
.clip-card header b{color:var(--hot);font-size:12px;letter-spacing:.04em}
.clip-card header span{color:#c8cbd4}
.clip-frame{position:relative;height:150px;background:linear-gradient(170deg,#ff8a5b,#f587a9 45%,#5b4fa8);display:grid;place-items:center}
.clip-kind{position:absolute;left:8px;bottom:8px;font-weight:900;font-style:italic;font-size:18px;text-shadow:0 2px 6px rgba(0,0,0,.35)}
.clip-play{font-size:30px;opacity:.85}
.clip-who{margin:8px 10px 0;font-weight:800;font-size:13px}
.clip-caption{margin:2px 10px 0;font-size:12px;line-height:1.35;color:#e5e7ec}
.clip-cam{margin:4px 10px 0;font-size:11px;color:#aab0bd}
.clip-card footer{display:flex;gap:8px;align-items:center;padding:8px 10px 10px;font-size:11px;font-weight:700}
.clip-card footer .clip-hype{margin-left:auto;color:var(--sun)}
@keyframes clip-in{from{opacity:0;transform:translateX(60px) scale(.94)}}

.phone-tabs{display:none}
/* Every device: phones need Map, Jobs and Cash as much as desktops do. */
.vice-city .phone-tabs{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 12px;flex:none}
.vice-city .phone-tabs button{flex:1 0 auto;min-height:32px;padding:4px 9px;font-size:12px;border-radius:999px;background:rgba(255,255,255,.07)}
.vice-city .phone-tabs button.on{background:var(--paper);color:#231e2c}
@media(pointer:coarse){.vice-city .phone-tabs button{min-height:38px;font-size:13px}}
.phone-off{display:none!important}
#phone-feed{display:grid;gap:8px;flex:none}
#phone-feed .feed-head{font-size:12px;color:#c8cbd4}
#phone-feed .feed-head b{color:var(--paper)}
.feed-post{display:flex;gap:10px;align-items:flex-start;padding:8px;border-radius:12px;background:rgba(255,255,255,.06)}
.feed-thumb{flex:none;width:52px;height:76px;border-radius:8px;display:grid;place-items:center;font-size:16px;background:linear-gradient(170deg,#ff8a5b,#f587a9 45%,#5b4fa8);text-align:center}
.feed-thumb small{display:block;font-size:9px;font-weight:800;line-height:1.1;padding:0 2px}
.feed-post b{font-size:12px}
.feed-post p{margin:2px 0;font-size:12px;line-height:1.3;color:#e5e7ec}
.feed-post small{font-size:10px;color:#aab0bd}
.feed-empty{font-size:12px;color:#c8cbd4;margin:4px 0}

#rec-bubbles{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.rec-bubble{position:absolute;transform:translate(-50%,-115%);min-width:120px;padding:5px 9px 7px;border-radius:10px;background:#1b1d26;color:#fff;font-size:12px;font-weight:800;text-align:center;box-shadow:0 3px 10px rgba(0,0,0,.3)}
.rec-bubble span{color:#ff8b9a}
.rec-bubble i{display:block;height:4px;margin-top:4px;border-radius:2px;background:rgba(255,255,255,.18);overflow:hidden}
.rec-bubble i b{display:block;height:100%;width:0;background:#ff4d6a}

#news-bar{position:absolute;left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right));bottom:calc(max(24px,env(safe-area-inset-bottom)) + 220px);max-width:760px;margin:0 auto;
  display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:0 12px;padding:10px 16px;background:#f4efe6;color:#1c1e24;border-radius:6px;box-shadow:0 10px 30px rgba(0,0,0,.35);pointer-events:none;z-index:5}
/* Free roam: the chat column sits bottom left at the same height, so the lower third starts right of it. */
@media (pointer:fine) and (min-width:761px){body.free-roam #news-bar{left:calc(max(24px,env(safe-area-inset-left)) + min(380px,40vw) + 24px)}}
#news-bar.in{animation:news-in .45s cubic-bezier(.2,1,.3,1)}
#news-bar b{font-weight:900;letter-spacing:.04em;color:#c8323c}
#news-bar .news-live{font-size:11px;font-weight:900;color:#fff;background:#c8323c;padding:2px 6px;border-radius:3px}
#news-bar p{margin:0;font-weight:800;font-size:15px}
#news-bar small{grid-column:1/-1;font-size:11px;color:#5b5f6b;margin-top:2px}
@keyframes news-in{from{opacity:0;transform:translateY(20px)}}

#deal-bar{position:absolute;left:50%;top:calc(max(12px,env(safe-area-inset-top)) + 64px);transform:translateX(-50%);max-width:min(460px,60vw);padding:7px 14px;border-radius:6px;
  background:#f6cf8a;color:#231e2c;text-align:center;pointer-events:none;box-shadow:0 6px 18px rgba(0,0,0,.25);z-index:3}
#deal-bar small{display:block;font-size:10px;font-weight:800;letter-spacing:.1em;opacity:.75}
#deal-bar b{display:block;font-size:15px;font-weight:900}
#deal-bar span{display:block;font-size:12px}
#threat-glow{position:absolute;inset:0;pointer-events:none;z-index:1;mix-blend-mode:screen}
/* Map app: the big GTA-style map over the game (hypeline.js); the phone card steps aside while it is open. */
#phone-map{position:absolute;inset:max(2.5vh,12px) max(2.5vw,12px);z-index:30;display:grid;grid-template:auto minmax(0,1fr)/minmax(0,1fr) 236px;gap:10px;padding:12px;background:rgba(12,16,24,.95);border:1px solid rgba(255,243,220,.16);border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.5);color:#fff3dc;font:14px/1.3 system-ui,sans-serif}
body:not(.crew-menu) #phone-map{display:none!important}
body.crew-menu.map-open #lobby,body.crew-menu.map-open #touch{display:none}
.bigmap-bar{grid-column:1/-1;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.bigmap-bar b{font:800 22px/1 'Barlow Condensed',system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase}
.bigmap-hint{margin-right:auto;font-size:12px;color:#c8cbd4}
.bigmap-bar button{min-height:36px;padding:4px 14px;border-radius:999px;border:0;background:rgba(255,255,255,.1);color:#fff3dc;font:700 13px/1 system-ui,sans-serif}
.bigmap-bar button:hover{background:rgba(255,255,255,.18)}.bigmap-bar .bigmap-close{background:#fff3dc;color:#231e2c}
.bigmap-view{position:relative;min-height:0;border-radius:10px;overflow:hidden;background:#1d3a4a}
#phone-map canvas{cursor:grab}#phone-map canvas:active{cursor:grabbing}
.bigmap-tip{position:absolute;left:0;top:0;z-index:1;transform:translate(-50%,-100%);pointer-events:none;max-width:260px;padding:5px 9px;border-radius:6px;background:rgba(12,16,24,.94);font-size:13px;font-weight:800;white-space:nowrap}
.bigmap-tip small{display:block;font-size:11px;font-weight:600;color:#c8cbd4;white-space:normal}
#phone-map .taxi-bar{position:absolute;left:12px;right:12px;bottom:12px;z-index:1;margin:0;box-shadow:0 6px 18px rgba(0,0,0,.35)}
#phone-map .taxi-bar span{margin-right:auto}
.map-key{display:flex;flex-direction:column;gap:1px;min-height:0;overflow:auto;margin:0;font-size:12px;color:#e3e5ea;scrollbar-width:thin}
.map-key h3{margin:2px 6px 6px;font-size:11px;letter-spacing:.14em;color:#c8cbd4}
.map-key button,.map-key p{display:flex;align-items:center;gap:8px;min-height:30px;margin:0;padding:3px 6px;border:0;border-radius:8px;background:none;color:inherit;font:600 12px/1.2 system-ui,sans-serif;text-align:left}
.map-key button:hover{background:rgba(255,255,255,.08)}.map-key p{color:#c8cbd4}
.map-key .k-icon{display:inline-grid;place-items:center;flex:none;width:22px;height:22px;border-radius:50%;border:2px solid #19222e;font:900 11px/1 system-ui,sans-serif;color:#fff}
.map-key .k-icon svg{width:14px;height:14px}
.map-key i{flex:none;display:inline-block;width:14px;height:14px;margin:0 4px;border-radius:50%;border:2px solid #19222e}
.map-key .k-you{background:#fff3dc}.map-key .k-van{background:#f6cf8a;border-radius:2px}.map-key .k-scene{background:#f587a9;transform:rotate(45deg);border-radius:1px}.map-key .k-cop{background:#ff3b4e}.map-key .k-search{background:rgba(255,59,78,.3);border-color:#ff3b4e}.map-key .k-shop{background:#2ECC71}.map-key .k-store{background:#E8536B}.map-key .k-way{background:#B44CFF}
.map-key .k-crew{background:#2EC4B6}.map-key .k-route{height:5px;border:0;border-radius:3px;background:#B44CFF}
.map-key .k-arrow{border:0;border-radius:0;background:#fff3dc;clip-path:polygon(50% 0,100% 100%,50% 78%,0 100%)}
@media(max-width:760px),(max-height:520px){#phone-map{inset:8px;padding:8px;grid-template:auto minmax(0,1fr) auto/minmax(0,1fr)}.bigmap-hint{display:none}.map-key{flex-flow:row wrap;max-height:24vh}.map-key h3{width:100%;margin-bottom:2px}}
/* Middle mouse selection (hold the middle button, turn the wheel): the highlighted phone item. */
.mm-hi{outline:3px solid #70dbc7!important;outline-offset:2px}
#phone-homescreen .app.mm-hi{outline:none!important}#phone-homescreen .app.mm-hi i{outline:3px solid #70dbc7;outline-offset:3px}
#phone-cash{display:grid;gap:8px;flex:none}
.cash-head{margin:0 0 4px;font-size:13px;color:#c8cbd4}.cash-head b{color:#7ED957}
.cash-pack{display:flex;justify-content:space-between;align-items:center;min-height:48px;padding:10px 14px;border-radius:14px;background:rgba(46,204,113,.14);border:1px solid rgba(46,204,113,.45);color:var(--paper);font-size:17px;font-weight:800}
.cash-pack b{font-size:12px;letter-spacing:.08em;background:#2ECC71;color:#10261a;padding:4px 10px;border-radius:999px}
.cash-pack:active{transform:scale(.98)}
.cash-pack:disabled{opacity:.45}.cash-balance{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:13px;color:#c8cbd4}.cash-balance b{color:var(--paper)}
.cash-funds{margin-left:auto;padding:6px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);color:var(--paper);font-weight:700;font-size:12px}
#phone-jobs{display:grid;gap:8px;flex:none}.jobs-head{margin:0 0 2px;font-size:13px;color:#c8cbd4}
.job{background:rgba(255,200,61,.08);border:1px solid rgba(255,200,61,.35);border-radius:14px;padding:10px 12px}.job.cooldown{opacity:.55}.job.active{border-color:#FFC83D;background:rgba(255,200,61,.18)}
.job header{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.job header b{font-size:15px}.job header span{font-size:11px;color:#FFC83D;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.job p{margin:4px 0 8px;font-size:12px;color:#c8cbd4;line-height:1.35}.job footer{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:700}
.job button{min-height:32px;padding:4px 12px;border-radius:999px;background:#FFC83D;color:#231e2c;font-weight:800;font-size:12px}.job button:disabled{background:rgba(255,255,255,.12);color:#c8cbd4}
#cash-feedback{min-height:18px;margin:2px 0 0;font-size:12px;color:#c8cbd4}

.job .heist-tag{font-style:normal;font-size:10px;letter-spacing:.1em;background:#FFC83D;color:#231e2c;border-radius:3px;padding:1px 5px;margin-right:4px;vertical-align:2px}

#phone-style{display:grid;gap:8px;flex:none}#phone-style .looks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
#phone-style .look{display:flex;flex-direction:column;align-items:stretch;gap:3px;padding:4px;min-width:0;border-radius:10px;background:rgba(255,255,255,.06);border:2px solid transparent;color:inherit;min-height:44px}
#phone-style .look img{width:100%;height:auto;aspect-ratio:3/5;object-fit:cover;border-radius:7px;background:#1c2230}
#phone-style .look small{font-size:10px;line-height:1.25;text-align:center;color:#d9dce3}
#phone-style .look{position:relative}#phone-style .look.locked img{filter:grayscale(.85) brightness(.55)}#phone-style .look.locked em{position:absolute;top:6px;left:50%;transform:translateX(-50%);font:800 11px/1 system-ui,sans-serif;font-style:normal;color:#fff;background:#B45CFF;padding:3px 6px;border-radius:999px}
#phone-style .style-note{margin:0 0 8px;font-size:12px;color:#e6c8ff}
#phone-style .look.on{border-color:#FFC83D;background:rgba(255,200,61,.16)}
#phone-style .look.auto{justify-content:center;aspect-ratio:3/5.6}#phone-style .look.auto span{font-weight:800;font-size:14px}
#phone-stats .stats{display:grid;gap:6px;margin:8px 0 0}
#phone-stats .stats div{display:flex;justify-content:space-between;align-items:baseline;padding:8px 10px;background:rgba(255,255,255,.06);border-radius:6px}
#phone-stats dt{font-size:13px;color:rgba(255,243,220,.75)}
#phone-stats dd{margin:0;font-weight:800;font-size:16px;color:#fff3dc}
.taxi-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;padding:8px 8px 8px 12px;background:#fff3dc;color:#22121c;border-radius:8px;font-size:13px}
.taxi-bar[hidden]{display:none}
.taxi-bar button{min-height:34px;padding:0 16px;border:0;border-radius:6px;background:#22121c;color:#fff3dc;font-weight:800}
#taxi-ride{position:absolute;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;background:rgba(8,9,16,.92);animation:taxi-in .35s ease-out}
#taxi-ride[hidden]{display:none}
#taxi-ride div{display:grid;gap:4px;text-align:center;color:#fff3dc}
#taxi-ride b{font:800 30px/1 'Barlow Condensed',sans-serif;letter-spacing:.2em;color:#FFC83D}
#taxi-ride span{font-size:18px;font-weight:700}#taxi-ride small{color:rgba(255,243,220,.7)}
@keyframes taxi-in{from{opacity:0}}
#phone-news .news{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
#phone-news .news li{display:block;padding:8px 10px;background:rgba(255,255,255,.06);border-radius:6px;border-left:0}
#phone-news .news li span{display:block;font-size:10px;font-weight:800;letter-spacing:.08em;color:#f587a9}
#phone-news .news li.scanner span{color:#7fb6ff}
#phone-news .news li p{margin:3px 0 0;font-size:13px;line-height:1.35;color:#fff3dc}
#phone-news .news-empty{margin:10px 0 0;color:rgba(255,243,220,.7);font-size:13px}
/* Home screen (free roam): app icons, and a bar back home inside every app. Stream mode keeps the tabs. */
#phone-homescreen,.phone-appbar{display:none}
body.free-roam.vice-city .phone-tabs{display:none}
body.free-roam.vice-city #phone-homescreen:not([hidden]){display:block;padding:6px 2px 4px}
body.free-roam.vice-city .phone-appbar:not([hidden]){display:flex;align-items:center;gap:10px;margin:0 0 10px;flex:none}
.phone-appbar .back{min-height:36px;padding:4px 12px 4px 8px;border-radius:999px;border:0;background:rgba(255,255,255,.1);color:var(--paper);font:700 13px/1 system-ui,sans-serif;cursor:pointer}
.phone-appbar b{font:800 16px/1 system-ui,sans-serif;letter-spacing:.02em;color:var(--paper)}
#phone-homescreen .apps{display:grid;grid-template-columns:repeat(4,1fr);gap:18px 8px}
#phone-homescreen .app{display:flex;flex-direction:column;align-items:center;gap:6px;background:none;border:0;padding:0;color:#e9ebf1;font:600 11px/1.1 system-ui,sans-serif;cursor:pointer;min-height:44px}
#phone-homescreen .app i{display:grid;place-items:center;width:54px;height:54px;border-radius:15px;box-shadow:0 4px 12px rgba(0,0,0,.35)}
#phone-homescreen .app i svg{width:28px;height:28px}
#phone-homescreen .app:focus-visible i{outline:3px solid var(--teal);outline-offset:2px}
/* Cars app: owned rides and the way to a garage or the car lot. */
#phone-cars{display:grid;gap:8px;flex:none}
#phone-cars .car-row footer span{color:#c8cbd4;font-weight:600}
#phone-cars .car-row.out header span{color:#7ED957}
#phone-cars .car-tip{min-height:44px;padding:8px 12px;border-radius:12px;border:1px dashed rgba(255,255,255,.3);background:rgba(255,255,255,.06);color:var(--paper);font:700 13px/1.25 system-ui,sans-serif;text-align:left;cursor:pointer}
#phone-cars .style-note{margin:0;font-size:12px;color:#ffd0c2}
#phone-friends{display:grid;gap:8px;flex:none}#phone-friends h3{margin:6px 0 0;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#c8cbd4}
.friend-add{display:flex;gap:6px}.friend-add input{flex:1;min-width:0;min-height:40px;padding:8px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:var(--paper);font-size:15px}
.friend-add button,.friend button{min-height:36px;padding:6px 12px;border-radius:999px;border:1px solid rgba(139,92,246,.6);background:rgba(139,92,246,.22);color:var(--paper);font-weight:700;font-size:13px}
.friend-note{margin:0;font-size:13px;color:#c8cbd4;min-height:1em}.friend-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.friend{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:14px;background:rgba(255,255,255,.05)}.friend>span{flex:1;min-width:0;display:grid}
.friend>span b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.friend small{color:#9aa0ad;font-size:12px}.friend.on small{color:#7ED957}
.friend>i{flex:none;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:#8b5cf6;font-style:normal;font-weight:800}.friend>i img{width:100%;height:100%;object-fit:cover}
