/* Server mode: sign-in button, auth modal, waiting-for-opponent states. */
.login-pill{border:0;border-radius:13px;background:linear-gradient(125deg,#ff4708,#ff6a18);color:#fff;height:48px;padding:0 22px;font-size:16px;font-weight:600;white-space:nowrap;cursor:pointer}
.login-pill:focus-visible{outline:3px solid #ffb27f;outline-offset:2px}
.auth-panel{display:flex;flex-direction:column;gap:16px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;border-radius:12px;background:#f3efe9}
.auth-tabs button{height:40px;border:0;border-radius:9px;background:transparent;font-size:14px;font-weight:600;color:#6f6a65;cursor:pointer}
.auth-tabs button[aria-selected="true"]{background:#fff;color:#1d1b19;box-shadow:0 1px 3px #0000001a}
.auth-form{display:flex;flex-direction:column;gap:8px}
.auth-form label{font-size:13px;font-weight:600;color:#4b4642;margin-top:6px}
.auth-form .primary,.auth-form .subtle-button{margin-top:10px}
.auth-form .field-error{min-height:18px;margin:2px 0 0;color:#d4380d;font-size:13px}
.auth-note{font-size:12px;line-height:1.5;color:#8a837d;margin:4px 0 0}
.auth-note a{color:inherit;text-decoration:underline}
.auth-alt{display:flex;flex-direction:column;align-items:center;gap:10px;font-size:12px;color:#a19a95}
.auth-telegram{min-height:40px}
.auth-dev{border:1px dashed #e2d9cf;border-radius:12px;padding:10px 14px;font-size:13px;color:#6f6a65}
.auth-dev summary{cursor:pointer;font-weight:600}
.auth-dev .auth-form{margin-top:8px}
.phase-badge.waiting{background:#fff4e8;color:#c75a12}
:root[data-theme="dark"] .auth-tabs{background:#2a2622}
:root[data-theme="dark"] .auth-tabs button[aria-selected="true"]{background:#3a342f;color:#f4efe9}
:root[data-theme="dark"] .auth-form label{color:#d8d0c8}
:root[data-theme="dark"] .auth-dev{border-color:#4a433d;color:#cfc6bd}
:root[data-theme="dark"] .phase-badge.waiting{background:#3b2a1d;color:#ffb27f}
@media(max-width:760px){.login-pill{height:37px;padding:0 14px;font-size:13px;border-radius:10px}}
.wallet-pill[hidden],.profile-trigger[hidden],.login-pill[hidden]{display:none!important}
