:root {
  --ink: #070a14;
  --panel: rgba(14, 20, 38, 0.82);
  --line: rgba(140, 170, 240, 0.18);
  --tx1: #eef3ff;
  --tx2: #9fb0d8;
  --tx3: #63709a;
  --cyan: #7fe7ff;
  --violet: #a48bff;
  --ok: #6ee7a8;
  --bad: #ff6f8b;
  --e-out: cubic-bezier(0.16, 0.84, 0.32, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--tx1);
  font: 13px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

#stage { position: fixed; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; }

.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 10, 20, 0.72), rgba(7, 10, 20, 0));
  z-index: 15;
}

.hud__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar__btns { display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.topbar__btn {
  position: relative;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(35, 39, 44, 0.82);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background 140ms var(--e-out), color 140ms var(--e-out), border-color 140ms var(--e-out);
}
.topbar__btn:hover { background: rgba(52, 58, 66, 0.9); color: #fff; }
.topbar__btn.is-active {
  background: rgba(56, 62, 70, 0.92);
  color: #fff;
  border-color: rgba(127, 231, 255, 0.45);
}
#btnCore .icon-close { display: none; }
#btnCore.is-active {
  background: #fff;
  color: #1b1d1f;
  border-color: #fff;
}
#btnCore.is-active .icon-rbx { display: none; }
#btnCore.is-active .icon-close { display: block; }
.topbar__btn.has-unread::after {
  content: '';
  position: absolute;
  top: 5px; right: 5px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.hud__title { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 0.02em; min-width: 0; }
.hud__title strong { font-weight: 600; white-space: nowrap; }
.hud__title em { color: var(--tx3); font-style: normal; font-size: 12px; white-space: nowrap; }

.hud__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bad);
  box-shadow: 0 0 10px currentColor;
  transition: background 240ms var(--e-out);
}
.hud__dot.is-live { background: var(--ok); }

.hud__load {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1px solid rgba(127, 231, 255, 0.35);
  border-radius: 999px;
  background: rgba(14, 24, 48, 0.78);
  color: var(--cyan);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.hud__load[hidden] { display: none; }
.hud__load::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulseLoad 1s ease-in-out infinite alternate;
}
@keyframes pulseLoad { from { opacity: 0.35; } to { opacity: 1; } }

.hud__meta { display: flex; gap: 16px; color: var(--tx3); font-variant-numeric: tabular-nums; font-size: 12px; }

.radial {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(220px, 32vh, 300px);
  height: clamp(220px, 32vh, 300px);
  z-index: 13;
  transition: transform 125ms var(--e-out);
  pointer-events: none;
}
.radial.is-collapsed { transform: translate(-100%, -50%); }
.radial__disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}
.radial__btn {
  position: absolute;
  left: var(--rx);
  top: var(--ry);
  transform: translate(-50%, -50%);
  width: 17.5%;
  height: 17.5%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: transform 120ms;
}
.radial__btn--center { width: 20%; height: 20%; }
.radial__btn:hover,
.radial__btn.is-on {
  background: rgba(255, 255, 255, 0.16);
  transform: translate(-50%, -50%) scale(1.12);
}
.radial__btn::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 100ms;
}
.radial__btn:hover::after { opacity: 1; }
.radial__toggle {
  position: absolute;
  left: 104%;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}
.radial.is-collapsed .radial__toggle { left: calc(100% + 6px); }

