.broadcast-identity-dialog h2 { margin: 0 0 10px; font: 700 18px/1.2 system-ui,sans-serif; }

.broadcast-identity-dialog {
  position: fixed; inset: auto; left: var(--identity-x,50%); top: var(--identity-y,50%);
  transform: translate(-50%,-50%); margin: 0; box-sizing: border-box;
  width: min(380px, calc(100vw - 32px)); max-height: var(--identity-height,calc(100dvh - 24px));
  overflow: auto; overscroll-behavior: contain;
  padding: 18px; color: #f0f2f5; background: #1b272e; border: 1px solid #ffffff40; border-radius: 16px; font: 15px/1.45 system-ui,sans-serif;
}
.broadcast-identity-dialog::backdrop { background: #050b12b8; }
.broadcast-identity-dialog form { display: grid; gap: 8px; padding: 9px 0; }
.broadcast-identity-dialog [hidden] { display: none; }
.broadcast-identity-dialog label input { display: block; box-sizing: border-box; width: 100%; padding: 7px; border: 1px solid #ffffff40; border-radius: 7px; background: #35383b; color: #fff; font: 16px system-ui,sans-serif; }
.broadcast-identity-dialog button { cursor: pointer; border: 1px solid #ffffff40; border-radius: 8px; background: #203e4e; color: #fff; min-height: 36px; padding: 7px 10px; }
.broadcast-identity-dialog .broadcast-identity-close { float: right; display: grid; place-items: center; width: 32px; min-height: 32px; padding: 0; border-radius: 50%; line-height: 1; }
.broadcast-identity-dialog h2 { padding-right: 36px; }
.broadcast-identity-dialog .broadcast-guest-button { color: #281700; background: linear-gradient(#ffed8c,#ffc340); border-color: #fff3b2; font-weight: 800; box-shadow: 0 0 15px #ffc44660; }
.broadcast-account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 7px; padding-top: 13px; border-top: 1px solid #ffffff32; }
.broadcast-identity-dialog [role=status]:empty { display: none; }

#nav .home-account-menu { background: #11212bdc; border-color: #647a88; color: #deecf5; text-transform: none; letter-spacing: .02em; overflow-wrap: anywhere; text-align: left; }
#nav .home-account-menu::before { background: #a8c6db; }
.home-account-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.home-account-dialog [data-account-entry] .home-avatar-note { text-align: center; }
.home-account-dialog [data-signup-photo] input { max-width: 100%; color: #f0f5fa; margin: 4px 0; }
.home-account-dialog {
  background: linear-gradient(155deg, #617e96a6, #253d50bf 42%, #0c1725eb);
  border-color: #b9dce473;
  box-shadow: 0 24px 70px #020811ab, inset 0 1px #fff7;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.home-account-dialog.home-account-entry {
  background: linear-gradient(180deg,#122e49c7,#101925d9 60%,#080f18f5), url('/img/kerala-horizon-v90.jpg') center / cover;
}
.home-account-dialog::backdrop { background: #050d167d; }
.home-account-dialog h2 { text-align: center; padding-inline: 0; margin-top: 12px; }
.home-account-dialog .broadcast-identity-close {
  position: absolute; top: 10px; right: 10px; width: 44px; min-height: 44px;
  font-size: 25px; font-weight: 600; color: #fff;
  background: linear-gradient(#3b5971, #1a3147); border-color: #b7d6f29c;
  box-shadow: inset 0 1px #fff5, 0 3px #0d1b2b;
}
.home-account-portrait { position: relative; width: 70px; height: 70px; margin: 0 auto; }
.home-account-portrait [data-player-photo] { width: 100%; height: 100%; }
.home-account-portrait .nt-player-avatar { width: 100%; height: 100%; border: 3px solid #e2edf5; box-shadow: 0 4px 18px #050a147d; }
.home-account-portrait button { position: absolute; bottom: -1px; right: -4px; width: 30px; min-height: 30px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.home-account-dialog label input:not(:focus) { border: 0; border-bottom: 1px solid #d6e9f29c; border-radius: 0; background: #09142057; }
.home-account-dialog form.bad-login-fields label input:not(:focus) { border-bottom-color: #ff646f; }
.home-account-choices button, .home-account-dialog button[type=submit], .home-account-dialog [data-logout-confirm] {
  min-height: 42px;
  font-weight: 700;
  text-shadow: 0 1px 2px #0008;
  box-shadow: inset 0 1px #fff6, 0 4px 12px #050a1466;
}
.home-account-choices [data-mode=signin], .home-account-dialog[data-mode=signin] button[type=submit] {
  background: linear-gradient(#21815e, #14513d);
  border-color: #79d5ad99;
}
.home-account-choices [data-mode=signup], .home-account-dialog[data-mode=signup] button[type=submit] {
  background: linear-gradient(#3175bd, #19477d);
  border-color: #97c7fa99;
}
.home-account-confirm > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.home-account-dialog [data-logout-confirm] { background: linear-gradient(#a94053, #722137); border-color: #f39cab99; }
.home-account-profile dl { margin: 14px 0; padding: 10px 12px; border: 1px solid #ffffff26; border-radius: 9px; background: #11202b; }
.home-account-profile dt { font-weight: 700; }
.home-account-profile dt:nth-of-type(1) { color: #ffe083; }
.home-account-profile dt:nth-of-type(2) { color: #ffd16b; }
.home-account-profile dt:nth-of-type(3) { color: #fff1a9; }
.home-account-profile dd { margin: 2px 0 10px; color: #eef2f6; }
.home-account-profile dd:last-child { margin-bottom: 0; }
.home-avatar-note { color: #ccdce7; font-size: .84em; }
.home-account-profile button { width: 100%; }
.home-account-profile [data-logout], .home-account-profile [data-profile-close], .home-account-dialog [data-create-confirm] {
  min-height: 44px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #3676a9, #1d496e 52%, #183957);
  border-color: #a3d1f29c;
  box-shadow: inset 0 1px #fff6, 0 3px #0c2134, 0 6px 10px #050a1455;
  text-shadow: 0 1px 2px #0008;
}
.home-account-profile [data-logout] {
  background: linear-gradient(180deg, #a64565, #76344e 52%, #5b273f);
  border-color: #f0a5be9c;
  box-shadow: inset 0 1px #fff6, 0 3px #381a2b, 0 6px 10px #050a1455;
}
.home-account-profile [data-profile-close] { margin-top: 10px; }
.home-account-profile [data-logout]:active, .home-account-profile [data-profile-close]:active, .home-account-dialog [data-create-confirm]:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px #fff6, 0 1px 4px #050a1466;
}

.bad-login-message { font: 800 15px/1.4 system-ui,sans-serif; color: #ff9ba5; }
.bad-login-fields label input { border-color: #ff646f; box-shadow: 0 0 0 1px #ff646f; animation: ntBadLogin .5s ease-in-out 4; }
@keyframes ntBadLogin { 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
@media (prefers-reduced-motion: reduce) { .bad-login-fields label input { animation: none; } }
