/* EBD Update 22: optional welcome-offer dialog; inherits the existing theme. */
html.ebd-wheel-is-open { overflow: hidden; }
.ebd-wheel-dialog {
  --ew-ten: var(--ebd-soft-accent);
  --ew-ten-ink: var(--ebd-ink);
  --ew-twentyfive: var(--ebd-accent);
  --ew-twentyfive-ink: #fff;
  --ew-fifty: #dac5a8;
  --ew-fifty-ink: #403326;
  --ew-seventyfive: #89715a;
  --ew-seventyfive-ink: #fff;
  --ew-hundred: var(--ebd-ink);
  --ew-hundred-ink: var(--ebd-paper);
  --ew-zero: var(--ebd-line);
  --ew-zero-ink: var(--ebd-ink);
  width: calc(100% - 32px);
  max-width: 760px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  margin: auto;
  color: var(--ebd-ink);
  background: var(--ebd-paper);
  border: 1px solid var(--ebd-line);
  border-radius: 8px;
  box-shadow: 0 20px 70px #0003;
  font-family: var(--ebd-body);
  font-size: 14px;
  line-height: 1.6;
  overflow: auto;
  overscroll-behavior: contain;
}
.ebd-wheel-dialog:not([open]) { display: none; }
.ebd-wheel-dialog[open] { display: block; }
.ebd-wheel-dialog::backdrop { background: #081018a6; }
.ebd-wheel-dialog *, .ebd-wheel-dialog *::before, .ebd-wheel-dialog *::after { box-sizing: border-box; }
.ebd-wheel-dialog [hidden] { display: none !important; }
.ebd-wheel-dialog button, .ebd-wheel-dialog select { font: inherit; }
.ebd-wheel-dialog button { cursor: pointer; }
.ebd-wheel-dialog button:disabled, .ebd-wheel-dialog select:disabled { cursor: default; opacity: .6; }
.ebd-wheel-dialog :focus-visible { outline: 3px solid var(--ebd-accent-ink); outline-offset: 3px; }
.ebd-wheel-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 17px 23px; border-bottom: 1px solid var(--ebd-line); background: var(--ebd-paper); position: sticky; top: 0; z-index: 2; }
.ebd-wheel-brand { display: flex; align-items: center; gap: 11px; }
.ebd-wheel-wordmark { font-size: 30px; font-weight: 850; line-height: 1; letter-spacing: -2.6px; }
.ebd-wheel-wordmark > span { color: var(--ebd-accent-ink); }
.ebd-wheel-brand-name { border-left: 1px solid var(--ebd-line); padding-left: 11px; font-size: 10px; line-height: 1.35; letter-spacing: .035em; text-transform: uppercase; font-weight: 650; }
.ebd-wheel-dialog .ebd-wheel-close { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--ebd-line); border-radius: 5px; background: transparent; color: var(--ebd-ink); font-size: 26px; line-height: 1; flex-shrink: 0; }
.ebd-wheel-close:hover { background: var(--ebd-surface); }
.ebd-wheel-content { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "wheel intro" "wheel controls"; column-gap: 28px; row-gap: 23px; padding: 28px 25px 26px; align-items: start; }
.ebd-wheel-intro { grid-area: intro; min-width: 0; padding-top: 6px; }
.ebd-wheel-eyebrow { margin: 0 0 12px; color: var(--ebd-accent-ink); font-size: 10px; line-height: 1.5; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.ebd-wheel-dialog h2 { margin: 0 0 13px; font-family: var(--ebd-heading); font-size: 28px; line-height: 1.16; font-weight: 750; letter-spacing: -.035em; color: var(--ebd-ink); }
.ebd-wheel-intro > p:last-child { margin: 0; font-size: 14px; color: var(--ebd-muted); }
.ebd-wheel-visual { grid-area: wheel; min-width: 0; }
.ebd-wheel-frame { width: 100%; max-width: 350px; position: relative; margin: 0 auto; }
.ebd-wheel-svg { display: block; width: 100%; height: auto; aspect-ratio: 1; overflow: visible; }
.ebd-wheel-rotor { transform-origin: 180px 180px; transform-box: view-box; }
.ebd-wheel-pointer { position: absolute; top: 2%; left: 50%; width: 24px; height: 31px; transform: translateX(-50%); background: var(--ebd-accent); clip-path: polygon(0 0, 100% 0, 50% 100%); z-index: 1; }
.ebd-wheel-chance { text-align: center; margin: 9px 0 18px; color: var(--ebd-muted); font-size: 12px; }
.ebd-wheel-chance strong { font-weight: 700; color: var(--ebd-ink); }
.ebd-wheel-odds-heading { margin: 0 0 9px; color: var(--ebd-muted); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 650; }
.ebd-wheel-dialog .ebd-wheel-odds { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px 7px; margin: 0; padding: 0; }
.ebd-wheel-odds li { margin: 0; padding: 0; min-width: 0; }
.ebd-wheel-odds li > span { display: flex; align-items: center; gap: 5px; color: var(--ebd-ink); font-size: 12px; font-weight: 650; }
.ebd-wheel-odds small { display: block; margin-left: 13px; color: var(--ebd-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.ebd-wheel-swatch { display: inline-block; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; }
.ebd-wheel-ten { background: var(--ew-ten); }
.ebd-wheel-twentyfive { background: var(--ew-twentyfive); }
.ebd-wheel-fifty { background: var(--ew-fifty); }
.ebd-wheel-seventyfive { background: var(--ew-seventyfive); }
.ebd-wheel-hundred { background: var(--ew-hundred); }
.ebd-wheel-zero { background: var(--ew-zero); }
.ebd-wheel-controls { grid-area: controls; min-width: 0; }
.ebd-wheel-label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 650; }
.ebd-wheel-dialog select { width: 100%; max-width: 100%; min-height: 45px; padding: 9px 10px; appearance: auto; border: 1px solid var(--ebd-line); border-radius: 5px; background: var(--ebd-paper); color: var(--ebd-ink); font-size: 14px; }
.ebd-wheel-note { color: var(--ebd-muted); font-size: 12px; margin: 12px 0 19px; }
.ebd-wheel-result { margin: 18px 0; padding: 16px; border-radius: 5px; background: var(--ebd-surface); }
.ebd-wheel-result-label { margin: 0 0 9px; color: var(--ebd-accent-ink); font-size: 12px; font-weight: 700; }
.ebd-wheel-price-caption { color: var(--ebd-muted); font-size: 12px; }
.ebd-wheel-price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ebd-wheel-price-line strong { color: var(--ebd-ink); font-size: 30px; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; }
.ebd-wheel-price-line s { color: var(--ebd-muted); font-size: 14px; }
.ebd-wheel-renewal { margin: 6px 0 0; color: var(--ebd-muted); font-size: 12px; }
.ebd-wheel-dialog .ebd-wheel-button { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 46px; width: 100%; border: 1px solid var(--ebd-accent); border-radius: 5px; padding: 12px 15px; background: var(--ebd-accent); color: #fff; font-size: 13px; line-height: 1.4; font-weight: 650; }
.ebd-wheel-button:hover:not(:disabled) { filter: brightness(1.08); }
.ebd-wheel-dialog .ebd-wheel-skip { display: block; min-height: 44px; margin-top: 7px; width: 100%; padding: 10px 6px; border: 0; border-radius: 5px; background: transparent; color: var(--ebd-muted); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.ebd-wheel-skip:hover { color: var(--ebd-ink); background: var(--ebd-surface); }
.ebd-wheel-remember { margin: 9px 0 0; color: var(--ebd-muted); font-size: 11px; text-align: center; }
.ebd-wheel-error { border-left: 3px solid var(--ebd-accent); background: var(--ebd-soft-accent); color: var(--ebd-ink); padding: 11px; margin: 15px 0; font-size: 12px; }
.ebd-wheel-footer { padding: 14px 22px; border-top: 1px solid var(--ebd-line); background: var(--ebd-surface); color: var(--ebd-muted); font-size: 11px; text-align: center; }
.ebd-wheel-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (max-width: 600px) {
  .ebd-wheel-header { padding: 13px 17px; }
  .ebd-wheel-content { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "wheel" "chance" "controls" "odds-heading" "odds"; padding: 16px 19px 22px; row-gap: 12px; }
  .ebd-wheel-intro { padding-top: 0; text-align: center; }
  .ebd-wheel-intro .ebd-wheel-eyebrow { display: none; }
  .ebd-wheel-dialog h2 { font-size: 27px; }
  .ebd-wheel-visual { display: contents; }
  .ebd-wheel-frame { grid-area: wheel; max-width: 220px; }
  .ebd-wheel-controls { width: 100%; max-width: 390px; margin: 0 auto; }
  .ebd-wheel-dialog select { font-size: 16px; }
  .ebd-wheel-chance { grid-area: chance; margin: 0 0 2px; }
  .ebd-wheel-odds-heading { grid-area: odds-heading; margin: 2px 0 0; }
  .ebd-wheel-dialog .ebd-wheel-odds { grid-area: odds; }
  .ebd-wheel-note { margin: 9px 0 13px; }
  .ebd-wheel-footer { padding: 13px 17px; }
}
@media (max-width: 350px) {
  .ebd-wheel-dialog { width: calc(100% - 16px); }
  .ebd-wheel-content { padding: 19px 14px; }
  .ebd-wheel-dialog .ebd-wheel-odds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .ebd-wheel-rotor { transition: none !important; }
}
