/* Approved menu compositions. Decorative artwork is separate from live UI data. */
#ui .sheet.levels,
#ui .sheet.skins,
#ui .sheet.pause {
  padding: 0;
  backdrop-filter: blur(5px);
}
/* No background image in the menus: the scene below stays visible under dark glass (pause, settings and stages). */
#ui .sheet.pause,
#ui .sheet.levels {
  background: rgba(5, 8, 18, 0.55);
  backdrop-filter: blur(3px) saturate(0.85);
  -webkit-backdrop-filter: blur(3px) saturate(0.85);
}
#ui .sheet.levels .card,
#ui .sheet.skins .card,
#ui .sheet.pause .card {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: none;
  transform: translate(-50%, -50%) scale(var(--menu-scale, 0.7));
  transform-origin: center;
  margin: 0;
  min-width: 0;
  max-width: none;
  max-height: none;
  border: 6px solid #20124e;
  border-radius: 42px;
  outline: none;
  background: linear-gradient(135deg, #6250ef, #4430bf 70%, #3728a8);
  box-shadow:
    inset 0 0 0 6px #9982ff,
    inset 0 -8px 0 #4d35cf,
    0 13px 0 #18113c,
    0 24px 35px #120e3280;
  font-family: var(--pop);
  color: #fff;
  text-align: center;
}
#ui .sheet.levels .card::before,
#ui .sheet.levels .card::after,
#ui .sheet.skins .card::before,
#ui .sheet.skins .card::after,
#ui .sheet.pause .card::before,
#ui .sheet.pause .card::after {
  display: none;
}
#ui .sheet.levels .btn.primary,
#ui .sheet.skins .btn.primary,
#ui .sheet.pause .btn.primary {
  --b-hi: #83ff43;
  --b-lo: #1bc908;
  --b-ink: #1c5518;
  --gloss: linear-gradient(#ffffff12, #ffffff00 52%);
  border: 5px solid #182442;
  box-shadow:
    inset 0 5px 0 #c6ff9b,
    inset 0 0 0 5px #87f755,
    inset 0 -8px 0 #17a10a,
    0 7px 0 #17123f;
  text-transform: uppercase;
}
#ui .sheet.levels button:focus-visible,
#ui .sheet.skins button:focus-visible,
#ui .sheet.pause button:focus-visible,
#ui .sheet.pause input:focus-visible,
#ui .sheet.pause select:focus-visible {
  outline: 4px solid #fff1a4;
  outline-offset: 5px;
}

/* World map and persistent stage selection. */
#ui .sheet.levels .card {
  width: 1600px;
  height: 800px;
  padding: 18px;
  display: grid;
  grid-template-rows: 90px 1fr 155px;
  gap: 8px;
}
#ui .levels .head {
  position: relative;
  display: block;
  height: 90px;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
#ui .levels .head h2 {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% 0;
  margin: 0;
  font: 400 52px/1.05 var(--pop);
  color: #fff;
  text-shadow: 0 4px 0 #211455;
  -webkit-text-stroke: 5px #221552;
  paint-order: stroke fill;
  white-space: nowrap;
}
#ui .levels .head h2 span {
  display: block;
  text-transform: uppercase;
}
#ui .levels .head h2 small {
  display: block;
  margin-top: 3px;
  font-size: 30px;
  -webkit-text-stroke-width: 3px;
  text-transform: none;
}
#ui .sheet.levels:has(.lvpop:not([hidden])) .head h2 {
  visibility: visible;
}
#ui .levels .head #bLvHome {
  position: absolute;
  left: 8px;
  top: 0;
  width: 86px;
  height: 82px;
}
#ui .levels .head .world-arrow {
  position: absolute;
  top: 0;
  width: 82px;
  height: 82px;
  margin: 0;
}
#ui .levels .head .world-arrow {
  max-width: none;
  min-width: 0;
}
#ui .levels .head .world-arrow.l {
  left: calc(50% - 310px);
  right: auto;
}
#ui .levels .head .world-arrow.r {
  left: calc(50% + 225px);
  right: auto;
}
#ui .levels .head .world-arrow svg,
#ui .levels #bLvHome svg {
  width: 46px;
  height: 46px;
}
#ui .levels .head .world-arrow svg {
  transform: none;
}
#ui .levels .head .total {
  position: absolute;
  right: 12px;
  top: 8px;
  margin: 0;
  padding: 8px 30px;
  gap: 14px;
  border-radius: 35px;
  background: #261a6a;
  border: 3px solid #20124e;
  font-size: 46px;
}
#ui .levels .head .total svg {
  width: 48px;
  height: 48px;
}
#ui .levels .map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 4px solid #2a1a72;
  border-radius: 24px;
  background: #7169ce;
}
#ui .levels .map::before,
#ui .levels .map::after {
  display: none;
}
#ui .levels .map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
}
#ui .levels .map .lv {
  position: absolute;
  translate: none;
  transform: translate(-50%, -50%);
  rotate: 0;
  width: 110px;
  height: 110px;
  min-width: 0;
  padding: 0;
  margin: 0;
  display: grid;
  place-items: center;
  border: 6px solid #21134f;
  border-radius: 50%;
  background: linear-gradient(145deg, #aa96f5, #6550c5);
  color: #fff;
  box-shadow:
    inset 0 0 0 6px #b1a0fa,
    inset 0 -9px 0 #4a359c,
    0 8px 0 #1c154b;
  overflow: visible;
  cursor: pointer;
}
#ui .levels .map .lv::before,
#ui .levels .map .lv::after {
  display: none;
}
#ui .levels .map .lv {
  grid-template: 1fr / 1fr;
}
#ui .levels .map .lv b {
  grid-area: 1 / 1;
  justify-self: center;
  align-self: center;
  text-align: center;
}
#ui .levels .map .lv[hidden] {
  display: none !important;
}
#ui .levels .map .lv b {
  position: static;
  inset: auto;
  translate: none;
  transform: none;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  visibility: visible;
  display: block;
  background: none;
  border: 0;
  box-shadow: none;
  color: #fff;
  font: 400 60px/1 var(--pop);
  -webkit-text-stroke: 5px #1e174b;
  paint-order: stroke fill;
  text-shadow: 0 4px #1c154b;
}
#ui .levels .map .lv .mini,
#ui .levels .map .lv .nm,
#ui .levels .map .lv .md,
#ui .levels .map .lv .gr {
  display: none;
}
#ui .levels .map .lv.done {
  background: linear-gradient(150deg, #8ad6ff, #eff7cf);
  box-shadow:
    inset 0 0 0 6px #efffff,
    inset 0 -9px 0 #64a9d2,
    0 8px 0 #1c154b;
}
#ui .levels .map .lv.next,
#ui .levels .map .lv.selected {
  border-color: #20431c;
  box-shadow:
    inset 0 0 0 6px #afff62,
    inset 0 -9px 0 #55b932,
    0 0 0 5px #deff69,
    0 8px 0 4px #1c154b;
  background: linear-gradient(140deg, #b2e5ff, #f2ffe0);
}
#ui .levels .map .lv.shut {
  opacity: 1;
  filter: none;
  color: #d6c8ff;
}
#ui .levels .map .lv .st {
  position: absolute;
  top: -43px;
  left: 50%;
  translate: -50% 0;
  display: none;
  width: 118px;
  height: 39px;
  gap: 0;
  margin: 0;
}
#ui .levels .map .lv.done .st {
  display: flex;
}
#ui .levels .map .lv .st svg {
  width: 39px;
  height: 39px;
  margin: 0;
  fill: #51448f;
  stroke: #291944;
  stroke-width: 2;
}
#ui .levels .map .lv .st svg.on {
  fill: #ffda3d;
  filter: drop-shadow(0 3px 0 #9f4f11);
}
#ui .levels .map .lv .lock {
  display: none;
  position: absolute;
  left: 50%;
  right: auto;
  top: auto;
  bottom: -8px;
  translate: -50% 0;
  margin: 0;
  width: 42px;
  height: 45px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  color: #eeeaff;
}
#ui .levels .map .lv.shut .lock {
  display: block;
}
#ui .levels .map .lv.shut .lock {
  left: 50%;
  right: auto;
  top: auto;
  bottom: -8px;
  translate: none;
  transform: translateX(-50%);
}
#ui .levels .map .lv .lock svg {
  width: 100%;
  height: 100%;
}
#ui .levels .map .lv.boss {
  width: 124px;
  height: 124px;
  background: var(--face) center/contain no-repeat #171123;
  border-color: #ffdb54;
  box-shadow:
    0 0 0 5px #21134f,
    inset 0 0 0 4px #ae7d28;
}
#ui .levels .map .lv.boss b {
  visibility: hidden;
}
#ui .levels .map .lv.boss::after {
  display: block;
  content: attr(data-boss);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  bottom: auto;
  translate: -50% 0;
  padding: 5px 20px;
  border-radius: 15px;
  border: 4px solid #251640;
  background: #df4549;
  color: #fff;
  font: 400 27px/1 var(--pop);
}
#ui .levels .map .lv.boss .lock {
  left: auto;
  right: -14px;
  bottom: 0;
  translate: none;
  width: 40px;
  height: 40px;
  background: #ffce37;
  border: 3px solid #291944;
  border-radius: 50%;
  padding: 5px;
}
#ui .levels .map .lv.boss.shut .lock {
  left: auto;
  right: -14px;
  bottom: 0;
  translate: none;
}
#ui .levels .map .lv .me {
  position: absolute;
  bottom: calc(100% - 13px);
  left: 50%;
  top: auto;
  right: auto;
  width: 118px;
  height: 105px;
  translate: -50% 0;
  margin: 0;
}
#ui .levels .map .lv .me {
  translate: none;
  transform: translateX(-50%);
}
#ui .levels .map .lv .me::after {
  display: none;
}
#ui .levels .map .lv .me canvas {
  width: 100%;
  height: 100%;
}
#ui .levels .lvpop {
  position: static;
  inset: auto;
  display: block;
  margin: 0;
  padding: 0;
  background: none;
  backdrop-filter: none;
  z-index: auto;
}
#ui .levels .lvpop[hidden] {
  visibility: hidden;
}
#ui .levels .lvpop .pcard {
  position: static;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 14px 26px;
  border: 0;
  border-radius: 30px;
  background: #281d7b;
  box-shadow: inset 0 2px 0 #9685f655;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr;
  gap: 32px;
  align-items: center;
  text-align: left;
  transform: none;
}
#ui .levels .lvpop .pcard::before,
#ui .levels .lvpop .pcard::after {
  display: none;
}
#ui .levels .stage-description {
  min-width: 0;
}
#ui .levels .lvpop .stage-number {
  position: static;
  left: auto;
  top: auto;
  translate: 0 0;
  transform: translate(0, 0);
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  margin: 0 0 8px;
  font: 400 31px/1 var(--pop);
  color: #baaaff;
  text-transform: uppercase;
}
#ui .levels .lvpop .pn {
  margin: 0;
  font: 400 48px/1.05 var(--pop);
  color: #ffd64b;
  -webkit-text-stroke: 4px #6b330d;
  paint-order: stroke fill;
  text-shadow: 0 4px #251343;
}
#ui .levels .stage-target {
  border-left: 2px solid #8b73df;
  padding-left: 32px;
}
#ui .levels .stage-target > div:first-child {
  display: flex;
  gap: 12px;
  align-items: center;
  font: 400 31px/1 var(--pop);
  white-space: nowrap;
}
#ui .levels .stage-target svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
#ui .levels .lvpop .pstars {
  display: flex;
  justify-content: flex-start;
  height: 50px;
  margin: 6px 0 0;
}
#ui .levels .lvpop .pstars svg {
  width: 54px;
  height: 54px;
  fill: #43339d;
  stroke: #181344;
}
#ui .levels .lvpop .pstars svg.on {
  fill: #ffcf37;
}
#ui .levels #bPopGo {
  width: 100%;
  height: 110px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0;
  border-radius: 27px;
  font: 400 43px/1 var(--pop);
}
#ui .levels #bPopGo svg {
  width: 58px;
  height: 58px;
  stroke: #fff;
  stroke-width: 4;
}

