:root {
    --primary-color: #8da378;
    --primary-dark: #748c5f;
    --accent-color: #d1b894;
    --bg-color: #fcfbf9;
    --card-bg: #ffffff;
    --text-main: #333333;
    /* Slightly darker for better readability */
    --text-muted: #666666;
    --border-color: #e8e6e1;
    --shadow-soft: 0 4px 20px rgba(141, 163, 120, 0.08);
    --shadow-hover: 0 8px 30px rgba(141, 163, 120, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    padding: 20px 10px;
    /* Reduced for mobile */
    line-height: 1.8;
    /* Increased for better readability */
}

.page-background {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120vw;
    height: 120vh;
    background: radial-gradient(circle at 20% 30%, rgba(209, 184, 148, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(141, 163, 120, 0.1) 0%, transparent 40%);
    z-index: -1;
}

.app-container {
    width: 100%;
    max-width: 800px;
    background: var(--card-bg);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: var(--shadow-soft);
    margin: 0 auto;
}

.screen {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1.app-title {
    font-size: 1.8rem;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 12px;
    font-weight: 700;
}

.app-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-weight: 500;
}

.separator {
    height: 1px;
    background-color: var(--border-color);
    margin: 30px 0;
}

.description {
    color: var(--text-main);
    margin-bottom: 40px;
    font-size: 1rem;
    text-align: left;
}

.primary-btn {
    width: 100%;
    padding: 18px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(141, 163, 120, 0.3);
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(141, 163, 120, 0.4);
}

.restart-container {
    text-align: center;
    margin-top: 50px;
}

.secondary-btn {
    padding: 14px 35px;
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.secondary-btn:hover {
    background: rgba(141, 163, 120, 0.05);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.4s ease;
}

.question-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.question-label {
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.question-counter {
    color: var(--text-muted);
    font-size: 1rem;
}

.question-text {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 45px;
    min-height: 80px;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.5;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 12px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background-color: rgba(141, 163, 120, 0.03);
}

.result-title {
    color: var(--text-main);
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.4;
}

.leader-type-card {
    background: rgba(209, 184, 148, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

.card-label {
    font-size: 0.95rem;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.highlight-text {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.detailed-desc {
    text-align: left;
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.8;
}

.detailed-desc p {
    margin-bottom: 15px;
}

.detailed-desc p:last-child {
    margin-bottom: 0;
}

.subtitle-box {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 40px;
}

.section-heading {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.section-subheading {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.natural-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.natural-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--primary-color);
}

.persona-header {
    background: rgba(141, 163, 120, 0.05);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.persona-header h4 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.4;
}

/* Image and Tags */
.persona-image-container {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding: 25px 15px;
    background: linear-gradient(to bottom, #fcfbf9, #ffffff);
}

/* Reduced image size and made it more pop/rounded */
.persona-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: contain;
    background-color: #f4f6f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 4px solid white;
    margin-bottom: 15px;
}

.profile-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.profile-tag {
    background: white;
    color: var(--primary-dark);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.persona-body {
    padding: 25px 20px;
}

.detail-section {
    margin-bottom: 40px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.section-title {
    color: var(--text-main);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
    line-height: 1.4;
}

.content-text {
    font-size: 1rem;
    color: var(--text-main);
    text-align: left;
    line-height: 1.8;
}

.content-text b {
    font-weight: 700;
    color: var(--primary-dark);
}

.action-tier {
    margin-bottom: 25px;
    background: rgba(209, 184, 148, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(209, 184, 148, 0.2);
}

.action-tier:last-child {
    margin-bottom: 0;
}

.action-label {
    display: block;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 12px;
    font-size: 1.05rem;
    background: rgba(209, 184, 148, 0.15);
    padding: 6px 12px;
    border-radius: 6px;
    border-left: 4px solid var(--accent-color);
}

.product-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.product-item:last-child {
    margin-bottom: 0;
}

.product-name {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 10px;
    display: block;
}

.product-why {
    font-size: 1rem;
    margin-bottom: 20px;
    display: block;
    color: var(--text-main);
    line-height: 1.8;
    text-align: left;
}

.product-phrase-box {
    background: rgba(141, 163, 120, 0.08);
    padding: 20px 15px 15px 25px;
    border-radius: 8px;
    position: relative;
}

.product-phrase-box::before {
    content: '“';
    position: absolute;
    top: -5px;
    left: 8px;
    font-size: 3rem;
    color: rgba(141, 163, 120, 0.2);
    font-family: serif;
    line-height: 1;
}

.phrase-label {
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.product-phrase {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* Advertisement Container */
.ad-container {
    width: 100%;
    min-height: 100px;
    background: #f0f0f0; /* Default background to show area before ad loads */
    border: 1px dashed #ccc;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    /* In actual use, AdSense handles sizing automatically if configured securely */
}

/* Footer for AdSense Compliance Links */
.app-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.app-footer a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.app-footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-divider {
    margin: 0 10px;
    color: var(--border-color);
}

/* Mobile Optimization Tweaks */
@media (max-width: 600px) {
    .app-container {
        padding: 30px 15px;
    }

    h1.app-title {
        font-size: 1.5rem;
    }

    .persona-body {
        padding: 20px 15px;
    }

    .leader-type-card {
        padding: 25px 15px;
    }

    .highlight-text {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .action-tier {
        padding: 15px;
    }

    .content-text,
    .detailed-desc,
    .product-why {
        font-size: 0.95rem;
    }

    /* Kept slightly larger than before for readbility */
    .persona-image {
        width: 120px;
        height: 120px;
    }

    /* Even smaller on mobile */
    .option-btn {
        font-size: 1rem;
    }
}
/* Numerology Detail Styles */
.numerology-detail h4 {
    margin: 20px 0 10px;
    font-size: 1.05rem;
    color: var(--primary-dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}
.numerology-detail p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 15px;
}

