.sortition {
  padding: 16px 16px 20px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  position: relative;
  
}

.sortition.main-banner {
  height: 350px;
  background: url("../images/image.jpg") no-repeat center center;
  background-size: cover;
}

.sortition .block_head {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding-bottom: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sortition #prizes {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(214, 40, 40, 0.7);
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(214, 40, 40, 0.45);
  padding: 15px;
    color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  text-shadow: 0 0 6px rgba(214,40,40,0.7);
}
.sortition #participants {
  background: linear-gradient(135deg, rgba(234,88,12,.10), rgba(234,88,12,.05));
}

.sortition .winners {
  background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(245,158,11,.06));
}

.sortition h3 {
  font-size: 16px;
  text-align: center;
  margin: 0 0 18px;
  color: #d7dde6;
  font-weight: 600;
}

.sortition #ending {
 text-align: center; 
}

.sortition #ending span {
  color: #fff;
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  display: inline-block;
  padding: 10px 14px;
  margin: 6px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 6px;
}

.sortition #ending i {
  display: block;
  font-style: normal;
  font-size: 14px;
  line-height: 18px;
  color: #e0e0e0;
  margin-top: 6px;
}

.sortition #prizes h5 {
  background: linear-gradient(
    90deg,
    #ffd700,
    #fff8dc,
    #e6c200,
    #f5f5f5,
    #c0c0c0,
    #ffd700
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
  display: inline-block;
  padding: 4px 0;

  animation: shine 4s linear infinite;
}

@keyframes shine {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 300% center;
  }
}

.sortition #prizes .prize {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-top: 4px;
  background: linear-gradient(90deg, rgba(255,215,0,0.25), rgba(255, 0, 0, 0.05));
  padding: 5px 10px;
  border-radius: 4px;
}
.sortition #prizes .prize span {
  display: inline-block;
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  color: #e3e8f1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sortition #prizes .prize span small {
  color: #9aa5b3;
  font-size: 13px;
}
.sortition #prizes .prize p {
  margin: 6px 0 0;
  color: #c8d1dd;
}

.sortition #participants > p {
  color: #e6ebf3;
}
.sortition #participants a {
  display: inline-block;
  padding: 4px 7px;
  margin: 0 5px 5px 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 6px;
  color: #d7dde6;
}
.sortition #participants a img {
  width: 25px; height: 25px; border-radius: 50%;
}

.sortition #winners { text-align: center; }
.sortition #winners a {
  display: inline-block;
  padding: 8px 10px;
  margin: 6px;
  width: 140px;
  background: rgba(245,158,11,.18);
  border: 1px solid rgba(245,158,11,.35);
  border-radius: 8px;
  opacity: .95;
  transition: transform .15s ease, opacity .15s ease;
}
.sortition #winners a:hover { opacity: 1; transform: translateY(-1px); }
.sortition #winners a img {
  display: block;
  margin: 10px auto;
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.85);
}
.sortition #winners a span {
  display: block;
  max-width: 150px;
  margin: 0 auto;
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sortition .bottom-bar {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.sortition .participate,
.sortition a.read-more {
  background: linear-gradient(180deg, #d62828 0%, #a4161a 100%);
  color: #fff;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.sortition .participate:hover,
.sortition a.read-more:hover {
  background: #fff;
  color: #d62828 !important;
  box-shadow: 0 0 15px rgba(255,0,0,0.8);
}

.sortition .participate:active,
.sortition a.read-more:active {
  transform: translateY(1px);
}

.sortition p[style*="color:red"],
.sortition span[style*="color:red"],
.sortition a[style*="color:red"] {
  display: block;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  color: #ff4d4d !important;
  background: none !important;
  box-shadow: none !important;
}

.sortition a,
.sortition p {
  text-align: center;
  padding: 4px 7px;
  font-weight: 700;
  font-size: 18px;
  display: inline-block;
  margin-bottom: 5px;
  margin-right: 5px;
}

.sortition p{
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0% {
    opacity: 1;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.6), 0 0 10px rgba(255, 0, 0, 0.4);
  }
  50% {
    opacity: 0.7;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.9), 0 0 25px rgba(255, 0, 0, 0.6);
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.6), 0 0 10px rgba(255, 0, 0, 0.4);
  }
}

@media (max-width: 576px) {
  .sortition { padding: 14px; margin-bottom: 22px; }
  .sortition #ending span { font-size: 36px; padding: 8px 10px; }
  .sortition #winners a { width: 120px; }
  .sortition.main-banner {
    height: 220px;
    background: url("../images/image2.jpg") no-repeat center center;
    background-size: cover;
  }
  .sortition .bottom-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .sortition .participate,
  .sortition a.read-more {
    width: 100%;
    text-align: center;
  }

  .sortition .balance-warning {
    flex: unset;
    width: 100%;
    margin: 5px 0;
  }
}