/* Preview and all ten costume thumbnails. */
#ui .sheet.skins .card {
  width: 1500px;
  height: 760px;
  padding: 28px 30px;
  display: grid;
  grid-template-rows: 90px 1fr;
  gap: 18px;
}
#ui .skins .head {
  position: relative;
  display: block;
  height: 90px;
  padding: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: none;
}
#ui .skins .head h2 {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  margin: 0;
  font: 400 72px/1 var(--pop);
  color: #ffd648;
  -webkit-text-stroke: 6px #6b330d;
  paint-order: stroke fill;
  text-shadow: 0 6px #261345;
  text-transform: uppercase;
}
#ui .skins #bSkinsBack {
  position: absolute;
  left: 0;
  top: 0;
  width: 84px;
  height: 80px;
}
#ui .skins #bSkinsBack svg {
  width: 44px;
  height: 44px;
}
#ui .skins .head .total {
  position: absolute;
  right: 305px;
  top: 12px;
  margin: 0;
  padding: 7px 17px;
  background: #281c75;
  border-radius: 24px;
  font-size: 37px;
}
#ui .skins .head .total svg {
  width: 40px;
  height: 40px;
}
#ui .skins .head .own {
  right: 0;
  padding: 12px 16px;
  font-size: 26px;
}
#ui .skins .head .own svg {
  width: 28px;
  height: 28px;
}
#ui .skins .skin-content {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 28px;
  min-height: 0;
}
#ui .skins .skin-preview {
  display: grid;
  grid-template-rows: 1fr 64px 38px 94px;
  gap: 4px;
  padding: 0 15px 10px;
  min-height: 0;
  border-radius: 28px;
  background: #32229b70;
}
#ui .skins .skin-display {
  position: relative;
  min-height: 0;
}
#ui .skins .skin-display canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
#ui .skins .skin-pedestal {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 14px;
  height: auto;
}
#ui .skins .skin-glints {
  position: absolute;
  width: 58px;
  top: 52px;
  left: 0;
}
#ui .skins .skin-glints.right {
  left: auto;
  right: 0;
  transform: scaleX(-1);
}
#ui .skins #skinPreviewName {
  margin: 0;
  align-self: center;
  font: 400 42px/1.05 var(--pop);
  color: #fff;
  -webkit-text-stroke: 3px #241655;
  paint-order: stroke fill;
}
#ui .skins #skinPreviewStatus {
  margin: 0;
  font: 400 26px/1 var(--pop);
  color: #c7baff;
}
#ui .skins #bEquip {
  height: 88px;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0 15px;
  border-radius: 25px;
  font: 400 43px/1 var(--pop);
}
#ui .skins #bEquip svg {
  width: 48px;
  height: 48px;
}
#ui .skins #bEquip:disabled {
  opacity: 0.8;
  cursor: default;
}
#ui .skins #bEquip:disabled:has(span) {
  filter: none;
}
#ui .skins .skin-library {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr 54px;
  gap: 14px;
}
#ui .skins .grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-height: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: visible;
  scroll-snap-type: none;
  mask-image: none;
}
#ui .skins .grid {
  grid-auto-flow: row;
}
#ui .skins .grid::before,
#ui .skins .grid::after {
  display: none;
}
#ui .skins .sk {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 52px;
  align-items: end;
  justify-items: center;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 5px solid #211450;
  border-radius: 24px;
  background: linear-gradient(#f1edff, #d4c9ff 74%, #7760da 74%);
  box-shadow: 0 7px 0 #20144e;
  overflow: visible;
  cursor: pointer;
}
#ui .skins .sk::before,
#ui .skins .sk::after {
  display: none;
}
#ui .skins .sk canvas {
  position: static;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: 100%;
  margin: 0;
  padding: 0;
  align-self: end;
}
#ui .skins .sk .nm {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 4px;
  display: grid;
  place-items: center;
  color: #fff;
  font: 400 24px/1.05 var(--pop);
  -webkit-text-stroke: 2px #281b5c;
  paint-order: stroke fill;
  text-shadow: 0 2px #281b5c;
  white-space: normal;
}
#ui .skins .sk .nm {
  border: 0;
}
#ui .skins .sk.shut {
  opacity: 1;
  background: linear-gradient(#8e7be2, #a396dc 74%, #6651c2 74%);
  filter: none;
}
#ui .skins .sk.shut canvas {
  opacity: 0.7;
  filter: saturate(0.65);
}
#ui .skins .sk.selected {
  border-color: #fff06e;
  outline: 5px solid #a0ef2f;
  background: linear-gradient(#eeffdf, #c7f2a8 74%, #69b932 74%);
  box-shadow:
    0 0 18px #fff17e99,
    0 7px 0 #354b22;
}
#ui .skins .sk.on::before {
  display: block;
  content: attr(data-on);
  position: absolute;
  z-index: 3;
  top: -16px;
  left: 50%;
  translate: -50% 0;
  margin: 0;
  width: max-content;
  padding: 5px 12px;
  border: 3px solid #243b1a;
  border-radius: 16px;
  color: #fff;
  background: #5fb831;
  font: 400 20px/1 var(--pop);
}
#ui .skins .sk .ok {
  display: none;
}
#ui .skins .sk .lock {
  position: absolute;
  top: -4px;
  right: 4px;
  bottom: auto;
  left: auto;
  margin: 0;
  width: 34px;
  height: 38px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #eeeaff;
}
#ui .skins .sk .lock svg {
  width: 100%;
  height: 100%;
}
#ui .skins .sk .need {
  display: none;
}
#ui .skins .sk small {
  position: absolute;
  top: auto;
  bottom: 47px;
  left: 50%;
  translate: -50% 0;
  height: 31px;
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 1px 8px;
  margin: 0;
  border-radius: 16px;
  background: #36267f;
  color: #fff;
  font: 400 24px/1 var(--pop);
  white-space: nowrap;
}
#ui .skins .sk small:empty {
  display: none;
}
#ui .skins .sk small svg {
  width: 25px;
  height: 25px;
}
#ui .skins .skin-hint {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #a490f666;
  color: #beb0ff;
  font: 400 24px/1.1 var(--pop);
}

