.select:hover {
 
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  transform: scale(1.4);
}
.black{background: radial-gradient(circle at 30% 30%, #555, #000);
  }
.white{
  background: radial-gradient(circle at 30% 30%, #fff, #bbb);
  
}
.white44{box-shadow: inset 5px 5px 10px rgba(255, 255, 255, 0.6),
              inset -5px -5px 10px rgba(0, 0, 0, 0.3),
              0 5px 10px rgba(0, 0, 0, 0.5);}
.black44{box-shadow: inset 5px 5px 10px rgba(255, 255, 255, 0.1),
              inset -5px -5px 10px rgba(0, 0, 0, 0.6),
              0 5px 10px rgba(0, 0, 0, 0.7);}
'.bbody {
  text-align: center;
}
.main {
  display: inline-block;
  position: relative;
}

/* start */
#modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: white;
  overflow: hidden;
 z-index: 1000; /* 闌倬侍 髏斐ｏ莉     闌      諠ｹ   */
}

#modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://3ndgame.sakura.ne.jp/root/wp-content/ogold.png") center center / cover no-repeat;
  opacity: 0.8; /* 阮台ｸ       諡ｾ */
  z-index: 0; /*  繩･笆ｼ 蜷  髏  蟄晞数繧  髏斐ｇ 髏   */
}

#modal > * {
  position: relative;
  z-index: 1; /*     髏    霈ｯ 閹ｵﾑ    阨ｭ邵∝ｰｱ閹ｰ蜑顔ｹ  */
}


#menu {
  display: flex;
  flex-direction: column; /* 闔  髏   魏ｹ諡ｾ閹ｰ蜑願ｹｴ閹ｰ蝮  髏   螻 鏡 魏ｹ諡ｾ閹ｰ蜑願ｹｴ閹ｰ蜑顔ｹ    邉ｸ闃･ */
  align-items: center;     /*  魏ｹ閾ｭ  髏       */
  gap: 12px;               /*  螻 鏡閹ｰ蜑願亜阨ｭ竏ｫﾎ･   */
  padding: 10px;
  margin-top: 70px;
}


.select {
  background-size: contain; /*   髏碑い  遲     髏  蜷ｧ   逕ｻ 豌ｴ隴   蟄晉ｮ  髏  閹ｰ     */
  background-position: center;
  text-indent: -9999px;
  width: 125px;
  transform:scale(1.3);
  height: 120px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4),
              inset 0 2px 4px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  margin: 0; /* margin閹ｰ髦ｪ  閹ｵﾑ肴 閹ｵ 髏疲ｸ  阮､鄙ｫ  閹ｵﾑ   髏泌ｾ｡    蟲ｨ邨ｵ  閹ｰ髦ｪ 螂  邏ｫ貂  髏   髫剰註 纃ｼ蜊∬賢繧乗ｴｲ閹ｰ蜀ｴ  髏   */
}


.h3,
.p {
  color: white;
}
#menu p {
  width: 125px;
  font-size: 24px;
  padding: 3px;
  margin: 15px;
  
  cursor: pointer;
  
  color: white;
}

/* game */
#board {
  margin: 0 auto;
  background: #444444;
}
td.cell {
  background: rgb(170, 200, 160); 
  width: 23px;
  height: 23px;
  margin: 2px;
}
.cell div {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin: 0 auto;
}
.cell-6 > tr > td {
  width: 50px;
  height: 50px;
}
.cell-6 > tr > td > div {
  width: 42px;
  height: 42px;
}
.cell-4 > tr > td {
  width: 75px;
  height: 75px;
}
.cell-4 > tr > td > div {
  width: 60px;
  height: 60px;
}

.h2 {
  text-align: center;
  margin: 5px 0;
}
#counter {
  margin: 0 auto;
  width: 200px;
  display: flex;
  line-height: 50px;
  font-weight: bold;
 
}
#numBlack, #numWhite {
  position: relative;
  font-size: 36px;
  margin: 5px;
  width: 130px;
  height: 50px;
  color: black; /* 闌  陦      鄒ｶ鬧郁ｮ占 ﾑ  髏皮ｳｸ 豎ｲ    隘ｲ 陋   */
  border-radius: 15px;
  text-align: center;
  line-height: 50px;
  font-weight: bold;
  background-color: #eee;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2),
              0 4px 8px rgba(0, 0, 0, 0.2);
  padding-left: 40px; /* 闌  陦    螂  閾･  諡ｬ貂幃数      閹ｵﾑ ｵｵ  閹ｰ  髏  閹ｰ     鄙ｫ   髱ｪﾑ   髏秘   髏   */
