:root {
    --primary-color: #4361ee;
    --secondary-color: #4895ef;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --shadow: 0 10px 40px rgba(67, 97, 238, 0.05);
    --radius: 24px;
    --transition: all 0.2s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: #ffffff;
    color: var(--text-main);
}

body {
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

#app {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, p, div, span {
    color: #0f172a;
    word-break: keep-all;
}

/* 어두운 배경 위의 텍스트는 반드시 밝은 색으로 (가독성 핵심) */
.text-on-dark {
    color: #ffffff !important;
}

h1 { font-size: clamp(2rem, 8vw, 3rem); font-weight: 950; text-align: center; margin-bottom: 25px; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 900; margin-bottom: 30px; text-align: center; }

/* Buttons */
.btn-start, .btn-cta, .btn-share, .btn-light {
    width: calc(100% - 30px);
    margin: 0 auto 15px;
    padding: 24px 15px !important;
    border: none;
    border-radius: 20px;
    font-size: 1.5rem !important;
    font-weight: 950 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    min-height: 70px;
}

.btn-start { background: #4361ee !important; color: #ffffff !important; }
.btn-share { background: #4361ee !important; color: #ffffff !important; box-shadow: 0 10px 25px rgba(67, 97, 238, 0.2); }
.btn-cta { background: #1e293b !important; color: #ffffff !important; }
.btn-light { background: #f0f7ff !important; color: #4361ee !important; border: 2px solid #eef2ff !important; }

.btn-option {
    width: 100%;
    padding: 22px 20px;
    margin-bottom: 12px;
    background: #ffffff;
    border: 3px solid #f1f5f9;
    border-radius: 20px;
    font-size: 1.25rem;
    font-weight: 850;
    color: #1e293b;
    text-align: left;
    cursor: pointer;
}

.analysis-section {
    width: 100%;
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 24px;
    border: 2px solid #f1f5f9;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.analysis-section h3 { color: #4361ee; font-size: 1.5rem; font-weight: 950; margin-bottom: 12px; }
.analysis-section p { font-size: 1.25rem; font-weight: 800; line-height: 1.7; color: #334155; }

.ad-slot {
    width: calc(100% - 30px);
    margin: 20px auto;
    border-radius: 20px;
    background: #f8faff;
    border: 1px dashed #e2e8f0;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.screen { padding: 20px; flex: 1; display: none; flex-direction: column; width: 100%; }
.screen.active { display: flex; animation: fadeIn 0.3s ease-out; }