/* Settings: two balanced columns, with the real existing controls. */
#ui .sheet.pause .card {
  width: 1280px;
  height: 760px;
  padding: 60px 46px 112px;
  display: block;
  overflow: visible;
}
#ui .pause .head {
  position: static;
  display: block;
  margin: 0;
  padding: 0;
  height: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
#ui .pause .head h2 {
  position: absolute;
  left: 50%;
  top: -45px;
  translate: -50% 0;
  margin: 0;
  padding: 8px 30px 14px;
  border: 5px solid #25154f;
  border-radius: 42px;
  background: linear-gradient(#9a81ff, #6242da);
  box-shadow:
    inset 0 4px #c0a8ff,
    0 7px #201449;
  color: #ffd64a;
  -webkit-text-stroke: 6px #69300f;
  paint-order: stroke fill;
  text-shadow: 0 5px #291547;
  font: 400 65px/1 var(--pop);
  text-transform: uppercase;
  white-space: nowrap;
}
#ui .pause .head h2 {
  translate: none;
  transform: translateX(-50%);
}
#ui .pause #bClose {
  position: absolute;
  top: -28px;
  right: 14px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
}
#ui .pause #bClose svg {
  width: 43px;
  height: 43px;
}
#ui .pause .settings-grid {
  display: grid;
  grid-template-columns: 1.13fr 1fr;
  gap: 38px;
  height: 100%;
  min-height: 0;
  text-align: left;
}
#ui .pause .settings-column {
  min-width: 0;
}
#ui .pause .settings-column + .settings-column {
  border-left: 2px solid #a08af0;
  padding-left: 38px;
}
#ui .pause .settings-group h3 {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 14px;
  color: #e4daff;
  font: 400 42px/1 var(--pop);
  -webkit-text-stroke: 4px #32206d;
  paint-order: stroke fill;
  text-shadow: 0 4px #2b1c65;
  text-transform: uppercase;
}
#ui .pause .settings-group h3 svg,
#ui .pause .settings-group h3 img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 0 #25134e);
}
#ui .pause .settings-group + .settings-group {
  border-top: 2px solid #9d86ef88;
  margin-top: 22px;
  padding-top: 20px;
}
#ui .pause .row {
  display: grid;
  grid-template-columns: 196px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 86px;
  margin: 0;
  padding: 0;
  color: #fff;
  font: 400 29px/1.1 var(--pop);
}
#ui .pause .row > :first-child {
  width: auto;
  min-width: 0;
  white-space: normal;
}
#ui .pause .row > span:first-child {
  font: 400 29px/1.1 var(--pop);
  -webkit-text-stroke: 2px #26174e;
  paint-order: stroke fill;
}
#ui .pause .row > :last-child {
  width: auto;
  min-width: 0;
}
#ui .pause .row.volume {
  grid-template-columns: 150px 1fr 76px;
  gap: 12px;
}
#ui .pause .volume output {
  text-align: right;
  color: #ded3ff;
  font: 400 29px/1 var(--pop);
}
#ui .pause .row input[type='range'] {
  width: 100%;
  min-width: 0;
  height: 70px;
  border: 0;
  padding: 0;
  background: transparent;
}
#ui .pause .row input[type='range']::-webkit-slider-runnable-track {
  height: 30px;
  border: 3px solid #271859;
  border-radius: 18px;
  background: linear-gradient(90deg, #80ff35 0 var(--v), #332080 var(--v) 100%);
  box-shadow: inset 0 3px #25175a66;
}
#ui .pause .row input[type='range']::-webkit-slider-thumb {
  width: 49px;
  height: 49px;
  margin-top: -12px;
  border: 3px solid #2a1b5b;
  border-radius: 50%;
  background: linear-gradient(#fff, #cbbdff);
  box-shadow: 0 4px #21164b;
}
#ui .pause .row input[type='range']::-moz-range-track {
  height: 26px;
  border: 3px solid #271859;
  border-radius: 18px;
  background: linear-gradient(90deg, #80ff35 0 var(--v), #332080 var(--v) 100%);
}
#ui .pause .row input[type='range']::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border: 3px solid #2a1b5b;
  border-radius: 50%;
  background: #e9e0ff;
}
#ui .pause .seg {
  display: flex;
  gap: 0;
  width: 100%;
  min-width: 0;
  height: 68px;
  padding: 4px;
  border: 3px solid #29185f;
  border-radius: 23px;
  background: #33217f;
  box-shadow: inset 0 3px #211752;
}
#ui .pause .seg button {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 100%;
  padding: 0 8px;
  border: 0;
  border-radius: 15px;
  background: none;
  box-shadow: none;
  color: #b2a1ed;
  font: 400 27px/1 var(--pop);
  white-space: nowrap;
}
#ui .pause .seg button.on {
  color: #fff;
  background: linear-gradient(#a1ff57, #45c51c);
  box-shadow:
    inset 0 3px #d2ffa3,
    0 3px #1f7212;
  text-shadow: 0 2px #2e631c;
}
#ui .pause .row.toggle-row {
  grid-template-columns: 1fr 134px;
  min-height: 130px;
  gap: 14px;
}
#ui .pause .toggle-row b {
  display: block;
  font: inherit;
}
#ui .pause .toggle-row small {
  display: block;
  margin-top: 10px;
  color: #b6a7ed;
  font: 400 23px/1.2 var(--pop);
}
#ui .pause .row input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: block;
  width: 134px;
  height: 64px;
  padding: 0;
  margin: 0;
  border: 3px solid #261655;
  border-radius: 36px;
  background: #5540b4;
  box-shadow: inset 0 4px #332279;
  cursor: pointer;
}
#ui .pause .row input[type='checkbox']::before {
  content: '';
  position: absolute;
  display: block;
  left: 5px;
  top: 5px;
  right: auto;
  bottom: auto;
  width: 47px;
  height: 47px;
  margin: 0;
  padding: 0;
  border: 2px solid #7060b4;
  border-radius: 50%;
  background: linear-gradient(#fff, #d4c6ff);
  box-shadow: 0 3px #281754;
  transform: none;
  translate: none;
  transition: left 0.15s;
}
#ui .pause .row input[type='checkbox']:checked {
  background: linear-gradient(#a2ff61, #47cc20);
}
#ui .pause .row input[type='checkbox']:checked::before {
  left: 75px;
  transform: none;
  translate: none;
}
#ui .pause .row input[type='checkbox']::after {
  display: none;
}
#ui .pause .pick {
  display: block;
  width: 100%;
}
#ui .pause .pick select {
  width: 100%;
  max-width: none;
  min-height: 74px;
  padding: 10px 52px 10px 22px;
  border: 3px solid #2d1a69;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(#bba6ff, #8062e8);
  box-shadow:
    inset 0 3px #d4c3ff,
    0 6px #21154e;
  font: 400 37px/1 var(--pop);
}
#ui .pause .settings-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: none;
  text-align: center;
}
#ui .pause.opts .settings-footer {
  display: block;
}
#ui .pause #bSettingsDone {
  width: 480px;
  height: 96px;
  margin: 0 auto;
  padding: 0 30px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font: 400 48px/1 var(--pop);
}
#ui .pause #bSettingsDone svg {
  width: 50px;
  height: 50px;
}
#ui .pause .settings-footer p {
  margin: 10px 0 0;
  color: #b4a6ec;
  font: 400 21px/1 var(--pop);
}
#ui .pause .pause-actions {
  position: absolute;
  bottom: 20px;
  left: 35px;
  right: 35px;
  display: flex;
  gap: 18px;
  margin: 0;
  height: 80px;
  width: auto;
}
#ui .pause .pause-actions .btn {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  font: 400 26px/1 var(--pop);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#ui .pause .pause-actions .btn svg {
  width: 28px;
  height: 28px;
}
#ui .pause.opts .pause-actions {
  display: none;
}

