
/* Keyzira v6.6.47 — guest identity clarity + account claim UX */

.guest-account-chip{
  min-width:132px;
  height:40px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:8px;
  padding:5px 10px 5px 6px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  color:var(--text);
}

.guest-account-avatar{
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:color-mix(in srgb,var(--primary) 9%,var(--surface-2));
  border:1px solid color-mix(in srgb,var(--primary) 18%,var(--line));
  color:var(--primary);
  font-size:10px;
  font-weight:900;
}

.guest-account-copy{
  min-width:0;
  display:grid;
  line-height:1.05;
  gap:3px;
}

.guest-account-copy small{
  color:var(--muted);
  font-size:7.5px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.guest-account-copy strong{
  max-width:112px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--text);
  font-size:9.5px;
  font-weight:850;
}

/* The user's own competitor entry is impossible to miss without making
   the whole table look like a selected admin grid. */
.leaderboard-row.leaderboard-current-row,
tr.leaderboard-current-row{
  position:relative;
  background:color-mix(in srgb,var(--primary) 5%,var(--surface)) !important;
}

tr.leaderboard-current-row td:first-child{
  box-shadow:inset 3px 0 0 var(--primary);
}

.leaderboard-you-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:17px;
  padding:1px 6px;
  border-radius:999px;
  background:color-mix(in srgb,var(--primary) 10%,var(--surface-2));
  border:1px solid color-mix(in srgb,var(--primary) 24%,var(--line));
  color:var(--primary);
  font-size:7px !important;
  font-weight:900 !important;
  font-style:normal !important;
  letter-spacing:.05em;
  vertical-align:middle;
}

#leader-list li.leaderboard-current-row{
  border-radius:9px;
  background:color-mix(in srgb,var(--primary) 6%,var(--surface-2)) !important;
  box-shadow:inset 3px 0 0 var(--primary);
}

.guest-transfer-confirmation{
  width:100%;
  box-sizing:border-box;
  margin:12px 0 4px;
  padding:11px 12px;
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  align-items:center;
  gap:10px;
  border:1px solid color-mix(in srgb,var(--green) 28%,var(--line));
  border-radius:12px;
  background:color-mix(in srgb,var(--green) 6%,var(--surface));
  text-align:left;
}

.guest-transfer-confirmation>span{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:color-mix(in srgb,var(--green) 12%,var(--surface-2));
  color:var(--green);
  font-weight:900;
}

.guest-transfer-confirmation>div{
  min-width:0;
  display:grid;
  gap:3px;
}

.guest-transfer-confirmation strong{
  color:var(--text);
  font-size:10.5px;
}

.guest-transfer-confirmation small{
  color:var(--muted);
  font-size:9px;
  line-height:1.45;
}

html[data-theme="dark"] .guest-account-chip{
  background:var(--surface-2);
  border-color:var(--line-strong);
}

html[data-theme="dark"] .guest-account-avatar{
  background:color-mix(in srgb,var(--primary) 14%,var(--surface-3));
  border-color:color-mix(in srgb,var(--primary) 28%,var(--line-strong));
}

html[data-theme="dark"] tr.leaderboard-current-row,
html[data-theme="dark"] .leaderboard-row.leaderboard-current-row{
  background:color-mix(in srgb,var(--primary) 9%,var(--surface)) !important;
}

html[data-theme="dark"] #leader-list li.leaderboard-current-row{
  background:color-mix(in srgb,var(--primary) 11%,var(--surface-2)) !important;
}

@media(max-width:1399px){
  .guest-account-chip{
    min-width:0;
    padding-right:7px;
  }
  .guest-account-copy small{display:none}
  .guest-account-copy strong{max-width:82px}
}

@media(max-width:720px){
  .guest-account-chip{
    width:36px;
    min-width:36px;
    height:36px;
    padding:3px;
    justify-content:center;
  }
  .guest-account-avatar{
    width:28px;
    height:28px;
  }
  .guest-account-copy{display:none}
}
