.giveaway-section {
  border-top: 1px solid rgba(151, 177, 210, .12);
  border-bottom: 1px solid rgba(151, 177, 210, .12);
  background: linear-gradient(180deg, rgba(22, 132, 162, .045), rgba(13, 13, 13, .2));
}

.giveaway-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.giveaway-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3.3vw, 2.5rem);
}

.giveaway-lead { color: var(--text-soft); }

.giveaway-live-mark,
.giveaway-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: .82rem;
  font-weight: 600;
}

.giveaway-live-mark i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 12px rgba(26, 154, 194, .45);
}

.giveaway-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 16px;
}

.giveaway-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(21, 21, 21, .97), rgba(17, 26, 30, .92));
}

.giveaway-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
  margin-bottom: 18px;
}

.giveaway-status {
  padding: 5px 10px;
  border: 1px solid rgba(26, 154, 194, .28);
  border-radius: 999px;
  color: #87d8ef;
  background: rgba(22, 132, 162, .12);
}

.giveaway-status.is-upcoming {
  color: var(--gold-bright);
  border-color: rgba(240, 175, 49, .24);
  background: rgba(240, 175, 49, .08);
}

.giveaway-entry-count,
.giveaway-dates,
.giveaway-rules {
  color: var(--text-muted);
  font-size: .84rem;
}

.giveaway-card h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
}

.giveaway-prize {
  margin-bottom: 10px;
  color: var(--gold-bright);
  font-weight: 700;
}

.giveaway-description {
  color: var(--text-soft);
  white-space: pre-line;
}

.giveaway-dates { margin: auto 0 10px; }
.giveaway-rules { white-space: pre-line; }

.giveaway-join {
  margin-top: 14px;
}

.giveaway-join:disabled {
  cursor: default;
  opacity: .7;
}

.giveaway-join.is-entered {
  color: #a7e4c4;
  border-color: rgba(52, 211, 153, .38);
  background: rgba(52, 211, 153, .12);
}

.giveaway-empty {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--text-soft);
  text-align: center;
}

.giveaway-error { color: #f0a0a0; }
.giveaway-footnote { margin-top: 18px; color: var(--text-muted); font-size: .78rem; }

.giveaway-entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 5, 12, .78);
  backdrop-filter: blur(8px);
}

.giveaway-entry-form {
  display: grid;
  gap: 14px;
  width: min(100%, 460px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #111820;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}

.giveaway-entry-form h2,
.giveaway-entry-form p { margin: 0; }
.giveaway-entry-form p { color: var(--text-soft); font-size: .9rem; line-height: 1.5; }
.giveaway-entry-form > label:not(.giveaway-entry-confirm) {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
}
.giveaway-entry-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(5, 11, 20, .58);
  color: var(--text);
}
.giveaway-entry-confirm {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-soft);
  font-size: .82rem;
  line-height: 1.45;
}
.giveaway-entry-confirm input { margin-top: 3px; }
.giveaway-entry-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

@media (max-width: 600px) {
  .giveaway-heading { align-items: flex-start; flex-direction: column; }
  .giveaway-card { padding: 18px; }
  .giveaway-entry-form { padding: 20px; }
  .giveaway-entry-actions > .btn { flex: 1 1 100%; }
}