/* Compact landscape recomposes controls instead of shrinking desktop labels excessively. */
@media (max-height: 540px) and (orientation: landscape) {
  #ui .levels .map .lv {
    width: 120px;
    height: 120px;
  }
  #ui .sheet.skins .card {
    width: 1000px;
    height: 490px;
    padding: 18px 22px;
    grid-template-rows: 58px 1fr;
    gap: 12px;
  }
  #ui .skins .head,
  #ui .skins #bSkinsBack {
    height: 54px;
  }
  #ui .skins #bSkinsBack {
    width: 58px;
  }
  #ui .skins #bSkinsBack svg {
    width: 32px;
    height: 32px;
  }
  #ui .skins .head h2 {
    font-size: 48px;
  }
  #ui .skins .head .total {
    right: 230px;
    top: 4px;
    font-size: 28px;
  }
  #ui .skins .head .total svg {
    width: 30px;
    height: 30px;
  }
  #ui .skins .head .own {
    right: 0;
    font-size: 20px;
  }
  #ui .skins .head .own svg {
    width: 24px;
    height: 24px;
  }
  #ui .skins .skin-content {
    grid-template-columns: 260px 1fr;
    gap: 18px;
  }
  #ui .skins .skin-preview {
    grid-template-rows: 1fr 42px 28px 76px;
    padding: 0 10px 4px;
  }
  #ui .skins #skinPreviewName {
    font-size: 30px;
  }
  #ui .skins #skinPreviewStatus {
    font-size: 22px;
  }
  #ui .skins #bEquip {
    height: 72px;
    font-size: 34px;
  }
  #ui .skins #bEquip svg {
    width: 36px;
    height: 36px;
  }
  #ui .skins .skin-glints {
    width: 38px;
    top: 25px;
  }
  #ui .skins .skin-library {
    grid-template-rows: 1fr 40px;
    gap: 10px;
  }
  #ui .skins .grid {
    gap: 13px;
  }
  #ui .skins .sk {
    border-width: 4px;
    border-radius: 17px;
    grid-template-rows: 1fr 45px;
  }
  #ui .skins .sk .nm {
    font-size: 23px;
  }
  #ui .skins .sk small {
    font-size: 20px;
    bottom: 40px;
    height: 25px;
    padding: 0 5px;
  }
  #ui .skins .sk small svg {
    width: 20px;
    height: 20px;
  }
  #ui .skins .sk .lock {
    width: 26px;
    height: 30px;
  }
  #ui .skins .skin-hint {
    font-size: 21px;
    padding-top: 8px;
  }
  #ui .sheet.pause .card {
    width: 1100px;
    height: 540px;
    padding: 48px 30px 78px;
  }
  #ui .pause .head h2 {
    font-size: 46px;
    top: -30px;
    padding: 5px 22px 10px;
    border-radius: 30px;
  }
  #ui .pause #bClose {
    width: 60px;
    height: 60px;
    top: -20px;
  }
  #ui .pause #bClose svg {
    width: 34px;
    height: 34px;
  }
  #ui .pause .settings-grid {
    gap: 28px;
    grid-template-columns: 1.15fr 1fr;
  }
  #ui .pause .settings-column + .settings-column {
    padding-left: 26px;
  }
  #ui .pause .settings-group h3 {
    font-size: 32px;
    gap: 10px;
    margin-bottom: 2px;
  }
  #ui .pause .settings-group h3 svg,
  #ui .pause .settings-group h3 img {
    width: 36px;
    height: 36px;
  }
  #ui .pause .settings-group + .settings-group {
    margin-top: 8px;
    padding-top: 8px;
  }
  #ui .pause .row {
    min-height: 76px;
    font-size: 26px;
    grid-template-columns: 160px 1fr;
    gap: 8px;
  }
  #ui .pause .row > span:first-child {
    font-size: 26px;
  }
  #ui .pause .row.volume {
    grid-template-columns: 112px 1fr 64px;
  }
  #ui .pause .volume output {
    font-size: 26px;
  }
  #ui .pause .row input[type='range'] {
    height: 78px;
  }
  #ui .pause .seg {
    height: 72px;
  }
  #ui .pause .seg button {
    font-size: 24px;
    padding: 0 5px;
  }
  #ui .pause .row.toggle-row {
    min-height: 119px;
    grid-template-columns: 1fr 120px;
  }
  #ui .pause .toggle-row small {
    font-size: 21px;
    margin-top: 6px;
  }
  #ui .pause .row input[type='checkbox'] {
    width: 120px;
    height: 70px;
  }
  #ui .pause .row input[type='checkbox']::before {
    width: 54px;
    height: 54px;
    top: 5px;
  }
  #ui .pause .row input[type='checkbox']:checked::before {
    left: 55px;
  }
  #ui .pause .pick select {
    font-size: 30px;
    min-height: 70px;
  }
  #ui .pause #bSettingsDone {
    height: 64px;
    width: 340px;
    font-size: 34px;
  }
  #ui .pause #bSettingsDone svg {
    width: 36px;
    height: 36px;
  }
  #ui .pause .settings-footer {
    bottom: 8px;
  }
  #ui .pause .settings-footer p {
    font-size: 18px;
    margin-top: 5px;
  }
  #ui .pause .pause-actions {
    height: 64px;
    bottom: 12px;
    left: 22px;
    right: 22px;
    gap: 10px;
  }
  #ui .pause .pause-actions .btn {
    font-size: 23px;
  }
}

