/* --- ベース設定 --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    font-family: 'Courier New', Courier, monospace;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hidden {
    display: none !important;
}

/* --- メニュー画面 --- */
#menu-screen {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                repeating-conic-gradient(#3a3a3a 0% 25%, #2b2b2b 0% 50%) 50% / 64px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.logo-container {
    text-align: center;
}

.mc-logo {
    font-size: 64px;
    font-weight: bold;
    color: #ddd;
    text-shadow: 4px 4px 0px #3f3f3f, 6px 6px 0px #000;
    letter-spacing: 4px;
}

.edition-tag {
    color: #ffff55;
    font-size: 18px;
    text-shadow: 2px 2px 0px #3f3f00;
    font-weight: bold;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 300px;
}

.mc-button {
    background-color: #707070;
    border: 3px solid;
    border-color: #a8a8a8 #373737 #373737 #a8a8a8;
    color: #fff;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 2px 2px 0px #000;
}

.mc-button:hover:not(.disabled) {
    background-color: #8b8b8b;
    border-color: #c6c6c6 #555555 #555555 #c6c6c6;
    color: #ffffa0;
}

.mc-button:active:not(.disabled) {
    border-color: #373737 #a8a8a8 #a8a8a8 #373737;
}

.mc-button.disabled {
    background-color: #4a4a4a;
    border-color: #606060 #2a2a2a #2a2a2a #606060;
    color: #888;
    cursor: not-allowed;
}

/* --- ゲーム画面 (HUD) --- */
#game-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    line-height: 1;
    pointer-events: none;
    mix-blend-mode: difference;
}

#hud {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

#hotbar {
    display: flex;
    background-color: rgba(0, 0, 0, 0.6);
    border: 4px solid #3c3c3c;
    border-radius: 2px;
}

.hotbar-slot {
    width: 44px;
    height: 44px;
    border: 2px solid #8b8b8b;
    background-color: rgba(139, 139, 139, 0.3);
    box-shadow: inset 2px 2px 0px #373737, inset -2px -2px 0px #ffffff;
}

.hotbar-slot.selected {
    border: 3px solid #ffffff;
    box-shadow: 0 0 6px #ffffff;
}