/* 摇篮超控 (Cradle Overcontrol) */
.cradle-view {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #020617;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.cradle-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(15, 118, 110, 0.08), transparent 70%),
    radial-gradient(circle at 80% 20%, rgba(30, 41, 59, 0.4), transparent 50%);
  position: relative;
}

.cradle-header {
  position: absolute;
  top: 30px;
  left: 40px;
  z-index: 10;
  border-left: 4px solid #0ea5e9;
  padding-left: 16px;
}

.cradle-title {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 3px;
  margin-bottom: 4px;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.28);
}

.cradle-desc {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 2px;
}

.cradle-subdesc {
  font-size: 12px;
  color: #22d3ee;
  opacity: 0.8;
}

.cradle-content {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 120px;
  align-items: center;
  padding: 0 40px;
}

.cradle-left {
  flex: 0 0 520px;
  height: 100%;
  overflow-y: auto;
  padding-top: 130px;
  padding-right: 20px;
  mask-image: linear-gradient(to bottom, black 90%, transparent);
  scrollbar-width: none;
  transition: background 0.2s;
}

.cradle-left.drag-over {
  background: rgba(34, 211, 238, 0.05);
  border-radius: 12px;
}

.cradle-left::-webkit-scrollbar {
  display: none;
}

.cradle-group {
  margin-bottom: 22px;
}

.cradle-group-title {
  font-size: 15px;
  color: #10b981;
  margin-bottom: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cradle-group-items {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cradle-item-box {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(148, 163, 184, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  transition: all 0.2s ease;
}

.cradle-item-box:hover {
  border-color: #22d3ee;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}

.cradle-item-box.equipped::after {
  content: "E";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  background: #eab308;
  color: #000;
  font-size: 11px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #020617;
}

.cradle-item-icon {
  font-size: 24px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cradle-item-clip {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 46%, rgba(0, 0, 0, 0) 52%);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 46%, rgba(0, 0, 0, 0) 52%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.cradle-icon-img {
  width: 110%;
  height: 110%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(0.95);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.cradle-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 60px;
}

.cradle-circle-area {
  position: relative;
  width: 500px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(var(--cradle-tilt, 0deg));
  transform-origin: 50% 50%;
  will-change: transform;
}

.cradle-center-bg {
  width: 220px;
  height: 300px;
  background: transparent;
  border-radius: 110px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.cradle-center-icon {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cradle-center-icon .player {
  transform: scale(0.9);
  filter: drop-shadow(0 0 15px rgba(34, 211, 238, 0.4));
  flex: 0 0 auto;
}

.cradle-slots-container {
  position: absolute;
  inset: 0;
}

.cradle-slot {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(148, 163, 184, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.cradle-slot.locked {
  background: rgba(15, 23, 42, 0.8);
  border-style: dashed;
  filter: grayscale(1);
  cursor: not-allowed;
}

.cradle-slot.locked::before {
  content: "🔒";
  font-size: 20px;
  opacity: 0.5;
}

.cradle-slot.locked .lock-text {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #ef4444;
  white-space: nowrap;
  font-weight: 800;
}

.cradle-slot.active {
  border-color: rgba(148, 163, 184, 0.4);
  box-shadow: none;
  background: rgba(0, 0, 0, 0.55);
}

.cradle-slot.drag-over {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  transform: translate(-50%, -50%) scale(1.1);
}

.cradle-slot .cradle-item-box {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}

.cradle-back-btn {
  position: fixed;
  bottom: 16px;
  right: 16px;
  padding: 10px 24px;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 1012;
  pointer-events: auto;
}

.cradle-back-btn:hover {
  border-color: #e2e8f0;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.8);
}