#ui .levels .map .lv .st {
  translate: none;
  transform: translateX(-50%);
}
#ui .levels .map .lv.boss.shut .lock {
  translate: none;
  transform: none;
}

#ui .levels .head .world-arrow {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  padding: 0;
}
#ui .levels .map .lv .st {
  translate: none;
  transform: none;
  margin-left: -59px;
}
#ui .levels .map .lv.shut .lock {
  translate: none;
  transform: none;
  margin-left: -21px;
}
#ui .levels .map .lv.boss.shut .lock {
  margin-left: 0;
}

#ui .levels .map .lv .st,
#ui .levels .map .lv.shut .lock {
  translate: 0px 0px !important;
}
#ui .levels .head .btn.ico.world-arrow {
  width: 82px;
  height: 82px;
}

#ui .sheet.levels .card,
#ui .sheet.skins .card,
#ui .sheet.pause .card {
  box-shadow:
    inset 0 0 0 6px #ad95ff,
    inset 0 10px 0 #c9b6ff88,
    inset 0 -14px 0 #6650dd,
    0 13px 0 #18113c,
    0 24px 35px #120e3280;
}
#ui .skins .head h2 {
  font-size: 88px;
  top: -7px;
}
#ui .pause.opts .settings-grid {
  height: calc(100% - 14px);
}
#ui .pause.opts .settings-footer {
  bottom: 4px;
}
@media (max-height: 540px) and (orientation: landscape) {
  #ui .skins .head h2 {
    font-size: 58px;
    top: -4px;
  }
  #ui .pause.opts .settings-grid {
    height: 100%;
  }
  #ui .pause.opts .settings-footer {
    bottom: 8px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  #ui .pause .row {
    min-height: 62px;
  }
  #ui .pause .row.toggle-row {
    min-height: 100px;
  }
  #ui .pause .row input[type='range'] {
    height: 62px;
  }
  #ui .pause .seg {
    height: 60px;
  }
  #ui .pause .pick select {
    min-height: 60px;
  }
}

#ui .pause.opts .settings-footer {
  bottom: 14px;
}
#ui .pause.opts #bSettingsDone {
  height: 86px;
}
@media (max-height: 540px) and (orientation: landscape) {
  #ui .pause.opts .settings-footer {
    bottom: 8px;
  }
  #ui .pause.opts #bSettingsDone {
    height: 64px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  #ui .pause .row.toggle-row {
    min-height: 84px;
  }
}

/* Pause actions no longer inherit the old vertical sidebar layout. */
#ui .pause .pause-actions {
  display: grid;
  grid-template-columns: 1.1fr 1.65fr 1fr 1.3fr;
  align-items: stretch;
}
#ui .pause .pause-actions .btn {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  white-space: normal;
  line-height: 1.1;
}
#ui .levels #bPopGo:disabled {
  filter: saturate(0.2);
  opacity: 0.65;
  cursor: default;
}
#ui .levels .map .lv.shut.selected {
  background: linear-gradient(145deg, #aa96f5, #6550c5);
  border-color: #21134f;
  box-shadow:
    inset 0 0 0 6px #b1a0fa,
    inset 0 -9px 0 #4a359c,
    0 8px 0 #1c154b;
}

#ui .levels .lock img,
#ui .skins .lock img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 0 #24174766);
}
#ui .levels .map .lv.boss.shut .lock {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
#ui .skins .sk .lock {
  width: 40px;
  height: 44px;
  top: 6px;
  right: 7px;
}
@media (max-height: 540px) and (orientation: landscape) {
  #ui .skins .sk .lock {
    width: 30px;
    height: 34px;
    top: 4px;
    right: 4px;
  }
}

/* ---------- Visuals: glass modal over any screen ----------
   The title, map, result or pause stay underneath, blurred, and the player changes outfit
   and goes back right from there. */
#ui .sheet.skins {
  z-index: 60;
  background: rgba(14, 10, 40, 0.34);
  backdrop-filter: blur(11px) saturate(1.15);
  -webkit-backdrop-filter: blur(11px) saturate(1.15);
}
/* hanger in the result (top corner, on the right) and in the pause */
#ui .r6 .result-wardrobe {
  position: absolute;
  top: -34px;
  right: -22px;
  z-index: 5;
  width: 84px;
  height: 84px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 5px solid #20124c;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(#a38aff, #6240ed);
  box-shadow:
    inset 0 4px 0 #dccbff,
    inset 0 -6px 0 #4931c5,
    0 6px 0 #20124c;
}
#ui .r6 .result-wardrobe .ic {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 2px 0 #2d186e);
}
#ui .r6 .result-wardrobe:hover {
  filter: brightness(1.08);
}
#ui .r6 .result-wardrobe:active {
  translate: 0 3px;
}
#ui .r6 .result-wardrobe .new {
  position: absolute;
  bottom: -14px;
  right: -18px;
  padding: 4px 10px 5px;
  border-radius: 14px;
  border: 3px solid #5a0f1c;
  background: linear-gradient(#ff7a7a, #db2b3b);
  font: 400 22px/1 var(--pop);
  font-style: normal;
  color: #fff;
  -webkit-text-stroke: 4px #5a0f1c;
  paint-order: stroke fill;
  box-shadow: 0 3px 0 #5a0f1c;
  display: none;
}
#ui .r6 .result-wardrobe.has-new {
  animation: wardrobe-pop 1.1s ease-in-out infinite;
}
#ui .r6 .result-wardrobe.has-new .new {
  display: block;
  animation: wardrobe-new 0.55s cubic-bezier(0.2, 1.6, 0.4, 1) backwards;
}
@keyframes wardrobe-pop {
  0%,
  100% {
    scale: 1;
    box-shadow:
      inset 0 4px 0 #dccbff,
      inset 0 -6px 0 #4931c5,
      0 6px 0 #20124c,
      0 0 0 0 #ffe27a00;
  }
  50% {
    scale: 1.1;
    box-shadow:
      inset 0 4px 0 #dccbff,
      inset 0 -6px 0 #4931c5,
      0 6px 0 #20124c,
      0 0 30px 6px #ffe27acc;
  }
}
@keyframes wardrobe-new {
  from {
    scale: 0.2;
    opacity: 0;
    rotate: -20deg;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  #ui .r6 .result-wardrobe {
    top: -18px;
    right: -10px;
    width: 48px;
    height: 48px;
    border-width: 3px;
    box-shadow:
      inset 0 3px 0 #dccbff,
      inset 0 -4px 0 #4931c5,
      0 4px 0 #20124c;
  }
  #ui .r6 .result-wardrobe .ic {
    width: 24px;
    height: 24px;
  }
  #ui .r6 .result-wardrobe .new {
    bottom: -10px;
    right: -12px;
    font-size: 12px;
    padding: 2px 6px 3px;
    border-width: 2px;
    -webkit-text-stroke-width: 2.5px;
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  #ui .r6 .result-wardrobe {
    top: -26px;
    right: -8px;
    width: 60px;
    height: 60px;
  }
  #ui .r6 .result-wardrobe .ic {
    width: 30px;
    height: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #ui .r6 .result-wardrobe.has-new,
  #ui .r6 .result-wardrobe.has-new .new {
    animation: none;
  }
}
/* five buttons in the pause */
#ui .pause .pause-actions {
  grid-template-columns: 1.05fr 1.5fr 1fr 1.05fr 1.2fr;
  gap: 12px;
}
#ui .pause .pause-actions .btn {
  font-size: 22px;
}

