/* DANCE STUDIO NEO — Styles: Neon Cyberpunk × Street */
:root {
    --neon-purple: hsl(270, 100%, 65%);
    --neon-cyan: hsl(185, 100%, 55%);
    --neon-pink: hsl(330, 100%, 65%);
    --neon-yellow: hsl(50, 100%, 60%);
    --neon-green: hsl(150, 100%, 50%);
    --glow-purple: hsla(270, 100%, 65%, .4);
    --glow-cyan: hsla(185, 100%, 55%, .3);
    --glow-pink: hsla(330, 100%, 65%, .3);
    --bg-1: hsl(260, 30%, 6%);
    --bg-2: hsl(270, 25%, 10%);
    --bg-3: hsl(240, 20%, 8%);
    --surface: hsla(260, 25%, 14%, .7);
    --surface-hover: hsla(260, 25%, 18%, .85);
    --surface-glass: hsla(260, 20%, 16%, .5);
    --text: hsl(0, 0%, 95%);
    --text-sec: hsl(260, 15%, 75%);
    --text-muted: hsl(260, 10%, 50%);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --font: 'Noto Sans JP', 'Zen Maru Gothic', sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--font);
    background: linear-gradient(160deg, var(--bg-1), var(--bg-2) 50%, var(--bg-3));
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden
}

#app {
    position: relative;
    min-height: 100vh
}

/* Screens */
.screen {
    display: none;
    min-height: 100vh;
    position: relative
}

.screen.active {
    display: block;
    animation: fadeIn .5s ease-out
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.screen-inner {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 20px 80px
}

/* Hero BG */
.hero-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden
}

.neon-line {
    position: absolute;
    height: 2px;
    border-radius: 2px;
    animation: neonSlide 4s ease-in-out infinite
}

.neon-line-1 {
    top: 18%;
    left: -20%;
    width: 60%;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    box-shadow: 0 0 15px var(--glow-cyan);
    animation-duration: 5s
}

.neon-line-2 {
    top: 55%;
    right: -30%;
    width: 50%;
    background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
    box-shadow: 0 0 15px var(--glow-pink);
    animation-delay: 1.5s;
    animation-duration: 6s
}

.neon-line-3 {
    top: 80%;
    left: -10%;
    width: 40%;
    background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
    box-shadow: 0 0 15px var(--glow-purple);
    animation-delay: 3s;
    animation-duration: 4.5s
}

@keyframes neonSlide {
    0% {
        transform: translateX(-50%);
        opacity: .3
    }

    50% {
        transform: translateX(100vw);
        opacity: 1
    }

    100% {
        transform: translateX(200vw);
        opacity: .3
    }
}

.grid-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(180deg, transparent, hsla(270, 30%, 10%, .5)), repeating-linear-gradient(90deg, hsla(270, 100%, 65%, .04) 0px, transparent 1px, transparent 60px), repeating-linear-gradient(0deg, hsla(270, 100%, 65%, .04) 0px, transparent 1px, transparent 60px);
    transform: perspective(400px) rotateX(45deg);
    transform-origin: bottom
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    animation: particleFloat 5s ease-in-out infinite
}

.particle-1 {
    top: 10%;
    left: 20%;
    background: var(--neon-cyan);
    box-shadow: 0 0 6px var(--neon-cyan);
    animation-duration: 4s
}

.particle-2 {
    top: 30%;
    left: 75%;
    background: var(--neon-pink);
    box-shadow: 0 0 6px var(--neon-pink);
    animation-delay: .5s;
    animation-duration: 5.5s
}

.particle-3 {
    top: 50%;
    left: 12%;
    background: var(--neon-purple);
    box-shadow: 0 0 6px var(--neon-purple);
    animation-delay: 1s;
    animation-duration: 4.8s
}

.particle-4 {
    top: 70%;
    left: 60%;
    background: var(--neon-cyan);
    box-shadow: 0 0 6px var(--neon-cyan);
    animation-delay: 1.5s;
    animation-duration: 5.2s
}

.particle-5 {
    top: 20%;
    left: 50%;
    background: var(--neon-yellow);
    box-shadow: 0 0 6px var(--neon-yellow);
    animation-delay: 2s;
    animation-duration: 4.5s
}

.particle-6 {
    top: 85%;
    left: 30%;
    background: var(--neon-pink);
    box-shadow: 0 0 6px var(--neon-pink);
    animation-delay: .8s;
    animation-duration: 5s
}

