/* ========================================
   Hush Pop: ASMR 매치 — 상세 페이지(hush-pop.html) 전용 스타일
   틀(구역·특징 카드·게임 정보·이미지 뷰어)은 kd.css 를 그대로 쓰고, 여기서는 게임 색(밤하늘 보라·분홍·라벤더)으로 바꾸고 첫 화면만 새로 그립니다.
   ======================================== */
.hp-page {
    --kd-bg: #1d1536;
    --kd-panel: rgba(46, 34, 82, 0.72);
    --kd-line: rgba(196, 178, 255, 0.28);
    --kd-gold: #ffa8cf;
    --kd-crimson: #e2639e;
    --kd-crimson-hi: #ff8cc0;
    --kd-text: #f1ecff;
    --kd-sub: #b9b0d8;
    --hp-lavender: #b9b4ff;
}

body.hp-page {
    background:
        radial-gradient(1200px 700px at 85% 0%, rgba(122, 82, 196, 0.35), transparent 70%),
        linear-gradient(180deg, #2b1f52 0%, var(--kd-bg) 38%, #150f28 100%);
}

.hp-page .navbar {
    background: rgba(29, 21, 54, 0.82);
    border-bottom-color: var(--kd-line);
}

.hp-page .footer {
    background: #120c22;
}

/* ---------- 첫 화면: 왼쪽 소개 · 오른쪽 휴대폰 화면 세 장 ---------- */
.hp-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--navbar-height) + var(--spacing-lg)) 0 var(--spacing-lg);
}

/* 게임처럼 가늘게 비스듬히 내리는 빗줄기(움직임을 줄인 설정에서는 멈춤) */
.hp-rain {
    position: absolute;
    inset: -40% -10%;
    background-image: repeating-linear-gradient(105deg, transparent 0 46px, rgba(220, 210, 255, 0.07) 46px 47px, transparent 47px 120px);
    animation: hp-rain 1.6s linear infinite;
    pointer-events: none;
}

@keyframes hp-rain {
    to { transform: translate(-31px, 116px); }
}

@media (prefers-reduced-motion: reduce) {
    .hp-rain {
        animation: none;
    }
}

.hp-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--spacing-lg);
    align-items: center;
}

.hp-icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    margin-bottom: var(--spacing-sm);
}

.hp-title {
    margin: 0;
    line-height: 0;
}

.hp-logo {
    width: min(460px, 86vw);
    height: auto;
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.45));
}

.hp-name {
    display: block;
    margin-top: 0.5rem;
    color: var(--hp-lavender);
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.hp-tagline {
    color: var(--kd-gold);
    font-weight: 700;
    font-size: 1.15rem;
    margin-top: var(--spacing-sm);
}

.hp-desc {
    color: var(--kd-text);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: var(--spacing-xs) 0 var(--spacing-md);
    max-width: 560px;
}

.hp-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--kd-crimson-hi), var(--kd-crimson));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(226, 99, 158, 0.4);
}

.hp-note {
    color: var(--kd-sub);
    font-size: 0.9rem;
    margin-top: var(--spacing-sm);
}

/* 가운데 화면을 앞에, 양옆을 살짝 기울여 뒤에 둡니다 */
.hp-phones {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
}

.hp-phones img {
    width: 34%;
    max-width: 230px;
    height: auto;
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.hp-phones img:nth-child(1) {
    transform: translateX(18%) rotate(-7deg) scale(0.9);
}

.hp-phones img:nth-child(2) {
    position: relative;
    z-index: 1;
}

.hp-phones img:nth-child(3) {
    transform: translateX(-18%) rotate(7deg) scale(0.9);
}

/* ---------- 메인 첫 화면의 Hush Pop 칸(index.html, 틀은 kd.css 의 .hero-game) ---------- */
.hero-game-hp {
    background:
        radial-gradient(600px 400px at 80% 0%, rgba(122, 82, 196, 0.45), transparent 70%),
        linear-gradient(180deg, #2b1f52 0%, #1d1536 100%);
    border: 1px solid rgba(196, 178, 255, 0.28);
}

/* 흘러내리는 빗방울 캔버스(hp-rain.js)는 칸 전체에 깔고 글자·버튼 아래에 둡니다 */
.hero-game-hp .hero-hp-drops {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-game-hp .hero-hp-tiles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-hp-tiles img {
    position: absolute;
    width: 56px;
    height: 56px;
    opacity: 0.85;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.hero-hp-tiles img:nth-child(1) { top: 9%; left: 8%; transform: rotate(-12deg); }
.hero-hp-tiles img:nth-child(2) { top: 14%; right: 9%; width: 48px; height: 48px; }
.hero-hp-tiles img:nth-child(3) { bottom: 12%; left: 10%; width: 44px; height: 44px; }
.hero-hp-tiles img:nth-child(4) { bottom: 9%; right: 8%; transform: rotate(14deg); }
.hero-hp-tiles img:nth-child(5) { top: 48%; left: 4%; width: 40px; height: 40px; opacity: 0.6; }

/* 좁은 화면에서는 버튼·배지와 겹치지 않게 위쪽 두 개만 작게 */
@media (max-width: 600px) {
    .hero-hp-tiles img {
        width: 34px;
        height: 34px;
    }

    .hero-hp-tiles img:nth-child(n+3) {
        display: none;
    }
}

.hero-hp-name {
    display: block;
    margin-top: 0.6rem;
    color: #b9b4ff;
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.hp-btn {
    background: linear-gradient(180deg, #ff8cc0, #e2639e);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 20px rgba(226, 99, 158, 0.4);
}

.hp-btn:hover {
    box-shadow: 0 8px 26px rgba(226, 99, 158, 0.6);
}

.hp-hero-badge {
    display: inline-block;
    margin-top: var(--spacing-sm);
    padding: 6px 14px;
    border: 1px solid rgba(196, 178, 255, 0.35);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
    color: #ffa8cf;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ---------- 스크린샷: 세로 화면 6장 ---------- */
.hp-shots {
    grid-template-columns: repeat(6, 1fr);
}

.hp-shots img {
    aspect-ratio: 9 / 16;
}

.hp-cta-desc {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

@media (max-width: 992px) {
    .hp-hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .hp-phones {
        min-height: 0;
    }

    .hp-shots {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* kd.css 가 좁은 화면에서 스크린샷을 2칸·1칸으로 줄이는데, 세로 화면은 3칸·2칸이 알맞습니다 */
@media (max-width: 768px) {
    .hp-shots {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .hp-shots {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-phones img {
        border-radius: 12px;
        border-width: 2px;
    }
}
