@font-face { font-family: "Rubik Mono One"; src: url(/DARTChannel/assets/fonts/RubikMonoOne.woff2) format("woff2"); font-display: swap; }
:root {
  --accent: #ff2bd6; --accent2: #22e6ff;
  --glass: rgba(14, 11, 28, .62); --glass2: rgba(255, 255, 255, .055); --line: rgba(255, 255, 255, .12); --ink: #f3f1ff; --dim: rgba(235, 230, 255, .62);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #020205; color: var(--ink); font: 14px/1.4 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
input, select { outline: 0; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }

/* ---------- glass ---------- */
.card, .sheet, .music, .deck, .chip, .icon, .dances { background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 10px 34px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .07); }
.btn { display: block; width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass2); text-align: center; text-decoration: none; font-weight: 600; transition: transform .12s, filter .15s, background .15s; }
.btn:hover { background: rgba(255, 255, 255, .1); }
.btn:active { transform: scale(.985); }
.btn.go, .btn.enter { background: linear-gradient(100deg, var(--accent), #7a3cff 60%, var(--accent2)); border: 0; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); box-shadow: 0 8px 26px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn.go:hover, .btn.enter:hover { filter: brightness(1.12); }
.btn.enter { font: 400 17px "Rubik Mono One", sans-serif; padding: 15px; letter-spacing: .02em; }
.btn:disabled { opacity: .55; cursor: wait; }
.link { background: none; border: 0; padding: 0; color: var(--accent2); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }

/* ---------- out front ---------- */
.gate { position: fixed; inset: 0; z-index: 30; display: grid; grid-template-columns: 1fr minmax(320px, 440px); align-items: center; padding: clamp(14px, 4vw, 56px); gap: 24px; background: linear-gradient(90deg, rgba(2, 2, 8, .1) 40%, rgba(2, 2, 8, .55)); }
.gate.fade { opacity: 0; transition: opacity .55s; pointer-events: none; }
.gate-brand { align-self: start; pointer-events: none; }
.logo { font-family: "Rubik Mono One", sans-serif; line-height: .92; font-size: clamp(36px, 7vw, 94px); color: #fff; text-shadow: 0 0 34px color-mix(in srgb, var(--accent) 80%, transparent), 0 3px 0 rgba(0, 0, 0, .3); }
.logo span, .logo b { display: block; font-weight: 400; }
.logo small { display: block; font-size: .3em; letter-spacing: .3em; margin: .25em 0 .2em .08em; color: var(--accent2); text-shadow: 0 0 18px var(--accent2); }
.gate-brand p { margin: 16px 2px; max-width: 26em; font-size: 16px; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 8px #000; }
.card { padding: 22px; border-radius: 20px; display: flex; flex-direction: column; max-height: calc(100dvh - 28px); overflow-y: auto; overflow-x: hidden; }
.pane { display: flex; flex-direction: column; gap: 12px; }
.pane[data-pane="wait"] { align-items: center; padding: 30px 8px; text-align: center; }
.spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--accent); animation: sp 0.9s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: rgba(0, 0, 0, .3); border-radius: 12px; padding: 4px; gap: 4px; }
.tab { border: 0; background: none; padding: 9px; border-radius: 9px; color: var(--dim); font-weight: 600; }
.tab.on { background: rgba(255, 255, 255, .12); color: #fff; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--dim); }
.field input { padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); font-size: 16px; color: #fff; }
.field input:focus { border-color: var(--accent2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent2) 22%, transparent); }
.msg { margin: 0; min-height: 1.3em; font-size: 13px; color: var(--accent2); }
.msg.bad { color: #ff8fa3; }
.small { margin: 0; font-size: 12.5px; color: var(--dim); text-align: center; }
.me { display: flex; align-items: center; gap: 12px; }
.av { flex: none; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)) center/cover; display: grid; place-items: center; font: 400 17px "Rubik Mono One", sans-serif; color: #fff; }
.who { flex: 1; min-width: 0; }
.who small { display: block; color: var(--dim); font-size: 12px; }
.who b { display: block; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.label { margin: 6px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; max-height: min(44dvh, 372px); overflow-y: auto; padding: 3px; margin: -3px; scrollbar-width: thin; flex: none; }
.pick { position: relative; aspect-ratio: 3 / 4; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03)) center / cover; overflow: hidden; transition: transform .1s, border-color .1s; }
.pick:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .4); }
.pick.on { border-color: var(--accent2); box-shadow: 0 0 0 2px var(--accent2), 0 0 18px color-mix(in srgb, var(--accent2) 50%, transparent); }
.pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pick .ltr { position: absolute; inset: 0; display: grid; place-items: center; font: 400 26px "Rubik Mono One", sans-serif; color: rgba(255, 255, 255, .4); }
.pick span.nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 4px 4px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); font-size: 10.5px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the tile that adds a model, and one still waiting for its portrait */
.pick.add { display: grid; place-items: center; align-content: center; gap: 2px; color: var(--ink); border-style: dashed; border-color: rgba(255, 255, 255, .35); background: linear-gradient(0deg, color-mix(in srgb, var(--accent2) 35%, transparent) var(--p, 0%), rgba(255, 255, 255, .04) var(--p, 0%)); }
.pick.add b { font-size: 26px; font-weight: 400; line-height: 1; }
.pick.add small { padding: 0 6px; font-size: 10.5px; font-weight: 600; line-height: 1.25; text-align: center; }
.pick.add.busy { cursor: progress; }
.pick.making::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%) 0 0 / 250% 100%; animation: pickMaking 1.4s linear infinite; pointer-events: none; }
@keyframes pickMaking { from { background-position: 125% 0; } to { background-position: -125% 0; } }
@media (prefers-reduced-motion: reduce) { .pick.making::after { animation: none; } }
.up-note { margin: 8px 0 0; font-size: 12.5px; text-align: center; color: var(--dim); }
.up-note.bad { color: #ff9db0; }
.pick-wrap { position: relative; display: grid; }
.pick-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(10, 8, 20, .78); color: #fff; font-size: 15px; line-height: 1; }
.pick-x:hover, .pick-x:focus-visible { background: #d81b4a; border-color: #fff; }
.pick-info { flex: 1; min-width: 0; text-align: center; }
.pick-info b { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-info small { display: block; color: var(--dim); font-size: 12px; min-height: 1.3em; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); padding: 0; background: var(--c); }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent2); }
.credit { margin: 0; min-height: 1.2em; font-size: 11.5px; text-align: center; color: var(--dim); }
.home { position: absolute; left: clamp(14px, 4vw, 56px); bottom: calc(14px + var(--safe-b)); color: rgba(255, 255, 255, .7); text-decoration: none; font-size: 13px; }
.home:hover { color: #fff; }
@media (max-width: 760px), (max-height: 520px) and (max-width: 900px) {
  .gate { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: end; gap: 8px; padding: 14px 14px calc(14px + var(--safe-b)); background: linear-gradient(180deg, rgba(2, 2, 8, 0) 30%, rgba(2, 2, 8, .55)); }
  .logo { font-size: clamp(19px, 6.6vw, 44px); white-space: nowrap; }
  .logo span, .logo small, .logo b { display: inline; }
  .logo small { font-size: .5em; letter-spacing: .12em; margin: 0 .4em; }
  .gate-brand p, .home { display: none; }
  .card { padding: 16px; }
  .gate .card { grid-row: 2; align-self: end; }
}

/* ---------- the HUD ---------- */
.hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.hud > *, .top > * { pointer-events: auto; }
.top { position: absolute; left: 14px; right: 14px; top: calc(12px + var(--safe-t)); display: flex; align-items: center; gap: 10px; pointer-events: none; }
.chip { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.chip img { width: 24px; height: 24px; border-radius: 7px; }
.deck-hint { padding-left: 12px; color: var(--accent2); min-width: 0; flex: 0 1 auto; overflow: hidden; }
.deck-hint span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .deck-hint { display: none; } }
.lens-off { padding-left: 12px; font-weight: 700; background: linear-gradient(100deg, var(--accent), #7a3cff); border-color: transparent; color: #fff; flex: none; }
.top-right { margin-left: auto; display: flex; gap: 8px; }
.icon { width: 38px; height: 38px; border-radius: 50%; font-size: 17px; display: grid; place-items: center; padding: 0; }
.sheet { position: absolute; right: 14px; top: calc(60px + var(--safe-t)); width: min(320px, calc(100vw - 28px)); padding: 16px; border-radius: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 4; max-height: calc(100dvh - 90px); overflow-y: auto; }
.sheet h3 { margin: 0; font-size: 15px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.row select { background: rgba(0, 0, 0, .4); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; }
.row input[type=range] { width: 130px; flex: none; accent-color: var(--accent2); }
.row input[type=checkbox] { width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.fps { margin: 0; font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.keys p { margin: 0; font-size: 12px; color: var(--dim); }
.keys b { color: #fff; font-weight: 600; }

/* chat */
.chat { position: absolute; left: 14px; bottom: calc(14px + var(--safe-b)); width: min(380px, calc(100vw - 28px)); display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.chat-log { display: flex; flex-direction: column; gap: 3px; max-height: 32vh; overflow: hidden; justify-content: flex-end; -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%); mask-image: linear-gradient(180deg, transparent, #000 22%); }
.line { padding: 2px 8px; font-size: 13.5px; text-shadow: 0 1px 3px #000, 0 0 8px rgba(0, 0, 0, .8); overflow-wrap: anywhere; transition: opacity 1s; }
.line b { color: var(--c, var(--accent2)); font-weight: 650; margin-right: 6px; }
.line.sys { color: var(--dim); font-size: 12.5px; font-style: italic; }
.line.old { opacity: .35; }
.chat:focus-within .line.old { opacity: 1; }
#chatForm { pointer-events: auto; position: relative; }
/* the party commands, hinted as soon as a / is typed (main.js) */
.slash-hint { position: absolute; left: 0; bottom: calc(100% + 6px); width: max-content; max-width: min(380px, calc(100vw - 24px)); padding: 5px; border-radius: 10px; border: 1px solid var(--line); background: rgba(10, 8, 22, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font: 600 12px/1.25 system-ui, sans-serif; box-shadow: 0 6px 20px rgba(0,0,0,.45); z-index: 5; }
.slash-hint { max-height: min(56vh, 460px); overflow-y: auto; overscroll-behavior: contain; }
.slash-hint[hidden] { display: none; }
.slash-hint small { display: block; padding: 2px 7px 4px; opacity: .6; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.slash-hint button { display: flex; gap: 8px; align-items: baseline; width: 100%; padding: 4px 7px; border: 0; border-radius: 7px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.slash-hint button:disabled { opacity: .45; cursor: default; }
.slash-hint .none { display: block; padding: 4px 7px; opacity: .75; }
.slash-hint button b { font: 800 12px ui-monospace, Menlo, Consolas, monospace; color: var(--accent2); min-width: 128px; white-space: nowrap; }
.slash-hint button span { opacity: .8; }
.slash-hint button.on, .slash-hint button:hover { background: rgba(255,255,255,.1); }
#chatInput { width: 100%; padding: 9px 13px; border-radius: 12px; border: 1px solid var(--line); background: rgba(10, 8, 22, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 14px; }
#chatInput:focus { background: rgba(10, 8, 22, .85); border-color: var(--accent2); }

/* the dance bar */
.dances { position: absolute; left: 50%; bottom: calc(14px + var(--safe-b)); transform: translateX(-50%); display: flex; gap: 3px; padding: 5px; border-radius: 15px; }
.dance { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; padding: 0; font-size: 20px; display: grid; place-items: center; transition: background .12s, transform .08s; }
.dance:hover { background: rgba(255, 255, 255, .1); }
.dance:active { transform: scale(.92); }
.dance.on { background: linear-gradient(135deg, var(--accent), #7a3cff); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 60%, transparent); }
.dance kbd { position: absolute; right: 3px; bottom: 1px; font: 600 9.5px system-ui, sans-serif; color: rgba(255, 255, 255, .6); }
.dance[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); padding: 3px 8px; border-radius: 7px; background: rgba(0, 0, 0, .85); font-size: 12px; white-space: nowrap; pointer-events: none; }

.specials { position: absolute; display: flex; flex-direction: column; gap: 2px; width: max-content; max-width: min(260px, calc(100vw - 28px)); max-height: 52dvh; overflow-y: auto; padding: 5px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 10px 34px rgba(0, 0, 0, .4); z-index: 5; animation: fly .14s ease-out; }
@keyframes fly { from { transform: translateY(8px); opacity: 0; } }
.special { padding: 8px 12px; border-radius: 9px; border: 0; background: none; font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; }
.specials.wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(340px, calc(100vw - 28px)); max-width: none; }
.fly-title { grid-column: 1 / -1; padding: 6px 12px 4px; font: 400 13px "Rubik Mono One", sans-serif; color: #ff9a3c; text-shadow: 0 0 12px #ff5a1f; }
.specials.mad .special.on { background: linear-gradient(120deg, #ff3a1f, #ff9a1f); }
.special:hover { background: rgba(255, 255, 255, .14); }
.special.on { background: linear-gradient(120deg, var(--accent), #7a3cff); }

/* the music */
.dock { position: absolute; right: 14px; bottom: calc(14px + var(--safe-b)); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none !important; }
.dock > * { pointer-events: auto; }
.music { width: 318px; border-radius: 16px; overflow: hidden; }
.deck-body .music { width: auto; flex: none; overflow: visible; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.deck-body .music-head { padding: 0 0 10px; pointer-events: none; }
.deck-body .chev { display: none; }
.deck-body .music-body { padding: 0; }
.music-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; background: none; border: 0; text-align: left; }
.eq { flex: none; display: flex; align-items: flex-end; gap: 2px; width: 20px; height: 18px; }
.eq i { flex: 1; height: 100%; transform: scaleY(.15); transform-origin: 50% 100%; will-change: transform; background: var(--accent2); border-radius: 1.5px; }
.np { flex: 1; min-width: 0; }
.np b, .np small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np b { font-size: 13.5px; }
.np small { font-size: 11.5px; color: var(--dim); }
.chev { transition: transform .2s; color: var(--dim); }
.music.mini .chev { transform: rotate(180deg); }
.music.mini .music-body { display: none; }
.music-body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
/* the YouTube player makes the sound and isn't to be seen: rendered, because a player that isn't won't play, but invisible */
.yt { position: fixed; left: 0; bottom: 0; width: 200px; height: 200px; opacity: 0; pointer-events: none !important; overflow: hidden; }
.yt iframe, #ytFrame { width: 100%; height: 100%; border: 0; display: block; }
.progress { position: relative; height: 16px; cursor: pointer; touch-action: none; }
.progress::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .16); }
.fill { position: absolute; left: 0; top: 6px; height: 4px; border-radius: 2px; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.knob { position: absolute; top: 3px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; left: 0; box-shadow: 0 0 8px var(--accent2); }
.times { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; margin-top: -6px; }
.src { color: var(--accent2); font-size: 10.5px; letter-spacing: .03em; }
.transport { display: flex; align-items: center; gap: 2px; }
.t { width: 32px; height: 32px; flex: none; border: 0; border-radius: 9px; background: none; font-size: 15px; display: grid; place-items: center; padding: 0; }
.t:hover { background: rgba(255, 255, 255, .1); }
.t.main { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #7a3cff); font-size: 14px; }
.t[aria-pressed=true] { background: color-mix(in srgb, var(--accent2) 30%, transparent); }
.listen { padding: 9px 14px; border-radius: 10px; border: 0; background: linear-gradient(100deg, var(--accent), #7a3cff); font-weight: 600; animation: pl 1.2s ease-in-out infinite; }
@keyframes pl { 50% { filter: brightness(1.35); } }
.add { display: flex; gap: 6px; align-items: center; }
#mUrl { flex: 1; min-width: 0; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); font-size: 12.5px; }
#mUrl:focus { border-color: var(--accent2); }
.busy { margin: 0; font-size: 12px; color: var(--accent2); }

/* the deck */
.deck { position: absolute; left: 14px; top: calc(60px + var(--safe-t)); bottom: 130px; width: min(340px, calc(100vw - 28px)); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; animation: dk .28s cubic-bezier(.2, .9, .3, 1.1); z-index: 3; }
@keyframes dk { from { transform: translateX(-30px); opacity: 0; } }
.deck header { padding: 12px 14px 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.deck header b { font: 400 15px "Rubik Mono One", sans-serif; color: var(--accent2); }
.deck header small { flex: 1; min-width: 0; font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-reset { flex: none; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass2); font-size: 12px; font-weight: 600; }
.deck-reset:hover { background: rgba(255, 255, 255, .14); }
.deck-auto { flex: none; margin: 0 12px 8px; padding: 9px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--glass2); font: 400 13px "Rubik Mono One", sans-serif; display: flex; justify-content: space-between; align-items: center; transition: background .15s; }
.deck-auto b { font-weight: 400; color: var(--dim); }
.deck-auto:hover { background: rgba(255, 255, 255, .12); }
.deck-auto[aria-pressed=true] { background: linear-gradient(100deg, #12c48a, #1f8fff); border-color: transparent; box-shadow: 0 0 18px rgba(31, 190, 200, .45); }
.deck-auto[aria-pressed=true] b { color: #fff; }
.deck-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 8px; flex: none; }
.deck-tabs::-webkit-scrollbar { display: none; }
.deck-tabs button { flex: none; padding: 6px 8px; border: 0; background: none; border-radius: 9px; color: var(--dim); font-size: 12.5px; font-weight: 600; }
.deck-tabs button.on { background: rgba(255, 255, 255, .13); color: #fff; }
.deck-body { flex: 1; overflow-y: auto; padding: 10px 14px 16px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; }
.ctl-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-bottom: 5px; }
.ctl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.ctl-btn { min-height: 38px; padding: 7px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass2); font-size: 12.5px; font-weight: 600; line-height: 1.15; transition: background .1s, transform .07s; }
.ctl-btn:hover { background: rgba(255, 255, 255, .1); }
.ctl-btn:active { transform: scale(.95); }
.ctl-btn.on { background: linear-gradient(120deg, var(--accent), #7a3cff); border-color: transparent; box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent); }
.ctl-btn.fx { min-height: 54px; font-size: 13px; }
.ctl-btn.big { grid-column: 1 / -1; background: linear-gradient(100deg, #ff2a2a, #ff8a00); border: 0; font: 400 15px "Rubik Mono One", sans-serif; min-height: 54px; }
.ctl-sw { display: flex; align-items: center; gap: 3px; height: 14px; margin-top: 4px; justify-content: center; }
.ctl-sw i { width: 12px; height: 12px; border-radius: 3px; }
.ctl-range { width: 100%; accent-color: var(--accent2); margin: 0; height: 22px; }
.tap-row { display: flex; align-items: center; gap: 10px; }
.tap-row .ctl-btn { flex: 1; min-height: 44px; }
.tap-row b { font: 400 17px "Rubik Mono One", sans-serif; min-width: 3.5em; text-align: center; color: var(--accent2); }

/* names and speech */
.tags { position: absolute; inset: 0; overflow: hidden; pointer-events: none !important; }
.tag { position: absolute; left: 0; top: 0; will-change: transform; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 0; }
.tag .bub { width: max-content; max-width: 240px; padding: 7px 12px; border-radius: 14px 14px 14px 4px; background: rgba(255, 255, 255, .96); color: #181430; font-size: 13.5px; line-height: 1.28; overflow-wrap: anywhere; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); animation: bb .22s cubic-bezier(.2, 1.4, .4, 1); transform-origin: 50% 100%; }
@keyframes bb { from { transform: scale(.5); opacity: 0; } }
.toast { position: absolute; left: 50%; top: calc(70px + var(--safe-t)); transform: translateX(-50%); padding: 9px 16px; border-radius: 12px; background: rgba(8, 6, 20, .88); border: 1px solid var(--line); font-size: 13.5px; max-width: 90vw; text-align: center; pointer-events: none; z-index: 8; }

/* touch */
.touch { position: absolute; inset: 0; pointer-events: none !important; }
.stick { position: absolute; left: 22px; bottom: calc(150px + var(--safe-b)); width: 118px; height: 118px; border-radius: 50%; background: rgba(255, 255, 255, .07); border: 1.5px solid rgba(255, 255, 255, .22); touch-action: none; pointer-events: auto; }
.stick i { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.jump { position: absolute; right: 22px; bottom: calc(170px + var(--safe-b)); width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .1); font-size: 25px; pointer-events: auto; touch-action: none; }
body.touchy .chat { bottom: calc(14px + var(--safe-b)); width: calc(100vw - 96px); }
body.touchy .chat-log { max-height: 16vh; }
body.touchy .dances { left: 14px; right: 14px; transform: none; bottom: calc(64px + var(--safe-b)); overflow-x: auto; scrollbar-width: none; }
body.touchy .dance kbd { display: none; }
body.touchy .dance { flex: none; }
body.touchy .dock { top: calc(60px + var(--safe-t)); bottom: auto; }
body.touchy .stick { bottom: calc(118px + var(--safe-b)); }
body.touchy .jump { bottom: calc(136px + var(--safe-b)); }
body.touchy .deck { top: calc(60px + var(--safe-t)); bottom: calc(248px + var(--safe-b)); z-index: 6; }
@media (max-height: 560px) { body.touchy .deck { left: auto; right: 14px; bottom: calc(14px + var(--safe-b)); width: min(340px, 52vw); } }
body.touchy .keys { display: none; }
@media (max-width: 1100px) { .dances { left: 50%; } .dance { width: 34px; height: 36px; font-size: 18px; } }
@media (max-width: 1000px) and (min-width: 761px) { .chat { width: 270px; } .dock .music { width: 270px; } }
.drop { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 22%, rgba(2, 2, 8, .55)); border: 3px dashed rgba(255, 255, 255, .7); pointer-events: none; text-align: center; }
.drop b { display: block; font: 400 clamp(22px, 4vw, 44px) "Rubik Mono One", sans-serif; }
.drop small { display: block; margin-top: 8px; font-size: 15px; }
.fatal { position: fixed; inset: 0; z-index: 60; background: #06040f; display: grid; place-items: center; padding: 30px; text-align: center; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .spin, .listen { animation-duration: 3s; } }

/* Manual Rig */
.riged { position: fixed; inset: 0; z-index: 900; background: #171425; color: var(--ink); touch-action: none; user-select: none; }
.riged canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.rigtop { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: calc(10px + var(--safe-t)) 14px 10px; pointer-events: none; }
.rigtop b { display: block; font-size: 15px; }
.rigtop small { display: block; font-size: 12px; opacity: .75; }
.rigtop button { pointer-events: auto; }
.rigsay { position: absolute; left: 14px; right: 14px; bottom: calc(92px + var(--safe-b)); font-size: 13px; pointer-events: none; text-shadow: 0 1px 3px #000; }
.rigsay.bad { color: #ff9d9d; }
.rigbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 14px calc(10px + var(--safe-b)); background: var(--glass); border-top: 1px solid var(--line); max-height: 40dvh; overflow-y: auto; }
.rigbtn { min-height: 34px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass2); color: var(--ink); font: 600 13px inherit; cursor: pointer; }
.rigbtn:hover { border-color: rgba(255, 255, 255, .4); }
.rigbtn.on { border-color: var(--accent2); box-shadow: 0 0 0 1px var(--accent2); }
.rigbtn.go { margin-left: auto; padding: 6px 22px; background: var(--accent); border-color: var(--accent); color: #fff; }
.rigbtn:disabled { opacity: .5; cursor: wait; }
.rigtick { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; cursor: pointer; }
.rigsep { width: 10px; }

.rigbtn.hot { border-color: var(--accent2); color: var(--accent2); }
.rigbar.busy { pointer-events: none; opacity: .5; }
.rigways { position: absolute; left: 10px; right: 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; max-height: 40dvh; overflow-y: auto; touch-action: auto; }
.rigway { position: relative; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 7px 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); cursor: pointer; font: inherit; overflow: hidden; }
.rigway b { font-size: 12.5px; }
.rigway small { font-size: 10.5px; line-height: 1.25; opacity: .8; min-height: 2.5em; }
.rigway i { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .08); }
.rigway i span { display: block; height: 100%; width: 0; background: var(--accent2); transition: width .35s; }
.rigway[data-state="wait"] { opacity: .5; }
.rigway[data-state="busy"] { border-color: var(--accent2); animation: rigpulse .8s ease-in-out infinite alternate; }
.rigway[data-state="busy"] i span { width: 40% !important; animation: rigslide 1s linear infinite; }
.rigway[data-state="bad"] { opacity: .55; cursor: default; }
.rigway[data-state="best"] i span { background: var(--accent); }
.rigway.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
@keyframes rigpulse { from { background: var(--glass); } to { background: rgba(34, 230, 255, .16); } }
@keyframes rigslide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* Record Jockey */
.rj-row { display: flex; gap: 6px; align-items: stretch; }
.rj-term { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass2); color: var(--ink); font: inherit; font-size: 13px; }
.rj-row .ctl-btn { flex: none; min-width: 74px; }
.rj-note { margin: 8px 0 0; font-size: 12px; line-height: 1.35; opacity: .75; }

/* the beat of a YouTube video: tap along. A grey dot doesn't know the tempo, amber knows it, green knows where the beats are too. The ring fills as you tap. */
.icon.beat-dot { position: relative; width: 28px; height: 28px; min-width: 28px; min-height: 28px; padding: 0; align-self: center; display: grid; place-items: center; background: conic-gradient(var(--accent2) calc(var(--tap, 0) * 1turn), transparent 0), var(--glass); }
.icon.beat-dot[hidden] { display: none; }
.beat-dot i { display: block; width: 12px; height: 12px; border-radius: 50%; background: #7d8290; }
.beat-dot.tempo i { background: #ffb547; box-shadow: 0 0 6px #ffb547; }
.beat-dot.locked i { background: #4be38a; box-shadow: 0 0 6px #4be38a; }


/* the wind-up: a bar over whoever's charging a punch, which everyone can see */
.charge { position: absolute; left: 0; top: 0; width: 72px; height: 10px; border-radius: 6px; background: rgba(8, 6, 16, .82); border: 1px solid rgba(255, 255, 255, .55); box-shadow: 0 0 8px rgba(0, 0, 0, .7); overflow: hidden; pointer-events: none; will-change: transform; z-index: 900; }
.charge i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: #ffd23c; }
.charge b { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); background-size: 200% 100%; animation: chargeshine .55s linear infinite; }
.charge.full { border-color: #fff; box-shadow: 0 0 14px #ffb040, 0 0 26px #ff5a20; animation: chargefull .14s ease-in-out infinite alternate; }
@keyframes chargeshine { from { background-position: 200% 0; } to { background-position: -40% 0; } }
@keyframes chargefull { from { filter: brightness(1); } to { filter: brightness(1.7); } }

/* the server restarted: there may be something new */
.update-pop { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px; background: rgba(4, 3, 12, .55); }
.update-pop[hidden] { display: none; }
.update-card { width: min(340px, 100%); padding: 22px; display: grid; gap: 10px; text-align: center; }
.update-card h2 { margin: 0; font-size: 20px; }
.update-card p { margin: 0 0 6px; opacity: .85; }

/* Mega Sequences */
.mega-hud { position: fixed; left: 50%; top: calc(62px + var(--safe-t)); transform: translateX(-50%); z-index: 25; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; color: #fff; pointer-events: none; text-shadow: 0 0 18px #ff3a18, 0 2px 4px rgba(0, 0, 0, .9); }
.mega-hud[hidden] { display: none; }
.mega-hud b { font: 900 clamp(26px, 6vw, 58px) / 1 Impact, "Arial Black", sans-serif; letter-spacing: .04em; }
.mega-hud small { font-size: clamp(11px, 1.8vw, 15px); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .9; }
.mega-flash { position: fixed; inset: 0; z-index: 24; background: #fff; opacity: 0; pointer-events: none; }
.mega-btn:disabled { opacity: .45; cursor: not-allowed; }

.jg-count { position: fixed; left: 50%; bottom: calc(14px + var(--safe-b)); transform: translateX(-50%); z-index: 25; font: 800 19px / 1 system-ui, sans-serif; color: #ffd84a; text-shadow: 0 2px 4px rgba(0, 0, 0, .95), 0 0 12px rgba(120, 80, 0, .8); pointer-events: none; }
.jg-count[hidden] { display: none; }
.jg-count.pop { animation: jgpop .34s ease-out; }
@keyframes jgpop { 30% { transform: translateX(-50%) scale(1.5); } }
.mega-hud.jungle { text-shadow: 0 0 18px #2ad65a, 0 2px 4px rgba(0, 0, 0, .9); transition: opacity .7s; }

.mega-hud.fd { text-shadow: 0 0 20px #8a4dff, 0 2px 4px rgba(0, 0, 0, .9); transition: opacity .7s; }
.mega-hud.ship { text-shadow: 0 0 20px #1f8fd6, 0 2px 4px rgba(0, 0, 0, .9); transition: opacity .7s; }
.mega-sea { position: fixed; inset: 0; z-index: 25; background: radial-gradient(ellipse at 50% 20%, rgba(40, 120, 130, .65), rgba(2, 24, 34, .95)); opacity: 0; pointer-events: none; }
.mega-black { position: fixed; inset: 0; z-index: 26; background: #000; opacity: 0; pointer-events: none; }

/* Dordovania: the old way of showing who's winning */
.dv-hud { position: fixed; left: calc(14px + var(--safe-l, 0px)); top: calc(62px + var(--safe-t)); z-index: 25; display: grid; gap: 5px; font: 700 13px / 1 "Courier New", monospace; letter-spacing: .1em; color: #fff; text-shadow: 2px 2px 0 #000; pointer-events: none; }
.dv-hud[hidden] { display: none; }
.dv-row { display: flex; align-items: center; gap: 8px; }
.dv-row[hidden] { display: none; }
.dv-row span { width: 62px; }
.dv-bar { display: block; width: min(260px, 44vw); height: 13px; background: #000; border: 2px solid #fff; overflow: hidden; }
.dv-bar b { display: block; height: 100%; width: 100%; transition: width .15s; background: repeating-linear-gradient(90deg, #ff9a3c 0 6px, #000 6px 8px); }
.dv-bar.e b { background: repeating-linear-gradient(90deg, #ff1a3a 0 6px, #000 6px 8px); }
.dv-row.boss { margin-top: 2px; }
.dv-title { position: fixed; left: 50%; top: 29%; transform: translate(-50%, -50%) scale(.94); z-index: 25; font: 900 clamp(26px, 6.2vw, 62px) / 1.05 "Times New Roman", Georgia, serif; letter-spacing: .08em; text-align: center; color: #e9dcc8; text-shadow: 0 0 24px #b0122b, 0 3px 4px #000; opacity: 0; transition: opacity .6s, transform .6s; pointer-events: none; width: 92vw; }
.dv-title[hidden] { display: none; }
.dv-title.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.dv-title.boss { color: #ff2646; text-shadow: 0 0 34px #a100ff, 0 3px 4px #000; font-size: clamp(44px, 11vw, 124px); }
.dv-title.dead { color: #b0122b; }
.dv-title.win { color: #ffd76a; text-shadow: 0 0 30px #ff8a1a, 0 3px 4px #000; }
.dv-title.tears { color: #ff1b2c; text-shadow: 0 0 34px #a00010, 0 6px 2px #5a0008, 0 3px 4px #000; font-size: clamp(42px, 10vw, 120px); letter-spacing: .04em; }
.dv-vig { position: fixed; inset: 0; z-index: 23; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, transparent 42%, rgba(120, 0, 8, .55) 75%, rgba(20, 0, 0, .95)); }
.dv-bars { position: fixed; inset: 0; z-index: 24; pointer-events: none; }
.dv-bars i { position: absolute; left: 0; right: 0; height: 12vh; background: #000; transition: transform .5s ease; }
.dv-bars i:first-child { top: 0; transform: translateY(-100%); }
.dv-bars i:last-child { bottom: 0; transform: translateY(100%); }
.dv-bars.on i { transform: none; }
.dv-drips { position: fixed; inset: 0; z-index: 24; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 1.4s; }
.dv-drips.on { opacity: 1; }
.dv-drips i { position: absolute; top: -60vh; height: 60vh; border-radius: 0 0 50% 50%; background: linear-gradient(transparent, rgba(130, 2, 12, .6) 58%, rgba(190, 5, 22, .8)); animation: dvdrip 3s linear infinite; }
@keyframes dvdrip { to { transform: translateY(170vh); } }
.dv-red { position: fixed; inset: 0; z-index: 24; background: radial-gradient(transparent 30%, rgba(190, 0, 20, .85)); opacity: 0; pointer-events: none; }
.dv-title.hydro { color: #9fe4ff; text-shadow: 0 0 34px #1a7dff, 0 3px 4px #000; font-size: clamp(40px, 10vw, 116px); }
/* the cursor: a bit bigger than the system one, rainbow, glowing; only there while the mouse moves (main.js adds .moving), fading out when it stops */
.soft-cursor { position: fixed; left: 0; top: 0; width: 32px; height: 32px; margin: -1px 0 0 -1px; pointer-events: none; z-index: 2147483000; will-change: transform, opacity; opacity: 0; transition: opacity .35s ease;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='32' height='32'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ff4a6a'/%3E%3Cstop offset='.5' stop-color='%23ffd84a'/%3E%3Cstop offset='1' stop-color='%23ff7ad8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M1.5 1.5v17.2l4.4-4.1 3 7 3.1-1.3-3-6.9h6.1z' fill='url(%23g)' stroke='black' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat; background-size: 32px 32px;
  animation: cursor-rainbow 2.4s linear infinite; }
.soft-cursor.moving { opacity: 1; transition: opacity .08s ease; }
.soft-cursor[hidden] { display: none; }
@keyframes cursor-rainbow { from { filter: drop-shadow(0 0 3px #ff3a5a) drop-shadow(0 0 9px rgba(255, 58, 90, .85)) hue-rotate(0deg); } to { filter: drop-shadow(0 0 3px #ff3a5a) drop-shadow(0 0 9px rgba(255, 58, 90, .85)) hue-rotate(360deg); } }
@keyframes cursor-rainbow-big { from { filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 10px #ff4a6a) hue-rotate(0deg); } to { filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 10px #ff4a6a) hue-rotate(360deg); } }
.soft-cursor[data-k="hand"] { animation-name: cursor-rainbow-big; animation-duration: 1.2s; }
@media (prefers-reduced-motion: reduce) { .soft-cursor { animation: none; filter: drop-shadow(0 0 4px rgba(255, 74, 106, .7)); } }
.soft-cursor[data-k="aim"] { margin: -16px 0 0 -16px; background-size: 32px 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='32' height='32'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M12 2v7M12 15v7M2 12h7M15 12h7' stroke='black' stroke-width='4'/%3E%3Cpath d='M12 2v7M12 15v7M2 12h7M15 12h7' stroke='white' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='1.6' fill='white' stroke='black'/%3E%3C/g%3E%3C/svg%3E"); }

/* Stadium: the video layer behind the picture, and the premiere popup */
.st3d { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #000; visibility: hidden; }
.st3d.on { visibility: visible; }
.st3d .yt { visibility: visible; }
.st3cam { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.st3d.on .st3cam { transform-style: preserve-3d; }
.st3d.on .yt, .st3-face { position: absolute; left: 0; top: 0; opacity: 1; overflow: hidden; backface-visibility: visible; pointer-events: none !important; }
.st3d.on .yt { width: 1280px; height: 720px; bottom: auto; }
.st3-face iframe { position: absolute; border: 0; display: block; pointer-events: none; }
.st3-face.sky { transition: opacity 1.6s ease-out; }
.st3-face.sky::after { content: ""; position: absolute; inset: 0; background: var(--wash, transparent); opacity: var(--washA, 0); mix-blend-mode: screen; }
.mega-hud.stadium { text-shadow: 0 0 22px #ffcf3a, 0 0 4px #fff, 0 2px 4px rgba(0, 0, 0, .9); transition: opacity .7s; }
.stadium-card { max-width: 460px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.stadium-card h2 { margin: 0; font: 900 34px/1 Impact, "Arial Black", sans-serif; letter-spacing: .06em; color: #ffd84a; text-shadow: 0 0 18px #ff8a00; }
.stadium-card p { margin: 0; }
.stadium-card input { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); font-size: 15px; }
.stadium-card .btn[disabled] { opacity: .5; cursor: wait; }

/* at an arcade cabinet or the claw machine (arcade.js): no dance bar, nor its flyouts */
body.arc-playing .dances, body.arc-playing .specials, body.bar-playing .dances, body.bar-playing .specials, body.boxing .dances, body.boxing .specials, body.cake-sit .dances, body.cake-sit .specials { display: none !important; }   /* (at a cabinet, the claw, a bar stool, the darts, the boxing table, the birthday table) */
body.in-den #beatTap, body.cozy #beatTap { display: none !important; }   /* (the Den Lounge, and the birthday: no beat button) */