padding-right: 5px;
}

/*  蟶ｸ諡ｾ  髏秘宦貂幃数   諡ｬ貂幃数    髏費ｽ丞ｾ  */
#numBlack::before,
#numWhite::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

/* 阯ｪ  繧 ｮ   髏  貂幃数 before 繩･笆ｼ   */
#numBlack::before {
  background: radial-gradient(circle at 30% 30%, #555, #000);
  box-shadow: inset 5px 5px 10px rgba(255, 255, 255, 0.1),
              inset -5px -5px 10px rgba(0, 0, 0, 0.6),
              0 5px 10px rgba(0, 0, 0, 0.7);
}

/*   髏泌   貂   髏  貂幃数 before 繩･笆ｼ   */
#numWhite::before {
  background: radial-gradient(circle at 30% 30%, #fff, #bbb);
  box-shadow: inset 5px 5px 10px rgba(255, 255, 255, 0.6),
              inset -5px -5px 10px rgba(0, 0, 0, 0.3),
              0 5px 10px rgba(0, 0, 0, 0.5);
}

/* end */
#restartBtn {
  z-index: 1;
  opacity: 0; /*  邏     閹ｰ蜑願註阨ｭ謗ｩ 髏費ｿ･遘  髏   */
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -110%);
  width: 100%;
  max-width: 320px;
  height: 105px;
  line-height: 50px;
  padding: 0 24px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;

  color: #3b2e19;
  background: url("https://u.jimcdn.com/cms/o/s939e7d60f2541492/userlayout/img/rishu.png?t=1750374922") no-repeat center center / cover;
  backdrop-filter: blur(6px);

  border: none;
  border-radius: 47.5px;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -2px 6px rgba(180, 160, 130, 0.2);
  

  transition: all 0.3s ease;
}

#restartBtn:hover {
  filter: brightness(1.05);
  transform: translate(-50%, -110%) scale(1.03);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 3px rgba(255, 255, 255, 0.7),
    inset 0 -2px 6px rgba(140, 120, 100, 0.3);
}


.hide {
  display: none;
}
.turn-display {
  background-image: url('https://u.jimcdn.com/cms/o/s939e7d60f2541492/userlayout/img/neibiinohuchi.png?t=1749914306');
  background-size: cover;
  background-position: center;
  width: 170px;
  height: 30px;
  line-height: 30px!important;
  margin: 0 auto;
  font-family: 'Georgia', 'serif'!important;
  font-size: 16px!important;
  font-weight: bold!important;
  color: #FFD700!important; /* 閹ｵﾑ崎ｼｯ閹ｵ 髏比ｸｻ 髏    繝ｯ雹ｴ髏   */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6)!important;
  border: 2px solid gold!important;
  border-radius: 6px!important;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.5)!important;
}

.board-wrapper {
  display: inline-block;
  padding: 10px; /* 闌   閹ｰ蜑願亜閹ｰ謌      髏秘宦貂幃数      10px */
  background-image: url('https://u.jimcdn.com/cms/o/s939e7d60f2541492/userlayout/img/woooooooody.png?t=1750368556');
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}
.btn-4x4 {
  background-image: url('https://3ndgame.sakura.ne.jp/root/wp-content/afoafo.png');
}

.btn-6x6 {
  background-image: url('https://3ndgame.sakura.ne.jp/root/wp-content/asisi.png');
}

.btn-8x8 {
  background-image: url('https://3ndgame.sakura.ne.jp/root/wp-content/gamestartgold-removebg-preview-removebg-preview.png');
}
.gold-border {
  border: 1px solid #d4af37; /* 閹ｵﾑ崎ｼｯ閹ｵ 髏比ｸｻ 髏    鬆    */
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
  background: linear-gradient(to bottom, #fffdf5, #f8e9c0);

}