/* Clan Forge authentication overlay — intrinsically sized, responsive, borderless. */
.cf-auth-dialog{
 box-sizing:border-box!important;position:relative;margin:auto!important;padding:0!important;
 width:calc(100% - 32px)!important;max-width:480px!important;
 height:auto!important;min-height:0!important;max-height:calc(100dvh - 24px)!important;
 border:0!important;border-radius:2px!important;
 background:linear-gradient(145deg,#2b1d1a,#15110f 80%)!important;
 box-shadow:0 18px 70px rgba(0,0,0,.8)!important;
 overflow:hidden!important;color:#eddbbb;
}
.cf-auth-dialog::backdrop{background:rgba(7,5,5,.77);backdrop-filter:blur(5px)}
.cf-auth-modal-top{position:absolute;right:16px;top:14px;z-index:10;display:block!important;padding:0!important;border:0!important;background:none!important}
.cf-auth-modal-mark,.cf-auth-modal-top strong{display:none!important}
.cf-auth-modal-close{display:grid;place-items:center;min-width:36px;min-height:36px;border:0;background:transparent;color:#e4c18a;cursor:pointer;font-size:24px;line-height:1;outline-offset:2px}
.cf-auth-modal-close:hover,.cf-auth-modal-close:focus-visible{background:#48322b}
.cf-auth-dialog iframe{display:block;width:100%!important;height:1px;min-height:0!important;max-height:none!important;border:0!important;overflow:hidden!important;background:transparent}
.cf-auth-dialog::before,.cf-auth-dialog::after{
 content:"";position:absolute;z-index:5;pointer-events:none;
 width:58px;height:58px;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2266%22%20height%3D%2266%22%20viewBox%3D%220%200%2066%2066%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23d9b679%22%20stroke-width%3D%221.1%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%2037V8Q2%202%208%202H37%22%2F%3E%3Cpath%20d%3D%22M8%2029V13Q8%208%2013%208H29%22%20opacity%3D%22.65%22%2F%3E%3Cpath%20d%3D%22M2%2042q2-5%207-7m-1-7q6-1%2012-8m-10-5q4%205%2011%203M37%202q-5%202-7%207%22%2F%3E%3Cpath%20d%3D%22M16%2016c-4-7-9-3-6%202%202%203%206%204%206%204s1-4%204-6c5-3%209%202%202%206-2%202-6%203-6%203s-4-1-6%203m8-5c5%202%207%208%202%209-4%201-7-3-6-6%22%2F%3E%3Cpath%20d%3D%22M4%2051V41M41%204h10%22%20opacity%3D%22.6%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%221.8%22%20fill%3D%22%23d9b679%22%2F%3E%3C%2Fsvg%3E");background-size:contain;background-repeat:no-repeat;opacity:.85;
}
.cf-auth-dialog::before{left:14px;top:12px}
.cf-auth-dialog::after{right:14px;bottom:12px;transform:rotate(180deg)}
@media(max-width:520px){
 .cf-auth-dialog{width:calc(100% - 22px)!important;max-width:none!important}
 .cf-auth-dialog::before,.cf-auth-dialog::after{width:44px;height:44px}
 .cf-auth-dialog::before{left:10px;top:9px}
 .cf-auth-dialog::after{right:10px;bottom:9px}
 .cf-auth-modal-top{right:9px;top:8px}
}
@media(max-height:450px){.cf-auth-dialog{max-height:calc(100dvh - 12px)!important;overflow:auto!important}}
@media(prefers-reduced-motion:reduce){.cf-auth-dialog::backdrop{backdrop-filter:none}}
/* Scoped ID selectors override legacy theme dialog/iframe sizes. One outer scroll region. */
#cf-auth-dialog.cf-auth-dialog{width:calc(100% - 24px)!important;max-width:520px!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 24px)!important;overflow-x:hidden!important;overflow-y:auto!important;background:linear-gradient(145deg,#2b1d1a,#15110f 80%)!important}
#cf-auth-dialog #cf-auth-modal-frame{display:block!important;width:100%!important;min-width:0!important;min-height:0!important;max-height:none!important;border:0!important;background:transparent!important}
#cf-auth-dialog .cf-auth-load-status{margin:58px 28px 28px;color:#eddbbb}
#cf-auth-dialog .cf-auth-load-status[hidden]{display:none!important}
#cf-auth-dialog .cf-auth-load-status a{color:#e8c48b}

#cf-auth-dialog.cf-auth-dialog,#cf-auth-dialog #cf-auth-modal-frame{color-scheme:dark!important;background:#211813!important}
