/* Food Truck Rush 3D - stage and in-game UI. Everything is scoped under #stage so site styles never leak in. */
html.pip-big, html.pip-big body { overflow: hidden; }
#stage { --ink:#2b2d42; --cream:#fff4e0; --org:#e8590c; --org-d:#b8430a; --grn:#2f9e44; --red:#e03131; --gold:#ffb703; --card:#ffffff;
  position: relative; width: min(100%, calc((100vh - 16px) * 0.62)); width: min(100%, calc((100svh - 16px) * 0.62)); min-width: min(100%, 300px); aspect-ratio: 9 / 14.5; margin: 0 auto; overflow: hidden;
  border-radius: 14px; background: #ffe8c7; color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", Verdana, system-ui, sans-serif; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; line-height: 1.25; }
#stage.is-big { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; z-index: 99999; }
html.pip-immersive #stage { width: 100%; max-width: none; aspect-ratio: auto; height: calc(var(--pip-vvh, 100dvh) - var(--pip-dock-h, 56px) - 24px); min-height: 320px; }
html.pip-immersive .er-bar, html.pip-immersive .er-keys { display: none; }
#stage *, #stage *::before, #stage *::after { box-sizing: border-box; }
#stage #app { position: absolute; left: 0; top: 0; right: 0; height: 38%; background: #bfe4ff; }
#stage.wide #app { right: 44%; height: 60%; }
#stage #app canvas { display: block; width: 100%; height: 100%; }
#stage #ui { position: absolute; inset: 0; pointer-events: none; }
#stage #ui button, #stage #ui .ft-screens, #stage #ui .ft-stations, #stage #ui .ft-panel { pointer-events: auto; }
#stage button { font-family: inherit; cursor: pointer; touch-action: manipulation; color: inherit; }
#stage button:focus-visible { outline: 3px solid #1971c2; outline-offset: 2px; }
#stage [hidden] { display: none !important; }
#stage img { display: block; -webkit-user-drag: none; pointer-events: none; }

#stage #loader { position: absolute; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: linear-gradient(#ffb347, #ffe8c7); }
#stage .load-in { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #5a2a05; text-align: center; padding: 0 18px; }
#stage .load-in b { font-size: clamp(20px, 6vw, 30px); letter-spacing: 2px; }
#stage .load-in span { font-size: 14px; }
#stage .spinner { width: 42px; height: 42px; border-radius: 50%; border: 6px solid rgba(90,42,5,.2); border-top-color: var(--org); animation: ftspin .8s linear infinite; }
@keyframes ftspin { to { transform: rotate(360deg); } }
#stage #ctxlost { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; background: rgba(30,20,10,.88); color: #fff; font-weight: 700; }
#stage .ft-noview { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; font-size: 14px; font-weight: 700; color: #5a2a05; background: linear-gradient(#ffd8a8, #ffe8c7); }

