body {
    font-family: 'Rubik Distressed', cursive;
    background-color: #0c0a18;
    background-image: linear-gradient(to bottom, #0c0a18, #1a1433, #3b2f5b);
    color: #ff9800;
    overflow: hidden;
    touch-action: none;
}

canvas {
    background-color: rgba(0,0,0,0.2);
    border-radius: 0.75rem;
    cursor: crosshair;
    display: block;
    width: 100%;
}
.game-title {
    letter-spacing: 0.1em;
    text-shadow: 0 0 5px #ff9800, 0 0 5px #ff5722;
}
.ui-panel, .modal {
    font-family: 'Jolly Lodger', cursive;
    text-shadow: none;
}
.font-rubik {
    font-family: 'Rubik Distressed', cursive;
}
.ghost {
    position: absolute;
    font-size: 3rem;
    opacity: 0.1;
    animation: float 10s ease-in-out infinite;
    pointer-events: none;
}
.ghost.g1 { top: 20%; left: 5%; animation-duration: 12s; }
.ghost.g2 { top: 60%; right: 8%; animation-duration: 9s; animation-delay: 2s; }
.ghost.g3 { top: 80%; left: 15%; animation-duration: 15s; animation-delay: 5s; }
.ghost.g4 { top: 40%; left: 85%; animation-duration: 11s; animation-delay: 3s; }
.ghost.g5 { top: 5%; right: 40%; animation-duration: 13s; animation-delay: 1s; }
.pumpkin-logo {
    filter: drop-shadow(0 0 5px #ff9800);
}

.btn-primary {
    background-color: rgba(249, 115, 22, 0.5); /* orange-500 semi-transparent */
    color: #ff9800; /* Text matches title color */
    font-weight: bold;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: 9999px; /* Fully rounded corners */
    transition-property: background-color;
    transition-duration: 300ms;
    box-shadow: 0 10px 15px -3px rgb(249 115 22 / 0.2), 0 4px 6px -4px rgb(249 115 22 / 0.2);
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}
.btn-primary:hover {
    background-color: rgba(234, 88, 12, 0.7); /* orange-600 semi-transparent */
}
.btn-primary:disabled {
    background-color: rgba(107, 114, 128, 0.5);
    cursor: not-allowed;
}
 .btn-secondary {
    background-color: #9333ea; /* purple-600 */
    color: white;
    font-weight: bold;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.125rem; /* text-lg */
    transition-property: background-color;
    transition-duration: 300ms;
}
.btn-secondary:hover {
     background-color: #7e22ce; /* purple-700 */
}

.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.hide-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

#time-bar-inner {
    transition: width 0.1s linear;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(-5deg); }
    50% { transform: translateY(-40px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(-5deg); }
}

/* --- STYLES FOR MATCH EFFECT --- */
.radiate-effect {
    position: absolute;
    animation: radiate 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 10;
    overflow: visible; /* Prevents the outline from being clipped */
}

.radiate-effect polygon {
    fill: none;
    stroke: #FFFFFF; /* Pure white */
    stroke-width: 6px; /* Adjust for desired thickness */
}

.floater-effect polygon {
    stroke: #FFD700; /* A nice gold color for a high score */
    stroke-width: 8px;
}

@keyframes radiate {
    from {
        transform: scale(0.5);
        opacity: 1;
    }
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}
/* --- END STYLES FOR MATCH EFFECT --- */
