body {
  font-family: 'Courier New', 'Courier', monospace;
  background-color: #0a0a0a;
  color: #00ff00;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1 {
  color: #00ff00;
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.8em;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

p {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1em;
}

details {
  text-align: center;
  margin-bottom: 20px;
}


details > p {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed #00ff00;
  background: #0a0a0a;
}

.container {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.game-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#game {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 2px;
  width: 450px;
  height: 450px;
  border: 3px solid #00ff00;
  background: #111;
  border-radius: 0;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.cell {
  background: #0a0a0a;
  border: 1px solid #004400;
  cursor: pointer;
  transition: background 0.1s;
}

.cell:hover {
  background: #004400;
}

.stone {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  display: block;
  margin: auto;
}

.black {
  background: #000;
  border: 1px solid #00ff00;
}

.white {
  background: #fff;
  border: 1px solid #00ff00;
}

button {
  background-color: #0a0a0a;
  color: #00ff00;
  border: 1px solid #00ff00;
  padding: 10px 20px;
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 16px;
  cursor: pointer;
  margin-top: 20px;
  outline: none;
}

button:hover {
  background-color: #004400;
}

.stats {
  background: #0a0a0a;
  padding: 20px;
  border: 1px solid #00ff00;
  border-radius: 0;
  min-width: 250px;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.progress-bar {
  width: 100%;
  height: 16px;
  background: #000;
  border: 1px solid #00ff00;
  margin: 10px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #00ff00;
  transition: width 0.3s ease;
}

.thinking {
  color: #00ff00;
  font-style: italic;
  margin: 10px 0;
  text-align: center;
}

.game-result {
  color: #ff0000;
  font-weight: bold;
  text-align: center;
  margin: 10px 0;
  font-size: 1.2em;
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.found-section {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid #00ff00;
  background: #0a0a0a;
}

.found-section h3 {
  color: #00ff00;
  margin-top: 0;
}

.found ul {
  padding-left: 20px;
  margin: 5px 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.found li {
  margin: 3px 0;
  color: #00ff00;
  word-break: break-all;
}

.footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.9em;
  color: #008800;
}

.warning {
  color: #ff5555;
  font-weight: bold;
  text-align: center;
  margin: 20px 0;
}

.info {
  color: #ffff00;
  font-weight: bold;
  text-align: center;
  margin: 20px 0;
}

details > summary,
.found-details > summary {
  cursor: pointer;
  font-weight: bold;
  list-style: none;       
  position: relative;
  padding-left: 20px;     
}

details > summary::-webkit-details-marker,
.found-details > summary::-webkit-details-marker {
  display: none;
}

details > summary::before,
.found-details > summary::before {
  content: '▶';
  position: absolute;
  left: 0;
  top: 0;
  transition: transform 0.2s ease;
  color: #00ff00;
  font-size: 0.9em;
}

details[open] > summary::before,
.found-details[open] > summary::before {
  transform: rotate(90deg);
}


@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .stats {
    min-width: auto;
    width: 100%;
    max-width: 450px;
  }

  #game {
    width: 300px;
    height: 300px;
  }

  .cell {
    padding: 0;
  }
}

@media (max-width: 480px) {
  body {
    padding: 15px;
    font-size: 0.9em;
  }

  h1 {
    font-size: 1.5em;
  }

  .found ul {
    grid-template-columns: repeat(2, 1fr); 
    gap: 3px;
    font-size: 0.85em;
  }

  .found li {
    margin: 1px 0;
  }

  .warning, .info {
    font-size: 0.9em;
    line-height: 1.4;
  }

  details > summary,
  .found-details > summary {
    padding-left: 16px;
    font-size: 0.95em;
  }
}