/* TIPS Royale v30.9.0 - user accounts: the corner button on the front page and the dialog. */
.account-corner-btn{
  position:fixed;z-index:4500;
  left:max(64px,calc(env(safe-area-inset-left,0px) + 64px));
  top:max(12px,env(safe-area-inset-top,0px));
  display:flex;align-items:center;gap:6px;max-width:min(46vw,220px);
  height:40px;padding:0 14px 0 10px;
  border:1px solid #d1a83e;border-radius:999px;
  background:linear-gradient(180deg,#1b2c3f,#122234);color:#f1dc9a;
  box-shadow:0 8px 22px rgba(0,0,0,.34);
  font-weight:900;font-size:14px;cursor:pointer;touch-action:manipulation;
}
.account-corner-btn.hidden{display:none!important}
.account-corner-btn.logged-in{background:linear-gradient(180deg,#24563a,#163d29);color:#fff6ca}
.account-corner-btn .account-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rejoin-corner-btn.hidden ~ .account-corner-btn{left:max(10px,env(safe-area-inset-left,0px))}
@media(max-width:620px){.account-corner-btn{height:38px;font-size:13px}}

input.account-locked{background:#13283b!important;color:#f1dc9a!important;cursor:not-allowed}

.account-dialog{
  position:fixed;inset:0;z-index:13500;display:grid;place-items:center;
  padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom));
  background:rgba(0,0,0,.72);backdrop-filter:blur(5px);
}
.account-dialog.hidden{display:none!important}
.account-card{
  width:min(440px,96vw);max-height:min(94dvh,760px);overflow:auto;
  padding:16px;border:1px solid #aa8734;border-radius:16px;background:#0b1b2b;
  box-shadow:0 24px 80px rgba(0,0,0,.6);color:#e8f0f7;
}
.account-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px}
.account-title{margin:3px 0 0;font-size:20px;font-weight:1000;color:#ffe591}
.account-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px}
.account-tabs button{padding:9px;border:1px solid #2a4560;border-radius:10px;background:#091b2b;color:#9db2c7;font-weight:900;cursor:pointer}
.account-tabs button.active{border-color:#c9a24a;background:#1b2c3f;color:#ffe591}
.account-body form{display:grid;gap:10px}
.account-field{display:grid;gap:4px}
.account-field span{font-size:11px;font-weight:900;letter-spacing:.3px;color:#9db2c7;text-transform:uppercase}
.account-field input{padding:11px 12px;border:1px solid #315472;border-radius:10px;background:#071624;color:#fff;font-size:16px}
.account-field input:focus{outline:2px solid #c9a24a;outline-offset:1px}
.account-error{min-height:1.2em;color:#ff9d93;font-size:13px;font-weight:700}
.account-note{margin:0 0 10px;color:#cbdceb;font-size:13px;line-height:1.45}
.account-note.small{margin-top:12px;font-size:12px;color:#9db2c7}
.account-note a{color:#f1dc9a}
.account-link{display:block;margin:12px auto 0;padding:6px;border:0;background:none;color:#f1dc9a;font-weight:800;cursor:pointer;text-decoration:underline}
.account-link.danger{color:#ff9d93}
.account-code{
  margin:6px 0 12px;padding:14px;border:2px dashed #c9a24a;border-radius:12px;background:#13283b;
  text-align:center;font:1000 22px/1.2 Consolas,"Courier New",monospace;letter-spacing:2px;color:#ffe591;user-select:all;
}
.account-body > .btn{width:100%;margin-top:8px}
.account-profile-head{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.account-hud{width:72px;height:90px;object-fit:contain}
.account-profile-head strong{display:block;font-size:20px;color:#fff}
.account-profile-head small{display:block;color:#9db2c7;font-size:12px;margin-top:2px}
.account-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:12px}
.account-stats div{padding:8px;border:1px solid #2a4560;border-radius:10px;background:#091b2b}
.account-stats small{display:block;font-size:9px;font-weight:900;letter-spacing:.3px;color:#d9bd68;text-transform:uppercase}
.account-stats strong{font-size:16px;color:#fff}
.account-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.btn.bad{background:linear-gradient(180deg,#7a2430,#5a1822);border-color:#ac4854;color:#fff}

.account-required{padding:9px 10px;border:1px solid #c9a24a;border-radius:10px;background:#1b2c3f;color:#ffe591!important;font-weight:700}
