/* 하우스 로고·색 + 로그인 직후 '하우스 정하기' 로딩 (js/intro.js) */

/* ---- 하우스가 정해진 계정: 위쪽 아이콘 = 하우스 로고(원본 그대로, 하우스 색 테두리만) */
img.house-logo { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--color-surface), 0 0 0 3px var(--house-color); }
img.house-landed { animation: house-land 800ms cubic-bezier(0.2, 0, 0, 1); }
@keyframes house-land {
  0% { transform: scale(1.5); box-shadow: 0 0 0 1.5px var(--color-surface), 0 0 0 3px var(--house-color), 0 0 0 0 var(--house-color); }
  45% { transform: scale(0.92); }
  100% { transform: scale(1); box-shadow: 0 0 0 1.5px var(--color-surface), 0 0 0 3px var(--house-color), 0 0 0 16px transparent; }
}

/* ---- 로딩: 원근 터널. 화면 테마(밝음/어두움)를 따르고 장식은 최소로 */
.intro { position: fixed; inset: 0; z-index: 500; overflow: hidden; background: var(--color-canvas); color: var(--color-ink); user-select: none; cursor: pointer;
  --c: var(--color-primary); animation: intro-in 220ms ease-out both; }
.intro.out { opacity: 0; transition: opacity 380ms ease-in; pointer-events: none; }
.intro.fly { background: transparent; pointer-events: none; transition: background-color 420ms ease-in; }
@keyframes intro-in { from { opacity: 0; } }
.intro-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform-style: preserve-3d; }
/* 가운데 글자 */
.intro-title { position: relative; z-index: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; pointer-events: none; will-change: transform, opacity; }
.intro-kicker { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--color-ink-secondary); }
.intro-title h1 { margin: 0; font-size: clamp(44px, 9vw, 96px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; color: var(--color-ink); }
/* 로고 카드: 둥근 모서리, 큰 그림자, 얇은 테두리. 로고는 자르지 않고 그대로 */
.intro-plane { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.intro-card { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; opacity: 0; will-change: transform, opacity; }
.intro-card img { display: block; width: 100%; height: 100%; border-radius: 16px; object-fit: cover;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-ink) 10%, transparent), 0 12px 28px -10px rgba(10, 20, 40, 0.3); }
.intro-card.chosen img { border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-ink) 10%, transparent), 0 0 0 4px var(--c), 0 18px 36px -14px rgba(0, 0, 0, 0.35); }
/* 고른 하우스 이름 */
.intro-cap { position: absolute; left: 0; right: 0; top: calc(50% + min(17vh, 150px)); z-index: 2; text-align: center; pointer-events: none; opacity: 0; transform: translateY(10px); transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0, 0, 1); }
.intro.named .intro-cap { opacity: 1; transform: none; }
.intro-cap-line { margin: 0 0 6px; font-size: 15px; font-weight: 500; color: var(--color-ink-secondary); }
.intro-cap-name { margin: 0; font-size: clamp(28px, 4.6vw, 44px); font-weight: 700; letter-spacing: -0.02em; color: var(--color-ink); }
.intro.fly .intro-title, .intro.fly .intro-cap { opacity: 0; transition: opacity 300ms ease-in; }
/* 폰: 큰 흐림 그림자는 그리기가 무거워 프레임이 떨어진다 → 가볍게 */
@media (max-width: 767px) {
  .intro-card img { box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-ink) 12%, transparent), 0 10px 20px -8px rgba(10, 20, 40, 0.35); }
  .intro-card.chosen img { box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-ink) 10%, transparent), 0 0 0 4px color-mix(in srgb, var(--c) 70%, transparent), 0 14px 28px -10px color-mix(in srgb, var(--c) 55%, rgba(0, 0, 0, 0.5)); }
}
