.live-panel {
  position: relative;
  isolation: isolate;
  min-height: 70px;
  padding: 7px 9px;
  gap: 7px;
  overflow: hidden;
  border: 1px solid rgb(255 125 57 / .24);
  background: radial-gradient(ellipse at 25% -40%, rgb(196 65 23 / .22), transparent 60%),
              linear-gradient(110deg, #241b21, #171b23 58%, #21171e);
  box-shadow: inset 0 1px 0 rgb(255 210 164 / .08), 0 12px 28px rgb(0 0 0 / .26);
}
.live-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 15%, rgb(255 133 70 / .06) 46%, transparent 76%);
  transform: translateX(-100%);
  animation: live-ambient 8s ease-in-out infinite;
}
.live-status {
  width: 56px;
  min-height: 0;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 6px;
  padding: 0 2px;
  border-radius: 10px;
  color: #f7f2ee;
  text-align: left;
  background: transparent;
}
.live-dot { width: 7px; height: 7px; flex: none; }
.live-title { color: #f5f0e9; font-size: 13px; font-weight: 800; letter-spacing: .08em; }

.live-reel {
  position: relative;
  height: 52px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 96%, transparent);
}
.live-track {
  display: flex;
  align-items: center;
  gap: var(--live-gap, 8px);
  width: max-content;
  height: 100%;
  will-change: transform;
}
.live-card {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 var(--live-card-width, 52px);
  width: var(--live-card-width, 52px);
  height: 50px;
  overflow: hidden;
  border: 1px solid rgb(255 181 128 / .14);
  border-radius: 11px;
  background: radial-gradient(circle at 50% 82%, rgb(255 92 35 / .13), transparent 66%),
              linear-gradient(145deg, rgb(51 41 47 / .96), rgb(26 29 38 / .95));
  box-shadow: inset 0 1px 0 rgb(255 225 196 / .08), 0 5px 12px rgb(0 0 0 / .22);
}
.live-card::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 60%, rgb(255 156 73 / .19), transparent 58%);
  pointer-events: none;
}
.live-card.is-collection {
  border-color: rgb(112 168 255 / .2);
  background: radial-gradient(circle at 50% 80%, rgb(72 113 214 / .18), transparent 62%),
              linear-gradient(145deg, #29293c, #1c2334);
}
.live-card.is-premium {
  border-color: rgb(255 191 88 / .45);
  background: radial-gradient(circle at 50% 75%, rgb(255 180 54 / .24), transparent 66%),
              linear-gradient(145deg, #383026, #251d27);
  box-shadow: inset 0 1px 0 rgb(255 233 174 / .2), 0 0 12px rgb(255 157 44 / .13);
}
.live-card img {
  position: relative;
  display: block;
  width: 74%;
  height: 74%;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgb(0 0 0 / .32));
}

@keyframes live-ambient { 50% { transform: translateX(100%); } 100% { transform: translateX(100%); } }

@media (max-width: 430px) {
  .live-panel { min-height: 64px; padding: 6px 8px; gap: 6px; }
  .live-status { width: 52px; gap: 5px; }
  .live-title { font-size: 12px; }
  .live-reel { height: 47px; }
  .live-card { height: 45px; border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-panel::before, .live-dot { animation: none !important; }
  .live-track { transition: none !important; }
}

/* Keep the reel visible on the cases and games screens that restyle LIVE. */
body[data-route="cases"] .live-panel,
body[data-route="games"] .live-panel,
body[data-case-view="detail"] .live-panel {
  height: auto;
  min-height: 70px;
  padding: 7px 9px;
  gap: 7px;
  border: 1px solid rgb(255 125 57 / .24);
  border-radius: 24px;
  background: radial-gradient(ellipse at 25% -40%, rgb(196 65 23 / .22), transparent 60%),
              linear-gradient(110deg, #241b21, #171b23 58%, #21171e);
  box-shadow: inset 0 1px 0 rgb(255 210 164 / .08), 0 12px 28px rgb(0 0 0 / .26);
}
body[data-route="cases"] .live-status,
body[data-route="games"] .live-status,
body[data-case-view="detail"] .live-status {
  display: flex;
  width: 56px;
  gap: 6px;
}
body[data-route="cases"] .live-title,
body[data-route="games"] .live-title,
body[data-case-view="detail"] .live-title {
  color: #f5f0e9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}
@media (max-width: 430px) {
  body[data-route="cases"] .live-panel,
  body[data-route="games"] .live-panel,
  body[data-case-view="detail"] .live-panel { min-height: 64px; padding: 6px 8px; gap: 6px; }
  body[data-route="cases"] .live-status,
  body[data-route="games"] .live-status,
  body[data-case-view="detail"] .live-status { width: 52px; gap: 5px; }
  body[data-route="cases"] .live-title,
  body[data-route="games"] .live-title,
  body[data-case-view="detail"] .live-title { font-size: 12px; }
}
