body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    font-family: 'Noto Sans TC', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    user-select: none;
    overflow: hidden;
}

#wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

#header h1 {
    color: #f55;
    margin: 0;
    font-size: 32px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #fff;
}

#header p {
    font-size: 24px;
    margin: 0;
    color: #f00;
}

#header .back {
    color: #ccc;
    text-decoration: none;
    border: 1px solid #555;
    padding: 6px 15px;
    border-radius: 4px;
    transition: 0.2s background, 0.2s color;
}
#header .back:hover {
    background: #555;
    color: #fff;
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    box-shadow: 0 0 0 4px #555, 0 0 30px rgba(255,0,0,0.5);
    background: #222;
}

#gameCanvas {
    display: block;
}

#death-msg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.9);
    border: 4px solid #f00;
    color: #f00;
    padding: 30px 40px;
    font-size: 32px;
    font-weight: 900;
    text-align: center;
    display: none;
    border-radius: 10px;
    box-shadow: 0 0 50px #f00;
    white-space: pre-wrap;
    width: 80%;
}

.controls-guide {
    margin-top: 15px;
    color: #888;
    font-size: 15px;
    text-align: center;
    line-height: 1.5;
}
