:root {
    --bg-color: #0f0c08;
    --text-color: #f1e9d2;
    --container-bg: #1a160d;
    --container-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    --input-bg: #2a2416;
    --input-border: #4d4128;
    --primary-color: #d4af37;
    --primary-hover: #f9d423;
    --secondary-color: #a6915d;
    --accent-color: #ffdf00;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    line-height: 1.6;
}

.container {
    background-color: var(--container-bg);
    padding: 3.5rem;
    border-radius: 32px;
    box-shadow: var(--container-shadow);
    max-width: 750px;
    width: 95%;
    margin: 60px auto;
    border: 1px solid var(--input-border);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: var(--gold-gradient);
}

header {
    text-align: center;
    margin-bottom: 3.5rem;
}

header h1 {
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    margin: 0;
    text-transform: uppercase;
}

.site-intro {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.tool-section { text-align: center; padding-bottom: 1rem; }
.tool-section h2 { font-size: 1.8rem; margin-bottom: 1.5rem; font-weight: 800; color: var(--primary-color); }

.analysis-notice {
    background: var(--gold-gradient);
    color: #1a160d;
    padding: 12px 28px;
    border-radius: 99px;
    font-size: 0.95rem;
    font-weight: 900;
    margin-bottom: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    animation: float 3.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.main-btn {
    width: 100%;
    padding: 22px;
    background: var(--gold-gradient);
    color: #1a160d;
    border: none;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 3rem;
    box-shadow: 0 15px 35px rgba(179, 135, 40, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 18px 35px rgba(179, 135, 40, 0.4);
}

/* Lotto Balls - High-End 3D Spherical Design */
.ball-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    margin: 2rem 0 3rem;
}

.ball-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    animation: fadeInRow 0.6s cubic-bezier(0.23, 1, 0.32, 1) backwards;
    position: relative;
    padding: 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.ball-row.premium-row {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
    transform: scale(1.05);
    z-index: 10;
}

.premium-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-gradient);
    color: #1a160d;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 12px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

@keyframes fadeInRow {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.ball-row:nth-child(1) { animation-delay: 0.1s; }
.ball-row:nth-child(2) { animation-delay: 0.2s; }
.ball-row:nth-child(3) { animation-delay: 0.3s; }
.ball-row:nth-child(4) { animation-delay: 0.4s; }
.ball-row:nth-child(5) { animation-delay: 0.5s; }

.ball {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 900;
    color: white;
    position: relative;
    background-image: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%),
                      radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.4) 100%);
    box-shadow: inset -4px -4px 10px rgba(0, 0, 0, 0.5),
                inset 4px 4px 10px rgba(255, 255, 255, 0.3),
                0 10px 20px rgba(0, 0, 0, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.ball::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 30%;
    height: 30%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    filter: blur(2px);
}

.info-content {
    margin-top: 4rem;
    padding: 2.2rem;
    background: var(--input-bg);
    border-radius: 22px;
    text-align: left;
    border: 1px solid var(--input-border);
}

.info-content h3 { color: var(--primary-color); font-weight: 800; font-size: 1.25rem; }

.contact-form { margin-top: 3rem; }
.contact-form hr, #comments hr, .site-footer hr { border: 0; border-top: 1px solid var(--input-border); margin: 2rem 0; }
.contact-form h3 { text-align: center; margin-bottom: 1.5rem; }
.contact-form form { display: flex; flex-direction: column; gap: 12px; }

.contact-form input, .contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.9rem;
}

.contact-form button {
    padding: 12px;
    background: var(--gold-gradient);
    color: #1a160d;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

#comments { margin-top: 2rem; }

.site-footer { border-top: 1px solid var(--input-border); padding-top: 2rem; text-align: center; }
.footer-links a { color: var(--primary-color); text-transform: uppercase; font-size: 0.8rem; text-decoration: none; margin: 0 10px; }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--container-bg);
    border: 2px solid var(--primary-color);
    border-radius: 28px;
    margin: 10% auto;
    padding: 3rem;
    width: 80%;
    max-width: 600px;
    position: relative;
    color: var(--text-color);
}

.close {
    position: absolute;
    top: 15px; right: 25px;
    font-size: 30px;
    cursor: pointer;
    color: var(--primary-color);
}
