:root{
  --cx-home-cyan:#55def8;
  --cx-home-pink:#ff6aae;
  --cx-home-ink:rgba(3,12,21,.86);
}

#cxCommandCenter.cx-home-scenes-ready,
body.cx-command-home #cxCommandCenter{
  padding:0!important;
}

body.cx-command-home #cxCommandCenter > .cx-shell{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

body.cx-command-home #cxCommandCenter > .cx-shell::before{display:none}

.cx-main.cx-home-root{
  left:116px;
  padding:0!important;
  display:block!important;
  overflow:hidden;
  isolation:isolate;
}

.cx-home-bootstrap{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#8be8f8;
  background:
    linear-gradient(rgba(1,8,15,.42),rgba(1,8,15,.42)),
    url("assets/images/home-scenes/orbital-penthouse.png") center/cover no-repeat,
    #02070d;
  font:900 10px/1 Arial,sans-serif;
  letter-spacing:.22em;
}

.cx-home-stage{
  position:absolute;
  inset:0;
  overflow:hidden;
  background:#02070d;
  color:#fff;
  user-select:none;
}

.cx-home-background,
.cx-home-background-shade{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

.cx-home-background{
  object-fit:cover;
  object-position:center;
  transform:translateZ(0) scale(1.001);
  transition:opacity .35s ease;
}

.cx-home-background-shade{
  z-index:2;
  background:
    linear-gradient(90deg,rgba(1,7,13,.32),transparent 30%,transparent 72%,rgba(1,7,13,.28)),
    linear-gradient(180deg,rgba(1,5,10,.30),transparent 22%,transparent 76%,rgba(1,5,10,.38));
}

.cx-home-character-layer{
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
}

.cx-home-character{
  position:absolute;
  width:auto;
  max-width:none;
  object-fit:contain;
  object-position:center;
  transform:translateX(-50%) translateZ(0);
  transform-origin:50% 100%;
  filter:drop-shadow(0 18px 24px rgba(0,0,0,.52));
  transition:filter .22s ease,opacity .25s ease;
  pointer-events:auto;
}

.cx-home-character[data-mirror="true"]{
  transform:translateX(-50%) scaleX(-1) translateZ(0);
}

.cx-home-character:hover{
  filter:
    drop-shadow(0 18px 24px rgba(0,0,0,.54))
    drop-shadow(0 0 12px color-mix(in srgb,var(--cx-home-cyan) 58%,transparent));
}

.cx-home-wallet{
  position:absolute;
  z-index:12;
  top:clamp(20px,3.2vh,42px);
  right:clamp(24px,3vw,58px);
  min-width:190px;
  padding:15px 22px 14px;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:end;
  gap:5px 12px;
  color:#fff;
  background:linear-gradient(135deg,rgba(2,14,24,.90),rgba(4,17,28,.64));
  border:1px solid rgba(85,222,248,.42);
  clip-path:polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,14px 100%,0 calc(100% - 14px));
  backdrop-filter:blur(7px);
  box-shadow:0 16px 38px rgba(0,0,0,.24),inset 3px 0 0 rgba(85,222,248,.72);
}

.cx-home-wallet span{
  grid-column:1/-1;
  color:#78dff2;
  font:900 8px/1 Arial,sans-serif;
  letter-spacing:.24em;
  text-transform:uppercase;
}

.cx-home-wallet strong{
  font:900 clamp(28px,2.35vw,44px)/.9 Arial,sans-serif;
  letter-spacing:-.04em;
}

.cx-home-wallet small{
  color:#7ddff3;
  font:900 12px/1 Arial,sans-serif;
  letter-spacing:.1em;
}

.cx-home-hotspot{
  position:absolute;
  z-index:11;
  width:clamp(86px,7.1vw,126px);
  aspect-ratio:1;
  display:grid;
  place-items:center;
  gap:5px;
  padding:15px 8px 11px;
  border:1px solid rgba(115,197,224,.38);
  color:#dff9ff;
  background:linear-gradient(145deg,rgba(3,15,25,.82),rgba(3,10,18,.56));
  clip-path:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px));
  backdrop-filter:blur(6px);
  box-shadow:0 14px 30px rgba(0,0,0,.25),inset 0 0 18px rgba(65,198,234,.05);
  cursor:pointer;
  transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease;
}

.cx-home-hotspot:hover,
.cx-home-hotspot:focus-visible{
  transform:translateY(-4px) scale(1.035);
  border-color:rgba(100,229,255,.92);
  background:linear-gradient(145deg,rgba(5,32,49,.93),rgba(4,14,24,.72));
  box-shadow:0 18px 34px rgba(0,0,0,.32),0 0 22px rgba(70,216,247,.20);
  outline:0;
}

.cx-home-hotspot svg{
  width:42%;
  height:42%;
  fill:none;
  stroke:currentColor;
  stroke-width:1.35;
}

