/* Noto Sansフォントを読み込み（ローカルファイルから） */
@font-face {
    font-family: 'Noto Sans';
    src: url('../fonts/NotoSans-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('../fonts/NotoSans-Italic-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

html, body {
    margin: 0;
    padding: 0;  height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  *, *::before, *::after {
    box-sizing: inherit;
  }
  

body {
    font-family: 'Noto Sans', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #fff;
    background-color: #000000;
    margin: 0;
    padding: 0;
}

#startup-screen {
    position: fixed; /* ←推奨（画面いっぱい表示） */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
  }
  
  #title-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: top;
    z-index: -1;
    animation: fadeInTitle 2s ease-in-out forwards;
  }
  
  
  @keyframes fadeInTitle {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  

#battle-container {
    position: fixed; /* ←推奨（画面いっぱい表示） */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; /* 画面全体の高さにする */
    overflow: visible; /* 画像がはみ出さないように */
}


#new-button-container {
    position: fixed;      /* 固定位置にする場合 */
    left: 0;
    width: 100%;          /* 横幅を画面いっぱいに */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 中央揃え */
    align-items: center;
    gap: 10px;               /* 間隔 */
    top: 530px !important;
}



#hp-display {
    position: fixed;
    top: 450px !important;
    left: 0;
    right: 0;
    text-align: center;
    font-weight: 700;
    background-color: transparent;
    }

    
    #button-container {
        position: fixed;      /* 固定位置にする場合 */
        bottom: 85px !important;         /* 画面下から20px上に配置 */
        left: 0;
        width: 100%;          /* 横幅を画面いっぱいに */
        display: flex;
        flex-direction: column;
        justify-content: center; /* 中央揃え */
        align-items: center;
        gap: 10px;               /* 間隔 */
    }

    /* 上の2つだけ横並び */
    /* すべてのbuttonの共通指定（最低限に） */
    #button-container button {
        padding: 10px 15px;
        font-size: 13px !important;
        font-weight: bold;
        font-family: Arial, sans-serif;
    }
    
    /* 特定のbuttonの横幅を強制 */
    

    


    

#camera-container {
    
    width: 60%;
    max-width: 250px;
    margin: 200px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#qr-video {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100%;
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 4px solid #ffffff; /* ここで枠線の太さと色を自由に調整できます */
    background-color: black;
    box-shadow: 0 0 10px rgba(0,0,0,0.5); /* 必要なら影も追加できます */
    z-index: 1;
    -webkit-appearance: none;
    appearance: none;
  }
  
  #qr-video::-webkit-media-controls,
  #qr-video::-webkit-media-controls-start-playback-button,
  #qr-video::-webkit-media-controls-enclosure {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }


#scan-screen {
    position: fixed; /* ←推奨（画面いっぱい表示） */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-image: url('assets/scanback.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  

  #player-status-container {
    position: relative; /* 🌟追加 */
    display: flex;
    justify-content: space-between;
    gap: 4px;
    max-width: 100%;
    padding: 0 6px;
    margin: 0 auto 12px auto;
    box-sizing: border-box;
}

.player-status {
    width: 49%;
    text-align: left;
    position: absolute; /* 🌟これに変更 */
    height:140px; /* 🌟このように直接固定できる */
    font-size: 12px;
    background-color: #1a1e2a;
    padding: 8px;
    border-radius: 6px;
    border: 2px solid #66ccff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    position: relative; /*追加*/
    top: -130px; /*追加（上方向に移動する距離。値は自由に調整可能）*/
}


.player-status strong {
    font-size: 12px;
    color: #fff;
}

.skill-details {
    font-size: 10px;
    margin-top: 8px;
    padding: 4px;
    background-color: transparent;
    color: #ddd;
    border-radius: 6px;
    text-align: center;

}

.hp-bar {
    background-color: #444;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.hp-fill {
    background-color: #4caf50;
    height: 100%;
    width: 100%;
    transition: background-color 0.5s ease;
}

#battle-log {
    position: fixed;
    top: 290px !important;;
    left: 50%;
    font-size: 12px;
    transform: translate(-50%, -50%);
    background-color: rgba(10, 25, 47, 0.95);
    border: 2px solid #66ccff;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    z-index: 6;
}