.goat-win {
  position: fixed;
  top: 50%;
  right: 0.6%;
  transform: translateY(-50%);
  width: 248px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
  z-index: 13;
}
.goat-win--wide { width: 286px; }
.goat-win--bot { background: rgba(60, 10, 89, 0.65); }
.goat-win--presets { right: calc(0.6% + 274px); width: 224px; }
.goat-btn--preset { color: #e252ff; }
.goat-win.is-hidden { display: none; }
.goat-stack { display: flex; flex-direction: column; gap: 6px; }
.goat-btn {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms;
}
.goat-btn:hover { background: rgba(255, 255, 255, 0.16); }
.goat-btn.is-on { background: rgba(255, 255, 255, 0.24); }
.goat-btn--pink { background: rgba(255, 100, 255, 0.85); }
.goat-btn--violet { background: rgba(179, 0, 255, 0.45); }
.goat-btn--magenta { background: rgba(255, 0, 195, 0.45); }
.goat-empty { padding: 18px 8px; text-align: center; color: rgba(255, 255, 255, 0.65); font-size: 12px; }
.goat-input,
.goat-win input[type="text"],
.goat-win input:not([type="range"]):not([type="color"]),
.goat-win select {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  outline: none;
}
.goat-input::placeholder { color: rgba(255, 255, 255, 0.72); }

.panel.goat-panel {
  position: fixed;
  top: 50%;
  right: 0.6%;
  transform: translateY(-50%);
  width: 266px;
  max-height: 76vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
  overflow: visible;
  z-index: 13;
}
.goat-reset-top {
  position: absolute;
  left: 0;
  bottom: calc(100% + 4px);
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.goat-reset-top:hover { background: rgba(200, 30, 60, 0.75); }
@keyframes goatSlideIn {
  from { transform: translate(110%, -50%); opacity: 0.4; }
  to { transform: translate(0, -50%); opacity: 1; }
}
.goat-win:not(.is-hidden),
.panel.goat-panel:not(.is-hidden),
.selection:not(.is-hidden) {
  animation: goatSlideIn 125ms ease-out;
}
.goat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}
.goat-icon { display: inline-flex; align-items: center; justify-content: center; color: #fff; opacity: 0.9; }
.goat-title {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-align: center;
}
.sel-close--mobile { display: none; }
.goat-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.goat-cats {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 2px;
}
.goat-cat { display: flex; flex-direction: column; gap: 2px; }
.goat-cat__label {
  font-size: 12px;
  font-weight: 700;
  padding-left: 2px;
}
.goat-cat__btn {
  width: 100%;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background 120ms;
}
.goat-cat__btn:hover { background: rgba(255, 255, 255, 0.14); }
.goat-cat__btn.is-open { background: rgba(255, 255, 255, 0.22); }
.goat-presets-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 5px;
  padding-top: 2px;
}
.goat-pbtn {
  padding: 8px 4px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms;
}
.goat-pbtn:hover { background: rgba(255, 255, 255, 0.2); }
.goat-pbtn--male:hover { background: #2c6bff; }
.goat-pbtn--female:hover { background: #ff2cf8; }

.coloring-grid { display: grid; grid-template-columns: 92px 1fr; gap: 8px; }
.coloring-slots { display: flex; flex-direction: column; gap: 3px; }
.cslot {
  width: 100%;
  padding: 4px 6px;
  border: 2px solid #000;
  border-radius: 4px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.cslot.is-selected { border-color: #fff; }
.coloring-right { display: flex; flex-direction: column; gap: 6px; }
.coloring-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.cswatch {
  aspect-ratio: 1;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  cursor: pointer;
}
.cswatch:hover { transform: scale(1.08); }
.coloring-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.coloring-rgb { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.coloring-rgb input {
  padding: 6px 4px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: #111;
  outline: none;
}
#rgbR { background: #ff8787; }
#rgbG { background: #87ff87; }
#rgbB { background: #8787ff; }

.selection {
  position: fixed;
  top: 50%;
  right: calc(0.6% + 274px);
  transform: translateY(-50%);
  width: 224px;
  height: 54vh;
  max-height: 460px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
  z-index: 13;
}
.selection.is-hidden { display: none; }
.sel-back { display: none; }
.sel-back,
.sel-close {
  width: 24px; height: 24px;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.sel-search input {
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  outline: none;
}
.sel-search input::placeholder { color: rgba(255, 255, 255, 0.72); }
.sel-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sel-item {
  width: 100%;
  padding: 6px 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background 110ms;
}
.sel-item:hover { background: rgba(255, 255, 255, 0.18); }
.sel-item.is-on { background: rgba(255, 255, 255, 0.3); }
.sel-item.is-busy { opacity: 0.55; cursor: progress; }

.panel__row { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.panel__row--head { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 8px; }
.panel__row--colors { justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 6px; }
.panel__row--search { padding-bottom: 8px; }
.cpick { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.cpick input[type="color"] { flex: 0 0 auto; width: 26px; height: 22px; padding: 1px; border-radius: 6px; cursor: pointer; }
.panel__row--foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.panel__row label { color: var(--tx3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }

.panel input,
.panel select {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(7, 10, 20, 0.7);
  color: var(--tx1);
  font: inherit;
  outline: none;
  transition: border-color 140ms var(--e-out);
}
.panel input:focus,
.panel select:focus { border-color: rgba(127, 231, 255, 0.5); }

.slot { padding: 8px 0; border-bottom: 1px dashed rgba(140, 170, 240, 0.1); }
.slot:last-of-type { border-bottom: 0; }

.slot__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 6px;
}
.slot__name { color: var(--tx2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; }
.slot__active { color: var(--cyan); font-size: 11px; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 160ms; }
.slot__active.is-on { opacity: 1; }

.slot__list { display: flex; flex-wrap: wrap; gap: 5px; }

.chip {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 10, 20, 0.55);
  color: var(--tx2);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
  transition: color 140ms var(--e-out), border-color 140ms var(--e-out), background 140ms var(--e-out);
}
.chip:hover { color: var(--tx1); border-color: rgba(164, 139, 255, 0.5); }
.chip.is-on {
  color: #06121c;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-color: transparent;
  font-weight: 600;
}
.chip.is-busy { opacity: 0.5; cursor: progress; }

.panel button#clearAll {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--tx2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color 140ms, border-color 140ms;
}
.panel button#clearAll:hover { color: var(--bad); border-color: rgba(255, 111, 139, 0.45); }

.notice {
  position: fixed;
  left: 50%; top: 56px;
  transform: translateX(-50%);
  max-width: 420px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 111, 139, 0.35);
  border-radius: 12px;
  background: rgba(40, 12, 20, 0.9);
  color: #ffc9d3;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  z-index: 20;
}
.notice[hidden] { display: none; }

.chat {
  position: fixed;
  left: 14px; top: 56px;
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(20, 22, 26, 0.7);
  backdrop-filter: blur(12px);
  z-index: 12;
}
.chat__log {
  height: 156px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
  padding-right: 4px;
}
.chat__msg { color: #f2f4f8; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.chat__msg strong { font-weight: 600; margin-right: 5px; }
.chat__msg--sys { color: #a8b0be; font-style: italic; }
.chat__form {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px 2px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(15, 17, 20, 0.58);
}
.chat__form:focus-within { border-color: rgba(255, 255, 255, 0.42); }
.chat__form input {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  outline: none;
}
.chat__form input::placeholder { color: rgba(255, 255, 255, 0.55); }
.chat__form button {
  width: 30px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}
.chat__form button:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.jump-btn {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 68px;
  height: 68px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(25, 27, 30, 0.62);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.85);
  touch-action: none;
  z-index: 12;
  cursor: pointer;
}
.jump-btn:active,
.jump-btn.is-pressed { background: rgba(255, 255, 255, 0.28); color: #fff; }

.joy {
  display: none;
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(14, 20, 38, 0.55);
  backdrop-filter: blur(10px);
  touch-action: none;
  z-index: 12;
}
.joy__knob {
  position: absolute;
  left: 50%; top: 50%;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(127, 231, 255, 0.35);
  border: 1px solid rgba(127, 231, 255, 0.7);
  pointer-events: none;
}

.coregui {
  position: fixed;
  top: 0; bottom: 0; left: 56px;
  width: 280px;
  display: flex;
  flex-direction: column;
  background: rgba(35, 37, 39, 0.96);
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  z-index: 16;
  padding: 18px 16px 14px;
}
.coregui.is-hidden { display: none; }
.coregui__head {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 6px 0 18px;
}
.coregui__nav { display: flex; flex-direction: column; }
.coregui__item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 10px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #e6e8eb;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.coregui__item:hover,
.coregui__item.is-on { background: rgba(255, 255, 255, 0.08); color: #fff; }
.coregui__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 2px;
  font-size: 13px;
  color: #cfd4dc;
}
.coregui__list { display: flex; flex-direction: column; gap: 6px; }
.coregui__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}
.coregui__foot { padding-top: 10px; }
.coregui__reset {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #1b1d1f;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.coregui__reset:hover { background: #e8ecf2; }

.panel.is-hidden,
.chat.is-hidden { display: none; }

.radial__icon-img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  pointer-events: none;
}
.goat-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.goat-win--anim {
  width: 280px;
}
.anim-top-toggles {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}
.anim-tbtn {
  flex: 1;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.anim-tbtn:hover { background: rgba(255, 255, 255, 0.14); }
.anim-genres {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}
.anim-gbtn {
  flex: 1;
  padding: 5px 0;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.anim-gbtn.is-active {
  background: rgba(255, 255, 255, 0.2);
  outline: 1px solid rgba(255, 255, 255, 0.35);
}
.anim-nothing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 18px 10px;
  color: #949494;
  font-size: 12px;
}
.anim-nothing.is-hidden,
.anim-list.is-hidden {
  display: none;
}
.anim-nothing img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  opacity: 0.85;
}
.anim-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 210px;
  overflow-y: auto;
  margin-bottom: 6px;
}
.anim-item {
  width: 100%;
  text-align: left;
  padding: 5px 8px;
  border: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.anim-item:hover { background: rgba(255, 255, 255, 0.12); }
.anim-item.is-playing {
  background: rgba(155, 183, 255, 0.28);
  outline: 1px solid rgba(155, 183, 255, 0.65);
}
.anim-inputs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.goat-win, .panel.goat-panel, .selection, .radial__disc {
  background: rgba(0, 0, 0, 0.65);
}
.goat-win.goat-win--bot {
  background: rgba(54, 14, 82, 0.78);
}
.bot-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.bot-switch__btn {
  padding: 6px 8px;
  font-size: 12px;
}
.bot-switch__btn.is-on {
  background: rgba(164, 96, 255, 0.48);
  box-shadow: inset 0 0 0 1px rgba(210, 175, 255, 0.65);
}
.bot-edit-pill {
  position: fixed;
  top: 52px;
  right: 12px;
  z-index: 22;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(78, 22, 118, 0.9);
  border: 1px solid rgba(210, 175, 255, 0.5);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.bot-edit-pill.is-hidden { display: none; }
.cum-aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(255, 195, 225, 0) 48%, rgba(255, 165, 210, 0.24) 76%, rgba(255, 130, 195, 0.52) 100%);
  box-shadow: inset 0 0 160px rgba(255, 145, 200, 0.35);
}
.preset-scroll {
  max-height: 280px;
  overflow-y: auto;
  margin-top: 6px;
}
.preset-sec-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 6px 2px 2px;
}
.preset-row {
  display: flex;
  gap: 4px;
  align-items: center;
}
.preset-row .goat-btn { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preset-del {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 70, 100, 0.28);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}
.preset-del:hover { background: rgba(255, 70, 100, 0.55); }
.morph-preview {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  width: 184px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(18, 12, 28, 0.92);
  border: 1px solid rgba(255, 160, 235, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.morph-preview.is-hidden { display: none; }
.morph-preview canvas {
  width: 176px;
  height: 176px;
  border-radius: 6px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.35));
}
.morph-preview__title {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  max-width: 174px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Roblox Auth & Home Portal ──────────────────────────────────────────── */
.rbx-loader {
  position: fixed; inset: 0; z-index: 95;
  background: radial-gradient(circle at 50% 40%, #1d2230 0%, #0b0d13 75%);
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.rbx-loader__card { width: min(340px, 88vw); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rbx-loader__badge {
  width: 96px; height: 96px; border-radius: 18px;
  background: linear-gradient(135deg, #2b124c 0%, #851e6f 55%, #e252ff 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900; letter-spacing: 2px; box-shadow: 0 12px 32px rgba(226,82,255,0.35);
}
.rbx-loader__title { font-size: 20px; font-weight: 800; }
.rbx-loader__bar { width: 100%; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; }
.rbx-loader__fill { height: 100%; width: 0%; background: #00b06f; transition: width 180ms ease; }
.rbx-loader__text { font-size: 13px; color: #aeb3be; }

.is-hidden { display: none !important; }
.rbx-portal { position: fixed; inset: 0; z-index: 90; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
.rbx-portal.is-hidden, .rbx-auth.is-hidden, .rbx-home.is-hidden { display: none; }
.rbx-auth {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 25% 20%, #1d2438 0%, #0b0d14 60%, #06070a 100%);
  overflow-y: auto; padding: 20px;
}
.rbx-auth__bg {
  position: fixed; inset: 0; pointer-events: none; opacity: 0.25;
  background-image: linear-gradient(135deg, rgba(255,255,255,.04) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,.04) 25%, transparent 25%);
  background-size: 64px 64px;
}
.rbx-auth__center { position: relative; z-index: 1; width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; }
.rbx-logo { font-weight: 900; font-size: 30px; letter-spacing: 2px; user-select: none; margin-bottom: 16px; }
.rbx-logo--light { color: #fff; }
.rbx-logo--dark { color: #111; font-size: 22px; margin: 0; }
.ph-badge {
  display: inline-block;
  background: #ff9000;
  color: #000;
  padding: 1px 6px;
  margin: 0 2px;
  border-radius: 5px;
  font-weight: 900;
  line-height: 1.05;
}
.rbx-o {
  display: inline-flex; align-items: center; justify-content: center;
  width: 0.72em; height: 0.72em; margin: 0 2px;
  border: 0.2em solid currentColor; border-radius: 4px;
  transform: rotate(-14deg); color: transparent; vertical-align: -0.06em;
  box-shadow: inset 0 0 0 1px transparent;
}
.rbx-logo--light .rbx-o { border-color: #fff; }
.rbx-logo--dark .rbx-o { border-color: #191b1f; }
.rbx-card {
  width: 100%; background: #1e2024; color: #fff;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  padding: 22px 22px 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.65);
  display: flex; flex-direction: column; gap: 10px;
}
.rbx-card.is-hidden { display: none; }
.rbx-card__title { margin: 0; font-size: 20px; font-weight: 700; }
.rbx-card__sub { margin: -4px 0 4px; font-size: 13px; color: #adb2bd; }
.rbx-lbl { font-size: 12px; font-weight: 600; color: #d1d5de; margin-top: 2px; }
.rbx-field {
  width: 100%; box-sizing: border-box; height: 38px; padding: 0 12px;
  border-radius: 8px; border: 1px solid #3c4048; background: #131518; color: #fff; font-size: 14px;
}
.rbx-field:focus { outline: none; border-color: #fff; }
.rbx-bday { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 8px; }
.rbx-gender { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rbx-gbtn {
  height: 36px; border-radius: 8px; border: 1px solid #3c4048;
  background: #131518; color: #cfd4df; font-weight: 600; cursor: pointer;
}
.rbx-gbtn.is-selected { border-color: #fff; background: #2d3138; color: #fff; }
.rbx-pass-wrap { position: relative; }
.rbx-pass-wrap .rbx-field { padding-right: 38px; }
.rbx-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #9ea4b0; cursor: pointer; font-size: 16px;
}
.rbx-submit {
  margin-top: 6px; height: 40px; border-radius: 8px; border: 0;
  background: #ff9000; color: #000; font-size: 15px; font-weight: 800; cursor: pointer;
}
.rbx-submit:hover { background: #e68200; }
.rbx-err { min-height: 16px; font-size: 12px; color: #ff6b7a; }
.rbx-switch { text-align: center; font-size: 13px; color: #aeb3be; margin-top: 4px; }
.rbx-captcha-box { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.rbx-cf-widget {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 8px;
  background: #23262b; border: 1px solid #3c4048; min-height: 44px;
}
.rbx-cf-check { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #eef1f6; cursor: pointer; }
.rbx-cf-check input { width: 18px; height: 18px; accent-color: #f38020; cursor: pointer; }
.rbx-cf-brand { font-size: 11px; font-weight: 800; color: #f38020; letter-spacing: 0.4px; }
.rbx-svg-row { display: flex; align-items: center; gap: 6px; }
.rbx-svg-img { height: 44px; border-radius: 6px; overflow: hidden; border: 1px solid #3c4048; flex-shrink: 0; }
.rbx-cap-ref {
  width: 34px; height: 44px; border-radius: 8px; border: 1px solid #3c4048;
  background: #131518; color: #fff; font-size: 16px; cursor: pointer; flex-shrink: 0;
}
.rbx-cap-ref:hover { background: #2d3138; }
.rbx-cap-inp { flex: 1; min-width: 0; height: 44px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.rbx-link { background: none; border: 0; color: #fff; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }

.rbx-home { width: 100%; height: 100%; background: #f2f4f5; color: #191b1f; display: flex; flex-direction: column; }
.rbx-topbar {
  height: 48px; background: #fff; border-bottom: 1px solid #dee1e6;
  padding: 0 18px; display: flex; align-items: center; justify-content: space-between;
}
.rbx-topbar__right { display: flex; align-items: center; gap: 12px; }
.rbx-userpill { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.rbx-avatar-img {
  width: 30px; height: 30px; border-radius: 50%; background: #dee1e6;
  object-fit: cover; border: 1px solid #cfd4dd;
}
.rbx-gear {
  border: 1px solid #d4d8df; background: #fff; color: #191b1f; border-radius: 6px;
  padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.rbx-gear:hover { background: #eef1f5; }
.rbx-body { flex: 1; display: flex; min-height: 0; }
.rbx-sidebar {
  width: 190px; background: #fff; border-right: 1px solid #dee1e6;
  padding: 14px 10px; display: flex; flex-direction: column; gap: 6px;
}
.rbx-side-user { font-weight: 700; font-size: 14px; padding: 6px 10px 10px; border-bottom: 1px solid #eef0f4; margin-bottom: 4px; }
.rbx-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0;
  border-radius: 8px; background: transparent; color: #393b3d; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left;
}
.rbx-nav-item:hover { background: #f2f4f5; }
.rbx-nav-item.is-active { background: #e8ecf2; color: #111; }
.rbx-main { flex: 1; padding: 24px 28px; overflow-y: auto; }
.rbx-h1 { margin: 0 0 16px; font-size: 26px; font-weight: 800; }
.rbx-h2 { margin: 0 0 14px; font-size: 17px; font-weight: 700; }
.rbx-places { display: flex; flex-wrap: wrap; gap: 18px; }
.rbx-place {
  width: 210px; background: #fff; border-radius: 10px; padding: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06); cursor: pointer; transition: transform 140ms ease, box-shadow 140ms ease;
}
.rbx-place:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.12); }
.rbx-place__thumb {
  position: relative; height: 140px; border-radius: 8px;
  background: linear-gradient(135deg, #2b124c 0%, #851e6f 55%, #e252ff 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.rbx-place__badge { font-size: 34px; font-weight: 900; letter-spacing: 3px; color: #fff; text-shadow: 0 4px 16px rgba(0,0,0,0.5); }
.rbx-place__play {
  position: absolute; bottom: 8px; right: 8px; background: #00b06f; color: #fff;
  font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 6px;
}
.rbx-place__title { margin-top: 10px; font-size: 15px; font-weight: 700; }
.rbx-place__meta { margin-top: 3px; font-size: 12px; color: #60656f; }
.rbx-av-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.rbx-av-btn {
  padding: 10px 16px; border-radius: 8px; border: 1px solid #d4d8df; background: #fff;
  color: #191b1f; font-weight: 700; cursor: pointer;
}
.rbx-av-btn:hover { background: #eef1f5; }
.rbx-av-btn--play { background: #00b06f; color: #fff; border-color: #00b06f; }
.rbx-av-btn--play:hover { background: #009960; }
.av-ed { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.av-ed__left { width: 230px; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.av-ed__preview {
  width: 230px; height: 270px; border-radius: 10px; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #d6be96 0%, #8c7355 58%, #4d3e2d 100%);
  box-shadow: inset 0 0 24px rgba(0,0,0,0.22);
}
.av-ed__preview canvas { width: 100%; height: 100%; display: block; }
.av-ed__meta { display: flex; justify-content: flex-end; }
.av-ed__rbx-load { display: flex; gap: 6px; }
.av-ed__right { flex: 1; min-width: 280px; background: #fff; border-radius: 10px; border: 1px solid #dee1e6; padding: 12px 16px; }
.av-ed__tabs { display: flex; gap: 18px; border-bottom: 1px solid #dee1e6; padding-bottom: 0; overflow-x: auto; }
.av-ed__tab {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 4px 10px;
  font-size: 14px; font-weight: 600; color: #60656f; cursor: pointer; white-space: nowrap;
}
.av-ed__tab.is-active { color: #191b1f; border-bottom-color: #191b1f; }
.av-ed__subtabs { display: flex; flex-wrap: wrap; gap: 12px; padding: 10px 0 12px; border-bottom: 1px solid #eef0f4; }
.av-ed__subtab {
  background: none; border: 0; padding: 4px 8px; border-radius: 6px;
  font-size: 13px; font-weight: 600; color: #60656f; cursor: pointer;
}
.av-ed__subtab.is-active { background: #eef1f5; color: #191b1f; }
.av-ed__content { padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.av-ed__row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.av-ed__input {
  flex: 1; min-width: 140px; height: 36px; padding: 0 10px; border-radius: 6px;
  border: 1px solid #cfd4dd; background: #f8f9fb; color: #191b1f; font-size: 13px;
}
.av-ed__btn {
  height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid #cfd4dd;
  background: #fff; color: #191b1f; font-weight: 700; font-size: 13px; cursor: pointer;
}
.av-ed__btn:hover { background: #eef1f5; }
.av-ed__btn--blue { background: #ff9000; border-color: #ff9000; color: #000; }
.av-ed__btn--blue:hover { background: #e68200; }

.rbx-game { max-width: 960px; }
.rbx-game__hero { display: flex; gap: 24px; flex-wrap: wrap; }
.rbx-game__thumb {
  flex: 1 1 480px; min-height: 280px; border-radius: 8px;
  background: linear-gradient(135deg, #2b124c 0%, #851e6f 55%, #e252ff 100%);
  display: flex; align-items: center; justify-content: center;
}
.rbx-game__info { flex: 0 0 260px; display: flex; flex-direction: column; gap: 6px; }
.rbx-game__title { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.15; }
.rbx-game__by { font-size: 13px; color: #60656f; }
.rbx-game__play {
  margin-top: 12px; width: 100%; height: 48px; border: 0; border-radius: 8px;
  background: #ff9000; color: #fff; font-size: 22px; font-weight: 900; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.rbx-game__play:hover { background: #e68200; }
.rbx-game__actions { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 12px; }
.rbx-game__vote-wrap { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.rbx-game__votes { display: flex; gap: 16px; }
.rbx-game__ratio { height: 3px; border-radius: 2px; background: #cfd4dd; overflow: hidden; }
.rbx-game__ratio-fill { height: 100%; width: 100%; background: #393b3d; transition: width 160ms ease; }
.rbx-game__act {
  background: none; border: 0; cursor: pointer; color: #393b3d; padding: 2px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.rbx-game__act.is-active { color: #ff9000; }
.rbx-game__act.is-active svg { fill: #ff9000; stroke: #ff9000; }
.rbx-game__act small { font-size: 11px; color: #60656f; font-weight: 600; }
.rbx-game__tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #dee1e6; margin-top: 22px; }
.rbx-game__tab {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px;
  font-size: 14px; font-weight: 700; color: #60656f; cursor: pointer;
}
.rbx-game__tab.is-active { color: #191b1f; border-bottom-color: #191b1f; }
.rbx-game__h3 { margin: 16px 0 8px; font-size: 16px; font-weight: 700; }
.rbx-game__desc { margin: 0 0 18px; font-size: 14px; color: #393b3d; }
.rbx-game__mat {
  display: inline-flex; gap: 10px; align-items: center; padding: 10px 14px;
  border-radius: 8px; background: #e8eaee; font-size: 13px; margin-bottom: 18px;
}
.rbx-game__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 12px;
  padding: 14px 0; border-top: 1px solid #dee1e6; border-bottom: 1px solid #dee1e6; text-align: center;
}
.rbx-game__stats span { display: block; font-size: 12px; color: #60656f; margin-bottom: 4px; }
.rbx-game__stats strong { font-size: 13px; color: #191b1f; }
.rbx-game__srv {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 16px;
  background: #fff; border: 1px solid #dee1e6; border-radius: 8px;
}
.av-ed__swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.av-ed__swatch {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2); cursor: pointer;
}
.av-ed__acc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.av-ed__card {
  background: #f2f4f5; border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; font-weight: 600;
}
@media (max-width: 700px) {
  .rbx-sidebar { width: 130px; padding: 10px 6px; }
  .rbx-main { padding: 16px; }
}
.bot-edit-pill button {
  border: 0;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.room-dock {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 26;
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: center;
}
.room-dock.is-hidden,
.room-select.is-hidden { display: none; }
.room-card,
.room-select {
  width: 240px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.room-card--members { width: 250px; }
.room-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 7px;
}
.room-btn {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.room-btn:hover { background: rgba(255, 255, 255, 0.18); }
.room-btn--danger { color: #ff8e9e; }
.room-btn--confirm { background: rgba(80, 195, 120, 0.35); color: #b8ffd0; }
.room-btn--confirm:hover { background: rgba(80, 195, 120, 0.52); }
.room-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  text-align: center;
}
.room-members {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 210px;
  overflow-y: auto;
}
.room-empty {
  font-size: 12px;
  opacity: 0.6;
  text-align: center;
  padding: 18px 6px;
}
.room-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  font-size: 13px;
}
.room-member-row__act {
  border: 0;
  border-radius: 6px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.5);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.room-select {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 27;
  width: 270px;
}
.room-select__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}
.room-arrow {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.room-arrow:hover { background: rgba(255, 255, 255, 0.18); }
.room-select__label {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

#winCatalogAcc {
  width: 320px;
}
#winCatalogAcc .goat-stack > div {
  min-width: 0;
}
#winCatalogAcc .goat-input {
  flex: 1 1 80px;
  min-width: 72px;
  padding: 7px 9px;
  text-align: left;
}
#winCatalogAcc #catBodyPartSelect {
  flex: 0 0 92px;
  width: 92px;
  min-width: 92px;
}
#winCatalogAcc .goat-btn {
  width: auto;
  flex: 0 0 auto;
  padding: 7px 11px;
  font-size: 12px;
  white-space: nowrap;
}
#winCatalogAcc #btnCatBodyMale,
#winCatalogAcc #btnCatBodyFemale {
  flex: 1 1 0;
}
#winCatalogAcc #accList .goat-btn {
  padding: 3px 9px;
  background: rgba(255, 90, 110, 0.35);
}
#winCatalogAcc .goat-stack > div > span {
  flex-shrink: 0;
  white-space: nowrap;
}
.goat-head {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
}

.player-menu {
  position: fixed;
  z-index: 25;
  width: 155px;
  padding: 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translate(-50%, -50%);
}
.player-menu.is-hidden,
.sync-modal.is-hidden,
.sync-bar.is-hidden {
  display: none !important;
}
.player-menu__name {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  padding: 3px 4px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 5px;
}
.player-menu__btn {
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11px;
  padding: 5px 6px;
}
.player-menu__btn:hover {
  background: rgba(255, 255, 255, 0.14);
}
.sync-modal {
  position: fixed;
  left: 12px;
  bottom: 64px;
  z-index: 26;
  width: 195px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.sync-modal__text {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.sync-modal__actions {
  display: flex;
  gap: 8px;
}
.sync-modal__accept {
  flex: 1;
  background: rgba(98, 210, 134, 0.35);
  color: #d8ffea;
}
.sync-modal__decline {
  flex: 1;
  background: rgba(255, 98, 120, 0.3);
  color: #ffd8de;
}
.sync-bar {
  position: fixed;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  z-index: 22;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 16, 22, 0.88);
  border: 1px solid rgba(155, 183, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #eef3ff;
}
.sync-bar__stop {
  padding: 4px 10px;
  font-size: 11px;
  background: rgba(255, 98, 120, 0.32);
  color: #ffd8de;
}
.sync-bar__nudge {
  padding: 4px 7px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.14);
  color: #eef3ff;
}
.shiftlock-reticle {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  z-index: 20;
}
.shiftlock-reticle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
}
.shiftlock-reticle.is-hidden { display: none; }
.coregui__sync-btn {
  padding: 2px 8px;
  font-size: 11px;
  border: 0;
  border-radius: 5px;
  background: rgba(145, 150, 255, 0.28);
  color: #eef3ff;
  cursor: pointer;
}
.coregui__sync-btn:hover {
  background: rgba(145, 150, 255, 0.48);
}

.shiftlock-btn {
  display: none;
  position: fixed;
  right: 98px;
  bottom: 28px;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(25, 27, 30, 0.62);
  color: rgba(255, 255, 255, 0.85);
  touch-action: none;
  z-index: 12;
  cursor: pointer;
}
.shiftlock-btn.is-active {
  background: rgba(145, 150, 255, 0.36);
  border-color: rgba(180, 185, 255, 0.72);
  color: #fff;
}

@media (pointer: coarse), (max-width: 900px) {
  .joy { display: block; }
  .jump-btn { display: inline-flex; }
  .shiftlock-btn { display: inline-flex; }
  .hud__title strong,
  .hud__title em { display: none; }
  .coregui { left: 52px; width: min(260px, calc(100vw - 60px)); }
  .radial { width: 190px; height: 190px; }
  .goat-win { left: 10px; right: 10px; top: 58px; transform: none; width: auto; max-width: 340px; margin: 0 auto; z-index: 14; }
  .goat-win--wide { max-width: calc(100vw - 20px); max-height: calc(100dvh - 80px); }
  .goat-win, .panel, .selection, .chat, .coregui, .topbar__btn, .radial__disc, .room-card, .room-select {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .panel.goat-panel { left: 10px; right: 10px; top: 96px; bottom: 10px; transform: none; width: auto; max-height: none; z-index: 14; }
  .selection { left: 10px; right: 10px; top: 58px; bottom: 10px; transform: none; width: auto; height: auto; max-height: none; z-index: 14; }
  .sel-back,
  .sel-close--mobile { display: inline-flex; align-items: center; justify-content: center; }
  .chat { left: 10px; right: 10px; top: 58px; bottom: auto; width: auto; max-width: 340px; z-index: 14; }
  .chat__log { height: 120px; }
  .joy { left: 16px; bottom: 18px; }
}