/* ==============================================
   PlayFun - Playful & Energetic Design
   Designed with distinctive aesthetics
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=DM+Sans:wght@400;500;700&display=swap');

/* CSS Variables */
:root {
    --primary: #FF6B35;
    --secondary: #FFD23F;
    --accent: #06FFA5;
    --pink: #FF5E99;
    --purple: #8B5FBF;
    --dark: #2D3142;
    --light: #FFFEF2;

    --font-display: 'Fredoka', sans-serif;
    --font-body: 'DM Sans', 'Malgun Gothic', sans-serif;
}

/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 기본 타이포그래피 */
body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--dark);
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE8F5 50%, #E6F9FF 100%);
    font-size: 16px;
    overflow-x: hidden;
}

/* 재미있는 배경 패턴 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 255, 165, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 210, 63, 0.08) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

/* 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 헤더 & 네비게이션 */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-nav {
    padding: 1.2rem 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transform: rotate(-2deg);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    display: inline-block;
}

.logo::after {
    content: '🎮';
    position: absolute;
    right: -30px;
    top: -5px;
    font-size: 1.2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(10deg); }
}

.logo:hover {
    transform: rotate(2deg) scale(1.1);
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    font-family: var(--font-display);
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-menu a:hover::before {
    width: 100%;
}

/* 드롭다운 네비게이션 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.nav-arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-dropdown.open .nav-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 3px solid var(--primary);
    border-radius: 16px;
    padding: 0.6rem 0;
    min-width: 200px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
    z-index: 200;
    list-style: none;
    animation: menuSlideDown 0.2s ease-out;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu li {
    border-bottom: none;
}

.nav-dropdown-menu li a {
    display: block;
    padding: 0.5rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-dropdown-menu li a::before {
    display: none;
}

.nav-dropdown-menu li a:hover {
    background: rgba(255, 107, 53, 0.08);
    color: var(--primary);
    transform: translateX(4px);
}

/* 브레드크럼 */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #888;
}

.breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 6px;
}

/* 메인 콘텐츠 */
main {
    background: transparent;
    min-height: 60vh;
    padding: 3rem 0;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

article {
    padding: 2rem 0;
}

h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 50%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    transform: rotate(-1deg);
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(-1deg);
    }
}

h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark);
    margin: 3rem 0 1.5rem;
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

h2::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 80%;
    background: linear-gradient(180deg, var(--secondary), var(--primary));
    border-radius: 4px;
}

h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin: 1.5rem 0 1rem;
}

p {
    margin-bottom: 1.2rem;
    line-height: 1.9;
    font-size: 1.05rem;
}

/* 콘텐츠 섹션 */
.content-section {
    margin: 3rem 0;
}