#battle-log p,
#battle-log span,
#battle-log strong {
    font-size: 13px;
}

#scan-result {
    position: fixed;
    top: 255px;
    left: 50%;                             /* ← 中央揃えの起点 */
    transform: translateX(-50%);          /* ← 真ん中に調整 */
    text-align: center;
    font-size: 14px;
    color: #fff;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%; 
    background-color: transparent;
    border: none;
    box-shadow: none;                     /* ← 影をなくす */
}


/* モンスター詳細を表示するときのみの背景 */
#scan-result.monster-box {
    background-image: url('assets/boxc.png');
    background-size: 100% 100%;
    box-shadow: none;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
}


/* 短文表示のときは背景なし */
#scan-result.simple-text {
    background-image: none;
}


button {
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    background-color: #1a233a;
    padding: 10px 20px;
    border-radius: 6px;
    border: 2px solid #66ccff;
    transition: background-color 0.3s ease, color 0.3s ease;
    user-select: none;
}

button:disabled {
    background-color: #555; 
    border-color: #888;
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ★追加部分★ 無効化時はホバーでも色が変わらないようにする */
button:disabled:hover {
    background-color: #555; /* グレーを維持 */
    color: #ccc; /* テキスト色を維持 */
    border-color: #888; /* 境界線も維持 */
    transform: none; /* 動きもなし */
}




#turn-display {
    position: fixed;
    top: 10px !important;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(26, 35, 58, 0.9);
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    z-index: 1000;
    display: none;
}

/* Button Hover Effects */
button:hover {
    background-color: #66ccff;
    color: #000;
}

button:active {
    transform: translateY(2px);
}
/* バトルログ横長中央表示を維持するための修正 */


#battle-log p,
#battle-log span,
#battle-log strong {
    font-family: 'Noto Sans', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    display: inline-block;
    vertical-align: middle;
}

#monster-image-container {
    
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: -5px; 
    left: 50%;
    transform: translateX(-50%);
    width: 440px; /* 🌟画像のサイズと一致させる */
    max-width: 90%; /* 🌟小さい画面でもはみ出さないように */
    z-index: 500;
}

#monster-image {
    width: 100% !important; /* 🌟親要素の幅に合わせるよう修正 */
    height: auto !important;
    display: block;
    display: none;
    margin: 5px auto;
    visibility: hidden;  /* ← 追加で透明化の保険 */
    z-index: 10;
}

#monster-images-container {
    position: fixed;
    top: 95px;        /* 🧠 背景と同じにする！ */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 2;
  }
  


#monster-images-container img {
    position: relative; /* ←これを追加！ */
    width: 50% !important; /* 各ステータスボックスと同じ幅にする */
    height: auto !important; /* 比率を維持 */
    object-fit: contain; /* 縦横比を保って全体表示 */
}

/* 左右反転（鏡像）するためのクラス */
.mirror-image {
    transform: scaleX(-1);
}


#battle-background {
    position: fixed;
    top: 30px;         /* 🧠 この値で上下調整できる！ */
    left: 0;
    width: 100%;
    height: 270px;
    object-fit: contain;
    z-index: 0;
  }
  
@keyframes pop-in {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.pop-animation {
    animation: pop-in 0.6s ease-out;
}

/* モンスター画像が一瞬光るアニメーション */
@keyframes flash-blue {
    0% { filter: drop-shadow(0 0 10px cyan); }
    100% { filter: none; }
}

@keyframes flash-red {
    0% { filter: drop-shadow(0 0 10px red); }
    100% { filter: none; }
}

/* 数字がポップアップして消えるアニメーション */
@keyframes popup {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

@media (max-width: 480px) {
    #hp-display {
        bottom: 140px;
    }


#button-container {
        flex-direction: column;
        gap: 8px;
        bottom: 10px;
    }

    .player-status {
        font-size: 11px;
        padding: 6px;
    }
}

#title-button-container {
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* ボタン間の隙間（調整可能）*/
    position: fixed;
    bottom: 13px !important;       /* 下端からの位置 */
    left: 50%;         /* 中央配置 */
    z-index: 100;      /* ボタンが必ず上に来るように調整 */
  }
  
 #title-button-container button {
    width: 130px;        /* ボタンの幅を統一する */
    padding: 10px;       /* 余白調整（お好みで調整） */
    font-size: 13px;
    white-space: nowrap; /* ← 念のため改行を禁止 */
}

