/* HUD v2 (founder 2026-10-17 picked direction Q; PKT:wf-hud-v2): the look of design/ui-options/q, ported from its five
   mockup stylesheets (hud-common.css, j/skin.css, p/skin.css, q/skin.css; hm-* -> hv-*). Every rule is scoped to
   :root.hud-v2 (same weight as the mockup's :root[data-skin="j"]), so with the flag off nothing here applies.
   Today's tokens from styles.css: --ink --sub --line --hot --cyan --sans --mono. src/app/hud-v2.js builds the DOM. */
:root.hud-v2{--hv-glass:#07102ad9;--hv-raised:#0b1634f2;--hv-well:#0d1631;--hv-edge:#2a3f6e;--hv-shadow:0 12px 32px #01030cb3;--hv-col:380px}
:root.hud-v2 body{--sidebar-w:calc(var(--hv-col) + 32px)}
:root.hud-v2 .hud-header,:root.hud-v2 #move-hint,:root.hud-v2 .move-hint,:root.hud-v2 .hydration-hud{display:none!important}
:root.hud-v2 .hv-menu kbd,:root.hud-v2 .hv-menubtn kbd,:root.hud-v2 .main-item kbd{display:inline-block;min-width:18px;padding:1px 5px;border:1px solid #3a4f80;
  border-bottom-width:2px;border-radius:5px;background:#0d1838;color:var(--cyan);font:700 10px/1.4 var(--mono);text-align:center;letter-spacing:0}

/* ---- top strip over the floor: logo, stage pill (picker + live), Menu */
:root.hud-v2 .hv-top{position:absolute;z-index:9;inset:0 0 auto;height:68px;display:flex;align-items:center;gap:14px;padding:0 18px;pointer-events:none;
  background:linear-gradient(#050817b0,#05081700)}
:root.hud-v2 .hv-top>*{pointer-events:auto}
:root.hud-v2 .hv-top .brand{font-size:23px;text-shadow:0 2px 10px #000a}
:root.hud-v2 .hv-live{display:flex;align-items:center;gap:6px;color:var(--cyan);font:600 12px var(--sans);white-space:nowrap}
:root.hud-v2 .hv-live i{width:7px;height:7px;border-radius:50%;background:var(--hot);box-shadow:0 0 8px var(--hot)}
:root.hud-v2 .hv-stage{display:flex;align-items:center;gap:8px;height:36px;padding:0 14px 0 4px;border:1px solid var(--hv-edge);border-radius:999px;background:var(--hv-glass);backdrop-filter:blur(8px)}
:root.hud-v2 .hv-stage .stagepick{display:flex}
:root.hud-v2 .hv-stage .stagepick select{max-width:190px;border:0;background:transparent;color:var(--ink);font:600 13px var(--sans);padding:6px 4px 6px 10px}
:root.hud-v2 .hv-stage .hv-live{padding-left:10px;border-left:1px solid var(--hv-edge)}
:root.hud-v2 .hv-menubtn{display:flex;align-items:center;gap:8px;height:36px;margin-left:auto;padding:0 10px 0 12px;border:1px solid var(--hv-edge);border-radius:999px;
  background:var(--hv-glass);backdrop-filter:blur(8px);color:var(--ink);font:700 13px var(--sans);cursor:pointer}
:root.hud-v2 .hv-menubtn:hover{border-color:var(--hot)}
:root.hud-v2 .hv-menubtn:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
:root.hud-v2 .hv-menubtn i{width:16px;height:12px;background:linear-gradient(currentColor 0 0) 0 0/100% 2px no-repeat,linear-gradient(currentColor 0 0) 0 50%/100% 2px no-repeat,
  linear-gradient(currentColor 0 0) 0 100%/100% 2px no-repeat}

/* ---- flag hudCoins (PKT:wf-hud-coins; founder: "menu, wookcoins, and mywook ... 1/3 1/3 1/3 and match the width of right ting").
   src/app/hud-coins.js adds .hv-tri to the top bar and sets each button's left / width (px, from the right column's box);
   here they are laid out absolutely, 44 px tall, on the row Menu has today. Menu stays where next-rave.js expects it. */
:root.hud-v2 .hv-tri .hv-menubtn,:root.hud-v2 .hv-tri .hv-coins,:root.hud-v2 .hv-tri .hv-mywook{position:absolute;top:12px;box-sizing:border-box;height:44px;margin:0;
  display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;padding:0 8px;border:1px solid var(--hv-edge);border-radius:999px;background:var(--hv-glass);
  backdrop-filter:blur(8px);color:var(--ink);font:700 13px var(--sans);white-space:nowrap;cursor:pointer}
:root.hud-v2 .hv-tri .hv-coins:hover,:root.hud-v2 .hv-tri .hv-mywook:hover{border-color:var(--hot)}
:root.hud-v2 .hv-tri .hv-coins:focus-visible,:root.hud-v2 .hv-tri .hv-mywook:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
:root.hud-v2 .hv-tri .hv-coins[hidden],:root.hud-v2 .hv-tri .hv-mywook.hv-gone{display:none}
:root.hud-v2 .hv-tri .hv-menubtn>span,:root.hud-v2 .hv-tri .hv-mywook-t{min-width:0;overflow:hidden;text-overflow:ellipsis}
:root.hud-v2 .hv-tri .hv-menubtn kbd{flex:none}
:root.hud-v2 .hv-tri.hv-tri-narrow .hv-menubtn kbd{display:none}
:root.hud-v2 .hv-tri .hv-mywook-icon{flex:none;font-size:15px;line-height:1}
:root.hud-v2 .hv-coins-in{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;max-width:100%}
:root.hud-v2 .hv-coins svg{width:20px;height:20px;flex:none}
:root.hud-v2 .hv-coins-n{min-width:0;overflow:hidden;text-overflow:ellipsis;color:#ffd34f;font-variant-numeric:tabular-nums;letter-spacing:.2px;white-space:nowrap}
/* the "+N" gain label: starts at the counter's right end, drifts up out of it and fades in 1.2 s; absolute + no pointer events = no box changes */
:root.hud-v2 .hv-coins-gain{position:absolute;right:10px;top:14px;pointer-events:none;color:#5dff9a;font:800 13px var(--sans);font-variant-numeric:tabular-nums;
  white-space:nowrap;text-shadow:0 1px 3px #000c,0 0 8px #0a3a1ecc;animation:hv-coins-gain 1.2s ease-out forwards}
@keyframes hv-coins-gain{0%{opacity:0;transform:translateY(4px)}15%{opacity:1}60%{opacity:1}100%{opacity:0;transform:translateY(-20px)}}
@media (prefers-reduced-motion:reduce){:root.hud-v2 .hv-coins-gain{top:-12px;animation-name:hv-coins-gain-still;animation-duration:.8s}}
@keyframes hv-coins-gain-still{0%{opacity:0}20%{opacity:1}70%{opacity:1}100%{opacity:0}}
/* desktop: the in-flow items (logo, stage pill, next-rave chip) stay clear of the row */
:root.hud-v2 .hv-top.hv-tri{padding-right:calc(100% - var(--hc-l, 100%) + 12px)}

/* ---- flag movesTray (PKT:wf-moves-tray; founder picked K1 "Long tray"). src/app/moves-tray.js adds html.moves-tray, the ✕ and
   --mt-r (px: the tray's right inset = just left of the right-hand column). Open, the moves card stretches SIDEWAYS from the floor's
   left edge to the column, barely taller than closed, never up over the dancers: [Dances/Emotes/Boosts] [every move of that tab
   in one row of the panel's own tiles, scrolling sideways, a fade on a clipped edge] [✕]. The HUD rail (desktop) keeps its own. */
:root.hud-v2 .mt-close{display:none}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves.open{left:24px;right:var(--mt-r,calc(var(--sidebar-w) + 0px));width:auto;transform:none;border-radius:18px}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves.open .hv-moves-row{display:none}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves.open .hv-moves-panel{display:flex;align-items:stretch;gap:10px;padding:9px 10px 9px 10px;border-bottom:0}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts{position:relative;flex:1;min-width:0;max-height:none;overflow:visible;display:flex;flex-direction:row;align-items:stretch;gap:10px}   /* #gifts IS the panel */
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-tabs{flex:none;flex-direction:column;justify-content:center;gap:2px;width:auto;margin:0;padding:0;border:0;border-radius:0;background:transparent}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-tab{flex:none;min-width:76px;height:20px;padding:0 12px;border-radius:999px;background:#111b3d;color:var(--sub);font:700 11px/20px var(--sans);letter-spacing:.1px}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-tab:hover{color:var(--ink);background:#1a2650}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-tab[aria-selected=true]{background:var(--hot);color:#fff;box-shadow:0 0 12px #ff4fc355}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-panel{flex:1;min-width:0;display:flex;padding:0}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-status{display:none}   /* the highlighted tile says what you dance; None = Stop */
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-cards{flex:1;min-width:0;display:flex;flex-wrap:nowrap;gap:6px;margin:0;padding:0;overflow-x:auto;overflow-y:hidden;
  overscroll-behavior-x:contain;scrollbar-width:none;scroll-padding-inline:28px;touch-action:pan-x}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-cards::-webkit-scrollbar{display:none}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-cards.mt-fade-r{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 44px),#0000);mask-image:linear-gradient(90deg,#000 calc(100% - 44px),#0000)}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-cards.mt-fade-l{-webkit-mask-image:linear-gradient(90deg,#0000,#000 44px);mask-image:linear-gradient(90deg,#0000,#000 44px)}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-cards.mt-fade-l.mt-fade-r{-webkit-mask-image:linear-gradient(90deg,#0000,#000 44px,#000 calc(100% - 44px),#0000);mask-image:linear-gradient(90deg,#0000,#000 44px,#000 calc(100% - 44px),#0000)}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-card,:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .gift{flex:1 0 84px;min-width:84px;max-width:136px;height:64px;min-height:0;flex-direction:column;gap:4px;
  padding:6px 8px;border:1px solid var(--hv-edge);border-radius:14px;background:var(--hv-well);color:var(--ink);font-family:var(--sans)}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-card:hover,:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .gift:hover{border-color:var(--hot);background:var(--hv-well)}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-emoji{font-size:21px;line-height:1}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 12px/1.2 var(--sans)}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-card.selected{padding:6px 8px;border:1px solid var(--hot);background:#3a1238;box-shadow:inset 0 0 0 1px var(--hot)}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-card.armable.armed{padding:6px 8px;border:1px solid var(--cyan);box-shadow:inset 0 0 0 1px var(--cyan),0 0 14px #3de8ff44}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-card.armable.armed:after{right:7px;top:5px}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-mosh-count{position:absolute;left:5px;top:5px;min-width:0;padding:0 5px;font:700 9px/14px var(--mono)}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-boost-cool{position:absolute;right:6px;top:5px;color:#ffd67b;font:700 10px var(--mono)}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .gift.cooling{opacity:.55}
/* moshing: the panel's own hint lies over the row (every tile is off anyway), the tabs stay put */
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-mosh-hint{position:absolute;z-index:2;inset:0 0 0 86px;margin:0;display:flex;align-items:center;justify-content:center;gap:6px;
  border-radius:14px;font:600 12px/1.3 var(--sans);text-align:center}
:root.hud-v2.moves-tray:not(.hud-rail) .mt-close{flex:none;display:flex;align-items:center;justify-content:center;width:46px;padding:0;border:1px solid var(--hv-edge);border-radius:14px;background:var(--hv-well);
  color:var(--ink);font:700 15px var(--sans);cursor:pointer}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves:not(.open) .mt-close{display:none}
:root.hud-v2.moves-tray:not(.hud-rail) .mt-close:hover{border-color:var(--hot)}
:root.hud-v2.moves-tray:not(.hud-rail) .mt-close:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
/* hydration: the bar on the top edge with the reading at its right end, one line */
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves.open .hv-hyd:not([hidden]){display:flex;align-items:center;gap:12px;padding:9px 14px 0;border-bottom:0}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves.open .hv-hyd-bar{flex:1}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves.open .hv-hyd-line{flex:none;margin:0;font-size:11.5px;line-height:14px;white-space:nowrap}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves.open .hv-hyd-drop{font-size:12px}
:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves.open:has(.hv-hyd:not([hidden])) .hv-moves-panel{padding-top:8px}

/* ---- the menu drawer, from the left */
:root.hud-v2 .hv-scrim{position:absolute;inset:0;z-index:30;background:#02040ca6}
:root.hud-v2 .hv-scrim[hidden]{display:none}
:root.hud-v2 .hv-menu{position:absolute;z-index:31;top:0;bottom:0;left:0;width:min(340px,100%);display:flex;flex-direction:column;gap:18px;padding:18px 20px;overflow:auto;
  background:#070d1ff5;border-right:1px solid var(--hv-edge);box-shadow:var(--hv-shadow);color:var(--ink);font-family:var(--sans)}
:root.hud-v2 .hv-menu[hidden]{display:none}
:root.hud-v2 .hv-menu-head{display:flex;align-items:center;justify-content:space-between}
:root.hud-v2 .hv-menu-head .brand{font-size:23px}
:root.hud-v2 .hv-menu-close{display:flex;align-items:center;gap:8px;height:32px;padding:0 6px 0 12px;border:1px solid var(--hv-edge);border-radius:999px;background:transparent;
  color:var(--ink);font:600 12px var(--sans);cursor:pointer}
:root.hud-v2 .hv-rows{display:flex;flex-direction:column;gap:6px}
:root.hud-v2 .hv-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 12px;border:1px solid transparent;border-radius:14px;
  background:var(--hv-well);color:var(--ink);text-align:left;cursor:pointer;font-family:var(--sans)}
:root.hud-v2 .hv-row[hidden]{display:none}
:root.hud-v2 .hv-row:hover,:root.hud-v2 .hv-row:focus-visible{border-color:var(--hot);outline:none}
:root.hud-v2 .hv-row-icon{font-size:21px;text-align:center}
:root.hud-v2 .hv-row-text{display:flex;flex-direction:column;gap:2px;min-width:0}
:root.hud-v2 .hv-row-text strong{color:#fff;font:700 14.5px var(--sans)}
:root.hud-v2 .hv-row-text span{color:var(--sub);font:12px var(--sans)}
:root.hud-v2 .hv-chev{color:var(--sub);font:400 22px/1 var(--sans)}
:root.hud-v2 .hv-tonight h3{margin:0 2px 10px;color:var(--sub);font:700 13px var(--sans)}
:root.hud-v2 .hv-tonight .stats{display:grid;grid-template-columns:1fr 1fr;gap:6px;font:12.5px var(--sans);color:var(--sub)}
:root.hud-v2 .hv-tonight .stats>span{display:block;padding:10px 12px;border:0;border-radius:12px;background:var(--hv-well);white-space:normal;line-height:1.35}
:root.hud-v2 .hv-tonight .stats>span+span{border:0;padding-left:12px}
:root.hud-v2 .hv-tonight .stat-floor{color:var(--cyan);font-family:var(--sans)}
:root.hud-v2 .hv-tonight .stats strong{color:var(--ink);font-weight:700}
:root.hud-v2 .hv-tonight .dot{display:none}
:root.hud-v2 .hv-menu-foot{margin-top:auto;color:var(--sub);font:12px var(--sans)}

/* ---- the column: music card over the always-open chat card */
:root.hud-v2 .sidebar{position:absolute!important;inset:68px 16px 16px auto!important;width:var(--hv-col)!important;z-index:9}
:root.hud-v2 .chat{display:flex;flex-direction:column;gap:12px;height:100%;min-height:0;padding:0;border:0;background:transparent}
:root.hud-v2 .hv-card{position:relative;display:flex;flex-direction:column;min-height:0;border:1px solid var(--hv-edge);border-radius:20px;background:var(--hv-raised);
  box-shadow:var(--hv-shadow);overflow:hidden;font-family:var(--sans)}
:root.hud-v2 .hv-card h2{margin:0;color:#fff;font:800 16px var(--sans)}
:root.hud-v2 .hv-card-music{flex:none;padding:14px 16px 12px}
:root.hud-v2 .hv-card-music:has(>.music-dock[hidden]){display:none}   /* no stage state yet (night lock): no empty card */
:root.hud-v2 .hv-card-chat{flex:1}
:root.hud-v2 .hv-card-head{display:flex;align-items:center;gap:10px;padding:14px 16px 8px}
:root.hud-v2 .hv-card-head .chat-filter{display:flex;gap:4px;margin-left:auto}
:root.hud-v2 .hv-card-head .chat-filter button{font:600 11px var(--sans);letter-spacing:0}
/* music: the real dock, unboxed, compact */
:root.hud-v2 .music-dock{position:static;display:block;width:auto;height:auto;margin:10px 0 0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none}
:root.hud-v2 .np{display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-rows:auto auto auto;gap:8px 12px;align-items:center}
:root.hud-v2 .cover{width:56px;height:56px;border-radius:10px;image-rendering:pixelated}
:root.hud-v2 .dock-kicker,:root.hud-v2 .dock-divider,:root.hud-v2 .track-link-hint{display:none}
:root.hud-v2 .track{font:700 14px/1.25 var(--sans);white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
:root.hud-v2 .track b{color:#fff}
:root.hud-v2 .by{margin-top:3px;font:12px var(--sans);color:var(--sub)}
:root.hud-v2 .by a{color:var(--cyan)}
:root.hud-v2 .np .vote{grid-column:1/-1;grid-row:2;display:flex;align-items:center;gap:6px;margin:0}
:root.hud-v2 .np .vbtn{height:30px;padding:0 11px;border-radius:999px;border:1px solid var(--hv-edge);background:var(--hv-well);color:var(--ink);font:700 12px var(--sans);white-space:nowrap;min-width:0}
:root.hud-v2 .np .skipbtn{border-color:#ff4fc366;color:#ffc4ea}
:root.hud-v2 .np #up.voted{background:var(--hot);border-color:var(--hot);color:#fff}
:root.hud-v2 .volctl{display:flex;align-items:center;margin-right:auto;width:auto}
:root.hud-v2 .volctl span{display:none}
:root.hud-v2 .volctl input{width:70px;accent-color:var(--cyan)}
:root.hud-v2 #track-progress{grid-column:1/-1;grid-row:3;font:11px var(--mono);color:var(--sub)}
:root.hud-v2 #vote-message:not(:empty){grid-column:1/-1;grid-row:4}
/* up next: two rows and Full queue; the search box only when expanded */
:root.hud-v2 .upnext{display:flex;flex-direction:column;gap:6px;height:auto;margin-top:12px;padding-top:10px;border-top:1px solid var(--hv-edge)}
:root.hud-v2 .clipboard-head h4{color:var(--ink);font:700 13px var(--sans);letter-spacing:0}
:root.hud-v2 #track-expand{margin-left:auto;color:var(--sub);font:600 12px var(--sans);letter-spacing:0}
:root.hud-v2 #upnextb{flex-direction:column;gap:3px}
:root.hud-v2 .queue-row{flex:none;min-height:36px;padding:3px 6px;border-radius:10px}
:root.hud-v2 .upnext:not(.expanded) .queue-row:nth-child(n+3),:root.hud-v2 .upnext:not(.expanded) .track-search-row{display:none}
:root.hud-v2 .queue-title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:600 12.5px/1.25 var(--sans)}
:root.hud-v2 .queue-artist{display:block;font:11px var(--sans);color:var(--sub)}
:root.hud-v2 .queue-vote,:root.hud-v2 .track-search-wrap,:root.hud-v2 #suggestgo{border-radius:999px}
:root.hud-v2 .upnext.expanded{height:auto}
:root.hud-v2 .upnext.expanded #upnextb{max-height:40vh}
/* chat: feed, then the input */
:root.hud-v2 .feed{flex:1;min-height:90px;padding:4px 16px 8px;font-family:var(--sans)}
:root.hud-v2 .sayrow{padding:8px 12px;border-top:1px solid var(--hv-edge)}
:root.hud-v2 .sayrow input{height:34px;border-radius:999px;padding:0 14px;font:13px var(--sans)}
:root.hud-v2 .sayrow button{border-radius:999px;padding:0 16px;font:700 13px var(--sans)}

/* ---- the moves card under your raver: [hydration] [the real panel when open] [4 quick moves | More moves] */
:root.hud-v2 .hv-moves{position:absolute;z-index:10;left:calc((100% - var(--sidebar-w)) / 2);bottom:18px;transform:translateX(-50%);width:min(560px,calc(100% - var(--sidebar-w) - 32px));
  display:flex;flex-direction:column;border:1px solid var(--hv-edge);border-radius:22px;background:var(--hv-raised);box-shadow:var(--hv-shadow);backdrop-filter:blur(10px);overflow:hidden}
:root.hud-v2 .hv-moves-row{display:flex;gap:6px;padding:8px}
:root.hud-v2 .hv-move{flex:1;min-width:0;height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:1px solid var(--hv-edge);border-radius:14px;
  background:var(--hv-well);color:var(--ink);cursor:pointer;font-family:var(--sans)}
:root.hud-v2 .hv-move-emoji{font-size:21px;line-height:1}
:root.hud-v2 .hv-move-label{font:600 12px var(--sans);white-space:nowrap}
:root.hud-v2 .hv-move:hover{border-color:var(--hot)}
:root.hud-v2 .hv-move[aria-pressed="true"]{border-color:var(--hot);background:#3a1238;box-shadow:inset 0 0 0 1px var(--hot)}
:root.hud-v2 .hv-move:focus-visible,:root.hud-v2 .hv-more:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
/* More moves: the loudest thing on the card, so nobody misses it */
:root.hud-v2 .hv-more{flex:0 0 112px;height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;border-radius:14px;
  background:var(--hot);color:#fff;cursor:pointer;font-family:var(--sans);box-shadow:0 0 18px #ff4fc355}
:root.hud-v2 .hv-more:hover{filter:brightness(1.08)}
:root.hud-v2 .hv-more-icon{font:800 16px/1 var(--sans);transition:transform .18s}
:root.hud-v2 .hv-more-label{font:800 12.5px var(--sans);white-space:nowrap}
:root.hud-v2 .hv-moves.open .hv-more-icon{transform:rotate(180deg)}
:root.hud-v2 .hv-moves.open .hv-more{background:var(--hv-well);color:var(--ink);box-shadow:inset 0 0 0 1px var(--hv-edge)}
/* the full panel lives in the card, above the row */
:root.hud-v2 .hv-moves-panel{display:none;padding:12px 12px 4px;border-bottom:1px solid var(--hv-edge)}
:root.hud-v2 .hv-moves.open .hv-moves-panel{display:block}
:root.hud-v2 .hv-moves-panel #gifts{position:static;display:block;width:auto;max-height:46vh;overflow:auto;padding:0;border:0;background:transparent;box-shadow:none}
:root.hud-v2 .hv-moves-panel #gifts .activity-panel{border:0;background:transparent;padding:0;max-height:none;overflow:visible}
:root.hud-v2 .hv-moves-panel #gifts .ap-tabs{width:max-content;margin-bottom:10px;border-radius:999px;border-color:var(--hv-edge);background:#081128}
:root.hud-v2 .hv-moves-panel #gifts .ap-tab{padding:7px 16px;border-radius:999px;font:700 13px var(--sans)}
:root.hud-v2 .hv-moves-panel #gifts h4{display:none}
:root.hud-v2 .hv-moves-panel #gifts .ap-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
:root.hud-v2 .hv-moves-panel #gifts .ap-card,:root.hud-v2 .hv-moves-panel #gifts .gift{flex-direction:row;gap:6px;min-height:42px;padding:4px 8px;border-radius:12px;font-family:var(--sans)}
:root.hud-v2 .hv-moves-panel #gifts .ap-emoji{font-size:17px}
:root.hud-v2 .hv-moves-panel #gifts .ap-label{font:600 12px var(--sans);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root.hud-v2 .hv-moves-panel #gifts .ap-card.selected{border-color:var(--hot);background:#3a1238;padding:4px 8px}
:root.hud-v2 .hv-moves-panel #gifts .ap-card.selected:after{display:none}
/* hydration: a water bar on the card's top edge, % + Drink; amber + the reason when parched */
:root.hud-v2 .hv-hyd{order:-1;padding:8px 12px 0}
:root.hud-v2 .hv-hyd[hidden]{display:none}
:root.hud-v2 .hv-hyd-bar{height:6px;border-radius:3px;background:#0a1430;box-shadow:inset 0 0 0 1px var(--hv-edge);overflow:hidden}
:root.hud-v2 .hv-hyd-bar i{display:block;width:var(--hyd,100%);height:100%;border-radius:3px;background:linear-gradient(90deg,#2aa8e0,#51d8ee);box-shadow:0 0 10px #51d8ee88}
:root.hud-v2 .hv-hyd-line{display:flex;align-items:center;gap:8px;margin-top:6px;font:12.5px var(--sans);color:var(--sub)}
:root.hud-v2 .hv-hyd-drop{font-size:14px}
:root.hud-v2 .hv-hyd-pct{color:#aeeaf4;font-weight:800}
:root.hud-v2 .hv-hyd.parched .hv-hyd-bar i{background:linear-gradient(90deg,#ff8a3d,#ffd67b);box-shadow:0 0 10px #ffb34d99}
:root.hud-v2 .hv-hyd.parched .hv-hyd-pct,:root.hud-v2 .hv-hyd.parched .hv-hyd-note{color:#ffd67b}
:root.hud-v2 .hv-moves:has(.hv-hyd.parched){border-color:#ffb34d88;box-shadow:var(--hv-shadow),0 0 22px #ff8a3d33}
:root.hud-v2 .hv-moves.open .hv-hyd{border-bottom:1px solid var(--hv-edge);padding-bottom:8px}

/* ---- the in-world hint at the top of the floor, prompts clear of the moves card */
:root.hud-v2 .main-item-host{display:flex;gap:8px;top:18px;bottom:auto;left:calc((100% - var(--sidebar-w)) / 2);transform:translateX(-50%);z-index:9}   /* two hands: the hand buttons sit side by side */
:root.hud-v2 .main-item{display:flex;align-items:center;gap:7px;height:32px;padding:0 12px 0 7px;border:1px solid var(--hv-edge);border-radius:999px;background:var(--hv-glass);
  color:var(--ink);font:600 12px var(--sans);letter-spacing:0}
:root.hud-v2 .chill-prompt{left:calc((100% - var(--sidebar-w)) / 2);bottom:104px}

/* slide in, never fade: a fade stuck on its first frame (a busy or throttled frame loop) would leave the menu invisible */
@media (prefers-reduced-motion:no-preference){:root.hud-v2 .hv-menu:not([hidden]){animation:hv-slide .18s ease-out}}
@keyframes hv-slide{from{transform:translateX(-14px)}}

/* ---- phone: the floor on top, the moves card on its bottom edge, then the music strip and the chat (input on screen) */
@media (max-aspect-ratio:5/6),(max-width:720px){
  :root.hud-v2 .stage{height:100dvh!important;max-height:100dvh!important}
  :root.hud-v2 body{--sidebar-w:0px}
  :root.hud-v2 canvas#glstage{height:calc(100dvh - 300px);min-height:300px}
  :root.hud-v2 .hv-top{height:58px;gap:10px;padding:0 12px}
  :root.hud-v2 .hv-top .brand{font-size:21px}
  :root.hud-v2 .hv-menubtn span,:root.hud-v2 .hv-menubtn kbd{display:none}
  :root.hud-v2 .hv-menubtn{padding:0 11px}
  :root.hud-v2 .hv-stage{height:34px;padding-right:10px}
  /* hudCoins on a phone: the three buttons are a second row, flush with the full-width cards under the floor */
  :root.hud-v2 .hv-top.hv-tri{height:106px;align-items:flex-start;padding:12px 12px 0}
  :root.hud-v2 .hv-top.hv-tri .brand{line-height:34px}
  :root.hud-v2 .hv-tri .hv-menubtn,:root.hud-v2 .hv-tri .hv-coins,:root.hud-v2 .hv-tri .hv-mywook{top:58px;border-radius:0;border-width:1px 0 1px 1px}
  :root.hud-v2 .hv-tri .hv-mywook{border-right-width:1px}
  :root.hud-v2 .hv-tri .hv-menubtn span{display:inline}
  :root.hud-v2 .hv-tri .hv-menubtn kbd{display:inline-block}
  :root.hud-v2 .hv-tri.hv-tri-narrow .hv-menubtn kbd{display:none}
  :root.hud-v2 .hv-stage .stagepick select{max-width:140px;font-size:12.5px;padding-left:8px}
  :root.hud-v2 .hv-menu{width:100%}
  :root.hud-v2 .sidebar{position:static!important;inset:auto!important;width:100%!important;flex:1 1 0!important;min-height:0!important;order:3}
  :root.hud-v2 .chat{gap:0}
  :root.hud-v2 .hv-card{border-radius:0;border-width:1px 0 0;box-shadow:none}
  :root.hud-v2 .hv-card h2{display:none}
  :root.hud-v2 .hv-card-music{padding:8px 12px}
  :root.hud-v2 .music-dock{margin:0}
  :root.hud-v2 .np{grid-template-columns:40px minmax(0,1fr) auto;grid-template-rows:auto;gap:0 10px;margin:0;padding:0}
  :root.hud-v2 .cover{width:40px;height:40px}
  :root.hud-v2 .track{font-size:13px;-webkit-line-clamp:1}
  :root.hud-v2 .by{display:none}
  :root.hud-v2 .np .vote{grid-column:3;grid-row:1}
  :root.hud-v2 .volctl,:root.hud-v2 #sound,:root.hud-v2 #track-progress,:root.hud-v2 .upnext{display:none}
  :root.hud-v2 .hv-card-head{padding:6px 12px 2px}
  :root.hud-v2 .feed{min-height:70px;padding:2px 12px 6px}
  :root.hud-v2 .sayrow{padding:6px 10px}
  /* the moves card sits on the floor's bottom edge (the column is the last 300px), never over the chat input */
  :root.hud-v2 .hv-moves{left:8px;right:8px;bottom:308px;width:auto;transform:none;border-radius:18px}
  :root.hud-v2 .hv-moves-row{gap:5px;padding:6px}
  :root.hud-v2 .hv-move{height:48px;gap:2px}
  :root.hud-v2 .hv-move-emoji{font-size:18px}
  :root.hud-v2 .hv-move-label{font-size:11px}
  :root.hud-v2 .hv-more{flex-basis:92px;height:48px}
  :root.hud-v2 .hv-moves-panel #gifts{max-height:36vh}
  /* movesTray on a phone: the tray spans the screen; the tabs are a row on its top edge (44 px targets, 30 px pills), the ✕ at
     its right end; the row scrolls by touch */
  :root.hud-v2.moves-tray:not(.hud-rail) .hv-moves.open{left:8px;right:8px;border-radius:18px}
  :root.hud-v2.moves-tray:not(.hud-rail) .hv-moves.open .hv-moves-panel{position:relative;display:block;padding:0 6px 6px}
  :root.hud-v2.moves-tray:not(.hud-rail) .hv-moves.open:has(.hv-hyd:not([hidden])) .hv-moves-panel{padding-top:0}
  :root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts{flex-direction:column;gap:0}
  :root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-tabs{flex-direction:row;justify-content:flex-start;gap:4px;height:44px;margin-right:50px}
  :root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-tab,:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-tab:hover,:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-tab[aria-selected=true]{min-width:44px;height:44px;padding:7px 0;
    background-clip:content-box;box-shadow:none;line-height:30px}
  :root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-tab{flex:1 1 0;max-width:110px;border-radius:22px;font-size:12px}
  :root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-panel{display:block}
  :root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-cards{height:52px;touch-action:pan-x}
  :root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-card,:root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .gift{height:52px;gap:3px;padding:4px 6px}
  :root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-card.selected{padding:4px 6px}
  :root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-emoji{font-size:19px}
  :root.hud-v2.moves-tray:not(.hud-rail) .hv-moves-panel #gifts .ap-mosh-hint{inset:44px 0 0 0;width:auto}
  :root.hud-v2.moves-tray:not(.hud-rail) .mt-close{position:absolute;top:0;right:6px;width:44px;height:44px;padding:7px 0;border:0;background:transparent}
  :root.hud-v2.moves-tray:not(.hud-rail) .mt-close span{display:flex;align-items:center;justify-content:center;width:100%;height:30px;border:1px solid var(--hv-edge);border-radius:15px;background:var(--hv-well)}
  :root.hud-v2 .main-item-host{left:12px;right:12px;transform:none;bottom:auto;top:62px;flex-wrap:wrap;justify-content:center}
  :root.hud-v2 .main-item-host:has(.main-item[data-hand] ~ .main-item[data-hand]) .mi-name{display:none}   /* two hands: verb + key only */
  :root.hud-v2 .main-item-host .main-item[data-hand]{min-width:0;max-width:100%;overflow:hidden;white-space:nowrap}
  :root.hud-v2:has(.hv-top.hv-tri) .main-item-host{top:112px}   /* under the three-button row */
  :root.hud-v2 .chill-prompt{left:50%}
  :root.hud-v2 .np .vbtn,:root.hud-v2 .chat-filter button,:root.hud-v2 .kandi-wear,:root.hud-v2 .hv-menu-close,:root.hud-v2 .ip-x{min-height:44px;min-width:44px}
}
