.category-shift {
  width: min(1320px, calc(100% - 64px));
  margin: 46px auto 0;
  display: grid;
  gap: 24px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 760px;
}

.category-shift__head {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.category-shift__head .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.category-shift__head h2 {
  margin: 12px 0 14px;
  font-family: var(--font-primary);
  font-size: clamp(1.55rem, 2.8vw, 2.62rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #f2f4f8;
}

.category-shift__head p {
  margin: 0;
  max-width: 820px;
  color: #cdd1d9;
  font-size: clamp(0.92rem, 1.1vw, 1.04rem);
  line-height: 1.5;
  margin-left: auto;
  margin-right: auto;
}

.category-shift__arena {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(140% 120% at 50% 0%, rgba(255, 255, 255, 0.1), transparent 58%),
    linear-gradient(160deg, rgba(8, 13, 22, 0.95), rgba(4, 8, 15, 0.94));
  box-shadow: 0 28px 50px rgba(1, 6, 14, 0.44);
  padding: clamp(18px, 2.2vw, 30px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: center;
  overflow: hidden;
  contain: layout paint style;
}

.category-shift__arena::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(37, 233, 250, 0),
    rgba(37, 233, 250, 0.78) 26%,
    rgba(110, 243, 197, 0.72) 54%,
    rgba(255, 164, 58, 0.42) 76%,
    rgba(37, 233, 250, 0)
  );
  box-shadow:
    0 0 16px rgba(37, 233, 250, 0.34),
    0 0 24px rgba(110, 243, 197, 0.2);
  opacity: 0.8;
  z-index: 0;
}

.category-panel {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: clamp(14px, 1.8vw, 20px);
  background: linear-gradient(162deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 1;
  opacity: 0;
  contain: layout style;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.category-panel--old {
  transform: translateX(-34px);
}

.category-panel--new {
  transform: translateX(34px);
}

.category-shift__arena.is-live .category-panel {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.88, 0.2, 1);
}

.category-panel__head {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
}

.category-panel__head p {
  margin: 0;
  font-family: var(--font-primary);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  letter-spacing: -0.01em;
}

.category-panel__head span {
  color: #b5bbc7;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.category-panel--old .category-panel__head p,
.category-panel--new .category-panel__head p {
  color: #eff1f6;
}

.category-panel--new {
  position: relative;
  overflow: hidden;
  border-color: rgba(37, 233, 250, 0.38);
  background:
    radial-gradient(140% 120% at 10% 0%, rgba(37, 233, 250, 0.2), transparent 58%),
    radial-gradient(120% 110% at 84% 94%, rgba(110, 243, 197, 0.12), transparent 62%),
    linear-gradient(162deg, rgba(37, 233, 250, 0.14), rgba(110, 243, 197, 0.08) 52%, rgba(255, 164, 58, 0.06) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 30px rgba(0, 8, 16, 0.32);
}

.category-panel--new::before {
  content: "";
  position: absolute;
  inset: -18% -30%;
  background: linear-gradient(
    100deg,
    transparent 38%,
    rgba(37, 233, 250, 0.18) 47%,
    rgba(110, 243, 197, 0.14) 52%,
    rgba(255, 164, 58, 0.08) 56%,
    transparent 64%
  );
  transform: translateX(-30%);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.category-shift__arena.is-live .category-panel--new::before {
  animation: askoraCardSweep 4.4s ease-in-out 0.6s infinite;
}

.category-panel--new .category-item {
  border-color: rgba(37, 233, 250, 0.24);
  background: linear-gradient(160deg, rgba(4, 18, 30, 0.86), rgba(5, 16, 27, 0.82));
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.category-item {
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 11px 12px 11px 34px;
  position: relative;
  background: rgba(7, 12, 20, 0.56);
  transition: border-color 0.36s ease, background 0.36s ease, transform 0.36s ease;
  contain: layout style;
}

.category-item p {
  display: block;
  max-width: none;
  width: auto;
  white-space: normal;
  margin: 0;
  font-size: clamp(0.83rem, 0.94vw, 0.92rem);
  line-height: 1.34;
  color: #d8dde7;
}

.category-item__dot {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.24);
}

.category-panel--new .category-item__dot {
  background: linear-gradient(140deg, #62f5f8, #25e9fa);
  box-shadow: 0 0 0 0 rgba(37, 233, 250, 0.38);
}

.category-panel--new .category-item:nth-child(2) .category-item__dot {
  background: linear-gradient(140deg, #25e9fa, #6ef3c5);
}

.category-panel--new .category-item:nth-child(3) .category-item__dot {
  background: linear-gradient(140deg, #9af7da, #32d9a1);
}

.category-panel--new .category-item:nth-child(4) .category-item__dot {
  background: linear-gradient(140deg, #25e9fa, #ffa43a);
  box-shadow:
    0 0 0 0 rgba(255, 164, 58, 0.34),
    0 0 10px rgba(37, 233, 250, 0.22);
}

.category-item.is-active {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(9, 19, 31, 0.92);
  transform: translateX(2px);
}

.category-item.is-active .category-item__dot {
  animation: activeDotMono 1.6s ease-in-out infinite;
}

.category-core {
  width: clamp(134px, 15vw, 190px);
  aspect-ratio: 1 / 1;
  position: relative;
  display: grid;
  place-items: center;
  z-index: 2;
  opacity: 0;
  transform: scale(0.92);
  contain: layout style;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.category-shift__arena.is-live .category-core {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.64s ease 0.14s, transform 0.76s cubic-bezier(0.2, 0.88, 0.2, 1) 0.14s;
}

.category-core__pulse {
  width: 64%;
  height: 64%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(98, 245, 248, 0.72) 0%,
    rgba(37, 233, 250, 0.54) 34%,
    rgba(110, 243, 197, 0.26) 58%,
    rgba(255, 164, 58, 0.14) 74%,
    transparent 82%
  );
  filter: blur(10px);
  animation: corePulseCategoryMono 3.2s ease-in-out infinite;
  will-change: transform, opacity;
}

.category-core__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(37, 233, 250, 0.42);
  opacity: 0;
  will-change: transform, opacity;
}

.category-core__ring--a {
  transform: rotateX(68deg);
  border-color: rgba(37, 233, 250, 0.46);
  box-shadow: 0 0 18px rgba(37, 233, 250, 0.24);
}

.category-core__ring--b {
  transform: rotateY(72deg);
  border-color: rgba(110, 243, 197, 0.42);
  box-shadow: 0 0 16px rgba(110, 243, 197, 0.2);
}

.category-core::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(14px, 1.8vw, 20px);
  height: clamp(14px, 1.8vw, 20px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #62f5f8 0%,
    #25e9fa 38%,
    rgba(1, 170, 221, 0.82) 58%,
    rgba(255, 164, 58, 0.38) 76%,
    rgba(255, 164, 58, 0) 100%
  );
  box-shadow:
    0 0 12px rgba(37, 233, 250, 0.68),
    0 0 22px rgba(110, 243, 197, 0.36),
    0 0 32px rgba(255, 164, 58, 0.16);
  animation: coreBlinkAskora 2.4s ease-in-out infinite;
  z-index: 3;
  will-change: transform, opacity;
}

.category-shift__arena.is-live .category-core__ring--a {
  animation: ringOrbitInA 1s cubic-bezier(0.2, 0.88, 0.2, 1) both;
}

.category-shift__arena.is-live .category-core__ring--b {
  animation: ringOrbitInB 1.06s cubic-bezier(0.2, 0.88, 0.2, 1) 0.06s both;
}

.category-core p {
  position: absolute;
  margin: 0;
  bottom: -16px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(208, 214, 224, 0.72);
  white-space: nowrap;
}

@keyframes activeDotMono {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0);
  }
}

@keyframes corePulseCategoryMono {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes coreBlinkAskora {
  0%,
  100% {
    opacity: 0.74;
    transform: translate(-50%, -50%) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

@keyframes ringOrbitInA {
  from {
    transform: rotateX(42deg) rotateZ(-120deg) scale(0.82);
    opacity: 0;
  }
  to {
    transform: rotateX(68deg) rotateZ(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes ringOrbitInB {
  from {
    transform: rotateY(42deg) rotateZ(120deg) scale(0.82);
    opacity: 0;
  }
  to {
    transform: rotateY(72deg) rotateZ(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes askoraCardSweep {
  0% {
    opacity: 0;
    transform: translateX(-34%);
  }
  20% {
    opacity: 1;
  }
  56% {
    opacity: 0.88;
  }
  100% {
    opacity: 0;
    transform: translateX(34%);
  }
}

@media (max-width: 1200px) {
  .category-shift {
    width: min(1320px, calc(100% - 38px));
  }

  .category-shift__arena {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-shift__arena::after {
    display: none;
  }

  .category-core {
    order: 0;
    justify-self: center;
    align-self: center;
    margin: 2px auto 10px;
  }
}

@media (max-width: 560px) {
  .category-shift {
    width: min(1320px, calc(100% - 18px));
    margin-top: 34px;
  }

  .category-shift__head h2 {
    font-size: clamp(1.24rem, 6.3vw, 1.72rem);
  }

  .category-shift__head p {
    font-size: 0.86rem;
  }
}
