/* Sign-in over the title scene, and the little save pill. Matches the game's floating "specimen jar" panels. */
.lw-gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at 50% 60%, rgba(5, 4, 14, 0.35), rgba(5, 4, 14, 0.75)); font-family: "Space Grotesk", system-ui, sans-serif; }
.lw-gate[hidden] { display: none; }
.lw-card { width: min(440px, 100%); padding: 34px 34px 26px; border-radius: 24px; color: #e8eefa; text-align: center;
  background: linear-gradient(170deg, rgba(34, 30, 84, 0.92), rgba(15, 13, 42, 0.94)); border: 1px solid rgba(170, 160, 255, 0.25);
  box-shadow: 0 0 0 1px rgba(125, 236, 207, 0.08) inset, 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 80px rgba(122, 79, 208, 0.35); animation: lw-in 0.5s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes lw-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.lw-word { margin: 0 0 12px; font: 700 64px/1 "Pixelify Sans", sans-serif; color: #f4fffb; text-shadow: 0 0 14px rgba(190, 120, 255, 0.85), 3px 3px 0 #7a4fd0, 6px 6px 0 #05040e; }
.lw-word span { color: #7deccf; }
.lw-lede { margin: 0 0 22px; color: #b8c0e0; font-size: 16px; line-height: 1.5; }
.lw-lede b { color: #fff; }
.lw-form { display: grid; gap: 8px; text-align: left; }
.lw-form label { font: 700 11px "Space Mono", monospace; letter-spacing: 0.16em; text-transform: uppercase; color: #9aa2c8; }
.lw-form input { font: 500 18px "Space Grotesk", sans-serif; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(170, 160, 255, 0.3); background: rgba(5, 4, 14, 0.6); color: #fff; outline: none; }
.lw-form input:focus { border-color: #7deccf; box-shadow: 0 0 0 3px rgba(125, 236, 207, 0.25); }
.lw-form input.lw-code { font: 700 30px "Space Mono", monospace; letter-spacing: 0.4em; text-align: center; padding-left: 0.4em; }
.lw-err { min-height: 1.3em; margin: 0; color: #ffb3c4; font-size: 14px; }
.lw-go { font: 700 17px "Space Grotesk", sans-serif; padding: 14px 20px; border: 0; border-radius: 999px; cursor: pointer; color: #06221d; background: linear-gradient(180deg, #a6ffe7, #7deccf);
  box-shadow: 0 8px 26px rgba(99, 240, 208, 0.35), 0 2px 0 #1b8f9c; transition: transform 0.15s cubic-bezier(.3, 1.6, .5, 1); }
.lw-go:hover:not(:disabled) { transform: translateY(-2px); }
.lw-go:disabled { opacity: 0.7; cursor: progress; }
.lw-go:focus-visible, .lw-link:focus-visible { outline: 2px solid #ffd35c; outline-offset: 3px; }
.lw-go small { display: block; font-weight: 400; font-size: 13px; opacity: 0.75; }
.lw-alt { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset; }
.lw-two { display: grid; gap: 10px; }
.lw-fine { margin: 18px 0 0; font-size: 13px; color: #8a93b8; line-height: 1.5; }
.lw-fine a, .lw-link { color: #7deccf; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.lw-pill { position: fixed; top: 10px; right: 12px; z-index: 40; font: 500 13px "Space Grotesk", sans-serif; opacity: 0.55; transition: opacity 0.3s; }
.lw-pill:hover, .lw-pill[data-s="busy"], .lw-pill[data-s="off"], .lw-pill:has(.lw-menu:not([hidden])) { opacity: 1; }
.lw-pill > button { display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; cursor: pointer; color: #e8eefa; font: inherit;
  background: rgba(11, 10, 32, 0.7); border: 1px solid rgba(170, 160, 255, 0.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lw-pill i { width: 8px; height: 8px; border-radius: 50%; background: #7deccf; box-shadow: 0 0 8px #7deccf; }
.lw-pill[data-s="busy"] i { background: #ffd35c; box-shadow: 0 0 8px #ffd35c; animation: lw-pulse 0.9s ease-in-out infinite; }
.lw-pill[data-s="off"] i { background: #ff86a0; box-shadow: 0 0 8px #ff86a0; }
@keyframes lw-pulse { 50% { opacity: 0.3; } }
.lw-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; padding: 14px; border-radius: 16px; background: rgba(21, 19, 56, 0.97); border: 1px solid rgba(170, 160, 255, 0.25); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); color: #e8eefa; }
.lw-menu p { margin: 0 0 10px; line-height: 1.4; word-break: break-all; }
.lw-menu .lw-dim { color: #9aa2c8; font-size: 12px; word-break: normal; }
.lw-menu a, .lw-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; color: #7deccf; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.lw-menu a:hover, .lw-menu button:hover { background: rgba(255, 255, 255, 0.07); }
@media (prefers-reduced-motion: reduce) { .lw-card, .lw-pill i { animation: none !important; } }