/* ---- HUD layout */
#stage .ft-hud { position: absolute; inset: 0; display: grid; grid-template-rows: 38% auto auto minmax(0, 1fr); pointer-events: none; }
#stage.wide .ft-hud { grid-template-columns: 56% 1fr; grid-template-rows: 60% 1fr; }
#stage .ft-view { grid-row: 1; position: relative; padding: max(6px, env(safe-area-inset-top)) 8px 0; }
#stage .ft-top { display: flex; gap: 6px; align-items: flex-start; }
#stage .ft-chip { background: rgba(43,45,66,.78); color: #fff; border-radius: 10px; padding: 3px 9px; min-width: 62px; display: flex; flex-direction: column; line-height: 1.05; }
#stage .ft-chip span { font-size: 9px; letter-spacing: 1px; opacity: .8; }
#stage .ft-chip b { font-size: 17px; font-variant-numeric: tabular-nums; }
#stage .ft-chip.low b { color: #ff8787; animation: ftblink .5s steps(2) infinite; }
#stage .ft-combo.hot { background: var(--org); }
#stage .ft-pause { margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(43,45,66,.78); display: flex; align-items: center; justify-content: center; gap: 5px; pointer-events: auto; padding: 0; }
#stage .ft-pause i { width: 5px; height: 18px; border-radius: 2px; background: #fff; display: block; }
#stage .ft-goal { position: relative; margin-top: 7px; height: 12px; border-radius: 6px; background: rgba(43,45,66,.55); }
#stage .ft-gfill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, #ffd43b, #ff922b); }
#stage .ft-star { position: absolute; top: -7px; transform: translateX(-50%); font-size: 20px; line-height: 1; color: rgba(255,255,255,.55); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
#stage .ft-star.got { color: var(--gold); }
#stage .ft-rushtag { position: absolute; left: 8px; right: 8px; bottom: 6px; text-align: center; font-size: 12px; font-weight: 800; color: #fff; background: rgba(224,49,49,.85); border-radius: 8px; padding: 3px 6px; animation: ftblink 1s steps(2) infinite; }
#stage .ft-banner { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font-size: 26px; font-weight: 900; color: #fff; text-shadow: 0 3px 0 rgba(43,45,66,.6); animation: ftpop .35s ease-out; pointer-events: none; }
#stage .ft-banner.pay { font-size: 22px; color: #ffe066; }
#stage .ft-banner.rush { color: #ff8787; font-size: 32px; }
#stage .ft-hint { position: absolute; left: 8px; right: 8px; top: 38%; transform: translateY(-104%); background: rgba(255,255,255,.96); color: var(--ink); border: 2px solid var(--org); border-radius: 12px; padding: 6px 9px; font-size: 13px; font-weight: 700; z-index: 3; }
#stage.wide .ft-hint { right: 46%; top: 60%; }
@keyframes ftblink { 50% { opacity: .45; } }
@keyframes ftpop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---- tickets */
#stage .ft-tickets { grid-row: 2; display: flex; gap: 5px; padding: 6px 6px 3px; min-height: 88px; }
#stage.wide .ft-tickets { grid-column: 1; grid-row: 2; }
#stage .ft-ticket { flex: 1 1 0; min-width: 0; background: var(--cream); border: 2px solid #e8c48a; border-radius: 10px; padding: 3px 4px 4px; display: flex; flex-direction: column; gap: 3px; transition: border-color .15s; }
#stage .ft-ticket.empty { opacity: .45; background: #f4e8d4; border-style: dashed; }
#stage .ft-ticket.warn { border-color: #f59f00; }
#stage .ft-ticket.crit { border-color: var(--red); animation: ftblink .6s steps(2) infinite; }
#stage .ft-pbar { height: 7px; border-radius: 4px; background: #e0d2b8; overflow: hidden; }
#stage .ft-pfill { height: 100%; width: 100%; background: #51cf66; }
#stage .ft-ticket.warn .ft-pfill { background: #f59f00; }
#stage .ft-ticket.crit .ft-pfill { background: var(--red); }
#stage .ft-dishes { display: flex; flex-direction: column; gap: 3px; }
#stage .ft-dish { display: flex; flex-direction: column; gap: 1px; border-top: 1px dashed #e0c898; padding-top: 2px; }
#stage .ft-dish:first-child { border-top: 0; padding-top: 0; }
#stage .ft-dish.done { opacity: .35; text-decoration: line-through; }
#stage .ft-dn { font-size: 10px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#stage .ft-steps { display: flex; flex-wrap: wrap; gap: 1px; }
#stage .ft-mini { width: 17px; height: 17px; opacity: .55; filter: grayscale(.4); border-radius: 4px; }
#stage .ft-mini.on { opacity: 1; filter: none; outline: 2px solid var(--grn); outline-offset: -1px; background: #d3f9d8; }
#stage .w4 .ft-mini { width: 14px; height: 14px; }
#stage .w4 .ft-dn { font-size: 9px; }

