/* Sign-in page only, in the Modern Casino look. Self-contained on purpose: a signed-out browser never sees the game's CSS. */
:root { --sans: 'IBM Plex Sans', -apple-system, system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --bg: #1c2129; --chrome: #141820; --edge2: #3a4455; --fg: #fff; --fg2: #c7cfdd; --muted: #7c8798; --gold: #d9b45c; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
.gate { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--bg); }
.gate-card { position: relative; width: 100%; max-width: 400px; background: var(--chrome); border: 1px solid var(--edge2); border-radius: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.6); padding: 26px 22px 22px; }
.gate-logo { font-size: 20px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 18px; }
.gate-card h2 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.signin-sub { color: var(--fg2); font-size: 13px; margin: 0 0 14px; line-height: 1.4; }
.signin-hint { color: var(--muted); font-size: 12px; margin: 8px 0; line-height: 1.4; }
.signin-status { font-size: 12px; color: var(--gold); min-height: 18px; margin-top: 8px; }
.signin-stuck { color: var(--fg2); font-size: 12px; margin-top: 10px; line-height: 1.5; }
.error-message { font-size: 12px; color: #ff8a8a; min-height: 18px; margin-top: 8px; }
.gate-card input[type="text"] { width: 100%; padding: 12px; font-family: var(--mono); font-size: 16px; background: var(--bg); color: var(--fg); border: 1px solid var(--edge2); border-radius: 4px; margin-top: 8px; }
.gate-card input[type="text"]:focus { outline: none; border-color: var(--gold); }
#signin-code-input { letter-spacing: 4px; text-align: center; font-size: 20px; }
.gate-card button:not(.link-btn), .gate-card .launch-btn {
  display: block; width: 100%; text-align: center; text-decoration: none; margin-top: 10px; padding: 13px; cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .3px;
  background: var(--gold); color: #1c2129; border: 1px solid transparent; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.gate-card button:not(.link-btn):active, .gate-card .launch-btn:active { transform: translateY(1px); box-shadow: none; }
.gate-card .modal-cancel { background: var(--bg); color: var(--fg2); border-color: var(--edge2); }
.gate-card .link-btn { display: inline; width: auto; padding: 0; margin: 0; background: none; border: none; font-family: var(--sans); font-size: 12px; color: var(--gold); text-decoration: underline; cursor: pointer; }
.launch-btn.disabled { opacity: 0.55; pointer-events: none; }
.welcome-card { background: var(--bg); border: 1px solid var(--gold); border-radius: 6px; padding: 14px; text-align: center; margin: 8px 0 4px; }
.welcome-name { font-size: 18px; font-weight: 700; color: var(--gold); }
.welcome-addr { font-family: var(--mono); font-size: 12px; color: var(--fg2); margin-top: 4px; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 1500; background: var(--chrome); color: #fff; border: 1px solid var(--edge2); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.6); padding: 10px 16px; font-size: 13px; max-width: 90vw; }
.toast.info { border-color: var(--gold); }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
