.tetris-modal.window {
    position: absolute;
    width: 260px;
    background: #23272e;
    border-radius: 12px;
    box-shadow: 0 8px 32px #000a;
    z-index: 1002;
    border: 2px solid #ff9800;
    font-family: 'Segoe UI', Arial, sans-serif;
    overflow: hidden;
}

.tetris-header {
    background: linear-gradient(90deg, #333 60%, #ff9800 100%);
    color: #fff;
    padding: 10px 14px;
    cursor: move;
    display: flex;
    align-items: center;
    border-radius: 12px 12px 0 0;
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: 1px;
    user-select: none;
}

.window-logo {
    width: 28px;
    height: 28px;
    margin-right: 10px;
}

.window-close {
    margin-left: auto;
    cursor: pointer;
    font-size: 1.5em;
    transition: color 0.2s;
}
.window-close:hover {
    color: #ff5252;
}

.tetris-body {
    padding: 12px 10px 14px 10px;
    background: #23272e;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

.tetris-scoreboard {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    background: #181c22;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px #0003;
    font-size: 1em;
    gap: 12px;
}

.score-label, .record-label {
    color: #aaa;
    font-size: 0.9em;
}

.score-value {
    color: #ffb300;
    font-size: 1.4em;
    font-weight: bold;
    min-width: 32px;
    text-align: right;
    text-shadow: 0 1px 2px #000a;
}

.record-value {
    color: #ff9800;
    font-size: 1.2em;
    font-weight: bold;
    min-width: 32px;
    text-align: right;
    text-shadow: 0 1px 2px #000a;
}


#tetrisCanvas {
    width: 200px;
    height: 400px;
    background: #111;
    border-radius: 6px;
    box-shadow: 0 2px 12px #0007;
    margin-bottom: 12px;
    margin-top: 4px;
    border: 2px solid #ff9800;
    display: block;
}


.tetris-btn {
    background: linear-gradient(90deg, #ff9800 60%, #ffb74d 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 24px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px #0003;
    transition: background 0.2s, transform 0.2s;
}
.tetris-btn:hover {
    background: linear-gradient(90deg, #f57c00 60%, #ffe0b2 100%);
    transform: scale(1.04);
}