/* WAR-1 X5 — Contest engine + marketing calendar */

.sl-contest-rail {
  margin: 16px 4px;
  padding: 16px 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background:
    radial-gradient(1000px 140px at 100% 0%, rgba(250, 204, 21, 0.12), transparent 55%),
    linear-gradient(180deg, #071018, #0a0a0a);
  color: #f4f4f5;
  position: relative;
  z-index: 1;
}

.sl-contest-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.sl-contest-rail-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sl-contest-rail-title > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sl-contest-rail-title strong {
  font-size: 16px;
  font-weight: 800;
}

.sl-contest-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #082f49;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
  flex: none;
}

.sl-contest-meta {
  font-size: 12px;
  color: #93c5fd;
  font-weight: 600;
}

.sl-contest-countdown {
  color: #facc15;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sl-contest-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #082f49;
  text-decoration: none;
  background: linear-gradient(135deg, #facc15, #eab308);
}

.sl-contest-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.sl-contest-strip {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0 2px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sl-contest-competitor a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 84px;
  text-decoration: none;
  color: #f4f4f5;
}

.sl-contest-rank {
  position: absolute;
  top: -2px;
  left: -2px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #1a1204;
  border: 2px solid #071018;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.sl-contest-avatar {
  position: relative;
  width: 56px;
  height: 56px;
}

.sl-contest-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.45);
}

.sl-contest-live {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #071018;
}

.sl-contest-name {
  font-size: 12px;
  font-weight: 700;
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-contest-score {
  font-size: 11px;
  color: #93c5fd;
  font-weight: 700;
}

.sl-contest-empty {
  padding: 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  color: #94a3b8;
  font-size: 14px;
}

.sl-contest-rail-foot {
  margin-top: 10px;
  text-align: right;
}

.sl-contest-rail-foot a {
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 720px) {
  .sl-contest-rail {
    margin: 12px 2px 20px;
    padding: 14px 12px 16px;
  }
  .sl-contest-rail-head {
    flex-direction: column;
    align-items: stretch;
  }
  .sl-contest-cta {
    justify-content: center;
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
  }
  .sl-contest-strip {
    padding-bottom: 6px;
    margin-bottom: 2px;
  }
  .sl-contest-rail-foot {
    margin-top: 8px;
    padding-bottom: 8px;
  }
  /* Keep "Marketing calendar" above the fixed mobile bottom nav. */
  body.sl-mobile-bottom-nav-active .sl-contest-rail {
    margin-bottom: 28px;
    padding-bottom: 18px;
  }
}

/* Hub + LP */
.sl-contest-page {
  min-height: 60vh;
  background:
    radial-gradient(900px 220px at 20% 0%, rgba(14, 165, 233, 0.18), transparent 60%),
    linear-gradient(180deg, #05080d, #0a0a0a 40%);
  color: #e2e8f0;
  padding: 28px 16px 64px;
}

.sl-contest-page-inner {
  max-width: 980px;
  margin: 0 auto;
}

.sl-contest-hero {
  margin: 0 0 28px;
}

.sl-contest-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  color: #fff;
  font-weight: 900;
}

.sl-contest-hero .sl-contest-kicker {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
}

.sl-contest-hero p {
  margin: 0 0 16px;
  max-width: 46ch;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.sl-contest-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sl-contest-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}

.sl-contest-pill.is-active {
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
}

.sl-contest-pill.is-scheduled {
  border-color: rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
}

.sl-contest-section {
  margin: 28px 0;
}

.sl-contest-section h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.35rem;
}

.sl-contest-section > p {
  margin: 0 0 14px;
  color: #94a3b8;
}

.sl-contest-calendar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.sl-contest-cal-item a {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.72);
  color: #e2e8f0;
  text-decoration: none;
}

.sl-contest-cal-item.is-active a {
  border-color: rgba(250, 204, 21, 0.35);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.08), rgba(2, 6, 23, 0.85));
}

.sl-contest-cal-status {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #38bdf8;
}

.sl-contest-cal-window,
.sl-contest-cal-prize {
  font-size: 13px;
  color: #94a3b8;
}

.sl-contest-prizes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.sl-contest-prizes li {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(250, 204, 21, 0.22);
  background: rgba(250, 204, 21, 0.06);
  color: #fde68a;
  font-weight: 700;
}

.sl-contest-standings-head h2 {
  margin: 0 0 6px;
}

.sl-contest-board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.sl-contest-board-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.7);
}

.sl-contest-board-model {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 700;
  min-width: 0;
}

.sl-contest-board-model img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.sl-contest-board-model span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .sl-contest-page {
    padding: 20px 12px 88px;
  }
  .sl-contest-hero h1 {
    font-size: 2rem;
  }
}