/* result hanger: a button with text, always visible (a loose icon went unnoticed) */
#ui .r6 .result-wardrobe {
  width: auto;
  height: 68px;
  padding: 0 26px 0 18px;
  gap: 10px;
  top: -42px;
  right: -14px;
  border-radius: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font: 400 28px/1 var(--pop);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  background: linear-gradient(#ffd96a, #f5a623);
  border-color: #6a3a06;
  color: #fff;
  box-shadow:
    inset 0 4px 0 #fff0a8,
    inset 0 -6px 0 #d4860e,
    0 6px 0 #6a3a06;
}
#ui .r6 .result-wardrobe span {
  -webkit-text-stroke: 5px #6a3a06;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 #6a3a06;
}
#ui .r6 .result-wardrobe .ic {
  width: 40px;
  height: 40px;
  color: #fff;
  filter: drop-shadow(0 2px 0 #6a3a06);
}
#ui .r6 .result-wardrobe .new {
  bottom: auto;
  top: -16px;
  right: 18px;
}
#ui .r6 .result-wardrobe:not(.has-new) {
  animation: wardrobe-hint 2.6s ease-in-out infinite;
}
@keyframes wardrobe-hint {
  0%,
  80%,
  100% {
    translate: 0 0;
  }
  86% {
    translate: 0 -5px;
  }
  92% {
    translate: 0 0;
  }
  96% {
    translate: 0 -2px;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  #ui .r6 .result-wardrobe {
    height: 40px;
    padding: 0 14px 0 10px;
    gap: 6px;
    top: -24px;
    right: -8px;
    font-size: 15px;
    border-width: 3px;
    border-radius: 22px;
  }
  #ui .r6 .result-wardrobe .ic {
    width: 22px;
    height: 22px;
  }
  #ui .r6 .result-wardrobe span {
    -webkit-text-stroke-width: 3px;
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  #ui .r6 .result-wardrobe {
    height: 54px;
    padding: 0 18px 0 12px;
    top: -34px;
    right: -6px;
    font-size: 21px;
    border-radius: 28px;
  }
  #ui .r6 .result-wardrobe .ic {
    width: 30px;
    height: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #ui .r6 .result-wardrobe:not(.has-new) {
    animation: none;
  }
}
#ui .r6 .result-wardrobe .new {
  top: -24px;
  right: 4px;
}
@media (max-height: 540px) and (orientation: landscape) {
  #ui .r6 .result-wardrobe .new {
    top: -15px;
    right: 2px;
  }
}

/* ---------- Weapons: second tab of the visuals window ---------- */
/* map: the grade earned in the stage appears next to the name, in the bottom panel (no longer loose in the corner) */
#ui .levels .lvpop .stage-description {
  display: grid;
  grid-template-columns: minmax(0, max-content) auto;
  justify-content: start;
  align-items: center;
  column-gap: 12px;
}
#ui .levels .lvpop .stage-description .stage-number {
  grid-column: 1 / -1;
}
#ui .levels .lvpop .stage-description .pn {
  grid-column: 1;
  min-width: 0;
}
#ui .levels .lvpop .stage-description .pg {
  position: static;
  grid-column: 2;
  grid-row: 2;
  left: auto;
  right: auto;
  top: auto;
  width: 46px;
  height: 46px;
  font-size: 26px;
  rotate: -6deg;
}
/* star and points (or the visuals counter) together, in the top right corner */
#ui .skins .head .pills {
  position: absolute;
  right: 0;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
#ui .skins .head .pills .total {
  position: static;
  right: auto;
  top: auto;
  margin: 0;
}
@media (max-height: 540px) and (orientation: landscape) {
  #ui .skins .head .pills {
    top: 4px;
    gap: 8px;
  }
}
#ui .skins .skin-content[hidden],
#ui .skins .weapon-content[hidden] {
  display: none;
}
#ui .skins .wtabs {
  position: absolute;
  left: 108px;
  top: 6px;
  display: flex;
  gap: 10px;
  z-index: 2;
}
#ui .skins .wtabs button {
  height: 66px;
  padding: 0 26px;
  border: 4px solid #211450;
  border-radius: 22px;
  color: #cfc4ff;
  background: #3a2a92;
  font: 400 30px/1 var(--pop);
  cursor: pointer;
  box-shadow: 0 5px 0 #1b1140;
}
#ui .skins .wtabs button.on {
  color: #fff;
  background: linear-gradient(#a38aff, #6240ed);
  box-shadow:
    inset 0 3px 0 #dccbff,
    0 5px 0 #1b1140;
  -webkit-text-stroke: 2px #2d186e;
  paint-order: stroke fill;
}
#ui .skins .head .wallet {
  display: none;
}
#ui .skins.tab-weapons .head .wallet {
  display: flex;
  right: 0;
  padding: 8px 18px;
  font-size: 36px;
  align-items: center;
  gap: 8px;
}
#ui .skins.tab-weapons .head .own {
  display: none;
}
#ui .skins .head .wallet svg {
  width: 38px;
  height: 38px;
}
#ui .skins .weapon-content {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 28px;
  min-height: 0;
}
#ui .skins #weaponName {
  margin: 0;
  align-self: center;
  font: 400 36px/0.95 var(--pop);
  text-align: center;
  color: #fff;
  -webkit-text-stroke: 3px #241655;
  paint-order: stroke fill;
}
#ui .skins #weaponStatus {
  margin: 0;
  font: 400 26px/1 var(--pop);
  color: #c7baff;
}
#ui .skins #bBuy {
  height: 88px;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 8px;
  border-radius: 25px;
  font: 400 30px/1 var(--pop);
  white-space: nowrap;
}
#ui .skins #bBuy svg {
  width: 38px;
  height: 38px;
  flex: none;
}
#ui .skins #bBuy:not(.coin) svg {
  display: none;
}
#ui .skins #bBuy:disabled {
  opacity: 0.85;
  cursor: default;
}
#ui .skins #bBuy.coin:disabled {
  filter: grayscale(0.8) brightness(0.8);
}
#ui .skins .wp-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-height: 0;
  align-content: stretch;
}
#ui .skins .wp {
  --g: #9fb2cf;
  --e: #ffffff;
  position: relative;
  display: grid;
  grid-template-rows: 1fr 56px 44px;
  justify-items: center;
  align-items: center;
  min-width: 0;
  height: 100%;
  padding: 0 6px 14px;
  border: 5px solid #211450;
  border-radius: 24px;
  background: linear-gradient(#f1edff, #d4c9ff 70%, #7760da 70%);
  cursor: pointer;
}
#ui .skins .wp[data-id='flame'] {
  --g: #ff7a1a;
  --e: #ffe08a;
}
#ui .skins .wp[data-id='frost'] {
  --g: #5fd0ff;
  --e: #eafcff;
}
#ui .skins .wp[data-id='bolt'] {
  --g: #ffe94a;
  --e: #ffffff;
}
#ui .skins .wp[data-id='venom'] {
  --g: #7dff3a;
  --e: #e8ffb8;
}
#ui .skins .wp[data-id='apoc'] {
  --g: #b43cff;
  --e: #f3d6ff;
}
#ui .skins .wp-list {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
}
#ui .skins .wp {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr 62px 40px;
  padding: 0 3px 12px;
  background: radial-gradient(
    120% 70% at 50% 40%,
    color-mix(in srgb, var(--g) 38%, #2b1a78),
    #1d1260 70%
  );
}
#ui .skins .wp canvas {
  position: static;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  pointer-events: none;
}
#ui .skins .wp .nm {
  min-width: 0;
  font-size: 19px;
  line-height: 1.02;
  padding: 0 2px;
  overflow-wrap: anywhere;
}
#ui .skins .wp small {
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  font-size: 17px;
  padding: 2px 7px;
  gap: 3px;
  max-width: 100%;
}
#ui .skins .wp small.lockmsg {
  height: 40px;
  padding: 2px 6px;
  font-size: 14px;
  line-height: 1;
  white-space: normal;
  text-align: center;
  justify-content: center;
  border-radius: 14px;
}
#ui .skins .wp small.lockmsg svg {
  width: 16px;
  height: 16px;
}
#ui .skins .wp small svg {
  width: 19px;
  height: 19px;
  flex: none;
}
#ui .skins #weaponPreview {
  object-fit: contain;
}
#ui .skins .wp.shut {
  background: radial-gradient(
    120% 70% at 50% 40%,
    color-mix(in srgb, var(--g) 22%, #2b1a78),
    #1d1260 70%
  );
}
#ui .skins .wp.locked canvas {
  filter: saturate(0.35) brightness(0.7);
}
#ui .skins .weapon-content .skin-pedestal {
  opacity: 0.45;
}
#ui .skins .wp .blade-old {
  width: 26px;
  height: 78%;
  border-radius: 4px 4px 13px 13px / 4px 4px 22px 22px;
  rotate: 38deg;
  background: linear-gradient(90deg, var(--e) 0 38%, var(--g) 38%);
  box-shadow:
    0 0 22px var(--g),
    0 0 0 4px #211450;
}
#ui .skins .wp .nm {
  display: grid;
  place-items: center;
  width: 100%;
  color: #fff;
  font: 400 26px/1.05 var(--pop);
  -webkit-text-stroke: 2px #281b5c;
  paint-order: stroke fill;
  text-shadow: 0 2px #281b5c;
  text-align: center;
}
/* 26px fits "Apocalypse" (the longest word in English) in the card's 138 px; languages with longer words go a bit smaller, so they never break mid-word */
#ui .skins .wp .nm:lang(fr) {
  font-size: 23px;
}
#ui .skins .wp .nm:lang(de),
#ui .skins .wp .nm:lang(it),
#ui .skins .wp .nm:lang(ru) {
  font-size: 20px;
}
#ui .skins .wp .nm:lang(nl) {
  font-size: 16px;
}
#ui .skins .wp small {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 14px;
  border-radius: 18px;
  background: #36267f;
  color: #fff;
  font: 400 28px/1.2 var(--pop);
  white-space: nowrap;
}
#ui .skins .wp small svg {
  width: 28px;
  height: 28px;
}
#ui .skins .wp .need {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 7px;
  border-radius: 4px;
  background: #2a1c6b66;
  overflow: hidden;
}
#ui .skins .wp .need i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffd648, #ff9d2e);
}
#ui .skins .wp.on .need,
#ui .skins .wp:not(.shut) .need {
  display: none;
}