.cx-home-hotspot span{
  font:900 clamp(8px,.62vw,11px)/1.1 Arial,sans-serif;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.cx-home-hotspot.characters{left:8.5%;top:16%}
.cx-home-hotspot.collections{right:8%;top:34%}
.cx-home-hotspot.compare{left:12%;bottom:12%}
.cx-home-hotspot.rewards{right:17%;bottom:9%}

.cx-home-customize{
  position:absolute;
  z-index:12;
  right:clamp(24px,3vw,58px);
  top:clamp(115px,14vh,150px);
  min-width:190px;
  height:42px;
  border:1px solid rgba(85,222,248,.36);
  color:#ccebf2;
  background:rgba(2,13,23,.72);
  font:900 9px/1 Arial,sans-serif;
  letter-spacing:.16em;
  cursor:pointer;
}

.cx-home-customize:hover{color:#fff;border-color:var(--cx-home-cyan)}

.cx-home-editor{
  position:absolute;
  z-index:30;
  top:0;
  right:0;
  bottom:0;
  width:min(430px,92vw);
  display:flex;
  flex-direction:column;
  padding:26px 24px;
  color:#eafbff;
  background:linear-gradient(160deg,rgba(2,14,24,.98),rgba(2,8,15,.96));
  border-left:1px solid rgba(85,222,248,.35);
  box-shadow:-24px 0 60px rgba(0,0,0,.42);
  transform:translateX(102%);
  transition:transform .3s cubic-bezier(.2,.8,.2,1);
}

.cx-home-stage.editor-open .cx-home-editor{transform:none}

.cx-home-editor-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:20px;
}

.cx-home-editor-kicker{
  display:block;
  margin-bottom:7px;
  color:var(--cx-home-cyan);
  font:900 7px/1 Arial,sans-serif;
  letter-spacing:.25em;
}

.cx-home-editor h2{
  margin:0;
  font:900 27px/1 Arial,sans-serif;
  letter-spacing:.04em;
}

.cx-home-editor-close{
  width:40px;
  height:40px;
  border:1px solid rgba(85,222,248,.38);
  border-radius:50%;
  color:#ccebf2;
  background:rgba(6,22,33,.72);
  font-size:20px;
  cursor:pointer;
}

.cx-home-editor-scroll{
  min-height:0;
  overflow:auto;
  padding-right:4px;
}

.cx-home-editor label>span,
.cx-home-editor-section-title{
  display:block;
  margin:0 0 8px;
  color:#7aa4b5;
  font:900 7px/1 Arial,sans-serif;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.cx-home-editor select,
.cx-home-editor input{
  width:100%;
  min-height:42px;
  padding:0 12px;
  border:1px solid rgba(91,177,207,.28);
  border-radius:0;
  color:#edfaff;
  background:rgba(3,16,26,.78);
  font:700 12px/1 Arial,sans-serif;
}

.cx-home-editor-layout-row{
  display:grid;
  grid-template-columns:1fr 42px 42px;
  gap:6px;
  margin-bottom:16px;
}

.cx-home-editor-layout-row button,
.cx-home-editor-actions button{
  border:1px solid rgba(85,222,248,.35);
  color:#dff9ff;
  background:rgba(5,28,42,.72);
  font:900 9px/1 Arial,sans-serif;
  cursor:pointer;
}

.cx-home-scene-options{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin-bottom:20px;
}

.cx-home-scene-option{
  padding:0;
  overflow:hidden;
  border:1px solid rgba(95,169,195,.32);
  color:#fff;
  background:#06131d;
  cursor:pointer;
}

.cx-home-scene-option img{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
}

.cx-home-scene-option span{
  display:block;
  padding:7px 5px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font:800 7px/1 Arial,sans-serif;
  letter-spacing:.06em;
}

.cx-home-scene-option.active{
  border-color:var(--cx-home-pink);
  box-shadow:0 0 16px rgba(255,106,174,.18);
}

.cx-home-slot-list{display:grid;gap:10px}

.cx-home-slot-editor{
  padding:12px;
  border:1px solid rgba(83,151,177,.24);
  background:rgba(4,17,27,.63);
}

.cx-home-slot-editor strong{
  display:block;
  margin-bottom:9px;
  color:#fff;
  font:900 10px/1 Arial,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.cx-home-slot-editor select+select{margin-top:6px}

.cx-home-editor-actions{
  display:grid;
  grid-template-columns:1fr 1.45fr;
  gap:8px;
  margin-top:18px;
}

.cx-home-editor-actions button{height:46px}
.cx-home-editor-actions .primary{color:#031019;background:var(--cx-home-cyan);border-color:var(--cx-home-cyan)}

.cx-home-editor-status{
  min-height:18px;
  margin-top:11px;
  color:#7fa6b5;
  font:700 9px/1.35 Arial,sans-serif;
}
.cx-home-editor-status.success{color:#72efcb}
.cx-home-editor-status.error{color:#ff7799}

.cx-home-loading{
  position:absolute;
  z-index:40;
  inset:0;
  display:grid;
  place-items:center;
  color:#91eafa;
  background:#02070d;
  font:900 10px/1 Arial,sans-serif;
  letter-spacing:.2em;
  transition:opacity .3s ease;
}

.cx-home-loading.hidden{opacity:0;pointer-events:none}

@media(max-width:980px){
  .cx-main.cx-home-root{left:86px}
  .cx-home-hotspot{width:86px}
  .cx-home-wallet{min-width:160px}
}

@media(max-width:680px){
  .cx-main.cx-home-root{
    position:absolute!important;
    inset:68px 0 0!important;
    left:0!important;
    top:68px!important;
  }
  .cx-home-hotspot{width:72px;padding:10px 5px 8px}
  .cx-home-hotspot.characters{left:4%;top:17%}
  .cx-home-hotspot.collections{right:4%;top:35%}
  .cx-home-hotspot.compare{left:6%;bottom:11%}
  .cx-home-hotspot.rewards{right:7%;bottom:9%}
  .cx-home-wallet{top:14px;right:14px;min-width:138px;padding:11px 14px}
  .cx-home-wallet strong{font-size:25px}
  .cx-home-customize{top:84px;right:14px;min-width:138px}
}

@media(prefers-reduced-motion:reduce){
  .cx-home-background,
  .cx-home-character,
  .cx-home-hotspot,
  .cx-home-editor{transition-duration:.01ms!important}
}