/* 광고 영역 */
.ad-section {
    margin: 4rem 0;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 3px dashed var(--accent);
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-0.5deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* 홈페이지 소개 섹션 */
.intro {
    background: linear-gradient(135deg, var(--primary) 0%, var(--pink) 50%, var(--purple) 100%);
    color: white;
    padding: 4rem 3rem;
    border-radius: 32px;
    margin: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(255, 107, 53, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0.3; }
}

.intro p {
    font-size: 1.3rem;
    line-height: 2;
    font-weight: 500;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 서비스 그리드 */
.services {
    margin: 4rem 0;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 3px solid var(--dark);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 8px 8px 0 var(--secondary);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 0.15;
}

.service-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 12px 12px 0 var(--primary);
    border-color: var(--primary);
}

.service-card h3 {
    font-family: var(--font-display);
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--dark);
    flex-grow: 1;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-block;
    background: var(--dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    border: 3px solid var(--dark);
}

.btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* 특징 섹션 */
.why-us {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 4rem 3rem;
    border-radius: 32px;
    margin: 4rem 0;
    border: 3px solid var(--accent);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out 0.5s both;
}

.why-us::before {
    content: '✨';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    opacity: 0.3;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.feature h3 {
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature h3::before {
    content: '🎯';
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.feature:nth-child(2) h3::before { content: '🚀'; }
.feature:nth-child(3) h3::before { content: '📱'; }
.feature:nth-child(4) h3::before { content: '⚡'; }
.feature:nth-child(5) h3::before { content: '✓'; }
.feature:nth-child(6) h3::before { content: '🔄'; }

/* 이용 방법 */
.how-to-use {
    margin: 4rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    border-radius: 32px;
    transform: rotate(-1deg);
    box-shadow: 0 20px 60px rgba(255, 210, 63, 0.3);
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.how-to-use h2 {
    color: var(--dark);
    margin-top: 0;
}

.how-to-use h2::before {
    background: linear-gradient(180deg, var(--primary), var(--pink));
}

.how-to-use ol {
    margin-left: 2.5rem;
    margin-top: 2rem;
    counter-reset: custom-counter;
    list-style: none;
}

.how-to-use li {
    margin-bottom: 2rem;
    line-height: 1.9;
    font-size: 1.1rem;
    position: relative;
    padding-left: 3rem;
    counter-increment: custom-counter;
}

.how-to-use li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: -5px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

/* 사이트 소개 */
.about-site {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-left: 8px solid var(--purple);
    border-radius: 24px;
    margin: 4rem 0;
    box-shadow: -10px 10px 0 var(--pink);
    animation: fadeIn 0.8s ease-out 0.7s both;
}

.about-site h2::before {
    background: linear-gradient(180deg, var(--purple), var(--pink));
}

/* 관련 서비스 섹션 */
.related-services {
    margin: 40px 0 20px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    text-align: center;
}

.related-services h2 {
    font-size: 1.3em;
    color: var(--dark);
    margin-bottom: 20px;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.related-links a {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.2s ease;
}

.related-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

@media (max-width: 768px) {
    .related-links {
        gap: 8px;
    }
    .related-links a {
        padding: 8px 14px;
        font-size: 0.85em;
    }
}

/* 푸터 */
footer {
    background: linear-gradient(135deg, var(--dark) 0%, var(--purple) 100%);
    color: #fff;
    padding: 3rem 0;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 210, 63, 0.1) 0%, transparent 70%);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

footer p {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 2.5rem;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-display);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.footer-nav a:hover::after {
    width: 100%;
}

/* ============================================
   햄버거 메뉴 버튼
   ============================================ */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.hamburger-line {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 반응형 - 모바일 (768px 이하) */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        transform: rotate(0deg);
    }

    h2 {
        font-size: 2rem;
    }

    h2::before {
        left: 0;
        top: -15px;
        width: 60%;
        height: 4px;
        transform: translateY(0);
    }

    .logo {
        font-size: 1.8rem;
    }

    .logo::after {
        right: -25px;
        font-size: 1rem;
    }

    /* 햄버거 메뉴 모바일 */
    .main-nav .container {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        border-top: 3px solid var(--primary);
        z-index: 100;
    }

    .nav-menu.active {
        display: flex;
        animation: menuSlideDown 0.3s ease-out;
    }

    @keyframes menuSlideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-menu a {
        display: block;
        padding: 16px 24px;
        font-size: 1.1rem;
    }

    .nav-menu a::before {
        display: none;
    }

    .nav-menu a:hover {
        background: rgba(255, 107, 53, 0.08);
        transform: none;
    }

    /* 모바일 드롭다운 */
    .nav-dropdown-menu {
        display: none;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.03);
        backdrop-filter: none;
        padding: 0;
        max-height: none;
        min-width: auto;
        animation: none;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu li a {
        padding: 12px 24px 12px 40px;
        font-size: 0.95rem;
    }

    .nav-dropdown-menu li a:hover {
        transform: none;
    }

    .nav-dropdown-toggle {
        display: block;
        padding: 16px 24px;
        font-size: 1.1rem;
    }

    header {
        position: sticky;
        top: 0;
    }

    .main-nav {
        position: relative;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        transform: rotate(0deg);
        box-shadow: 6px 6px 0 var(--secondary);
    }

    .service-card:hover {
        transform: translateY(-5px) rotate(0deg);
    }

    .features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* 푸터 모바일 - 수평 스크롤 */
    footer .container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-nav {
        flex-direction: row;
        gap: 2rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        justify-content: center;
        white-space: nowrap;
    }

    .footer-nav::-webkit-scrollbar {
        display: none;
    }

    .footer-nav a {
        flex-shrink: 0;
        font-size: 0.95rem;
    }

    .intro {
        padding: 3rem 2rem;
        transform: rotate(0deg);
    }

    .intro p {
        font-size: 1.1rem;
    }

    .how-to-use {
        padding: 2rem;
        transform: rotate(0deg);
    }

    .how-to-use li {
        padding-left: 3.5rem;
    }

    .why-us {
        padding: 3rem 2rem;
    }

    .about-site {
        padding: 2rem;
        box-shadow: -6px 6px 0 var(--pink);
    }
}

/* 반응형 - 태블릿 (769px ~ 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    h1 {
        font-size: 3rem;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 반응형 - 데스크톱 (1025px 이상) */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }

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

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

/* 접근성 */
a:focus,
button:focus {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* 스크롤 부드럽게 */
html {
    scroll-behavior: smooth;
}

/* 선택 영역 스타일 */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

/* 프린트 스타일 */
@media print {
    header,
    footer,
    .ad-section {
        display: none;
    }

    body {
        background: white;
    }

    body::before {
        display: none;
    }

    * {
        box-shadow: none !important;
        animation: none !important;
    }
}

/* ============================================
   계산기 & 테스트 섹션 스타일
   ============================================ */

/* 계산기 섹션 */
.calculator-section,
.test-section {
    margin: 3rem 0;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 32px;
    border: 4px solid var(--primary);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.2);
    animation: fadeInUp 0.6s ease-out;
}

/* 화면 전환 */
.calc-screen,
.test-screen {
    min-height: 400px;
    animation: fadeIn 0.5s ease-out;
}

/* 폼 스타일 */
.calc-form,
.test-intro {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--dark);
    font-size: 1.05rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 3px solid var(--dark);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    background: white;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* 버튼 스타일 확장 */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
    width: 100%;
    margin-top: 2rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: var(--dark);
    border-color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
    font-size: 1.1rem;
    padding: 1rem 2rem;
    width: auto;
    margin-top: 2rem;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* 결과 화면 - 계산기 */
.result-summary {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--pink) 100%);
    border-radius: 24px;
    color: white;
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
}

.result-summary h2 {
    color: white;
    margin-top: 0;
    margin-bottom: 2rem;
}

.result-summary h2::before {
    display: none;
}

.result-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    margin: 1.5rem 0;
}

