/* 백색소음 플레이어 - 다크 그레이 수면 테마 */
:root {
    --primary: #5d6d7e;
    --primary-dark: #2c3e50;
    --primary-light: #85929e;
    --accent: #9b59b6;
    --bg-dark: #1a1a2e;
    --bg-card: rgba(93, 109, 126, 0.1);
    --text-primary: #ecf0f1;
    --text-secondary: #95a5a6;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* 터치 최적화 */
button, a, input, [role="button"], [role="link"] {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

input[type="text"], textarea {
    -webkit-user-select: text;
    user-select: text;
}

/* 테마 토글 - 언어 선택기 옆 */
.theme-toggle {
    position: fixed;
    top: 12px;
    right: 56px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-btn {
    background: rgba(44,62,80,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(44,62,80,0.6);
    color: #fff;
    font-size: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    background: rgba(44,62,80,0.7);
    transform: scale(1.05);
}

.lang-menu {
    position: absolute;
    top: 52px;
    right: 0;
    background: rgba(10,15,20,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(44,62,80,0.4);
    border-radius: 12px;
    padding: 8px;
    min-width: 150px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.lang-menu.hidden {
    display: none;
}

.lang-option {
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    color: #d8e0ea;
    transition: background 0.2s;
}

.lang-option:hover {
    background: rgba(44,62,80,0.3);
}

[data-theme="light"] .lang-option:hover {
    background: rgba(93, 109, 126, 0.1);
}

.lang-option.active {
    background: rgba(44,62,80,0.4);
    font-weight: 600;
}

[data-theme="light"] .lang-option.active {
    background: rgba(93, 109, 126, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #16213e 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

[data-theme="light"] body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #e8e8f0 100%);
}

/* App Loader */
.app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.app-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.loader-emoji {
    font-size: 48px;
    animation: loader-bounce 1s ease-in-out infinite;
}
.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: loader-spin 0.8s linear infinite;
}
.loader-text {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    font-weight: 500;
}
@keyframes loader-spin {
    to { transform: rotate(360deg); }
}
@keyframes loader-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 15px;
    min-height: 100vh;
}

/* 광고 배너 */
.ad-banner {
    height: 60px;
    background: var(--glass);
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 15px;
}

[data-theme="light"] .ad-banner {
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

.ad-banner::before {
    content: '광고 영역';
}

.bottom-ad {
    margin-top: 15px;
    margin-bottom: 0;
}

/* 헤더 */
.app-header {
    text-align: center;
    padding: 20px 0;
}

.app-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 3px;
}

/* 타이머 섹션 */
.timer-section {
    text-align: center;
    margin-bottom: 25px;
}

.timer-display {
    font-size: 3rem;
    font-weight: 300;
    color: var(--accent);
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
}

.timer-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.timer-btn {
    padding: 12px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--glass);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    font-weight: 500;
}

.timer-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.timer-btn:hover {
    background: var(--primary);
    color: white;
}

/* 믹서 섹션 */
.mixer-section {
    margin-bottom: 25px;
}

.mixer-section h2 {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 12px;
    margin-top: 20px;
    padding-left: 5px;
    border-left: 3px solid var(--accent);
}

.mixer-section h2:first-of-type {
    margin-top: 0;
}

.sound-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@keyframes waveAnimation {
    0%, 100% { height: 20%; opacity: 0.5; }
    50% { height: 80%; opacity: 1; }
}

@keyframes waveGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(155, 89, 182, 0.3), inset 0 0 10px rgba(155, 89, 182, 0.1); }
    50% { box-shadow: 0 0 30px rgba(155, 89, 182, 0.8), inset 0 0 15px rgba(155, 89, 182, 0.3); }
}

.sound-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 15px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    overflow: hidden;
}

[data-theme="light"] .sound-card:hover {
    background: rgba(155, 89, 182, 0.08);
}

.sound-card:hover {
    background: rgba(155, 89, 182, 0.2);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.sound-card.active {
    background: rgba(155, 89, 182, 0.3);
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(155, 89, 182, 0.6);
    animation: waveGlow 1.5s ease-in-out infinite;
}

.sound-card.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(155, 89, 182, 0.1) 2px,
        rgba(155, 89, 182, 0.1) 4px
    );
    animation: waveAnimation 0.5s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.6;
}