.particle-7 {
    top: 40%;
    left: 88%;
    background: var(--neon-purple);
    box-shadow: 0 0 6px var(--neon-purple);
    animation-delay: 2.5s;
    animation-duration: 4.2s
}

.particle-8 {
    top: 65%;
    left: 45%;
    background: var(--neon-green);
    box-shadow: 0 0 6px var(--neon-green);
    animation-delay: 1.2s;
    animation-duration: 5.8s
}

.particle-9 {
    top: 15%;
    left: 85%;
    background: var(--neon-cyan);
    box-shadow: 0 0 6px var(--neon-cyan);
    animation-delay: 3s;
    animation-duration: 4.6s
}

.particle-10 {
    top: 90%;
    left: 70%;
    background: var(--neon-yellow);
    box-shadow: 0 0 6px var(--neon-yellow);
    animation-delay: .3s;
    animation-duration: 5.4s
}

@keyframes particleFloat {

    0%,
    100% {
        opacity: .3;
        transform: translateY(0) scale(.8)
    }

    50% {
        opacity: 1;
        transform: translateY(-30px) scale(1.5)
    }
}

/* TOP */
.top-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    z-index: 1
}

.studio-badge {
    display: inline-block;
    padding: 6px 20px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .15em;
    color: var(--neon-cyan);
    background: hsla(185, 100%, 55%, .08);
    border: 1px solid hsla(185, 100%, 55%, .25);
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--glow-cyan)
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: .05em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px var(--glow-purple))
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.8
}

.hero-lead {
    font-size: .88rem;
    color: var(--text-sec);
    margin-bottom: 36px
}

.btn-start {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 44px;
    font-size: 1.08rem;
    font-weight: 700;
    font-family: var(--font);
    color: #fff;
    background: linear-gradient(135deg, var(--neon-purple), hsl(300, 80%, 50%));
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all .3s;
    box-shadow: 0 4px 24px var(--glow-purple), 0 0 60px hsla(270, 100%, 60%, .15);
    position: relative;
    overflow: hidden
}

.btn-start:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 36px var(--glow-purple), 0 0 80px hsla(270, 100%, 60%, .2)
}

.btn-start:active {
    transform: translateY(0) scale(.97)
}

.btn-arrow {
    transition: transform .3s
}

.btn-start:hover .btn-arrow {
    transform: translateX(4px)
}

.top-note {
    margin-top: 16px;
    font-size: .78rem;
    color: var(--text-muted)
}

.hero-features {
    display: flex;
    gap: 10px;
    margin-top: 36px;
    flex-wrap: wrap;
    justify-content: center
}

.feature-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    font-size: .78rem;
    color: var(--text-sec);
    background: var(--surface-glass);
    border: 1px solid hsla(270, 30%, 40%, .2);
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px)
}

/* QUESTION */
.question-screen {
    padding-top: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

.progress-area {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px
}

.btn-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-sec);
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0
}

.btn-back:hover {
    background: var(--surface-hover);
    color: var(--text)
}

.progress-bar-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px
}

.progress-bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: hsla(260, 20%, 30%, .4);
    overflow: hidden
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    transition: width .4s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 0 10px var(--glow-purple)
}

.progress-text {
    font-size: .78rem;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 35px;
    text-align: right
}

.question-area {
    text-align: center;
    margin-bottom: 32px
}

.question-badge {
    display: inline-block;
    padding: 4px 16px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--neon-cyan);
    background: hsla(185, 100%, 55%, .08);
    border: 1px solid hsla(185, 100%, 55%, .2);
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    letter-spacing: .05em;
    text-shadow: 0 0 8px var(--glow-cyan)
}

.question-text {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.8
}

.options-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-bottom: 40px
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    font-size: .95rem;
    font-weight: 500;
    font-family: var(--font);
    color: var(--text);
    background: var(--surface);
    border: 1px solid hsla(270, 20%, 40%, .15);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .25s;
    text-align: left;
    line-height: 1.5;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden
}

.option-btn:hover {
    border-color: hsla(270, 60%, 60%, .4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px hsla(270, 60%, 40%, .2)
}

.option-btn.selected {
    border-color: var(--neon-purple);
    background: hsla(270, 60%, 40%, .25);
    box-shadow: 0 0 20px hsla(270, 100%, 60%, .2);
    transform: scale(.97)
}

.option-btn.selected::after {
    content: '✓';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--glow-cyan)
}

