/* Live Drop page */
.live-main {
  padding: 28px 0 72px;
}

.live-shell {
  width: min(94vw, 2080px);
  margin-inline: auto;
}

.live-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(520px, 0.92fr);
  gap: clamp(24px, 2.5vw, 56px);
  align-items: end;
  min-height: 360px;
  padding: clamp(30px, 2.5vw, 56px);
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 40%, rgba(255, 77, 221, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(20, 6, 34, 0.94), rgba(7, 2, 12, 0.96));
  border: 1px solid rgba(205, 116, 255, 0.26);
  box-shadow: 0 0 42px rgba(150, 52, 255, 0.2);
}

.live-hero::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 26px;
  border: 1px solid rgba(255, 113, 232, 0.16);
  pointer-events: none;
}

.live-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(56, 231, 255, 0.12), transparent 52%),
    conic-gradient(from 90deg, transparent, rgba(255, 77, 221, 0.32), transparent, rgba(56, 231, 255, 0.24), transparent);
  animation: liveRotate 18s linear infinite;
}

.live-hero-copy {
  position: relative;
  z-index: 2;
}

.live-kicker {
  margin: 0 0 8px;
  color: #ff74e9;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.28em;
}

.live-hero h1 {
  margin: 0;
  font-size: clamp(62px, 5vw, 116px);
  line-height: 0.95;
  text-shadow:
    0 0 12px rgba(255,255,255,0.46),
    0 0 32px rgba(165, 72, 255, 0.72),
    7px 0 0 rgba(56, 231, 255, 0.26),
    -7px 0 0 rgba(255, 77, 221, 0.26);
}

.live-hero-copy p:not(.live-kicker) {
  max-width: 760px;
  margin: 22px 0 0;
  color: #d2bee8;
  font-size: 18px;
  line-height: 1.8;
}

.live-status-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.live-status-panel div {
  min-height: 122px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(14, 5, 24, 0.82);
  border: 1px solid rgba(205, 116, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.live-status-panel span {
  display: block;
  margin-bottom: 14px;
  color: #bda1da;
  font-size: 13px;
  font-weight: 800;
}

.live-status-panel strong {
  font-size: clamp(26px, 2vw, 38px);
}

.premium-drop-section,
.realtime-section {
  margin-top: 28px;
  padding: clamp(24px, 2vw, 38px);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(15, 5, 25, 0.92), rgba(7, 2, 12, 0.96));
  border: 1px solid rgba(205, 116, 255, 0.24);
  box-shadow:
    0 0 42px rgba(150, 52, 255, 0.16),
    inset 0 0 0 1px rgba(255,255,255,0.03);
}

.live-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.live-section-head h2 {
  margin: 0;
  font-size: clamp(32px, 2.5vw, 52px);
}

.live-section-head span {
  color: #bfa8d8;
  line-height: 1.6;
}

.slider-controls {
  display: flex;
  gap: 10px;
}

.slider-controls button {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255, 130, 237, 0.32);
  background: rgba(31, 10, 50, 0.88);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(255, 77, 221, 0.16);
}

.drop-slider-viewport {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.drop-slider-viewport.is-dragging {
  cursor: grabbing;
}

.drop-slider-track {
  display: flex;
  gap: 18px;
  transition: transform 0.62s cubic-bezier(.16, .84, .25, 1);
  will-change: transform;
}

.premium-drop-card {
  flex: 0 0 calc((100% - 72px) / 5);
  min-height: 520px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 18px 18px 20px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 77, 221, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(27, 9, 41, 0.96), rgba(10, 3, 18, 0.96));
  border: 1px solid rgba(205, 116, 255, 0.28);
  box-shadow: 0 0 28px rgba(116, 16, 201, 0.18);
  user-select: none;
}

.premium-drop-card img {
  pointer-events: none;
}

.premium-drop-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 113, 232, 0.13);
  pointer-events: none;
}