.sound-icon {
    font-size: 2rem;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.sound-card.active .sound-icon {
    transform: scale(1.15) translateY(-2px);
}

.sound-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sound-card.active .sound-name {
    color: var(--text-primary);
    font-weight: 600;
}

.volume-slider {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--glass-border);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    touch-action: manipulation;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(155, 89, 182, 0.5);
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    width: 22px;
    height: 22px;
    box-shadow: 0 0 16px rgba(155, 89, 182, 0.8);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(155, 89, 182, 0.5);
    transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    width: 22px;
    height: 22px;
    box-shadow: 0 0 16px rgba(155, 89, 182, 0.8);
}

/* 프리셋 섹션 */
.preset-section {
    margin-bottom: 25px;
}

.preset-section h2 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-align: center;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.preset-btn {
    padding: 16px 10px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 86px;
    touch-action: manipulation;
    font-weight: 500;
}

[data-theme="light"] .preset-btn:hover {
    background: rgba(93, 109, 126, 0.08);
}

.preset-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.preset-icon {
    font-size: 1.5rem;
}

.preset-name {
    font-size: 0.75rem;
}

/* 마스터 컨트롤 */
.master-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--glass);
    border-radius: 20px;
    margin-bottom: 20px;
}

[data-theme="light"] .master-section {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.master-volume {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.master-volume input {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--glass-border);
    border-radius: 3px;
    outline: none;
}

.master-volume input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
}

#volume-value {
    font-size: 0.8rem;
    color: var(--text-secondary);
    min-width: 35px;
}

@keyframes playPulse {
    0%, 100% { box-shadow: 0 5px 20px rgba(155, 89, 182, 0.4), inset 0 0 10px rgba(255,255,255,0.1); }
    50% { box-shadow: 0 8px 35px rgba(155, 89, 182, 0.7), inset 0 0 15px rgba(255,255,255,0.2); }
}

.play-btn {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #8e44ad);
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(155, 89, 182, 0.4);
    animation: playPulse 2s ease-in-out infinite;
    animation-delay: 0s;
    touch-action: manipulation;
    position: relative;
    z-index: 10;
}

.play-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 12px 40px rgba(155, 89, 182, 0.8);
    animation: none;
}

.play-btn:active {
    transform: scale(0.95);
}

.play-btn.playing {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    animation: none;
}

/* 프리미엄 버튼 */
.premium-section {
    text-align: center;
    margin-bottom: 20px;
}

.premium-btn {
    padding: 14px 25px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    position: relative;
    overflow: hidden;
}

.premium-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.5);
}

.ad-tag {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* 프리미엄 결과 */
.result-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 15px;
    backdrop-filter: blur(20px);
}

[data-theme="light"] .result-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.premium-result {
    border: 2px solid #f39c12;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(231, 76, 60, 0.1));
}

.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
}

#premium-content {
    white-space: pre-wrap;
    line-height: 1.8;
    color: var(--text-primary);
}

.hidden {
    display: none !important;
}

/* 전면 광고 */
.interstitial-ad {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.ad-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 350px;
}

.ad-placeholder {
    width: 280px;
    height: 200px;
    background: var(--glass);
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    color: var(--text-secondary);
}

#close-ad {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

#close-ad:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
}

/* 로딩 인디케이터 */
.loading-indicator {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.3), rgba(142, 68, 173, 0.3));
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-primary);
    display: inline-block;
    margin-top: 10px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Recommendations Section */
.recommendations-section { margin: 24px 0 0; padding: 0 16px; }
.rec-title { font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.5); margin-bottom: 12px; text-align: center; letter-spacing: 0.5px; }
.rec-grid { display: flex; flex-direction: column; gap: 10px; }
.rec-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; text-decoration: none; color: #fff; transition: all 0.2s ease; }
.rec-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }
.rec-icon { font-size: 28px; flex-shrink: 0; }
.rec-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rec-name { font-size: 14px; font-weight: 600; }
.rec-desc { font-size: 12px; color: rgba(255,255,255,0.5); }

/* 사용 통계 섹션 */
.usage-stats-section {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

[data-theme="light"] .usage-stats-section {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--accent);
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}

.usage-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.usage-stat {
    text-align: center;
    padding: 12px 8px;
    background: rgba(155, 89, 182, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(155, 89, 182, 0.15);
}

.usage-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.usage-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Game Footer & Back Link */
.game-footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.back-link, .home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 13px;
    padding: 12px 0;
    transition: color 0.2s;
}

.back-link:hover, .home-link:hover {
    color: rgba(255,255,255,0.7);
}

