/* Reset & base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #1a1a1a;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    width: 320px;
    text-align: center;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

header h1 {
    font-size: 1.3rem;
}

.scoreboard span {
    margin-right: 10px;
    font-weight: bold;
}

button {
    cursor: pointer;
    padding: 5px 10px;
    border: none;
    background-color: #ff5722;
    color: #fff;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.2s;
}

button:hover {
    background-color: #e64a19;
}

.grid {
    display: grid;
    grid-template-columns: repeat(10, 30px);
    grid-template-rows: repeat(10, 30px);
    gap: 2px;
    background-color: #333;
    padding: 5px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.cell {
    width: 30px;
    height: 30px;
    background-color: #222;
    border-radius: 4px;
    transition: background 0.2s;
}

.cell.filled {
    background-color: #ff5722;
}

.next-blocks {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.blocks-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.block {
    display: grid;
    gap: 2px;
}

.block .cell {
    width: 20px;
    height: 20px;
    background-color: #ff5722;
}
  
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30,30,30,0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.hidden {
    display: none;
}
