/* Global account gate: the same blurred, borderless stage as reward reveals. */
html.ed-epic-reconnect-open,
html.ed-epic-reconnect-open body { overflow: hidden !important; }
.ed-epic-reconnect {
  position: fixed; inset: 0; width: 100%; max-width: none;
  height: 100%; height: 100dvh; max-height: none; margin: 0;
  padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  border: 0; box-sizing: border-box; overflow: auto; overscroll-behavior: contain;
  color: #f5f6f8; background: transparent; font-family: Inter, sans-serif;
}
.ed-epic-reconnect[open] { display: grid; place-items: center; }
.ed-epic-reconnect::backdrop {
  background: radial-gradient(ellipse at 50% 42%, rgba(32, 28, 21, .64), rgba(3, 7, 12, .88) 72%);
  backdrop-filter: blur(24px) saturate(75%);
  -webkit-backdrop-filter: blur(24px) saturate(75%);
}
.ed-epic-reconnect__content { position: relative; width: min(680px, 100%); text-align: center; }
.ed-epic-reconnect h1 {
  margin: 0; color: #fff; font: 900 italic clamp(32px, 4.3vw, 54px)/1.06 Inter, sans-serif;
  letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance;
  text-shadow: 0 3px 20px rgba(0, 0, 0, .35);
}
.ed-epic-reconnect h1 span { display: block; color: #dbc183; }
.ed-epic-reconnect__stage { position: relative; display: grid; place-items: center; height: 202px; margin: 20px 0 0; isolation: isolate; }
.ed-epic-reconnect__stage::before {
  content: ''; position: absolute; z-index: -1; width: 280px; height: 210px;
  background: radial-gradient(ellipse, rgba(202, 166, 84, .19), transparent 66%);
}
.ed-epic-reconnect__orbit { position: absolute; width: 176px; height: 176px; border: 1px solid rgba(216, 184, 114, .19); border-radius: 50%; }
.ed-epic-reconnect__orbit::after { content: ''; position: absolute; inset: -17px; border: 1px solid rgba(216, 184, 114, .065); border-radius: 50%; }
.ed-epic-reconnect__logo { width: 146px; height: 146px; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0,0,0,.4)); }
.ed-epic-reconnect__badge {
  position: absolute; left: calc(50% + 42px); top: 137px;
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 3px solid #141516; border-radius: 50%; background: #dec382;
  color: #15130d; font-size: 17px; font-weight: 900;
}
.ed-epic-reconnect__account { margin: 12px 0 22px; text-align: center; }
.ed-epic-reconnect__account strong { display: block; max-width: 100%; overflow-wrap: anywhere; color: #fff; font: 800 clamp(28px, 3vw, 36px)/1.2 Inter, sans-serif; letter-spacing: -.02em; }
.ed-epic-reconnect__copy { max-width: 490px; margin: 0 auto; color: #afb4be; font-size: 14px; font-weight: 450; line-height: 1.75; text-wrap: pretty; }
.ed-epic-reconnect__copy strong { color: #e5e7ec; font-weight: 600; }
.ed-epic-reconnect__actions { width: min(360px, 100%); margin: 27px auto 0; }
.ed-epic-reconnect__button {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 54px; padding: 15px 18px; border: 1px solid #e8d19a;
  border-radius: 7px; background: linear-gradient(110deg, #e3cb94, #cba95d);
  color: #15130e; font: 850 14px/1.3 Inter, sans-serif; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer; transition: filter .18s, box-shadow .18s;
  box-shadow: 0 5px 24px rgba(195, 153, 65, .12);
}
.ed-epic-reconnect__button:hover:not(:disabled) { filter: brightness(1.1); box-shadow: 0 5px 30px rgba(195, 153, 65, .24); }
.ed-epic-reconnect__button:focus-visible { outline: none; filter: brightness(1.12); box-shadow: 0 5px 30px rgba(195, 153, 65, .38); }
.ed-epic-reconnect__logout:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.ed-epic-reconnect__button:disabled { cursor: wait; opacity: .7; }
.ed-epic-reconnect__button svg { width: 16px; height: 16px; flex: 0 0 auto; }
.ed-epic-reconnect [hidden] { display: none !important; }
.ed-epic-reconnect__spinner { display: inline-block; width: 22px; height: 22px; box-sizing: border-box; border: 2px solid rgba(21, 19, 14, .22); border-top-color: #15130e; border-radius: 50%; animation: ed-epic-reconnect-spin .8s linear infinite; }
@keyframes ed-epic-reconnect-spin { to { transform: rotate(360deg); } }
.ed-epic-reconnect[data-state="success"] .ed-epic-reconnect__badge { background: #b6d79c; }
.ed-epic-reconnect[data-state="error"] .ed-epic-reconnect__message { color: #efb898; }
.ed-epic-reconnect__note { margin: 12px 0 0; color: #828995; font-size: 11px; line-height: 1.6; }
.ed-epic-reconnect__message { margin: 0 auto; max-width: 490px; color: #ebc683; font-size: 14px; line-height: 1.75; text-wrap: pretty; }
.ed-epic-reconnect__message:empty { display: none; }
.ed-epic-reconnect__footer { margin: 31px 0 0; color: #767e8a; font-size: 10px; line-height: 1.7; }
.ed-epic-reconnect__logout { display: inline-block; margin: 7px 0 0; color: #a3a9b3; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .ed-epic-reconnect { padding-right: 22px; padding-left: 22px; }
  .ed-epic-reconnect h1 { font-size: clamp(30px, 8.4vw, 42px); }
  .ed-epic-reconnect__stage { margin-top: 14px; height: 178px; }
  .ed-epic-reconnect__logo { width: 130px; height: 130px; }
  .ed-epic-reconnect__orbit { width: 154px; height: 154px; }
  .ed-epic-reconnect__badge { top: 120px; left: calc(50% + 36px); }
  .ed-epic-reconnect__account { margin-bottom: 18px; }
  .ed-epic-reconnect__copy, .ed-epic-reconnect__message { font-size: 13px; }
  .ed-epic-reconnect__actions { margin-top: 24px; }
  .ed-epic-reconnect__footer { margin-top: 25px; }
}
@media (prefers-reduced-motion: reduce) { .ed-epic-reconnect * { transition: none !important; } .ed-epic-reconnect__spinner { animation-duration: 2s; } }
