:root {
    /* 使用 vmin 动态计算卡片大小，确保在横竖屏下都能放下 */
    --card-width: 10vmin; 
    --card-height: 13.75vmin; /* 保持 80:110 的比例 */
    --bg-color: #2e7d32;
}
/* 限制最大尺寸，防止在大屏幕上卡片过大 */
@media (min-width: 1024px) {
    :root {
        --card-width: 80px;
        --card-height: 110px;
    }
}
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image: url('https://4a4file.20050730.xyz/banner/unitgreen.svg');
    background-repeat: repeat;
    background-size: 50px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    user-select: none; /* 全局禁止选中 */
}
#game-board {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hidden { display: none !important; }
.last-played-highlight { filter: brightness(1.2); }
