:root:has(#dialog[open] .account-panel){overflow:hidden}
#dialog[open]:has(.account-panel){
  position:fixed;inset:0 0 0 auto;margin:0;width:min(100%,420px);max-width:100%;
  height:100dvh;max-height:none;overflow:auto;overscroll-behavior:contain;
  padding:0 0 max(24px,env(safe-area-inset-bottom));border:0;border-left:1px solid #373044;
  border-radius:0;background:#181420;color:#f6f0ff;box-shadow:-12px 0 54px #0a061353;
  scrollbar-color:#675378 #181420;animation:account-enter .29s cubic-bezier(.16,1,.3,1);
}
#dialog:has(.account-panel)::backdrop{background:#0b0716ab;backdrop-filter:none}
#dialog:has(.account-panel) .dialog-head{
  position:relative;display:flex;align-items:flex-end;min-height:166px;margin:0;
  padding:28px 28px 19px;background:
  linear-gradient(0deg,#181420 0%,#18142000 74%),
  linear-gradient(90deg,#211831 15%,#261936ad 54%,#21183113 100%),
  url('art/games/cases.webp') right 52% / auto 122% no-repeat,#211831;
}
#dialog:has(.account-panel) .dialog-head h2{
  margin:0;font:780 clamp(27px,6vw,34px)/1.1 Barlow,Inter,sans-serif;letter-spacing:-.025em;text-wrap:balance;
}
#dialog:has(.account-panel) #close-dialog{
  position:absolute;top:max(14px,env(safe-area-inset-top));right:16px;width:44px;height:44px;
  border:1px solid #ffffff36;border-radius:50%;background:#21182bd9;color:#fff;
}
#dialog:has(.account-panel) #close-dialog:hover{background:#3d304c}
.account-panel{display:grid;gap:16px;padding:5px 28px 0}
.account-form,.account-providers{display:grid;gap:9px}
.account-form label{display:grid;gap:7px;color:#e7dbf2;font-size:13px;font-weight:650}
.account-form input{
  box-sizing:border-box;width:100%;min-height:48px;padding:10px 13px;border:1px solid #55465f;
  border-radius:11px;background:#231c30;color:#fff;font:400 16px/1.3 Inter,sans-serif;
  caret-color:#dec0ff;
}
.account-form input::placeholder{color:#ae9bbd}
.account-form input[readonly]{color:#d9c9e6;background:#211a2a}
.account-panel :is(button,a,input):focus-visible,#dialog:has(.account-panel) #close-dialog:focus-visible{
  outline:2px solid #ddc2ff;outline-offset:3px;
}
.account-primary,.account-social{
  display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:46px;width:100%;
  padding:11px 13px;border:1px solid transparent;border-radius:11px;
  font:680 14px/1.35 Inter,sans-serif;text-align:center;text-decoration:none;
}
.account-primary{background:#cdb0fa;color:#241435}
.account-primary:hover{background:#dbc3ff}
.account-social{position:relative}
.account-social svg{width:19px;height:19px;flex:none}
.account-telegram{background:#242334;color:#e8f7ff;border-color:#424255}
.account-telegram svg{color:#76cfff}
.account-telegram:hover{background:#2e2d43}
.account-google{background:#f5f3fa;color:#241e31}
.account-google:hover{background:#fff}
.account-panel :is(button,a):disabled{opacity:.56;cursor:wait}
.account-divider{display:flex;align-items:center;gap:11px;color:#c7b6d5;font-size:12px}
.account-divider::before,.account-divider::after{content:'';flex:1;height:1px;background:#3b3148}
.account-returning{display:flex;flex-wrap:wrap;align-items:center;gap:3px 7px;color:#cec0dc;font-size:13px}
.account-text{
  justify-self:start;min-height:38px;padding:5px 0;background:none;color:#dabaFF;border:0;
  font:680 13px/1.35 Inter,sans-serif;text-align:left;
}
.account-text:hover{text-decoration:underline;text-underline-offset:4px}
.account-step-title{margin:0;font:740 22px/1.18 Barlow,Inter,sans-serif}
#dialog-body .account-hint{margin:0;color:#cfc0dd;font-size:13px;line-height:1.45}
#dialog-body .account-status{color:#f6d7f2}
.account-hint:empty{display:none}
#dialog-body .account-code{
  margin:0;padding:12px;border-radius:9px;background:#2c2138;color:#f2ddff;
  font:670 16px/1.35 Inter,sans-serif;letter-spacing:.04em
}
.account-resume:not([hidden]){display:flex;flex-wrap:wrap;gap:8px;margin-block:0 12px}
.top .phase-tools .tool-connect[data-auth="guest"]{
  width:auto;flex:0 0 auto;min-width:62px;padding-inline:12px;border-radius:12px;
  background:#cdb0fa;color:#221433;
}
.top .phase-tools .tool-connect[data-auth="guest"] span{display:inline}
.top .phase-tools .tool-connect[data-auth="guest"] svg{display:none}
::selection{background:#aa75e6;color:#100b18}
@keyframes account-enter{from{transform:translateX(30px);opacity:.75}}
@media(max-width:440px){
  #dialog[open]:has(.account-panel){border-left:0}
  #dialog:has(.account-panel) .dialog-head{min-height:142px;padding-inline:22px}
  .account-panel{padding-inline:22px}
}
@media(prefers-reduced-motion:reduce){#dialog[open]:has(.account-panel){animation:none}}