/* Cross-Promo Section (detox-timer 연동) */
.cross-promo-section {
    margin: 24px 0 20px;
    padding: 0 5px;
}

.promo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(93, 109, 126, 0.2) 0%, rgba(155, 89, 182, 0.15) 100%);
    border: 2px solid rgba(155, 89, 182, 0.3);
    border-radius: 16px;
    text-decoration: none;
    color: #c39bd3;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 56px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

[data-theme="light"] .promo-link {
    background: linear-gradient(135deg, rgba(93, 109, 126, 0.08) 0%, rgba(155, 89, 182, 0.05) 100%);
    border: 2px solid rgba(155, 89, 182, 0.2);
    color: var(--accent);
}

.promo-link:hover {
    border-color: #d7bde2;
    background: linear-gradient(135deg, rgba(93, 109, 126, 0.3) 0%, rgba(155, 89, 182, 0.25) 100%);
    box-shadow: 0 10px 30px rgba(155, 89, 182, 0.2);
    transform: translateY(-2px);
}

.promo-link:active {
    transform: scale(0.98);
}

.promo-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.promo-text {
    flex: 1;
    text-align: center;
    font-size: 0.95rem;
}

.promo-arrow {
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.promo-link:hover .promo-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* 사운드 카드 개선 - 선택 시 확실한 피드백 */
.sound-card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sound-card.active {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.3) 0%, rgba(155, 89, 182, 0.1) 100%);
    border: 2px solid rgba(155, 89, 182, 0.4);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.2);
    transform: translateY(-4px) scale(1.02);
}

.sound-card .volume-slider {
    height: 44px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.sound-card .volume-slider::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #9b59b6;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
}

.sound-card .volume-slider::-webkit-slider-thumb:hover {
    width: 24px;
    height: 24px;
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.5);
}

.sound-card .volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #9b59b6;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
    border: none;
}

.sound-card .volume-slider::-moz-range-thumb:hover {
    width: 24px;
    height: 24px;
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.5);
}

/* 크로스 프로모션 개선 */
.rec-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rec-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(93, 109, 126, 0.1);
    border: 1px solid rgba(155, 89, 182, 0.2);
    border-radius: 14px;
    text-decoration: none;
    color: #d8e0ea;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 60px;
}

[data-theme="light"] .rec-card {
    background: rgba(93, 109, 126, 0.05);
    border: 1px solid rgba(155, 89, 182, 0.15);
    color: var(--text-primary);
}

.rec-card:hover {
    background: rgba(155, 89, 182, 0.15);
    border-color: rgba(155, 89, 182, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(155, 89, 182, 0.15);
}

.rec-card:active {
    transform: scale(0.98);
}

.rec-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.rec-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rec-name {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
}

.rec-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}

/* 반응형 */
@media (max-width: 400px) {
    .sound-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sound-icon {
        font-size: 1.5rem;
    }

    .timer-display {
        font-size: 2.5rem;
    }

    .promo-text {
        font-size: 0.85rem;
    }

    .rec-name {
        font-size: 12px;
    }

    .rec-desc {
        font-size: 10px;
    }
}

/* === Accessibility Improvements === */
button:focus-visible,a:focus-visible,input:focus-visible,[role="button"]:focus-visible{outline:3px solid #2c3e50;outline-offset:2px;}
button,a[href],input[type="button"],input[type="submit"],[role="button"]{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;}
.skip-link{position:absolute;top:-40px;left:0;background:#2c3e50;color:white;padding:8px;text-decoration:none;z-index:100;}
.skip-link:focus{top:0;}
[role="dialog"]{z-index:1000;}
@media (prefers-reduced-motion: reduce){*{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important;}}
@media (prefers-contrast: more){button{border:2px solid #2c3e50;}}
.rec-card:focus-visible,.sound-btn:focus-visible{outline:3px solid #2c3e50;outline-offset:4px;}

/* Selection Color */
::selection {
    background: #5d6d7e;
    color: white;
}

::-moz-selection {
    background: #5d6d7e;
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark, var(--bg-primary, var(--background, #0f0f23)));
}

::-webkit-scrollbar-thumb {
    background: #5d6d7e;
    border-radius: 5px;
    border: 2px solid var(--bg-dark, var(--bg-primary, var(--background, #0f0f23)));
}

::-webkit-scrollbar-thumb:hover {
    background: #7d8a97;
    opacity: 0.8;
}