/* ---- tray bar */
#stage .ft-traybar { grid-row: 3; display: flex; align-items: center; gap: 6px; padding: 3px 8px; min-height: 44px; }
#stage.wide .ft-traybar { grid-column: 2; grid-row: 1; align-self: end; }
#stage .ft-tray { display: flex; align-items: center; gap: 2px; flex: 0 1 auto; min-width: 74px; min-height: 36px; background: #fff; border: 2px solid #d9c9a8; border-radius: 10px; padding: 2px 5px; }
#stage .ft-tic { width: 26px; height: 26px; }
#stage .ft-empty { font-size: 11px; opacity: .6; }
#stage .ft-msg { flex: 1; font-size: 12px; font-weight: 800; color: var(--org-d); min-width: 0; }
#stage .ft-trash { touch-action: none; min-width: 64px; min-height: 44px; border: 0; border-radius: 12px; background: #adb5bd; color: #fff; font-weight: 800; font-size: 13px; pointer-events: auto; box-shadow: 0 3px 0 #868e96; }
#stage .ft-trash.on { background: var(--red); box-shadow: 0 3px 0 #a61e1e; }

/* ---- stations */
#stage .ft-stations { grid-row: 4; display: grid; gap: 6px; padding: 4px 8px 8px; grid-template-columns: repeat(5, 1fr); grid-auto-rows: minmax(46px, 78px); align-content: center; touch-action: none; }
#stage.wide .ft-stations { grid-column: 2; grid-row: 2; }
#stage .ft-stations.c4 { grid-template-columns: repeat(4, 1fr); }
#stage .ft-stations.locked { opacity: .5; }
#stage .ft-st { position: relative; min-width: 44px; min-height: 46px; background: #fff; border: 2px solid var(--c); border-radius: 14px; box-shadow: 0 3px 0 var(--c); padding: 3px 2px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; touch-action: none; }
#stage .ft-st:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--c); }
#stage .ft-sic { width: 62%; max-width: 44px; aspect-ratio: 1; }
#stage .ft-sn { font-size: 10px; font-weight: 800; line-height: 1.1; }
#stage .ft-sk { position: absolute; top: 2px; right: 4px; font-size: 9px; opacity: .45; font-weight: 800; }
#stage .ft-st.next { animation: ftglow .8s ease-in-out infinite alternate; background: #fff9db; }
#stage .ft-st.ready { background: #ebfbee; }
@keyframes ftglow { from { box-shadow: 0 3px 0 var(--c), 0 0 0 0 rgba(255,183,3,.9); } to { box-shadow: 0 3px 0 var(--c), 0 0 0 5px rgba(255,183,3,.0); } }
#stage .ft-slots { position: absolute; left: 4px; right: 4px; bottom: 3px; display: flex; gap: 3px; }
#stage .ft-pip { flex: 1; height: 8px; border-radius: 4px; background: #dee2e6; overflow: hidden; display: block; }
#stage .ft-pip i { display: block; height: 100%; width: 0; background: #ff922b; }
#stage .ft-pip.ready i { background: #40c057; }
#stage .ft-pip.ready.late i { background: #f59f00; }
#stage .ft-pip.burnt { background: #343a40; }
#stage .ft-pip.burnt i { background: #343a40; }

