.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: 30px;
  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/aeiei.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);

}