/* Lamma LIVE v0.9 — player as default, coach via header trophy only. */
[hidden]{display:none!important}
/* Single, centered player card; no public coach tab/form in the landing page. */
.entry-page .entry-options{
  display:grid!important;
  grid-template-columns:minmax(0,540px)!important;
  justify-content:center!important;
  width:min(100%,580px)!important;
  margin-inline:auto!important;
  gap:0!important;
}
.entry-page .entry-card.entry-player{
  grid-column:1!important;
  width:100%!important;
  max-width:100%!important;
}
.entry-page .entry-brand-icon.coach-trophy{
  appearance:none;cursor:pointer;font:inherit;border:1px solid #9b78b8;
  color:inherit;display:grid;place-items:center;
  min-width:42px;min-height:42px;border-radius:13px;
  background:linear-gradient(135deg,#442961,#201634);
}
.entry-page .entry-brand-icon.coach-trophy:focus-visible,
body[data-role="guest"] .coach-trophy:focus-visible{
  outline:3px solid #e8a9ff;outline-offset:2px;
}
/* For the player, the cup icon is the only path to the coach password prompt. */
body[data-role="guest"] .site-identity .coach-trophy{cursor:pointer}
body[data-role="guest"] .site-identity .coach-trophy:hover,
.entry-page .entry-brand-icon.coach-trophy:hover{box-shadow:0 0 0 2px #f6cf8d77}
/* Accessible native modal: works with ESC, focuses first input, never shows until opened. */
.coach-login-dialog{
  box-sizing:border-box;width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 30px);
  overflow-y:auto;border:1px solid #b597dd;border-radius:20px;
  padding:23px 21px;background:#171334;color:#f8f4ff;
  box-shadow:0 20px 80px #000b;direction:rtl;
}
.coach-login-dialog:not([open]){display:none!important}
.coach-login-dialog::backdrop{background:#06091bd4;backdrop-filter:blur(4px)}
.coach-login-dialog .coach-login-top{display:flex;gap:16px;align-items:center;justify-content:space-between}
.coach-login-dialog .coach-login-top h2{margin:0;font-size:21px;color:#ffe6b1}
.coach-login-close{border:1px solid #9e86bf;border-radius:10px;background:#41305d;color:#fff;
  cursor:pointer;min-width:42px;min-height:42px;font-size:19px}
.coach-login-dialog .entry-form,.coach-login-dialog .live-form{display:flex;flex-direction:column;gap:11px;margin-top:15px}
.coach-login-dialog label{display:flex;flex-direction:column;gap:6px;font-weight:750;font-size:14px}
.coach-login-dialog input[type="password"]{width:100%;box-sizing:border-box;background:#0d1532;color:white;
  border:1px solid #9a81b8;border-radius:11px;min-height:48px;padding:9px 13px;font:inherit;font-size:16px}
.coach-login-dialog input:focus-visible,.coach-login-dialog button:focus-visible{outline:2px solid #e6b6ff;outline-offset:2px}
.coach-login-dialog button[type="submit"]{min-height:45px;cursor:pointer}
.coach-login-dialog .entry-form-error,.coach-login-dialog .live-error{min-height:20px;color:#ffc4cf;font-size:13px}
/* Host controls remain in their existing trophy drawer, alongside logout. */
body[data-role="host"] #host-coach-drawer>.panel-heading{display:flex;flex-wrap:wrap;align-items:center}
body[data-role="host"] #host-coach-drawer .coach-logout{margin-inline-start:auto;white-space:normal;
  padding:8px 10px;border-radius:9px;border:1px solid #c491a8;
  color:#fff3f5;background:#522942;cursor:pointer;font:inherit;font-size:12px;min-height:38px}
body[data-role="host"] #host-coach-drawer .coach-logout:hover{background:#753552}
body[data-role="host"] #end-round{width:100%;min-height:43px;margin-top:7px;border-color:#db9c86}
body[data-role="host"] #end-round:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:480px){
 .coach-login-dialog{padding:17px 14px}
 body[data-role="host"] #host-coach-drawer .coach-logout{font-size:11px;padding:6px}
}
