body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: #2a6d4e; /* Brighter version of the previous deep green */
    background-image: url('karakusa.png');
    background-size: 300px;
    background-repeat: repeat;
    background-blend-mode: soft-light; /* Soft light blend makes it look brighter than multiply */
    display: block;
    font-family: 'Outfit', 'Inter', 'Roboto', 'Noto Sans JP', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    animation: fadeIn 1s ease-out;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 3rem 0 1rem 0;
    text-align: center;
}

img {
    max-width: 90%;
    height: auto;
    border-radius: 12px;
}

.result-box {
    width: 90%; /* Responsive width with safe gaps */
    margin: 1.5rem auto 3rem auto; /* Centered with vertical spacing */
    display: block;
}

.result-title {
    font-size: 2.8rem; /* Significantly larger */
    font-weight: 800;
    margin-bottom: 2rem;
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    letter-spacing: 2px;
    
    /* Gold Gradient & Sparkle/Shine effect */
    background: linear-gradient(
        to right, 
        #bf953f, 
        #fcf6ba, 
        #b38728, 
        #fbf5b7, 
        #aa771c
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Animation for the shimmer */
    animation: shine 3s linear infinite;
    
    /* Outline to improve readability */
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.2); 
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.8));
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.results-window {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background-color: rgba(42, 109, 78, 0.95);
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    overflow-y: auto;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.results-window a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    padding: 4px 0;
    transition: all 0.2s ease;
    width: 100%; /* Make the whole line clickable */
}

.results-window a:hover {
    color: #ffd700; /* Gold/Yellow for visibility */
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
    padding-left: 10px;
}

.results-window::-webkit-scrollbar {
    width: 8px;
}

.results-window::-webkit-scrollbar-track {
    background: #1a4d2e;
    border-radius: 10px;
}

.results-window::-webkit-scrollbar-thumb {
    background: #2a6d4e;
    border-radius: 10px;
}

/* Counter Styles */
.counter-container {
    margin: 1.5rem auto 0 auto;
    width: fit-content;
    padding: 0.8rem 2rem;
    display: block;
    background: rgba(42, 109, 78, 0.8);
    border-radius: 30px;
    border: 2px solid #ffd700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: slideUp 1.2s ease-out;
    backdrop-filter: blur(5px);
}

.counter-text {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Noto Sans JP', sans-serif;
    vertical-align: middle;
}

.counter-number {
    color: #ffd700;
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Outfit', 'Inter', monospace;
    margin: 0 1rem;
    letter-spacing: 3px;
    vertical-align: middle;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}