.option-icon {
    font-size: 1.4rem;
    flex-shrink: 0
}

.fade-in {
    animation: fadeInUp .4s ease-out both
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* LOADING */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center
}

.loading-visual {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 32px
}

.loading-dancer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2
}

.loading-emoji {
    font-size: 56px;
    animation: loadDance 1.5s ease-in-out infinite
}

@keyframes loadDance {

    0%,
    100% {
        transform: rotate(0) scale(1)
    }

    25% {
        transform: rotate(-15deg) scale(1.05)
    }

    50% {
        transform: rotate(15deg) scale(1.1)
    }

    75% {
        transform: rotate(-10deg) scale(1.05)
    }
}

.loading-rings {
    position: absolute;
    inset: 0
}

.loading-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent
}

.ring-1 {
    inset: 0;
    border-top-color: var(--neon-purple);
    border-right-color: hsla(270, 100%, 65%, .3);
    animation: ringR 1.5s linear infinite
}

.ring-2 {
    inset: 15px;
    border-bottom-color: var(--neon-cyan);
    border-left-color: hsla(185, 100%, 55%, .3);
    animation: ringR 2s linear infinite reverse
}

.ring-3 {
    inset: 30px;
    border-top-color: var(--neon-pink);
    border-right-color: hsla(330, 100%, 65%, .3);
    animation: ringR 1.8s linear infinite
}

@keyframes ringR {
    to {
        transform: rotate(360deg)
    }
}

.loading-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-sec);
    margin-bottom: 20px
}

.loading-dots {
    display: flex;
    gap: 6px
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-purple);
    box-shadow: 0 0 8px var(--glow-purple);
    animation: dotP 1.2s ease-in-out infinite
}

.loading-dots span:nth-child(2) {
    animation-delay: .2s
}

.loading-dots span:nth-child(3) {
    animation-delay: .4s
}

@keyframes dotP {

    0%,
    100% {
        opacity: .3;
        transform: scale(.8)
    }

    50% {
        opacity: 1;
        transform: scale(1.2)
    }
}

/* RESULT */
.result-screen {
    padding-top: 32px
}

.result-card {
    background: var(--surface);
    border: 1px solid hsla(270, 20%, 40%, .15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(12px)
}

.result-header {
    text-align: center;
    padding: 40px 24px 32px;
    position: relative;
    overflow: hidden
}

.result-header::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none
}

.result-label {
    font-size: .85rem;
    color: var(--text-sec);
    margin-bottom: 16px;
    position: relative
}

.result-icon {
    font-size: 64px;
    margin-bottom: 16px;
    position: relative;
    animation: resultReveal .8s ease-out
}

@keyframes resultReveal {
    from {
        transform: scale(.5) rotate(-20deg);
        opacity: 0
    }

    60% {
        transform: scale(1.15) rotate(5deg)
    }

    to {
        transform: scale(1) rotate(0);
        opacity: 1
    }
}

.result-type {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 8px;
    position: relative;
    letter-spacing: .03em
}

.result-subtitle {
    font-size: .9rem;
    color: var(--text-sec);
    position: relative
}

/* Type colors */
.type-hiphop-street .result-header::before {
    background: linear-gradient(180deg, hsla(30, 100%, 50%, .12), transparent)
}