#ui .skins .wp.selected {
  border-color: #fff06e;
  outline: 5px solid #a0ef2f;
  box-shadow:
    0 0 18px #fff17e99,
    0 7px 0 #354b22;
}
#ui .skins .wp.on::before {
  content: '\2713';
  position: absolute;
  top: 8px;
  left: 50%;
  translate: -50% 0;
  width: 44px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 3px solid #243b1a;
  border-radius: 16px;
  color: #fff;
  background: #5fb831;
  font: 400 24px/1 var(--pop);
}
/* first time something can be bought: the weapon and the button pulse */
#ui .skins.first .wp:not(.shut):not(.on) {
  animation: wp-first 1s ease-in-out infinite;
}
#ui .skins.first #bBuy:not(:disabled) {
  animation: wp-first 1s ease-in-out infinite;
}
@keyframes wp-first {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.22) drop-shadow(0 0 16px #ffe27a);
  }
}
@media (prefers-reduced-motion: reduce) {
  #ui .skins.first .wp,
  #ui .skins.first #bBuy {
    animation: none;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  #ui .skins .wtabs {
    left: 76px;
    top: 2px;
    gap: 6px;
  }
  #ui .skins .wtabs button {
    height: 44px;
    padding: 0 14px;
    font-size: 21px;
    border-width: 3px;
    border-radius: 15px;
  }
  #ui .skins.tab-weapons .head .wallet {
    font-size: 24px;
    padding: 4px 12px;
  }
  #ui .skins .head .wallet svg {
    width: 26px;
    height: 26px;
  }
  #ui .skins .weapon-content {
    grid-template-columns: 260px 1fr;
    gap: 18px;
  }
  #ui .skins #weaponName {
    font-size: 23px;
    line-height: 0.9;
  }
  #ui .skins #weaponStatus {
    font-size: 22px;
  }
  #ui .skins #bBuy {
    height: 72px;
    font-size: 28px;
  }
  #ui .skins .wp-list {
    gap: 12px;
  }
  #ui .skins .wp {
    border-width: 3px;
    border-radius: 14px;
    grid-template-rows: 1fr 42px 30px;
  }
  #ui .skins .wp .nm,
  #ui .skins .wp .nm:lang(fr) {
    font-size: 14px;
  }
  #ui .skins .wp .nm:lang(de),
  #ui .skins .wp .nm:lang(it),
  #ui .skins .wp .nm:lang(ru) {
    font-size: 12px;
  }
  #ui .skins .wp .nm:lang(nl) {
    font-size: 10px;
  }
  #ui .skins .wp small {
    font-size: 14px;
    padding: 1px 6px;
  }
}

/* Visuals | Weapons tabs: orange and yellow to stand out from the window's purple */
#ui .skins .wtabs button {
  color: #ffe9c2;
  background: linear-gradient(#d9852e, #a2500f);
  border-color: #4a2406;
  box-shadow:
    inset 0 3px 0 #f2b062,
    0 5px 0 #3a1c04;
  -webkit-text-stroke: 2px #4a2406;
  paint-order: stroke fill;
}
#ui .skins .wtabs button:hover {
  filter: brightness(1.1);
}
#ui .skins .wtabs button.on {
  color: #fff;
  background: linear-gradient(#ffe27a, #ff9d1f);
  box-shadow:
    inset 0 3px 0 #fff3b0,
    0 5px 0 #7a3a08,
    0 0 22px #ffb53acc;
  -webkit-text-stroke: 2px #7a3a08;
  translate: 0 -2px;
}

/* ---------- Weapon power button (in place of the shuriken) ---------- */
#ui .throw .pwi {
  display: none;
}
#ui .throw.pw .shuri {
  display: none;
}
#ui .throw.pw .pwi {
  display: grid;
  place-items: center;
}
#ui .throw.pw .pwi svg {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.45));
}
#ui .throw.pw .n {
  display: none;
}
#ui .throw.pw {
  --pw: #ffe94a;
  background: var(--gloss), radial-gradient(circle at 50% 40%, #5a46c8, #2c1d82);
}
#ui .throw.pw[data-k='fire'] {
  --pw: #ff8a1a;
}
#ui .throw.pw[data-k='ice'] {
  --pw: #6fd8ff;
}
#ui .throw.pw[data-k='bolt'] {
  --pw: #ffe94a;
}
#ui .throw.pw[data-k='venom'] {
  --pw: #7dff3a;
}
#ui .throw.pw[data-k='void'] {
  --pw: #b43cff;
}
/* charge ring around the button (full = ready) */
#ui .throw.pw::before {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(
    from -90deg,
    var(--pw) calc(var(--p, 0) * 360deg),
    rgba(20, 12, 60, 0.55) 0
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}
#ui .throw.pw.ready {
  opacity: 1;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.45),
    0 5px 0 var(--ink),
    0 0 26px 6px var(--pw);
  animation: pw-ready 0.8s ease-in-out infinite;
}
#ui .throw.pw.ready .pwi svg {
  animation: pw-ico 0.8s ease-in-out infinite;
}
@keyframes pw-ready {
  0%,
  100% {
    scale: 1;
  }
  50% {
    scale: 1.1;
  }
}
@keyframes pw-ico {
  0%,
  100% {
    rotate: -6deg;
  }
  50% {
    rotate: 6deg;
  }
}
#ui .throw.got {
  animation: throwShot 0.5s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  #ui .throw.pw.ready,
  #ui .throw.pw.ready .pwi svg {
    animation: none;
  }
}

