
body {
  font-family: sans-serif;
  padding: 20px;
  background: #f7f7f7;
}

button{
}
.card {
  display: inline-block;
  width: 60px;
  height: 90px;
  border: 1px solid #aaa;
  border-radius: 8px;
  margin: 5px;
  background: white;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
  position: relative;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

#topCardArea{
  height:100px;
  padding:10px;
}


#playerHand.inactive {
  opacity: 0.4;
  pointer-events: none;
}

#playerHand.active {
  opacity: 1;
  pointer-events: auto;
}

.card:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

.card .rank {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 16px;
}

.card .suit {
  position: absolute;
  bottom: 5px;
  right: 5px;
  font-size: 20px;
}

.card.red {
  color: red;
}

.card.black {
  color: black;
}

#playerHand .card.disabled {
  opacity: 0.3;
  pointer-events: none;
  filter: grayscale(60%);
}

.hand, .opponent {
  margin-bottom: 4px;
}

button {
  margin-top: 10px;
  padding: 6px 12px;
  font-size: 16px;
}


.card.back {
  background: repeating-linear-gradient(45deg, #666, #666 5px, #999 5px, #999 10px);
  color: transparent;
  position: relative;
}

.card.back::after {
  content: "🂠"; /* カード裏マーク（開発用） */
  color: white;
  font-size: 24px;
  position: absolute;
  top: 30%;
  left: 20%;
}
#log {
  height: 80px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #ccc;
  background: #fff;
}

.log-entry {
  margin: 5px 0;
  font-weight: bold;
}

.log-player {
  color: blue;
}

.log-ai {
  color: crimson;
}

.log-neutral {
  color: black;
}