.premium-drop-card.legendary {
  border-color: rgba(255, 197, 109, 0.56);
  box-shadow: 0 0 34px rgba(255, 197, 109, 0.12);
}

.premium-drop-card.epic {
  border-color: rgba(255, 77, 221, 0.54);
}

.premium-drop-card.rare {
  border-color: rgba(56, 231, 255, 0.46);
}

.drop-rank {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 4;
  min-width: 54px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(7, 2, 12, 0.82);
  border: 1px solid rgba(255, 130, 237, 0.32);
  color: #fff;
  font-weight: 900;
}

.grade-badge {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 4;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  background: rgba(255,255,255,0.08);
}

.legendary .grade-badge {
  color: #ffd58f;
  border: 1px solid rgba(255, 197, 109, 0.42);
}

.epic .grade-badge {
  color: #ff87ec;
  border: 1px solid rgba(255, 77, 221, 0.42);
}

.rare .grade-badge {
  color: #91f1ff;
  border: 1px solid rgba(56, 231, 255, 0.38);
}

.drop-product-img-wrap {
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
}

.drop-product-img {
  max-width: 94%;
  max-height: 270px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 24px rgba(255, 77, 221, 0.22))
    drop-shadow(0 0 42px rgba(163, 61, 255, 0.24));
}

.premium-drop-card h3 {
  margin: 10px 0 8px;
  min-height: 2.5em;
  font-size: clamp(18px, 1.05vw, 24px);
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.drop-box-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.drop-box-name span,
.drop-box-name b {
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.winner-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 43px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(205, 116, 255, 0.18);
}

.winner-line span {
  color: #d7c4ec;
  font-weight: 900;
}

.winner-line strong {
  margin-left: auto;
  color: #fff;
  font-size: clamp(20px, 1.35vw, 30px);
  font-weight: 950;
  line-height: 1;
  text-align: right;
  text-shadow: 0 0 18px rgba(255, 77, 221, 0.34);
}

.drop-value {
  margin-top: 12px;
  text-align: center;
  font-size: clamp(22px, 1.45vw, 32px);
  color: #fff;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(255, 77, 221, 0.32);
}

.premium-drop-card.legendary .drop-value {
  color: #ffd58f;
  text-shadow: 0 0 18px rgba(255, 213, 143, 0.34);
}

.premium-drop-card.legendary .winner-line strong {
  color: #ffd58f;
  text-shadow: 0 0 18px rgba(255, 213, 143, 0.34);
}

.premium-drop-card.epic .drop-value {
  color: #ff87ec;
  text-shadow: 0 0 18px rgba(255, 77, 221, 0.30);
}

.premium-drop-card.epic .winner-line strong {
  color: #ff87ec;
  text-shadow: 0 0 18px rgba(255, 77, 221, 0.30);
}

.premium-drop-card.rare .drop-value {
  color: #91f1ff;
  text-shadow: 0 0 18px rgba(56, 231, 255, 0.28);
}

.premium-drop-card.rare .winner-line strong {
  color: #91f1ff;
  text-shadow: 0 0 18px rgba(56, 231, 255, 0.28);
}

.slider-progress {
  margin-top: 20px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.slider-progress div {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #7f24ff, #ff4ddd, #38e7ff);
  transition: width 0.35s;
}

.feed-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #91f1ff;
  background: rgba(56, 231, 255, 0.1);
  border: 1px solid rgba(56, 231, 255, 0.28);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38e7ff;
  box-shadow: 0 0 16px #38e7ff;
  animation: pulseDot 1.1s infinite;
}

.realtime-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.realtime-card {
  position: relative;
  min-height: 292px;
  padding: 14px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(163, 61, 255, 0.16), transparent 36%),
    rgba(19, 7, 31, 0.88);
  border: 1px solid rgba(205, 116, 255, 0.2);
}

.realtime-card::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 113, 232, 0.68), transparent);
}

.realtime-card.legendary {
  border-color: rgba(255, 197, 109, 0.48);
}

