.bf-wheel {
   --ink:#391527;
   --berry:#941749;
   --pink:#ff3e86;
   --paper:#fffbfa;
   --font:'Work Sans',Arial,sans-serif;
   color:var(--ink);
   font-family:var(--font);
}
.bf-wheel *, .bf-wheel *::before, .bf-wheel *::after { box-sizing:border-box; }
.bf-wheel [hidden], .bf-wheel__dialog:not([open]) { display:none!important; }
html.bf-wheel-open { overflow:hidden; }
.bf-wheel .bf-wheel__dialog {
   position:fixed; inset:0; margin:0; padding:0; border:0; border-radius:0;
   width:100%; max-width:none; height:100%; height:100dvh; max-height:none;
   background:transparent; color:var(--ink); box-shadow:none; overflow:hidden;
   overscroll-behavior:contain; font:inherit;
}
.bf-wheel__dialog::backdrop { background:rgb(18 12 17 / .76); }
.bf-wheel h2 { color:var(--ink); margin:0; text-wrap:balance; overflow-wrap:break-word; letter-spacing:-.045em; }
.bf-wheel h2:focus { outline:0; }
.bf-wheel button { font-family:var(--font); cursor:pointer; letter-spacing:normal; }
.bf-wheel button:focus-visible, .bf-wheel a:focus-visible, .bf-wheel input:focus-visible { outline:3px solid var(--berry); outline-offset:3px; }
.bf-wheel .bf-wheel__close {
   position:absolute; top:6px; right:6px; z-index:2; width:36px; height:36px; padding:0; display:grid;
   place-items:center; border:0; border-radius:50%; box-shadow:none; background:transparent; color:var(--ink); font:28px/1 Arial,sans-serif;
}
.bf-wheel .bf-wheel__primary {
   background:var(--ink); color:white; border:0; border-radius:5px; padding:11px 18px; min-height:46px;
   text-align:center; font-size:16px; font-weight:700; line-height:1.18; text-transform:none;
}
.bf-wheel .bf-wheel__primary:hover { background:#59152f; }
.bf-wheel__primary:disabled { opacity:.65; cursor:wait; }
.bf-wheel .bf-wheel__link {
   display:block; margin:0 auto; padding:9px; min-height:34px; background:none; color:inherit; border:0;
   text-decoration:underline; text-underline-offset:3px; font-size:13px; font-weight:550; line-height:1.2; text-transform:none;
}
.bf-wheel .bf-wheel__continue { font-style:italic; text-transform:uppercase; }

.bf-wheel__benefit { display:grid; gap:4px; min-width:0; }
.bf-wheel__benefit strong { font-size:clamp(25px,2.7vw,36px); line-height:1.02; letter-spacing:-.045em; font-weight:700; }
.bf-wheel__minimum {
   margin-top:3px; font-size:clamp(15px,3.8vw,17px); font-weight:600; line-height:1.35;
   text-decoration:underline; text-decoration-color:#c7829d; text-underline-offset:3px;
}
.bf-wheel__minimum b { color:var(--berry); font-weight:800; white-space:nowrap; }
.bf-wheel .bf-wheel__code {
   display:grid; gap:4px; place-items:center; flex:none; min-height:45px; padding:0;
   border:0; border-radius:0; background:transparent; color:var(--berry); line-height:1.12; text-transform:none;
}
.bf-wheel__code>small { font:600 9px/1.1 var(--font); letter-spacing:.03em; text-transform:uppercase; }
.bf-wheel__pill { display:flex; align-items:center; gap:9px; border:2px dashed var(--berry); border-radius:5px; padding:10px 16px; background:#fff6f8; color:var(--berry); }
.bf-wheel__pill b { font:700 clamp(17px,4.6vw,21px)/1 var(--font); letter-spacing:.035em; }
.bf-wheel__copy-icon { position:relative; width:13px; height:13px; display:inline-block; }
.bf-wheel__copy-icon::before,.bf-wheel__copy-icon::after {
   content:""; position:absolute; width:7px; height:9px; border:1.3px solid currentColor; border-radius:1.5px;
}
.bf-wheel__copy-icon::before { top:0; left:1px; }.bf-wheel__copy-icon::after { top:3px; left:4px; background:#fff6f8; }
.is-copied .bf-wheel__copy-icon::after { content:"✓"; top:0; left:0; border:0; font:13px/1 sans-serif; }
.is-copied .bf-wheel__copy-icon::before { display:none; }
/* The wheel opens against the left edge. Only its right-hand arc fits on the sheet. */
.bf-wheel__sheet { position:relative; width:min(850px,calc(100% - 56px)); min-height:100%; overflow:visible; background:var(--paper); animation:bf-wheel-from-left .5s ease-out both; }
.bf-wheel__sheet .bf-wheel__close { top:26px; right:-43px; width:29px; height:29px; color:#fff; background:#514650; font-size:25px; }
.bf-wheel__layout { min-height:100vh; min-height:100dvh; max-height:100dvh; overflow-y:auto; overscroll-behavior:contain; display:grid; grid-template-columns:45% minmax(0,1fr); align-items:center; }
.bf-wheel__art { position:relative; align-self:stretch; overflow:hidden; }
.bf-wheel__machine { --pointer-angle:90deg; position:absolute; right:20px; top:50%; transform:translateY(-50%); width:clamp(365px,61vw,505px); aspect-ratio:1; }
.bf-wheel__rim { position:absolute; inset:0; border:clamp(5px,.65vw,9px) solid var(--ink); border-radius:50%; overflow:hidden; transform:rotate(var(--pointer-angle)); background:var(--paper); }
.bf-wheel__disc { position:relative; width:100%; height:100%; border-radius:50%; }
.bf-wheel__sector { position:absolute; inset:0; }
.bf-wheel__medal {
   position:absolute; top:5.4%; left:50%; width:25%; aspect-ratio:1; display:flex; flex-direction:column; justify-content:center; align-items:center;
   transform:translateX(-50%); gap:3px; border:3px solid var(--ink); border-radius:50%; background:#fff7f1; color:var(--ink); padding:5px;
}
.bf-wheel__medal b { max-width:100%; overflow-wrap:anywhere; text-align:center; font:750 clamp(16px,2.15vw,31px)/1 var(--font); letter-spacing:-.065em; }
.bf-wheel__medal .is-long { font-size:clamp(12px,1.55vw,21px); }
.bf-wheel__medal small { max-width:94%; border-top:1px solid currentColor; padding-top:3px; font:650 clamp(9px,.95vw,13px)/1 var(--font); text-align:center; }
.bf-wheel .bf-wheel__hub {
   position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:26%; aspect-ratio:1;
   border:5px solid #fff8f4; border-radius:50%; background:var(--ink); color:#fff;
   padding:5px; font-size:clamp(16px,2.15vw,28px); line-height:1; letter-spacing:-.05em; text-transform:uppercase; font-weight:700;
}
.bf-wheel__pointer {
   position:absolute; right:0; top:50%; transform:translate(45%,-50%) rotate(45deg); width:10.5%; aspect-ratio:1;
   border:4px solid white; border-radius:65% 65% 65% 10%; background:var(--berry); box-shadow:1px 2px 4px #39152750; pointer-events:none;
}
.bf-wheel__disc.is-spinning { transition:transform 3.6s cubic-bezier(.12,.66,.13,1); }
.bf-wheel__panel { position:relative; min-width:0; padding:58px clamp(22px,2.8vw,44px) 50px 14px; text-align:center; }
.bf-wheel__campaign { color:var(--berry); font:italic 900 clamp(18px,2vw,28px)/1 var(--font); letter-spacing:-.06em; text-transform:uppercase; }
.bf-wheel__panel h2 { margin:6px 0 0; font:750 clamp(32px,3.45vw,50px)/.99 var(--font); text-transform:uppercase; }
.bf-wheel__odds { margin:14px 0 4px; color:var(--berry); font:800 clamp(55px,5.7vw,82px)/.95 var(--font); letter-spacing:-.08em; }
.bf-wheel__odds span { font-size:.77em; }
.bf-wheel__promise { display:block; margin:8px auto; max-width:17em; font:700 clamp(19px,2.05vw,29px)/1.02 var(--font); text-transform:uppercase; letter-spacing:-.035em; text-wrap:balance; }
.bf-wheel__form { margin:16px 0 0; }
.bf-wheel__panel p { margin:9px auto 13px; font:500 14px/1.35 var(--font); color:#58404d; text-wrap:pretty; }
.bf-wheel .bf-wheel__form input {
   width:100%; height:44px; padding:9px 13px; border:1.5px solid var(--ink); border-radius:3px; background:#fff;
   color:var(--ink); font:400 16px/1.2 var(--font);
}
.bf-wheel__form .bf-wheel__primary { min-width:min(220px,100%); margin:22px auto 3px; }
.bf-wheel .bf-wheel__error { color:#9d1845; }
.bf-wheel__readout {
   display:flex; align-items:center; justify-content:center; gap:9px; width:max-content;
   margin:0 auto 14px; padding:8px 17px; border-radius:24px; background:var(--ink); color:#fff7fa;
   font:750 clamp(22px,2.4vw,28px)/1 var(--font); font-variant-numeric:tabular-nums;
}
.bf-wheel__clock-icon {
   position:relative; display:inline-block; flex:none; width:1em; height:1em;
   border:2px solid currentColor; border-radius:50%; color:#ff9ec3; font-size:18px;
}
.bf-wheel__clock-icon::after {
   content:""; position:absolute; left:calc(50% - 1px); bottom:calc(50% - 1px);
   width:35%; height:40%; border:solid currentColor; border-width:0 0 2px 2px; border-radius:0 0 0 1px;
}
.bf-wheel__reward { margin:20px auto 22px; }
.bf-wheel__reward .bf-wheel__ticket {
   display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:170px; gap:18px; text-align:center; padding:20px; border:2px solid var(--berry);
   background:radial-gradient(circle at 50% 30%,#fff9f2,#ffedf3); border-radius:8px; color:var(--ink);
}
.bf-wheel__panel .bf-wheel__gift-steps { margin:0; max-width:29ch; font-size:clamp(15px,3.8vw,17px); line-height:1.4; }
.bf-wheel [data-stage="result"]>.bf-wheel__primary { width:100%; }

.bf-wheel .bf-wheel__launcher { display:grid; place-items:center; position:fixed; z-index:998; right:16px; bottom:calc(78px + env(safe-area-inset-bottom,0px)); width:64px; height:64px; padding:5px; border:2px solid var(--ink); border-radius:50%; background:#ffbad5; color:var(--ink); box-shadow:0 3px 14px #3d0f3129; }
.bf-wheel__mini { display:block; width:100%; height:100%; border:1px solid #78415b; border-radius:50%; background:repeating-conic-gradient(from 15deg,#f14a91 0 45deg,#ffeedc 45deg 90deg); }
.bf-wheel__mini::after { content:""; position:absolute; inset:37%; background:var(--ink); border:2px solid white; border-radius:50%; }
.bf-wheel .bf-wheel__launcher.has-time {
   width:70px; height:70px; left:max(12px,env(safe-area-inset-left,0px)); right:auto; padding:5px;
   border:2px solid white; background:conic-gradient(var(--pink) var(--time-ring),#f6c5d6 0);
   box-shadow:0 0 0 1px #39152738,0 3px 14px #39152738;
}
.bf-wheel__launcher.has-time .bf-wheel__mini { display:none; }
.bf-wheel__clock {
   width:100%; height:100%; display:flex; flex-direction:column; gap:3px; align-items:center; justify-content:center;
   color:white; background:var(--ink); border-radius:50%; font:750 17px/1 var(--font); font-variant-numeric:tabular-nums;
}
.bf-wheel__clock .bf-wheel__clock-icon { font-size:13px; border-width:1.5px; }
.bf-wheel__sr,.bf-wheel__clipboard { position:absolute; top:0; left:0; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); }
@keyframes bf-wheel-from-left { from { transform:translateX(-300vw); } to { transform:translateX(0); } }
@keyframes bf-wheel-from-bottom { from { transform:translateY(150%); } to { transform:translateY(0); } }

@media(max-width:700px) {
   .bf-wheel__sheet { width:100%; background:transparent; animation-name:bf-wheel-from-bottom; }
   .bf-wheel__sheet .bf-wheel__close { top:max(10px,env(safe-area-inset-top)); right:10px; color:#74656e; background:transparent; width:40px; height:40px; }
   .bf-wheel__layout { display:flex; flex-direction:column; align-items:stretch; height:auto; }
   .bf-wheel__panel {
      order:-1; display:flex; flex-direction:column; justify-content:center; min-height:clamp(350px,56dvh,480px);
      padding:max(28px,env(safe-area-inset-top)) max(24px,calc((100vw - 395px)/2)) 17px; background:var(--paper);
   }
   .bf-wheel__campaign { font-size:21px; }.bf-wheel__panel h2 { margin:5px 6px 0; font-size:clamp(28px,8.1vw,40px); }
   .bf-wheel__odds { margin:10px 0 3px; font-size:clamp(47px,13vw,64px); }.bf-wheel__promise { font-size:clamp(18px,5.1vw,24px); }
   .bf-wheel__form { margin:12px 0 0; }.bf-wheel__form .bf-wheel__primary { margin-top:17px; min-width:min(190px,100%); }
   .bf-wheel__art { flex:1 0 180px; min-height:180px; }
   .bf-wheel__machine { --pointer-angle:0deg; left:50%; right:auto; top:30px; width:min(97vw,430px); transform:translateX(-50%); }
   .bf-wheel__pointer { right:auto; top:0; left:50%; transform:translate(-50%,-50%) rotate(-45deg); }
   .bf-wheel__medal { border-width:2px; }.bf-wheel__medal b { font-size:clamp(17px,5vw,23px); }.bf-wheel__medal .is-long { font-size:clamp(12px,3.5vw,16px); }
   .bf-wheel__medal small { font-size:clamp(9px,2.5vw,12px); }.bf-wheel .bf-wheel__hub { font-size:clamp(16px,4.7vw,24px); }
   .bf-wheel__reward .bf-wheel__ticket { min-height:138px; gap:12px; }.bf-wheel__reward { margin:15px 0; }
}
@media(max-height:540px) { .bf-wheel__panel { padding-block:22px; } }
@media(prefers-reduced-motion:reduce) {
   .bf-wheel__sheet { animation:none; }.bf-wheel__disc.is-spinning { transition:none; }
}
