body {
    margin: 0;
    padding: 0;
}

.container {
    width: 545px;
    margin: 0 auto;
    background: #f7f7f7;
}

#game {
    margin: auto;
    text-align: center;
}

.footer .alert {
    text-align: center;
    line-height: 35px;
}

.footer .alert img {
    margin-top: -3px;
    margin-right: 5px;
}

h1 {
    line-height: 64px;
    margin-bottom: 0;
}

.html5 {
    background: url('../img/html5.png');
    width: 64px;
    height: 64px;
    display: block;
    float: left;
    margin-right: 10px;
}

.html5 span {
    display: none;
}

h1 strong {
    color: #FF4444;
}

.credits {
    color: gray;
}

.credits a {
    color: gray;
    text-decoration: underline;
}

.credits a:hover {
    color: black;
}



.controls {
    padding: 0 20px 20px;
}

.controls h3 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.controls table {
    width: 100%;
    margin-bottom: 20px;
}

.controls th {
    background-color: #f8f9fa;
    padding: 10px;
    text-align: center;
}

.controls td {
    padding: 10px;
    text-align: center;
}

.controls .key {
    background-color: #e9ecef;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    color: #495057;
    display: inline-block;
    margin: 2px;
}

.controls .action {
    color: #666;
}

.controls .other-keys {
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
}

.controls .other-keys .key-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.arrow {
    font-size: 18px;
    line-height: 1;
}

.touch-controls {
    display: none;
    /* 默认隐藏 */
    text-align: center;
}

.touch-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #e9ecef;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    margin: 0 5px;
    font-size: 14px;
}