/* ポップアップ数字の共通スタイル */
.hp-popup {
    position: absolute;
    font-weight: bold;
    z-index: 10;
    pointer-events: none;
    user-select: none;
    animation: popup 1s ease-out forwards;
}

.hp-popup.plus {
    color: cyan;
}

.hp-popup.minus {
    color: red;
}

#select-monster-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('assets/scanback.webp');
    background-size: cover;
    background-position: center;
    z-index: 10000; /* 絶対に最前面 */
    overflow: auto;
    padding-top: 40px;
    text-align: center;
}

#select-monster-container {
    position: relative;
    z-index: 10001;
    display: flex;
    justify-content: center;
    height: 180px; 
    padding: 12px;
    margin-top: 300px; /* ←ここで位置を調整（数値を調整して微調整可） */
    gap: 20px;
    padding: 16px 8px; /* ←上下を広げる（上下16px, 左右8px）*/
    box-sizing: border-box; /* 枠内に収める */
}

#select-monster-screen button {
    position: relative;
    z-index: 10001;
}

#select-monster-container .player-status {
    opacity: 0.5;  /* 半透明 */
    transition: opacity 0.3s ease;
    padding: 16px 8px; /* ←上下を広げる（上下16px, 左右8px）*/
    height: auto; /* 高さを自動調整に戻す */
    min-height: 180px; /* 最低高さを保つ */
}

.selected-monster {
    opacity: 1 !important; /* 不透明で濃い表示に */
    border: 2px solid #66ccff !important;
    background-color: rgba(102, 204, 255, 0.2) !important;
}

#add-to-collection-btn {
    position: fixed;  /* ←これが重要 */
    font-size: 13px !important;
    z-index: 99;   /* 確実に最前面表示 */
    top: 150px;     /* 表示位置調整（例） */
    left: 50%;        /* 中央揃え */
    transform: translateX(-50%);  /* 中央揃えの調整 */
    pointer-events: auto;
}

/* ▼▼ 登録スロット画面のスタイル ▼▼ */

/* 背景画像を設定（前の画面と同じ画像を指定してください） */
.screen-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background-image: url('assets/regback.webp'); /* 背景を統一 */
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 10; /* 他画面より上に重なるように */
}

/* タイトルのスタイル */
.title {
    color: white;
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* スロットコンテナのスタイル（縦3×横2に配置） */
#slots-container {
    display: grid;
    margin-top: 10%;
    grid-template-columns: repeat(2, 1fr); /* ← 画面の横幅に合わせて均等に2つに分割 */
    gap: 10px; /* 隙間を少し狭く */
    justify-content: center;
    align-items: center;
    padding: 0 10px; /* コンテナに左右余白を設ける */
    box-sizing: border-box; /* 余白がはみ出さないように */
}

/* 各スロットのスタイル（ステータス表示と同じサイズに調整） */
.slot {
    width: 160px;
    height: 120px;
    background-color: rgba(0,0,0,0.6);
    border: 2px solid #888888; /* 未選択時をグレーに変更 */
    border-radius: 10px;
    color: white;
    padding: 10px;
    font-size: 11px;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s; /* アニメーションをスムーズに */
}

.slot, .slot * {
    font-size: 11px !important;
}

/* 選択した時だけ青色にする */
.slot.selected {
    border-color: #66ccff; /* 選択時は青色の枠線 */
    box-shadow: 0 0 8px #66ccff; /* 枠線を光らせる */
}

/* 下部ボタンを画面下端に配置する */
#register-slots-buttons {
    position: fixed;
    bottom: 85px !important; /* ✅ セレクト画面と同じにする */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    margin-right: 10px!important;
    z-index: 100;
}


/* 下部ボタンのスタイル統一（他の画面の下部ボタンと同じスタイル） */
.bottom-button {
    padding: 10px 20px;
    background-color: #1e293b;
    color: white;
    font-size: 16px;
    border: 2px solid #66ccff;
    border-radius: 8px;
    cursor: pointer;
}

