/* Complete Store redesign */
#wzs-store .wzs-dim{background:rgba(2,10,18,.82)!important;backdrop-filter:blur(10px)!important}
#wzs-store .wzs-modal{width:min(1180px,calc(100% - 32px))!important;height:min(820px,calc(100% - 32px))!important;border:3px solid #48caff!important;border-radius:18px!important;background:linear-gradient(145deg,#123847,#071821)!important;box-shadow:0 30px 100px #000e!important}
#wzs-store .wzs-head{min-height:78px;border-bottom:3px solid #48caff!important;padding:14px 20px!important;background:#123847!important}
#wzs-store .wzs-title{color:#fff!important;font-size:34px!important;font-weight:900!important}
#wzs-store .wzs-back{width:46px!important;height:46px!important;border:2px solid #48caff!important;background:#1d607e!important;box-shadow:none!important}
#wzs-store .wzs-tabs{gap:12px!important;padding:14px 18px!important;border-bottom:2px solid #48caff55!important;background:#102d38!important}
#wzs-store .wzs-pill{height:52px!important;border:2px solid #48caff!important;border-radius:10px!important;background:#0c2531!important;color:#fff!important;font-size:19px!important;font-weight:900!important;box-shadow:none!important}
#wzs-store .wzs-pill.active{border-color:#ffd166!important;background:#1d607e!important;color:#fff!important}
#wzs-store .wzs-body{padding:16px!important;background:#091d26!important}
#wzs-store .wzs-view{padding:0!important}
#wzs-store .wzs-shell{height:100%;min-width:0!important;grid-template-columns:260px minmax(0,1fr)!important;gap:14px!important}
#wzs-store .wzs-side,#wzs-store .wzs-stage{border:2px solid #48caffb8!important;border-radius:12px!important;background:linear-gradient(145deg,#174e5b,#103640)!important;box-shadow:none!important}
#wzs-store .wzs-side h5{margin:4px 0 8px!important;color:#fff!important;font-size:26px!important;font-weight:900!important;text-align:left!important}
#wzs-store .wzs-vbtn{height:64px!important;border:2px solid #48caff!important;border-radius:9px!important;background:#091f29!important;color:#fff!important;font-size:20px!important;font-weight:900!important;box-shadow:none!important}
#wzs-store .wzs-vbtn.active{border-color:#ffd166!important;background:#1d607e!important;color:#fff!important}
#wzs-store .wzs-canvas{min-height:330px!important;border:2px solid #48caff8c!important;border-radius:12px!important;background:#06151d!important}
#wzs-store .wzs-arrow{width:52px!important;height:52px!important;border:2px solid #48caff!important;border-radius:10px!important;background:#48caff!important;box-shadow:none!important}
#wzs-store .wzs-arrow svg{stroke:#06151d!important}
#wzs-store .wzs-ctrl,#wzs-store .wzs-buybar{border:2px solid #48caff8c!important;border-radius:10px!important;background:#091f29!important;box-shadow:none!important}
#wzs-store .wzs-meta{color:#fff!important;font-size:18px!important;font-weight:900!important}
#wzs-store .wzs-add,#wzs-store .wzs-rem,#wzs-store .wzs-select,#wzs-store .wzs-buy{min-height:44px!important;border:2px solid #48caff!important;border-radius:9px!important;color:#06151d!important;font-size:17px!important;font-weight:900!important;box-shadow:none!important}
#wzs-store .wzs-add,#wzs-store .wzs-buy{background:#5cf78c!important}
#wzs-store .wzs-rem{background:#ffce6a!important}
#wzs-store .wzs-select{background:#48caff!important}
#wzs-store .wzs-price{border:2px solid #ffd166!important;background:#091f29!important;color:#fff!important;font-size:19px!important;font-weight:900!important;box-shadow:none!important}
#wzs-store .wzs-lock,#wzs-store .wzs-skin-notice{color:#ffd166!important;font-size:16px!important;font-weight:900!important}
@media(max-width:760px){
#wzs-store .wzs-modal{width:calc(100% - 12px)!important;height:calc(100% - 12px)!important}
#wzs-store .wzs-head{min-height:64px;padding:10px!important}#wzs-store .wzs-title{font-size:25px!important}
#wzs-store .wzs-back{width:40px!important;height:40px!important}#wzs-store .wzs-tabs{padding:8px!important}
#wzs-store .wzs-pill{height:44px!important;font-size:16px!important}#wzs-store .wzs-body{padding:8px!important}
#wzs-store .wzs-shell{grid-template-columns:1fr!important;grid-template-rows:auto minmax(0,1fr)!important;gap:8px!important}
#wzs-store .wzs-side{max-height:118px;overflow-y:auto!important}#wzs-store .wzs-side h5{font-size:20px!important}
#wzs-store .wzs-vlist{display:grid!important;grid-template-columns:repeat(2,1fr)!important}
#wzs-store .wzs-vbtn{height:44px!important;font-size:15px!important}#wzs-store .wzs-canvas{min-height:230px!important}
#wzs-store .wzs-stage{padding:10px!important}#wzs-store .wzs-meta{font-size:16px!important}
#wzs-store .wzs-add,#wzs-store .wzs-rem,#wzs-store .wzs-select,#wzs-store .wzs-buy{font-size:15px!important}}

@media (max-width: 760px), (max-height: 560px) {
  #wzs-store .wzs-modal {
    display: flex !important;
    flex-direction: column !important;
    max-height: calc(100dvh - 12px) !important;
  }
  #wzs-store .wzs-head,
  #wzs-store .wzs-tabs {
    flex: 0 0 auto !important;
  }
  #wzs-store .wzs-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    min-height: 58px !important;
  }
  #wzs-store .wzs-body {
    min-height: 0 !important;
    overflow: hidden !important;
  }
  #wzs-store .wzs-view {
    overflow-y: auto !important;
  }
  #wzs-store .wzs-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    height: 100% !important;
    min-height: 0 !important;
  }
  #wzs-store .wzs-side {
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 8px !important;
  }
  #wzs-store .wzs-side h5 {
    margin: 0 0 6px !important;
    font-size: 17px !important;
  }
  #wzs-store .wzs-vlist {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  #wzs-store .wzs-vbtn {
    height: 38px !important;
    min-width: 0 !important;
    font-size: 14px !important;
  }
  #wzs-store .wzs-stage {
    min-height: 0 !important;
    padding: 6px !important;
  }
  #wzs-store .wzs-canvas {
    min-height: 160px !important;
  }
}

