body {
    background-color: #ffffff;
    font-family: sans-serif;
    margin: 0;
    padding: 40px 20px 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    position: relative;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 36px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 250px);
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
}

.card {
    height: 100px;
    border: 2px solid #000;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;
    transition: transform 0.1s, box-shadow 0.1s;
    user-select: none;
    padding: 15px;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 #000;
}

.card:active {
    transform: translateY(0);
    box-shadow: none;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 14px;
    padding: 8px 0;
    height: auto; 
}


br {
    display: block; 
}


.game-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
}

#gameFrame {
    width: 100%;
    height: 100%;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #3b3535;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    font-weight: bold;
}

body.no-scroll {
    overflow: hidden;
}