@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #fdfaf6;
    color: #333;
    line-height: 1.6;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

.container {
    max-width: 960px;
    margin: 40px auto;
    padding: 20px 40px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
}

.page-header {
    font-size: 48px;
    font-weight: 900;
    color: #8B4513;
    text-align: center;
    margin-bottom: 40px;
}

.doge-logo {
    display: block;
    width: 120px;
    margin: 0 auto 30px auto;
}

/* Updated Lotto section for multiple sets */
#lotto-numbers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px; /* Increased gap for better separation */
    margin-bottom: 40px;
    perspective: 1000px;
}

.lotto-set {
    display: flex;
    justify-content: center;
    align-items: center; /* Vertically align items */
    gap: 12px; /* Adjusted gap */
    flex-wrap: wrap;
}

.number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, #d8b473, #b89154);
    color: white;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    opacity: 0;
    transform: scale(0.5);
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

.plus-icon {
    font-size: 30px;
    color: #b0a89a;
    font-weight: 700;
    margin: 0 5px;
    opacity: 0;
    animation: popIn 0.5s forwards;
}

.bonus-number {
    background: linear-gradient(145deg, #b0bec5, #90a4ae); /* Greyish gradient */
}

/* Dogecoin Conversion Section */
.doge-conversion {
    text-align: center;
    margin: 40px 0;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #eee;
}

.doge-conversion p {
    font-size: 16px;
    color: #555;
    margin: 0;
}

.doge-amount {
    font-size: 36px;
    font-weight: 800;
    color: #c7a25b;
    margin: 10px 0;
}

.generate-btn {
    display: block;
    margin: 0 auto;
    background-color: #e0c097;
    color: #333;
    border: none;
    padding: 18px 40px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(224, 192, 151, 0.5);
}

.generate-btn:hover:not(:disabled) {
    background-color: #c7a25b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(199, 162, 91, 0.6);
}

.generate-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Content pages */
.content-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #8B4513;
    margin-top: 30px;
    border-bottom: 3px solid #e0c097;
    padding-bottom: 10px;
}

.content-section p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Reaction Game Styles */
.reaction-box {
    width: 100%;
    height: 300px;
    margin: 20px auto;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none; /* Prevent text selection */
}

.reaction-box.wait {
    background-color: #5b9bd5; /* Calming blue */
}

.reaction-box.ready {
    background-color: #c00000; /* Bright red */
}

.reaction-box.go {
    background-color: #70ad47; /* Vibrant green */
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}


/* --- Responsive Design for Mobile --- */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .container {
        margin: 20px 15px;
        padding: 20px;
    }

    .page-header {
        font-size: 38px;
    }
    
    .doge-logo {
        width: 100px;
    }

    .number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .plus-icon {
        font-size: 24px;
    }

    .doge-amount {
        font-size: 28px;
    }

    .generate-btn {
        padding: 15px 30px;
        font-size: 18px;
    }

    .content-section h2 {
        font-size: 26px;
    }

    .content-section p, .content-section li {
        font-size: 16px;
    }
    
    .reaction-box {
        height: 250px;
        font-size: 22px;
    }
}
