/* 网格基础样式 */
main > #grid {
    display: grid !important;
    width: 95vmin !important;
    max-width: 450px !important;
    aspect-ratio: 1 !important;
    margin: 0 auto !important;
    background-color: #f5f5f5 !important;
    box-sizing: border-box;
}

#grid > .line {
    display: contents;
}

.line > .case {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: box-shadow 0.3s, background-color 0.2s !important;
    border: 1px solid #ddd !important;
    box-sizing: border-box;
    transition: box-shadow 0.3s;
}

.line > .case:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .line > .case {
        font-size: 20px !important;
    }
}
