/* MAD Streets game screen. MAD look: ink, yellow, blue, square edges, Archivo-style bold type. */
#mst-root [hidden] { display: none !important; }
html, body.mst-body { margin: 0; height: 100%; background: #16171a; overflow: hidden; overscroll-behavior: none; touch-action: none; -webkit-user-select: none; user-select: none; }
#mst-root { position: fixed; inset: 0; font: 600 15px/1.3 "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #fff; }
#mst-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mst-btn { min-width: 44px; min-height: 44px; padding: 0 12px; border: 2px solid #16171a; background: rgba(255,255,255,.94); color: #16171a; font: 800 15px/1 inherit; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; border-radius: 0; }
.mst-btn[aria-pressed="true"] { background: #ffd23f; }
.mst-btn:focus-visible, .mst-pad:focus-visible { outline: 3px solid #2f5bff; outline-offset: 2px; }
.mst-small { min-height: 40px; font-size: 13px; }
.mst-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.mst-top > * { pointer-events: auto; }
#mst-close { font-size: 26px; }
.mst-street { flex: 1; text-align: center; background: #16171a; color: #fff; border: 2px solid #fff; padding: 8px 12px; font-weight: 800; font-size: 16px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; margin: 0 auto; animation: mst-in .25s ease-out; }
@keyframes mst-in { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.mst-mini { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); top: calc(64px + env(safe-area-inset-top, 0px)); width: 120px; height: 120px; }
.mst-side { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); top: calc(64px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 8px; }
.mst-speed { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(132px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: baseline; gap: 4px; background: rgba(22,23,26,.82); padding: 6px 14px; border: 2px solid #fff; }
.mst-speed b { font-size: 34px; font-weight: 900; min-width: 2.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.mst-speed span { font-size: 13px; opacity: .9; }
.mst-pads { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 max(12px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.mst-steer, .mst-pedals { display: flex; gap: 10px; pointer-events: auto; }
.mst-pad { width: 78px; height: 78px; border: 3px solid #16171a; background: rgba(255,255,255,.88); color: #16171a; font: 900 16px/1 inherit; font-family: inherit; text-transform: uppercase; display: flex; align-items: center; justify-content: center; touch-action: none; border-radius: 0; cursor: pointer; transition: transform .06s; }
.mst-pad.on { transform: scale(.93); background: #ffd23f; }
.mst-go { height: 110px; background: rgba(255,210,63,.95); }
.mst-brake { background: rgba(214,216,222,.92); }
.mst-note { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); background: #ffd23f; color: #16171a; border: 3px solid #16171a; padding: 12px 16px; font-weight: 800; max-width: 80vw; text-align: center; }
.mst-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 72%; background: #fff; color: #16171a; border-top: 4px solid #16171a; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); animation: mst-up .25s ease-out; }
@keyframes mst-up { from { transform: translateY(100%); } to { transform: none; } }
.mst-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 2px solid #e3e3e0; }
.mst-sheet-head h2 { margin: 0; font-size: 20px; font-weight: 900; }
.mst-places { overflow: auto; padding: 12px 16px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mst-place { min-height: 48px; border: 2px solid #16171a; background: #fff; color: #16171a; font: 800 15px/1.2 inherit; font-family: inherit; text-align: left; padding: 8px 12px; cursor: pointer; border-radius: 0; }
.mst-place:hover { background: #ffd23f; }
.mst-modal { position: absolute; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mst-modal-box { background: #fff; color: #16171a; border: 4px solid #16171a; padding: 20px; width: min(340px, 100%); display: flex; flex-direction: column; gap: 16px; }
.mst-modal-box h2 { margin: 0; font-size: 22px; font-weight: 900; }
.mst-modal-btns { display: flex; gap: 10px; }
.mst-modal-btns button { flex: 1; min-height: 50px; border: 0; font: 900 17px/1 inherit; font-family: inherit; cursor: pointer; border-radius: 0; }
.mst-yes { background: #2f5bff; color: #fff; }
.mst-no { background: #4b4d52; color: #fff; }
.mst-load { position: absolute; inset: 0; background: #16171a; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; }
.mst-stamp { font: 900 54px/1 inherit; font-family: inherit; color: #16171a; background: #ffd23f; padding: 8px 18px; transform: rotate(-6deg); animation: mst-thud .7s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes mst-thud { from { transform: rotate(-6deg) scale(2.4); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }
.mst-load p { margin: 0; font-size: 17px; max-width: 30ch; }
.mst-load:not(.mst-err) p::after { content: ''; display: block; height: 4px; margin: 14px auto 0; width: 120px; background: linear-gradient(90deg, #ffd23f 0 40%, transparent 40%) 0 0 / 200% 100%; animation: mst-bar 1s linear infinite; }
@keyframes mst-bar { to { background-position: -200% 0; } }
.mst-credit { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(2px + env(safe-area-inset-bottom, 0px)); font-size: 10px; opacity: .8; white-space: nowrap; }
.mst-credit a { color: #fff; }
@media (max-height: 460px) { .mst-speed { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); } .mst-pad { width: 66px; height: 66px; } .mst-go { height: 88px; } .mst-side { flex-direction: row; } .mst-mini { width: 96px; height: 96px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Sat nav panel. */
.mst-nav { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); right: max(146px, calc(env(safe-area-inset-right, 0px) + 134px)); top: calc(64px + env(safe-area-inset-top, 0px)); display: flex; align-items: stretch; background: #16171a; color: #fff; border: 2px solid #fff; min-height: 64px; animation: mst-in .25s ease-out; margin-left: 64px; }
.mst-nav-turn { background: #2f5bff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 10px; min-width: 72px; gap: 2px; }
.mst-nav-turn b { font-size: 15px; font-weight: 900; white-space: nowrap; }
.mst-nav-text { display: flex; flex-direction: column; justify-content: center; padding: 8px 12px; gap: 4px; min-width: 0; }
.mst-nav-text span { font-size: 16px; font-weight: 800; line-height: 1.2; }
.mst-nav-text small { font-size: 12px; opacity: .85; }
.mst-auto { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(190px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 6px; background: rgba(22,23,26,.85); padding: 6px 8px; border: 2px solid #fff; white-space: nowrap; }
.mst-auto > span { font-weight: 800; font-size: 13px; padding: 0 4px; }
.mst-auto .mst-btn { min-width: 40px; padding: 0 8px; }
.mst-limit { position: absolute; left: calc(50% + 70px); bottom: calc(132px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 6px solid #d71920; display: flex; align-items: center; justify-content: center; }
.mst-limit b { color: #111; font-size: 20px; font-weight: 900; }
/* Where to. */
.mst-sheet-body { overflow: auto; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.mst-sheet-body .mst-places { padding: 0; overflow: visible; }
.mst-find input { width: 100%; box-sizing: border-box; min-height: 52px; border: 3px solid #16171a; padding: 0 14px; font: 800 18px/1 inherit; font-family: inherit; text-transform: uppercase; border-radius: 0; background: #fff; color: #16171a; }
.mst-find input::placeholder { text-transform: none; font-weight: 600; color: #6b6e74; }
.mst-sub { margin: 6px 0 0; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: #4b4d52; }
.mst-place small { display: block; font-weight: 600; font-size: 12px; color: #4b4d52; margin-top: 2px; }
.mst-modal-sub { margin: -8px 0 0; color: #4b4d52; }
.mst-choice { display: flex; flex-direction: column; gap: 10px; }
.mst-choice button { min-height: 60px; border: 0; font: 900 18px/1.1 inherit; font-family: inherit; cursor: pointer; border-radius: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 8px 16px; text-align: left; }
.mst-choice button small { font-size: 12px; font-weight: 600; opacity: .9; margin-top: 4px; }
.mst-link { background: none; border: 0; color: #16171a; font: 800 15px/1 inherit; font-family: inherit; text-decoration: underline; min-height: 44px; cursor: pointer; }
@media (max-height: 460px) { .mst-auto { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); } .mst-nav { margin-left: 160px; } .mst-limit { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); } }
/* Directions panel: full width under the top bar; side buttons and mini-map move down below it. */
.mst-nav { left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); margin-left: 0; min-height: 0; }
.mst-nav-turn { flex-direction: row; gap: 8px; min-width: 0; padding: 8px 12px; }
.mst-nav-text span { font-size: 17px; }
.mst-has-nav .mst-side, .mst-has-nav .mst-mini { top: calc(150px + env(safe-area-inset-top, 0px)); transition: top .25s ease-out; }
@media (max-height: 460px) { .mst-nav { left: 50%; right: auto; width: min(460px, 46vw); } .mst-has-nav .mst-side, .mst-has-nav .mst-mini { top: calc(64px + env(safe-area-inset-top, 0px)); } }
.mst-door { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(132px + env(safe-area-inset-bottom, 0px)); min-height: 48px; padding: 0 16px; font-size: 15px; background: #2f5bff; color: #fff; border-color: #fff; animation: mst-in .2s ease-out; }
@media (max-height: 460px) { .mst-door { bottom: calc(108px + env(safe-area-inset-bottom, 0px)); } }
/* Speed box: small, at the side, out of the way (also in the car view). */
.mst-speed { left: max(12px, env(safe-area-inset-left, 0px)); right: auto; bottom: auto; top: calc(120px + env(safe-area-inset-top, 0px)); transform: none; padding: 4px 8px; gap: 3px; }
.mst-speed b { font-size: 20px; min-width: 2ch; }
.mst-speed span { font-size: 11px; }
.mst-has-nav .mst-speed { top: calc(206px + env(safe-area-inset-top, 0px)); }
.mst-speedo-big .mst-speed b { font-size: 34px; }
.mst-speedo-off .mst-speed { display: none; }
.mst-limit { left: max(12px, env(safe-area-inset-left, 0px)); bottom: auto; top: calc(166px + env(safe-area-inset-top, 0px)); width: 42px; height: 42px; border-width: 5px; }
.mst-has-nav .mst-limit { top: calc(252px + env(safe-area-inset-top, 0px)); }
.mst-limit b { font-size: 16px; }
.mst-horn { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(108px + env(safe-area-inset-bottom, 0px)); min-height: 40px; font-size: 13px; }
.mst-horn.on { background: #ffd23f; }
.mst-place-me { border-color: #2f5bff; background: #eef3ff; }
/* Settings sheet. */
.mst-set { max-height: 82%; }
.mst-tabs { display: flex; gap: 6px; padding: 10px 16px 0; overflow-x: auto; }
.mst-tab { min-height: 40px; padding: 0 12px; border: 2px solid #16171a; background: #fff; color: #16171a; font: 800 14px/1 inherit; font-family: inherit; border-radius: 0; white-space: nowrap; cursor: pointer; }
.mst-tab[aria-selected="true"] { background: #16171a; color: #fff; }
.mst-set-body { gap: 14px; }
.mst-row { display: flex; flex-direction: column; gap: 6px; }
.mst-row-top { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 14px; }
.mst-row-top b { font-variant-numeric: tabular-nums; }
.mst-row input[type=range] { width: 100%; height: 32px; accent-color: #2f5bff; }
.mst-row input[type=color] { width: 64px; height: 40px; border: 2px solid #16171a; padding: 0; background: none; }
.mst-row-bool { flex-direction: row; align-items: center; justify-content: space-between; }
.mst-row-bool .mst-row-top { flex: 1; }
.mst-row input[type=checkbox] { width: 26px; height: 26px; accent-color: #2f5bff; }
.mst-choices { display: flex; gap: 8px; }
.mst-set-foot { padding: 8px 16px 12px; border-top: 2px solid #e3e3e0; }
@media (max-height: 460px) { .mst-speed { top: calc(120px + env(safe-area-inset-top, 0px)); } .mst-limit { top: calc(166px + env(safe-area-inset-top, 0px)); } .mst-has-nav .mst-speed, .mst-has-nav .mst-limit { top: auto; bottom: calc(110px + env(safe-area-inset-bottom, 0px)); } .mst-horn { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); } }
/* Dashcam REC button (under the mini-map) and the replay screen. */
.mst-rec-btn { position: static; flex: 0 0 auto; min-height: 44px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(22,23,26,.82); color: #fff; border: 2px solid #fff; font: 900 12px/1 inherit; font-family: inherit; letter-spacing: .08em; border-radius: 0; cursor: pointer; }
.mst-rec-btn i { width: 10px; height: 10px; border-radius: 50%; background: #e0201a; animation: mst-blink 1.2s steps(2) infinite; }
.mst-rec-new { background: #e0201a; }
@keyframes mst-blink { 50% { opacity: .25; } }
.mst-clips .mst-save-clip { min-height: 52px; border: 0; font: 900 16px/1 inherit; font-family: inherit; cursor: pointer; }
.mst-clip-list { display: flex; flex-direction: column; gap: 8px; }
.mst-replaying > *:not(#mst-canvas):not(.mst-replay) { visibility: hidden; }
.mst-replay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.mst-replay > * { pointer-events: auto; }
.mst-replay-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); }
.mst-rec { background: #e0201a; color: #fff; font-weight: 900; font-size: 12px; padding: 6px 8px; letter-spacing: .08em; }
.mst-replay-title { flex: 1; background: #16171a; color: #fff; border: 2px solid #fff; padding: 8px 10px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mst-replay-drag { flex: 1; touch-action: none; cursor: grab; }
.mst-replay-bar { background: rgba(255,255,255,.96); color: #16171a; border-top: 4px solid #16171a; padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 10px; }
.mst-replay-cams { display: flex; gap: 6px; flex-wrap: wrap; }
.mst-replay-row { display: flex; align-items: center; gap: 8px; }
.mst-replay-row input { flex: 1; accent-color: #e0201a; height: 32px; }
.mst-replay-claim-btn { background: #2f5bff; color: #fff; border-color: #2f5bff; min-height: 48px; }
.mst-replay-claim { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); top: calc(64px + env(safe-area-inset-top, 0px)); background: #fff; color: #16171a; border: 4px solid #16171a; padding: 14px 16px; }
.mst-replay-claim h3 { margin: 0 0 4px; font-size: 22px; font-weight: 900; }
.mst-replay-claim ul { margin: 8px 0; padding-left: 20px; }
.mst-replay-claim li { margin: 4px 0; }
.mst-claim-ref { margin: 0; color: #4b4d52; font-size: 13px; }
.mst-claim-cost { margin: 6px 0 0; font-weight: 800; }
.mst-row-info { font-size: 13px; line-height: 1.45; opacity: .85; }
.mst-row input[type=file] { font-size: 13px; max-width: 100%; }
.mst-talk { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(156px + env(safe-area-inset-bottom, 0px)); min-height: 48px; padding: 0 16px; font-weight: 700; touch-action: none; user-select: none; -webkit-user-select: none; }
.mst-talk.on { background: #2f7bff; color: #fff; border-color: #2f7bff; }
.mst-players .mst-sheet-body p { margin: 0 0 10px; line-height: 1.45; }
.mst-players .mst-muted { opacity: .75; font-size: 13px; }
.mst-player-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-top: 1px solid rgba(127,127,127,.25); }
.mst-player-row .mst-choices { grid-column: 1 / -1; }
.mst-players .mst-wide { display: block; width: 100%; margin: 0 0 8px; text-align: left; }
.mst-primary { background: #ffd23f; }
@media (max-height: 460px) { .mst-talk { bottom: calc(140px + env(safe-area-inset-bottom, 0px)); } }

/* Left buttons behind three dots. */
.mst-side > .mst-btn:not(.mst-dots) { display: none; }
.mst-side.open > .mst-btn:not(.mst-dots) { display: inline-flex; animation: mst-pop .16s ease-out both; }
.mst-dots { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
.mst-dots[aria-expanded="true"] { background: #ffd23f; }
@keyframes mst-pop { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.mst-top { gap: 8px; }
.mst-rec-btn { margin-left: auto; }
/* Control layouts. */
.mst-swap .mst-pads { flex-direction: row-reverse; }
.mst-sticks { position: absolute; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; padding: 0 max(18px, env(safe-area-inset-right, 0px)) 0 max(18px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.mst-stick { position: relative; width: 132px; height: 132px; border-radius: 50%; background: rgba(22,23,26,.35); border: 2px solid rgba(255,255,255,.8); pointer-events: auto; touch-action: none; }
.mst-stick i { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255,255,255,.95); border: 2px solid #16171a; transition: transform .06s linear; }
.mst-stick span { position: absolute; left: 0; right: 0; bottom: -20px; text-align: center; color: #fff; font-size: 11px; font-weight: 800; text-shadow: 0 1px 2px #000; }
.mst-stick::before { content: ""; position: absolute; background: rgba(255,255,255,.45); left: 12px; right: 12px; top: 50%; height: 2px; }
.mst-stick-v::before { left: 50%; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; }
.mst-wheel { position: absolute; left: max(14px, env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 150px; height: 150px; color: rgba(255,255,255,.95); filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); touch-action: none; }
.mst-limit.mst-limiter::after { content: "LIMITER"; position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); font-size: 9px; font-weight: 900; color: #fff; background: #16171a; padding: 1px 4px; letter-spacing: .06em; }
@media (max-height: 460px) { .mst-stick { width: 104px; height: 104px; } .mst-wheel { width: 118px; height: 118px; } }
.mst-side { z-index: 3; }
.mst-side.open { background: rgba(22,23,26,.25); padding: 6px; margin: -6px; }
.mst-side.open ~ .mst-speed, .mst-side.open ~ .mst-limit { visibility: hidden; }

/* 0.9: clean screen. Next turn is a small card at the top; tap it for the sat nav phone. Notes are small, top right, and fade. */
.mst-nav { left: 50% !important; right: auto !important; transform: translateX(-50%); width: auto !important; max-width: min(380px, 62vw); margin-left: 0 !important; min-height: 0; border: 0; border-radius: 14px; background: rgba(22, 23, 26, .84); overflow: hidden; cursor: pointer; }
.mst-nav-turn { background: #1d6b34; flex-direction: row; gap: 6px; min-width: 0; padding: 6px 10px; }
.mst-nav-turn svg { width: 28px; height: 28px; }
.mst-nav-turn b { font-size: 14px; }
.mst-nav-text { padding: 6px 12px; gap: 2px; }
.mst-nav-text span { font-size: 14px !important; }
.mst-nav-text small { font-size: 11px; }
.mst-phone-open .mst-nav { display: none; }
.mst-note { left: auto; right: max(12px, env(safe-area-inset-right, 0px)); top: calc(60px + env(safe-area-inset-top, 0px)); transform: none; background: rgba(22, 23, 26, .86); color: #fff; border: 0; border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 13px; max-width: min(320px, 50vw); text-align: left; animation: mst-in .25s ease-out; z-index: 20; }

/* The phone on the dash mount (sat nav and radio). Sideways when you hold yours sideways, upright when upright. */
.mst-phone { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 30; background: #111214; border-radius: 26px; padding: 7px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45), inset 0 0 0 1px #3a3d44; animation: mst-up .25s ease-out; width: min(360px, 46vw); height: min(210px, 54vh); }
.mst-phone[data-app="radio"] { width: min(420px, 52vw); height: min(330px, 86vh); }
@media (orientation: portrait) { .mst-phone { width: min(220px, 54vw); height: min(400px, 56vh); } .mst-phone[data-app="radio"] { width: min(300px, 80vw); height: min(520px, 70vh); } }
.mst-phone-screen { position: relative; width: 100%; height: 100%; border-radius: 20px; overflow: hidden; background: #fff; color: #16171a; }
.mst-phone-x { position: absolute; right: 8px; top: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(22, 23, 26, .78); color: #fff; font-size: 20px; line-height: 30px; padding: 0; cursor: pointer; }
.mst-phone-app { height: 100%; }
.mst-pnav { display: flex; flex-direction: column; height: 100%; }
.mst-pnav-turn { display: flex; align-items: center; gap: 8px; background: #1d6b34; color: #fff; padding: 8px 44px 8px 10px; }
.mst-pnav-arrow svg { width: 32px; height: 32px; color: #fff; display: block; }
.mst-pnav-turn b { display: block; font-size: 16px; font-weight: 900; }
.mst-pnav-turn span { display: block; font-size: 12px; font-weight: 700; opacity: .92; }
.mst-pnav-map { flex: 1; width: 100%; min-height: 0; display: block; }
.mst-pnav-eta { font-size: 12px; font-weight: 800; padding: 6px 10px; border-top: 1px solid #e3e1da; }
.mst-prad { display: flex; flex-direction: column; height: 100%; font: 13px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.mst-prad-now { display: flex; align-items: center; gap: 10px; background: #16171a; color: #fff; padding: 10px 46px 10px 12px; }
.mst-prad-now small { display: block; font-size: 10px; opacity: .7; text-transform: uppercase; letter-spacing: .05em; }
.mst-prad-now b { display: block; font-size: 14px; }
.mst-prad-now div { flex: 1; min-width: 0; }
.mst-prad-live { width: 10px; height: 10px; border-radius: 50%; background: #5c5f66; flex: none; }
.mst-prad-live.on { background: #3cdc6a; animation: mst-pulse 1.4s ease-in-out infinite; }
@keyframes mst-pulse { 50% { opacity: .35; } }
.mst-prad-off { border: 1px solid #5c5f66; background: none; color: #fff; border-radius: 14px; padding: 4px 10px; font-weight: 700; cursor: pointer; }
.mst-prad-tabs { display: flex; border-bottom: 1px solid #e3e1da; }
.mst-prad-tabs button { flex: 1; border: 0; background: #fff; padding: 8px; font-weight: 800; color: #5c5f66; border-bottom: 3px solid transparent; cursor: pointer; }
.mst-prad-tabs button[aria-selected="true"] { color: #16171a; border-bottom-color: #1d6b34; }
.mst-prad-find { margin: 8px; padding: 8px 10px; border: 1px solid #c9ccd2; border-radius: 10px; font: inherit; }
.mst-radio-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.mst-prad-group summary { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; font-weight: 800; background: #f6f5f2; border-top: 1px solid #e3e1da; cursor: pointer; list-style: none; }
.mst-prad-group summary::-webkit-details-marker { display: none; }
.mst-prad-group summary small { font-weight: 700; color: #5c5f66; }
.mst-prad-row { display: flex; align-items: stretch; border-top: 1px solid #efeee9; }
.mst-prad-play { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 8px 12px; cursor: pointer; color: inherit; font: inherit; }
.mst-prad-play b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mst-prad-play small { display: block; font-size: 11px; color: #5c5f66; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mst-prad-row.playing b { color: #1d6b34; }
.mst-prad-fav { width: 42px; border: 0; background: none; color: #9aa1a9; font-size: 18px; cursor: pointer; }
.mst-prad-fav.on { color: #e3a505; }
.mst-prad-empty { padding: 16px; color: #5c5f66; }
.mst-nav { animation: none; }

/* Jetpack: Up and Down on the right, Land where Get out is; height shown under the speed. */
.mst-fly { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(196px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; pointer-events: auto; z-index: 3; }
.mst-fly .mst-pad { width: 70px; height: 62px; }
.mst-alt { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(182px + env(safe-area-inset-bottom, 0px)); padding: 4px 10px; background: rgba(22,23,26,.82); color: #fff; font: 800 14px/1.2 inherit; font-family: inherit; pointer-events: none; }
@media (max-height: 460px) { .mst-fly { flex-direction: row; bottom: calc(166px + env(safe-area-inset-bottom, 0px)); } .mst-fly .mst-pad { width: 62px; height: 54px; } .mst-alt { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); } }
/* Boosting (double-tap Up or Down): the button flashes orange until the boost has finished. */
.mst-fly .mst-pad.mst-boosting { background: #ff6a1a; color: #fff; border-color: #fff; }