/* 🔷 Load画面のスロット表示を、登録画面と完全に統一（縦3×横2のグリッド） */
#load-slots-container {
    display: grid;
    margin-top: 20%;
    grid-template-columns: repeat(2, 1fr); /* 横2列で均等に分割 */
    gap: 10px; /* スロット間の間隔 */
    justify-content: center;
    align-items: center;
    padding: 0 10px; /* 左右の余白 */
    box-sizing: border-box;
  }
  
  /* 下部ボタンを画面下端に中央揃え */

  
  #gallery-screen {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-image: url('assets/scanback.webp');
    background-size: cover;
    color: #fff;
    text-align: center;
    padding-top: 10px;
    z-index: 999;
}

#register-slots-buttons,
#load-monster-buttons {
    position: fixed;         /* fixedに変更して画面の固定位置に表示 */
    bottom: 85px;            /* 「Scan QR」等と同じ高さ */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;            /* 上に重なるように設定 */
}


#codecheck-confirm-btn,
#codecheck-quit-btn,
#start-scan,
#stop-scan,
#approve-btn,
#rescan-btn,
#load-monster-btn,
#quit-game-btn,
#code-check-btn,
#start-battle-btn,
#fast-forward-btn, 
#select-confirm-btn,
#select-back-btn,
#final-register-btn,
#register-slots-back-btn,
#load-confirm-btn,
#load-back-btn {
    width: 130px;            /* 幅を指定（調整可能） */
    padding: 8px 12px;       /* ボタン内の余白（調整可能） */
    font-size: 13px;         /* フォントサイズ（調整可能） */
    font-weight: bold;       /* フォントを太字に（調整可能） */
    box-sizing: border-box;  /* paddingとborderを含んだサイズ設定 */
    cursor: pointer;         /* カーソルをポインターにする */
}

#next-turn-btn{
    width: 80px;            /* 幅を指定（調整可能） */
    padding: 8px 12px;       /* ボタン内の余白（調整可能） */
    font-size: 13px;         /* フォントサイズ（調整可能） */
    font-weight: bold;       /* フォントを太字に（調整可能） */
    box-sizing: border-box;  /* paddingとborderを含んだサイズ設定 */
    cursor: pointer;         /* カーソルをポインターにする */
}



#scan-next-battle-btn{
    width: 180px;            /* 幅を指定（調整可能） */
    padding: 8px 12px;       /* ボタン内の余白（調整可能） */
    font-size: 13px;         /* フォントサイズ（調整可能） */
    font-weight: bold;       /* フォントを太字に（調整可能） */
    box-sizing: border-box;  /* paddingとborderを含んだサイズ設定 */
    cursor: pointer;         /* カーソルをポインターにする */
}

#fast-forward-btn{
    width: 200px;            /* 幅を指定（調整可能） */
    padding: 8px 12px;       /* ボタン内の余白（調整可能） */
    font-size: 13px;         /* フォントサイズ（調整可能） */
    font-weight: bold;       /* フォントを太字に（調整可能） */
    box-sizing: border-box;  /* paddingとborderを含んだサイズ設定 */
    cursor: pointer;   
    bottom: px !important;  
          /* カーソルをポインターにする */
}

#gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-slot {
    background: rgba(0,0,0,0.6);
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 2px solid #555;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-size: 11px;
}

.gallery-slot img {
    max-width: 90%;
    max-height: 90%;
}

#gallery-modal {
    position: fixed;
    top:0; left:0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1001;
}

#modal-image {
    width: 300px;
    height: auto;
}

#modal-name {
    margin-top: 10px;
    color: #fff;
    font-size: 18px;
}

#gallery-buttons{
    margin: 5px;
    font-size: 13px;
    position: fixed;         
    left: 50%;                  /* 中央寄せ */
    transform: translateX(-50%);/* 中央揃えのための調整 */
    display: flex;    
    gap: 10px;     /* 固定表示にして常に画面下に置く */
    bottom: 15px
}


#discovery-popup {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    border: 2px solid #ffffff;
    text-align: center;
    font-size: 13px;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}


  .fade-out {
    opacity: 0;
    transition: opacity 1.5s ease-out;
}



body, button, #battle-log, .player-status {
    user-select: none; /* テキスト選択を禁止 */
}


