/* src/character-creation.css — CHAR-SLOTS-03 (#3177)
 * Full-screen overlay for character creation: name input + class picker.
 * Consistent glass-card aesthetic matching guest-save-nudge.css.
 */

/* ── Overlay backdrop ──────────────────────────────────────────── */

#character-creation-overlay {
  position: fixed;
  inset: 0;
  z-index: 8900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

#character-creation-overlay.cc--visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Glass card ────────────────────────────────────────────────── */

.cc-card {
  width: min(440px, calc(100vw - 32px));
  padding: 28px 28px 24px;
  border-radius: 16px;
  background: rgba(8, 12, 20, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(0, 200, 255, 0.07) inset;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #cbd5e1;
  font-family: inherit;
  transform: scale(0.96) translateY(8px);
  transition: transform 260ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

#character-creation-overlay.cc--visible .cc-card {
  transform: scale(1) translateY(0);
}

/* ── Header ────────────────────────────────────────────────────── */

.cc-title {
  font-size: 18px;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}

.cc-sub {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 20px;
}

/* ── Name row ──────────────────────────────────────────────────── */

.cc-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cc-name-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.cc-name-input:focus {
  border-color: rgba(0, 200, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(0, 200, 255, 0.12);
}

/* ── Error message ─────────────────────────────────────────────── */

.cc-error {
  font-size: 12px;
  color: #f87171;
  margin-bottom: 12px;
  min-height: 16px;
}

.cc-error:empty {
  display: none;
}

/* ── Footer buttons ────────────────────────────────────────────── */

.cc-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cc-cancel-btn {
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}

.cc-cancel-btn:hover {
  border-color: rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
}

.cc-confirm-btn {
  padding: 9px 22px;
  border-radius: 8px;
  border: 1px solid rgba(0, 200, 255, 0.4);
  background: rgba(0, 200, 255, 0.14);
  color: #67e8f9;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.cc-confirm-btn:hover:not(:disabled) {
  background: rgba(0, 200, 255, 0.24);
  border-color: rgba(0, 200, 255, 0.65);
  color: #a5f3fc;
}

.cc-confirm-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.cc-confirm-btn:focus-visible,
.cc-cancel-btn:focus-visible {
  outline: 2px solid rgba(0, 200, 255, 0.5);
  outline-offset: 2px;
}
