.referral-offer-link { display:inline; border:0; padding:0; background:none; color:#ddd; font:inherit; text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.referral-success > .referral-offer-link { display:inline-block; margin-top:16px; min-height:44px; font-size:14px; }
html:has(.referral-offer-overlay[open]) { overflow:hidden; }
.referral-offer-overlay { position:fixed; inset:0; width:100%; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; border-radius:0; background:#000; color:#fff; color-scheme:dark; overflow:hidden; overscroll-behavior:contain; font-family:Adventure,Arial,sans-serif; }
.referral-offer-overlay:not([open]) { display:none; }
.referral-offer-overlay[open] { display:flex; flex-direction:column; animation:referral-offer-enter .22s ease-out; }
.referral-offer-overlay::backdrop { background:#000; }
.referral-offer-bar { flex:none; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:calc(16px + env(safe-area-inset-top)) clamp(20px,5vw,72px) 16px; border-bottom:1px solid #292929; }
.referral-offer-bar h2 { margin:0; font-size:clamp(18px,2vw,24px); line-height:1.3; font-weight:500; letter-spacing:-.02em; }
.referral-offer-close { display:grid; place-items:center; flex:none; width:44px; height:44px; padding:10px; border:0; background:none; color:#fff; cursor:pointer; }
.referral-offer-close svg { width:24px; height:24px; }
.referral-offer-scroll { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#777 #000; }
.referral-offer-copy { width:min(720px,calc(100% - 40px)); margin:0 auto; padding:clamp(32px,6vh,64px) 0 16px; }
.referral-offer-copy h3 { margin:0 0 24px; font-size:clamp(40px,7vw,72px); line-height:1.05; letter-spacing:-.035em; font-weight:600; }
.referral-offer-copy h3 span { display:block; }
.referral-offer-copy p,.referral-offer-copy li { margin:0; font-size:16px; line-height:1.6; color:#c4c4c4; }
.referral-offer-copy .referral-offer-intro { font-size:clamp(18px,2vw,21px); color:#fff; }
.referral-offer-copy section { margin-top:28px; }
.referral-offer-copy h4 { margin:0 0 10px; font-size:21px; line-height:1.3; font-weight:600; }
.referral-offer-copy ul { margin:0; padding-left:20px; }
.referral-offer-copy li + li { margin-top:8px; }
.referral-offer-policy { display:inline-block; margin-top:10px; min-height:44px; padding-block:10px; color:#fff; font-size:16px; text-underline-offset:4px; }
.referral-offer-art { display:block; width:100%; height:auto; margin-top:24px; }
.referral-offer-savebar { flex:none; padding:16px 20px calc(16px + env(safe-area-inset-bottom)); border-top:1px solid #292929; background:#000; }
.referral-offer-saveactions { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px 24px; }
.referral-offer-save { min-height:48px; padding:13px 28px; border:0; border-radius:999px; background:#fff; color:#111; font:inherit; font-size:16px; font-weight:600; cursor:pointer; }
.referral-offer-save:disabled { opacity:.6; cursor:wait; }
.referral-offer-download { display:inline-flex; align-items:center; min-height:44px; color:#fff; font-size:15px; text-underline-offset:4px; }
.referral-offer-download[hidden] { display:none; }
.referral-offer-savehint { max-width:720px; margin:10px auto 0; text-align:center; font-size:14px; line-height:1.5; color:#bbb; }
.referral-offer-savehint:empty { display:none; }
.referral-offer-overlay :is(a,button):focus-visible { outline:2px solid #fff; outline-offset:4px; }
@keyframes referral-offer-enter { from { opacity:.7; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@media(prefers-reduced-motion:reduce) { .referral-offer-overlay[open] { animation:none; } }