/* ---- screens */
#stage .ft-screens { position: absolute; inset: 0; z-index: 20; overflow-y: auto; overflow-x: hidden; touch-action: pan-y; -webkit-overflow-scrolling: touch; background: linear-gradient(rgba(255,232,199,.94), rgba(255,214,160,.97)); }
#stage .ft-panel { display: flex; flex-direction: column; gap: 9px; padding: 16px 18px 20px; max-width: 420px; margin: 0 auto; min-height: 100%; justify-content: center; }
#stage .ft-panel h2 { font-size: 22px; text-align: center; }
#stage .ft-panel h3 { font-size: 15px; margin-top: 4px; }
#stage .ft-sub { text-align: center; font-size: 13px; opacity: .85; }
#stage .ft-note, #stage .ft-goaltxt { font-size: 12px; text-align: center; opacity: .85; }
#stage .ft-goaltxt { font-weight: 800; color: var(--org-d); opacity: 1; }
#stage .ft-logo { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 4px; }
#stage .ft-logo b { font-size: 34px; letter-spacing: 2px; line-height: 1; color: #5a2a05; text-shadow: 0 3px 0 #fff; }
#stage .ft-logo b.rush { font-size: 46px; color: var(--org); }
#stage .ft-logo span { font-size: 12px; margin-top: 6px; opacity: .8; }
#stage .ft-wallet { display: flex; justify-content: center; gap: 14px; font-weight: 800; font-size: 14px; }
#stage .ft-btn { min-height: 48px; border: 0; border-radius: 14px; padding: 8px 14px; font-size: 16px; font-weight: 800; background: #fff; color: var(--ink); box-shadow: 0 4px 0 #d3b98a; }
#stage .ft-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #d3b98a; }
#stage .ft-btn.primary { background: var(--org); color: #fff; box-shadow: 0 4px 0 var(--org-d); }
#stage .ft-btn.accent { background: #1971c2; color: #fff; box-shadow: 0 4px 0 #0b4a8c; }
#stage .ft-btn.danger { background: var(--red); color: #fff; box-shadow: 0 4px 0 #a61e1e; }
#stage .ft-btn.ghost { background: rgba(255,255,255,.55); box-shadow: 0 3px 0 #d9c4a0; }
#stage .ft-btn.big { min-height: 56px; font-size: 19px; }
#stage .ft-btn.sm { min-height: 44px; min-width: 76px; font-size: 14px; }
#stage .ft-two { display: flex; gap: 8px; }
#stage .ft-two .ft-btn { flex: 1; }
#stage .ft-locked { text-align: center; font-size: 13px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.4); font-weight: 700; }
#stage .ft-tabs { display: flex; gap: 6px; justify-content: center; }
#stage .ft-tab { width: 44px; height: 44px; border-radius: 12px; border: 2px solid #d3b98a; background: #fff; font-weight: 800; font-size: 16px; }
#stage .ft-tab.sel { background: var(--org); color: #fff; border-color: var(--org-d); }
#stage .ft-tab.lock { opacity: .5; }
#stage .ft-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#stage .ft-lvl { min-height: 84px; border: 2px solid #d3b98a; border-radius: 14px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; }
#stage .ft-lvl b { font-size: 22px; }
#stage .ft-lvl .ft-stars { color: var(--gold); font-size: 15px; letter-spacing: 1px; }
#stage .ft-lvl small { font-size: 10px; opacity: .75; }
#stage .ft-lvl.lock { opacity: .5; background: #eee3d0; }
#stage .ft-goals { display: flex; justify-content: center; gap: 10px; }
#stage .ft-goal-i { background: #fff; border-radius: 12px; padding: 6px 10px; text-align: center; display: flex; flex-direction: column; font-size: 13px; }
#stage .ft-goal-i span { color: var(--gold); font-size: 15px; }
#stage .ft-dishlist { display: flex; flex-direction: column; gap: 5px; }
#stage .ft-dl { background: #fff; border-radius: 10px; padding: 5px 8px; display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; font-size: 13px; }
#stage .ft-dl .ft-steps { grid-column: 1 / 3; }
#stage .ft-dl .ft-mini { opacity: 1; filter: none; width: 22px; height: 22px; }
#stage .ft-ups { display: flex; flex-direction: column; gap: 6px; }
#stage .ft-up { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 7px 9px; }
#stage .ft-uptxt { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
#stage .ft-uptxt small { font-size: 11px; opacity: .75; }
#stage .ft-lpips { display: flex; gap: 3px; margin-top: 2px; }
#stage .ft-lpips i { width: 14px; height: 6px; border-radius: 3px; background: #dee2e6; display: block; }
#stage .ft-lpips i.on { background: var(--grn); }
#stage .ft-buy { min-width: 64px; min-height: 44px; border: 0; border-radius: 12px; background: var(--grn); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 3px 0 #1f7a33; }
#stage .ft-buy.no, #stage .ft-buy:disabled { background: #adb5bd; box-shadow: 0 3px 0 #868e96; }
#stage .ft-swatches { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
#stage .ft-sw { width: 48px; height: 48px; border-radius: 12px; border: 3px solid #fff; color: #fff; font-size: 11px; font-weight: 800; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
#stage .ft-sw.sel { border-color: var(--ink); }
#stage .ft-trophies { display: flex; flex-direction: column; gap: 5px; }
#stage .ft-tro { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; background: #fff; border-radius: 10px; padding: 6px 9px; font-size: 13px; opacity: .8; }
#stage .ft-tro small { grid-column: 1; font-size: 11px; opacity: .75; }
#stage .ft-tro span { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 12px; font-weight: 800; }
#stage .ft-tro.done { opacity: 1; background: #ebfbee; }
#stage .ft-set { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border-radius: 12px; padding: 6px 10px; font-weight: 800; }
#stage .ft-segs { display: flex; gap: 4px; }
#stage .ft-seg { min-height: 44px; min-width: 56px; border: 2px solid #d3b98a; border-radius: 10px; background: #fff; font-weight: 800; font-size: 13px; }
#stage .ft-seg.sel { background: var(--org); color: #fff; border-color: var(--org-d); }
#stage .ft-bigstars { display: flex; justify-content: center; gap: 6px; font-size: 52px; line-height: 1; }
#stage .ft-bigstars span { color: #ced4da; }
#stage .ft-bigstars span.on { color: var(--gold); text-shadow: 0 3px 0 #b8860b; }
#stage .ft-record { text-align: center; font-weight: 900; color: var(--org); }
#stage .ft-rows { background: #fff; border-radius: 12px; padding: 4px 10px; }
#stage .ft-row { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; border-bottom: 1px solid #f1e6d0; }
#stage .ft-row:last-child { border: 0; }
#stage .ft-ach { background: #fff3bf; border-radius: 10px; padding: 6px 9px; font-size: 13px; font-weight: 800; text-align: center; }
#stage .ft-toast { position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 30; background: rgba(43,45,66,.92); color: #fff; padding: 9px 12px; border-radius: 12px; text-align: center; font-size: 13px; font-weight: 700; pointer-events: none; }
#stage.wide .ft-panel { max-width: 520px; }
@media (prefers-reduced-motion: reduce) { #stage * { animation: none !important; transition: none !important; } }

/* ---- page chrome under the game */
.er-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: .75rem 0 .25rem; }
.er-bar .btn { min-height: 44px; min-width: 44px; }
.er-keys { text-align: center; font-size: .8rem; color: #64748b; margin: .25rem 0 0; }
.er-guide { max-width: 640px; margin: 1.5rem auto; padding: 0 1rem; line-height: 1.6; }
.er-guide h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.er-guide h3 { font-size: 1rem; margin: 1rem 0 .25rem; }
.er-guide p { margin-bottom: .5rem; font-size: .95rem; }

#stage .ft-meter { position: relative; height: 12px; border-radius: 8px; background: #e9ecef; overflow: hidden; margin: 2px 0; }
#stage .ft-meter i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #ffa94d, #e8590c); border-radius: 8px; transform-origin: left; animation: ft-fill .7s ease-out both; }
#stage .ft-meter b { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: #fff; }
#stage .ft-bigstars span.on { animation: ft-pop .45s cubic-bezier(.2,1.6,.4,1) both; }
#stage .ft-bigstars span.on:nth-child(2) { animation-delay: .15s; }
#stage .ft-bigstars span.on:nth-child(3) { animation-delay: .3s; }
@keyframes ft-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ft-pop { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #stage .ft-meter i, #stage .ft-bigstars span.on { animation: none; } }

/* Wave 3: full screen fill, native and immersive, portrait and landscape. */
html.pip-native #stage, #stage:fullscreen, #stage:-webkit-full-screen { width: 100%; max-width: none; height: 100%; aspect-ratio: auto; border-radius: 0; min-height: 0; }
html.pip-immersive #stage { height: calc(var(--pip-vvh, 100dvh) - var(--pip-dock-h, 52px)); min-height: 0; border-radius: 0; }
html.pip-immersive .game-header, html.pip-immersive .ad-well, html.pip-immersive .er-guide, html.pip-immersive .game-title,
html.pip-immersive #similar-games, html.pip-immersive footer, html.pip-native .er-bar, html.pip-native .er-keys { display: none !important; }
html.pip-immersive .game-wrap, html.pip-native .game-wrap { padding: 0; max-width: none; }
html.pip-immersive #bigbtn, html.pip-native #bigbtn, #stage:fullscreen #bigbtn { display: none !important; }
html.pip-immersive #stage .ft-view, html.pip-native #stage .ft-view { padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
html.pip-immersive #stage .ft-stations, html.pip-native #stage .ft-stations { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
html.pip-immersive #stage #app canvas, html.pip-native #stage #app canvas { image-rendering: auto; }
/* Softer, deeper finish on the street view. */
#stage #app::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,0) 55%, rgba(60,30,0,.22) 100%), linear-gradient(rgba(255,255,255,.10), rgba(255,255,255,0) 30%, rgba(60,30,0,.14)); }
#stage .ft-chip { box-shadow: 0 2px 6px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.14); backdrop-filter: blur(2px); }
#stage button:active { transform: translateY(1px) scale(.98); transition: transform .06s; }
@media (prefers-reduced-motion: reduce) { #stage *, #stage *::before, #stage *::after { animation-duration: .01ms !important; } }

/* Wave 5: full screen on phones. Taller street view in portrait; two-column menu in landscape. */
html.pip-immersive #stage:not(.wide) #app, html.pip-native #stage:not(.wide) #app { height: 44%; }
html.pip-immersive #stage:not(.wide) .ft-hud, html.pip-native #stage:not(.wide) .ft-hud { grid-template-rows: 44% auto auto minmax(0, 1fr); }
html.pip-immersive #stage:not(.wide) .ft-hint, html.pip-native #stage:not(.wide) .ft-hint { top: 44%; }
@media (orientation: landscape) and (max-height: 520px) {
  html.pip-immersive #stage .ft-menu, html.pip-native #stage .ft-menu { display: grid; grid-template-columns: 1fr 1.1fr; column-gap: 16px; row-gap: 6px; max-width: 640px; align-content: center; padding: 8px 14px; min-height: 100%; }
  html.pip-immersive #stage .ft-menu .ft-btn, html.pip-native #stage .ft-menu .ft-btn { min-height: 44px; padding: 4px 12px; font-size: 15px; }
  html.pip-immersive #stage .ft-menu > :nth-child(1), html.pip-native #stage .ft-menu > :nth-child(1) { grid-column: 1; grid-row: 1 / span 2; align-self: end; }
  html.pip-immersive #stage .ft-menu > :nth-child(2), html.pip-native #stage .ft-menu > :nth-child(2) { grid-column: 1; grid-row: 3; }
  html.pip-immersive #stage .ft-menu > :nth-child(3), html.pip-native #stage .ft-menu > :nth-child(3) { grid-column: 2; grid-row: 1; }
  html.pip-immersive #stage .ft-menu > :nth-child(4), html.pip-native #stage .ft-menu > :nth-child(4) { grid-column: 2; grid-row: 2; }
  html.pip-immersive #stage .ft-menu > :nth-child(5), html.pip-native #stage .ft-menu > :nth-child(5) { grid-column: 2; grid-row: 3; }
  html.pip-immersive #stage .ft-menu > :nth-child(6), html.pip-native #stage .ft-menu > :nth-child(6) { grid-column: 2; grid-row: 4; }
  html.pip-immersive #stage .ft-menu > :nth-child(7), html.pip-native #stage .ft-menu > :nth-child(7) { grid-column: 2; grid-row: 5; }
  html.pip-immersive #stage .ft-menu > :nth-child(8), html.pip-native #stage .ft-menu > :nth-child(8) { grid-column: 2; grid-row: 6; }
  html.pip-immersive #stage .ft-menu > :nth-child(9), html.pip-native #stage .ft-menu > :nth-child(9) { grid-column: 1; grid-row: 4 / span 2; align-self: start; }
  html.pip-immersive #stage .ft-menu > :nth-child(10), html.pip-native #stage .ft-menu > :nth-child(10) { grid-column: 1; grid-row: 6; }
  html.pip-immersive #stage .ft-menu .ft-logo b { font-size: 28px; }
  html.pip-immersive #stage .ft-menu .ft-logo b.rush { font-size: 36px; }
}