.realtime-card.epic {
  border-color: rgba(255, 77, 221, 0.45);
}

.realtime-card.rare {
  border-color: rgba(56, 231, 255, 0.38);
}

.realtime-card.normal {
  border-color: rgba(198, 182, 216, 0.2);
}

.realtime-img-wrap {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.realtime-img-wrap img {
  max-width: 100%;
  max-height: 142px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(163, 61, 255, 0.24));
}

.realtime-card h3 {
  margin: 8px 0 6px;
  min-height: 44px;
  font-size: 17px;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.realtime-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-height: 18px;
  color: #bfa8d8;
  font-size: 12px;
}

.realtime-box-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 20px;
  margin-top: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.realtime-box-name span,
.realtime-box-name b {
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.realtime-grade-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.realtime-grade {
  display: inline-flex;
  height: 27px;
  padding: 0 10px;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.06);
}

.realtime-card.legendary .realtime-grade { color: #ffd58f; }
.realtime-card.epic .realtime-grade { color: #ff87ec; }
.realtime-card.rare .realtime-grade { color: #91f1ff; }
.realtime-card.normal .realtime-grade { color: #d9c7e9; }

.realtime-value {
  margin-left: auto;
  color: #fff;
  font-weight: 900;
  font-size: 17px;
  text-align: right;
  text-shadow: 0 0 14px rgba(255, 77, 221, 0.26);
}

.realtime-card.legendary .realtime-value {
  color: #ffd58f;
  text-shadow: 0 0 14px rgba(255, 213, 143, 0.28);
}

.realtime-card.epic .realtime-value {
  color: #ff87ec;
  text-shadow: 0 0 14px rgba(255, 77, 221, 0.26);
}

.realtime-card.rare .realtime-value {
  color: #91f1ff;
  text-shadow: 0 0 14px rgba(56, 231, 255, 0.24);
}

.feed-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 78px;
  color: #bfa8d8;
}

.feed-loading.show {
  display: flex;
}

.feed-loading span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  border-top-color: #ff4ddd;
  animation: liveRotate 0.8s linear infinite;
}

@keyframes liveRotate {
  to { transform: rotate(360deg); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.22); }
}

@media (max-width: 1680px) {
  .realtime-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .premium-drop-card {
    flex-basis: calc((100% - 54px) / 4);
  }
}

@media (max-width: 1280px) {
  .live-hero {
    grid-template-columns: 1fr;
  }

  .premium-drop-card {
    flex-basis: calc((100% - 36px) / 3);
  }

  .realtime-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .live-status-panel {
    grid-template-columns: 1fr;
  }

  .premium-drop-card {
    flex-basis: calc((100% - 18px) / 2);
  }

  .realtime-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .live-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .live-main {
    padding-top: 14px;
  }

  .live-hero,
  .premium-drop-section,
  .realtime-section {
    border-radius: 24px;
    padding: 22px 16px;
  }

  .live-hero h1 {
    font-size: 52px;
  }

  .drop-slider-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .drop-slider-viewport::-webkit-scrollbar {
    display: none;
  }

  .drop-slider-track {
    gap: 10px;
  }

  .premium-drop-card {
    flex-basis: calc((100% - 10px) / 1.5);
    min-height: 430px;
    scroll-snap-align: start;
  }

  .drop-product-img-wrap {
    height: 210px;
    margin-top: 30px;
  }

  .drop-product-img {
    max-height: 205px;
  }

  .premium-drop-card h3 {
    font-size: 18px;
  }

  .winner-line strong {
    font-size: 22px;
  }

  .realtime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .realtime-card {
    min-height: 260px;
    padding: 12px 10px;
  }

  .realtime-img-wrap {
    height: 130px;
  }

  .realtime-img-wrap img {
    max-height: 122px;
  }

  .realtime-card h3 {
    font-size: 14px;
  }

  .realtime-value {
    font-size: 15px;
  }
}
