/* Compact controls from the supplied reference; scoped to this menu only. */
#foot #footer-actions[data-loult-compact-menu] {
    --menu-ink: #f0edf9;
    --menu-muted: #a5a0b8;
    --menu-accent: #c7aaff;
    position: absolute;
    right: 6px;
    bottom: 6px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: calc(var(--loult-rail-width, 200px) - 12px);
    min-width: 0;
    height: auto;
    max-height: calc(100dvh - 80px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px 8px 8px;
    border: 1px solid #c5b8ec24;
    border-radius: 15px;
    background: radial-gradient(ellipse at 15% 0, #a78bfa13, transparent 70%), linear-gradient(155deg, #25232fee, #191820f5);
    color: var(--menu-ink);
    box-shadow: 0 12px 32px #0005, inset 0 1px #ffffff0c;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    font: 12px/1.4 system-ui, -apple-system, sans-serif;
    isolation: isolate;
    scrollbar-width: thin;
    scrollbar-color: #71638266 transparent;
    animation: loult-menu-arrive 420ms cubic-bezier(.22, 1, .36, 1) both;
}
#footer-actions[data-loult-compact-menu] *,
#footer-actions[data-loult-compact-menu] *::before,
#footer-actions[data-loult-compact-menu] *::after { box-sizing: border-box; }
#footer-actions[data-loult-compact-menu] button { -webkit-tap-highlight-color: transparent; }
#footer-actions[data-loult-compact-menu] button:focus-visible {
    outline: 2px solid var(--menu-accent);
    outline-offset: 2px;
}
#footer-actions[data-loult-compact-menu] > [data-loult-menu-empty] { display: none !important; }
#footer-actions[data-loult-compact-menu] > .loult-menu-games { order: 1; flex: none; min-width: 0; }
#footer-actions[data-loult-compact-menu] .loult-menu-games-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    min-height: 44px;
    overflow: hidden;
    padding: 10px 8px;
    border: 1px solid #c0b0ee14;
    border-radius: 10px;
    background: linear-gradient(135deg, #383443, #2d2b39);
    color: var(--menu-ink);
    font: 600 11.5px/1.3 system-ui, sans-serif;
    text-align: left;
    cursor: pointer;
    box-shadow: inset 0 1px #ffffff05;
    transition: background 180ms, border-color 180ms, box-shadow 180ms;
}
#footer-actions[data-loult-compact-menu] .loult-menu-games-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
#footer-actions[data-loult-compact-menu] .loult-menu-games-toggle svg {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: var(--menu-accent);
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#footer-actions[data-loult-compact-menu] .loult-menu-games-toggle .loult-menu-chevron {
    flex-basis: 14px;
    width: 14px;
    height: 14px;
    stroke: var(--menu-muted);
    transition: transform 300ms cubic-bezier(.22, 1, .36, 1), stroke 180ms;
}
#footer-actions[data-loult-compact-menu] [data-open=true] .loult-menu-games-toggle {
    border-color: #b79ae860;
    background: linear-gradient(135deg, #443850, #322b41);
    box-shadow: 0 3px 12px #9870cc0e, inset 0 1px #ffffff0a;
}
#footer-actions[data-loult-compact-menu] [data-open=true] .loult-menu-chevron { transform: rotate(180deg); stroke: var(--menu-accent); }
#footer-actions[data-loult-compact-menu] .loult-menu-games-toggle:disabled { cursor: default; opacity: .5; }
#footer-actions[data-loult-compact-menu] .loult-menu-games-reveal {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    pointer-events: none;
    transition: grid-template-rows 300ms cubic-bezier(.22, 1, .36, 1), opacity 180ms ease;
}
#footer-actions[data-loult-compact-menu] [data-open=true] .loult-menu-games-reveal { grid-template-rows: 1fr; opacity: 1; pointer-events: auto; }
#footer-actions[data-loult-compact-menu] .loult-menu-games-clip { min-height: 0; overflow: hidden; }
#footer-actions[data-loult-compact-menu] .loult-menu-games-scroll { max-height: min(320px, 42dvh); overflow: auto; scrollbar-width: thin; overscroll-behavior: contain; }
#footer-actions[data-loult-compact-menu] #game-buttons,
#footer-actions[data-loult-compact-menu] .loult-menu-extra-games { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 0; border: 0; margin: 0; background: transparent; }
#footer-actions[data-loult-compact-menu] #game-buttons:not(:empty),
#footer-actions[data-loult-compact-menu] .loult-menu-extra-games:not(:empty) { padding-top: 6px; }
#foot #footer-actions[data-loult-compact-menu] :is(#game-buttons, .loult-menu-extra-games) > [data-loult-game] {
    position: relative;
    inset: auto;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 35px;
    height: auto;
    overflow: hidden;
    margin: 0;
    padding: 8px 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #ffffff04;
    color: #d9d3e7;
    font: 500 11px/1.4 system-ui, sans-serif;
    text-align: left;
    white-space: normal;
    cursor: pointer;
    transform: translateY(-4px);
    transition: background 150ms, color 150ms, border-color 150ms, transform 220ms;
}
#foot #footer-actions[data-loult-compact-menu] [data-open=true] :is(#game-buttons, .loult-menu-extra-games) > [data-loult-game] { transform: none; transition-delay: 0ms, 0ms, 0ms, calc(var(--loult-game-index, 0) * 22ms); }
#foot #footer-actions[data-loult-compact-menu] :is(#game-buttons, .loult-menu-extra-games) > [data-loult-game]::after { content: '↗'; flex: none; margin-left: auto; padding-left: 3px; color: #9386ac; font-size: 14px; transition: color 150ms, transform 150ms; }
#foot #footer-actions[data-loult-compact-menu] :is(#game-buttons, .loult-menu-extra-games) > [data-loult-game] > svg { flex: 0 0 17px; width: 17px; height: 17px; color: #bda5dc; }
#footer-actions[data-loult-compact-menu] > .loult-menu-character {
    position: relative; order: 2; display: flex; flex: none; align-items: center; justify-content: flex-start;
    gap: 8px; width: 100%; min-width: 0; min-height: 49px; height: auto; overflow: hidden;
    margin: 0; padding: 8px; border: 1px solid #bf9cee28; border-radius: 10px;
    background: linear-gradient(120deg, #9471c41f, #b39adb07); color: var(--menu-ink);
    font: inherit; text-align: left; cursor: pointer;
    transition: background 180ms, border-color 180ms, transform 180ms;
}
#footer-actions[data-loult-compact-menu] .loult-menu-character-icon { display: grid; flex: 0 0 24px; place-items: center; width: 24px; height: 28px; color: #c6a6f4; }
#footer-actions[data-loult-compact-menu] .loult-menu-character-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
#footer-actions[data-loult-compact-menu] .loult-menu-character-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#footer-actions[data-loult-compact-menu] .loult-menu-character-copy strong { font-size: 11px; font-weight: 600; }
#footer-actions[data-loult-compact-menu] .loult-menu-character-copy > span { color: var(--menu-muted); font-size: 9px; font-weight: 400; white-space: nowrap; }
#footer-actions[data-loult-compact-menu] .loult-menu-character:disabled { opacity: .5; cursor: not-allowed; }
#footer-actions[data-loult-compact-menu] > .loult-menu-tools { order: 3; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; width: 100%; min-width: 0; }
#footer-actions[data-loult-compact-menu] .loult-menu-tools > .loult-menu-tool {
    position: relative;
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 53px;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #d9d4e6;
    font: inherit;
    cursor: pointer;
}
#footer-actions[data-loult-compact-menu] .loult-menu-tool-icon {
    position: relative;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 35px;
    overflow: hidden;
    border: 1px solid #c5b8ec0c;
    border-radius: 8px;
    background: linear-gradient(145deg, #373440, #2c2a36);
    box-shadow: inset 0 1px #ffffff03;
    transition: transform 200ms cubic-bezier(.22, 1, .36, 1), background 180ms, border-color 180ms, box-shadow 180ms;
}
#footer-actions[data-loult-compact-menu] .loult-menu-tool-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 220ms; }
#footer-actions[data-loult-compact-menu] .loult-menu-tool-label { max-width: 100%; color: var(--menu-muted); font-size: 9px; font-weight: 500; line-height: 1.3; white-space: nowrap; transition: color 180ms; }
#footer-actions[data-loult-compact-menu] .loult-menu-tool[aria-expanded=true] .loult-menu-tool-icon { border-color: #b79ae86b; background: #6c499a4a; color: #d9c4ff; }
#footer-actions[data-loult-compact-menu] #vol[aria-pressed=true] .loult-menu-tool-icon { border-color: #e6aa8b4d; background: #c57d5424; color: #e7af91; }
#footer-actions[data-loult-compact-menu] .loult-menu-tool:active .loult-menu-tool-icon { transform: translateY(1px) scale(.94); }
#footer-actions[data-loult-compact-menu] > #loult-site-sound { order: 4; margin: 0; padding: 6px 1px 0; border-top: 1px solid #b9a6d817; color: #c7c0d6; font-size: 10px; }
#footer-actions[data-loult-compact-menu] > #loult-site-sound label { color: var(--menu-muted); font-size: 9px; }
#footer-actions[data-loult-compact-menu] > #loult-site-sound input { height: 20px; accent-color: #b69ae8; }
#footer-actions[data-loult-compact-menu] > #loult-site-sound output { font-size: 10px; }
#footer-actions[data-loult-compact-menu] > #cinema-controls { order: 0; padding: 0 0 8px; border-bottom: 1px solid #b9a6d824; }
#footer-actions[data-loult-compact-menu] .loult-menu-ripple { position: absolute; z-index: 1; width: 8px; height: 8px; border-radius: 50%; background: #dbc4ff30; pointer-events: none; transform: translate(-50%, -50%); animation: loult-menu-ripple 550ms ease-out both; }
body[data-loult-menu-members-hidden] #userlist,
body[data-loult-menu-members-hidden] #interloult-sidebar #userlist { display: none !important; }
body[data-loult-menu-members-hidden]:not(.cinema-open):not(.cinema-screen):not(.loult-gaming):not(.loult-wow-playing) #main { position: relative; }
body[data-loult-menu-members-hidden] #interloult-sidebar { position: absolute; inset: 0 0 auto auto; height: auto; }
@media (hover: hover) and (pointer: fine) {
    #footer-actions[data-loult-compact-menu] .loult-menu-games-toggle:not(:disabled):hover { border-color: #b79ae86b; background: #42394f; }
    #foot #footer-actions[data-loult-compact-menu] :is(#game-buttons, .loult-menu-extra-games) > [data-loult-game]:hover { border-color: #b79ae826; background: #b49ad016; color: #f1e8ff; }
    #foot #footer-actions[data-loult-compact-menu] :is(#game-buttons, .loult-menu-extra-games) > [data-loult-game]:hover::after { color: #d3b7ff; transform: translate(1px, -1px); }
    #footer-actions[data-loult-compact-menu] .loult-menu-character:not(:disabled):hover { border-color: #c5a1f66b; background: #a57bd329; transform: translateY(-1px); }
    #footer-actions[data-loult-compact-menu] .loult-menu-tool:hover .loult-menu-tool-icon { transform: translateY(-3px); border-color: #b79ae85c; background: #4b3d5d; color: #e0cdff; box-shadow: 0 4px 12px #0003; }
    #footer-actions[data-loult-compact-menu] .loult-menu-tool:hover .loult-menu-tool-icon svg { transform: rotate(-5deg) scale(1.06); }
    #footer-actions[data-loult-compact-menu] .loult-menu-tool:hover .loult-menu-tool-label { color: #ded0f4; }
}
@media (max-width: 680px), (max-width: 1024px) and (max-height: 500px) {
    #foot #footer-actions[data-loult-compact-menu] { position: relative; inset: auto; flex: none; width: calc(100% - 16px); max-height: min(50dvh, calc(var(--loult-responsive-height, 100dvh) * .5)); margin: 0 8px 8px; padding: 8px; gap: 8px; border: 1px solid #c5b8ec24; border-radius: 13px; }
    #footer-actions[data-loult-compact-menu] .loult-menu-games-toggle { min-height: 44px; font-size: 12px; }
    #footer-actions[data-loult-compact-menu] .loult-menu-tool-icon { height: 40px; }
    #footer-actions[data-loult-compact-menu] .loult-menu-tool-label { font-size: 10px; }
    #footer-actions[data-loult-compact-menu] .loult-menu-games-scroll { max-height: min(180px, 26dvh); }
    #foot #footer-actions[data-loult-compact-menu] :is(#game-buttons, .loult-menu-extra-games) > [data-loult-game] { min-height: 40px; }
}
@keyframes loult-menu-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes loult-menu-ripple { from { opacity: 1; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(-50%, -50%) scale(24); } }
@media (prefers-reduced-motion: reduce) {
    #foot #footer-actions[data-loult-compact-menu],
    #footer-actions[data-loult-compact-menu] *,
    #footer-actions[data-loult-compact-menu] *::before,
    #footer-actions[data-loult-compact-menu] *::after { animation: none !important; transition: none !important; }
}
