@charset "utf-8";

/* --- 共通の変数 --- */
:root {
    --font-size: 40px; /* 基本の文字サイズ */
}

/* --- ブラウザ全体のリセット --- */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #000000; /* 画面外の余帯の色（黒） */
    overflow: hidden;          /* スクロールバーを出さない */
    font-family: Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

/* 画面全体を中央寄せする親フレーム */
#game-viewport {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #000000;
}

/* 720×1280 のゲーム画面本体（JSでスケーリングされる土台） */
#game-container {
    width: 720px;
    height: 1280px;
    position: absolute;
    transform-origin: center center; 
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

/* --- 画面（スクリーン）切り替え用共通クラス --- */
.screen {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.screen.active {
    display: flex;
}

/* --- 共通ボタンデザイン --- */
.btn {
    width: 100%;
    padding: 20px;
    font-size: var(--font-size);
    font-weight: bold;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s ease;
}

.btn:active {
    transform: scale(0.98);
}

.primary-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
}

.secondary-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #cbd5e1;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* --- ユーティリティクラス --- */
.hidden {
    display: none !important;
}