/* 첫 로그인 온보딩: 선호 캐릭터·장르·강도를 한 장의 컴팩트한 카드에서 고른다. */
.nox-onboard {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 6, 7, .72);
  backdrop-filter: blur(8px);
  animation: nox-onboard-fade .2s ease;
}

body.nox-onboard-open { overflow: hidden; }

.nox-onboard-sheet {
  position: relative;
  width: min(400px, 100%);
  max-height: min(90dvh, 640px);
  overflow-y: auto;
  padding: 22px 20px 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(224, 80, 92, .22), transparent 60%),
    #151214;
  color: #f2eef2;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
  animation: nox-onboard-in .26s cubic-bezier(.22, .8, .25, 1);
}

.nox-onboard-sheet header { text-align: center; }
.nox-onboard-spark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(224, 80, 92, .16);
  font-size: 22px;
}
.nox-onboard-sheet header strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
.nox-onboard-sheet header p { margin: 5px 0 0; color: #9d95a0; font-size: 15px; }

.nox-onboard-sheet section { margin-top: 16px; }
.nox-onboard-sheet h3 { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 8px; font-size: 15px; font-weight: 700; color: #bdb5be; }
.nox-onboard-sheet h3 small { color: #ff8a96; font-size: 14px; font-weight: 700; }

/* 선호 캐릭터 · 강도: 한 줄 세그먼트 */
.nox-onboard-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
}
.nox-onboard-card {
  min-height: 38px;
  padding: 0 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #cfc8d0;
  font-size: 16px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.nox-onboard-card:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nox-onboard-card.is-selected { background: #e0505c; color: #fff; box-shadow: 0 6px 16px -8px rgba(224, 80, 92, .9); }

/* 장르: 이모지 칩 */
.nox-onboard-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nox-onboard-chip {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: #ddd6dc;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.nox-onboard-chip:hover { border-color: rgba(240, 80, 92, .45); }
.nox-onboard-chip:active { transform: scale(.96); }
.nox-onboard-chip.is-selected { border-color: #e0505c; background: rgba(224, 80, 92, .2); color: #fff; }

.nox-onboard-sheet button:focus-visible { outline: 2px solid #ff8a96; outline-offset: 2px; }

.nox-onboard-error:empty { display: none; }
.nox-onboard-error { margin: 12px 0 0; color: #f0a2a8; font-size: 14.5px; text-align: center; }

.nox-onboard-sheet footer { display: grid; gap: 2px; margin-top: 18px; }
.nox-onboard-sheet footer button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ea5a67, #b8323f);
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  cursor: pointer;
}
.nox-onboard-sheet footer button:disabled { opacity: .6; cursor: progress; }
#noxOnboardSkip { min-height: 36px; background: transparent; color: #9d95a0; font-size: 15px; font-weight: 600; }
#noxOnboardSkip:hover { color: #fff; }

@keyframes nox-onboard-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nox-onboard-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .nox-onboard, .nox-onboard-sheet { animation: none; }
}
