/* Console selectors keep native select state while sharing one visible control. */
body.halloween.overhaul.worlds .xg-select {
  position:relative;
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
}
body.halloween.overhaul.worlds .xg-select-trigger {
  display:flex;
  align-items:center;
  gap:9px;
  width:100%;
  height:48px;
  min-height:48px;
  min-width:0;
  padding:7px 11px;
  border:1px solid var(--xg-border);
  border-radius:10px;
  background:linear-gradient(145deg,#ffffff0a,transparent 48%,#ffffff02),var(--xg-deep);
  box-shadow:inset 0 1px 0 #ffffff0e,0 3px 9px #0002;
  color:var(--text);
  font:inherit;
  font-size:12px;
  line-height:1.35;
  text-align:left;
  cursor:pointer;
  isolation:isolate;
  transition:border-color .18s,background .18s,box-shadow .18s;
}
body.halloween.overhaul.worlds .xg-select-trigger[aria-expanded=true] {
  border-color:rgba(var(--xg-accent-rgb),.65);
  background:linear-gradient(145deg,rgba(var(--xg-accent-rgb),.11),transparent 65%),var(--xg-deep);
  box-shadow:inset 0 1px 0 #ffffff12,0 0 0 3px rgba(var(--xg-accent-rgb),.07);
}
body.halloween.overhaul.worlds .xg-select-trigger:focus-visible {
  outline:2px solid var(--lime);
  outline-offset:3px;
  border-color:var(--lime);
}
body.halloween.overhaul.worlds .xg-select-trigger:disabled {cursor:default;opacity:.5}
body.halloween.overhaul.worlds .xg-select-art {
  display:block;
  flex:0 0 34px;
  width:34px;
  height:30px;
  border:1px solid #ffffff24;
  border-radius:6px;
  object-fit:cover;
  object-position:center;
  background:var(--xg-raised);
  box-shadow:0 2px 5px #0003;
}
body.halloween.overhaul.worlds .xg-select-copy {
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  gap:2px;
  min-width:0;
  overflow:hidden;
}
body.halloween.overhaul.worlds .xg-select-kicker {
  display:block;
  overflow:hidden;
  color:var(--xg-dim);
  font:600 7px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:1.15px;
  white-space:nowrap;
  text-overflow:ellipsis;
}
body.halloween.overhaul.worlds .xg-select-value {
  display:block;
  min-width:0;
  overflow:hidden;
  color:var(--text);
  font-size:12px;
  font-weight:600;
  line-height:1.35;
  white-space:nowrap;
  text-overflow:ellipsis;
}
body.halloween.overhaul.worlds .xg-select-chevron {
  display:block;
  flex:0 0 14px;
  width:14px;
  height:14px;
  margin-left:auto;
  fill:none;
  stroke:var(--lime);
  stroke-width:1.7;
  transform:none;
  transition:transform .18s;
}
body.halloween.overhaul.worlds .xg-select-trigger[aria-expanded=true] .xg-select-chevron {transform:rotate(180deg)}

/* The featured selector occupies the reserved rail above the clipped artwork. */
body.halloween.overhaul.worlds .stage-picker {left:auto;right:0;width:244px;max-width:53%;height:48px}
body.halloween.overhaul.worlds .stage-picker .xg-select-trigger {border-radius:12px;padding:7px 10px;gap:9px;border-color:rgba(var(--xg-accent-rgb),.3)}
body.halloween.overhaul.worlds .stage-picker .xg-select-value {font-size:11.5px}
body.halloween.overhaul.worlds .sort-label .xg-select {flex:0 0 auto;width:145px;max-width:none}
body.halloween.overhaul.worlds .sort-label .xg-select-trigger {padding-left:12px;padding-right:10px}
body.halloween.overhaul.worlds .sort-label .xg-select-value {font-size:11px}
body.halloween.overhaul.worlds .xg-select-field {display:flex;flex-direction:column;min-width:0}
body.halloween.overhaul.worlds .updates-tools .xg-select-field {flex:1 1 170px;gap:8px}
body.halloween.overhaul.worlds .updates-tools .xg-select-field>span {color:var(--xg-dim);font-size:10px;font-weight:600;letter-spacing:.3px;line-height:1.55}
body.halloween.overhaul.worlds .form-row>.xg-select-field {gap:6px;margin-bottom:15px;color:var(--xg-soft);font-size:11px;line-height:1.55}
body.halloween.overhaul.worlds .updates-tools .xg-select-trigger {border-radius:8px;background:linear-gradient(145deg,#ffffff07,transparent 50%),var(--xg-surface)}
body.halloween.overhaul.worlds .form-row .xg-select-trigger {border-radius:8px}

/* A single top-layer menu. Its options scroll without moving the page behind it. */
body.halloween.overhaul.worlds .xg-select-panel {
  display:none;
  position:fixed;
  inset:auto;
  z-index:1000;
  flex-direction:column;
  width:min(340px,calc(100vw - 24px));
  min-width:0;
  max-width:calc(100vw - 24px);
  height:auto;
  max-height:360px;
  max-height:min(360px,calc(100dvh - 24px));
  margin:0;
  padding:6px;
  overflow:hidden;
  box-sizing:border-box;
  border:1px solid rgba(var(--xg-accent-rgb),.32);
  border-radius:13px;
  background:linear-gradient(145deg,#ffffff09,transparent 37%,#ffffff02),var(--xg-surface);
  box-shadow:0 19px 50px #0008,0 3px 10px #0005,inset 0 1px 0 #ffffff16;
  color:var(--text);
  font-family:var(--font);
  text-align:left;
  transform-origin:50% 0;
  isolation:isolate;
}
body.halloween.overhaul.worlds .xg-select-panel.is-open {display:flex;animation:xg-select-open .18s cubic-bezier(.2,.7,.2,1) both}
body.halloween.overhaul.worlds .xg-select-panel[hidden] {display:none!important}
body.halloween.overhaul.worlds .xg-select-panel::backdrop {background:transparent}
body.halloween.overhaul.worlds .xg-select-heading {
  display:flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
  margin:0 3px 5px;
  padding:7px 6px 10px;
  border-bottom:1px solid rgba(var(--xg-accent-rgb),.14);
}
body.halloween.overhaul.worlds .xg-select-caption {
  display:block;
  min-width:0;
  overflow:hidden;
  color:var(--xg-dim);
  font:600 8px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:1.1px;
  white-space:nowrap;
  text-overflow:ellipsis;
  text-transform:uppercase;
}
body.halloween.overhaul.worlds .xg-select-count {flex:none;padding:2px 6px;border:1px solid rgba(var(--xg-accent-rgb),.22);border-radius:5px;background:rgba(var(--xg-accent-rgb),.045);color:var(--lime);font-size:9px;line-height:1.25}
body.halloween.overhaul.worlds .xg-select-options {
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  gap:3px;
  min-width:0;
  min-height:0;
  max-height:302px;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  touch-action:pan-y pinch-zoom;
  scroll-padding:3px;
  scrollbar-width:thin;
  scrollbar-color:var(--xg-border) transparent;
  -webkit-overflow-scrolling:touch;
}
body.halloween.overhaul.worlds .xg-select-options::-webkit-scrollbar {width:5px}
body.halloween.overhaul.worlds .xg-select-options::-webkit-scrollbar-track {background:transparent}
body.halloween.overhaul.worlds .xg-select-options::-webkit-scrollbar-thumb {border-radius:8px;background:var(--xg-border)}
body.halloween.overhaul.worlds .xg-select-option {
  display:flex;
  flex:0 0 auto;
  align-items:center;
  gap:10px;
  width:100%;
  min-width:0;
  min-height:48px;
  padding:8px 9px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:var(--xg-soft);
  font:inherit;
  font-size:12px;
  line-height:1.4;
  text-align:left;
  cursor:pointer;
  transition:background .14s,border-color .14s,color .14s;
}
body.halloween.overhaul.worlds .xg-select-option--rich {padding-top:6px;padding-bottom:6px}
body.halloween.overhaul.worlds .xg-select-option[aria-selected=true] {border-color:rgba(var(--xg-accent-rgb),.23);background:linear-gradient(110deg,rgba(var(--xg-accent-rgb),.11),rgba(var(--xg-accent-rgb),.025));color:var(--text)}
body.halloween.overhaul.worlds .xg-select-option.is-active {border-color:rgba(var(--xg-accent-rgb),.58);background:rgba(var(--xg-accent-rgb),.1);color:var(--text);box-shadow:inset 2px 0 0 var(--lime)}
body.halloween.overhaul.worlds .xg-select-option:focus-visible {outline:2px solid var(--lime);outline-offset:-2px}
body.halloween.overhaul.worlds .xg-select-option[aria-disabled=true] {opacity:.45;cursor:default}
body.halloween.overhaul.worlds .xg-option-art {
  display:grid;
  flex:0 0 42px;
  place-items:center;
  width:42px;
  height:30px;
  border:1px solid #ffffff1c;
  border-radius:5px;
  object-fit:cover;
  object-position:center;
  background:linear-gradient(145deg,rgba(var(--xg-accent-rgb),.08),transparent),var(--xg-deep);
  color:var(--lime);
  font-size:13px;
  line-height:1;
  box-shadow:0 2px 5px #0002;
}
body.halloween.overhaul.worlds .xg-option-copy {display:flex;flex:1 1 auto;flex-direction:column;gap:2px;min-width:0;overflow:hidden}
body.halloween.overhaul.worlds .xg-option-title {display:block;min-width:0;overflow:hidden;color:inherit;font-size:12px;font-weight:600;line-height:1.35;white-space:nowrap;text-overflow:ellipsis}
body.halloween.overhaul.worlds .xg-option-meta {display:block;min-width:0;overflow:hidden;color:var(--xg-dim);font-size:9px;font-weight:400;line-height:1.35;white-space:nowrap;text-overflow:ellipsis}
body.halloween.overhaul.worlds .xg-option-check {display:block;flex:0 0 16px;width:16px;color:var(--lime);font-size:12px;font-weight:700;line-height:1;text-align:center;opacity:0}
body.halloween.overhaul.worlds .xg-select-option[aria-selected=true] .xg-option-check {opacity:1}
body.halloween.overhaul.worlds .xg-select-empty {padding:18px 12px;color:var(--xg-dim);font-size:12px;line-height:1.6}
@keyframes xg-select-open {
  from {opacity:0;transform:perspective(900px) translateY(-5px) rotateX(-3deg) scale(.99)}
  to {opacity:1;transform:none}
}
@media(hover:hover) {
  body.halloween.overhaul.worlds .xg-select-trigger:not(:disabled):hover {border-color:rgba(var(--xg-accent-rgb),.55);box-shadow:inset 0 1px 0 #ffffff14,0 4px 12px #0003}
  body.halloween.overhaul.worlds .xg-select-option:not([aria-disabled=true]):hover {border-color:rgba(var(--xg-accent-rgb),.3);background:rgba(var(--xg-accent-rgb),.075);color:var(--text)}
}
@media(min-width:901px) and (max-width:1100px) {
  body.halloween.overhaul.worlds .stage-picker {width:202px}
  body.halloween.overhaul.worlds .stage-picker .xg-select-trigger {gap:8px;padding-left:8px;padding-right:8px}
  body.halloween.overhaul.worlds .stage-picker .xg-select-value {font-size:10.5px}
}
@media(max-width:900px) {
  body.halloween.overhaul.worlds .updates-tools .xg-select-field {flex-basis:190px}
}
@media(max-width:600px) {
  body.halloween.overhaul.worlds .stage-picker {left:auto;right:0;width:min(260px,100%);max-width:100%;height:48px}
  body.halloween.overhaul.worlds .stage-picker .xg-select-trigger {border-radius:12px;padding:7px 10px;gap:10px}
  body.halloween.overhaul.worlds .stage-picker .xg-select-value {font-size:12px}
  body.halloween.overhaul.worlds .sort-label .xg-select {width:112px}
  body.halloween.overhaul.worlds .sort-label .xg-select-trigger {gap:7px;padding-left:10px;padding-right:9px}
  body.halloween.overhaul.worlds .sort-label .xg-select-value {font-size:10.5px}
  body.halloween.overhaul.worlds .updates-tools .xg-select-field {flex:1 1 100%}
  body.halloween.overhaul.worlds .updates-tools .xg-select-trigger {font-size:12px}
  body.halloween.overhaul.worlds .xg-select-panel {padding:5px;border-radius:12px}
  body.halloween.overhaul.worlds .xg-select-heading {margin-bottom:4px;padding-top:7px;padding-bottom:9px}
  body.halloween.overhaul.worlds .xg-select-option {min-height:48px;padding-left:8px;padding-right:8px;gap:9px}
  body.halloween.overhaul.worlds .xg-select-option--rich {min-height:48px}
}
@media(max-width:360px) {
  body.halloween.overhaul.worlds .sort-label .xg-select {width:104px}
  body.halloween.overhaul.worlds .sort-label .xg-select-trigger {padding-left:9px;padding-right:8px;gap:6px}
  body.halloween.overhaul.worlds .sort-label .xg-select-value {font-size:10px}
}
html.motion-paused body.halloween.overhaul.worlds .xg-select-panel.is-open,
body.halloween.overhaul.worlds.motion-paused .xg-select-panel.is-open {animation:none;transform:none}
html.motion-paused body.halloween.overhaul.worlds .xg-select-chevron,
body.halloween.overhaul.worlds.motion-paused .xg-select-chevron {transition:none}
@media(prefers-reduced-motion:reduce) {
  body.halloween.overhaul.worlds .xg-select-panel.is-open {animation:none;transform:none}
  body.halloween.overhaul.worlds .xg-select-trigger,
  body.halloween.overhaul.worlds .xg-select-option,
  body.halloween.overhaul.worlds .xg-select-chevron {transition:none}
}