.type-hiphop-street .result-type {
    background: linear-gradient(135deg, hsl(30, 100%, 60%), hsl(15, 100%, 55%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.type-hiphop-groove .result-header::before {
    background: linear-gradient(180deg, hsla(270, 80%, 55%, .12), transparent)
}

.type-hiphop-groove .result-type {
    background: linear-gradient(135deg, hsl(270, 80%, 65%), hsl(300, 70%, 55%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.type-jazz .result-header::before {
    background: linear-gradient(180deg, hsla(42, 90%, 55%, .12), transparent)
}

.type-jazz .result-type {
    background: linear-gradient(135deg, hsl(42, 90%, 60%), hsl(25, 80%, 55%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.type-ballet .result-header::before {
    background: linear-gradient(180deg, hsla(330, 60%, 75%, .12), transparent)
}

.type-ballet .result-type {
    background: linear-gradient(135deg, hsl(330, 60%, 75%), hsl(300, 50%, 70%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.type-modern .result-header::before {
    background: linear-gradient(180deg, hsla(185, 80%, 50%, .12), transparent)
}

.type-modern .result-type {
    background: linear-gradient(135deg, hsl(185, 80%, 55%), hsl(160, 70%, 50%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.type-girls .result-header::before {
    background: linear-gradient(180deg, hsla(340, 100%, 65%, .12), transparent)
}

.type-girls .result-type {
    background: linear-gradient(135deg, hsl(340, 100%, 70%), hsl(320, 80%, 60%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.type-kpop .result-header::before {
    background: linear-gradient(180deg, hsla(280, 100%, 65%, .12), transparent)
}

.type-kpop .result-type {
    background: linear-gradient(135deg, hsl(280, 100%, 70%), hsl(320, 100%, 65%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.type-private .result-header::before {
    background: linear-gradient(180deg, hsla(50, 100%, 55%, .12), transparent)
}

.type-private .result-type {
    background: linear-gradient(135deg, hsl(50, 100%, 60%), hsl(35, 100%, 55%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.result-description,
.result-traits,
.result-chart,
.result-recommend,
.result-second {
    padding: 24px;
    border-top: 1px solid hsla(270, 20%, 40%, .1)
}

.result-description p {
    font-size: .92rem;
    line-height: 1.9;
    color: var(--text-sec);
    margin-bottom: 12px
}

.result-description p:last-child {
    margin-bottom: 0
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px
}

.traits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.traits-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .88rem;
    color: var(--text-sec);
    padding: 12px 14px;
    background: hsla(260, 20%, 20%, .4);
    border-radius: 12px;
    line-height: 1.6
}

.trait-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1.6
}

.chart-area {
    display: flex;
    justify-content: center;
    margin-bottom: 16px
}

.chart-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center
}

.chart-label-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    color: var(--text-muted)
}

.chart-label-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%
}

.recommend-card,
.second-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: hsla(260, 20%, 20%, .4);
    border-radius: 12px;
    line-height: 1.7
}

.recommend-card p,
.second-card p {
    font-size: .88rem;
    color: var(--text-sec)
}

.second-card {
    border: 1px solid hsla(270, 30%, 40%, .15)
}

.second-card .second-name {
    font-weight: 700;
    font-size: .95rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px
}

.second-card .second-reason {
    font-size: .82rem;
    color: var(--text-sec)
}

/* CTA */
.cta-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    align-items: center
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all .3s;
    width: 100%;
    max-width: 320px;
    text-decoration: none
}

.btn-trial {
    background: linear-gradient(135deg, var(--neon-purple), hsl(300, 80%, 50%));
    box-shadow: 0 4px 24px var(--glow-purple), 0 0 60px hsla(270, 100%, 60%, .1);
    animation: ctaPulse 2s ease-in-out infinite
}

@keyframes ctaPulse {

    0%,
    100% {
        box-shadow: 0 4px 24px var(--glow-purple), 0 0 60px hsla(270, 100%, 60%, .1)
    }

    50% {
        box-shadow: 0 6px 32px var(--glow-purple), 0 0 80px hsla(270, 100%, 60%, .2)
    }
}

.btn-trial:hover {
    transform: translateY(-3px)
}

.btn-share {
    background: linear-gradient(135deg, hsla(185, 100%, 55%, .2), hsla(270, 100%, 65%, .2));
    border: 1px solid hsla(185, 100%, 55%, .3)
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px hsla(185, 60%, 40%, .2)
}

.cta-icon {
    font-size: 1.2rem
}

.btn-retry {
    padding: 12px 32px;
    font-size: .88rem;
    font-weight: 500;
    font-family: var(--font);
    color: var(--text-sec);
    background: none;
    border: 1px solid hsla(270, 20%, 40%, .2);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all .2s
}

.btn-retry:hover {
    color: var(--text);
    border-color: hsla(270, 20%, 40%, .4);
    background: var(--surface)
}

.app-footer {
    text-align: center;
    padding: 24px;
    font-size: .72rem;
    color: var(--text-muted)
}

@media(max-width:400px) {
    .hero-title {
        font-size: 2rem
    }

    .result-type {
        font-size: 1.5rem
    }

    .btn-start {
        padding: 14px 32px;
        font-size: .98rem
    }
}

@media(min-width:481px) {
    .screen-inner {
        padding: 32px 24px 80px
    }

    .option-btn {
        padding: 20px 24px
    }
}