/* The window that presents the RDash app, opened by every "Download RDash" link. */
body.ap-open { overflow: hidden; }
.ap-modal { position: fixed; z-index: 10200; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(3, 5, 10, .92); opacity: 0; transition: opacity .28s ease; }
.ap-modal[hidden] { display: none; }
.ap-modal.is-open { opacity: 1; }
.ap-box { position: relative; display: flex; flex-direction: column; width: min(1000px, 100%); max-height: min(94vh, 900px); overflow: hidden; border: 1px solid rgba(255, 255, 255, .13); border-radius: 26px; background: #0a0f1a; box-shadow: 0 40px 120px -30px #000; transform: translateY(18px) scale(.97); transition: transform .4s cubic-bezier(.2, .9, .25, 1); }
.ap-modal.is-open .ap-box { transform: none; }
.ap-x { position: absolute; z-index: 5; top: 14px; right: 14px; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; background: rgba(8, 12, 20, .75); color: #dbe4f3; cursor: pointer; transition: background .2s ease, transform .3s ease; }
.ap-x::before, .ap-x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.ap-x::after { transform: rotate(-45deg); }
.ap-x:hover { background: rgba(255, 255, 255, .16); transform: rotate(90deg); }

.ap-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 28px 34px 22px; background: radial-gradient(60% 34% at 50% 0%, rgba(110, 130, 255, .2), transparent 70%); scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.ap-top { max-width: 640px; margin: 0 auto 18px; text-align: center; }
.ap-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ap-logo { width: 32px; height: 32px; padding: 5px; border: 1px solid rgba(160, 200, 255, .35); border-radius: 10px; background: rgba(255, 255, 255, .07); box-sizing: border-box; }
.ap-brand span { color: #aebbd6; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ap-top h2 { margin: 0 0 8px; color: #fff; font-size: clamp(25px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.ap-top h2 em { font-style: normal; background: linear-gradient(90deg, #b9a4ff, #6fc0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-lead { margin: 0; color: #a9b7d0; font-size: 15px; line-height: 1.55; }

.ap-preview { max-width: 820px; margin: 0 auto 22px; }
.ap-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; background: #101a3a; box-shadow: 0 30px 70px -30px #000, 0 0 0 5px rgba(255, 255, 255, .03); }
.ap-preview figcaption { margin-top: 10px; color: #7f8da8; font-size: 12.5px; text-align: center; }

/* ---- the overlay picture (1280 x 720, scaled by the script) */
.apo-stage { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; color: #e8eef8; font-family: Inter, "Segoe UI", system-ui, sans-serif; text-align: left; pointer-events: none; user-select: none; }
.apo-stage svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.apo-scene, .apo-game, .apo-dim { position: absolute; inset: 0; width: 100%; height: 100%; }
.apo-scene { overflow: hidden; background: linear-gradient(180deg, #2b3b86 0%, #4f6fd0 48%, #92bdf0 100%); }
.apo-game { object-fit: cover; }
.apo-sun { position: absolute; left: 56%; top: 12%; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, #fff7d6 0 35%, rgba(255, 233, 160, .4) 60%, transparent 72%); }
.apo-hill { position: absolute; bottom: -30%; border-radius: 50%; }
.apo-hill.a { left: -8%; width: 68%; height: 66%; background: #1f6b4f; }
.apo-hill.b { right: -14%; width: 74%; height: 58%; background: #2a8a60; }
.apo-block { position: absolute; bottom: 17%; border-radius: 16px; box-shadow: inset -12px -12px 0 rgba(0, 0, 0, .18); }
.apo-block.a { left: 33%; width: 96px; height: 96px; background: #e2b84d; }
.apo-block.b { left: 44%; width: 70px; height: 70px; background: #ef6f6f; }
.apo-block.c { left: 53%; width: 118px; height: 118px; background: #5aa9ff; }
.apo-dim { background: radial-gradient(900px 520px at 50% 0%, rgba(74, 168, 255, .1), transparent 70%), radial-gradient(ellipse at center, rgba(4, 7, 13, .18), rgba(4, 7, 13, .62)); }
.apo-panel { border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; background: rgba(10, 15, 25, .88); box-shadow: 0 24px 70px rgba(0, 0, 0, .5); }
.apo-friends { position: absolute; left: 18px; top: 18px; bottom: 18px; display: flex; width: 304px; flex-direction: column; box-sizing: border-box; padding: 16px 14px 14px; }
.apo-head { display: flex; align-items: center; gap: 12px; margin: 0 4px 12px; }
.apo-head-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: rgba(74, 168, 255, .16); color: #4aa8ff; }
.apo-head > span:last-child { display: grid; gap: 2px; }
.apo-head b { font-size: 16px; font-weight: 800; }
.apo-head small { color: #34d399; font-size: 12px; font-weight: 650; }
.apo-search { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; background: rgba(255, 255, 255, .045); color: #66738a; font-size: 13px; }
.apo-friends ul { flex: 1; min-height: 0; margin: 0; padding: 0; overflow: hidden; list-style: none; }
.apo-group { display: flex; align-items: center; gap: 8px; padding: 14px 6px 6px; color: #66738a; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.apo-group::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .16), transparent); }
.apo-group em { padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #8d9ab0; font-style: normal; letter-spacing: 0; }
.apo-group.is-live { color: #34d399; }
.apo-friend.is-off { opacity: .55; }
.apo-friend b { font-size: 14px; font-weight: 750; }
.apo-friend small { color: #8d9ab0; font-size: 12px; }
.apo-friend.is-game small { color: #34d399; }
.apo-social { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; border: 1px solid rgba(74, 168, 255, .5); border-radius: 14px; background: linear-gradient(180deg, rgba(74, 168, 255, .34), rgba(74, 168, 255, .14)); font-size: 14px; font-weight: 750; }
.apo-right { position: absolute; right: 18px; top: 18px; display: grid; width: 296px; gap: 12px; align-content: start; }
.apo-status { display: grid; gap: 10px; padding: 14px 16px; }
.apo-line { display: flex; align-items: center; gap: 11px; }
.apo-line svg { color: #4aa8ff; }
.apo-line b { font-size: 15px; font-weight: 800; }
.apo-line.is-split { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .09); }
.apo-ping { color: #34d399; }
.apo-clock { margin-left: auto; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 13.5px; font-weight: 800; }
.apo-now { overflow: hidden; }
.apo-now-head { display: grid; gap: 3px; padding: 16px 18px 14px; border-bottom: 1px solid rgba(255, 255, 255, .09); background: linear-gradient(135deg, rgba(74, 168, 255, .16), transparent 70%); }
.apo-now-head small { display: flex; align-items: center; gap: 7px; color: #34d399; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.apo-now-head small i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
.apo-now-head b { font-size: 17px; font-weight: 800; }
.apo-now-head span { color: #8d9ab0; font-size: 12px; }
.apo-now-body { display: grid; gap: 8px; padding: 12px; }
.apo-servers { padding: 8px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 18px; background: rgba(255, 255, 255, .025); }
.apo-servers em { display: block; margin: 0 4px 7px; color: #8d9ab0; font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.apo-servers > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.apo-servers span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 62px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; background: rgba(255, 255, 255, .045); font-size: 11px; font-weight: 750; }
.apo-servers span svg { width: 22px; height: 22px; color: #4aa8ff; }
.apo-menu { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; background: rgba(255, 255, 255, .045); font-size: 13.5px; font-weight: 700; }
.apo-menu svg { color: #4aa8ff; }
.apo-menu.is-clip svg { color: #ff5d6c; }
.apo-display svg { color: #4aa8ff; }
.apo-keys { position: absolute; left: 50%; bottom: 34px; display: flex; align-items: center; gap: 9px; padding: 12px 20px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; background: rgba(10, 15, 25, .9); transform: translateX(-50%); white-space: nowrap; box-shadow: 0 20px 50px -16px #000; }
.apo-keys kbd { padding: 6px 13px; border: 1px solid rgba(255, 255, 255, .28); border-bottom-width: 3px; border-radius: 9px; background: rgba(255, 255, 255, .1); color: #fff; font: 800 18px/1.2 ui-monospace, Consolas, monospace; }
.apo-keys b { color: #8d9ab0; }
.apo-keys span { margin-left: 6px; color: #cbd6ea; font-size: 18px; font-weight: 650; }

.ap-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.ap-features li { padding: 16px 15px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; background: rgba(255, 255, 255, .035); }
.ap-ico { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 11px; border-radius: 12px; background: linear-gradient(135deg, rgba(143, 107, 255, .3), rgba(74, 168, 255, .25)); color: #d6e4ff; }
.ap-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ap-features strong { display: block; margin-bottom: 5px; color: #fff; font-size: 14.5px; font-weight: 750; }
.ap-features p { margin: 0; color: #9aa8c2; font-size: 13px; line-height: 1.5; }
.ap-extras { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.ap-extras span { color: #7f8da8; font-size: 12.5px; font-weight: 700; }
.ap-extras i { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .055); color: #cdd8ec; font-size: 12.5px; font-style: normal; font-weight: 600; }
.ap-note { margin: 14px 0 0; color: #7f8da8; font-size: 12.5px; line-height: 1.5; text-align: center; }
.ap-note a { color: #c9a6ff; font-weight: 700; text-decoration: none; }
.ap-note a:hover { text-decoration: underline; }

/* ---- the bar with the button: always in view */
.ap-bar { display: flex; flex: none; align-items: center; gap: 14px; padding: 15px 22px; border-top: 1px solid rgba(255, 255, 255, .1); background: #0d1423; }
.ap-bar-info { display: grid; flex: 1; min-width: 0; gap: 2px; }
.ap-bar-info strong { color: #fff; font-size: 14.5px; font-weight: 750; }
.ap-bar-info small { color: #8d9cb8; font-size: 12.5px; }
.ap-later { flex: none; padding: 11px 16px; border: 0; border-radius: 12px; background: transparent; color: #93a2bd; font: 650 13.5px/1 Inter, sans-serif; cursor: pointer; transition: background .2s ease, color .2s ease; }
.ap-later:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.ap-download { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 11px; min-height: 52px; padding: 0 30px; overflow: hidden; border-radius: 15px; background: linear-gradient(135deg, #8f6bff, #4aa8ff 75%); color: #fff; font-size: 17px; font-weight: 800; text-decoration: none; box-shadow: 0 14px 36px -12px rgba(120, 110, 255, .95); transition: transform .2s ease, filter .2s ease; }
.ap-download::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%); transform: translateX(-120%); animation: ap-sweep 3.6s ease-in-out infinite; }
@keyframes ap-sweep { 55%, 100% { transform: translateX(120%); } }
.ap-download:hover { transform: translateY(-2px); filter: brightness(1.1); }
.ap-download svg { position: relative; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ap-download span { position: relative; }
.ap-modal.is-started .ap-download { background: linear-gradient(135deg, #22c58b, #4ade9b); }

@media (max-width: 860px) { .ap-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
    .ap-modal { padding: 8px; }
    .ap-box { max-height: calc(100dvh - 16px); border-radius: 20px; }
    .ap-body { padding: 22px 14px 16px; }
    .ap-features { grid-template-columns: 1fr; }
    .ap-bar { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
    .ap-bar-info { flex-basis: 100%; text-align: center; }
    .ap-download { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .ap-download::before { animation: none; } }

/* ---- the looping demonstration of the overlay (scripts/app-promo.js) */
.apo-friend { display: block; padding: 0; border-radius: 14px; transition: background .25s ease; }
.apo-row { display: flex; align-items: center; gap: 12px; padding: 7px 8px; }
.apo-row > i { display: grid; flex: none; place-items: center; width: 40px; height: 40px; box-sizing: border-box; border: 2px solid #34d399; border-radius: 50%; background: linear-gradient(140deg, hsl(var(--h) 70% 58%), hsl(var(--h) 65% 36%)); color: #fff; font-size: 16px; font-style: normal; font-weight: 800; }
.apo-friend.is-online .apo-row > i { border-color: #4aa8ff; }
.apo-friend.is-off .apo-row > i { border-color: #475569; }
.apo-row > span { display: grid; flex: 1; gap: 1px; min-width: 0; }
.apo-row > svg { color: #66738a; transition: transform .3s ease; }
.apo-actions { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .38s cubic-bezier(.2, .9, .25, 1), opacity .25s ease; }
.apo-actions > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: 8px; min-height: 0; overflow: hidden; padding: 0 10px; }
.apo-mini { display: flex; align-items: center; justify-content: center; gap: 7px; height: 38px; border: 1px solid rgba(74, 168, 255, .4); border-radius: 12px; background: rgba(74, 168, 255, .15); color: #e1f0ff; font-size: 12.5px; font-weight: 700; }
.apo-stage .apo-mini svg { width: 15px; height: 15px; }
.apo-mini.is-invite { border-color: rgba(110, 231, 183, .4); background: rgba(16, 185, 129, .16); color: #d1fae5; }
.apo-mini.is-join { grid-column: 1 / -1; border-color: rgba(110, 231, 183, .6); background: linear-gradient(180deg, #2fd39c, #14b87f); color: #04281b; font-weight: 800; transition: filter .2s ease, transform .2s ease; }
.is-friend-open .apo-friend:has(.apo-actions) { background: rgba(255, 255, 255, .05); }
.is-friend-open .apo-actions { grid-template-rows: 1fr; opacity: 1; }
.is-friend-open .apo-actions > div { padding-bottom: 10px; }
.is-friend-open .apo-row > svg { transform: rotate(180deg); }
.is-join-hover .apo-mini.is-join { filter: brightness(1.14); transform: translateY(-1px); box-shadow: 0 0 22px -4px rgba(52, 211, 153, .8); }
.apo-friends ul { -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent); mask-image: linear-gradient(180deg, #000 88%, transparent); }

.apo-ping { transition: color .2s ease; }
.apo-ping.is-high { color: #fbbf24; }
.apo-fps { font-variant-numeric: tabular-nums; }

/* "Playing now" folds up while Display is open, so everything fits */
.apo-now-body { max-height: 340px; overflow: hidden; transition: max-height .45s cubic-bezier(.2, .9, .25, 1), padding .45s ease, opacity .3s ease; }
.is-display-open .apo-now-body { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
.apo-display { display: block; padding: 0; overflow: hidden; }
.apo-display-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; font-size: 14px; font-weight: 750; }
.apo-display-head span { flex: 1; }
.apo-display-head svg:last-child { color: #66738a; transform: rotate(180deg); transition: transform .3s ease; }
.is-display-open .apo-display-head svg:last-child { transform: none; }
.apo-display-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .9, .25, 1); }
.apo-display-body > div { min-height: 0; overflow: hidden; }
.is-display-open .apo-display-body { grid-template-rows: 1fr; }
.apo-sliders { display: grid; gap: 15px; padding: 14px 16px 18px; border-top: 1px solid rgba(255, 255, 255, .09); }
.apo-slider > div, .apo-select { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.apo-slider b, .apo-select b { color: #dbe5f2; font-weight: 700; }
.apo-slider output { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .09); color: #fff; font-size: 11.5px; font-weight: 750; font-variant-numeric: tabular-nums; }
.apo-track { position: relative; display: block; height: 5px; margin-top: 12px; border-radius: 999px; background: linear-gradient(90deg, #4aa8ff var(--p), rgba(255, 255, 255, .18) var(--p)); }
.apo-slider.is-warm .apo-track { background: linear-gradient(90deg, #6aa8ff, #e2e8f0 50%, #ffb23f); }
.apo-track i { position: absolute; top: 50%; left: var(--p); width: 15px; height: 15px; border: 3px solid #4aa8ff; border-radius: 50%; background: #fff; box-sizing: border-box; transform: translate(-50%, -50%); }
.apo-select span { padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; background: rgba(255, 255, 255, .05); font-weight: 700; }

.apo-tint { position: absolute; inset: 0; display: none; opacity: 0; pointer-events: none; }
.apo-gamma { mix-blend-mode: soft-light; }
.apo-warmth { mix-blend-mode: multiply; }
/* while the picture is being tuned the shade over the game goes away, so every change is seen as it is */
.is-display-open .apo-dim { opacity: .12; }
.apo-default { display: flex; align-items: center; justify-content: center; height: 34px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 11px; background: rgba(255, 255, 255, .06); font-size: 12.5px; font-weight: 750; }
.is-drag .apo-cursor { transition: transform .1s linear, opacity .3s ease; }

/* saving a clip */
.apo-menu.is-clip { transition: border-color .2s ease, background .2s ease; }
.is-saving .apo-menu.is-clip { border-color: rgba(255, 93, 108, .7); background: rgba(255, 93, 108, .16); }
.is-saving .apo-menu.is-clip svg { animation: apo-rec .65s ease-in-out infinite alternate; }
@keyframes apo-rec { to { transform: scale(1.22); filter: drop-shadow(0 0 7px #ff5d6c); } }
.apo-toast { position: absolute; left: 50%; top: 26px; display: flex; align-items: center; gap: 13px; padding: 13px 22px 13px 18px; border: 1px solid rgba(52, 211, 153, .5); border-radius: 16px; background: rgba(10, 15, 25, .94); box-shadow: 0 22px 50px -18px #000; opacity: 0; transform: translate(-50%, -22px); transition: opacity .3s ease, transform .45s cubic-bezier(.2, 1.3, .4, 1); }
.apo-stage .apo-toast svg { width: 26px; height: 26px; color: #34d399; }
.apo-toast span { display: grid; gap: 1px; }
.apo-toast b { font-size: 16px; font-weight: 800; }
.apo-toast small { color: #8d9ab0; font-size: 12.5px; }
.is-saved .apo-toast { opacity: 1; transform: translate(-50%, 0); }

/* opening and closing the overlay */
.apo-friends, .apo-right { transition: opacity .38s ease, transform .5s cubic-bezier(.2, .9, .25, 1); }
.apo-dim { transition: opacity .4s ease; }
.apo-keys { transition: transform .35s ease; }
.is-off .apo-friends { opacity: 0; transform: translateX(-70px); }
.is-off .apo-right { opacity: 0; transform: translateX(70px); }
.is-off .apo-dim { opacity: 0; }
.apo-keys kbd { transition: transform .12s ease, background .12s ease, box-shadow .12s ease, border-bottom-width .12s ease; }
.is-keys-down .apo-keys kbd { background: #3b82f6; border-bottom-width: 1px; box-shadow: 0 0 24px rgba(74, 168, 255, .9); transform: translateY(2px); }

/* the game tools and the music bar */
.apo-tools { display: grid; grid-template-rows: 1fr; overflow: hidden; transition: grid-template-rows .45s cubic-bezier(.2, .9, .25, 1), opacity .3s ease, margin .45s ease; }
.apo-tools > div { display: grid; gap: 2px; min-height: 0; overflow: hidden; padding: 0 6px; }
.apo-tools > div > :first-child { margin-top: 6px; }
.apo-tools > div > :last-child { margin-bottom: 6px; }
.is-display-open .apo-tools { grid-template-rows: 0fr; margin-bottom: -12px; border-width: 0; opacity: 0; }
.apo-tool { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 16px; transition: background .25s ease; }
.apo-tool-ico { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(255, 255, 255, .06); color: #4aa8ff; transition: background .25s ease, color .25s ease; }
.apo-tool-text { display: grid; flex: 1; min-width: 0; gap: 2px; }
.apo-tool-text b { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 800; }
.apo-tool-text em { padding: 2px 6px; border-radius: 6px; background: linear-gradient(135deg, #8f6bff, #4aa8ff); color: #fff; font-size: 9px; font-style: normal; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.apo-tool-text small { color: #8d9ab0; font-size: 11.5px; }
.apo-switch { position: relative; flex: none; width: 40px; height: 23px; border-radius: 999px; background: rgba(255, 255, 255, .16); transition: background .2s ease; }
.apo-switch i { position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform .28s cubic-bezier(.2, 1.3, .4, 1); }
.is-afk-on .apo-tool.is-afk, .is-macro-on .apo-tool.is-macro { background: rgba(74, 168, 255, .1); }
.is-afk-on .is-afk .apo-tool-ico, .is-macro-on .is-macro .apo-tool-ico { background: rgba(52, 211, 153, .18); color: #6ee7b7; }
.is-afk-on .is-afk .apo-switch { background: #22c58b; }
.is-afk-on .is-afk .apo-switch i { transform: translateX(17px); }
.apo-run { display: grid; flex: none; place-items: center; min-width: 66px; height: 30px; border-radius: 10px; background: #2f86e8; color: #fff; font-size: 12.5px; font-weight: 800; transition: background .2s ease; }
.apo-run::before { content: 'Start'; }
.is-macro-on .apo-run { background: #e0475b; }
.is-macro-on .apo-run::before { content: 'Stop'; }

.apo-music { --m1: #6fc3ff; --m2: #4a86ff; position: absolute; left: 340px; right: 332px; bottom: 18px; display: grid; grid-template-columns: 80px minmax(0, 1fr) 118px; grid-template-areas: "cover info buttons" "cover time volume"; align-items: center; column-gap: 12px; row-gap: 5px; padding: 11px 15px 11px 11px; }
.apo-cover { grid-area: cover; position: relative; width: 80px; height: 58px; }
.apo-art { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 12px; background: linear-gradient(145deg, var(--m1), hsl(calc(var(--art) + 70) 70% 38%)); color: #fff; box-shadow: 0 8px 18px -8px #000; }
.apo-stage .apo-art svg { width: 24px; height: 24px; }
.apo-disc { position: absolute; left: 4px; top: 3px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: conic-gradient(transparent 0 40deg, rgba(255, 255, 255, .2) 62deg, transparent 86deg 220deg, rgba(255, 255, 255, .14) 244deg, transparent 268deg), repeating-radial-gradient(circle, #171a22 0 1.5px, #0a0b10 1.5px 3px); transform: translateX(24px); animation: apo-spin 3.4s linear infinite; transition: left .5s ease; }
.apo-disc i { width: 40%; height: 40%; border-radius: 50%; background: linear-gradient(145deg, var(--m1), var(--m2)); }
@keyframes apo-spin { from { transform: translateX(24px) rotate(0deg); } to { transform: translateX(24px) rotate(360deg); } }
.is-paused .apo-disc { left: -14px; animation-play-state: paused; }
.apo-track-info { grid-area: info; display: grid; gap: 2px; min-width: 0; }
.apo-title { overflow: hidden; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.apo-artist { color: #bcc8de; font-size: 11.5px; }
.apo-time { grid-area: time; display: flex; align-items: center; gap: 7px; min-width: 0; color: #b6c2d8; font-size: 10px; font-variant-numeric: tabular-nums; }
.apo-time u { position: relative; flex: 1; height: 18px; text-decoration: none; }
.apo-time s { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; text-decoration: none; }
.apo-time s i { width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.apo-time s.is-played { clip-path: inset(0 calc(100% - var(--p, 34%)) 0 0); }
.apo-time s.is-played i { background: color-mix(in srgb, var(--m2) var(--t), var(--m1)); }
.apo-time u { --p: 34%; }
.apo-mbtns { grid-area: buttons; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.apo-mbtn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #dbe4f5; }
.apo-mbtn.is-main { width: 36px; height: 36px; background: linear-gradient(140deg, var(--m1), var(--m2)); color: #06101f; }
.apo-stage .apo-mbtn svg { width: 15px; height: 15px; }
.apo-mbtn .is-play, .is-paused .apo-mbtn .is-pause { display: none; }
.is-paused .apo-mbtn .is-play { display: inline; }
.apo-volume { grid-area: volume; display: flex; align-items: center; gap: 7px; color: #c3cfe4; }
.apo-volume .apo-slider { flex: 1; }
.apo-volume .apo-track { margin: 0; height: 4px; background: linear-gradient(90deg, var(--m1), var(--m2) var(--p), rgba(255, 255, 255, .2) var(--p)); }
.apo-volume .apo-track i { width: 11px; height: 11px; border-color: #fff; }
@media (prefers-reduced-motion: reduce) { .apo-disc { animation: none; } }
.apo-keys { bottom: 128px; }
/* a little tighter, so the whole right column has the same margin at the bottom as at the top */
.apo-right .apo-menu { padding-top: 10px; padding-bottom: 10px; }
.apo-right .apo-servers span { min-height: 56px; }
.apo-music { transition: opacity .38s ease, transform .5s cubic-bezier(.2, .9, .25, 1); }
.is-off .apo-music { opacity: 0; transform: translateY(60px); }

/* the pointer that shows what is being clicked */
.apo-cursor { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transform: translate(690px, 430px); transition: transform .8s cubic-bezier(.5, 0, .2, 1), opacity .3s ease; pointer-events: none; z-index: 5; }
.is-demo .apo-cursor { opacity: 1; }
.is-demo.is-off .apo-cursor { opacity: 0; }
.apo-stage .apo-cursor svg { position: absolute; left: -4px; top: -3px; width: 30px; height: 30px; fill: #fff; stroke: #0b1220; stroke-width: 1.4; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .6)); }
.apo-cursor i { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border: 3px solid #9fd0ff; border-radius: 50%; opacity: 0; }
.apo-cursor.is-click i { animation: apo-ripple .45s ease-out; }
.apo-cursor.is-click svg { animation: apo-tap .26s ease; }
@keyframes apo-ripple { from { opacity: 1; transform: scale(.25); } to { opacity: 0; transform: scale(1.15); } }
@keyframes apo-tap { 50% { transform: scale(.82); } }
