* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; }
body { font-family: 'Noto Sans JP', sans-serif; overflow: hidden; background: #000; touch-action: none; color: #fff; }
#game-root { position: relative; width: 100vw; height: 100vh; }
canvas { display: block; width: 100%; height: 100%; }

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); z-index: 10; transition: opacity 0.3s; }
.hidden { opacity: 0; pointer-events: none; }

h1 { font-size: 5rem; margin-bottom: 1rem; text-align: center; color: #fff; text-shadow: 0 4px 10px rgba(0,0,0,0.8); font-weight: 900; letter-spacing: 2px; }
p { font-size: 1.2rem; margin-bottom: 2.5rem; text-align: center; max-width: 400px; color: #ccc; line-height: 1.6; }

.ui-btn { font-family: 'Noto Sans JP', sans-serif; padding: 15px 50px; font-size: 2rem; font-weight: 900; color: #fff; background: #e74c3c; border: 4px solid #fff; border-radius: 8px; cursor: pointer; box-shadow: 0 6px 0 #c0392b; transition: transform 0.1s; letter-spacing: 2px; }
.ui-btn:active { transform: translateY(6px); box-shadow: 0 0px 0 #c0392b; }

#hud { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; z-index: 5; pointer-events: none; }
.hud-box { background: rgba(255, 255, 255, 0.9); padding: 10px 20px; border-radius: 8px; font-size: 1.5rem; color: #000; font-weight: 900; box-shadow: 0 4px 10px rgba(0,0,0,0.5); display: flex; align-items: center; gap: 10px; }
.hud-box.player strong { color: #3498db; }
.hud-box.enemy strong { color: #e74c3c; }
.hud-box strong { font-size: 2.5rem; }

.action-btn { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); width: 80%; max-width: 400px; padding: 20px; font-family: 'Noto Sans JP', sans-serif; font-weight: 900; font-size: 3rem; color: #fff; background: #3498db; border: 6px solid #fff; border-radius: 20px; box-shadow: 0 10px 0 #2980b9; cursor: pointer; transition: transform 0.05s; z-index: 5; }
.action-btn:active { transform: translate(-50%, 10px); box-shadow: 0 0px 0 #2980b9; background: #2980b9; }
