/* ===============================
   SAVE CHARACTER BUTTON
   =============================== */

@font-face {
  font-family: "AstroSpace";
  src: url("AstroSpace-0Wl3o.otf") format("truetype");
  font-weight: normal;
  font-style: normal;
}   

.save-character-btn {
  position: absolute;
  top: 20px;
  left: 700px;
  width: 90px;
  height: 43px;
  background: cyan;
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 1px;
  color: black;
  font-family: "AstroSpace", sans-serif;
  font-size: 12px;
  cursor: pointer;
  z-index: 20;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.save-character-btn:hover {
  border-color: rgb(3, 142, 33);
  color: rgb(7, 61, 76);
  font-size: 14px;
  box-shadow: 0 0 8px rgba(0, 255, 255, 2.4);
  background: cyan;
}

.save-character-btn:active {
  background: rgba(0, 255, 255, 0.15);
}

.save-character-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* ---- Status indicator ---- */

.save-character-status {
  position: absolute;
  top: 44px;
  left: 752px;
  font-size: 10px;
  color: #0f0;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
  z-index: 20;
  line-height: 20px;
}

.save-character-status.visible {
  opacity: 1;
}

.save-character-status.save-error {
  color: #f44;
}

/* ===============================
   AUTH GATE MODAL
   =============================== */

.auth-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-gate-modal {
  background: #0a0a0a;
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
  padding: 0;
  width: 340px;
  max-width: 90vw;
}

.auth-gate-header {
  background: rgba(0, 255, 255, 0.08);
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  padding: 12px 16px;
  color: #0ff;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-gate-body {
  padding: 20px 16px;
}

.auth-gate-body p {
  color: #ccc;
  font-size: 13px;
  margin: 0 0 18px 0;
  line-height: 1.5;
}

.auth-gate-buttons {
  display: flex;
  gap: 10px;
}

.auth-gate-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(0, 255, 255, 0.3);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, border-color 0.2s;
}

.auth-gate-login {
  background: rgba(0, 255, 255, 0.1);
  color: #0ff;
}

.auth-gate-login:hover {
  background: rgba(0, 255, 255, 0.2);
  border-color: #0ff;
}

.auth-gate-cancel {
  background: transparent;
  color: #888;
  font-family: inherit;
}

.auth-gate-cancel:hover {
  color: #ccc;
  border-color: #666;
}