body {
  font-family: 'Courier New', Courier, monospace;
  background-color: #2b2118;
  color: #f0e6d2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

h1 {
  color: #e6b800;
  text-shadow: 2px 2px 4px #000;
}

#status {
  font-size: 1.1rem;
  height: 2em;
  text-align: center;
}

.board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background-color: #1a130e;
  padding: 10px;
  border: 4px solid #8b5a2b;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.cell {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  user-select: none;
  box-sizing: border-box;
}

/* Grafiken für die 4 Terrains einbinden */
.cell[data-type="FLUSS"] { 
  background: url('images/fluss.png') center/cover no-repeat; 
}
.cell[data-type="STOLLE"] { 
  background: url('images/stolle.png') center/cover no-repeat; 
}
.cell[data-type="SAND"] { 
  background: url('images/sand.png') center/cover no-repeat; 
}
.cell[data-type="BERG"] { 
  background: url('images/berg.png') center/cover no-repeat; 
}

/* Stilvolleres Wolken-Overlay */
.cloud-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  /* Hintergrundbild setzen */
  background: url('images/wolke.png') center/cover no-repeat;
  /* Option: Ein leichter sandfarbener Ton, der durchschimmert, wenn man die Deckkraft anpasst */
  /* background-color: rgba(212, 163, 89, 0.5); */
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  border-radius: 4px;
  pointer-events: none;
}

.cloud-overlay.active {
  /* Deckkraft auf 100% setzen, um das Bild vollständig anzuzeigen */
  opacity: 1;
}

/* Visualisierungen für Pfad und Ziel */
.cell.start-field { border: 3px solid #00ffcc; }
.cell.target-field { border: 4px solid #ffcc00; background-color: #ffd700 !important; color: #000; }
.cell.user-claim { outline: 4px dashed #ff3333; }

button {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  background-color: #e6b800;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:disabled {
  background-color: #555;
  cursor: not-allowed;
}

/* Markierung für den gelaufenen Pfad am Ende */
.cell.path-field {
  outline: 3px solid #f39c12;
  outline-offset: -3px;
  box-shadow: inset 0 0 10px rgba(243, 156, 18, 0.6);
}

/* Das finale Ziel (Goldfeld) */
.cell.target-field {
  outline: 4px solid #2ecc71 !important;
  outline-offset: -4px;
  box-shadow: inset 0 0 15px rgba(46, 204, 113, 0.9);
}