/* ---------- ?trailer: only the game, no HUD, hint balloons or cursor ---------- */
html.trailer #ui .hud,
html.trailer #ui .throw,
html.trailer #ui .toast,
html.trailer #ui .chip,
html.trailer #ui .badge,
html.trailer #ui .tut,
html.trailer #ui [class*='hint'] {
  display: none !important;
}
html.trailer,
html.trailer * {
  cursor: none !important;
}

/* ---------- Double points ad in the result ---------- */
/* a square seal floating beside the title (like the hanger, on the other side); tap it and the ad starts */
#ui .r6 .result-ad {
  position: absolute;
  z-index: 5;
  top: 92px;
  left: -146px;
  width: 128px;
  padding: 8px 6px 10px;
  display: grid;
  justify-items: center;
  gap: 2px;
  border-radius: 26px;
  border: 5px solid #6a3a06;
  color: #fff;
  cursor: pointer;
  font-family: var(--pop);
  background: linear-gradient(#ffe27a, #ff9d1f);
  box-shadow:
    inset 0 4px 0 #fff3b0,
    inset 0 -6px 0 #d4860e,
    0 6px 0 #6a3a06;
  animation: ad-float 2.6s ease-in-out infinite;
}
#ui .r6 .result-ad[hidden] {
  display: none;
}
#ui .r6 .result-ad .adtag {
  display: flex;
  align-items: center;
  gap: 4px;
  font: 400 17px/1 var(--pop);
  font-style: normal;
  -webkit-text-stroke: 3px #6a3a06;
  paint-order: stroke fill;
}
#ui .r6 .result-ad .adtag svg {
  width: 24px;
  height: 24px;
}
#ui .r6 .result-ad .x2 {
  font: 400 52px/0.95 var(--pop);
  -webkit-text-stroke: 7px #6a3a06;
  paint-order: stroke fill;
  text-shadow: 0 4px 0 #6a3a06;
}
#ui .r6 .result-ad .lb {
  font: 400 15px/1.05 var(--pop);
  text-transform: uppercase;
  -webkit-text-stroke: 3px #6a3a06;
  paint-order: stroke fill;
}
#ui .r6 .result-ad .bn {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  padding: 2px 9px 3px;
  border-radius: 12px;
  background: #3a1a04a8;
  font: 400 17px/1 var(--pop);
}
#ui .r6 .result-ad .bn em {
  font-style: normal;
}
#ui .r6 .result-ad .bn svg {
  width: 18px;
  height: 18px;
}
#ui .r6 .result-ad:hover {
  filter: brightness(1.08);
}
#ui .r6 .result-ad:active {
  translate: 0 3px;
}
#ui .r6 .result-ad.done {
  animation: none;
  background: linear-gradient(#b6f27a, #4fb82a);
  border-color: #1f4a0a;
  box-shadow:
    inset 0 4px 0 #e2ffbd,
    inset 0 -6px 0 #2f8a14,
    0 6px 0 #1f4a0a;
  pointer-events: none;
}
#ui .r6 .result-ad.done .adtag,
#ui .r6 .result-ad.done .x2 {
  display: none;
}
#ui .r6 .result-ad.done .lb,
#ui .r6 .result-ad.done .adtag,
#ui .r6 .result-ad.done .x2 {
  -webkit-text-stroke-color: #1f4a0a;
}
#ui .r6 .result-ad.done .lb {
  font-size: 19px;
  padding: 14px 2px 6px;
}
@keyframes ad-float {
  0%,
  100% {
    translate: 0 0;
    rotate: -2deg;
  }
  50% {
    translate: 0 -9px;
    rotate: 2deg;
  }
}
@media (prefers-reduced-motion: reduce) {
  #ui .r6 .result-ad {
    animation: none;
  }
}
/* bonus points flying from the seal to the scoreboard */
#ui .ad-gem,
.ad-gem {
  position: fixed;
  z-index: 120;
  width: 30px;
  height: 30px;
  pointer-events: none;
  filter: drop-shadow(0 0 7px #ffd24a);
}
.ad-gem svg {
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-height: 540px) and (orientation: landscape) {
  #ui .r6 .result-ad {
    top: 48px;
    left: -76px;
    width: 66px;
    padding: 4px 3px 5px;
    border-width: 3px;
    border-radius: 14px;
  }
  #ui .r6 .result-ad .adtag {
    font-size: 9px;
    -webkit-text-stroke-width: 1.6px;
  }
  #ui .r6 .result-ad .adtag svg {
    width: 13px;
    height: 13px;
  }
  #ui .r6 .result-ad .x2 {
    font-size: 26px;
    -webkit-text-stroke-width: 4px;
  }
  #ui .r6 .result-ad .lb {
    font-size: 8px;
    -webkit-text-stroke-width: 1.6px;
  }
  #ui .r6 .result-ad .bn {
    font-size: 9px;
    padding: 1px 5px 2px;
  }
  #ui .r6 .result-ad .bn svg {
    width: 10px;
    height: 10px;
  }
  #ui .r6 .result-ad.done .lb {
    font-size: 10px;
    padding: 7px 1px 3px;
  }
}

/* ---------- "reviver aqui" offer (optional ad) during death ---------- */
#ui .revive-offer {
  position: absolute;
  left: 50%;
  bottom: 22%;
  translate: -50% 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 26px 12px;
  border-radius: 26px;
  border: 4px solid #5a2a06;
  background: linear-gradient(#ffe27a, #ff9d1f);
  color: #fff;
  font: 400 30px/1 var(--pop);
  -webkit-text-stroke: 4px #7a3a08;
  paint-order: stroke fill;
  box-shadow:
    inset 0 3px 0 #fff3b0,
    0 5px 0 #7a3a08,
    0 0 28px #ffb53a99;
  cursor: pointer;
  overflow: hidden;
  animation: revive-pop 0.4s cubic-bezier(0.2, 1.6, 0.4, 1);
}
#ui .revive-offer[hidden] {
  display: none;
}
#ui .revive-offer .ico svg {
  width: 34px;
  height: 34px;
  display: block;
}
#ui .revive-offer .bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 6px;
  width: 100%;
  background: #7a3a08;
  transform-origin: 0 50%;
}
@keyframes revive-pop {
  from {
    scale: 0.5;
    opacity: 0;
  }
}
@keyframes revive-bar {
  to {
    transform: scaleX(0);
  }
}
#ui .revive-offer:active {
  translate: -50% 3px;
}
@media (max-height: 540px) and (orientation: landscape) {
  #ui .revive-offer {
    font-size: 20px;
    padding: 6px 18px 8px;
    border-width: 3px;
    -webkit-text-stroke-width: 3px;
    bottom: 16%;
  }
  #ui .revive-offer .ico svg {
    width: 22px;
    height: 22px;
  }
}

/* the visuals/weapons button must not touch the title's yellow strip (both are the same color and blended together): it sits over the card border */
#ui .r6 .result-wardrobe {
  top: -64px;
}
@media (max-height: 540px) and (orientation: landscape) {
  #ui .r6 .result-wardrobe {
    top: -40px;
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  #ui .r6 .result-wardrobe {
    top: -52px;
  }
}
/* End of src/ui/menus.css */

/* End of dist-static/assets/menus-D167HEhW.css */
