.lightsout-widget {
  text-align: center;
  font-family: sans-serif;
  background-color: #f0f0f0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  max-width: 300px;
  margin: 0 auto 30px;
  position: relative;
}

.lightsout-widget .message {
  font-size: 18px;
  font-weight: bold;
  color: green;
  min-height: 52px;
  margin-bottom: 10px;
  line-height: 1.4;
  word-break: break-word;
}

.lightsout-widget .description {
  font-size: 12px;
  color: #444;
  margin-bottom: 12px;
}

.lightsout-widget .clickCount {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

.lightsout-widget .board {
  display: grid;
  grid-template-columns: repeat(3, 50px);
  justify-content: center;
  margin-bottom: 10px;
  gap: 5px;
}

.lightsout-widget .cell {
  width: 50px;
  height: 50px;
  background-color: #ddd;
  border: 2px solid #555;
  cursor: pointer;
  box-sizing: border-box;
}

.lightsout-widget .cell.on {
  background-color: #8eff8e;
}

.lightsout-widget .resetButton {
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  margin-top: 5px;
  margin-bottom: 10px;
}

.lightsout-widget .resetButton:hover {
  background-color: #0056b3;
}

.lightsout-widget .timer,
.lightsout-widget .combo,
.lightsout-widget .score {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #333;
}

.lightsout-widget .combo {
  color: #e67e22; /* オレンジで強調 */
}

.lightsout-widget .score {
  color: #007bff; /* 青でスコア感 */
}

.lightsout-widget .message {
  font-size: 18px;
  font-weight: bold;
  color: green;
  min-height: 52px;
  margin-bottom: 10px;
  line-height: 1.4;
  word-break: break-word;
}

.lightsout-widget .description {
  font-size: 12px;
  color: #444;
  margin-bottom: 12px;
}

.lightsout-widget.flash {
  animation: flash 0.3s ease-in-out 2;
}

@keyframes flash {
  0%, 100% { background-color: #f0f0f0; }
  50% { background-color: #ffff99; }
}

.final-score {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  color: #007bff;
  animation: scoreBlink 1s ease-in-out infinite;
}

@keyframes scoreBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