.result-box .label {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.result-box .value {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.result-box .value.profit {
    color: var(--accent);
}

.result-box .value.loss {
    color: #FF5E99;
}

.health-score-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
}

.health-score-box .label {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.health-score-box .value {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.health-score-box .score-grade {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    opacity: 0.95;
}

/* 결과 상세 */
.result-details {
    padding: 2rem;
}

.result-details h3 {
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent);
}

.detail-item .label {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
}

.detail-item .value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
}

/* 건강 항목들 */
.health-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.health-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 3px solid var(--secondary);
}

.health-item h4 {
    font-family: var(--font-display);
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.health-item .status {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.health-item .status.status-good {
    background: var(--accent);
    color: var(--dark);
}

.health-item .status.status-warning {
    background: var(--secondary);
    color: var(--dark);
}

.health-item .status.status-danger {
    background: var(--pink);
    color: white;
}

.health-item .value {
    font-size: 0.95rem;
    color: var(--dark);
    opacity: 0.8;
}

.health-tips {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    border-radius: 16px;
}

.health-tips h3 {
    color: var(--dark);
    margin-top: 0;
}

.health-tips ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.health-tips li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.8;
}

.health-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.disclaimer {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 2rem;
    font-style: italic;
}

/* 테스트 인트로 */
.test-intro {
    text-align: center;
    padding: 3rem 2rem;
}

.intro-emoji {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

.intro-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.intro-desc {
    font-size: 1.2rem;
    color: var(--dark);
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* 진행바 */
.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 2px solid var(--primary);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2rem;
}

/* 질문 박스 */
.question-box {
    max-width: 700px;
    margin: 2rem auto;
    text-align: center;
}

.question-box h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.option-btn {
    padding: 1.5rem 2rem;
    background: white;
    border: 3px solid var(--dark);
    border-radius: 16px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: left;
}

.option-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* 결과 카드 - 테스트 */
.result-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
}

.result-emoji {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.result-type {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.result-type::before {
    display: none;
}

.result-subtitle {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pink);
    margin-bottom: 2rem;
}

.result-description {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--dark);
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border-left: 4px solid var(--primary);
}

.result-traits {
    text-align: left;
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #FFF9E6, #FFE8F5);
    border-radius: 16px;
}

.result-traits h3 {
    color: var(--primary);
    margin-top: 0;
}

.result-traits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.result-traits li {
    padding: 0.8rem 0;
    padding-left: 2.5rem;
    position: relative;
    line-height: 1.7;
    font-size: 1.05rem;
}

.result-traits li::before {
    content: '✨';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.result-tip,
.result-compatible {
    text-align: left;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border-left: 4px solid var(--accent);
}

.result-tip h3,
.result-compatible h3 {
    color: var(--primary);
    margin-top: 0;
}

.result-tip p,
.result-compatible p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* 모바일 반응형 - 계산기/테스트 */
@media (max-width: 768px) {
    .calculator-section,
    .test-section {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .health-items {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .result-box .value,
    .health-score-box .value {
        font-size: 2.2rem;
    }

    .result-type {
        font-size: 2rem;
    }

    .result-emoji {
        font-size: 4rem;
    }

    .intro-emoji {
        font-size: 3.5rem;
    }

    .question-box h3 {
        font-size: 1.4rem;
    }

    .option-btn {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }

    .option-btn:hover {
        transform: translateX(5px) scale(1.01);
    }
}

/* 스크롤바 스타일 (WebKit 브라우저) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--purple));
    border-radius: 6px;
    border: 2px solid var(--light);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--purple), var(--pink));
}