/* Spin-the-wheel campaigns (Black Friday 2026): home banner (#bfHome) and /black-friday (#bfPage). ui/wheel.js */
:root {
  --bf-night: #0b0a0c;
  --bf-night-2: #17151a;
  --bf-gold: #ffcc33;
  --bf-gold-2: #ff9f1c;
  --bf-ink: #fffaf0;
  --bf-ink-2: rgba(255, 246, 225, .72);
  --bf-line: rgba(255, 204, 51, .22);
  --bf-grad: linear-gradient(100deg, #ffe066 0%, #ffcc33 45%, #ff9f1c 100%);
}
.bf-grad-text { background: var(--bf-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bf-tag { display: inline-flex; align-items: center; gap: 8px; width: max-content; font-size: 12.5px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 204, 51, .12); border: 1px solid var(--bf-line); color: var(--bf-ink); }
.bf-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bf-gold); animation: bfPing 1.8s infinite; }
.bf-tag.off .dot { animation: none; background: #8b8b8b; }
@keyframes bfPing { 0% { box-shadow: 0 0 0 0 rgba(255, 204, 51, .6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(255, 204, 51, 0); } }
.bf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--bf-grad); color: #1a1200; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; box-shadow: 0 14px 34px -14px rgba(255, 170, 30, .8); transition: transform .15s, filter .15s; text-decoration: none; }
.bf-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.bf-btn:disabled { opacity: .55; cursor: default; transform: none; }
.bf-btn.ghost { background: transparent; color: var(--bf-ink); border: 1px solid var(--bf-line); box-shadow: none; }

/* ---------- home banner ---------- */
.bf-banner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 10px; overflow: hidden; border-radius: calc(var(--radius) + 6px); background: var(--bf-night); color: var(--bf-ink); border: 1px solid var(--bf-line); box-shadow: 0 30px 80px -40px rgba(255, 170, 30, .5), var(--shadow); isolation: isolate; text-decoration: none; transition: transform .25s; }
.bf-banner:hover { transform: translateY(-2px); }
.bf-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 120% at 0% 0%, rgba(255, 204, 51, .18), transparent 60%), radial-gradient(60% 90% at 100% 100%, rgba(255, 120, 30, .16), transparent 60%); }
.bf-in { padding: clamp(22px, 3.4vw, 38px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bf-in h3 { margin: 0; font-size: clamp(26px, 3.8vw, 40px); line-height: 1.2; }
.bf-in h3 .en { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.bf-in p { margin: 0; color: var(--bf-ink-2); font-size: 15px; }
.bf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-chip { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.bf-chip b { color: var(--bf-gold); }
.bf-art { position: relative; padding: 24px; display: grid; place-items: center; }
.bf-art .bf-wheel { width: min(300px, 100%); }
.bf-art .bf-wheel svg:not(.bf-pointer) { animation: bfIdle 40s linear infinite; }
@keyframes bfIdle { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .bf-banner { grid-template-columns: 1fr; }
  .bf-art { padding: 0 24px 24px; order: -1; padding-top: 24px; }
  .bf-art .bf-wheel { width: 220px; }
}
@media (prefers-reduced-motion: reduce) { .bf-art .bf-wheel svg:not(.bf-pointer) { animation: none; } }

/* ---------- the wheel ---------- */
.bf-wheel { position: relative; aspect-ratio: 1; width: min(440px, 88vw); margin-inline: auto; }
.bf-wheel svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .55)); }
.bf-wheel svg.bf-pointer { width: 9%; height: auto; }
.bf-wheel .bf-rot { transform-origin: 200px 200px; transform-box: view-box; }
.bf-wheel .bf-rot.spinning { transition: transform 6.2s cubic-bezier(.12, .7, .08, 1); }
.bf-pointer { position: absolute; top: -3%; left: 50%; transform: translateX(-50%); width: 34px; height: 44px; z-index: 2; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.bf-wheel.won .bf-pointer { animation: bfTick .35s ease 3; }
@keyframes bfTick { 50% { transform: translateX(-50%) rotate(-12deg); } }

/* ---------- /black-friday ---------- */
.bf-page { background: var(--bf-night); color: var(--bf-ink); min-height: 70vh; }
.bf-hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 6vw, 80px); isolation: isolate; }
.bf-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 0%, rgba(255, 204, 51, .16), transparent 70%), radial-gradient(50% 60% at 100% 100%, rgba(255, 110, 30, .12), transparent 70%); }
.bf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.bf-copy { display: flex; flex-direction: column; gap: 16px; }
.bf-copy h1 { margin: 0; font-size: clamp(32px, 5vw, 54px); line-height: 1.15; }
.bf-copy h1 .en { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; }
.bf-copy .lede { margin: 0; color: var(--bf-ink-2); font-size: 16px; line-height: 1.9; }
.bf-copy .back { color: var(--bf-ink-2); font-size: 13px; text-decoration: none; }
.bf-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.bf-box { width: 100%; max-width: 520px; padding: 18px 20px; border-radius: 18px; background: var(--bf-night-2); border: 1px solid var(--bf-line); line-height: 1.9; font-size: 14px; color: var(--bf-ink-2); }
.bf-box h3 { margin: 0 0 6px; color: var(--bf-ink); font-size: 17px; }
.bf-box .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.bf-need { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.bf-need li { display: flex; align-items: center; gap: 10px; }
.bf-need .ok { color: #8be28b; }
.bf-need .no { color: #ff8a8a; }
.bf-prize { text-align: center; }
.bf-prize .big { font-size: clamp(30px, 6vw, 44px); font-weight: 900; margin: 4px 0 8px; }
.bf-code { display: inline-flex; align-items: center; gap: 10px; margin: 6px auto; padding: 10px 16px; border-radius: 14px; background: rgba(255, 204, 51, .1); border: 1px dashed var(--bf-gold); font-family: var(--mono); font-size: 20px; letter-spacing: .06em; direction: ltr; color: var(--bf-ink); }
.bf-code button { border: 0; background: var(--bf-gold); color: #1a1200; font: inherit; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; cursor: pointer; letter-spacing: 0; }
.bf-rules { padding: 0 0 clamp(36px, 6vw, 72px); }
.bf-rules ol { margin: 0; padding-inline-start: 20px; color: var(--bf-ink-2); line-height: 2.1; font-size: 14.5px; }
.bf-odds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.bf-odds div { padding: 10px 14px; border-radius: 14px; background: var(--bf-night-2); border: 1px solid rgba(255, 255, 255, .07); font-size: 13.5px; }
.bf-odds b { display: block; color: var(--bf-gold); font-size: 18px; }
@media (max-width: 860px) { .bf-grid { grid-template-columns: 1fr; } .bf-stage { order: -1; } }
