body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #111;
    color: #fff;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    user-select: none;
}

.back-btn {
    align-self: flex-start;
    margin-bottom: 15px;
    text-decoration: none;
    color: #eee;
    font-weight: bold;
    background: #222;
    border: 1px solid #555;
    padding: 8px 16px;
    border-radius: 20px;
}

.game-container {
    width: 100%;
    max-width: 500px;
    background: #000;
    border: 4px solid #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.status-area {
    background: #000;
    border-bottom: 4px solid #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: bold;
}
.status-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.enemy-status-area {
    background: #1a1a1a;
    border-bottom: 4px solid #fff;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #ff6b6b;
}

.message-area {
    background: #000;
    height: 180px;
    padding: 20px;
    font-size: 1.05rem;
    line-height: 1.6;
    border-bottom: 4px solid #fff;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.command-area {
    background: #000;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-height: 120px;
}

button {
    background-color: #000;
    color: #fff;
    border: 2px solid #fff;
    padding: 12px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    border-radius: 4px;
    transition: background 0.1s;
}
button:hover:not(:disabled) {
    background-color: #333;
}
button:active:not(:disabled) {
    background-color: #555;
}
button:disabled {
    border-color: #555;
    color: #555;
    cursor: not-allowed;
}

.title-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    text-align: center;
    gap: 20px;
}

.title-screen input[type="text"] {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    padding: 10px;
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
    border-radius: 4px;
    width: 80%;
    max-width: 250px;
}
.title-screen input[type="text"]:focus {
    outline: none;
    border-color: #2ecc71;
}
.title-screen button {
    text-align: center;
    width: 80%;
    max-width: 250px;
}

/* 武器レア度カラー */
.rarity-normal { color: #ccc; }
.rarity-rare { color: #3498db; }
.rarity-super { color: #b76bff; }
.rarity-ultra { color: #ffd700; font-weight: bold; }

.weapon-compare {
    background: #111;
    border: 2px dashed #fff;
    border-radius: 4px;
    padding: 8px 10px;
    margin: 8px 0;
    font-size: 0.95rem;
}
