:root {
  --bg-red: #ef3036;
  --bg-ink: #111319;
  --bg-muted: #6f7480;
  --bg-line: #e3e4e6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--bg-ink);
  background: transparent;
}

* { box-sizing: border-box; }
body { margin: 0; background: transparent; }
button, input { font: inherit; }
[hidden] { display: none !important; }

.bg-widget {
  width: 100%;
  max-width: 360px;
  border: 1px solid var(--bg-line);
  border-top: 4px solid var(--bg-red);
  background: #fff;
}

.bg-head {
  padding: 13px 14px 10px;
  border-bottom: 1px solid #ececef;
  background: #fafafa;
}

.bg-head strong { display: block; font-size: 18px; line-height: 1.2; font-weight: 950; }
.bg-head p { margin: 5px 0 0; color: var(--bg-muted); font-size: 12px; line-height: 1.45; font-weight: 700; }

.bg-body { padding: 6px 12px 12px; }
.bg-loading, .bg-error, .bg-success {
  padding: 13px;
  color: var(--bg-muted);
  background: #f7f7f7;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 750;
}
.bg-error, .bg-modal-error { color: #b72128; background: #fff0f1; }
.bg-success { color: #0f7a55; background: #edf9f3; }

.bg-survey .sd-root-modern {
  background: transparent;
  font-family: inherit;
}

.bg-survey .sd-container-modern,
.bg-survey .sd-body,
.bg-survey .sd-page {
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.bg-survey .sd-question {
  padding: 9px 0;
  border-bottom: 1px solid #eeeeef;
}

.bg-survey .sd-question__header { padding: 0 0 7px; }
.bg-survey .sd-title { color: #151820; font-size: 14px; line-height: 1.35; font-weight: 900; }
.bg-survey .sd-description { margin-top: 2px; color: #858b95; font-size: 12px; font-weight: 700; }

.bg-survey .sd-selectbase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.bg-survey .sd-item {
  margin: 0;
  border: 1px solid #d9dce1;
  background: #fff;
}

.bg-survey .sd-item__decorator {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.bg-survey .sd-item__control-label {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: #20242c;
  font-size: 13px;
  font-weight: 900;
}

.bg-survey .sd-item--checked {
  border-color: var(--bg-red);
  background: var(--bg-red);
}

.bg-survey .sd-item--checked .sd-item__control-label { color: #fff; }
.bg-survey .sd-question__erbox { margin: 7px 0 0; padding: 6px 8px; font-size: 12px; }
.bg-survey .sd-action-bar { display: none; }

.bg-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eeeeef;
}

.bg-match-title {
  color: #151820;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bg-kickoff {
  margin-right: 10px;
  color: #858b95;
  font-size: 11px;
  font-weight: 750;
}

.bg-teams {
  color: #151820;
  font-weight: 900;
}

.bg-match-meta {
  display: none;
  color: #858b95;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 850;
  white-space: nowrap;
}

.bg-pick-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.bg-pick {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9dce1;
  background: #fff;
  color: #20242c;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.bg-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bg-pick span {
  line-height: 1;
}

.bg-pick:has(input:checked) {
  border-color: var(--bg-red);
  background: var(--bg-red);
  color: #fff;
}

.bg-match-error {
  display: none;
  grid-column: 1 / -1;
  margin-top: 6px;
  color: #b72128;
  font-size: 12px;
  font-weight: 800;
}

.bg-match.has-error .bg-match-error { display: block; }

.bg-submit {
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  border: 0;
  background: var(--bg-red);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 950;
}

.bg-submit:disabled { opacity: .62; cursor: wait; }
.bg-note { margin: 8px 0 0; color: #858b95; font-size: 12px; line-height: 1.45; font-weight: 700; }

.bg-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.bg-modal-backdrop { position: absolute; inset: 0; background: rgba(12, 14, 18, .52); }
.bg-dialog {
  position: relative;
  z-index: 1;
  width: min(330px, 100%);
  padding: 20px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.24);
}

.bg-dialog h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.bg-dialog-intro { margin: 8px 0 14px; color: var(--bg-muted); font-size: 13px; line-height: 1.55; font-weight: 700; }
.bg-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.bg-close::before,
.bg-close::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 14px;
  width: 2px;
  height: 16px;
  background: #aeb4bd;
}
.bg-close::before { transform: rotate(45deg); }
.bg-close::after { transform: rotate(-45deg); }

.bg-pick-summary {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  padding: 10px;
  background: #f7f7f7;
}

.bg-pick-summary div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #252a33;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.bg-pick-summary span:last-child { color: var(--bg-red); white-space: nowrap; }
.bg-field { display: grid; gap: 6px; margin-top: 10px; color: #252a33; font-size: 13px; font-weight: 900; }
.bg-field input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d8dbe0;
  padding: 0 10px;
  outline: none;
}
.bg-field input:focus { border-color: var(--bg-red); box-shadow: 0 0 0 3px rgba(239,48,54,.11); }
.bg-modal-error { margin-top: 10px; padding: 9px 10px; font-size: 13px; line-height: 1.5; font-weight: 750; }
.bg-confirm { margin-top: 12px; }

.bg-already {
  padding: 20px 14px 22px;
  text-align: center;
}

.bg-already-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #edf9f3;
  color: #0f7a55;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-already strong {
  display: block;
  font-size: 17px;
  font-weight: 950;
  color: #111319;
  margin-bottom: 8px;
}

.bg-already p {
  margin: 0;
  color: #6f7480;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 700;
}

