.rbk-gw,
.rbk-gw * { box-sizing: border-box; }

.rbk-gw {
  --rbk-paper: #fff3f2;
  --rbk-peach: #fae7e6;
  --rbk-line: #efd0d0;
  --rbk-rose: #0b2761;
  --rbk-rose-dark: #081e4b;
  --rbk-sage: #0b2761;
  --rbk-gold: #dd7e7e;
  --rbk-ink: #4b464c;
  width: min(100%, 760px);
  container-type: inline-size;
  margin: 28px auto;
  overflow: hidden;
  color: var(--rbk-ink);
  border: 1px solid #dd7e7e;
  border-radius: 20px;
  background: var(--rbk-paper);
  box-shadow: 0 18px 42px rgba(11, 39, 97, .12);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.45;
}

.rbk-gw [hidden] { display: none !important; }

.rbk-gw__banner {
  margin: 0;
  background: #fff3f2;
}

.rbk-gw__banner img { display: block; width: 100%; height: auto; margin: 0; }
.rbk-gw__screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.rbk-gw__deadline {
  padding: 16px 24px;
  color: #0b2761;
  border-top: 1px solid var(--rbk-line);
  border-bottom: 1px solid var(--rbk-line);
  background: #fae7e6;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.rbk-gw__total {
  padding: 18px 20px;
  color: #4b464c;
  border-bottom: 1px solid var(--rbk-line);
  background: #fff3f2;
  font-size: 18px;
  text-align: center;
}

.rbk-gw__total strong {
  margin-right: 5px;
  color: #0b2761;
  font-size: 28px;
  line-height: 1;
}

.rbk-gw__body { padding: 20px 12px 24px; background: #ffffff; }

.rbk-gw__intro {
  padding: 0 7px 18px;
  color: #4b464c;
  font-size: 18px;
  line-height: 1.45;
  text-align: center;
}

.rbk-gw__intro p { margin: 0; }

.rbk-gw__identity {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--rbk-line);
  border-radius: 18px;
  background: #fff3f2;
}

.rbk-gw label {
  display: block;
  color: #0b2761;
  font-size: 15px;
  font-weight: 400;
}

.rbk-gw input,
.rbk-gw select {
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  padding: 11px 13px;
  color: #4b464c;
  border: 1px solid #e4bcbc;
  border-radius: 11px;
  outline: none;
  background: #ffffff;
  font: 16px/1.3 Arial, sans-serif;
}

.rbk-gw input:focus,
.rbk-gw select:focus { border-color: var(--rbk-rose); box-shadow: 0 0 0 3px rgba(11, 39, 97, .12); }

.rbk-gw__rules {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px !important;
  line-height: 1.4;
}

.rbk-gw__rules input { flex: 0 0 auto; width: 17px; min-height: 17px; margin: 1px 0 0; }

.rbk-gw__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.rbk-gw button,
.rbk-gw a.rbk-gw-card__visit {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font: 700 13px/1.2 Arial, sans-serif;
  text-align: center;
  text-decoration: none !important;
  transition: filter .15s ease, transform .15s ease;
}

.rbk-gw button:hover,
.rbk-gw a.rbk-gw-card__visit:hover { filter: brightness(.97); transform: translateY(-1px); }
.rbk-gw button:focus-visible,
.rbk-gw a:focus-visible { outline: 3px solid rgba(11, 39, 97, .25); outline-offset: 2px; }
.rbk-gw button:disabled,
.rbk-gw .is-disabled { cursor: not-allowed; opacity: .58; transform: none !important; }

