.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
#crossword { display: grid; gap: 1px; }
@keyframes correctAnimation {
    0% {
        transform: scaleX(1);
        background-color: rgb(138, 180, 138);
    }
    50% {
        transform: scaleX(0);
        background-color: white;
    }
    100% {
        transform: scaleX(1);
        background-color: rgb(19, 141, 19);
        color: black;
    }
}
@keyframes correctValidate {
    0% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0);
        background-color: white;
        border: 1px solid #fbbf24;
    }
    100% {
        transform: scaleY(1);
        background-color: rgba(0, 0, 0, 0.707);
        border: 1px solid #fbbf24;
        color: #fbbf24;
    }
}
.correct-animation { animation: correctAnimation 800ms ease-in-out forwards; }
.correct-validate { animation: correctValidate 400ms ease-in-out forwards; }
.cell { width: 30px; height: 30px; border: 1px solid #000; text-align: center; font-size: 20px; text-transform: uppercase; color: black; }
.word-cell { background-color: #f0f0f0; }
.champion-cell { background-color: #93c5fd; }
.clubs-cell { background-color: #fdba74; }
.gamerelated-cell { background-color: #fde047; }
.non-word-cell { background-color: #dddddd6f; pointer-events: none; }
.correct { }
.correct-key { color: black; background-color: rgb(19, 141, 19); }
.incorrect { color: black; border: 2px solid rgb(219, 2, 2); }
.revealed-incorrect { background-color: red; color: black; }
.attempt-circle { display: inline-block; width: 20px; height: 20px; border-radius: 50%; margin: 0 5px; border: 2px solid #fff; }
.attempt-used { background-color: red; }
.attempt-success { background-color: green; }
.copy-success-message {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #16a34a;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    font-weight: bold;
    text-align: center;
    font-family: inherit;
    font-size: 14px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.3s ease-in-out;
}
.copy-success-message.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.copy-success-message.hide {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}
#share-crossword-btn, #play-another-modal-btn {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 0.25rem !important;
    margin-bottom: 1rem !important;
}
#result-visual pre {
    display: inline-block;
    margin: 0;
    padding: 2px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    border: 1px solid #374151;
}
#share-crossword-btn {
    background-color: #000000 !important;
    overflow: hidden;
    padding: 4px;
    color: white !important;
    font-size: large;
    margin: 2px;
}
#share-crossword-btn:hover {
    background-color: rgba(251 191 36) !important;
    color: black !important;
}
#play-another-modal-btn {
    background-color: #1d4ed8 !important;
    padding: 4px;
    color: white !important;
    font-size: large;
    margin: 2px;
}
#play-another-modal-btn:hover {
    background-color: #79acff !important;
    color: black !important;
}
.modal-action button {
    background-color: white !important;
    color: black !important;
    border: 1px solid #d1d5db !important;
}
#share-after-complete {
    border: 1px solid rgba(251 191 36);
    border-radius: 4px;
    background: #000000;
    position: relative;
    overflow: hidden;
    font-size: 1.25rem;
    line-height: 1.75rem;
}
#share-after-complete:before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100%;
    background-image: linear-gradient(
        120deg,
        rgba(255,255,255, 0) 30%,
        rgba(251 191 36),
        rgba(255,255,255, 0) 70%
    );
    top: 0;
    left: -000px;
    animation: shine 4s infinite linear;
}
@keyframes shine {
    0% {left: -100px}
    20% {left: 100%}
    100% {left: 100%}
}