* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 20px;
    transition: background 1.2s ease-in-out;
    position: relative;
    overflow-x: hidden;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 리퀴드 글래스 배경 효과 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.15) 0%, transparent 50%);
    animation: liquidFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes liquidFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-10px, -15px) rotate(1deg); }
    50% { transform: translate(15px, -10px) rotate(-1deg); }
    75% { transform: translate(-5px, 15px) rotate(0.5deg); }
}

/* Arc 스타일 스크롤바 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
}

/* Firefox 스크롤바 */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

.container {    
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    max-width: 1200px;
    width: 95%;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    pointer-events: none;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 3rem;
    font-size: 3rem;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.age-form {
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.form-group h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 600;
}

.date-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.date-inputs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 16px;
    pointer-events: none;
}

.date-inputs input[type="text"] {
    width: 80px;
    padding: 12px 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #333;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.date-inputs input[type="text"]:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 
        0 0 0 3px rgba(139, 92, 246, 0.1),
        0 4px 15px rgba(139, 92, 246, 0.2);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.date-inputs input[type="text"].error {
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: 
        0 0 0 3px rgba(236, 72, 153, 0.1),
        0 4px 15px rgba(236, 72, 153, 0.2);
    background: rgba(253, 242, 248, 0.2);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 에러 메시지 스타일 */
.error-message {
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    border: 1px solid #f9a8d4;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    color: #be185d;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.15);
    animation: slideIn 0.3s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.date-separator {
    font-weight: 600;
    color: rgba(139, 92, 246, 0.8);
    font-size: 16px;
    min-width: 30px;
    text-align: center;
    margin: 0 4px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.date-separator:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #333;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

input[type="date"]:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 
        0 0 0 3px rgba(139, 92, 246, 0.1),
        0 4px 15px rgba(139, 92, 246, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.loading-spinner {
    font-size: 18px;
    animation: spin 1s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

.result-container {
    margin-bottom: 3rem;
    min-height: 300px;
    /* 결과 영역 최소 높이 설정 */
    display: block;
    /* 항상 표시하여 레이아웃 유지 */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.result-container:empty::after {
    content: "생년월일을 입력하면 나이가 자동으로 계산됩니다";
    display: block;
    text-align: center;
    color: rgba(139, 92, 246, 0.7);
    font-style: italic;
    padding: 2rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem;
}

.result-container h2 {
    text-align: center;
    color: rgba(139, 92, 246, 0.9);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(139, 92, 246, 0.1);
}

.result {
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    min-height: 250px;
    /* 결과 내용 최소 높이 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 16px;
    pointer-events: none;
}

.result.success {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border: 1px solid #a5b4fc;
}

.result.error {
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    border: 1px solid #f9a8d4;
}

.result.loading {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #7dd3fc;
}

.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-height: 250px;
    /* 로딩 상태 최소 높이 */
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    margin: 1rem;
}

.loading-message p {
    color: #667eea;
    font-weight: 500;
    margin: 0;
}

.message {
    margin-bottom: 1rem;
    color: #7c3aed;
    font-weight: 500;
}

.result.error .message {
    color: #be185d;
}

.age {
    font-size: 1.2rem;
    color: #7c3aed;
    font-weight: 600;
}

.age-number {
    font-size: 2rem;
    color: #667eea;
    font-weight: bold;
}

.zodiac-simple {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
    margin-left: 8px;
}

/* 12지신 정보 스타일 */
.age-info {
    text-align: center;
    margin-bottom: 1rem;
}



/* 공유하기 섹션 */
.share-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.share-section h4 {
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.link-copy-btn {
    background: #8b5cf6;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.link-copy-btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.link-copy-btn:active {
    transform: translateY(0);
}

.image-save-btn {
    background: #ec4899;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
    margin-left: 5px;
}

.image-save-btn:hover {
    background: #db2777;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.image-save-btn:active {
    transform: translateY(0);
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.share-btn {
    padding: 12px;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: auto;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.kakao {
    background: #fee500;
    color: #000;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

.share-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

.share-btn.twitter {
    background: #000000;
    color: white;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

.share-icon {
    width: 20px;
    height: 20px;
    font-size: 16px;
    font-weight: bold;
}

.info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin: 0 auto 3rem auto;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.info h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info ul {
    list-style: none;
    padding-left: 0;
}

.info li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.info li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* 연령별 주요 권리·제도 섹션 */
.age-rights-section {
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.age-rights-section h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

.age-rights-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.age-right-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.age-right-item.highlight {
    background: linear-gradient(135deg, #fff, #f8f9ff);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.15);
    border: 2px solid #667eea;
    transform: translateY(-2px);
}



.age-right-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.age-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.age-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #333;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.result .age-number {
    color: #333;
}

.age-unit {
    font-size: 1.1rem;
    color: #555;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.age-right-item ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.age-right-item li {
    padding: 0.8rem 0;
    color: #333;
    line-height: 1.6;
    position: relative;
    padding-left: 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.age-right-item li:last-child {
    border-bottom: none;
}

.age-right-item li a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
}

.age-right-item li a:hover {
    color: #5a6fd8;
    background: rgba(102, 126, 234, 0.1);
    text-decoration: none;
    transform: translateX(3px);
}

/* 결과창 권리·제도 정보 스타일 */
.rights-info {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.rights-info h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.rights-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.right-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.right-item:last-child {
    border-bottom: none;
}

.right-icon {
    font-size: 1.2rem;
    min-width: 1.5rem;
    text-align: center;
}

.right-item.available .right-icon {
    color: #27ae60;
}

.right-item.locked .right-icon {
    color: #999;
}

.right-item a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.right-item a:hover {
    text-decoration: underline;
}

/* ===== PC 기본 스타일 ===== */

/* 전체 가독성 향상 - 단어 단위 줄바꿈 */
body {
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: background 0.8s ease;
}

/* 구글 애드센스 광고 컨테이너 */
.ad-container {
    margin: 2rem 0;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

/* 푸터 스타일 */
.footer {
    background: linear-gradient(135deg, #4c1d95, #581c87);
    color: white;
    margin-top: 4rem;
    padding: 3rem 0 1rem 0;
    border-radius: 20px 20px 20px 20px; /* 모든 모서리를 둥글게 */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 2rem;
}

.footer-section {
    flex: 1;
}

.footer-section h4 {
    color: #a855f7;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p, .footer-section li {
    color: #c4b5fd;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: 0.2rem 0;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0 0 0;
    margin-top: 2rem;
    border-top: 1px solid #581c87;
    color: #a78bfa;
}

/* 쿠키 동의 배너 - PC 기본 스타일 */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(76, 29, 149, 0.95);
    color: white;
    padding: 1.5rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
    display: block; /* 기본적으로 표시 */
    box-shadow: 0 -4px 20px rgba(139, 92, 246, 0.3);
}

/* 쿠키 동의 완료 시 숨김 */
.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    flex: 1;
    margin: 0;
    line-height: 1.5;
    font-size: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    min-width: 80px;
}

.btn-primary {
    background: #8b5cf6;
    color: white;
}

.btn-primary:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: #a78bfa;
    color: white;
}

.btn-secondary:hover {
    background: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.4);
}

/* 스크롤 상단 버튼 - PC 기본 스타일 */
.scroll-top-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    display: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn:active {
    transform: translateY(0);
}

/* ===== 모바일 미디어 쿼리 ===== */
@media (max-width: 600px) {
    /* 모바일 가독성 향상 - 단어 단위 줄바꿈 */
    body {
        word-break: keep-all;
        word-wrap: break-word;
        overflow-wrap: break-word;
        transition: background 1s ease-in-out;
    }
    
    /* 모바일 Arc 스타일 스크롤바 */
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(45deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
    }
    
    .container {
        padding: 1rem;
        margin: 0.5rem;
        max-width: 98%;
    }

    h1 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    .age-form {
        max-width: 95%;
    }

    .result-container {
        max-width: 95%;
    }

    .info {
        max-width: 95%;
    }

    .age-rights-section {
        max-width: 95%;
    }

    .age-rights-grid {
        max-width: 95%;
    }

    .age-number {
        font-size: 1.5rem;
    }

    .date-inputs {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .date-inputs input[type="text"] {
        width: 65px;
        padding: 12px 8px;
        font-size: 16px;
    }

    .date-separator {
        font-size: 14px;
        min-width: 20px;
        margin: 0 1px;
    }

    .share-buttons {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .share-btn {
        width: 50px;
        height: 50px;
    }

    .share-icon {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }

    .link-copy-btn,
    .image-save-btn {
        font-size: 1rem;
        padding: 8px 12px;
    }

    .rights-info {
        padding: 1rem;
        margin: 1rem 0;
    }

    .rights-info h4 {
        font-size: 1rem;
    }

    .right-item {
        gap: 0.6rem;
        padding: 0.4rem 0;
    }

    .right-icon {
        font-size: 1rem;
        min-width: 1.2rem;
    }

    .age-rights-grid {
        gap: 1.2rem;
        padding: 0.5rem 0;
        max-width: 95%;
    }

    .age-right-item {
        padding: 1.2rem;
        border-radius: 16px;
    }

    .age-header {
        padding: 0.8rem 1rem;
        margin-bottom: 1rem;
    }

    .age-number {
        font-size: 1.8rem;
    }

    .age-unit {
        font-size: 1rem;
    }

    .age-right-item li {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0.5rem 0;
    }

    .age-rights-section {
        padding: 1.5rem 1rem;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .info {
        padding: 1rem;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .result-container {
        padding: 0 0.5rem;
        border-radius: 16px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    /* 푸터 모바일 최적화 */
    .footer {
        margin-top: 1.5rem;
        padding: 1.5rem 0 1rem 0;
        border-radius: 20px 20px 20px 20px; /* 모든 모서리를 둥글게 */
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 0 0.8rem;
    }

    .footer-section {
        width: 100%;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-section p, .footer-section li {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .footer-bottom {
        padding: 1.5rem 0 0 0;
        margin-top: 1.5rem;
        font-size: 0.85rem;
    }

    /* 쿠키 배너 모바일 최적화 */
    .cookie-banner {
        padding: 0.8rem;
        margin: 0;
        border-radius: 0;
        background: rgba(76, 29, 149, 0.98);
        box-shadow: 0 -4px 20px rgba(139, 92, 246, 0.4);
    }

    .cookie-content {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        padding: 0 0.8rem;
    }
    
    .cookie-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        min-width: auto;
    }

    /* 스크롤 상단 버튼 모바일 최적화 */
    .scroll-top-btn {
        right: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
        box-shadow: 0 3px 10px rgba(139, 92, 246, 0.3);
    }
    
    .scroll-top-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    }
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: black;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #764ba2;
}


/* Section 태그 스타일 */
section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 2rem auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 800px;
}

section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    padding-bottom: 0.8rem;
}

section h3 {
    color: #444;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
    word-break: keep-all;
}

section ul, section ol {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

section li {
    margin-bottom: 0.5rem;
    word-break: keep-all;
}

section table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

section table th,
section table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    word-break: keep-all;
}

section table th {
    background: rgba(139, 92, 246, 0.1);
    color: #333;
    font-weight: 600;
}

section table td {
    color: #555;
}

section table tr:last-child th,
section table tr:last-child td {
    border-bottom: none;
}

section a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

section a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 모바일에서 section 스타일 */
@media (max-width: 600px) {
    section {
        padding: 1.5rem;
        margin: 1.5rem 0;
        border-radius: 16px;
    }
    
    section h2 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    
    section h3 {
        font-size: 1.1rem;
        margin: 1.2rem 0 0.8rem 0;
    }
    
    section p,
    section ul,
    section ol {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    section table {
        font-size: 0.9rem;
    }
    
    section table th,
    section table td {
        padding: 0.8rem;
    }
}