/* Chrome, Edge, Safari用スクロールバーを非表示 */
::-webkit-scrollbar {
    display: none;
}

/* Firefox用スクロールバーを非表示 */
html {
    scrollbar-width: none;
}

#exit-button-container {
    position: fixed;        /* 画面に常に固定 */
    top: 10px;              /* 上からの距離（音量マークと同じ高さに調整） */
    left: 10px;             /* 左からの距離 */
    z-index: 999999;          /* 他の要素より前面に表示 */
    cursor: pointer;        /* クリック可能な表示 */
}

#confirmation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-align: center;
    width: 80%;
    max-width: 300px;
}

.popup-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: space-around;
}

.popup-buttons button {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 13px;
}

#confirmation-message {
    color: #333;                 /* テキスト色を設定（読みやすく） */
    font-size: 13px;             /* フォントサイズを調整 */
    white-space: pre-wrap;       /* 改行を維持して表示 */
    margin-bottom: 13px;         /* ボタンとの距離を調整 */
    word-wrap: break-word;       /* 長い文字列でも折り返すように */
}

#select-monster-container .player-status {
    text-align: center; /* 文字を中央寄せ */
    display: flex;
    align-items: center; /* 縦方向中央 */
    justify-content: center; /* 横方向中央 */
    flex-direction: column; /* 縦並びに整列 */
    line-height: 1.6; /* 行間を整える */
}

#register-slots-screen h2 {
    font-size: 16px;      /* 先ほど指定した小さめのサイズ */
    font-weight: normal;  /* 太字解除 */
    text-align: center;   /* 中央揃え */
    margin-top: 65px;     /* この値を増やすことで位置を下げることができます */
}

#special-btn {
    background-color: #1b2a41;
    color: #fff;
    font-size: 13px;
    border: 2px solid #fff;
    border-radius: 12px;
    padding: 10px 20px;
    cursor: pointer;
    margin: 10px;
    transform: scale(0.85); /* 少しだけ小さく */
    transform-origin: center;
}

.special-btn {
    width: 280px;
    padding: 12px;
    font-size: 15px;
    color: #fff;
    background-color: #1b2a41;
    border: 2px solid #0f1c2e;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.2s;
}

#special-btn:disabled {
    background-color: gray;
    cursor: not-allowed;
}

#special-screen {
    background-image: url('assets/specialback.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.special-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}


.special-btn:hover {
    background-color: #324a5f;
    transform: translateY(-3px);
}

.special-btn:active {
    transform: translateY(1px);
}


#special-back-btn {
    padding: 10px 20px;
    background-color: #1e293b;
    color: white;
    font-size: 13px;
    border: 2px solid #66ccff;
    border-radius: 8px;
    cursor: pointer;
    width: 80px !important; /* ←重要（優先度最大） */
}


.special-btn:disabled {
    background-color: #666; /* 無効時はグレー */
    border-color: #555;
    color: #aaa;
    box-shadow: none;
    cursor: default;
}

.unlock-condition {
    font-size: 11px;
    font-weight: normal;
    color: #e0e0e0; /* 少し明るめのグレー（既存テキストに合わせる） */
}


#privacy-policy-link:hover {
    opacity: 0.7;
}

#copyright-link:hover {
    opacity: 0.7;
}

#startup-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 2147483647; /* ← これでExitボタンも確実に覆える！ */
    opacity: 1;
    transition: opacity 0.6s ease;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  #loading-text {
    color: white;
    font-size: 18px;
    font-family: 'Noto Sans', sans-serif;
    text-align: center;
    user-select: none;
  }

  
  #top-bar {
    position: fixed;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex; /* 常にflex！ */
    gap: 20px;
    z-index: 10000;
    white-space: nowrap;
    font-size: 8px;
    color: #ffffff;
    align-items: center;
}

  #bottom-bar {
    position: fixed;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex; /* 常にflex！ */
    gap: 20px;
    z-index: 10000; 
    white-space: nowrap;
    font-size: 8px;
    color: #ffffff;
    align-items: center;
}

#copyright-link,
#copyright-notice,
#privacy-policy-link {
    display: none;
    white-space: nowrap;
    color: #ffffff;
}

#copyright-link,
#privacy-policy-link {
    text-decoration: underline;
    cursor: pointer;
}