.rbk-gw__start {
  width: 100%;
  min-height: 49px !important;
  color: #fff;
  border-radius: 11px !important;
  background: var(--rbk-rose);
  font-size: 15px !important;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.rbk-gw__notice { min-height: 1px; text-align: center; font: 700 12px/1.4 Arial, sans-serif; }
.rbk-gw__notice.is-error,
.rbk-gw-card__message.is-error { color: #a33939; }
.rbk-gw__notice.is-success,
.rbk-gw-card__message.is-success { color: #55704f; }

.rbk-gw__account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding: 13px 14px;
  color: #0b2761;
  border: 1px solid var(--rbk-line);
  border-radius: 13px;
  background: #fff3f2;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.rbk-gw__account > div { display: flex; align-items: center; gap: 7px; }
.rbk-gw__account p { margin: 0; white-space: nowrap; }
.rbk-gw__points { color: var(--rbk-rose-dark); font-size: 20px; }
.rbk-gw__switch {
  min-height: auto !important;
  padding: 3px 7px !important;
  color: var(--rbk-rose-dark);
  border-color: #e4bcbc !important;
  border-radius: 999px !important;
  background: transparent;
  font-size: 10px !important;
}

.rbk-gw__entries { display: grid; gap: 12px; }

.rbk-gw-card {
  padding: 15px;
  border: 1px solid var(--rbk-line);
  border-radius: 15px;
  background: #fff3f2;
}

.rbk-gw-card.is-complete { border-color: #bac8de; background: #f2f6fb; }

.rbk-gw-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rbk-gw-card h3 { margin: 0 0 4px; color: var(--rbk-rose-dark); font-size: 17px; line-height: 1.25; }
.rbk-gw-card p { margin: 0; color: #4b464c; font-size: 12px; line-height: 1.45; }

.rbk-gw-card__points {
  flex: 0 0 auto;
  min-width: 48px;
  padding: 7px 8px;
  color: #fff;
  border-radius: 999px;
  background: var(--rbk-rose);
  font: 700 14px/1 Arial, sans-serif;
  text-align: center;
}

.rbk-gw-card.is-complete .rbk-gw-card__points { background: #0b2761; }

.rbk-gw-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.rbk-gw-card__actions > :only-child { grid-column: 1 / -1; }
.rbk-gw-card__visit { color: #fff !important; background: var(--rbk-rose); }
.rbk-gw-card__open { color: var(--rbk-rose-dark); border-color: #e4bcbc !important; background: #ffffff; }

.rbk-gw-card__proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #efd0d0;
  border-radius: 12px;
  background: #ffffff;
}

.rbk-gw-card__proof input,
.rbk-gw-card__proof select { min-height: 44px; }
.rbk-gw-card__claim { width: 100%; color: #fff; background: var(--rbk-sage); }
.rbk-gw-card__message { margin-top: 8px; min-height: 1px; font: 700 12px/1.4 Arial, sans-serif; }

.rbk-gw__closed {
  padding: 22px 16px;
  color: var(--rbk-rose-dark);
  border: 1px solid var(--rbk-line);
  border-radius: 15px;
  background: #fff3f2;
  text-align: center;
  font-size: 18px;
}

.rbk-gw__winner {
  margin-top: 14px;
  padding: 24px 16px;
  border: 1px solid var(--rbk-line);
  border-radius: 15px;
  background: #fff3f2;
  text-align: center;
}

.rbk-gw__winner-label {
  color: var(--rbk-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.rbk-gw__winner-name {
  display: block;
  margin-top: 10px;
  color: var(--rbk-rose-dark);
  font-size: clamp(32px, 10vw, 46px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.rbk-gw__brand {
  border-top: 1px solid var(--rbk-line);
  background: #fff3f2;
}

@media (max-width: 480px) {
  .rbk-gw { margin: 16px auto; border-radius: 16px; }
  .rbk-gw__deadline { padding: 14px 16px; font-size: 15px; }
  .rbk-gw__total { padding: 16px; }
  .rbk-gw__body { padding: 18px 10px 20px; }
  .rbk-gw__intro { font-size: 16px; }
  .rbk-gw__identity { padding: 15px; }
  .rbk-gw__account { align-items: flex-start; flex-direction: column; }
  .rbk-gw-card__actions { grid-template-columns: 1fr; }
  .rbk-gw-card__actions > * { grid-column: 1; }
}

.rbk-gw__banner { padding: 0; text-align: center; background: #fff3f2; }
.rbk-gw__brand { padding: 0; text-align: center; background: #fff3f2; }
.rbk-gw__brand-link { display: block; width: 100%; color: #0b2761; text-decoration: none; }
.rbk-gw__brand img { display: block; width: 100%; height: auto; aspect-ratio: 6.3; object-fit: cover; object-position: center; margin: 0; }
.rbk-gw-card__frequency { display: inline-block; margin: 2px 0 7px; padding: 3px 7px; border-radius: 5px; background: #fae7e6; color: #0b2761; font: 700 11px/1.3 Arial, sans-serif; }
.rbk-gw-card.is-unconfigured { opacity: .7; }
.rbk-gw-card__proof small { color: #4b464c; font: 12px/1.4 Arial, sans-serif; }
.rbk-gw-card__top > div { min-width: 0; }
.rbk-gw-card p, .rbk-gw__account { overflow-wrap: anywhere; }

@container (min-width: 600px) {
  .rbk-gw__identity { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 18px; }
  .rbk-gw__rules, .rbk-gw__start, .rbk-gw__notice { grid-column: 1 / -1; }
  .rbk-gw__entries { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .rbk-gw__body { padding: 20px; }
  .rbk-gw__intro { font-size: 16px; }
}