@media (max-height: 560px) {
  #wzs-store .wzs-head {
    min-height: 48px !important;
    padding: 6px 10px !important;
  }
  #wzs-store .wzs-title {
    font-size: 20px !important;
  }
  #wzs-store .wzs-back {
    width: 34px !important;
    height: 34px !important;
  }
  #wzs-store .wzs-tabs {
    min-height: 44px !important;
    padding: 4px 8px !important;
  }
  #wzs-store .wzs-pill {
    height: 36px !important;
    font-size: 14px !important;
  }
  #wzs-store .wzs-vbtn {
    height: 32px !important;
  }
  #wzs-store .wzs-canvas {
    min-height: 120px !important;
  }
}

/* Change Nickname popup redesign */
#wzNameChange.wz-nc .wz-nc-dim{background:rgba(2,10,18,.82)!important;backdrop-filter:blur(10px)!important}
#wzNameChange.wz-nc .wz-nc-modal{width:min(620px,calc(100% - 28px))!important;border:3px solid #48caff!important;border-radius:18px!important;background:linear-gradient(145deg,#123847,#071821)!important;box-shadow:0 30px 100px #000e!important}
#wzNameChange.wz-nc .wz-nc-head{min-height:78px;border-bottom:3px solid #48caff!important;background:#123847!important}
#wzNameChange.wz-nc .wz-nc-head h3{color:#fff!important;font-size:34px!important;font-weight:900!important}
#wzNameChange.wz-nc .wz-nc-ico{width:46px!important;height:46px!important;border:2px solid #48caff!important;border-radius:10px!important;background:#48caff!important;box-shadow:none!important}
#wzNameChange.wz-nc .wz-nc-x{width:46px!important;height:46px!important;border:2px solid #48caff!important;border-radius:10px!important;background:#1d607e!important;color:#fff!important;font-size:34px!important;line-height:1!important;box-shadow:none!important}
#wzNameChange.wz-nc .wz-nc-body{gap:16px!important;padding:22px!important;background:#091d26!important}
#wzNameChange.wz-nc .wz-nc-lab{color:#fff!important;font-size:20px!important;font-weight:900!important}
#wzNameChange.wz-nc .wz-nc-field{height:58px!important;border:2px solid #48caff!important;border-radius:10px!important;background:#06151d!important;color:#fff!important;font-size:19px!important;font-weight:900!important;box-shadow:none!important}
#wzNameChange.wz-nc .wz-nc-field::placeholder{color:#b7d5e4!important;font-weight:800!important}
#wzNameChange.wz-nc .wz-nc-submit{min-height:58px!important;border:2px solid #ffd166!important;border-radius:10px!important;background:#ffd166!important;color:#06151d!important;font-size:19px!important;font-weight:900!important;box-shadow:none!important}
#wzNameChange.wz-nc .wz-nc-submit:not(:disabled):hover{background:#ffe39a!important}
@media(max-width:760px){#wzNameChange.wz-nc .wz-nc-head h3{font-size:25px!important}#wzNameChange.wz-nc .wz-nc-head{min-height:64px!important}#wzNameChange.wz-nc .wz-nc-body{padding:16px!important}#wzNameChange.wz-nc .wz-nc-lab{font-size:18px!important}#wzNameChange.wz-nc .wz-nc-field,#wzNameChange.wz-nc .wz-nc-submit{font-size:17px!important}}

/* Home action buttons redesign */
.home-center-buttons{gap:14px!important}
.home-center-buttons .h-btn{height:54px!important;min-width:170px!important;padding:0 22px!important;border-width:2px!important;border-radius:12px!important;font-size:18px!important;font-weight:900!important;color:#fff!important;text-shadow:none!important;box-shadow:0 10px 24px rgba(0,0,0,.28)!important;transition:.16s ease!important}
.home-center-buttons .h-btn img{width:24px!important;height:24px!important;object-fit:contain!important;filter:brightness(0) invert(1)!important}
.home-center-buttons .full-screen-btn{border-color:#73dcff!important;background:linear-gradient(135deg,#168fc7,#075d96)!important}
.home-center-buttons .replay-btn{border-color:#ffd166!important;background:linear-gradient(135deg,#d89c2d,#9b6410)!important}
.home-center-buttons .h-btn:hover{transform:translateY(-3px)!important;filter:brightness(1.08)!important;box-shadow:0 14px 28px rgba(0,0,0,.38)!important}
.home-center-buttons .full-screen-btn:hover{background:linear-gradient(135deg,#35bdf2,#087db7)!important}
.home-center-buttons .replay-btn:hover{background:linear-gradient(135deg,#ffc955,#b97814)!important}
.home-center-buttons .h-btn:active{transform:translateY(0)!important}
@media(max-width:760px){.home-center-buttons{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important}.home-center-buttons .h-btn{min-width:0!important;height:48px!important;padding:0 10px!important;font-size:15px!important}.home-center-buttons .h-btn img{width:21px!important;height:21px!important}}

/* Premium skin navigation arrows */
.home-center-skins .home-skins-btn{
  width:52px!important;height:52px!important;padding:8px!important;border:2px solid #73dcff!important;border-radius:50%!important;background:linear-gradient(145deg,#183f50,#091c27)!important;box-shadow:0 10px 26px rgba(0,0,0,.55),inset 0 0 14px rgba(115,220,255,.12)!important;display:grid!important;place-items:center!important;transition:.18s ease!important;
}
.home-center-skins .home-skins-btn svg{width:24px!important;height:32px!important;filter:drop-shadow(0 2px 4px rgba(0,0,0,.6))!important}
.home-center-skins .home-skins-btn svg path{fill:#ffd166!important}
.home-center-skins .home-skins-btn:hover{transform:translateY(-50%) scale(1.12)!important;border-color:#ffd166!important;background:linear-gradient(145deg,#1d607e,#123847)!important;box-shadow:0 14px 32px rgba(0,0,0,.65),0 0 18px rgba(115,220,255,.35)!important}
.home-center-skins .home-skins-btn:active{transform:translateY(-50%) scale(.96)!important}
@media(max-width:760px){.home-center-skins .home-skins-btn{width:44px!important;height:44px!important;padding:7px!important}.home-center-skins .home-skins-btn svg{width:21px!important;height:28px!important}}

/* Initialize both preview canvases while only showing the selected store tab. */
#wzs-store .wzs-view {
  display: block !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#wzs-store.active .wzs-view.active {
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Keep the preview canvas measurable before the store is opened. */
#wzs-store {
  display: block !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#wzs-store.active {
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Let the store fit small screens while keeping the desktop item order. */
@media (max-width: 760px), (max-height: 560px) {
  #wzs-store .wzs-head {
    min-height: clamp(52px, 8vh, 78px) !important;
    padding: clamp(6px, 1.7vh, 14px) clamp(10px, 3vw, 20px) !important;
  }
  #wzs-store .wzs-title { font-size: clamp(20px, 4vh, 34px) !important; }
  #wzs-store .wzs-back {
    width: clamp(34px, 5.5vh, 46px) !important;
    height: clamp(34px, 5.5vh, 46px) !important;
  }
  #wzs-store .wzs-tabs {
    min-height: clamp(52px, 10vh, 82px) !important;
    flex-wrap: nowrap !important;
    gap: clamp(6px, 2vw, 12px) !important;
    padding: clamp(6px, 1.7vh, 14px) clamp(8px, 2vw, 18px) !important;
  }
  #wzs-store .wzs-pill {
    flex: 0 0 auto !important;
    height: clamp(40px, 6.2vh, 52px) !important;
    padding: 0 clamp(10px, 3vw, 16px) !important;
    font-size: clamp(14px, 4vw, 19px) !important;
  }
  #wzs-store .wzs-body {
    min-height: 0 !important;
    overflow: hidden !important;
    padding: clamp(6px, 1.5vh, 16px) !important;
  }
  #wzs-store .wzs-view {
    overflow: auto !important;
    overscroll-behavior: contain;
  }
  #wzs-store .wzs-shell {
    grid-template-columns: minmax(112px, 0.8fr) minmax(0, 1.2fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    gap: clamp(6px, 1.5vh, 14px) !important;
  }
  #wzs-store .wzs-side {
    max-height: none !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: clamp(6px, 1.3vh, 12px) !important;
  }
  #wzs-store .wzs-side h5 {
    margin: 0 0 clamp(4px, 1vh, 8px) !important;
    font-size: clamp(16px, 3.8vh, 24px) !important;
  }
  #wzs-store .wzs-vlist {
    display: flex !important;
    flex-direction: column !important;
    gap: clamp(4px, 1.3vh, 12px) !important;
  }
  #wzs-store .wzs-vbtn {
    flex: 0 0 clamp(38px, 7vh, 64px) !important;
    height: clamp(38px, 7vh, 64px) !important;
    min-width: 0 !important;
    font-size: clamp(14px, 3.8vh, 20px) !important;
  }
  #wzs-store .wzs-stage {
    min-height: 0 !important;
    min-width: 0 !important;
    padding: clamp(4px, 1vh, 10px) !important;
  }
  #wzs-store .wzs-canvas {
    width: 100% !important;
    min-width: 0 !important;
    min-height: clamp(120px, 24vh, 260px) !important;
  }
  #wzs-store #wzsAccCanvas,
  #wzs-store #wzsSkinCanvas {
    width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
  }
}

