.giveaway-feature .giveaway-feature-rules {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  min-height: 46px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid #c8a466a6;
  border-radius: 12px;
  background: #0d1d14df;
  color: #fff0ca;
  font: 600 .76rem / 1.4 var(--sans, Arial, sans-serif);
  text-align: left;
  cursor: pointer;
}

.giveaway-feature-rules small {
  display: block;
  color: #edd9ae;
  font-size: .71rem;
  letter-spacing: .035em;
}

.giveaway-feature-rules [aria-hidden] {
  color: #f3ca7c;
  font-size: 1.18rem;
}

.giveaway-feature .giveaway-feature-rules:hover {
  border-color: #f1ce88;
  background: #253a2b;
}

.giveaway-feature-rules:focus-visible,
.giveaway-rules-close:focus-visible {
  outline: 2px solid #ffda91;
  outline-offset: 3px;
}

#jewel-giveaway-rules {
  box-sizing: border-box;
  width: min(44rem, calc(100% - 24px));
  max-height: min(84dvh, 50rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #d7b471;
  border-radius: 20px;
  background: #fff9ee;
  box-shadow: 0 24px 80px #080f0bbc;
}

#jewel-giveaway-rules::backdrop {
  background: #08140ec4;
  backdrop-filter: blur(5px);
}

.giveaway-rules-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: clamp(16px, 4vw, 32px);
  border-bottom: 1px solid #d7b471;
  background: linear-gradient(120deg, #11261a, #24392b);
}

.giveaway-rules-heading h2 {
  margin: 0;
  color: #ffe2a9;
  font: 600 clamp(1.28rem, 4vw, 2rem) / 1.15 var(--serif, Georgia, serif);
}

.giveaway-rules-heading h2 span {
  display: block;
  margin-bottom: 6px;
  color: #fff6e4;
  font: 700 .74rem / 1.35 var(--sans, Arial, sans-serif);
  letter-spacing: .05em;
}

.giveaway-rules-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #d7b471a6;
  border-radius: 50%;
  background: #ffffff12;
  color: #fff6e4;
  font: 400 1.5rem / 1 var(--sans, Arial, sans-serif);
  cursor: pointer;
}

.giveaway-rules-close:hover {
  background: #ffffff26;
}

.giveaway-rules-body {
  padding: clamp(16px, 4vw, 32px);
  color: #30251b;
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.giveaway-rules-body h3 {
  margin: 1.3em 0 .45em;
  color: #253b2d;
  font: 700 1.3rem / 1.25 var(--serif, Georgia, serif);
}

.giveaway-rules-body p {
  margin: 0 0 .75em;
}

.giveaway-rules-body a {
  color: #70431f;
  text-decoration: underline;
  text-underline-offset: .16em;
}

.giveaway-rules-body > :first-child { margin-top: 0; }
.giveaway-rules-body > :last-child { margin-bottom: 0; }

.giveaway-entry-fields {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 3px 0 0;
  padding: 14px;
  border: 1px solid #dfd2bd;
  border-radius: 12px;
  background: #fffaf0;
}

.giveaway-entry-fields[hidden] {
  display: none;
}

.giveaway-entry-fields legend {
  padding: 0 5px;
  color: #3b3028;
  font-weight: 700;
}

.giveaway-entry-fields label.giveaway-entry-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  margin: 0;
  color: #3b3028;
  line-height: 1.5;
}

.giveaway-entry-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: #356047;
}

.giveaway-entry-check a,
.giveaway-consent-card a {
  color: #315540;
  text-decoration: underline;
  text-underline-offset: .16em;
}

.giveaway-consent-page {
  margin: 0;
  padding: clamp(16px, 5vw, 64px);
  background: #f8f0e3;
  color: #30251b;
  font: 400 1rem / 1.65 Manrope, Arial, sans-serif;
}

.giveaway-consent-card {
  box-sizing: border-box;
  max-width: 46rem;
  margin: auto;
  padding: clamp(18px, 5vw, 40px);
  border: 1px solid #d7b471;
  border-radius: 20px;
  background: #fff9ee;
}

.giveaway-consent-card h1 {
  margin-top: .75em;
  font: 700 clamp(1.65rem, 5vw, 2.6rem) / 1.12 Cormorant, Georgia, serif;
}

.giveaway-consent-card h2 {
  margin-bottom: .25em;
  color: #253b2d;
  font-size: 1.13rem;
}
