#ggame {
        text-align: center;
        width: 90%;
        max-width: 800px;
      }
      #buttons {
        margin-top: 20px;
      }
 
#hit-button:hover {
    transform: scale(1.1);
}

#hit-button{
   transition: transform 0.3s ease;
}
    

#stand-button:hover {
    transform: scale(1.1);
}

#stand-button {
    transition: transform 0.3s ease;
}
     


#start-button:hover {
  transform: scale(1.1);
}

#start-button {
  transition: transform 0.3s ease;
}



#reset-button:hover {
    transform: scale(1.1);
}

#reset-button {
    transition: transform 0.3s ease;
}
      .cbutton:disabled {
        background-color: #ccc;
        color: #666!important;
        cursor: not-allowed;
      }
      .blacks {
        color: black!important;
      }
      .reds {
        color: red!important;
      }
      .card-container {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
      }
      .card {
        display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 90px;
    margin: 5px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    background: linear-gradient(145deg, #f9f9f9, #dcdcdc);
    color: #333 !important;
    font-size: 1.2em;
    font-weight: bold;
    line-height: 1.5;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2), 
                inset -2px -2px 5px rgba(255, 255, 255, 0.5), 
                inset 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
      }
.card:hover {
    background: linear-gradient(145deg, #ffffff, #e0e0e0);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3), 
                inset -3px -3px 6px rgba(255, 255, 255, 0.7), 
                inset 3px 3px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* クリック時の押し込みエフェクト */
.card:active {
    transform: scale(0.95);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
      #statistics {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), inset 0 0 10px rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.3);box-sizing: border-box;
}

#statistics div {
  flex: 1;
  min-width: 180px;
  margin: 10px;
  text-align: center;
  padding: 15px;
  background: linear-gradient(145deg, #f2f2f2, #d6d6d6);
  border-radius: 12px;
  color: #333;
  font-weight: bold;
  font-size: 1.1em;box-sizing: border-box;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.2),
              inset -2px -2px 5px rgba(255,255,255,0.5),
              inset 2px 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease-in-out;
}

#statistics div:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, #ffffff, #e0e0e0);
  box-shadow: 5px 5px 15px rgba(0,0,0,0.3),
              inset -3px -3px 6px rgba(255,255,255,0.7),
              inset 3px 3px 6px rgba(0,0,0,0.15);box-sizing: border-box;
}

#statistics div span {
  display: block;box-sizing: border-box;
  font-size: 1.3em;
  margin-top: 5px;
  color: #1565c0;
  font-weight: bold;
}

      @media (max-width: 600px) {
        .card {
          width: 50px;
          height: 75px;
          font-size: 1em;
        }
        #statistics {
          flex-direction: column;box-sizing: border-box;
          align-items: center;
        }
        #statistics div {
width: calc(100% - 20px); /* ← 余白分を引く */
          box-sizing: border-box;
        }
      
      }
#end-button {transition: transform 0.3s ease;
   
}

#end-button:hover {
    
    transform: scale(1.1);
}
/* ボタン配置ラッパー */
#buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 10px;
  justify-content: center;
  align-items: center;
  max-width: 330px;
  margin: 20px auto 0;
}


/* ボタン共通スタイル（画像用） */
.cbutton {
  width: 140px; /* SEの画面幅に合わせて調整済み */
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
 
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* ホバー拡大（PC用） */
.cbutton:hover {
  transform: scale(1.1);
}

/* 無効化状態 */
.cbutton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* グリッドでボタンを2×2に配置 */
.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 15px; /* 縦横の間隔 */
  justify-content: center;
  align-items: center;
  max-width: 330px;
  margin: 20px auto 0;
  display: none; /* 初期は非表示 */
}