/* Shared feature panel shell. */

.feature-panel {
  align-items: center;
  background:
  linear-gradient(90deg, rgba(1, 7, 14, 0.96), rgba(3, 13, 25, 0.9), rgba(1, 7, 14, 0.96)),
  rgba(1, 6, 12, 0.92);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: absolute;
  z-index: var(--z-panel, 80);
}

.feature-panel .feature-panel-box {
  background:
  linear-gradient(145deg, rgba(8, 31, 54, 0.96), rgba(4, 12, 22, 0.98)),
  radial-gradient(circle at 80% 8%, rgba(242, 169, 31, 0.18), transparent 28%);
  border: 1px solid rgba(67, 200, 255, 0.68);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55), inset 0 0 32px rgba(67, 200, 255, 0.12);
  max-width: 900px;
  min-height: 360px;
  padding: 28px;
  position: relative;
  width: min(100%, 900px);
}

.feature-panel .panel-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(137, 220, 255, 0.4);
  color: #d9f5ff;
  font-size: 28px;
  min-height: 44px;
  padding: 0;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 44px;
}

.feature-panel #featurePanelKicker {
  color: var(--gold);
  display: block;
  font-weight: 800;
  margin-bottom: 10px;
}

.feature-panel h2 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
  margin: 0 54px 16px 0;
}

.feature-panel p {
  color: #cfe5f5;
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 22px;
}

.feature-panel .feature-slots {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-panel .feature-slots.profile-slots {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-panel .feature-slots.profile-slots .feature-slot:nth-last-child(-n + 2) {
  grid-column: span 1;
}

.feature-panel .feature-slot {
  border: 1px solid rgba(67, 200, 255, 0.34);
  color: #d7f2ff;
  min-height: 86px;
  padding: 14px;
}

.feature-panel .feature-button {
  background: rgba(67, 200, 255, 0.16);
  border: 1px solid rgba(137, 220, 255, 0.46);
  color: #e8f8ff;
  min-height: 48px;
  width: 100%;
}

.feature-panel .feature-slot input {
  background: rgba(3, 12, 22, 0.82);
  border: 1px solid rgba(137, 220, 255, 0.42);
  color: #e8f8ff;
  font: inherit;
  min-height: 42px;
  padding: 0 10px;
  width: 100%;
}

.feature-panel .feature-slot.action {
  display: grid;
  gap: 10px;
  grid-template-rows: auto auto 1fr;
}

.feature-panel .feature-slot strong {
  color: #fff;
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.feature-panel .feature-slot small {
  color: #9dcce6;
  display: block;
  line-height: 1.45;
}

.feature-panel .asset-carousel {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  width: 100%;
}

.feature-panel .asset-carousel-control {
  align-items: center;
  background: rgba(18, 47, 72, 0.9);
  border: 1px solid rgba(67, 200, 255, 0.52);
  border-radius: 12px;
  color: #d9f5ff;
  display: grid;
  font-size: 40px;
  height: 76px;
  place-items: center;
}

.feature-panel .asset-carousel-card {
  align-items: center;
  background: linear-gradient(100deg, rgba(9, 28, 49, 0.96), rgba(19, 58, 87, 0.88));
  border: 1px solid rgba(67, 200, 255, 0.45);
  border-radius: 14px;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(180px, .95fr) minmax(160px, 1.05fr);
  min-height: 250px;
  overflow: hidden;
  padding: 12px;
}

.feature-panel .asset-carousel-card.locked {
  filter: grayscale(1);
  opacity: .65;
}

.feature-panel .asset-carousel-card img {
  height: 224px;
  object-fit: contain;
  width: 100%;
}

.feature-panel .asset-carousel-info {
  display: grid;
  gap: 9px;
}

.feature-panel .asset-carousel-info h3 {
  font-size: clamp(24px, 4vw, 38px);
  margin: 0;
}

.feature-panel .asset-carousel-info p,
.feature-panel .asset-carousel-info small {
  color: var(--muted);
  margin: 0;
}

.feature-panel .asset-rank {
  border-radius: 6px;
  font-weight: 800;
  padding: 4px 9px;
  width: fit-content;
}

.feature-panel .rank-S {
  background: #bf5cff;
  color: #fff;
}

.feature-panel .rank-A {
  background: #39a4ff;
  color: #fff;
}

.feature-panel .rank-B {
  background: #5a7188;
  color: #fff;
}

.feature-panel .asset-carousel-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 12px 0 0;
}

@media (max-width: 720px) {
  .feature-panel .feature-slots {
    grid-template-columns: 1fr;
  }

  .feature-panel .feature-slots.profile-slots {
    grid-template-columns: 1fr;
  }

  .feature-panel .feature-slots.profile-slots .feature-slot:nth-last-child(-n + 2) {
    grid-column: auto;
  }
}
