/* ========================================
   基本設定
   ======================================== */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #111;
    color: #fff;
}

/* ========================================
   ゲームコンテナ
   ======================================== */
.game-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #2a2a3e 0%, #000000 100%);
    max-height: 100%;
    object-fit: contain;
}

/* ========================================
   フィードバックメッセージ
   ======================================== */
.feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
    color: #ff0;
    text-shadow: 0 0 10px #f00;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 100;
    white-space: nowrap;
}

.feedback.show {
    opacity: 1;
    animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.0);
    }
}

/* ========================================
   レスポンシブ対応
   ======================================== */
@media (max-width: 600px) {
    #gameCanvas {
        width: 95vw;
        height: auto;
        aspect-ratio: 2 / 3;
    }
}