/* Auth is a native top-layer dialog: existing HUD and game layout stay intact. */
.player-auth{color:#f8f4ff;background:transparent;border:0;padding:0;width:min(92vw,460px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:auto;overflow:auto;overscroll-behavior:contain;border-radius:26px;box-shadow:0 28px 100px #0009,0 0 50px #d840c522;font-family:system-ui,sans-serif;scrollbar-width:thin;color-scheme:dark}
.player-auth::backdrop{background:#08091fc7;backdrop-filter:blur(7px)}
.player-auth *{box-sizing:border-box}.auth-card{position:relative;padding:32px;border:1px solid #ee90e44d;border-radius:26px;background:linear-gradient(145deg,#301d48ed,#12192af5 70%);backdrop-filter:blur(22px)}
.auth-brand{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;letter-spacing:1.4px;padding-right:25px;color:#fff}.auth-brand>span:first-child{color:#f971d5;font-size:22px}.auth-tag{font-size:8px;color:#84d9f4;letter-spacing:1px;margin-left:auto}
.player-auth .auth-close{position:absolute;right:12px;top:12px;width:44px;height:44px;border:0;background:transparent;font-size:26px;color:#bbadc9;padding:0}
.auth-symbol{margin:28px auto 22px;display:grid;place-items:center;width:62px;height:62px;border:1px solid #f47dd18c;border-radius:20px;color:#ffd9f8;font-size:40px;background:linear-gradient(145deg,#d34eb342,#6645b92b);box-shadow:0 0 30px #e640bf26;transform:rotate(-8deg)}
.auth-eyebrow{text-align:center;color:#75d5ef;font-size:10px;letter-spacing:2.4px;font-weight:700;margin:0 0 12px}.player-auth h2{font-size:clamp(22px,3vw,27px);line-height:1.4;text-align:center;margin:0;text-wrap:balance;word-break:keep-all;letter-spacing:-1px}.auth-subtitle{text-align:center;font-size:12px;line-height:1.8;color:#b6adc8;margin:12px 0 24px;word-break:keep-all}
.player-auth label{display:block;margin:14px 0 7px;font-size:12px;color:#ded3ec;font-weight:600}.player-auth input{width:100%;min-height:46px;background:#080b1b80;border:1px solid #9a89bc42;border-radius:11px;color:white;padding:12px 14px;font:inherit;font-size:16px;outline:none;touch-action:auto}.player-auth input::placeholder{font-size:12px;color:#9389a5}.player-auth input:focus{border-color:#80daec;box-shadow:0 0 0 3px #55d7e51a}
.player-auth button{font:inherit;cursor:pointer;min-height:44px;touch-action:manipulation}.player-auth button:focus-visible{outline:2px solid #8ce8ff;outline-offset:3px}.player-auth button:disabled{cursor:wait;opacity:.55}.auth-primary,.auth-secondary{width:100%;border-radius:12px;padding:13px 18px;font-weight:750!important;font-size:14px!important}.player-auth .auth-primary{border:1px solid #ffaddd75;background:linear-gradient(105deg,#e843b6,#ba43d6);box-shadow:0 8px 25px #d33fa735;color:#fff}.player-auth .auth-secondary{border:1px solid #59d8eb70;background:#35b9d00d;color:#a8f0ff}.auth-primary span{float:right}.auth-choices{display:grid;gap:12px}.player-auth form>.auth-primary{margin-top:24px}.auth-message{font-size:13px;line-height:1.6;color:#ffb6d0;white-space:pre-wrap;word-break:keep-all}.auth-message:empty{display:none}.auth-switch{font-size:12px;text-align:center;color:#aaa0bf;margin:14px 0 0}.player-auth .auth-switch button{background:none;border:0;padding:0 6px;color:#8de5ef;font-size:12px;min-height:44px}.auth-footer{border-top:1px solid #ab8db324;margin-top:26px;padding-top:18px;color:#867d9d;font-size:8px;letter-spacing:1.8px;text-align:center}.auth-footer span{color:#6bdac9;font-size:7px;margin-right:6px}.auth-account{display:grid;gap:12px;text-align:center;padding:10px 0 28px;overflow-wrap:anywhere}.auth-account span{color:#8de5ef;font-size:14px}
.player-profile[data-action=account]{cursor:pointer;background:transparent;border:0;color:inherit;padding:0;text-align:left;min-height:44px}.player-profile-copy strong{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
@media(max-width:480px){.auth-card{padding:24px 22px}.auth-tag{display:none}.auth-symbol{margin:20px auto 18px;width:54px;height:54px}.auth-subtitle{margin-bottom:20px}.auth-footer{margin-top:22px}.player-profile-copy strong{max-width:90px}}
@media(max-height:600px){.player-auth{max-height:calc(100dvh - 16px);border-radius:18px}.auth-card{padding:22px 26px;border-radius:18px}.auth-symbol{display:none}.auth-eyebrow{margin-top:18px}.auth-subtitle{margin:8px 0 14px}.auth-footer{margin-top:16px;padding-top:12px}}
@media(prefers-reduced-motion:reduce){.player-auth *{scroll-behavior:auto}}


/* Intro login: guest access is intentionally secondary to member auth. */
.player-auth .auth-guest {
  margin: 10px 0 0;
  text-align: center;
}
.player-auth .auth-guest button {
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.72);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.player-auth .auth-guest button:hover,
.player-auth .auth-guest button:focus-visible {
  color: #59e7ff;
  outline: none;
  text-shadow: 0 0 12px rgba(89,231,255,.45);
}
